"),i.html(wp_mail_smtp_about.plugin_download_btn)),t||i.removeClass("disabled"),i.removeClass("loading"),setTimeout(function(){p(".plugin-item .msg").remove()},3e3)}).fail(function(a){console.log(a.responseText)})})}};return t}(document,(window,jQuery)),WPMailSMTP.Admin.About.init();
\ No newline at end of file
diff --git a/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.js b/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.js
index b9ecb0a..71d2abd 100644
--- a/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.js
+++ b/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.js
@@ -1,4 +1,6 @@
-/* globals jQuery, wp_mail_smtp */
+/* globals wp_mail_smtp, ajaxurl */
+'use strict';
+
var WPMailSMTP = window.WPMailSMTP || {};
WPMailSMTP.Admin = WPMailSMTP.Admin || {};
@@ -7,32 +9,22 @@ WPMailSMTP.Admin = WPMailSMTP.Admin || {};
*
* @since 1.6.0
*/
-WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, window, $ ) {
-
- 'use strict';
-
- /**
- * Private functions and properties.
- *
- * @since 1.6.0
- *
- * @type {Object}
- */
- var __private = {};
+WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || ( function( document, window, $ ) {
/**
* Public functions and properties.
*
* @since 1.6.0
*
- * @type {Object}
+ * @type {object}
*/
var app = {
+
/**
* State attribute showing if one of the plugin settings
* changed and was not yet saved.
*
- * @since {VERSION}
+ * @since 1.9.0
*
* @type {boolean}
*/
@@ -43,7 +35,7 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
*
* @since 1.6.0
*/
- init: function () {
+ init: function() {
// Do that when DOM is ready.
$( document ).ready( app.ready );
@@ -54,7 +46,7 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
*
* @since 1.6.0
*/
- ready: function () {
+ ready: function() {
app.pageHolder = $( '.wp-mail-smtp-tab-settings' );
@@ -69,17 +61,18 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
*
* @since 1.6.0
*/
- bindActions: function () {
+ bindActions: function() {
// Mailer selection.
- $( '.wp-mail-smtp-mailer-image', app.pageHolder ).click( function () {
+ $( '.wp-mail-smtp-mailer-image', app.pageHolder ).click( function() {
$( this ).parents( '.wp-mail-smtp-mailer' ).find( 'input' ).trigger( 'click' );
} );
- $( '.wp-mail-smtp-mailer input', app.pageHolder ).click( function () {
+ $( '.wp-mail-smtp-mailer input', app.pageHolder ).click( function() {
var $input = $( this );
if ( $input.prop( 'disabled' ) ) {
+
// Educational Popup.
if ( $input.hasClass( 'educate' ) ) {
app.education.upgradeMailer( $input );
@@ -90,6 +83,7 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
// Deselect the current mailer.
$( '.wp-mail-smtp-mailer', app.pageHolder ).removeClass( 'active' );
+
// Select the correct one.
$( this ).parents( '.wp-mail-smtp-mailer' ).addClass( 'active' );
@@ -101,23 +95,23 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
app.mailers.smtp.bindActions();
// Dismiss Pro banner at the bottom of the page.
- $( '#wp-mail-smtp-pro-banner-dismiss', app.pageHolder ).on( 'click', function () {
+ $( '#wp-mail-smtp-pro-banner-dismiss', app.pageHolder ).on( 'click', function() {
$.ajax( {
- url: ajaxurl,
- dataType: 'json',
- type: 'POST',
- data: {
- action: 'wp_mail_smtp_ajax',
- task: 'pro_banner_dismiss'
- }
- } )
- .always( function () {
- $( '#wp-mail-smtp-pro-banner', app.pageHolder ).fadeOut( 'fast' );
- } );
+ url: ajaxurl,
+ dataType: 'json',
+ type: 'POST',
+ data: {
+ action: 'wp_mail_smtp_ajax',
+ task: 'pro_banner_dismiss'
+ }
+ } )
+ .always( function() {
+ $( '#wp-mail-smtp-pro-banner', app.pageHolder ).fadeOut( 'fast' );
+ } );
} );
- // Dismis educational notices for certain mailers.
- $( '.js-wp-mail-smtp-mailer-notice-dismiss', app.pageHolder ).on( 'click', function ( e ) {
+ // Dissmis educational notices for certain mailers.
+ $( '.js-wp-mail-smtp-mailer-notice-dismiss', app.pageHolder ).on( 'click', function( e ) {
e.preventDefault();
var $btn = $( this ),
@@ -128,28 +122,28 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
}
$.ajax( {
- url: ajaxurl,
- dataType: 'json',
- type: 'POST',
- data: {
- action: 'wp_mail_smtp_ajax',
- task: 'notice_dismiss',
- notice: $notice.data( 'notice' ),
- mailer: $notice.data( 'mailer' )
- },
- beforeSend: function () {
- $btn.addClass( 'disabled' );
- }
- } )
- .always( function () {
- $notice.fadeOut( 'fast', function () {
- $btn.removeClass( 'disabled' );
- } );
- } );
+ url: ajaxurl,
+ dataType: 'json',
+ type: 'POST',
+ data: {
+ action: 'wp_mail_smtp_ajax',
+ task: 'notice_dismiss',
+ notice: $notice.data( 'notice' ),
+ mailer: $notice.data( 'mailer' )
+ },
+ beforeSend: function() {
+ $btn.addClass( 'disabled' );
+ }
+ } )
+ .always( function() {
+ $notice.fadeOut( 'fast', function() {
+ $btn.removeClass( 'disabled' );
+ } );
+ } );
} );
// Show/hide debug output.
- $( '#wp-mail-smtp-debug .error-log-toggle' ).on( 'click', function ( e ) {
+ $( '#wp-mail-smtp-debug .error-log-toggle' ).on( 'click', function( e ) {
e.preventDefault();
$( '#wp-mail-smtp-debug .error-log-toggle' ).find( '.dashicons' ).toggleClass( 'dashicons-arrow-right-alt2 dashicons-arrow-down-alt2' );
@@ -158,12 +152,12 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
} );
// Remove mailer connection.
- $( '.js-wp-mail-smtp-provider-remove', app.pageHolder ).on( 'click', function () {
+ $( '.js-wp-mail-smtp-provider-remove', app.pageHolder ).on( 'click', function() {
return confirm( wp_mail_smtp.text_provider_remove );
} );
// Copy input text to clipboard.
- $( '.wp-mail-smtp-setting-copy', app.pageHolder ).click( function ( e ) {
+ $( '.wp-mail-smtp-setting-copy', app.pageHolder ).click( function( e ) {
e.preventDefault();
var target = $( '#' + $( this ).data( 'source_id' ) ).get( 0 );
@@ -177,7 +171,7 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
},
education: {
- upgradeMailer: function ( $input ) {
+ upgradeMailer: function( $input ) {
$.alert( {
backgroundDismiss: true,
@@ -192,7 +186,7 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
icon: '">' + wp_mail_smtp.education.upgrade_icon_lock + '' + wp_mail_smtp.education.upgrade_bonus + wp_mail_smtp.education.upgrade_doc + '' );
},
buttons: {
@@ -200,7 +194,7 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
text: wp_mail_smtp.education.upgrade_button,
btnClass: 'btn-confirm',
keys: [ 'enter' ],
- action: function () {
+ action: function() {
window.open( wp_mail_smtp.education.upgrade_url + '&utm_content=' + encodeURI( $input.val() ), '_blank' );
}
}
@@ -216,15 +210,15 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
*/
mailers: {
smtp: {
- bindActions: function () {
+ bindActions: function() {
// Hide SMTP-specific user/pass when Auth disabled.
- $( '#wp-mail-smtp-setting-smtp-auth' ).change( function () {
+ $( '#wp-mail-smtp-setting-smtp-auth' ).change( function() {
$( '#wp-mail-smtp-setting-row-smtp-user, #wp-mail-smtp-setting-row-smtp-pass' ).toggleClass( 'inactive' );
} );
// Port default values based on encryption type.
- $( '#wp-mail-smtp-setting-row-smtp-encryption input' ).change( function () {
+ $( '#wp-mail-smtp-setting-row-smtp-encryption input' ).change( function() {
var $input = $( this ),
$smtpPort = $( '#wp-mail-smtp-setting-smtp-port', app.pageHolder );
@@ -232,12 +226,10 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
if ( 'tls' === $input.val() ) {
$smtpPort.val( '587' );
$( '#wp-mail-smtp-setting-row-smtp-autotls' ).addClass( 'inactive' );
- }
- else if ( 'ssl' === $input.val() ) {
+ } else if ( 'ssl' === $input.val() ) {
$smtpPort.val( '465' );
$( '#wp-mail-smtp-setting-row-smtp-autotls' ).removeClass( 'inactive' );
- }
- else {
+ } else {
$smtpPort.val( '25' );
$( '#wp-mail-smtp-setting-row-smtp-autotls' ).removeClass( 'inactive' );
}
@@ -249,26 +241,26 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
/**
* Exit notice JS code when plugin settings are not saved.
*
- * @since {VERSION}
+ * @since 1.9.0
*/
- triggerExitNotice: function () {
+ triggerExitNotice: function() {
var $settingPages = $( '.wp-mail-smtp-page-general:not( .wp-mail-smtp-tab-test )' );
// Display an exit notice, if settings are not saved.
- $( window ).on( 'beforeunload', function () {
+ $( window ).on( 'beforeunload', function() {
if ( app.pluginSettingsChanged ) {
return wp_mail_smtp.text_settings_not_saved;
}
} );
// Set settings changed attribute, if any input was changed.
- $( ':input:not( #wp-mail-smtp-setting-license-key )', $settingPages ).on( 'change', function () {
+ $( ':input:not( #wp-mail-smtp-setting-license-key )', $settingPages ).on( 'change', function() {
app.pluginSettingsChanged = true;
} );
// Clear the settings changed attribute, if the settings are about to be saved.
- $( 'form', $settingPages ).on( 'submit', function () {
+ $( 'form', $settingPages ).on( 'submit', function() {
app.pluginSettingsChanged = false;
} );
}
@@ -276,7 +268,7 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || (function ( document, w
// Provide access to public functions/properties.
return app;
-})( document, window, jQuery );
+}( document, window, jQuery ) );
// Initialize.
WPMailSMTP.Admin.Settings.init();
diff --git a/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.min.js b/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.min.js
index 83979f4..747f550 100644
--- a/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.min.js
+++ b/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.min.js
@@ -1 +1 @@
-var WPMailSMTP=window.WPMailSMTP||{};WPMailSMTP.Admin=WPMailSMTP.Admin||{},WPMailSMTP.Admin.Settings=WPMailSMTP.Admin.Settings||function(i,e,a){"use strict";var n={pluginSettingsChanged:!1,init:function(){a(i).ready(n.ready)},ready:function(){n.pageHolder=a(".wp-mail-smtp-tab-settings"),a("#screen-meta-links, #screen-meta").prependTo("#wp-mail-smtp-header-temp").show(),n.bindActions()},bindActions:function(){a(".wp-mail-smtp-mailer-image",n.pageHolder).click(function(){a(this).parents(".wp-mail-smtp-mailer").find("input").trigger("click")}),a(".wp-mail-smtp-mailer input",n.pageHolder).click(function(){var t=a(this);if(t.prop("disabled"))return t.hasClass("educate")&&n.education.upgradeMailer(t),!1;a(".wp-mail-smtp-mailer",n.pageHolder).removeClass("active"),a(this).parents(".wp-mail-smtp-mailer").addClass("active"),a(".wp-mail-smtp-mailer-option",n.pageHolder).addClass("hidden").removeClass("active"),a(".wp-mail-smtp-mailer-option-"+a(this).val(),n.pageHolder).addClass("active").removeClass("hidden")}),n.mailers.smtp.bindActions(),a("#wp-mail-smtp-pro-banner-dismiss",n.pageHolder).on("click",function(){a.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{action:"wp_mail_smtp_ajax",task:"pro_banner_dismiss"}}).always(function(){a("#wp-mail-smtp-pro-banner",n.pageHolder).fadeOut("fast")})}),a(".js-wp-mail-smtp-mailer-notice-dismiss",n.pageHolder).on("click",function(t){t.preventDefault();var i=a(this),e=i.parents(".inline-notice");if(i.hasClass("disabled"))return!1;a.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{action:"wp_mail_smtp_ajax",task:"notice_dismiss",notice:e.data("notice"),mailer:e.data("mailer")},beforeSend:function(){i.addClass("disabled")}}).always(function(){e.fadeOut("fast",function(){i.removeClass("disabled")})})}),a("#wp-mail-smtp-debug .error-log-toggle").on("click",function(t){t.preventDefault(),a("#wp-mail-smtp-debug .error-log-toggle").find(".dashicons").toggleClass("dashicons-arrow-right-alt2 dashicons-arrow-down-alt2"),a("#wp-mail-smtp-debug .error-log").slideToggle(),a("#wp-mail-smtp-debug .error-log-note").toggle()}),a(".js-wp-mail-smtp-provider-remove",n.pageHolder).on("click",function(){return confirm(wp_mail_smtp.text_provider_remove)}),a(".wp-mail-smtp-setting-copy",n.pageHolder).click(function(t){t.preventDefault(),a("#"+a(this).data("source_id")).get(0).select(),i.execCommand("Copy")}),n.triggerExitNotice()},education:{upgradeMailer:function(t){a.alert({backgroundDismiss:!0,escapeKey:!0,animationBounce:1,theme:"modern",animateFromElement:!1,draggable:!1,closeIcon:!0,useBootstrap:!1,title:wp_mail_smtp.education.upgrade_title.replace(/%name%/g,t.siblings("label").text().trim()),icon:'">'+wp_mail_smtp.education.upgrade_icon_lock+''+wp_mail_smtp.education.upgrade_bonus+wp_mail_smtp.education.upgrade_doc+"")},buttons:{confirm:{text:wp_mail_smtp.education.upgrade_button,btnClass:"btn-confirm",keys:["enter"],action:function(){e.open(wp_mail_smtp.education.upgrade_url+"&utm_content="+encodeURI(t.val()),"_blank")}}}})}},mailers:{smtp:{bindActions:function(){a("#wp-mail-smtp-setting-smtp-auth").change(function(){a("#wp-mail-smtp-setting-row-smtp-user, #wp-mail-smtp-setting-row-smtp-pass").toggleClass("inactive")}),a("#wp-mail-smtp-setting-row-smtp-encryption input").change(function(){var t=a(this),i=a("#wp-mail-smtp-setting-smtp-port",n.pageHolder);"tls"===t.val()?(i.val("587"),a("#wp-mail-smtp-setting-row-smtp-autotls").addClass("inactive")):("ssl"===t.val()?i.val("465"):i.val("25"),a("#wp-mail-smtp-setting-row-smtp-autotls").removeClass("inactive"))})}}},triggerExitNotice:function(){var t=a(".wp-mail-smtp-page-general:not( .wp-mail-smtp-tab-test )");a(e).on("beforeunload",function(){if(n.pluginSettingsChanged)return wp_mail_smtp.text_settings_not_saved}),a(":input:not( #wp-mail-smtp-setting-license-key )",t).on("change",function(){n.pluginSettingsChanged=!0}),a("form",t).on("submit",function(){n.pluginSettingsChanged=!1})}};return n}(document,window,jQuery),WPMailSMTP.Admin.Settings.init();
\ No newline at end of file
+"use strict";var WPMailSMTP=window.WPMailSMTP||{};WPMailSMTP.Admin=WPMailSMTP.Admin||{},WPMailSMTP.Admin.Settings=WPMailSMTP.Admin.Settings||function(i,e,a){var n={pluginSettingsChanged:!1,init:function(){a(i).ready(n.ready)},ready:function(){n.pageHolder=a(".wp-mail-smtp-tab-settings"),a("#screen-meta-links, #screen-meta").prependTo("#wp-mail-smtp-header-temp").show(),n.bindActions()},bindActions:function(){a(".wp-mail-smtp-mailer-image",n.pageHolder).click(function(){a(this).parents(".wp-mail-smtp-mailer").find("input").trigger("click")}),a(".wp-mail-smtp-mailer input",n.pageHolder).click(function(){var t=a(this);if(t.prop("disabled"))return t.hasClass("educate")&&n.education.upgradeMailer(t),!1;a(".wp-mail-smtp-mailer",n.pageHolder).removeClass("active"),a(this).parents(".wp-mail-smtp-mailer").addClass("active"),a(".wp-mail-smtp-mailer-option",n.pageHolder).addClass("hidden").removeClass("active"),a(".wp-mail-smtp-mailer-option-"+a(this).val(),n.pageHolder).addClass("active").removeClass("hidden")}),n.mailers.smtp.bindActions(),a("#wp-mail-smtp-pro-banner-dismiss",n.pageHolder).on("click",function(){a.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{action:"wp_mail_smtp_ajax",task:"pro_banner_dismiss"}}).always(function(){a("#wp-mail-smtp-pro-banner",n.pageHolder).fadeOut("fast")})}),a(".js-wp-mail-smtp-mailer-notice-dismiss",n.pageHolder).on("click",function(t){t.preventDefault();var i=a(this),e=i.parents(".inline-notice");if(i.hasClass("disabled"))return!1;a.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{action:"wp_mail_smtp_ajax",task:"notice_dismiss",notice:e.data("notice"),mailer:e.data("mailer")},beforeSend:function(){i.addClass("disabled")}}).always(function(){e.fadeOut("fast",function(){i.removeClass("disabled")})})}),a("#wp-mail-smtp-debug .error-log-toggle").on("click",function(t){t.preventDefault(),a("#wp-mail-smtp-debug .error-log-toggle").find(".dashicons").toggleClass("dashicons-arrow-right-alt2 dashicons-arrow-down-alt2"),a("#wp-mail-smtp-debug .error-log").slideToggle(),a("#wp-mail-smtp-debug .error-log-note").toggle()}),a(".js-wp-mail-smtp-provider-remove",n.pageHolder).on("click",function(){return confirm(wp_mail_smtp.text_provider_remove)}),a(".wp-mail-smtp-setting-copy",n.pageHolder).click(function(t){t.preventDefault(),a("#"+a(this).data("source_id")).get(0).select(),i.execCommand("Copy")}),n.triggerExitNotice()},education:{upgradeMailer:function(t){a.alert({backgroundDismiss:!0,escapeKey:!0,animationBounce:1,theme:"modern",animateFromElement:!1,draggable:!1,closeIcon:!0,useBootstrap:!1,title:wp_mail_smtp.education.upgrade_title.replace(/%name%/g,t.siblings("label").text().trim()),icon:'">'+wp_mail_smtp.education.upgrade_icon_lock+''+wp_mail_smtp.education.upgrade_bonus+wp_mail_smtp.education.upgrade_doc+"")},buttons:{confirm:{text:wp_mail_smtp.education.upgrade_button,btnClass:"btn-confirm",keys:["enter"],action:function(){e.open(wp_mail_smtp.education.upgrade_url+"&utm_content="+encodeURI(t.val()),"_blank")}}}})}},mailers:{smtp:{bindActions:function(){a("#wp-mail-smtp-setting-smtp-auth").change(function(){a("#wp-mail-smtp-setting-row-smtp-user, #wp-mail-smtp-setting-row-smtp-pass").toggleClass("inactive")}),a("#wp-mail-smtp-setting-row-smtp-encryption input").change(function(){var t=a(this),i=a("#wp-mail-smtp-setting-smtp-port",n.pageHolder);"tls"===t.val()?(i.val("587"),a("#wp-mail-smtp-setting-row-smtp-autotls").addClass("inactive")):("ssl"===t.val()?i.val("465"):i.val("25"),a("#wp-mail-smtp-setting-row-smtp-autotls").removeClass("inactive"))})}}},triggerExitNotice:function(){var t=a(".wp-mail-smtp-page-general:not( .wp-mail-smtp-tab-test )");a(e).on("beforeunload",function(){if(n.pluginSettingsChanged)return wp_mail_smtp.text_settings_not_saved}),a(":input:not( #wp-mail-smtp-setting-license-key )",t).on("change",function(){n.pluginSettingsChanged=!0}),a("form",t).on("submit",function(){n.pluginSettingsChanged=!1})}};return n}(document,window,jQuery),WPMailSMTP.Admin.Settings.init();
\ No newline at end of file
diff --git a/wp-content/plugins/wp-mail-smtp/assets/js/jquery.matchHeight.js b/wp-content/plugins/wp-mail-smtp/assets/js/vendor/jquery.matchHeight.js
similarity index 96%
rename from wp-content/plugins/wp-mail-smtp/assets/js/jquery.matchHeight.js
rename to wp-content/plugins/wp-mail-smtp/assets/js/vendor/jquery.matchHeight.js
index 993aa94..48925b5 100644
--- a/wp-content/plugins/wp-mail-smtp/assets/js/jquery.matchHeight.js
+++ b/wp-content/plugins/wp-mail-smtp/assets/js/vendor/jquery.matchHeight.js
@@ -1,388 +1,388 @@
-/**
-* jquery-match-height 0.7.2 by @liabru
-* http://brm.io/jquery-match-height/
-* License: MIT
-*/
-
-;(function(factory) { // eslint-disable-line no-extra-semi
- 'use strict';
- if (typeof define === 'function' && define.amd) {
- // AMD
- define(['jquery'], factory);
- } else if (typeof module !== 'undefined' && module.exports) {
- // CommonJS
- module.exports = factory(require('jquery'));
- } else {
- // Global
- factory(jQuery);
- }
-})(function($) {
- /*
- * internal
- */
-
- var _previousResizeWidth = -1,
- _updateTimeout = -1;
-
- /*
- * _parse
- * value parse utility function
- */
-
- var _parse = function(value) {
- // parse value and convert NaN to 0
- return parseFloat(value) || 0;
- };
-
- /*
- * _rows
- * utility function returns array of jQuery selections representing each row
- * (as displayed after float wrapping applied by browser)
- */
-
- var _rows = function(elements) {
- var tolerance = 1,
- $elements = $(elements),
- lastTop = null,
- rows = [];
-
- // group elements by their top position
- $elements.each(function(){
- var $that = $(this),
- top = $that.offset().top - _parse($that.css('margin-top')),
- lastRow = rows.length > 0 ? rows[rows.length - 1] : null;
-
- if (lastRow === null) {
- // first item on the row, so just push it
- rows.push($that);
- } else {
- // if the row top is the same, add to the row group
- if (Math.floor(Math.abs(lastTop - top)) <= tolerance) {
- rows[rows.length - 1] = lastRow.add($that);
- } else {
- // otherwise start a new row group
- rows.push($that);
- }
- }
-
- // keep track of the last row top
- lastTop = top;
- });
-
- return rows;
- };
-
- /*
- * _parseOptions
- * handle plugin options
- */
-
- var _parseOptions = function(options) {
- var opts = {
- byRow: true,
- property: 'height',
- target: null,
- remove: false
- };
-
- if (typeof options === 'object') {
- return $.extend(opts, options);
- }
-
- if (typeof options === 'boolean') {
- opts.byRow = options;
- } else if (options === 'remove') {
- opts.remove = true;
- }
-
- return opts;
- };
-
- /*
- * matchHeight
- * plugin definition
- */
-
- var matchHeight = $.fn.matchHeight = function(options) {
- var opts = _parseOptions(options);
-
- // handle remove
- if (opts.remove) {
- var that = this;
-
- // remove fixed height from all selected elements
- this.css(opts.property, '');
-
- // remove selected elements from all groups
- $.each(matchHeight._groups, function(key, group) {
- group.elements = group.elements.not(that);
- });
-
- // TODO: cleanup empty groups
-
- return this;
- }
-
- if (this.length <= 1 && !opts.target) {
- return this;
- }
-
- // keep track of this group so we can re-apply later on load and resize events
- matchHeight._groups.push({
- elements: this,
- options: opts
- });
-
- // match each element's height to the tallest element in the selection
- matchHeight._apply(this, opts);
-
- return this;
- };
-
- /*
- * plugin global options
- */
-
- matchHeight.version = '0.7.2';
- matchHeight._groups = [];
- matchHeight._throttle = 80;
- matchHeight._maintainScroll = false;
- matchHeight._beforeUpdate = null;
- matchHeight._afterUpdate = null;
- matchHeight._rows = _rows;
- matchHeight._parse = _parse;
- matchHeight._parseOptions = _parseOptions;
-
- /*
- * matchHeight._apply
- * apply matchHeight to given elements
- */
-
- matchHeight._apply = function(elements, options) {
- var opts = _parseOptions(options),
- $elements = $(elements),
- rows = [$elements];
-
- // take note of scroll position
- var scrollTop = $(window).scrollTop(),
- htmlHeight = $('html').outerHeight(true);
-
- // get hidden parents
- var $hiddenParents = $elements.parents().filter(':hidden');
-
- // cache the original inline style
- $hiddenParents.each(function() {
- var $that = $(this);
- $that.data('style-cache', $that.attr('style'));
- });
-
- // temporarily must force hidden parents visible
- $hiddenParents.css('display', 'block');
-
- // get rows if using byRow, otherwise assume one row
- if (opts.byRow && !opts.target) {
-
- // must first force an arbitrary equal height so floating elements break evenly
- $elements.each(function() {
- var $that = $(this),
- display = $that.css('display');
-
- // temporarily force a usable display value
- if (display !== 'inline-block' && display !== 'flex' && display !== 'inline-flex') {
- display = 'block';
- }
-
- // cache the original inline style
- $that.data('style-cache', $that.attr('style'));
-
- $that.css({
- 'display': display,
- 'padding-top': '0',
- 'padding-bottom': '0',
- 'margin-top': '0',
- 'margin-bottom': '0',
- 'border-top-width': '0',
- 'border-bottom-width': '0',
- 'height': '100px',
- 'overflow': 'hidden'
- });
- });
-
- // get the array of rows (based on element top position)
- rows = _rows($elements);
-
- // revert original inline styles
- $elements.each(function() {
- var $that = $(this);
- $that.attr('style', $that.data('style-cache') || '');
- });
- }
-
- $.each(rows, function(key, row) {
- var $row = $(row),
- targetHeight = 0;
-
- if (!opts.target) {
- // skip apply to rows with only one item
- if (opts.byRow && $row.length <= 1) {
- $row.css(opts.property, '');
- return;
- }
-
- // iterate the row and find the max height
- $row.each(function(){
- var $that = $(this),
- style = $that.attr('style'),
- display = $that.css('display');
-
- // temporarily force a usable display value
- if (display !== 'inline-block' && display !== 'flex' && display !== 'inline-flex') {
- display = 'block';
- }
-
- // ensure we get the correct actual height (and not a previously set height value)
- var css = { 'display': display };
- css[opts.property] = '';
- $that.css(css);
-
- // find the max height (including padding, but not margin)
- if ($that.outerHeight(false) > targetHeight) {
- targetHeight = $that.outerHeight(false);
- }
-
- // revert styles
- if (style) {
- $that.attr('style', style);
- } else {
- $that.css('display', '');
- }
- });
- } else {
- // if target set, use the height of the target element
- targetHeight = opts.target.outerHeight(false);
- }
-
- // iterate the row and apply the height to all elements
- $row.each(function(){
- var $that = $(this),
- verticalPadding = 0;
-
- // don't apply to a target
- if (opts.target && $that.is(opts.target)) {
- return;
- }
-
- // handle padding and border correctly (required when not using border-box)
- if ($that.css('box-sizing') !== 'border-box') {
- verticalPadding += _parse($that.css('border-top-width')) + _parse($that.css('border-bottom-width'));
- verticalPadding += _parse($that.css('padding-top')) + _parse($that.css('padding-bottom'));
- }
-
- // set the height (accounting for padding and border)
- $that.css(opts.property, (targetHeight - verticalPadding) + 'px');
- });
- });
-
- // revert hidden parents
- $hiddenParents.each(function() {
- var $that = $(this);
- $that.attr('style', $that.data('style-cache') || null);
- });
-
- // restore scroll position if enabled
- if (matchHeight._maintainScroll) {
- $(window).scrollTop((scrollTop / htmlHeight) * $('html').outerHeight(true));
- }
-
- return this;
- };
-
- /*
- * matchHeight._applyDataApi
- * applies matchHeight to all elements with a data-match-height attribute
- */
-
- matchHeight._applyDataApi = function() {
- var groups = {};
-
- // generate groups by their groupId set by elements using data-match-height
- $('[data-match-height], [data-mh]').each(function() {
- var $this = $(this),
- groupId = $this.attr('data-mh') || $this.attr('data-match-height');
-
- if (groupId in groups) {
- groups[groupId] = groups[groupId].add($this);
- } else {
- groups[groupId] = $this;
- }
- });
-
- // apply matchHeight to each group
- $.each(groups, function() {
- this.matchHeight(true);
- });
- };
-
- /*
- * matchHeight._update
- * updates matchHeight on all current groups with their correct options
- */
-
- var _update = function(event) {
- if (matchHeight._beforeUpdate) {
- matchHeight._beforeUpdate(event, matchHeight._groups);
- }
-
- $.each(matchHeight._groups, function() {
- matchHeight._apply(this.elements, this.options);
- });
-
- if (matchHeight._afterUpdate) {
- matchHeight._afterUpdate(event, matchHeight._groups);
- }
- };
-
- matchHeight._update = function(throttle, event) {
- // prevent update if fired from a resize event
- // where the viewport width hasn't actually changed
- // fixes an event looping bug in IE8
- if (event && event.type === 'resize') {
- var windowWidth = $(window).width();
- if (windowWidth === _previousResizeWidth) {
- return;
- }
- _previousResizeWidth = windowWidth;
- }
-
- // throttle updates
- if (!throttle) {
- _update(event);
- } else if (_updateTimeout === -1) {
- _updateTimeout = setTimeout(function() {
- _update(event);
- _updateTimeout = -1;
- }, matchHeight._throttle);
- }
- };
-
- /*
- * bind events
- */
-
- // apply on DOM ready event
- $(matchHeight._applyDataApi);
-
- // use on or bind where supported
- var on = $.fn.on ? 'on' : 'bind';
-
- // update heights on load and resize events
- $(window)[on]('load', function(event) {
- matchHeight._update(false, event);
- });
-
- // throttled update heights on resize events
- $(window)[on]('resize orientationchange', function(event) {
- matchHeight._update(true, event);
- });
-
-});
+/**
+* jquery-match-height 0.7.2 by @liabru
+* http://brm.io/jquery-match-height/
+* License: MIT
+*/
+
+;(function(factory) { // eslint-disable-line no-extra-semi
+ 'use strict';
+ if (typeof define === 'function' && define.amd) {
+ // AMD
+ define(['jquery'], factory);
+ } else if (typeof module !== 'undefined' && module.exports) {
+ // CommonJS
+ module.exports = factory(require('jquery'));
+ } else {
+ // Global
+ factory(jQuery);
+ }
+})(function($) {
+ /*
+ * internal
+ */
+
+ var _previousResizeWidth = -1,
+ _updateTimeout = -1;
+
+ /*
+ * _parse
+ * value parse utility function
+ */
+
+ var _parse = function(value) {
+ // parse value and convert NaN to 0
+ return parseFloat(value) || 0;
+ };
+
+ /*
+ * _rows
+ * utility function returns array of jQuery selections representing each row
+ * (as displayed after float wrapping applied by browser)
+ */
+
+ var _rows = function(elements) {
+ var tolerance = 1,
+ $elements = $(elements),
+ lastTop = null,
+ rows = [];
+
+ // group elements by their top position
+ $elements.each(function(){
+ var $that = $(this),
+ top = $that.offset().top - _parse($that.css('margin-top')),
+ lastRow = rows.length > 0 ? rows[rows.length - 1] : null;
+
+ if (lastRow === null) {
+ // first item on the row, so just push it
+ rows.push($that);
+ } else {
+ // if the row top is the same, add to the row group
+ if (Math.floor(Math.abs(lastTop - top)) <= tolerance) {
+ rows[rows.length - 1] = lastRow.add($that);
+ } else {
+ // otherwise start a new row group
+ rows.push($that);
+ }
+ }
+
+ // keep track of the last row top
+ lastTop = top;
+ });
+
+ return rows;
+ };
+
+ /*
+ * _parseOptions
+ * handle plugin options
+ */
+
+ var _parseOptions = function(options) {
+ var opts = {
+ byRow: true,
+ property: 'height',
+ target: null,
+ remove: false
+ };
+
+ if (typeof options === 'object') {
+ return $.extend(opts, options);
+ }
+
+ if (typeof options === 'boolean') {
+ opts.byRow = options;
+ } else if (options === 'remove') {
+ opts.remove = true;
+ }
+
+ return opts;
+ };
+
+ /*
+ * matchHeight
+ * plugin definition
+ */
+
+ var matchHeight = $.fn.matchHeight = function(options) {
+ var opts = _parseOptions(options);
+
+ // handle remove
+ if (opts.remove) {
+ var that = this;
+
+ // remove fixed height from all selected elements
+ this.css(opts.property, '');
+
+ // remove selected elements from all groups
+ $.each(matchHeight._groups, function(key, group) {
+ group.elements = group.elements.not(that);
+ });
+
+ // TODO: cleanup empty groups
+
+ return this;
+ }
+
+ if (this.length <= 1 && !opts.target) {
+ return this;
+ }
+
+ // keep track of this group so we can re-apply later on load and resize events
+ matchHeight._groups.push({
+ elements: this,
+ options: opts
+ });
+
+ // match each element's height to the tallest element in the selection
+ matchHeight._apply(this, opts);
+
+ return this;
+ };
+
+ /*
+ * plugin global options
+ */
+
+ matchHeight.version = '0.7.2';
+ matchHeight._groups = [];
+ matchHeight._throttle = 80;
+ matchHeight._maintainScroll = false;
+ matchHeight._beforeUpdate = null;
+ matchHeight._afterUpdate = null;
+ matchHeight._rows = _rows;
+ matchHeight._parse = _parse;
+ matchHeight._parseOptions = _parseOptions;
+
+ /*
+ * matchHeight._apply
+ * apply matchHeight to given elements
+ */
+
+ matchHeight._apply = function(elements, options) {
+ var opts = _parseOptions(options),
+ $elements = $(elements),
+ rows = [$elements];
+
+ // take note of scroll position
+ var scrollTop = $(window).scrollTop(),
+ htmlHeight = $('html').outerHeight(true);
+
+ // get hidden parents
+ var $hiddenParents = $elements.parents().filter(':hidden');
+
+ // cache the original inline style
+ $hiddenParents.each(function() {
+ var $that = $(this);
+ $that.data('style-cache', $that.attr('style'));
+ });
+
+ // temporarily must force hidden parents visible
+ $hiddenParents.css('display', 'block');
+
+ // get rows if using byRow, otherwise assume one row
+ if (opts.byRow && !opts.target) {
+
+ // must first force an arbitrary equal height so floating elements break evenly
+ $elements.each(function() {
+ var $that = $(this),
+ display = $that.css('display');
+
+ // temporarily force a usable display value
+ if (display !== 'inline-block' && display !== 'flex' && display !== 'inline-flex') {
+ display = 'block';
+ }
+
+ // cache the original inline style
+ $that.data('style-cache', $that.attr('style'));
+
+ $that.css({
+ 'display': display,
+ 'padding-top': '0',
+ 'padding-bottom': '0',
+ 'margin-top': '0',
+ 'margin-bottom': '0',
+ 'border-top-width': '0',
+ 'border-bottom-width': '0',
+ 'height': '100px',
+ 'overflow': 'hidden'
+ });
+ });
+
+ // get the array of rows (based on element top position)
+ rows = _rows($elements);
+
+ // revert original inline styles
+ $elements.each(function() {
+ var $that = $(this);
+ $that.attr('style', $that.data('style-cache') || '');
+ });
+ }
+
+ $.each(rows, function(key, row) {
+ var $row = $(row),
+ targetHeight = 0;
+
+ if (!opts.target) {
+ // skip apply to rows with only one item
+ if (opts.byRow && $row.length <= 1) {
+ $row.css(opts.property, '');
+ return;
+ }
+
+ // iterate the row and find the max height
+ $row.each(function(){
+ var $that = $(this),
+ style = $that.attr('style'),
+ display = $that.css('display');
+
+ // temporarily force a usable display value
+ if (display !== 'inline-block' && display !== 'flex' && display !== 'inline-flex') {
+ display = 'block';
+ }
+
+ // ensure we get the correct actual height (and not a previously set height value)
+ var css = { 'display': display };
+ css[opts.property] = '';
+ $that.css(css);
+
+ // find the max height (including padding, but not margin)
+ if ($that.outerHeight(false) > targetHeight) {
+ targetHeight = $that.outerHeight(false);
+ }
+
+ // revert styles
+ if (style) {
+ $that.attr('style', style);
+ } else {
+ $that.css('display', '');
+ }
+ });
+ } else {
+ // if target set, use the height of the target element
+ targetHeight = opts.target.outerHeight(false);
+ }
+
+ // iterate the row and apply the height to all elements
+ $row.each(function(){
+ var $that = $(this),
+ verticalPadding = 0;
+
+ // don't apply to a target
+ if (opts.target && $that.is(opts.target)) {
+ return;
+ }
+
+ // handle padding and border correctly (required when not using border-box)
+ if ($that.css('box-sizing') !== 'border-box') {
+ verticalPadding += _parse($that.css('border-top-width')) + _parse($that.css('border-bottom-width'));
+ verticalPadding += _parse($that.css('padding-top')) + _parse($that.css('padding-bottom'));
+ }
+
+ // set the height (accounting for padding and border)
+ $that.css(opts.property, (targetHeight - verticalPadding) + 'px');
+ });
+ });
+
+ // revert hidden parents
+ $hiddenParents.each(function() {
+ var $that = $(this);
+ $that.attr('style', $that.data('style-cache') || null);
+ });
+
+ // restore scroll position if enabled
+ if (matchHeight._maintainScroll) {
+ $(window).scrollTop((scrollTop / htmlHeight) * $('html').outerHeight(true));
+ }
+
+ return this;
+ };
+
+ /*
+ * matchHeight._applyDataApi
+ * applies matchHeight to all elements with a data-match-height attribute
+ */
+
+ matchHeight._applyDataApi = function() {
+ var groups = {};
+
+ // generate groups by their groupId set by elements using data-match-height
+ $('[data-match-height], [data-mh]').each(function() {
+ var $this = $(this),
+ groupId = $this.attr('data-mh') || $this.attr('data-match-height');
+
+ if (groupId in groups) {
+ groups[groupId] = groups[groupId].add($this);
+ } else {
+ groups[groupId] = $this;
+ }
+ });
+
+ // apply matchHeight to each group
+ $.each(groups, function() {
+ this.matchHeight(true);
+ });
+ };
+
+ /*
+ * matchHeight._update
+ * updates matchHeight on all current groups with their correct options
+ */
+
+ var _update = function(event) {
+ if (matchHeight._beforeUpdate) {
+ matchHeight._beforeUpdate(event, matchHeight._groups);
+ }
+
+ $.each(matchHeight._groups, function() {
+ matchHeight._apply(this.elements, this.options);
+ });
+
+ if (matchHeight._afterUpdate) {
+ matchHeight._afterUpdate(event, matchHeight._groups);
+ }
+ };
+
+ matchHeight._update = function(throttle, event) {
+ // prevent update if fired from a resize event
+ // where the viewport width hasn't actually changed
+ // fixes an event looping bug in IE8
+ if (event && event.type === 'resize') {
+ var windowWidth = $(window).width();
+ if (windowWidth === _previousResizeWidth) {
+ return;
+ }
+ _previousResizeWidth = windowWidth;
+ }
+
+ // throttle updates
+ if (!throttle) {
+ _update(event);
+ } else if (_updateTimeout === -1) {
+ _updateTimeout = setTimeout(function() {
+ _update(event);
+ _updateTimeout = -1;
+ }, matchHeight._throttle);
+ }
+ };
+
+ /*
+ * bind events
+ */
+
+ // apply on DOM ready event
+ $(matchHeight._applyDataApi);
+
+ // use on or bind where supported
+ var on = $.fn.on ? 'on' : 'bind';
+
+ // update heights on load and resize events
+ $(window)[on]('load', function(event) {
+ matchHeight._update(false, event);
+ });
+
+ // throttled update heights on resize events
+ $(window)[on]('resize orientationchange', function(event) {
+ matchHeight._update(true, event);
+ });
+
+});
diff --git a/wp-content/plugins/wp-mail-smtp/assets/js/vendor/jquery.matchHeight.min.js b/wp-content/plugins/wp-mail-smtp/assets/js/vendor/jquery.matchHeight.min.js
new file mode 100644
index 0000000..fc942dd
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/assets/js/vendor/jquery.matchHeight.min.js
@@ -0,0 +1 @@
+!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(l){function c(t){return parseFloat(t)||0}function h(t){var e=l(t),n=null,a=[];return e.each(function(){var t=l(this),e=t.offset().top-c(t.css("margin-top")),o=0a&&(a=t.outerHeight(!1)),e?t.attr("style",e):t.css("display","")})}o.each(function(){var t=l(this),e=0;i.target&&t.is(i.target)||("border-box"!==t.css("box-sizing")&&(e+=c(t.css("border-top-width"))+c(t.css("border-bottom-width")),e+=c(t.css("padding-top"))+c(t.css("padding-bottom"))),t.css(i.property,a-e+"px"))})}),s.each(function(){var t=l(this);t.attr("style",t.data("style-cache")||null)}),d._maintainScroll&&l(window).scrollTop(a/r*l("html").outerHeight(!0)),this},d._applyDataApi=function(){var o={};l("[data-match-height], [data-mh]").each(function(){var t=l(this),e=t.attr("data-mh")||t.attr("data-match-height");o[e]=e in o?o[e].add(t):t}),l.each(o,function(){this.matchHeight(!0)})};function i(t){d._beforeUpdate&&d._beforeUpdate(t,d._groups),l.each(d._groups,function(){d._apply(this.elements,this.options)}),d._afterUpdate&&d._afterUpdate(t,d._groups)}d._update=function(t,e){if(e&&"resize"===e.type){var o=l(window).width();if(o===n)return;n=o}t?-1===a&&(a=setTimeout(function(){i(e),a=-1},d._throttle)):i(e)},l(d._applyDataApi);var t=l.fn.on?"on":"bind";l(window)[t]("load",function(t){d._update(!1,t)}),l(window)[t]("resize orientationchange",function(t){d._update(!0,t)})});
\ No newline at end of file
diff --git a/wp-content/plugins/wp-mail-smtp/assets/languages/wp-mail-smtp.pot b/wp-content/plugins/wp-mail-smtp/assets/languages/wp-mail-smtp.pot
index 4fb462c..e1c8675 100644
--- a/wp-content/plugins/wp-mail-smtp/assets/languages/wp-mail-smtp.pot
+++ b/wp-content/plugins/wp-mail-smtp/assets/languages/wp-mail-smtp.pot
@@ -1,13 +1,13 @@
msgid ""
msgstr ""
-"Project-Id-Version: WP Mail SMTP 1.9.0\n"
+"Project-Id-Version: WP Mail SMTP 2.0.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-mail-smtp\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2020-03-23T16:26:08+02:00\n"
+"POT-Creation-Date: 2020-04-27T12:51:41+03:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.4.0\n"
"X-Domain: wp-mail-smtp\n"
@@ -61,106 +61,115 @@ msgstr ""
#: src/Admin/Area.php:197
#: src/Admin/Area.php:198
#: src/SiteHealth.php:40
-#: wp-mail-smtp-0.11.2.php:582
msgid "WP Mail SMTP"
msgstr ""
#: src/Admin/Area.php:208
#: src/Admin/Area.php:209
-#: src/Admin/Area.php:795
-#: wp-mail-smtp-0.11.2.php:688
+#: src/Admin/Area.php:802
msgid "Settings"
msgstr ""
#: src/Admin/Area.php:216
#: src/Admin/Area.php:217
-#: src/Admin/Area.php:796
#: src/Admin/Pages/About.php:627
#: src/Admin/Pages/Logs.php:40
#: src/Admin/Pages/LogsTab.php:31
msgid "Email Log"
msgstr ""
-#: src/Admin/Area.php:224
-#: src/Admin/Area.php:225
+#: src/Admin/Area.php:226
+#: src/Admin/Area.php:227
#: src/Admin/Pages/About.php:105
msgid "About Us"
msgstr ""
-#: src/Admin/Area.php:267
+#: src/Admin/Area.php:270
msgid "Are you sure you want to reset the current provider connection? You will need to immediately create a new one to be able to send emails."
msgstr ""
-#: src/Admin/Area.php:268
+#: src/Admin/Area.php:271
msgid "Changes that you made to the settings are not saved!"
msgstr ""
-#: src/Admin/Area.php:271
+#: src/Admin/Area.php:274
msgid "%name% is a PRO Feature"
msgstr ""
-#: src/Admin/Area.php:272
+#: src/Admin/Area.php:275
msgid "Upgrade to Pro"
msgstr ""
-#: src/Admin/Area.php:276
-msgid "Bonus: WP Mail SMTP users get 20% off regular price, applied at checkout."
+#: src/Admin/Area.php:279
+msgid "Bonus: WP Mail SMTP users get $50 off regular price, applied at checkout."
msgstr ""
-#: src/Admin/Area.php:285
+#: src/Admin/Area.php:288
msgid "Already purchased?"
msgstr ""
-#: src/Admin/Area.php:352
-#: src/Admin/Area.php:359
+#: src/Admin/Area.php:355
+#: src/Admin/Area.php:362
#: src/Admin/Pages/About.php:308
msgid "Activate"
msgstr ""
-#: src/Admin/Area.php:353
+#: src/Admin/Area.php:356
#: src/Admin/Pages/About.php:300
msgid "Activated"
msgstr ""
-#: src/Admin/Area.php:354
+#: src/Admin/Area.php:357
#: src/Admin/Pages/About.php:297
msgid "Active"
msgstr ""
-#: src/Admin/Area.php:355
+#: src/Admin/Area.php:358
#: src/Admin/Pages/About.php:305
msgid "Inactive"
msgstr ""
-#: src/Admin/Area.php:356
+#: src/Admin/Area.php:359
msgid "Processing..."
msgstr ""
-#: src/Admin/Area.php:357
+#: src/Admin/Area.php:360
msgid "Could not install a plugin. Please download from WordPress.org and install manually."
msgstr ""
-#: src/Admin/Area.php:358
+#: src/Admin/Area.php:361
msgid "Install and Activate"
msgstr ""
-#: src/Admin/Area.php:360
+#: src/Admin/Area.php:363
msgid "Download"
msgstr ""
#. translators: %1$s - WP.org link; %2$s - same WP.org link.
-#: src/Admin/Area.php:420
+#: src/Admin/Area.php:423
msgid "Please rate WP Mail SMTP★★★★★ on WordPress.org to help us spread the word. Thank you from the WP Mail SMTP team!"
msgstr ""
-#: src/Admin/Area.php:740
+#: src/Admin/Area.php:743
msgid "WP Mail SMTP Pro related message was successfully dismissed."
msgstr ""
-#: src/Admin/Area.php:759
+#: src/Admin/Area.php:762
msgid "Educational notice for this mailer was successfully dismissed."
msgstr ""
+#: src/Admin/Area.php:801
+msgid "Go to WP Mail SMTP Settings page"
+msgstr ""
+
+#: src/Admin/Area.php:808
+msgid "Go to WP Mail SMTP Lite vs Pro comparison page"
+msgstr ""
+
+#: src/Admin/Area.php:809
+msgid "Premium Support"
+msgstr ""
+
#: src/Admin/PageAbstract.php:81
msgid "Save Settings"
msgstr ""
@@ -297,7 +306,7 @@ msgid "Get WP Mail SMTP Pro Today and Unlock all of these Powerful Features"
msgstr ""
#: src/Admin/Pages/About.php:601
-msgid "Bonus: WP Mail SMTP Lite users get 20% off regular price, automatically applied at checkout."
+msgid "Bonus: WP Mail SMTP Lite users get $50 off regular price, automatically applied at checkout."
msgstr ""
#: src/Admin/Pages/About.php:628
@@ -451,7 +460,6 @@ msgid "Test emails are allowed to be sent, regardless of this option."
msgstr ""
#. translators: %1$s - constant that was used; %2$s - file where it was used.
-#. translators: %1$s - constant name, %2$s - file name.
#: src/Admin/Pages/MiscTab.php:86
#: src/Providers/OptionsAbstract.php:468
msgid "The value of this field was set using a constant %1$s most likely inside %2$s of your WordPress installation."
@@ -496,7 +504,7 @@ msgid "Check this if you would like to remove ALL WP Mail SMTP data upon plugin
msgstr ""
#: src/Admin/Pages/MiscTab.php:215
-#: src/Admin/Pages/SettingsTab.php:542
+#: src/Admin/Pages/SettingsTab.php:540
msgid "Settings were successfully saved."
msgstr ""
@@ -521,7 +529,6 @@ msgid "Mail"
msgstr ""
#: src/Admin/Pages/SettingsTab.php:92
-#: wp-mail-smtp-0.11.2.php:246
msgid "From Email"
msgstr ""
@@ -550,7 +557,6 @@ msgid "If checked, the From Email setting above will be used for all emails, ign
msgstr ""
#: src/Admin/Pages/SettingsTab.php:138
-#: wp-mail-smtp-0.11.2.php:265
msgid "From Name"
msgstr ""
@@ -571,18 +577,14 @@ msgid "If checked, the From Name setting above will be used for all emails, igno
msgstr ""
#: src/Admin/Pages/SettingsTab.php:179
-#: wp-mail-smtp-0.11.2.php:321
-#: wp-mail-smtp-0.11.2.php:326
msgid "Return Path"
msgstr ""
#: src/Admin/Pages/SettingsTab.php:188
-#: wp-mail-smtp-0.11.2.php:331
msgid "Set the return-path to match the From Email"
msgstr ""
#: src/Admin/Pages/SettingsTab.php:192
-#: wp-mail-smtp-0.11.2.php:335
msgid "Return Path indicates where non-delivery receipts - or bounce messages - are to be sent."
msgstr ""
@@ -591,104 +593,105 @@ msgid "If unchecked, bounce messages may be lost. Some providers may ignore this
msgstr ""
#: src/Admin/Pages/SettingsTab.php:201
-#: wp-mail-smtp-0.11.2.php:280
-#: wp-mail-smtp-0.11.2.php:285
msgid "Mailer"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:241
-#: src/Admin/Pages/SettingsTab.php:245
+#: src/Admin/Pages/SettingsTab.php:242
+msgid "Don't see what you're looking for?"
+msgstr ""
+
+#: src/Admin/Pages/SettingsTab.php:244
msgid "Suggest a Mailer"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:274
+#: src/Admin/Pages/SettingsTab.php:272
msgid "Dismiss this notice"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:316
+#: src/Admin/Pages/SettingsTab.php:314
msgid "You're using WP Mail SMTP Lite - no license needed. Enjoy!"
msgstr ""
#. translators: %s - WPMailSMTP.com upgrade URL.
-#: src/Admin/Pages/SettingsTab.php:322
+#: src/Admin/Pages/SettingsTab.php:320
msgid "To unlock more features consider upgrading to PRO."
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:341
-msgid "As a valued WP Mail SMTP Lite user you receive 20% off, automatically applied at checkout!"
+#: src/Admin/Pages/SettingsTab.php:339
+msgid "As a valued WP Mail SMTP Lite user you receive $50 off, automatically applied at checkout!"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:402
+#: src/Admin/Pages/SettingsTab.php:400
msgid "Get WP Mail SMTP Pro and Unlock all the Powerful Features"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:406
+#: src/Admin/Pages/SettingsTab.php:404
msgid "Thanks for being a loyal WP Mail SMTP user. Upgrade to WP Mail SMTP Pro to unlock more awesome features and experience why WP Mail SMTP is the most popular SMTP plugin."
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:410
+#: src/Admin/Pages/SettingsTab.php:408
msgid "We know that you will truly love WP Mail SMTP. It's used by over 1,000,000 websites."
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:413
+#: src/Admin/Pages/SettingsTab.php:411
msgid "Pro Features:"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:417
+#: src/Admin/Pages/SettingsTab.php:415
msgid "Manage Notifications - control which emails your site sends"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:418
+#: src/Admin/Pages/SettingsTab.php:416
msgid "Email Logging - keep track of every email sent from your site"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:419
+#: src/Admin/Pages/SettingsTab.php:417
msgid "Office 365 - send emails using your Office 365 account"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:420
+#: src/Admin/Pages/SettingsTab.php:418
msgid "Amazon SES - harness the power of AWS"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:421
+#: src/Admin/Pages/SettingsTab.php:419
msgid "Outlook.com - send emails using your Outlook.com account"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:422
+#: src/Admin/Pages/SettingsTab.php:420
msgid "Access to our world class support team"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:425
+#: src/Admin/Pages/SettingsTab.php:423
msgid "White Glove Setup - sit back and relax while we handle everything for you"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:426
+#: src/Admin/Pages/SettingsTab.php:424
msgid "Install WP Mail SMTP Pro plugin"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:427
+#: src/Admin/Pages/SettingsTab.php:425
msgid "Set up domain name verification (DNS)"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:428
+#: src/Admin/Pages/SettingsTab.php:426
msgid "Configure Mailgun service"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:429
+#: src/Admin/Pages/SettingsTab.php:427
msgid "Set up WP Mail SMTP Pro plugin"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:430
+#: src/Admin/Pages/SettingsTab.php:428
msgid "Test and verify email delivery"
msgstr ""
#. translators: %s - WPMailSMTP.com URL.
-#: src/Admin/Pages/SettingsTab.php:438
+#: src/Admin/Pages/SettingsTab.php:436
msgid "Get WP Mail SMTP Pro Today and Unlock all the Powerful Features »"
msgstr ""
-#: src/Admin/Pages/SettingsTab.php:456
-msgid "Bonus: WP Mail SMTP users get 20% off regular price, automatically applied at checkout."
+#: src/Admin/Pages/SettingsTab.php:454
+msgid "Bonus: WP Mail SMTP users get $50 off regular price, automatically applied at checkout."
msgstr ""
#: src/Admin/Pages/TestTab.php:37
@@ -696,7 +699,6 @@ msgid "Email Test"
msgstr ""
#: src/Admin/Pages/TestTab.php:59
-#: wp-mail-smtp-0.11.2.php:528
msgid "Send a Test Email"
msgstr ""
@@ -1086,7 +1088,7 @@ msgstr ""
msgid "Make sure that the used Client ID/Secret correspond to a proper project that has Gmail API enabled."
msgstr ""
-#. translators: %s - WPForms.com tutorial URL.
+#. translators: %s - Gmail documentation URL.
#: src/Admin/Pages/TestTab.php:897
msgid "Please follow our Gmail tutorial to be sure that all the correct project and data is applied."
msgstr ""
@@ -1158,7 +1160,7 @@ msgid "Additionally, you can take advantage of our White Glove Setup. Sit back a
msgstr ""
#: src/Admin/Pages/TestTab.php:1066
-msgid "As a valued WP Mail SMTP user, you will get 20% off regular pricing, automatically applied at checkout!"
+msgid "As a valued WP Mail SMTP user, you will get $50 off regular pricing, automatically applied at checkout!"
msgstr ""
#. translators: %1$s - WP Mail SMTP support policy URL, %2$s - WP Mail SMTP support forum URL, %3$s - WPMailSMTP.com URL.
@@ -1179,46 +1181,36 @@ msgstr ""
msgid "Heads up! WP Mail SMTP has detected %1$s is activated. Please deactivate %2$s to prevent conflicts."
msgstr ""
-#. translators: %1$s - WPBeginner URL for recommended WordPress hosting.
-#: src/Core.php:106
-msgid "Your site is running an insecure version of PHP that is no longer supported. Please contact your web hosting provider to update your PHP version or switch to a recommended WordPress hosting company."
-msgstr ""
-
-#. translators: %s - WPForms.com docs URL with more details.
-#: src/Core.php:123
-msgid "Note: WP Mail SMTP plugin is disabled on your site until you fix the issue. Read more for additional information."
-msgstr ""
-
-#. translators: %1$s - WP Mail SMTP plugin name; %2$s - WPForms.com URL to a related doc.
-#: src/Core.php:399
+#. translators: %1$s - WP Mail SMTP plugin name; %2$s - WPMailSMTP.com URL to a related doc.
+#: src/Core.php:342
msgid "Your site is running an outdated version of PHP that is no longer supported and may cause issues with %1$s. Read more for additional information."
msgstr ""
-#: src/Core.php:413
-msgid "Please Note: Support for PHP 5.3-5.5 will be discontinued in 2020. After this, if no further action is taken, WP Mail SMTP functionality will be disabled."
+#: src/Core.php:356
+msgid "Please Note: Support for PHP 5.5 will be discontinued in 2020. After this, if no further action is taken, WP Mail SMTP functionality will be disabled."
msgstr ""
#. translators: %s - plugin name and its version.
-#: src/Core.php:447
+#: src/Core.php:390
msgid "EMAILING DISABLED: The %s is currently blocking all emails from being sent."
msgstr ""
#. translators: %1$s - constant name; %2$s - constant value.
-#: src/Core.php:458
+#: src/Core.php:401
msgid "To send emails, change the value of the %1$s constant to %2$s."
msgstr ""
#. translators: %s - plugin Misc settings page URL.
-#: src/Core.php:469
+#: src/Core.php:412
msgid "To send emails, go to plugin Misc settings and disable the \"Do Not Send\" option."
msgstr ""
#. translators: %s - plugin name and its version.
-#: src/Core.php:501
+#: src/Core.php:444
msgid "EMAIL DELIVERY ERROR: the plugin %s logged this error during the last time it tried to send an email:"
msgstr ""
-#: src/Core.php:531
+#: src/Core.php:474
msgid "Consider running an email test after fixing it."
msgstr ""
@@ -1314,7 +1306,7 @@ msgstr ""
#. translators: %1$s - opening link tag; %2$s - closing link tag; %3$s - opening link tag; %4$s - closing link tag.
#: src/Providers/Mailgun/Options.php:29
-msgid "%1$sMailgun%2$s is one of the leading transactional email services trusted by over 150,000+ businesses. They provide 5,000 free emails per month for 3 months, then $0.80 per 1000 emails.
Read our %3$sMailgun documentation%4$s to learn how to configure Mailgun and improve your email deliverability."
+msgid "%1$sMailgun%2$s is one of the leading transactional email services trusted by over 150,000+ businesses. They provide 5,000 free emails per month for 3 months.
Read our %3$sMailgun documentation%4$s to learn how to configure Mailgun and improve your email deliverability."
msgstr ""
#: src/Providers/Mailgun/Options.php:57
@@ -1369,15 +1361,10 @@ msgid "More information on Mailgun
msgstr ""
#: src/Providers/OptionsAbstract.php:186
-#: wp-mail-smtp-0.11.2.php:355
msgid "SMTP Host"
msgstr ""
#: src/Providers/OptionsAbstract.php:200
-#: wp-mail-smtp-0.11.2.php:370
-#: wp-mail-smtp-0.11.2.php:374
-#: wp-mail-smtp-0.11.2.php:489
-#: wp-mail-smtp-0.11.2.php:495
msgid "Encryption"
msgstr ""
@@ -1398,8 +1385,6 @@ msgid "For most servers TLS is the recommended option. If your SMTP provider off
msgstr ""
#: src/Providers/OptionsAbstract.php:240
-#: wp-mail-smtp-0.11.2.php:363
-#: wp-mail-smtp-0.11.2.php:481
msgid "SMTP Port"
msgstr ""
@@ -1412,8 +1397,6 @@ msgid "By default TLS encryption is automatically used if the server supports it
msgstr ""
#: src/Providers/OptionsAbstract.php:276
-#: wp-mail-smtp-0.11.2.php:397
-#: wp-mail-smtp-0.11.2.php:401
msgid "Authentication"
msgstr ""
@@ -1477,7 +1460,7 @@ msgstr ""
#. translators: %1$s - URL to pepipost.com site.
#: src/Providers/PepipostAPI/Options.php:31
-msgid "Pepipost is a recommended transactional email service. Every month Pepipost delivers over 8 billion emails from 20,000+ customers. Their mission is to reliably send emails in the most efficient way and at the most disruptive pricing ever. Pepipost provides users 30,000 free emails the first 30 days, then 100 emails per day."
+msgid "Pepipost is a recommended transactional email service. Every month Pepipost delivers over 8 billion emails from 20,000+ customers. Their mission is to reliably send emails in the most efficient way and at the most disruptive pricing ever. Pepipost provides users 30,000 free emails the first 30 days."
msgstr ""
#. translators: %1$s - URL to wpmailsmtp.com doc.
@@ -1486,7 +1469,7 @@ msgid "Read our P
msgstr ""
#: src/Providers/PepipostAPI/Options.php:53
-msgid "Get Pepipost Now (Free)"
+msgid "Get Started with Pepipost"
msgstr ""
#: src/Providers/PepipostAPI/Options.php:61
@@ -1495,14 +1478,14 @@ msgstr ""
#: src/Providers/PepipostAPI/Options.php:88
#: src/Providers/Sendgrid/Options.php:57
-#: src/Providers/Sendinblue/Options.php:88
+#: src/Providers/Sendinblue/Options.php:76
+#: src/Providers/SMTPcom/Options.php:83
msgid "API Key"
msgstr ""
-#. translators: %s - pepipost.com link to get an API Key.
-#. translators: %s - sendinblue.com link to get an API Key.
+#. translators: %s - link to get an API Key.
#: src/Providers/PepipostAPI/Options.php:107
-#: src/Providers/Sendinblue/Options.php:107
+#: src/Providers/Sendinblue/Options.php:95
msgid "Follow this link to get an API Key: %s."
msgstr ""
@@ -1533,25 +1516,21 @@ msgstr ""
msgid "To send emails you will need only a %s access level for this API key."
msgstr ""
-#. translators: %1$s - URL to sendinblue.com site.
-#: src/Providers/Sendinblue/Options.php:31
-msgid "Sendinblue is a recommended transactional email service. Founded in 2012, they serve 80,000+ growing companies around the world and send over 30 million emails each day. They understand that transactional emails are the heart of your customer relationships. Their email deliverability experts are constantly at work optimizing the reliability and speed of their SMTP infrastructure. Sendinblue provides users 300 free emails per day."
-msgstr ""
-
-#. translators: %2$s - URL to wpmailsmtp.com doc.
-#: src/Providers/Sendinblue/Options.php:34
-msgid "Read our Sendinblue documentation to learn how to configure Sendinblue and improve your email deliverability."
-msgstr ""
-
-#: src/Providers/Sendinblue/Options.php:53
-msgid "Get Sendinblue Now (Free)"
-msgstr ""
-
-#: src/Providers/Sendinblue/Options.php:61
+#: src/Providers/Sendinblue/Options.php:33
msgid "Sendinblue"
msgstr ""
-#: src/Providers/Sendinblue/Options.php:109
+#. translators: %1$s - URL to sendinblue.com site.
+#: src/Providers/Sendinblue/Options.php:37
+msgid "Sendinblue serves 80,000+ growing companies around the world and sends over 30 million emails each day. They provide users 300 free emails per day."
+msgstr ""
+
+#. translators: %2$s - URL to wpmailsmtp.com doc.
+#: src/Providers/Sendinblue/Options.php:40
+msgid "Read our Sendinblue documentation to learn how to configure Sendinblue and improve your email deliverability."
+msgstr ""
+
+#: src/Providers/Sendinblue/Options.php:97
msgid "Get v3 API Key"
msgstr ""
@@ -1559,11 +1538,59 @@ msgstr ""
msgid "Other SMTP"
msgstr ""
-#. translators: %s - URL to a related article on WPForms.com.
+#. translators: %s - URL to SMTP documentation.
#: src/Providers/SMTP/Options.php:29
msgid "Use the SMTP details provided by your hosting provider or email service.
To see recommended settings for the popular services as well as troubleshooting tips, check out our SMTP documentation."
msgstr ""
+#: src/Providers/SMTPcom/Mailer.php:433
+msgid "Api Key:"
+msgstr ""
+
+#: src/Providers/SMTPcom/Mailer.php:435
+msgid "Channel:"
+msgstr ""
+
+#. translators: %s - URL to smtp.com site.
+#: src/Providers/SMTPcom/Options.php:41
+msgid "SMTP.com is a recommended transactional email service. With over 22 years of email delivery expertise, SMTP.com has been around for almost as long as email itself. They are known among internet providers as one of the most reliable senders on the internet. Their easy integration process lets you start sending emails in minutes and benefit from years of experience. SMTP.com provides users 10,000 free emails the first 30 days."
+msgstr ""
+
+#. translators: %s - URL to wpmailsmtp.com doc page for stmp.com.
+#: src/Providers/SMTPcom/Options.php:49
+msgid "Read our SMTP.com documentation to learn how to configure SMTP.com and improve your email deliverability."
+msgstr ""
+
+#: src/Providers/SMTPcom/Options.php:59
+msgid "Get Started with SMTP.com"
+msgstr ""
+
+#: src/Providers/SMTPcom/Options.php:67
+msgid "SMTP.com"
+msgstr ""
+
+#. translators: %s - API key link.
+#: src/Providers/SMTPcom/Options.php:101
+msgid "Follow this link to get an API Key from SMTP.com: %s."
+msgstr ""
+
+#: src/Providers/SMTPcom/Options.php:103
+msgid "Get API Key"
+msgstr ""
+
+#: src/Providers/SMTPcom/Options.php:114
+msgid "Sender Name"
+msgstr ""
+
+#. translators: %s - Channel/Sender Name link for smtp.com documentation.
+#: src/Providers/SMTPcom/Options.php:130
+msgid "Follow this link to get a Sender Name from SMTP.com: %s."
+msgstr ""
+
+#: src/Providers/SMTPcom/Options.php:132
+msgid "Get Sender Name"
+msgstr ""
+
#: src/SiteHealth.php:67
msgid "Is WP Mail SMTP mailer setup complete?"
msgstr ""
@@ -1621,151 +1648,16 @@ msgstr ""
msgid "%1$s \\a\\t %2$s"
msgstr ""
-#: wp-mail-smtp-0.11.2.php:192
-#: wp-mail-smtp-0.11.2.php:546
-msgid "Send Test"
-msgstr ""
-
-#. translators: %s - email address where test mail will be sent to.
-#: wp-mail-smtp-0.11.2.php:201
-msgid "Test mail to %s"
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:202
-msgid "This is a test email generated by the WP Mail SMTP WordPress plugin."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:218
-msgid "Test Message Sent"
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:219
-msgid "The result was:"
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:222
-msgid "The full debugging output is shown below:"
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:225
-msgid "The SMTP debugging output is shown below:"
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:237
-#: wp-mail-smtp-0.11.2.php:582
-msgid "WP Mail SMTP Settings"
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:253
-msgid "You can specify the email address that emails should be sent from. If you leave this blank, the default email will be used."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:256
-msgid "Please Note: You appear to be using a version of WordPress prior to 2.3. Please ignore the From Name field and instead enter Name<email@domain.com> in this field."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:271
-msgid "You can specify the name that emails should be sent from. If you leave this blank, the emails will be sent from WordPress."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:290
-msgid "Send all WordPress emails via SMTP."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:294
-msgid "Use the PHP mail() function to send emails."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:300
-msgid "Use Pepipost SMTP to send emails."
-msgstr ""
-
-#. translators: %1$s - link start; %2$s - link end.
-#: wp-mail-smtp-0.11.2.php:306
-msgid "Looking for high inbox delivery? Try Pepipost with easy setup and free emails. Learn more %1$shere%2$s."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:343
-#: wp-mail-smtp-0.11.2.php:443
-#: wp-mail-smtp-0.11.2.php:519
-msgid "Save Changes"
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:348
-msgid "SMTP Options"
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:350
-msgid "These options only apply if you have chosen to send mail by SMTP above."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:379
-#: wp-mail-smtp-0.11.2.php:501
-msgid "No encryption."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:384
-#: wp-mail-smtp-0.11.2.php:506
-msgid "Use SSL encryption."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:389
-#: wp-mail-smtp-0.11.2.php:511
-msgid "Use TLS encryption."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:392
-msgid "TLS is not the same as STARTTLS. For most servers SSL is the recommended option."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:406
-msgid "No: Do not use SMTP authentication."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:411
-msgid "Yes: Use SMTP authentication."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:415
-msgid "If this is set to no, the values below are ignored."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:422
-#: wp-mail-smtp-0.11.2.php:465
-msgid "Username"
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:430
-#: wp-mail-smtp-0.11.2.php:473
-msgid "Password"
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:436
-msgid "This is in plain text because it must not be stored encrypted."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:450
-msgid "Pepipost SMTP Options"
-msgstr ""
-
-#. translators: %s - Pepipost registration URL.
-#: wp-mail-smtp-0.11.2.php:456
-msgid "You need to signup on %s to get the SMTP username/password."
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:536
-msgid "To"
-msgstr ""
-
-#: wp-mail-smtp-0.11.2.php:540
-msgid "Type an email address here and then click Send Test to generate a test email."
-msgstr ""
-
-#. translators: %1$s - WP Mail SMTP plugin name; %2$s - opening a link tag; %3$s - closing a link tag.
-#: wp-mail-smtp-0.11.2.php:727
-msgid "Your site is running an outdated version of PHP that is no longer supported and may cause issues with %1$s. %2$sRead more%3$s for additional information."
-msgstr ""
-
-#: wp_mail_smtp.php:131
+#: wp_mail_smtp.php:135
msgid "Please deactivate the free version of the WP Mail SMTP plugin before activating WP Mail SMTP Pro."
msgstr ""
+
+#. translators: %1$s - WPBeginner URL for recommended WordPress hosting.
+#: wp_mail_smtp.php:163
+msgid "Your site is running an insecure version of PHP that is no longer supported. Please contact your web hosting provider to update your PHP version or switch to a recommended WordPress hosting company."
+msgstr ""
+
+#. translators: %s - WPMailSMTP.com docs URL with more details.
+#: wp_mail_smtp.php:180
+msgid "WP Mail SMTP plugin is disabled on your site until you fix the issue. Read more for additional information."
+msgstr ""
diff --git a/wp-content/plugins/wp-mail-smtp/loco.xml b/wp-content/plugins/wp-mail-smtp/loco.xml
deleted file mode 100644
index 9d9ec0c..0000000
--- a/wp-content/plugins/wp-mail-smtp/loco.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
- assets/languages
-
-
- assets/languages/wp-mail-smtp.pot
-
-
-
-
-
-
-
- assets/pro/languages
-
-
- assets/pro/languages/wp-mail-smtp-pro.pot
-
-
-
-
diff --git a/wp-content/plugins/wp-mail-smtp/readme.txt b/wp-content/plugins/wp-mail-smtp/readme.txt
index f28b711..f2ebe00 100644
--- a/wp-content/plugins/wp-mail-smtp/readme.txt
+++ b/wp-content/plugins/wp-mail-smtp/readme.txt
@@ -2,9 +2,9 @@
Contributors: wpforms, jaredatch, smub, slaFFik
Tags: smtp, wp mail smtp, wordpress smtp, gmail smtp, sendgrid smtp, mailgun smtp, mail, mailer, phpmailer, wp_mail, email, mailgun, sengrid, gmail, pepipost, sendinblue, wp smtp
Requires at least: 4.9
-Tested up to: 5.3
-Stable tag: 1.9.0
-Requires PHP: 5.3
+Tested up to: 5.4
+Stable tag: 2.0.0
+Requires PHP: 5.5.0
The most popular WordPress SMTP and PHP Mailer plugin. Trusted by over 1 million sites.
@@ -42,19 +42,30 @@ This helps you fix all WordPress not sending email issues.
WP Mail SMTP plugin includes many different SMTP setup options:
-1. Pepipost SMTP (Recommended)
-2. Sendinblue SMTP (Recommended)
-3. Mailgun SMTP
-4. SendGrid SMTP
-5. Gmail SMTP
-6. Microsoft SMTP (Outlook.com and Office 365) [Pro]
-7. Amazon SES SMTP [Pro]
-8. All Other SMTP
+1. SMTP.com (Recommended)
+2. Pepipost SMTP (Recommended)
+3. Sendinblue SMTP
+4. Mailgun SMTP
+5. SendGrid SMTP
+6. Gmail SMTP
+7. Microsoft SMTP (Outlook.com and Office 365) [Pro]
+8. Amazon SES SMTP [Pro]
+9. All Other SMTP
For all options, you can specify the "from name" and "email address" for outgoing emails.
Instead of having users use different SMTP plugins and workflows for different SMTP providers, we decided to bring it all in one. This is what makes WP Mail SMTP, the best SMTP solution for WordPress.
+= SMTP.COM =
+
+SMTP.com is a recommended transactional email service.
+
+With over 22 years of email delivery expertise, SMTP.com has been around for almost as long as email itself. They are known among internet providers as one of the most reliable senders on the internet.
+
+Their easy integration process lets you start sending emails in minutes and benefit from years of experience. SMTP.com provides users 10,000 free emails the first 30 days.
+
+Read our SMTP.com documentation for more details.
+
= Pepipost SMTP =
Pepipost is a recommended transactional email service.
@@ -68,8 +79,6 @@ Read our WPBeg
Yes! We have extensive documentation that covers setting up SMTP most popular email services.
-Read our docs to see the correct SMTP settings for each service.
+Read our docs to see the correct SMTP settings for each service.
= Help! I need support or have an issue. =
@@ -220,6 +229,13 @@ By all means please contact us to discuss features or options you'd like to see
== Changelog ==
+= 2.0.0 - 2020-04-27 =
+* IMPORTANT: Support for PHP 5.2-5.4 has been discontinued. If you are running one of those versions, you MUST upgrade PHP before installing or upgrading to WP Mail SMTP v2.0. Failure to do that will disable WP Mail SMTP functionality.
+* Added: new mailer - SMTP.com integration.
+* Changed: Plugin filters that change the FROM Name/Email in emails are now always running last.
+* Fixed: `false` value of the `WPMS_SMTP_AUTH`/`WPMS_SMTP_AUTOTLS` constants was not properly handled in UI.
+* Fixed: various minor code and internal links improvements.
+
= 1.9.0 - 2020-03-23 =
* Added: Add various Status tests and Info section on Tools > Site Health page.
* Added: Notify admin if there are unsaved changes in plugin admin area options.
diff --git a/wp-content/plugins/wp-mail-smtp/src/Admin/Area.php b/wp-content/plugins/wp-mail-smtp/src/Admin/Area.php
index 0eac582..d863acd 100644
--- a/wp-content/plugins/wp-mail-smtp/src/Admin/Area.php
+++ b/wp-content/plugins/wp-mail-smtp/src/Admin/Area.php
@@ -57,7 +57,7 @@ class Area {
protected function hooks() {
// Add the Settings link to a plugin on Plugins page.
- add_filter( 'plugin_action_links', array( $this, 'add_plugin_action_link' ), 10, 2 );
+ add_filter( 'plugin_action_links_' . plugin_basename( WPMS_PLUGIN_FILE ), array( $this, 'add_plugin_action_link' ), 10, 1 );
// Add the options page.
add_action( 'admin_menu', array( $this, 'add_admin_options_page' ) );
@@ -219,14 +219,17 @@ class Area {
self::SLUG . '-logs',
array( $this, 'display' )
);
- \add_submenu_page(
- self::SLUG,
- \esc_html__( 'About Us', 'wp-mail-smtp' ),
- \esc_html__( 'About Us', 'wp-mail-smtp' ),
- 'manage_options',
- self::SLUG . '-about',
- array( $this, 'display' )
- );
+
+ if ( ! wp_mail_smtp()->is_white_labeled() ) {
+ \add_submenu_page(
+ self::SLUG,
+ \esc_html__( 'About Us', 'wp-mail-smtp' ),
+ \esc_html__( 'About Us', 'wp-mail-smtp' ),
+ 'manage_options',
+ self::SLUG . '-about',
+ array( $this, 'display' )
+ );
+ }
}
/**
@@ -273,7 +276,7 @@ class Area {
'upgrade_url' => 'https://wpmailsmtp.com/lite-upgrade/?discount=SMTPLITEUPGRADE&utm_source=WordPress&utm_medium=plugin-settings&utm_campaign=liteplugin',
'upgrade_bonus' => '
' .
wp_kses(
- __( 'Bonus: WP Mail SMTP users get 20% off regular price, applied at checkout.', 'wp-mail-smtp' ),
+ __( 'Bonus: WP Mail SMTP users get $50 off regular price, applied at checkout.', 'wp-mail-smtp' ),
array(
'strong' => true,
'span' => true,
@@ -368,7 +371,7 @@ class Area {
\wp_enqueue_script(
'wp-mail-smtp-admin-about-matchheight',
- \wp_mail_smtp()->assets_url . '/js/jquery.matchHeight.min.js',
+ \wp_mail_smtp()->assets_url . '/js/vendor/jquery.matchHeight.min.js',
array( 'wp-mail-smtp-admin' ),
'0.7.2',
false
@@ -394,7 +397,7 @@ class Area {
@@ -338,7 +336,7 @@ class SettingsTab extends PageAbstract {
20% off, automatically applied at checkout!', 'wp-mail-smtp' ),
+ __( 'As a valued WP Mail SMTP Lite user you receive $50 off, automatically applied at checkout!', 'wp-mail-smtp' ),
array(
'strong' => array(),
'br' => array(),
@@ -453,7 +451,7 @@ class SettingsTab extends PageAbstract {
Bonus: WP Mail SMTP users get 20% off regular price, automatically applied at checkout.', 'wp-mail-smtp' ),
+ __( 'Bonus: WP Mail SMTP users get $50 off regular price, automatically applied at checkout.', 'wp-mail-smtp' ),
array(
'strong' => array(),
'span' => array(
diff --git a/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php b/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php
index a9a96f3..1d3b177 100644
--- a/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php
+++ b/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/TestTab.php
@@ -253,7 +253,7 @@ class TestTab extends PageAbstract {
-
+
@@ -296,7 +296,7 @@ class TestTab extends PageAbstract {
Access to our world class support team
- WP Mail SMTP users get 20% off, automatically applied at checkout
+ WP Mail SMTP users get $50 off, automatically applied at checkout
@@ -343,7 +343,7 @@ class TestTab extends PageAbstract {
// phpcs:disable
if ( wp_mail_smtp()->is_pro() ) {
- // WP Mail SMTP Pro & WPForms paid installed.
+ // WP Mail SMTP Pro paid installed.
$message =
'Congrats, test email was sent successfully!
@@ -705,7 +705,7 @@ Lead Developer, WP Mail SMTP';
),
)
),
- 'https://wpforms.com/how-to-send-wordpress-emails-with-mailgun/'
+ 'https://wpmailsmtp.com/docs/how-to-set-up-the-mailgun-mailer-in-wp-mail-smtp/'
),
esc_html__( 'Complete the steps in section "2. Verify Your Domain".', 'wp-mail-smtp' ),
),
@@ -893,7 +893,7 @@ Lead Developer, WP Mail SMTP';
esc_html__( 'Make sure that the used Client ID/Secret correspond to a proper project that has Gmail API enabled.', 'wp-mail-smtp' ),
sprintf(
wp_kses(
- /* translators: %s - WPForms.com tutorial URL. */
+ /* translators: %s - Gmail documentation URL. */
esc_html__( 'Please follow our Gmail tutorial to be sure that all the correct project and data is applied.', 'wp-mail-smtp' ),
array(
'a' => array(
@@ -903,7 +903,7 @@ Lead Developer, WP Mail SMTP';
),
)
),
- 'https://wpforms.com/how-to-securely-send-wordpress-emails-using-gmail-smtp/'
+ 'https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/'
),
),
),
@@ -1063,7 +1063,7 @@ Lead Developer, WP Mail SMTP';
20% off regular pricing, automatically applied at checkout!', 'wp-mail-smtp' ),
+ __( 'As a valued WP Mail SMTP user, you will get $50 off regular pricing, automatically applied at checkout!', 'wp-mail-smtp' ),
array(
'span' => array(
'class' => array(),
diff --git a/wp-content/plugins/wp-mail-smtp/src/Core.php b/wp-content/plugins/wp-mail-smtp/src/Core.php
index f903893..4ce9a3e 100644
--- a/wp-content/plugins/wp-mail-smtp/src/Core.php
+++ b/wp-content/plugins/wp-mail-smtp/src/Core.php
@@ -57,7 +57,7 @@ class Core {
$this->plugin_path = rtrim( plugin_dir_path( __DIR__ ), '/\\' );
if ( $this->is_not_loadable() ) {
- $this->do_not_load();
+ add_action( 'admin_notices', 'wp_mail_smtp_insecure_php_version_notice' );
return;
}
@@ -88,63 +88,6 @@ class Core {
return false;
}
- /**
- * What to do if plugin is not loaded.
- *
- * @since 1.5.0
- */
- protected function do_not_load() {
-
- add_action( 'admin_notices', function () {
-
- ?>
-
-
- insecure version of PHP that is no longer supported. Please contact your web hosting provider to update your PHP version or switch to a recommended WordPress hosting company.', 'wp-mail-smtp' ),
- array(
- 'a' => array(
- 'href' => array(),
- 'target' => array(),
- 'rel' => array(),
- ),
- 'strong' => array(),
- )
- ),
- 'https://www.wpbeginner.com/wordpress-hosting/'
- );
- ?>
-
- Note: WP Mail SMTP plugin is disabled on your site until you fix the issue. Read more for additional information.', 'wp-mail-smtp' ),
- array(
- 'a' => array(
- 'href' => array(),
- 'target' => array(),
- 'rel' => array(),
- ),
- 'strong' => array(),
- )
- ),
- 'https://wpforms.com/docs/supported-php-version/'
- );
- ?>
-
-
-
- Read more for additional information.', 'wp-mail-smtp' ),
array(
'a' => array(
@@ -406,11 +349,11 @@ class Core {
)
),
'WP Mail SMTP',
- 'https://wpforms.com/docs/supported-php-version/'
+ 'https://wpmailsmtp.com/docs/supported-php-versions-for-wp-mail-smtp/'
) .
'
-
- recommended, $this );
- }
-
- /**
- * Whether this mailer is disabled or not.
- * Used for displaying Pro mailers inside Lite plugin.
- *
- * @since 1.7.0
- *
- * @return bool
- */
- public function is_disabled() {
-
- return (bool) apply_filters( 'wp_mail_smtp_providers_provider_is_disabled', $this->disabled, $this );
- }
-
- /**
- * Check whether we can use this provider based on the PHP version.
- * Valid for those, that use SDK.
- *
- * @since 1.0.0
- *
- * @return bool
- */
- public function is_php_correct() {
- return version_compare( phpversion(), $this->php, '>=' );
- }
-
- /**
- * Display a helpful message to those users, that are using an outdated version of PHP,
- * which is not supported by the currently selected Provider.
- *
- * @since 1.0.0
- */
- protected function display_php_warning() {
- ?>
-
-
+
+ recommended, $this );
+ }
+
+ /**
+ * Whether this mailer is disabled or not.
+ * Used for displaying Pro mailers inside Lite plugin.
+ *
+ * @since 1.7.0
+ *
+ * @return bool
+ */
+ public function is_disabled() {
+
+ return (bool) apply_filters( 'wp_mail_smtp_providers_provider_is_disabled', $this->disabled, $this );
+ }
+
+ /**
+ * Check whether we can use this provider based on the PHP version.
+ * Valid for those, that use SDK.
+ *
+ * @since 1.0.0
+ *
+ * @return bool
+ */
+ public function is_php_correct() {
+ return version_compare( phpversion(), $this->php, '>=' );
+ }
+
+ /**
+ * Display a helpful message to those users, that are using an outdated version of PHP,
+ * which is not supported by the currently selected Provider.
+ *
+ * @since 1.0.0
+ */
+ protected function display_php_warning() {
+ ?>
+
+
+
+ Sendinblue is a recommended transactional email service. Founded in 2012, they serve 80,000+ growing companies around the world and send over 30 million emails each day. They understand that transactional emails are the heart of your customer relationships. Their email deliverability experts are constantly at work optimizing the reliability and speed of their SMTP infrastructure. Sendinblue provides users 300 free emails per day.', 'wp-mail-smtp' ) .
- '
' .
esc_html__( 'Get v3 API Key', 'wp-mail-smtp' ) .
diff --git a/wp-content/plugins/wp-mail-smtp/src/SiteHealth.php b/wp-content/plugins/wp-mail-smtp/src/SiteHealth.php
index 121222a..0cf5ab0 100644
--- a/wp-content/plugins/wp-mail-smtp/src/SiteHealth.php
+++ b/wp-content/plugins/wp-mail-smtp/src/SiteHealth.php
@@ -5,7 +5,7 @@ namespace WPMailSMTP;
/**
* Class SiteHealth adds the plugin status and information to the WP Site Health admin page.
*
- * @since {VERSION}
+ * @since 1.9.0
*/
class SiteHealth {
@@ -15,7 +15,7 @@ class SiteHealth {
*
* @see https://make.wordpress.org/core/2019/04/25/site-health-check-in-5-2/
*
- * @since {VERSION}
+ * @since 1.9.0
*/
const BADGE_COLOR = 'blue';
@@ -24,14 +24,14 @@ class SiteHealth {
* This should be a plugin unique string, which will be used in the WP Site Health page,
* for the "info" tab and will present the plugin info section.
*
- * @since {VERSION}
+ * @since 1.9.0
*/
const DEBUG_INFO_SLUG = 'wp_mail_smtp';
/**
* Translatable string for the plugin label.
*
- * @since {VERSION}
+ * @since 1.9.0
*
* @return string
*/
@@ -43,7 +43,7 @@ class SiteHealth {
/**
* Initialize the site heath functionality.
*
- * @since {VERSION}
+ * @since 1.9.0
*/
public function init() {
@@ -55,7 +55,7 @@ class SiteHealth {
* Register plugin WP site health tests.
* This will be displayed in the "Status" tab of the WP Site Health page.
*
- * @since {VERSION}
+ * @since 1.9.0
*
* @param array $tests The array with all WP site health tests.
*
@@ -75,7 +75,7 @@ class SiteHealth {
* Register plugin WP Site Health debug information.
* This will be displayed in the "Info" tab of the WP Site Health page.
*
- * @since {VERSION}
+ * @since 1.9.0
*
* @param array $debug_info Array of existing debug information.
*
@@ -109,7 +109,7 @@ class SiteHealth {
/**
* Perform the WP site health test for checking, if the mailer setup is complete.
*
- * @since {VERSION}
+ * @since 1.9.0
*/
public function mailer_setup_complete_test() {
diff --git a/wp-content/plugins/wp-mail-smtp/src/WP.php b/wp-content/plugins/wp-mail-smtp/src/WP.php
index 58960fc..ed7edbe 100644
--- a/wp-content/plugins/wp-mail-smtp/src/WP.php
+++ b/wp-content/plugins/wp-mail-smtp/src/WP.php
@@ -1,234 +1,234 @@
- $message,
- 'class' => $class,
- 'is_dismissible' => (bool) $is_dismissible,
- );
- }
-
- /**
- * Display all notices.
- *
- * @since 1.0.0
- * @since 1.5.0 Allow the notice to be dismissible, remove the id attribute, which is not unique.
- */
- public static function display_admin_notices() {
-
- foreach ( (array) self::$admin_notices as $notice ) :
- $dismissible = $notice['is_dismissible'] ? 'is-dismissible' : '';
- ?>
-
-
-
-
-
-
-
- for non-HTML tags.
- *
- * @since 1.5.0
- *
- * @param string $value
- *
- * @return mixed|string|string[]|null
- */
- public static function sanitize_value( $value ) {
-
- // Remove HTML tags.
- $filtered = wp_strip_all_tags( $value, false );
- // Remove multi-lines/tabs.
- $filtered = preg_replace( '/[\r\n\t ]+/', ' ', $filtered );
- // Remove whitespaces.
- $filtered = trim( $filtered );
-
- // Remove octets.
- $found = false;
- while ( preg_match( '/%[a-f0-9]{2}/i', $filtered, $match ) ) {
- $filtered = str_replace( $match[0], '', $filtered );
- $found = true;
- }
-
- if ( $found ) {
- // Strip out the whitespace that may now exist after removing the octets.
- $filtered = trim( preg_replace( '/ +/', ' ', $filtered ) );
- }
-
- return $filtered;
- }
-}
+ $message,
+ 'class' => $class,
+ 'is_dismissible' => (bool) $is_dismissible,
+ );
+ }
+
+ /**
+ * Display all notices.
+ *
+ * @since 1.0.0
+ * @since 1.5.0 Allow the notice to be dismissible, remove the id attribute, which is not unique.
+ */
+ public static function display_admin_notices() {
+
+ foreach ( (array) self::$admin_notices as $notice ) :
+ $dismissible = $notice['is_dismissible'] ? 'is-dismissible' : '';
+ ?>
+
+
- * Access Gmail mailboxes including sending user email.
+ * The Gmail API lets you view and manage Gmail mailbox data like threads,
+ * messages, and labels.
*
*
* For more information about this service, see the API
@@ -33,6 +34,18 @@ class Google_Service_Gmail extends Google_Service
/** Read, compose, send, and permanently delete all your email from Gmail. */
const MAIL_GOOGLE_COM =
"https://mail.google.com/";
+ /** Manage drafts and send emails when you interact with the add-on. */
+ const GMAIL_ADDONS_CURRENT_ACTION_COMPOSE =
+ "https://www.googleapis.com/auth/gmail.addons.current.action.compose";
+ /** View your email messages when you interact with the add-on. */
+ const GMAIL_ADDONS_CURRENT_MESSAGE_ACTION =
+ "https://www.googleapis.com/auth/gmail.addons.current.message.action";
+ /** View your email message metadata when the add-on is running. */
+ const GMAIL_ADDONS_CURRENT_MESSAGE_METADATA =
+ "https://www.googleapis.com/auth/gmail.addons.current.message.metadata";
+ /** View your email messages when the add-on is running. */
+ const GMAIL_ADDONS_CURRENT_MESSAGE_READONLY =
+ "https://www.googleapis.com/auth/gmail.addons.current.message.readonly";
/** Manage drafts and send emails. */
const GMAIL_COMPOSE =
"https://www.googleapis.com/auth/gmail.compose";
@@ -85,8 +98,8 @@ class Google_Service_Gmail extends Google_Service
{
parent::__construct($client);
$this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/';
- $this->servicePath = 'gmail/v1/users/';
- $this->batchPath = 'batch/gmail/v1';
+ $this->servicePath = '';
+ $this->batchPath = 'batch';
$this->version = 'v1';
$this->serviceName = 'gmail';
@@ -97,7 +110,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'getProfile' => array(
- 'path' => '{userId}/profile',
+ 'path' => 'gmail/v1/users/{userId}/profile',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -107,7 +120,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'stop' => array(
- 'path' => '{userId}/stop',
+ 'path' => 'gmail/v1/users/{userId}/stop',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -117,7 +130,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'watch' => array(
- 'path' => '{userId}/watch',
+ 'path' => 'gmail/v1/users/{userId}/watch',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -137,7 +150,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'create' => array(
- 'path' => '{userId}/drafts',
+ 'path' => 'gmail/v1/users/{userId}/drafts',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -147,7 +160,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'delete' => array(
- 'path' => '{userId}/drafts/{id}',
+ 'path' => 'gmail/v1/users/{userId}/drafts/{id}',
'httpMethod' => 'DELETE',
'parameters' => array(
'userId' => array(
@@ -162,7 +175,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'get' => array(
- 'path' => '{userId}/drafts/{id}',
+ 'path' => 'gmail/v1/users/{userId}/drafts/{id}',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -181,7 +194,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'list' => array(
- 'path' => '{userId}/drafts',
+ 'path' => 'gmail/v1/users/{userId}/drafts',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -193,10 +206,6 @@ class Google_Service_Gmail extends Google_Service
'location' => 'query',
'type' => 'boolean',
),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
@@ -205,9 +214,13 @@ class Google_Service_Gmail extends Google_Service
'location' => 'query',
'type' => 'string',
),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
),
),'send' => array(
- 'path' => '{userId}/drafts/send',
+ 'path' => 'gmail/v1/users/{userId}/drafts/send',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -217,7 +230,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'update' => array(
- 'path' => '{userId}/drafts/{id}',
+ 'path' => 'gmail/v1/users/{userId}/drafts/{id}',
'httpMethod' => 'PUT',
'parameters' => array(
'userId' => array(
@@ -242,7 +255,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'list' => array(
- 'path' => '{userId}/history',
+ 'path' => 'gmail/v1/users/{userId}/history',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -250,10 +263,9 @@ class Google_Service_Gmail extends Google_Service
'type' => 'string',
'required' => true,
),
- 'historyTypes' => array(
+ 'pageToken' => array(
'location' => 'query',
'type' => 'string',
- 'repeated' => true,
),
'labelId' => array(
'location' => 'query',
@@ -263,9 +275,10 @@ class Google_Service_Gmail extends Google_Service
'location' => 'query',
'type' => 'integer',
),
- 'pageToken' => array(
+ 'historyTypes' => array(
'location' => 'query',
'type' => 'string',
+ 'repeated' => true,
),
'startHistoryId' => array(
'location' => 'query',
@@ -283,7 +296,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'create' => array(
- 'path' => '{userId}/labels',
+ 'path' => 'gmail/v1/users/{userId}/labels',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -293,7 +306,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'delete' => array(
- 'path' => '{userId}/labels/{id}',
+ 'path' => 'gmail/v1/users/{userId}/labels/{id}',
'httpMethod' => 'DELETE',
'parameters' => array(
'userId' => array(
@@ -308,7 +321,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'get' => array(
- 'path' => '{userId}/labels/{id}',
+ 'path' => 'gmail/v1/users/{userId}/labels/{id}',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -323,7 +336,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'list' => array(
- 'path' => '{userId}/labels',
+ 'path' => 'gmail/v1/users/{userId}/labels',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -333,7 +346,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'patch' => array(
- 'path' => '{userId}/labels/{id}',
+ 'path' => 'gmail/v1/users/{userId}/labels/{id}',
'httpMethod' => 'PATCH',
'parameters' => array(
'userId' => array(
@@ -348,7 +361,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'update' => array(
- 'path' => '{userId}/labels/{id}',
+ 'path' => 'gmail/v1/users/{userId}/labels/{id}',
'httpMethod' => 'PUT',
'parameters' => array(
'userId' => array(
@@ -373,7 +386,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'batchDelete' => array(
- 'path' => '{userId}/messages/batchDelete',
+ 'path' => 'gmail/v1/users/{userId}/messages/batchDelete',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -383,7 +396,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'batchModify' => array(
- 'path' => '{userId}/messages/batchModify',
+ 'path' => 'gmail/v1/users/{userId}/messages/batchModify',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -393,7 +406,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'delete' => array(
- 'path' => '{userId}/messages/{id}',
+ 'path' => 'gmail/v1/users/{userId}/messages/{id}',
'httpMethod' => 'DELETE',
'parameters' => array(
'userId' => array(
@@ -408,7 +421,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'get' => array(
- 'path' => '{userId}/messages/{id}',
+ 'path' => 'gmail/v1/users/{userId}/messages/{id}',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -421,18 +434,18 @@ class Google_Service_Gmail extends Google_Service
'type' => 'string',
'required' => true,
),
- 'format' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
'metadataHeaders' => array(
'location' => 'query',
'type' => 'string',
'repeated' => true,
),
+ 'format' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
),
),'import' => array(
- 'path' => '{userId}/messages/import',
+ 'path' => 'gmail/v1/users/{userId}/messages/import',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -440,7 +453,7 @@ class Google_Service_Gmail extends Google_Service
'type' => 'string',
'required' => true,
),
- 'deleted' => array(
+ 'processForCalendar' => array(
'location' => 'query',
'type' => 'boolean',
),
@@ -452,13 +465,13 @@ class Google_Service_Gmail extends Google_Service
'location' => 'query',
'type' => 'boolean',
),
- 'processForCalendar' => array(
+ 'deleted' => array(
'location' => 'query',
'type' => 'boolean',
),
),
),'insert' => array(
- 'path' => '{userId}/messages',
+ 'path' => 'gmail/v1/users/{userId}/messages',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -466,17 +479,17 @@ class Google_Service_Gmail extends Google_Service
'type' => 'string',
'required' => true,
),
- 'deleted' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
'internalDateSource' => array(
'location' => 'query',
'type' => 'string',
),
+ 'deleted' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
),
),'list' => array(
- 'path' => '{userId}/messages',
+ 'path' => 'gmail/v1/users/{userId}/messages',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -488,26 +501,26 @@ class Google_Service_Gmail extends Google_Service
'location' => 'query',
'type' => 'boolean',
),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
'labelIds' => array(
'location' => 'query',
'type' => 'string',
'repeated' => true,
),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
'q' => array(
'location' => 'query',
'type' => 'string',
),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
),
),'modify' => array(
- 'path' => '{userId}/messages/{id}/modify',
+ 'path' => 'gmail/v1/users/{userId}/messages/{id}/modify',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -522,7 +535,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'send' => array(
- 'path' => '{userId}/messages/send',
+ 'path' => 'gmail/v1/users/{userId}/messages/send',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -532,7 +545,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'trash' => array(
- 'path' => '{userId}/messages/{id}/trash',
+ 'path' => 'gmail/v1/users/{userId}/messages/{id}/trash',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -547,7 +560,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'untrash' => array(
- 'path' => '{userId}/messages/{id}/untrash',
+ 'path' => 'gmail/v1/users/{userId}/messages/{id}/untrash',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -572,7 +585,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'get' => array(
- 'path' => '{userId}/messages/{messageId}/attachments/{id}',
+ 'path' => 'gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -602,7 +615,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'getAutoForwarding' => array(
- 'path' => '{userId}/settings/autoForwarding',
+ 'path' => 'gmail/v1/users/{userId}/settings/autoForwarding',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -612,7 +625,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'getImap' => array(
- 'path' => '{userId}/settings/imap',
+ 'path' => 'gmail/v1/users/{userId}/settings/imap',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -622,7 +635,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'getLanguage' => array(
- 'path' => '{userId}/settings/language',
+ 'path' => 'gmail/v1/users/{userId}/settings/language',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -632,7 +645,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'getPop' => array(
- 'path' => '{userId}/settings/pop',
+ 'path' => 'gmail/v1/users/{userId}/settings/pop',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -642,7 +655,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'getVacation' => array(
- 'path' => '{userId}/settings/vacation',
+ 'path' => 'gmail/v1/users/{userId}/settings/vacation',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -652,7 +665,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'updateAutoForwarding' => array(
- 'path' => '{userId}/settings/autoForwarding',
+ 'path' => 'gmail/v1/users/{userId}/settings/autoForwarding',
'httpMethod' => 'PUT',
'parameters' => array(
'userId' => array(
@@ -662,7 +675,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'updateImap' => array(
- 'path' => '{userId}/settings/imap',
+ 'path' => 'gmail/v1/users/{userId}/settings/imap',
'httpMethod' => 'PUT',
'parameters' => array(
'userId' => array(
@@ -672,7 +685,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'updateLanguage' => array(
- 'path' => '{userId}/settings/language',
+ 'path' => 'gmail/v1/users/{userId}/settings/language',
'httpMethod' => 'PUT',
'parameters' => array(
'userId' => array(
@@ -682,7 +695,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'updatePop' => array(
- 'path' => '{userId}/settings/pop',
+ 'path' => 'gmail/v1/users/{userId}/settings/pop',
'httpMethod' => 'PUT',
'parameters' => array(
'userId' => array(
@@ -692,7 +705,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'updateVacation' => array(
- 'path' => '{userId}/settings/vacation',
+ 'path' => 'gmail/v1/users/{userId}/settings/vacation',
'httpMethod' => 'PUT',
'parameters' => array(
'userId' => array(
@@ -712,7 +725,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'create' => array(
- 'path' => '{userId}/settings/delegates',
+ 'path' => 'gmail/v1/users/{userId}/settings/delegates',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -722,7 +735,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'delete' => array(
- 'path' => '{userId}/settings/delegates/{delegateEmail}',
+ 'path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}',
'httpMethod' => 'DELETE',
'parameters' => array(
'userId' => array(
@@ -737,7 +750,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'get' => array(
- 'path' => '{userId}/settings/delegates/{delegateEmail}',
+ 'path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -752,7 +765,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'list' => array(
- 'path' => '{userId}/settings/delegates',
+ 'path' => 'gmail/v1/users/{userId}/settings/delegates',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -772,7 +785,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'create' => array(
- 'path' => '{userId}/settings/filters',
+ 'path' => 'gmail/v1/users/{userId}/settings/filters',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -782,7 +795,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'delete' => array(
- 'path' => '{userId}/settings/filters/{id}',
+ 'path' => 'gmail/v1/users/{userId}/settings/filters/{id}',
'httpMethod' => 'DELETE',
'parameters' => array(
'userId' => array(
@@ -797,7 +810,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'get' => array(
- 'path' => '{userId}/settings/filters/{id}',
+ 'path' => 'gmail/v1/users/{userId}/settings/filters/{id}',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -812,7 +825,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'list' => array(
- 'path' => '{userId}/settings/filters',
+ 'path' => 'gmail/v1/users/{userId}/settings/filters',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -832,7 +845,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'create' => array(
- 'path' => '{userId}/settings/forwardingAddresses',
+ 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -842,7 +855,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'delete' => array(
- 'path' => '{userId}/settings/forwardingAddresses/{forwardingEmail}',
+ 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}',
'httpMethod' => 'DELETE',
'parameters' => array(
'userId' => array(
@@ -857,7 +870,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'get' => array(
- 'path' => '{userId}/settings/forwardingAddresses/{forwardingEmail}',
+ 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -872,7 +885,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'list' => array(
- 'path' => '{userId}/settings/forwardingAddresses',
+ 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -892,7 +905,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'create' => array(
- 'path' => '{userId}/settings/sendAs',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -902,7 +915,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'delete' => array(
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
'httpMethod' => 'DELETE',
'parameters' => array(
'userId' => array(
@@ -917,7 +930,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'get' => array(
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -932,7 +945,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'list' => array(
- 'path' => '{userId}/settings/sendAs',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -942,7 +955,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'patch' => array(
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
'httpMethod' => 'PATCH',
'parameters' => array(
'userId' => array(
@@ -957,7 +970,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'update' => array(
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}',
'httpMethod' => 'PUT',
'parameters' => array(
'userId' => array(
@@ -972,7 +985,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'verify' => array(
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/verify',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -997,7 +1010,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'delete' => array(
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
'httpMethod' => 'DELETE',
'parameters' => array(
'userId' => array(
@@ -1017,7 +1030,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'get' => array(
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -1037,7 +1050,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'insert' => array(
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -1052,7 +1065,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'list' => array(
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -1067,7 +1080,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'setDefault' => array(
- 'path' => '{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault',
+ 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -1097,7 +1110,7 @@ class Google_Service_Gmail extends Google_Service
array(
'methods' => array(
'delete' => array(
- 'path' => '{userId}/threads/{id}',
+ 'path' => 'gmail/v1/users/{userId}/threads/{id}',
'httpMethod' => 'DELETE',
'parameters' => array(
'userId' => array(
@@ -1112,7 +1125,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'get' => array(
- 'path' => '{userId}/threads/{id}',
+ 'path' => 'gmail/v1/users/{userId}/threads/{id}',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -1125,18 +1138,18 @@ class Google_Service_Gmail extends Google_Service
'type' => 'string',
'required' => true,
),
- 'format' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
'metadataHeaders' => array(
'location' => 'query',
'type' => 'string',
'repeated' => true,
),
+ 'format' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
),
),'list' => array(
- 'path' => '{userId}/threads',
+ 'path' => 'gmail/v1/users/{userId}/threads',
'httpMethod' => 'GET',
'parameters' => array(
'userId' => array(
@@ -1144,30 +1157,30 @@ class Google_Service_Gmail extends Google_Service
'type' => 'string',
'required' => true,
),
- 'includeSpamTrash' => array(
+ 'pageToken' => array(
'location' => 'query',
- 'type' => 'boolean',
+ 'type' => 'string',
),
'labelIds' => array(
'location' => 'query',
'type' => 'string',
'repeated' => true,
),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
'q' => array(
'location' => 'query',
'type' => 'string',
),
+ 'maxResults' => array(
+ 'location' => 'query',
+ 'type' => 'integer',
+ ),
+ 'includeSpamTrash' => array(
+ 'location' => 'query',
+ 'type' => 'boolean',
+ ),
),
),'modify' => array(
- 'path' => '{userId}/threads/{id}/modify',
+ 'path' => 'gmail/v1/users/{userId}/threads/{id}/modify',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -1182,7 +1195,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'trash' => array(
- 'path' => '{userId}/threads/{id}/trash',
+ 'path' => 'gmail/v1/users/{userId}/threads/{id}/trash',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
@@ -1197,7 +1210,7 @@ class Google_Service_Gmail extends Google_Service
),
),
),'untrash' => array(
- 'path' => '{userId}/threads/{id}/untrash',
+ 'path' => 'gmail/v1/users/{userId}/threads/{id}/untrash',
'httpMethod' => 'POST',
'parameters' => array(
'userId' => array(
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php
index d0ec543..fb8c652 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php
@@ -81,12 +81,12 @@ class Google_Service_Gmail_Resource_UsersDrafts extends Google_Service_Resource
*
* @opt_param bool includeSpamTrash Include drafts from SPAM and TRASH in the
* results.
- * @opt_param string maxResults Maximum number of drafts to return.
* @opt_param string pageToken Page token to retrieve a specific page of results
* in the list.
* @opt_param string q Only return draft messages matching the specified query.
* Supports the same query format as the Gmail search box. For example,
* "from:someuser@example.com rfc822msgid: is:unread".
+ * @opt_param string maxResults Maximum number of drafts to return.
* @return Google_Service_Gmail_ListDraftsResponse
*/
public function listUsersDrafts($userId, $optParams = array())
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php
index 128bd17..6356da7 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php
@@ -34,11 +34,11 @@ class Google_Service_Gmail_Resource_UsersHistory extends Google_Service_Resource
* used to indicate the authenticated user.
* @param array $optParams Optional parameters.
*
- * @opt_param string historyTypes History types to be returned by the function
- * @opt_param string labelId Only return messages with a label matching the ID.
- * @opt_param string maxResults The maximum number of history records to return.
* @opt_param string pageToken Page token to retrieve a specific page of results
* in the list.
+ * @opt_param string labelId Only return messages with a label matching the ID.
+ * @opt_param string maxResults The maximum number of history records to return.
+ * @opt_param string historyTypes History types to be returned by the function
* @opt_param string startHistoryId Required. Returns history records after the
* specified startHistoryId. The supplied startHistoryId should be obtained from
* the historyId of a message, thread, or previous list response. History IDs
@@ -46,7 +46,7 @@ class Google_Service_Gmail_Resource_UsersHistory extends Google_Service_Resource
* valid IDs. Supplying an invalid or out of date startHistoryId typically
* returns an HTTP 404 error code. A historyId is typically valid for at least a
* week, but in some rare circumstances may be valid for only a few hours. If
- * you receive an HTTP 404 error response, your application should perform a
+ * you receive an HTTP 404 error response, your application should perform a
* full sync. If you receive no nextPageToken in the response, there are no
* updates to retrieve and you can store the returned historyId for a future
* request.
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php
index 88b33ce..8cf8158 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php
@@ -85,8 +85,7 @@ class Google_Service_Gmail_Resource_UsersLabels extends Google_Service_Resource
return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse");
}
/**
- * Updates the specified label. This method supports patch semantics.
- * (labels.patch)
+ * Patch the specified label. (labels.patch)
*
* @param string $userId The user's email address. The special value me can be
* used to indicate the authenticated user.
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php
index 67c737b..fa51249 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php
@@ -26,7 +26,7 @@
class Google_Service_Gmail_Resource_UsersMessages extends Google_Service_Resource
{
/**
- * Deletes many messages by message ID. Provides no guarantees that messages
+ * Deletes many messages by message ID. Provides no guarantees that messages
* were not already deleted or even existed at all. (messages.batchDelete)
*
* @param string $userId The user's email address. The special value me can be
@@ -56,7 +56,7 @@ class Google_Service_Gmail_Resource_UsersMessages extends Google_Service_Resourc
}
/**
* Immediately and permanently deletes the specified message. This operation
- * cannot be undone. Prefer messages.trash instead. (messages.delete)
+ * cannot be undone. Prefer messages.trash instead. (messages.delete)
*
* @param string $userId The user's email address. The special value me can be
* used to indicate the authenticated user.
@@ -77,9 +77,9 @@ class Google_Service_Gmail_Resource_UsersMessages extends Google_Service_Resourc
* @param string $id The ID of the message to retrieve.
* @param array $optParams Optional parameters.
*
- * @opt_param string format The format to return the message in.
* @opt_param string metadataHeaders When given and format is METADATA, only
* include headers specified.
+ * @opt_param string format The format to return the message in.
* @return Google_Service_Gmail_Message
*/
public function get($userId, $id, $optParams = array())
@@ -98,15 +98,15 @@ class Google_Service_Gmail_Resource_UsersMessages extends Google_Service_Resourc
* @param Google_Service_Gmail_Message $postBody
* @param array $optParams Optional parameters.
*
- * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and
- * only visible in Google Vault to a Vault administrator. Only used for G Suite
- * accounts.
+ * @opt_param bool processForCalendar Process calendar invites in the email and
+ * add any extracted meetings to the Google Calendar for this user.
* @opt_param string internalDateSource Source for Gmail's internal date of the
* message.
* @opt_param bool neverMarkSpam Ignore the Gmail spam classifier decision and
* never mark this email as SPAM in the mailbox.
- * @opt_param bool processForCalendar Process calendar invites in the email and
- * add any extracted meetings to the Google Calendar for this user.
+ * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and
+ * only visible in Google Vault to a Vault administrator. Only used for G Suite
+ * accounts.
* @return Google_Service_Gmail_Message
*/
public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array())
@@ -125,11 +125,11 @@ class Google_Service_Gmail_Resource_UsersMessages extends Google_Service_Resourc
* @param Google_Service_Gmail_Message $postBody
* @param array $optParams Optional parameters.
*
+ * @opt_param string internalDateSource Source for Gmail's internal date of the
+ * message.
* @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and
* only visible in Google Vault to a Vault administrator. Only used for G Suite
* accounts.
- * @opt_param string internalDateSource Source for Gmail's internal date of the
- * message.
* @return Google_Service_Gmail_Message
*/
public function insert($userId, Google_Service_Gmail_Message $postBody, $optParams = array())
@@ -147,15 +147,16 @@ class Google_Service_Gmail_Resource_UsersMessages extends Google_Service_Resourc
*
* @opt_param bool includeSpamTrash Include messages from SPAM and TRASH in the
* results.
- * @opt_param string labelIds Only return messages with labels that match all of
- * the specified label IDs.
- * @opt_param string maxResults Maximum number of messages to return.
* @opt_param string pageToken Page token to retrieve a specific page of results
* in the list.
+ * @opt_param string labelIds Only return messages with labels that match all of
+ * the specified label IDs.
* @opt_param string q Only return messages matching the specified query.
* Supports the same query format as the Gmail search box. For example,
- * "from:someuser@example.com rfc822msgid: is:unread". Parameter cannot be used
- * when accessing the api using the gmail.metadata scope.
+ * "from:someuser@example.com rfc822msgid:somemsgid@example.com is:unread".
+ * Parameter cannot be used when accessing the api using the gmail.metadata
+ * scope.
+ * @opt_param string maxResults Maximum number of messages to return.
* @return Google_Service_Gmail_ListMessagesResponse
*/
public function listUsersMessages($userId, $optParams = array())
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php
index ccf5d9b..6b5aac3 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php
@@ -29,7 +29,7 @@ class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resourc
* Gets the auto-forwarding setting for the specified account.
* (settings.getAutoForwarding)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param array $optParams Optional parameters.
* @return Google_Service_Gmail_AutoForwarding
@@ -43,7 +43,7 @@ class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resourc
/**
* Gets IMAP settings. (settings.getImap)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param array $optParams Optional parameters.
* @return Google_Service_Gmail_ImapSettings
@@ -57,7 +57,7 @@ class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resourc
/**
* Gets language settings. (settings.getLanguage)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param array $optParams Optional parameters.
* @return Google_Service_Gmail_LanguageSettings
@@ -71,7 +71,7 @@ class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resourc
/**
* Gets POP settings. (settings.getPop)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param array $optParams Optional parameters.
* @return Google_Service_Gmail_PopSettings
@@ -85,7 +85,7 @@ class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resourc
/**
* Gets vacation responder settings. (settings.getVacation)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param array $optParams Optional parameters.
* @return Google_Service_Gmail_VacationSettings
@@ -97,13 +97,13 @@ class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resourc
return $this->call('getVacation', array($params), "Google_Service_Gmail_VacationSettings");
}
/**
- * Updates the auto-forwarding setting for the specified account. A verified
+ * Updates the auto-forwarding setting for the specified account. A verified
* forwarding address must be specified when auto-forwarding is enabled.
*
* This method is only available to service account clients that have been
* delegated domain-wide authority. (settings.updateAutoForwarding)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param Google_Service_Gmail_AutoForwarding $postBody
* @param array $optParams Optional parameters.
@@ -118,7 +118,7 @@ class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resourc
/**
* Updates IMAP settings. (settings.updateImap)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param Google_Service_Gmail_ImapSettings $postBody
* @param array $optParams Optional parameters.
@@ -139,7 +139,7 @@ class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resourc
* Gmail but have a close variant that is, and so the variant may be chosen and
* saved instead. (settings.updateLanguage)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param Google_Service_Gmail_LanguageSettings $postBody
* @param array $optParams Optional parameters.
@@ -154,7 +154,7 @@ class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resourc
/**
* Updates POP settings. (settings.updatePop)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param Google_Service_Gmail_PopSettings $postBody
* @param array $optParams Optional parameters.
@@ -169,7 +169,7 @@ class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resourc
/**
* Updates vacation responder settings. (settings.updateVacation)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param Google_Service_Gmail_VacationSettings $postBody
* @param array $optParams Optional parameters.
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php
index 1b363b5..450a2b9 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php
@@ -27,10 +27,10 @@ class Google_Service_Gmail_Resource_UsersSettingsDelegates extends Google_Servic
{
/**
* Adds a delegate with its verification status set directly to accepted,
- * without sending any verification email. The delegate user must be a member of
- * the same G Suite organization as the delegator user.
+ * without sending any verification email. The delegate user must be a member
+ * of the same G Suite organization as the delegator user.
*
- * Gmail imposes limtations on the number of delegates and delegators each user
+ * Gmail imposes limitations on the number of delegates and delegators each user
* in a G Suite organization can have. These limits depend on your organization,
* but in general each user can have up to 25 delegates and up to 10 delegators.
*
@@ -43,7 +43,7 @@ class Google_Service_Gmail_Resource_UsersSettingsDelegates extends Google_Servic
* This method is only available to service account clients that have been
* delegated domain-wide authority. (delegates.create)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param Google_Service_Gmail_Delegate $postBody
* @param array $optParams Optional parameters.
@@ -65,7 +65,7 @@ class Google_Service_Gmail_Resource_UsersSettingsDelegates extends Google_Servic
* This method is only available to service account clients that have been
* delegated domain-wide authority. (delegates.delete)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param string $delegateEmail The email address of the user to be removed as a
* delegate.
@@ -86,7 +86,7 @@ class Google_Service_Gmail_Resource_UsersSettingsDelegates extends Google_Servic
* This method is only available to service account clients that have been
* delegated domain-wide authority. (delegates.get)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param string $delegateEmail The email address of the user whose delegate
* relationship is to be retrieved.
@@ -105,7 +105,7 @@ class Google_Service_Gmail_Resource_UsersSettingsDelegates extends Google_Servic
* This method is only available to service account clients that have been
* delegated domain-wide authority. (delegates.listUsersSettingsDelegates)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param array $optParams Optional parameters.
* @return Google_Service_Gmail_ListDelegatesResponse
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php
index b0e2508..5c39771 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php
@@ -26,7 +26,7 @@
class Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses extends Google_Service_Resource
{
/**
- * Creates a forwarding address. If ownership verification is required, a
+ * Creates a forwarding address. If ownership verification is required, a
* message will be sent to the recipient and the resource's verification status
* will be set to pending; otherwise, the resource will be created with
* verification status set to accepted.
@@ -34,7 +34,7 @@ class Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses extends Goo
* This method is only available to service account clients that have been
* delegated domain-wide authority. (forwardingAddresses.create)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param Google_Service_Gmail_ForwardingAddress $postBody
* @param array $optParams Optional parameters.
@@ -53,7 +53,7 @@ class Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses extends Goo
* This method is only available to service account clients that have been
* delegated domain-wide authority. (forwardingAddresses.delete)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param string $forwardingEmail The forwarding address to be deleted.
* @param array $optParams Optional parameters.
@@ -67,7 +67,7 @@ class Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses extends Goo
/**
* Gets the specified forwarding address. (forwardingAddresses.get)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param string $forwardingEmail The forwarding address to be retrieved.
* @param array $optParams Optional parameters.
@@ -83,7 +83,7 @@ class Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses extends Goo
* Lists the forwarding addresses for the specified account.
* (forwardingAddresses.listUsersSettingsForwardingAddresses)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param array $optParams Optional parameters.
* @return Google_Service_Gmail_ListForwardingAddressesResponse
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php
index f3c45cf..76ecb2f 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php
@@ -26,18 +26,18 @@
class Google_Service_Gmail_Resource_UsersSettingsSendAs extends Google_Service_Resource
{
/**
- * Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail
+ * Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail
* will attempt to connect to the SMTP service to validate the configuration
- * before creating the alias. If ownership verification is required for the
+ * before creating the alias. If ownership verification is required for the
* alias, a message will be sent to the email address and the resource's
* verification status will be set to pending; otherwise, the resource will be
- * created with verification status set to accepted. If a signature is provided,
- * Gmail will sanitize the HTML before saving it with the alias.
+ * created with verification status set to accepted. If a signature is
+ * provided, Gmail will sanitize the HTML before saving it with the alias.
*
* This method is only available to service account clients that have been
* delegated domain-wide authority. (sendAs.create)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param Google_Service_Gmail_SendAs $postBody
* @param array $optParams Optional parameters.
@@ -50,13 +50,13 @@ class Google_Service_Gmail_Resource_UsersSettingsSendAs extends Google_Service_R
return $this->call('create', array($params), "Google_Service_Gmail_SendAs");
}
/**
- * Deletes the specified send-as alias. Revokes any verification that may have
+ * Deletes the specified send-as alias. Revokes any verification that may have
* been required for using it.
*
* This method is only available to service account clients that have been
* delegated domain-wide authority. (sendAs.delete)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param string $sendAsEmail The send-as alias to be deleted.
* @param array $optParams Optional parameters.
@@ -68,10 +68,10 @@ class Google_Service_Gmail_Resource_UsersSettingsSendAs extends Google_Service_R
return $this->call('delete', array($params));
}
/**
- * Gets the specified send-as alias. Fails with an HTTP 404 error if the
+ * Gets the specified send-as alias. Fails with an HTTP 404 error if the
* specified address is not a member of the collection. (sendAs.get)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param string $sendAsEmail The send-as alias to be retrieved.
* @param array $optParams Optional parameters.
@@ -84,11 +84,11 @@ class Google_Service_Gmail_Resource_UsersSettingsSendAs extends Google_Service_R
return $this->call('get', array($params), "Google_Service_Gmail_SendAs");
}
/**
- * Lists the send-as aliases for the specified account. The result includes the
+ * Lists the send-as aliases for the specified account. The result includes the
* primary send-as address associated with the account as well as any custom
* "from" aliases. (sendAs.listUsersSettingsSendAs)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param array $optParams Optional parameters.
* @return Google_Service_Gmail_ListSendAsResponse
@@ -100,14 +100,9 @@ class Google_Service_Gmail_Resource_UsersSettingsSendAs extends Google_Service_R
return $this->call('list', array($params), "Google_Service_Gmail_ListSendAsResponse");
}
/**
- * Updates a send-as alias. If a signature is provided, Gmail will sanitize the
- * HTML before saving it with the alias.
+ * Patch the specified send-as alias. (sendAs.patch)
*
- * Addresses other than the primary address for the account can only be updated
- * by service account clients that have been delegated domain-wide authority.
- * This method supports patch semantics. (sendAs.patch)
- *
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param string $sendAsEmail The send-as alias to be updated.
* @param Google_Service_Gmail_SendAs $postBody
@@ -121,14 +116,14 @@ class Google_Service_Gmail_Resource_UsersSettingsSendAs extends Google_Service_R
return $this->call('patch', array($params), "Google_Service_Gmail_SendAs");
}
/**
- * Updates a send-as alias. If a signature is provided, Gmail will sanitize the
+ * Updates a send-as alias. If a signature is provided, Gmail will sanitize the
* HTML before saving it with the alias.
*
* Addresses other than the primary address for the account can only be updated
* by service account clients that have been delegated domain-wide authority.
* (sendAs.update)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param string $sendAsEmail The send-as alias to be updated.
* @param Google_Service_Gmail_SendAs $postBody
@@ -148,7 +143,7 @@ class Google_Service_Gmail_Resource_UsersSettingsSendAs extends Google_Service_R
* This method is only available to service account clients that have been
* delegated domain-wide authority. (sendAs.verify)
*
- * @param string $userId User's email address. The special value "me" can be
+ * @param string $userId User's email address. The special value "me" can be
* used to indicate the authenticated user.
* @param string $sendAsEmail The send-as alias to be verified.
* @param array $optParams Optional parameters.
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php
index b8909c4..341a7db 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php
@@ -48,9 +48,9 @@ class Google_Service_Gmail_Resource_UsersThreads extends Google_Service_Resource
* @param string $id The ID of the thread to retrieve.
* @param array $optParams Optional parameters.
*
- * @opt_param string format The format to return the messages in.
* @opt_param string metadataHeaders When given and format is METADATA, only
* include headers specified.
+ * @opt_param string format The format to return the messages in.
* @return Google_Service_Gmail_Thread
*/
public function get($userId, $id, $optParams = array())
@@ -66,17 +66,17 @@ class Google_Service_Gmail_Resource_UsersThreads extends Google_Service_Resource
* used to indicate the authenticated user.
* @param array $optParams Optional parameters.
*
- * @opt_param bool includeSpamTrash Include threads from SPAM and TRASH in the
- * results.
- * @opt_param string labelIds Only return threads with labels that match all of
- * the specified label IDs.
- * @opt_param string maxResults Maximum number of threads to return.
* @opt_param string pageToken Page token to retrieve a specific page of results
* in the list.
+ * @opt_param string labelIds Only return threads with labels that match all of
+ * the specified label IDs.
* @opt_param string q Only return threads matching the specified query.
* Supports the same query format as the Gmail search box. For example,
* "from:someuser@example.com rfc822msgid: is:unread". Parameter cannot be used
* when accessing the api using the gmail.metadata scope.
+ * @opt_param string maxResults Maximum number of threads to return.
+ * @opt_param bool includeSpamTrash Include threads from SPAM and TRASH in the
+ * results.
* @return Google_Service_Gmail_ListThreadsResponse
*/
public function listUsersThreads($userId, $optParams = array())
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php
index e1acef1..6f1fcfd 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php
@@ -38,7 +38,7 @@ use Monolog\Handler\SyslogHandler as MonologSyslogHandler;
*/
class Google_Client
{
- const LIBVER = "2.2.3";
+ const LIBVER = "2.4.1";
const USER_AGENT_SUFFIX = "google-api-php-client/";
const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke';
const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token';
@@ -142,6 +142,10 @@ class Google_Client
// Service class used in Google_Client::verifyIdToken.
// Explicitly pass this in to avoid setting JWT::$leeway
'jwt' => null,
+
+ // Setting api_format_v2 will return more detailed error messages
+ // from certain APIs.
+ 'api_format_v2' => false
],
$config
);
@@ -412,6 +416,17 @@ class Google_Client
}
/**
+ * Set the access token used for requests.
+ *
+ * Note that at the time requests are sent, tokens are cached. A token will be
+ * cached for each combination of service and authentication scopes. If a
+ * cache pool is not provided, creating a new instance of the client will
+ * allow modification of access tokens. If a persistent cache pool is
+ * provided, in order to change the access token, you must clear the cached
+ * token by calling `$client->getCache()->clear()`. (Use caution in this case,
+ * as calling `clear()` will remove all cache items, including any items not
+ * related to Google API PHP Client.)
+ *
* @param string|array $token
* @throws InvalidArgumentException
*/
@@ -789,12 +804,31 @@ class Google_Client
*/
public function execute(RequestInterface $request, $expectedClass = null)
{
- $request = $request->withHeader(
- 'User-Agent',
- $this->config['application_name']
- . " " . self::USER_AGENT_SUFFIX
- . $this->getLibraryVersion()
- );
+ $request = $request
+ ->withHeader(
+ 'User-Agent',
+ sprintf(
+ '%s %s%s',
+ $this->config['application_name'],
+ self::USER_AGENT_SUFFIX,
+ $this->getLibraryVersion()
+ )
+ )
+ ->withHeader(
+ 'x-goog-api-client',
+ sprintf(
+ 'gl-php/%s gdcl/%s',
+ phpversion(),
+ $this->getLibraryVersion()
+ )
+ );
+
+ if ($this->config['api_format_v2']) {
+ $request = $request->withHeader(
+ 'X-GOOG-API-FORMAT-VERSION',
+ 2
+ );
+ }
// call the authorize method
// this is where most of the grunt work is done
@@ -1056,6 +1090,18 @@ class Google_Client
return $this->http;
}
+ /**
+ * Set the API format version.
+ *
+ * `true` will use V2, which may return more useful error messages.
+ *
+ * @param bool $value
+ */
+ public function setApiFormatV2($value)
+ {
+ $this->config['api_format_v2'] = (bool) $value;
+ }
+
protected function createDefaultHttpClient()
{
$options = ['exceptions' => false];
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php
index 600e678..f4ee976 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php
@@ -67,9 +67,11 @@ class Google_Http_MediaFileUpload
private $httpResultCode;
/**
- * @param $mimeType string
- * @param $data string The bytes you want to upload.
- * @param $resumable bool
+ * @param Google_Client $client
+ * @param RequestInterface $request
+ * @param string $mimeType
+ * @param string $data The bytes you want to upload.
+ * @param bool $resumable
* @param bool $chunkSize File will be uploaded in chunks of this many bytes.
* only used if resumable=True
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Resource.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Resource.php
index 1f3d371..77070fc 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Resource.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Resource.php
@@ -294,7 +294,7 @@ class Google_Service_Resource
}
if (count($queryVars)) {
- $requestUrl .= '?' . implode($queryVars, '&');
+ $requestUrl .= '?' . implode('&', $queryVars);
}
return $requestUrl;
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/AccessToken.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/AccessToken.php
index a60494c..87344fa 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/AccessToken.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/AccessToken.php
@@ -17,6 +17,8 @@
namespace Google\Auth;
+use DateTime;
+use Exception;
use Firebase\JWT\ExpiredException;
use Firebase\JWT\JWT;
use Firebase\JWT\SignatureInvalidException;
@@ -25,9 +27,16 @@ use Google\Auth\HttpHandler\HttpClientCache;
use Google\Auth\HttpHandler\HttpHandlerFactory;
use GuzzleHttp\Psr7;
use GuzzleHttp\Psr7\Request;
+use InvalidArgumentException;
use phpseclib\Crypt\RSA;
use phpseclib\Math\BigInteger;
use Psr\Cache\CacheItemPoolInterface;
+use RuntimeException;
+use SimpleJWT\InvalidTokenException;
+use SimpleJWT\JWT as SimpleJWT;
+use SimpleJWT\Keys\KeyFactory;
+use SimpleJWT\Keys\KeySet;
+use UnexpectedValueException;
/**
* Wrapper around Google Access Tokens which provides convenience functions.
@@ -37,6 +46,8 @@ use Psr\Cache\CacheItemPoolInterface;
class AccessToken
{
const FEDERATED_SIGNON_CERT_URL = 'https://www.googleapis.com/oauth2/v3/certs';
+ const IAP_CERT_URL = 'https://www.gstatic.com/iap/verify/public_key-jwk';
+ const IAP_ISSUER = 'https://cloud.google.com/iap';
const OAUTH2_ISSUER = 'accounts.google.com';
const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com';
const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke';
@@ -59,19 +70,9 @@ class AccessToken
callable $httpHandler = null,
CacheItemPoolInterface $cache = null
) {
- // @codeCoverageIgnoreStart
- if (!class_exists('phpseclib\Crypt\RSA')) {
- throw new \RuntimeException('Please require phpseclib/phpseclib v2 to use this utility.');
- }
- // @codeCoverageIgnoreEnd
-
$this->httpHandler = $httpHandler
?: HttpHandlerFactory::build(HttpClientCache::getHttpClient());
$this->cache = $cache ?: new MemoryCacheItemPool();
- $this->configureJwtService();
-
- // set phpseclib constants if applicable
- $this->setPhpsecConstants();
}
/**
@@ -85,87 +86,215 @@ class AccessToken
* Configuration options.
*
* @type string $audience The indended recipient of the token.
+ * @type string $issuer The intended issuer of the token.
* @type string $certsLocation The location (remote or local) from which
* to retrieve certificates, if not cached. This value should only be
* provided in limited circumstances in which you are sure of the
* behavior.
+ * @type string $cacheKey The cache key of the cached certs. Defaults to
+ * the sha1 of $certsLocation if provided, otherwise is set to
+ * "federated_signon_certs_v3".
+ * @type bool $throwException Whether the function should throw an
+ * exception if the verification fails. This is useful for
+ * determining the reason verification failed.
* }
* @return array|bool the token payload, if successful, or false if not.
- * @throws \InvalidArgumentException If certs could not be retrieved from a local file.
- * @throws \InvalidArgumentException If received certs are in an invalid format.
- * @throws \RuntimeException If certs could not be retrieved from a remote location.
+ * @throws InvalidArgumentException If certs could not be retrieved from a local file.
+ * @throws InvalidArgumentException If received certs are in an invalid format.
+ * @throws InvalidArgumentException If the cert alg is not supported.
+ * @throws RuntimeException If certs could not be retrieved from a remote location.
+ * @throws UnexpectedValueException If the token issuer does not match.
+ * @throws UnexpectedValueException If the token audience does not match.
*/
public function verify($token, array $options = [])
{
$audience = isset($options['audience'])
? $options['audience']
: null;
+ $issuer = isset($options['issuer'])
+ ? $options['issuer']
+ : null;
$certsLocation = isset($options['certsLocation'])
? $options['certsLocation']
: self::FEDERATED_SIGNON_CERT_URL;
-
- unset($options['audience'], $options['certsLocation']);
+ $cacheKey = isset($options['cacheKey'])
+ ? $options['cacheKey']
+ : $this->getCacheKeyFromCertLocation($certsLocation);
+ $throwException = isset($options['throwException'])
+ ? $options['throwException']
+ : false; // for backwards compatibility
// Check signature against each available cert.
- // allow the loop to complete unless a known bad result is encountered.
- $certs = $this->getFederatedSignOnCerts($certsLocation, $options);
- foreach ($certs as $cert) {
- $rsa = new RSA();
- $rsa->loadKey([
- 'n' => new BigInteger($this->callJwtStatic('urlsafeB64Decode', [
- $cert['n']
- ]), 256),
- 'e' => new BigInteger($this->callJwtStatic('urlsafeB64Decode', [
- $cert['e']
- ]), 256)
- ]);
-
- try {
- $pubkey = $rsa->getPublicKey();
- $payload = $this->callJwtStatic('decode', [
- $token,
- $pubkey,
- ['RS256']
- ]);
-
- if (property_exists($payload, 'aud')) {
- if ($audience && $payload->aud != $audience) {
- return false;
- }
- }
-
- // support HTTP and HTTPS issuers
- // @see https://developers.google.com/identity/sign-in/web/backend-auth
- $issuers = [self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS];
- if (!isset($payload->iss) || !in_array($payload->iss, $issuers)) {
- return false;
- }
-
- return (array) $payload;
- } catch (ExpiredException $e) {
- return false;
- } catch (\ExpiredException $e) {
- // (firebase/php-jwt 2)
- return false;
- } catch (SignatureInvalidException $e) {
- // continue
- } catch (\SignatureInvalidException $e) {
- // continue (firebase/php-jwt 2)
- } catch (\DomainException $e) {
- // continue
+ $certs = $this->getCerts($certsLocation, $cacheKey, $options);
+ $alg = $this->determineAlg($certs);
+ if (!in_array($alg, ['RS256', 'ES256'])) {
+ throw new InvalidArgumentException(
+ 'unrecognized "alg" in certs, expected ES256 or RS256');
+ }
+ try {
+ if ($alg == 'RS256') {
+ return $this->verifyRs256($token, $certs, $audience, $issuer);
}
+ return $this->verifyEs256($token, $certs, $audience, $issuer);
+ } catch (ExpiredException $e) { // firebase/php-jwt 3+
+ } catch (\ExpiredException $e) { // firebase/php-jwt 2
+ } catch (SignatureInvalidException $e) { // firebase/php-jwt 3+
+ } catch (\SignatureInvalidException $e) { // firebase/php-jwt 2
+ } catch (InvalidTokenException $e) { // simplejwt
+ } catch (DomainException $e) {
+ } catch (InvalidArgumentException $e) {
+ } catch (UnexpectedValueException $e) {
+ }
+
+ if ($throwException) {
+ throw $e;
}
return false;
}
+ /**
+ * Identifies the expected algorithm to verify by looking at the "alg" key
+ * of the provided certs.
+ *
+ * @param array $certs Certificate array according to the JWK spec (see
+ * https://tools.ietf.org/html/rfc7517).
+ * @return string The expected algorithm, such as "ES256" or "RS256".
+ */
+ private function determineAlg(array $certs)
+ {
+ $alg = null;
+ foreach ($certs as $cert) {
+ if (empty($cert['alg'])) {
+ throw new InvalidArgumentException(
+ 'certs expects "alg" to be set'
+ );
+ }
+ $alg = $alg ?: $cert['alg'];
+
+ if ($alg != $cert['alg']) {
+ throw new InvalidArgumentException(
+ 'More than one alg detected in certs'
+ );
+ }
+ }
+ return $alg;
+ }
+
+ /**
+ * Verifies an ES256-signed JWT.
+ *
+ * @param string $token The JSON Web Token to be verified.
+ * @param array $certs Certificate array according to the JWK spec (see
+ * https://tools.ietf.org/html/rfc7517).
+ * @param string|null $audience If set, returns false if the provided
+ * audience does not match the "aud" claim on
+ * the JWT.
+ * @param string|null $issuer If set, returns false if the provided
+ * issuer does not match the "iss" claim on
+ * the JWT.
+ * @return array|bool the token payload, if successful, or false if not.
+ */
+ private function verifyEs256($token, array $certs, $audience = null, $issuer = null)
+ {
+ $this->checkSimpleJwt();
+
+ $jwkset = new KeySet();
+ foreach ($certs as $cert) {
+ $jwkset->add(KeyFactory::create($cert, 'php'));
+ }
+
+ // Validate the signature using the key set and ES256 algorithm.
+ $jwt = $this->callSimpleJwtDecode([$token, $jwkset, 'ES256']);
+ $payload = $jwt->getClaims();
+
+ if (isset($payload['aud'])) {
+ if ($audience && $payload['aud'] != $audience) {
+ throw new UnexpectedValueException('Audience does not match');
+ }
+ }
+
+ // @see https://cloud.google.com/iap/docs/signed-headers-howto#verifying_the_jwt_payload
+ $issuer = $issuer ?: self::IAP_ISSUER;
+ if (!isset($payload['iss']) || $payload['iss'] !== $issuer) {
+ throw new UnexpectedValueException('Issuer does not match');
+ }
+
+ return $payload;
+ }
+
+ /**
+ * Verifies an RS256-signed JWT.
+ *
+ * @param string $token The JSON Web Token to be verified.
+ * @param array $certs Certificate array according to the JWK spec (see
+ * https://tools.ietf.org/html/rfc7517).
+ * @param string|null $audience If set, returns false if the provided
+ * audience does not match the "aud" claim on
+ * the JWT.
+ * @param string|null $issuer If set, returns false if the provided
+ * issuer does not match the "iss" claim on
+ * the JWT.
+ * @return array|bool the token payload, if successful, or false if not.
+ */
+ private function verifyRs256($token, array $certs, $audience = null, $issuer = null)
+ {
+ $this->checkAndInitializePhpsec();
+ $keys = [];
+ foreach ($certs as $cert) {
+ if (empty($cert['kid'])) {
+ throw new InvalidArgumentException(
+ 'certs expects "kid" to be set'
+ );
+ }
+ if (empty($cert['n']) || empty($cert['e'])) {
+ throw new InvalidArgumentException(
+ 'RSA certs expects "n" and "e" to be set'
+ );
+ }
+ $rsa = new RSA();
+ $rsa->loadKey([
+ 'n' => new BigInteger($this->callJwtStatic('urlsafeB64Decode', [
+ $cert['n'],
+ ]), 256),
+ 'e' => new BigInteger($this->callJwtStatic('urlsafeB64Decode', [
+ $cert['e']
+ ]), 256),
+ ]);
+
+ // create an array of key IDs to certs for the JWT library
+ $keys[$cert['kid']] = $rsa->getPublicKey();
+ }
+
+ $payload = $this->callJwtStatic('decode', [
+ $token,
+ $keys,
+ ['RS256']
+ ]);
+
+ if (property_exists($payload, 'aud')) {
+ if ($audience && $payload->aud != $audience) {
+ throw new UnexpectedValueException('Audience does not match');
+ }
+ }
+
+ // support HTTP and HTTPS issuers
+ // @see https://developers.google.com/identity/sign-in/web/backend-auth
+ $issuers = $issuer ? [$issuer] : [self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS];
+ if (!isset($payload->iss) || !in_array($payload->iss, $issuers)) {
+ throw new UnexpectedValueException('Issuer does not match');
+ }
+
+ return (array) $payload;
+ }
+
/**
* Revoke an OAuth2 access token or refresh token. This method will revoke the current access
* token, if a token isn't provided.
*
* @param string|array $token The token (access token or a refresh token) that should be revoked.
* @param array $options [optional] Configuration options.
- * @return boolean Returns True if the revocation was successful, otherwise False.
+ * @return bool Returns True if the revocation was successful, otherwise False.
*/
public function revoke($token, array $options = [])
{
@@ -198,11 +327,11 @@ class AccessToken
* @param string $location The location from which to retrieve certs.
* @param array $options [optional] Configuration options.
* @return array
- * @throws \InvalidArgumentException If received certs are in an invalid format.
+ * @throws InvalidArgumentException If received certs are in an invalid format.
*/
- private function getFederatedSignOnCerts($location, array $options = [])
+ private function getCerts($location, $cacheKey, array $options = [])
{
- $cacheItem = $this->cache->getItem('federated_signon_certs_v3');
+ $cacheItem = $this->cache->getItem($cacheKey);
$certs = $cacheItem ? $cacheItem->get() : null;
$gotNewCerts = false;
@@ -213,15 +342,20 @@ class AccessToken
}
if (!isset($certs['keys'])) {
- throw new \InvalidArgumentException(
- 'federated sign-on certs expects "keys" to be set'
+ if ($location !== self::IAP_CERT_URL) {
+ throw new InvalidArgumentException(
+ 'federated sign-on certs expects "keys" to be set'
+ );
+ }
+ throw new InvalidArgumentException(
+ 'certs expects "keys" to be set'
);
}
// Push caching off until after verifying certs are in a valid format.
// Don't want to cache bad data.
if ($gotNewCerts) {
- $cacheItem->expiresAt(new \DateTime('+1 hour'));
+ $cacheItem->expiresAt(new DateTime('+1 hour'));
$cacheItem->set($certs);
$this->cache->save($cacheItem);
}
@@ -234,17 +368,16 @@ class AccessToken
*
* @param $url string location
* @param array $options [optional] Configuration options.
- * @throws \RuntimeException
* @return array certificates
- * @throws \InvalidArgumentException If certs could not be retrieved from a local file.
- * @throws \RuntimeException If certs could not be retrieved from a remote location.
+ * @throws InvalidArgumentException If certs could not be retrieved from a local file.
+ * @throws RuntimeException If certs could not be retrieved from a remote location.
*/
private function retrieveCertsFromLocation($url, array $options = [])
{
// If we're retrieving a local file, just grab it.
if (strpos($url, 'http') !== 0) {
if (!file_exists($url)) {
- throw new \InvalidArgumentException(sprintf(
+ throw new InvalidArgumentException(sprintf(
'Failed to retrieve verification certificates from path: %s.',
$url
));
@@ -260,26 +393,30 @@ class AccessToken
return json_decode((string) $response->getBody(), true);
}
- throw new \RuntimeException(sprintf(
+ throw new RuntimeException(sprintf(
'Failed to retrieve verification certificates: "%s".',
$response->getBody()->getContents()
), $response->getStatusCode());
}
- /**
- * Set required defaults for JWT.
- */
- private function configureJwtService()
+ private function checkAndInitializePhpsec()
{
- $class = class_exists('Firebase\JWT\JWT')
- ? 'Firebase\JWT\JWT'
- : '\JWT';
-
- if (property_exists($class, 'leeway') && $class::$leeway < 1) {
- // Ensures JWT leeway is at least 1
- // @see https://github.com/google/google-api-php-client/issues/827
- $class::$leeway = 1;
+ // @codeCoverageIgnoreStart
+ if (!class_exists('phpseclib\Crypt\RSA')) {
+ throw new RuntimeException('Please require phpseclib/phpseclib v2 to use this utility.');
}
+ // @codeCoverageIgnoreEnd
+
+ $this->setPhpsecConstants();
+ }
+
+ private function checkSimpleJwt()
+ {
+ // @codeCoverageIgnoreStart
+ if (!class_exists('SimpleJWT\JWT')) {
+ throw new RuntimeException('Please require kelvinmo/simplejwt ^0.2 to use this utility.');
+ }
+ // @codeCoverageIgnoreEnd
}
/**
@@ -317,4 +454,31 @@ class AccessToken
: 'JWT';
return call_user_func_array([$class, $method], $args);
}
+
+ /**
+ * Provide a hook to mock calls to the JWT static methods.
+ *
+ * @param array $args
+ * @return mixed
+ */
+ protected function callSimpleJwtDecode(array $args = [])
+ {
+ return call_user_func_array(['SimpleJWT\JWT', 'decode'], $args);
+ }
+
+ /**
+ * Generate a cache key based on the cert location using sha1 with the
+ * exception of using "federated_signon_certs_v3" to preserve BC.
+ *
+ * @param string $certsLocation
+ * @return string
+ */
+ private function getCacheKeyFromCertLocation($certsLocation)
+ {
+ $key = $certsLocation === self::FEDERATED_SIGNON_CERT_URL
+ ? 'federated_signon_certs_v3'
+ : sha1($certsLocation);
+
+ return 'google_auth_certs_cache|' . $key;
+ }
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ApplicationDefaultCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ApplicationDefaultCredentials.php
index 1cfca8e..c99beb1 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ApplicationDefaultCredentials.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ApplicationDefaultCredentials.php
@@ -20,11 +20,13 @@ namespace Google\Auth;
use DomainException;
use Google\Auth\Credentials\AppIdentityCredentials;
use Google\Auth\Credentials\GCECredentials;
+use Google\Auth\Credentials\ServiceAccountCredentials;
use Google\Auth\HttpHandler\HttpClientCache;
use Google\Auth\HttpHandler\HttpHandlerFactory;
use Google\Auth\Middleware\AuthTokenMiddleware;
use Google\Auth\Subscriber\AuthTokenSubscriber;
use GuzzleHttp\Client;
+use InvalidArgumentException;
use Psr\Cache\CacheItemPoolInterface;
/**
@@ -121,8 +123,9 @@ class ApplicationDefaultCredentials
}
/**
- * Obtains the default FetchAuthTokenInterface implementation to use
- * in this environment.
+ * Obtains an AuthTokenMiddleware which will fetch an access token to use in
+ * the Authorization header. The middleware is configured with the default
+ * FetchAuthTokenInterface implementation to use in this environment.
*
* If supplied, $scope is used to in creating the credentials instance if
* this does not fallback to the Compute Engine defaults.
@@ -165,7 +168,97 @@ class ApplicationDefaultCredentials
}
if (is_null($creds)) {
- throw new \DomainException(self::notFound());
+ throw new DomainException(self::notFound());
+ }
+ if (!is_null($cache)) {
+ $creds = new FetchAuthTokenCache($creds, $cacheConfig, $cache);
+ }
+ return $creds;
+ }
+
+ /**
+ * Obtains an AuthTokenMiddleware which will fetch an ID token to use in the
+ * Authorization header. The middleware is configured with the default
+ * FetchAuthTokenInterface implementation to use in this environment.
+ *
+ * If supplied, $targetAudience is used to set the "aud" on the resulting
+ * ID token.
+ *
+ * @param string $targetAudience The audience for the ID token.
+ * @param callable $httpHandler callback which delivers psr7 request
+ * @param array $cacheConfig configuration for the cache when it's present
+ * @param CacheItemPoolInterface $cache
+ *
+ * @return AuthTokenMiddleware
+ *
+ * @throws DomainException if no implementation can be obtained.
+ */
+ public static function getIdTokenMiddleware(
+ $targetAudience,
+ callable $httpHandler = null,
+ array $cacheConfig = null,
+ CacheItemPoolInterface $cache = null
+
+ ) {
+ $creds = self::getIdTokenCredentials($targetAudience, $httpHandler, $cacheConfig, $cache);
+
+ return new AuthTokenMiddleware($creds, $httpHandler);
+ }
+
+ /**
+ * Obtains the default FetchAuthTokenInterface implementation to use
+ * in this environment, configured with a $targetAudience for fetching an ID
+ * token.
+ *
+ * @param string $targetAudience The audience for the ID token.
+ * @param callable $httpHandler callback which delivers psr7 request
+ * @param array $cacheConfig configuration for the cache when it's present
+ * @param CacheItemPoolInterface $cache
+ *
+ * @return CredentialsLoader
+ *
+ * @throws DomainException if no implementation can be obtained.
+ * @throws InvalidArgumentException if JSON "type" key is invalid
+ */
+ public static function getIdTokenCredentials(
+ $targetAudience,
+ callable $httpHandler = null,
+ array $cacheConfig = null,
+ CacheItemPoolInterface $cache = null
+ ) {
+ $creds = null;
+ $jsonKey = CredentialsLoader::fromEnv()
+ ?: CredentialsLoader::fromWellKnownFile();
+
+ if (!$httpHandler) {
+ if (!($client = HttpClientCache::getHttpClient())) {
+ $client = new Client();
+ HttpClientCache::setHttpClient($client);
+ }
+
+ $httpHandler = HttpHandlerFactory::build($client);
+ }
+
+ if (!is_null($jsonKey)) {
+ if (!array_key_exists('type', $jsonKey)) {
+ throw new \InvalidArgumentException('json key is missing the type field');
+ }
+
+ if ($jsonKey['type'] == 'authorized_user') {
+ throw new InvalidArgumentException('ID tokens are not supported for end user credentials');
+ }
+
+ if ($jsonKey['type'] != 'service_account') {
+ throw new InvalidArgumentException('invalid value in the type field');
+ }
+
+ $creds = new ServiceAccountCredentials(null, $jsonKey, null, $targetAudience);
+ } elseif (GCECredentials::onGce($httpHandler)) {
+ $creds = new GCECredentials(null, null, $targetAudience);
+ }
+
+ if (is_null($creds)) {
+ throw new DomainException(self::notFound());
}
if (!is_null($cache)) {
$creds = new FetchAuthTokenCache($creds, $cacheConfig, $cache);
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/SysVCacheItemPool.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/SysVCacheItemPool.php
index 361dcfb..5280eee 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/SysVCacheItemPool.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/SysVCacheItemPool.php
@@ -76,7 +76,7 @@ class SysVCacheItemPool implements CacheItemPoolInterface
public function __construct($options = [])
{
if (! extension_loaded('sysvshm')) {
- throw \RuntimeException(
+ throw new \RuntimeException(
'sysvshm extension is required to use this ItemPool');
}
$this->options = $options + [
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/AppIdentityCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/AppIdentityCredentials.php
index 31342e6..5244b70 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/AppIdentityCredentials.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/AppIdentityCredentials.php
@@ -24,6 +24,7 @@ namespace Google\Auth\Credentials;
*/
use google\appengine\api\app_identity\AppIdentityService;
use Google\Auth\CredentialsLoader;
+use Google\Auth\ProjectIdProviderInterface;
use Google\Auth\SignBlobInterface;
/**
@@ -32,35 +33,42 @@ use Google\Auth\SignBlobInterface;
* It can be used to authorize requests using the AuthTokenMiddleware or
* AuthTokenSubscriber, but will only succeed if being run on App Engine:
*
- * use Google\Auth\Credentials\AppIdentityCredentials;
- * use Google\Auth\Middleware\AuthTokenMiddleware;
- * use GuzzleHttp\Client;
- * use GuzzleHttp\HandlerStack;
+ * Example:
+ * ```
+ * use Google\Auth\Credentials\AppIdentityCredentials;
+ * use Google\Auth\Middleware\AuthTokenMiddleware;
+ * use GuzzleHttp\Client;
+ * use GuzzleHttp\HandlerStack;
*
- * $gae = new AppIdentityCredentials('https://www.googleapis.com/auth/books');
- * $middleware = new AuthTokenMiddleware($gae);
- * $stack = HandlerStack::create();
- * $stack->push($middleware);
+ * $gae = new AppIdentityCredentials('https://www.googleapis.com/auth/books');
+ * $middleware = new AuthTokenMiddleware($gae);
+ * $stack = HandlerStack::create();
+ * $stack->push($middleware);
*
- * $client = new Client([
- * 'handler' => $stack,
- * 'base_uri' => 'https://www.googleapis.com/books/v1',
- * 'auth' => 'google_auth'
- * ]);
+ * $client = new Client([
+ * 'handler' => $stack,
+ * 'base_uri' => 'https://www.googleapis.com/books/v1',
+ * 'auth' => 'google_auth'
+ * ]);
*
- * $res = $client->get('volumes?q=Henry+David+Thoreau&country=US');
+ * $res = $client->get('volumes?q=Henry+David+Thoreau&country=US');
+ * ```
*/
-class AppIdentityCredentials extends CredentialsLoader implements SignBlobInterface
+class AppIdentityCredentials extends CredentialsLoader implements
+ SignBlobInterface,
+ ProjectIdProviderInterface
{
/**
* Result of fetchAuthToken.
*
- * @array
+ * @var array
*/
protected $lastReceivedToken;
/**
* Array of OAuth2 scopes to be requested.
+ *
+ * @var array
*/
private $scope;
@@ -69,6 +77,9 @@ class AppIdentityCredentials extends CredentialsLoader implements SignBlobInterf
*/
private $clientName;
+ /**
+ * @param array $scope One or more scopes.
+ */
public function __construct($scope = array())
{
$this->scope = $scope;
@@ -143,6 +154,25 @@ class AppIdentityCredentials extends CredentialsLoader implements SignBlobInterf
return base64_encode(AppIdentityService::signForApp($stringToSign)['signature']);
}
+ /**
+ * Get the project ID from AppIdentityService.
+ *
+ * Returns null if AppIdentityService is unavailable.
+ *
+ * @param callable $httpHandler Not used by this type.
+ * @return string|null
+ */
+ public function getProjectId(callable $httpHander = null)
+ {
+ try {
+ $this->checkAppEngineContext();
+ } catch (\Exception $e) {
+ return null;
+ }
+
+ return AppIdentityService::getApplicationId();
+ }
+
/**
* Get the client name from AppIdentityService.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/GCECredentials.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/GCECredentials.php
index 24cdd4a..461e36f 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/GCECredentials.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/GCECredentials.php
@@ -21,11 +21,13 @@ use Google\Auth\CredentialsLoader;
use Google\Auth\HttpHandler\HttpClientCache;
use Google\Auth\HttpHandler\HttpHandlerFactory;
use Google\Auth\Iam;
+use Google\Auth\ProjectIdProviderInterface;
use Google\Auth\SignBlobInterface;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Exception\ServerException;
use GuzzleHttp\Psr7\Request;
+use InvalidArgumentException;
/**
* GCECredentials supports authorization on Google Compute Engine.
@@ -51,7 +53,9 @@ use GuzzleHttp\Psr7\Request;
*
* $res = $client->get('myproject/taskqueues/myqueue');
*/
-class GCECredentials extends CredentialsLoader implements SignBlobInterface
+class GCECredentials extends CredentialsLoader implements
+ SignBlobInterface,
+ ProjectIdProviderInterface
{
const cacheKey = 'GOOGLE_AUTH_PHP_GCE';
@@ -68,11 +72,21 @@ class GCECredentials extends CredentialsLoader implements SignBlobInterface
*/
const TOKEN_URI_PATH = 'v1/instance/service-accounts/default/token';
+ /**
+ * The metadata path of the default id token.
+ */
+ const ID_TOKEN_URI_PATH = 'v1/instance/service-accounts/default/identity';
+
/**
* The metadata path of the client ID.
*/
const CLIENT_ID_URI_PATH = 'v1/instance/service-accounts/default/email';
+ /**
+ * The metadata path of the project ID.
+ */
+ const PROJECT_ID_URI_PATH = 'v1/project/project-id';
+
/**
* The header whose presence indicates GCE presence.
*/
@@ -111,10 +125,15 @@ class GCECredentials extends CredentialsLoader implements SignBlobInterface
protected $lastReceivedToken;
/**
- * @var string
+ * @var string|null
*/
private $clientName;
+ /**
+ * @var string|null
+ */
+ private $projectId;
+
/**
* @var Iam|null
*/
@@ -125,15 +144,26 @@ class GCECredentials extends CredentialsLoader implements SignBlobInterface
*/
private $tokenUri;
+ /**
+ * @var string
+ */
+ private $targetAudience;
+
/**
* @param Iam $iam [optional] An IAM instance.
* @param string|array $scope [optional] the scope of the access request,
* expressed either as an array or as a space-delimited string.
+ * @param string $targetAudience [optional] The audience for the ID token.
*/
- public function __construct(Iam $iam = null, $scope = null)
+ public function __construct(Iam $iam = null, $scope = null, $targetAudience = null)
{
$this->iam = $iam;
+ if ($scope && $targetAudience) {
+ throw new InvalidArgumentException(
+ 'Scope and targetAudience cannot both be supplied');
+ }
+
$tokenUri = self::getTokenUri();
if ($scope) {
if (is_string($scope)) {
@@ -143,6 +173,13 @@ class GCECredentials extends CredentialsLoader implements SignBlobInterface
$scope = implode(',', $scope);
$tokenUri = $tokenUri . '?scopes='. $scope;
+ } elseif ($targetAudience) {
+ $tokenUri = sprintf('http://%s/computeMetadata/%s?audience=%s',
+ self::METADATA_IP,
+ self::ID_TOKEN_URI_PATH,
+ $targetAudience
+ );
+ $this->targetAudience = $targetAudience;
}
$this->tokenUri = $tokenUri;
@@ -172,6 +209,18 @@ class GCECredentials extends CredentialsLoader implements SignBlobInterface
return $base . self::CLIENT_ID_URI_PATH;
}
+ /**
+ * The full uri for accessing the default project ID.
+ *
+ * @return string
+ */
+ private static function getProjectIdUri()
+ {
+ $base = 'http://' . self::METADATA_IP . '/computeMetadata/';
+
+ return $base . self::PROJECT_ID_URI_PATH;
+ }
+
/**
* Determines if this an App Engine Flexible instance, by accessing the
* GAE_INSTANCE environment variable.
@@ -189,8 +238,7 @@ class GCECredentials extends CredentialsLoader implements SignBlobInterface
* If $httpHandler is not specified a the default HttpHandler is used.
*
* @param callable $httpHandler callback which delivers psr7 request
- *
- * @return true if this a GCEInstance false otherwise
+ * @return bool True if this a GCEInstance, false otherwise
*/
public static function onGce(callable $httpHandler = null)
{
@@ -234,11 +282,14 @@ class GCECredentials extends CredentialsLoader implements SignBlobInterface
*
* @param callable $httpHandler callback which delivers psr7 request
*
- * @return array A set of auth related metadata, containing the following
- * keys:
+ * @return array A set of auth related metadata, based on the token type.
+ *
+ * Access tokens have the following keys:
* - access_token (string)
* - expires_in (int)
* - token_type (string)
+ * ID tokens have the following keys:
+ * - id_token (string)
*
* @throws \Exception
*/
@@ -255,8 +306,13 @@ class GCECredentials extends CredentialsLoader implements SignBlobInterface
return array(); // return an empty array with no access token
}
- $json = $this->getFromMetadata($httpHandler, $this->tokenUri);
- if (null === $json = json_decode($json, true)) {
+ $response = $this->getFromMetadata($httpHandler, $this->tokenUri);
+
+ if ($this->targetAudience) {
+ return ['id_token' => $response];
+ }
+
+ if (null === $json = json_decode($response, true)) {
throw new \Exception('Invalid JSON response');
}
@@ -351,6 +407,36 @@ class GCECredentials extends CredentialsLoader implements SignBlobInterface
return $signer->signBlob($email, $accessToken, $stringToSign);
}
+ /**
+ * Fetch the default Project ID from compute engine.
+ *
+ * Returns null if called outside GCE.
+ *
+ * @param callable $httpHandler Callback which delivers psr7 request
+ * @return string|null
+ */
+ public function getProjectId(callable $httpHandler = null)
+ {
+ if ($this->projectId) {
+ return $this->projectId;
+ }
+
+ $httpHandler = $httpHandler
+ ?: HttpHandlerFactory::build(HttpClientCache::getHttpClient());
+
+ if (!$this->hasCheckedOnGce) {
+ $this->isOnGce = self::onGce($httpHandler);
+ $this->hasCheckedOnGce = true;
+ }
+
+ if (!$this->isOnGce) {
+ return null;
+ }
+
+ $this->projectId = $this->getFromMetadata($httpHandler, self::getProjectIdUri());
+ return $this->projectId;
+ }
+
/**
* Fetch the value of a GCE metadata server URI.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountCredentials.php
index 7e801b7..1bab948 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountCredentials.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountCredentials.php
@@ -18,9 +18,12 @@
namespace Google\Auth\Credentials;
use Google\Auth\CredentialsLoader;
+use Google\Auth\GetQuotaProjectInterface;
use Google\Auth\OAuth2;
+use Google\Auth\ProjectIdProviderInterface;
use Google\Auth\ServiceAccountSignerTrait;
use Google\Auth\SignBlobInterface;
+use InvalidArgumentException;
/**
* ServiceAccountCredentials supports authorization using a Google service
@@ -55,7 +58,10 @@ use Google\Auth\SignBlobInterface;
*
* $res = $client->get('myproject/taskqueues/myqueue');
*/
-class ServiceAccountCredentials extends CredentialsLoader implements SignBlobInterface
+class ServiceAccountCredentials extends CredentialsLoader implements
+ GetQuotaProjectInterface,
+ SignBlobInterface,
+ ProjectIdProviderInterface
{
use ServiceAccountSignerTrait;
@@ -66,6 +72,18 @@ class ServiceAccountCredentials extends CredentialsLoader implements SignBlobInt
*/
protected $auth;
+ /**
+ * The quota project associated with the JSON credentials
+ *
+ * @var string
+ */
+ protected $quotaProject;
+
+ /*
+ * @var string|null
+ */
+ protected $projectId;
+
/**
* Create a new ServiceAccountCredentials.
*
@@ -75,11 +93,13 @@ class ServiceAccountCredentials extends CredentialsLoader implements SignBlobInt
* as an associative array
* @param string $sub an email address account to impersonate, in situations when
* the service account has been delegated domain wide access.
+ * @param string $targetAudience The audience for the ID token.
*/
public function __construct(
$scope,
$jsonKey,
- $sub = null
+ $sub = null,
+ $targetAudience = null
) {
if (is_string($jsonKey)) {
if (!file_exists($jsonKey)) {
@@ -98,6 +118,17 @@ class ServiceAccountCredentials extends CredentialsLoader implements SignBlobInt
throw new \InvalidArgumentException(
'json key is missing the private_key field');
}
+ if (array_key_exists('quota_project', $jsonKey)) {
+ $this->quotaProject = (string) $jsonKey['quota_project'];
+ }
+ if ($scope && $targetAudience) {
+ throw new InvalidArgumentException(
+ 'Scope and targetAudience cannot both be supplied');
+ }
+ $additionalClaims = [];
+ if ($targetAudience) {
+ $additionalClaims = ['target_audience' => $targetAudience];
+ }
$this->auth = new OAuth2([
'audience' => self::TOKEN_CREDENTIAL_URI,
'issuer' => $jsonKey['client_email'],
@@ -106,7 +137,12 @@ class ServiceAccountCredentials extends CredentialsLoader implements SignBlobInt
'signingKey' => $jsonKey['private_key'],
'sub' => $sub,
'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI,
+ 'additionalClaims' => $additionalClaims,
]);
+
+ $this->projectId = isset($jsonKey['project_id'])
+ ? $jsonKey['project_id']
+ : null;
}
/**
@@ -144,6 +180,19 @@ class ServiceAccountCredentials extends CredentialsLoader implements SignBlobInt
return $this->auth->getLastReceivedToken();
}
+ /**
+ * Get the project ID from the service account keyfile.
+ *
+ * Returns null if the project ID does not exist in the keyfile.
+ *
+ * @param callable $httpHandler Not used by this credentials type.
+ * @return string|null
+ */
+ public function getProjectId(callable $httpHandler = null)
+ {
+ return $this->projectId;
+ }
+
/**
* Updates metadata with the authorization token.
*
@@ -195,4 +244,14 @@ class ServiceAccountCredentials extends CredentialsLoader implements SignBlobInt
{
return $this->auth->getIssuer();
}
+
+ /**
+ * Get the quota project used for this API request
+ *
+ * @return string|null
+ */
+ public function getQuotaProject()
+ {
+ return $this->quotaProject;
+ }
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php
index cf9e06a..b3a2517 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php
@@ -18,7 +18,9 @@
namespace Google\Auth\Credentials;
use Google\Auth\CredentialsLoader;
+use Google\Auth\GetQuotaProjectInterface;
use Google\Auth\OAuth2;
+use Google\Auth\ProjectIdProviderInterface;
use Google\Auth\ServiceAccountSignerTrait;
use Google\Auth\SignBlobInterface;
@@ -31,7 +33,10 @@ use Google\Auth\SignBlobInterface;
* console (via 'Generate new Json Key'). It is not part of any OAuth2
* flow, rather it creates a JWT and sends that as a credential.
*/
-class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements SignBlobInterface
+class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements
+ GetQuotaProjectInterface,
+ SignBlobInterface,
+ ProjectIdProviderInterface
{
use ServiceAccountSignerTrait;
@@ -42,6 +47,11 @@ class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements Si
*/
protected $auth;
+ /**
+ * The quota project associated with the JSON credentials
+ */
+ protected $quotaProject;
+
/**
* Create a new ServiceAccountJwtAccessCredentials.
*
@@ -67,12 +77,19 @@ class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements Si
throw new \InvalidArgumentException(
'json key is missing the private_key field');
}
+ if (array_key_exists('quota_project', $jsonKey)) {
+ $this->quotaProject = (string) $jsonKey['quota_project'];
+ }
$this->auth = new OAuth2([
'issuer' => $jsonKey['client_email'],
'sub' => $jsonKey['client_email'],
'signingAlgorithm' => 'RS256',
'signingKey' => $jsonKey['private_key'],
]);
+
+ $this->projectId = isset($jsonKey['project_id'])
+ ? $jsonKey['project_id']
+ : null;
}
/**
@@ -135,6 +152,19 @@ class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements Si
return $this->auth->getLastReceivedToken();
}
+ /**
+ * Get the project ID from the service account keyfile.
+ *
+ * Returns null if the project ID does not exist in the keyfile.
+ *
+ * @param callable $httpHandler Not used by this credentials type.
+ * @return string|null
+ */
+ public function getProjectId(callable $httpHandler = null)
+ {
+ return $this->projectId;
+ }
+
/**
* Get the client name from the keyfile.
*
@@ -147,4 +177,14 @@ class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements Si
{
return $this->auth->getIssuer();
}
+
+ /**
+ * Get the quota project used for this API request
+ *
+ * @return string|null
+ */
+ public function getQuotaProject()
+ {
+ return $this->quotaProject;
+ }
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/UserRefreshCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/UserRefreshCredentials.php
index 74dcad8..a42665d 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/UserRefreshCredentials.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/UserRefreshCredentials.php
@@ -18,6 +18,7 @@
namespace Google\Auth\Credentials;
use Google\Auth\CredentialsLoader;
+use Google\Auth\GetQuotaProjectInterface;
use Google\Auth\OAuth2;
/**
@@ -31,7 +32,7 @@ use Google\Auth\OAuth2;
*
* @see [Application Default Credentials](http://goo.gl/mkAHpZ)
*/
-class UserRefreshCredentials extends CredentialsLoader
+class UserRefreshCredentials extends CredentialsLoader implements GetQuotaProjectInterface
{
const CLOUD_SDK_CLIENT_ID =
'764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com';
@@ -45,6 +46,11 @@ class UserRefreshCredentials extends CredentialsLoader
*/
protected $auth;
+ /**
+ * The quota project associated with the JSON credentials
+ */
+ protected $quotaProject;
+
/**
* Create a new UserRefreshCredentials.
*
@@ -85,7 +91,11 @@ class UserRefreshCredentials extends CredentialsLoader
'scope' => $scope,
'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI,
]);
+ if (array_key_exists('quota_project', $jsonKey)) {
+ $this->quotaProject = (string) $jsonKey['quota_project'];
+ }
if ($jsonKey['client_id'] === self::CLOUD_SDK_CLIENT_ID
+ && is_null($this->quotaProject)
&& getenv(self::SUPPRESS_CLOUD_SDK_CREDS_WARNING_ENV) !== 'true') {
trigger_error(
'Your application has authenticated using end user credentials '
@@ -134,4 +144,14 @@ class UserRefreshCredentials extends CredentialsLoader
{
return $this->auth->getLastReceivedToken();
}
+
+ /**
+ * Get the quota project used for this API request
+ *
+ * @return string|null
+ */
+ public function getQuotaProject()
+ {
+ return $this->quotaProject;
+ }
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/FetchAuthTokenCache.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/FetchAuthTokenCache.php
index 7824d15..205ef66 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/FetchAuthTokenCache.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/FetchAuthTokenCache.php
@@ -23,7 +23,11 @@ use Psr\Cache\CacheItemPoolInterface;
* A class to implement caching for any object implementing
* FetchAuthTokenInterface
*/
-class FetchAuthTokenCache implements FetchAuthTokenInterface, SignBlobInterface
+class FetchAuthTokenCache implements
+ FetchAuthTokenInterface,
+ GetQuotaProjectInterface,
+ SignBlobInterface,
+ ProjectIdProviderInterface
{
use CacheTrait;
@@ -139,4 +143,37 @@ class FetchAuthTokenCache implements FetchAuthTokenInterface, SignBlobInterface
return $this->fetcher->signBlob($stringToSign, $forceOpenSsl);
}
+
+ /**
+ * Get the quota project used for this API request from the credentials
+ * fetcher.
+ *
+ * @return string|null
+ */
+ public function getQuotaProject()
+ {
+ if ($this->fetcher instanceof GetQuotaProjectInterface) {
+ return $this->fetcher->getQuotaProject();
+ }
+ }
+
+ /*
+ * Get the Project ID from the fetcher.
+ *
+ * @param callable $httpHandler Callback which delivers psr7 request
+ * @return string|null
+ * @throws \RuntimeException If the fetcher does not implement
+ * `Google\Auth\ProvidesProjectIdInterface`.
+ */
+ public function getProjectId(callable $httpHandler = null)
+ {
+ if (!$this->fetcher instanceof ProjectIdProviderInterface) {
+ throw new \RuntimeException(
+ 'Credentials fetcher does not implement ' .
+ 'Google\Auth\ProvidesProjectIdInterface'
+ );
+ }
+
+ return $this->fetcher->getProjectId($httpHandler);
+ }
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/GetQuotaProjectInterface.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/GetQuotaProjectInterface.php
new file mode 100644
index 0000000..517f062
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/GetQuotaProjectInterface.php
@@ -0,0 +1,33 @@
+withHeader('authorization', 'Bearer ' . $this->fetchToken());
+ if ($quotaProject = $this->getQuotaProject()) {
+ $request = $request->withHeader(
+ GetQuotaProjectInterface::X_GOOG_USER_PROJECT_HEADER,
+ $quotaProject
+ );
+ }
+
return $handler($request, $options);
};
}
@@ -122,5 +130,16 @@ class AuthTokenMiddleware
return $auth_tokens['access_token'];
}
+
+ if (array_key_exists('id_token', $auth_tokens)) {
+ return $auth_tokens['id_token'];
+ }
+ }
+
+ private function getQuotaProject()
+ {
+ if ($this->fetcher instanceof GetQuotaProjectInterface) {
+ return $this->fetcher->getQuotaProject();
+ }
}
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ProjectIdProviderInterface.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ProjectIdProviderInterface.php
new file mode 100644
index 0000000..0a41f78
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ProjectIdProviderInterface.php
@@ -0,0 +1,32 @@
+tokenCallback, $this->fetcher->getCacheKey(), $auth_tokens['access_token']);
}
}
+
+ if ($quotaProject = $this->getQuotaProject()) {
+ $request->setHeader(
+ GetQuotaProjectInterface::X_GOOG_USER_PROJECT_HEADER,
+ $quotaProject
+ );
+ }
+ }
+
+ private function getQuotaProject()
+ {
+ if ($this->fetcher instanceof GetQuotaProjectInterface) {
+ return $this->fetcher->getQuotaProject();
+ }
}
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/Dockerfile b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/Dockerfile
deleted file mode 100644
index f6a0952..0000000
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/Dockerfile
+++ /dev/null
@@ -1,18 +0,0 @@
-FROM composer:latest as setup
-
-RUN mkdir /guzzle
-
-WORKDIR /guzzle
-
-RUN set -xe \
- && composer init --name=guzzlehttp/test --description="Simple project for testing Guzzle scripts" --author="Márk Sági-Kazár " --no-interaction \
- && composer require guzzlehttp/guzzle
-
-
-FROM php:7.3
-
-RUN mkdir /guzzle
-
-WORKDIR /guzzle
-
-COPY --from=setup /guzzle /guzzle
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Client.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Client.php
index 0f43c71..cd9a635 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Client.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Client.php
@@ -2,11 +2,12 @@
namespace GuzzleHttp;
use GuzzleHttp\Cookie\CookieJar;
+use GuzzleHttp\Exception\InvalidArgumentException;
use GuzzleHttp\Promise;
use GuzzleHttp\Psr7;
-use Psr\Http\Message\UriInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\UriInterface;
/**
* @method ResponseInterface get(string|UriInterface $uri, array $options = [])
@@ -75,6 +76,12 @@ class Client implements ClientInterface
$this->configureDefaults($config);
}
+ /**
+ * @param string $method
+ * @param array $args
+ *
+ * @return Promise\PromiseInterface
+ */
public function __call($method, $args)
{
if (count($args) < 1) {
@@ -89,6 +96,14 @@ class Client implements ClientInterface
: $this->request($method, $uri, $opts);
}
+ /**
+ * Asynchronously send an HTTP request.
+ *
+ * @param array $options Request options to apply to the given
+ * request and to the transfer. See \GuzzleHttp\RequestOptions.
+ *
+ * @return Promise\PromiseInterface
+ */
public function sendAsync(RequestInterface $request, array $options = [])
{
// Merge the base URI into the request URI if needed.
@@ -100,12 +115,35 @@ class Client implements ClientInterface
);
}
+ /**
+ * Send an HTTP request.
+ *
+ * @param array $options Request options to apply to the given
+ * request and to the transfer. See \GuzzleHttp\RequestOptions.
+ *
+ * @return ResponseInterface
+ * @throws GuzzleException
+ */
public function send(RequestInterface $request, array $options = [])
{
$options[RequestOptions::SYNCHRONOUS] = true;
return $this->sendAsync($request, $options)->wait();
}
+ /**
+ * Create and send an asynchronous HTTP request.
+ *
+ * Use an absolute path to override the base path of the client, or a
+ * relative path to append to the base path of the client. The URL can
+ * contain the query string as well. Use an array to provide a URL
+ * template and additional variables to use in the URL template expansion.
+ *
+ * @param string $method HTTP method
+ * @param string|UriInterface $uri URI object or string.
+ * @param array $options Request options to apply. See \GuzzleHttp\RequestOptions.
+ *
+ * @return Promise\PromiseInterface
+ */
public function requestAsync($method, $uri = '', array $options = [])
{
$options = $this->prepareDefaults($options);
@@ -125,12 +163,37 @@ class Client implements ClientInterface
return $this->transfer($request, $options);
}
+ /**
+ * Create and send an HTTP request.
+ *
+ * Use an absolute path to override the base path of the client, or a
+ * relative path to append to the base path of the client. The URL can
+ * contain the query string as well.
+ *
+ * @param string $method HTTP method.
+ * @param string|UriInterface $uri URI object or string.
+ * @param array $options Request options to apply. See \GuzzleHttp\RequestOptions.
+ *
+ * @return ResponseInterface
+ * @throws GuzzleException
+ */
public function request($method, $uri = '', array $options = [])
{
$options[RequestOptions::SYNCHRONOUS] = true;
return $this->requestAsync($method, $uri, $options)->wait();
}
+ /**
+ * Get a client configuration option.
+ *
+ * These options include default request options of the client, a "handler"
+ * (if utilized by the concrete client), and a "base_uri" if utilized by
+ * the concrete client.
+ *
+ * @param string|null $option The config option to retrieve.
+ *
+ * @return mixed
+ */
public function getConfig($option = null)
{
return $option === null
@@ -138,6 +201,11 @@ class Client implements ClientInterface
: (isset($this->config[$option]) ? $this->config[$option] : null);
}
+ /**
+ * @param string|null $uri
+ *
+ * @return UriInterface
+ */
private function buildUri($uri, array $config)
{
// for BC we accept null which would otherwise fail in uri_for
@@ -147,6 +215,11 @@ class Client implements ClientInterface
$uri = Psr7\UriResolver::resolve(Psr7\uri_for($config['base_uri']), $uri);
}
+ if (isset($config['idn_conversion']) && ($config['idn_conversion'] !== false)) {
+ $idnOptions = ($config['idn_conversion'] === true) ? IDNA_DEFAULT : $config['idn_conversion'];
+ $uri = Utils::idnUriConvert($uri, $idnOptions);
+ }
+
return $uri->getScheme() === '' && $uri->getHost() !== '' ? $uri->withScheme('http') : $uri;
}
@@ -154,6 +227,7 @@ class Client implements ClientInterface
* Configures the default options for a client.
*
* @param array $config
+ * @return void
*/
private function configureDefaults(array $config)
{
@@ -162,7 +236,8 @@ class Client implements ClientInterface
'http_errors' => true,
'decode_content' => true,
'verify' => true,
- 'cookies' => false
+ 'cookies' => false,
+ 'idn_conversion' => true,
];
// Use the standard Linux HTTP_PROXY and HTTPS_PROXY if set.
@@ -170,7 +245,7 @@ class Client implements ClientInterface
// We can only trust the HTTP_PROXY environment variable in a CLI
// process due to the fact that PHP has no reliable mechanism to
// get environment variables that start with "HTTP_".
- if (php_sapi_name() == 'cli' && getenv('HTTP_PROXY')) {
+ if (php_sapi_name() === 'cli' && getenv('HTTP_PROXY')) {
$defaults['proxy']['http'] = getenv('HTTP_PROXY');
}
@@ -225,7 +300,7 @@ class Client implements ClientInterface
if (array_key_exists('headers', $options)) {
// Allows default headers to be unset.
if ($options['headers'] === null) {
- $defaults['_conditional'] = null;
+ $defaults['_conditional'] = [];
unset($options['headers']);
} elseif (!is_array($options['headers'])) {
throw new \InvalidArgumentException('headers must be an array');
@@ -251,8 +326,7 @@ class Client implements ClientInterface
* The URI of the request is not modified and the request options are used
* as-is without merging in default options.
*
- * @param RequestInterface $request
- * @param array $options
+ * @param array $options See \GuzzleHttp\RequestOptions.
*
* @return Promise\PromiseInterface
*/
@@ -271,6 +345,7 @@ class Client implements ClientInterface
}
$request = $this->applyOptions($request, $options);
+ /** @var HandlerStack $handler */
$handler = $options['handler'];
try {
@@ -411,6 +486,11 @@ class Client implements ClientInterface
return $request;
}
+ /**
+ * Throw Exception with pre-set message.
+ * @return void
+ * @throws InvalidArgumentException Invalid body.
+ */
private function invalidBody()
{
throw new \InvalidArgumentException('Passing in the "body" request '
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/ClientInterface.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/ClientInterface.php
index 5b37085..76872dd 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/ClientInterface.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/ClientInterface.php
@@ -1,8 +1,8 @@
cookies as $cookie) {
@@ -103,6 +103,8 @@ class CookieJar implements CookieJarInterface
return $cookie;
}
}
+
+ return null;
}
public function toArray()
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php
index 2cf298a..6ee1188 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php
@@ -58,9 +58,9 @@ interface CookieJarInterface extends \Countable, \IteratorAggregate
* arguments, then the cookie with the specified name, path and domain is
* removed.
*
- * @param string $domain Clears cookies matching a domain
- * @param string $path Clears cookies matching a domain and path
- * @param string $name Clears cookies matching a domain, path, and name
+ * @param string|null $domain Clears cookies matching a domain
+ * @param string|null $path Clears cookies matching a domain and path
+ * @param string|null $name Clears cookies matching a domain, path, and name
*
* @return CookieJarInterface
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
index f38ca86..12dd081 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
@@ -1,9 +1,9 @@
getBody();
-
- if (!$body->isSeekable() || !$body->isReadable()) {
- return null;
- }
-
- $size = $body->getSize();
-
- if ($size === 0) {
- return null;
- }
-
- $summary = $body->read(120);
- $body->rewind();
-
- if ($size > 120) {
- $summary .= ' (truncated...)';
- }
-
- // Matches any printable character, including unicode characters:
- // letters, marks, numbers, punctuation, spacing, and separators.
- if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/', $summary)) {
- return null;
- }
-
- return $summary;
+ return \GuzzleHttp\Psr7\get_message_body_summary($response);
}
/**
- * Obfuscates URI if there is an username and a password present
+ * Obfuscates URI if there is a username and a password present
*
* @param UriInterface $uri
*
* @return UriInterface
*/
- private static function obfuscateUri($uri)
+ private static function obfuscateUri(UriInterface $uri)
{
$userInfo = $uri->getUserInfo();
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
index e349bb4..4a28a96 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
@@ -1,8 +1,8 @@
selectTimeout = 1;
}
+
+ $this->options = isset($options['options']) ? $options['options'] : [];
}
public function __get($name)
{
if ($name === '_mh') {
- return $this->_mh = curl_multi_init();
+ $this->_mh = curl_multi_init();
+
+ foreach ($this->options as $option => $value) {
+ // A warning is raised in case of a wrong option.
+ curl_multi_setopt($this->_mh, $option, $value);
+ }
+
+ // Further calls to _mh will return the value directly, without entering the
+ // __get() method at all.
+ return $this->_mh;
}
throw new \BadMethodCallException();
@@ -88,7 +103,7 @@ class CurlMultiHandler
{
// Add any delayed handles if needed.
if ($this->delays) {
- $currentTime = \GuzzleHttp\_current_time();
+ $currentTime = Utils::currentTime();
foreach ($this->delays as $id => $delay) {
if ($currentTime >= $delay) {
unset($this->delays[$id]);
@@ -140,7 +155,7 @@ class CurlMultiHandler
if (empty($easy->options['delay'])) {
curl_multi_add_handle($this->_mh, $easy->handle);
} else {
- $this->delays[$id] = \GuzzleHttp\_current_time() + ($easy->options['delay'] / 1000);
+ $this->delays[$id] = Utils::currentTime() + ($easy->options['delay'] / 1000);
}
}
@@ -192,7 +207,7 @@ class CurlMultiHandler
private function timeToNext()
{
- $currentTime = \GuzzleHttp\_current_time();
+ $currentTime = Utils::currentTime();
$nextTime = PHP_INT_MAX;
foreach ($this->delays as $time) {
if ($time < $nextTime) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php
index d5c449c..5b312bc 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php
@@ -66,7 +66,7 @@ class MockHandler implements \Countable
throw new \OutOfBoundsException('Mock queue is empty');
}
- if (isset($options['delay'])) {
+ if (isset($options['delay']) && is_numeric($options['delay'])) {
usleep($options['delay'] * 1000);
}
@@ -175,6 +175,11 @@ class MockHandler implements \Countable
return count($this->queue);
}
+ public function reset()
+ {
+ $this->queue = [];
+ }
+
private function invokeStats(
RequestInterface $request,
array $options,
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
index 0dedd7d..a15734a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
@@ -1,12 +1,13 @@
each = new EachPromise($requests(), $config);
}
+ /**
+ * Get promise
+ *
+ * @return PromiseInterface
+ */
public function promise()
{
return $this->each->promise();
@@ -106,6 +112,11 @@ class Pool implements PromisorInterface
return $res;
}
+ /**
+ * Execute callback(s)
+ *
+ * @return void
+ */
private static function cmpCallback(array &$options, $name, array &$results)
{
if (!isset($options[$name])) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php
index 2eb95f9..568a1e9 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php
@@ -66,6 +66,11 @@ class PrepareBodyMiddleware
return $fn(Psr7\modify_request($request, $modify), $options);
}
+ /**
+ * Add expect header
+ *
+ * @return void
+ */
private function addExpectHeader(
RequestInterface $request,
array $options,
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php
index bff4e4e..e4644b7 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php
@@ -13,7 +13,7 @@ use Psr\Http\Message\UriInterface;
* Request redirect middleware.
*
* Apply this middleware like other middleware using
- * {@see GuzzleHttp\Middleware::redirect()}.
+ * {@see \GuzzleHttp\Middleware::redirect()}.
*/
class RedirectMiddleware
{
@@ -76,7 +76,7 @@ class RedirectMiddleware
/**
* @param RequestInterface $request
* @param array $options
- * @param ResponseInterface|PromiseInterface $response
+ * @param ResponseInterface $response
*
* @return ResponseInterface|PromiseInterface
*/
@@ -118,6 +118,11 @@ class RedirectMiddleware
return $promise;
}
+ /**
+ * Enable tracking on promise.
+ *
+ * @return PromiseInterface
+ */
private function withTracking(PromiseInterface $promise, $uri, $statusCode)
{
return $promise->then(
@@ -135,6 +140,13 @@ class RedirectMiddleware
);
}
+ /**
+ * Check for too many redirects
+ *
+ * @return void
+ *
+ * @throws TooManyRedirectsException Too many redirects.
+ */
private function guardMax(RequestInterface $request, array &$options)
{
$current = isset($options['__redirect_count'])
@@ -172,13 +184,19 @@ class RedirectMiddleware
// would do.
$statusCode = $response->getStatusCode();
if ($statusCode == 303 ||
- ($statusCode <= 302 && $request->getBody() && !$options['allow_redirects']['strict'])
+ ($statusCode <= 302 && !$options['allow_redirects']['strict'])
) {
$modify['method'] = 'GET';
$modify['body'] = '';
}
- $modify['uri'] = $this->redirectUri($request, $response, $protocols);
+ $uri = $this->redirectUri($request, $response, $protocols);
+ if (isset($options['idn_conversion']) && ($options['idn_conversion'] !== false)) {
+ $idnOptions = ($options['idn_conversion'] === true) ? IDNA_DEFAULT : $options['idn_conversion'];
+ $uri = Utils::idnUriConvert($uri, $idnOptions);
+ }
+
+ $modify['uri'] = $uri;
Psr7\rewind_body($request);
// Add the Referer header if it is told to do so and only
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RequestOptions.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RequestOptions.php
index 5c0fd19..355f658 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RequestOptions.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RequestOptions.php
@@ -132,6 +132,14 @@ final class RequestOptions
*/
const HTTP_ERRORS = 'http_errors';
+ /**
+ * idn: (bool|int, default=true) A combination of IDNA_* constants for
+ * idn_to_ascii() PHP's function (see "options" parameter). Set to false to
+ * disable IDN support completely, or to true to use the default
+ * configuration (IDNA_DEFAULT constant).
+ */
+ const IDN_CONVERSION = 'idn_conversion';
+
/**
* json: (mixed) Adds JSON data to a request. The provided value is JSON
* encoded and a Content-Type header of application/json will be added to
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
index 7d40eca..5acc8c5 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
@@ -47,11 +47,11 @@ class RetryMiddleware
*
* @param int $retries
*
- * @return int
+ * @return int milliseconds.
*/
public static function exponentialDelay($retries)
{
- return (int) pow(2, $retries - 1);
+ return (int) pow(2, $retries - 1) * 1000;
}
/**
@@ -74,6 +74,11 @@ class RetryMiddleware
);
}
+ /**
+ * Execute fulfilled closure
+ *
+ * @return mixed
+ */
private function onFulfilled(RequestInterface $req, array $options)
{
return function ($value) use ($req, $options) {
@@ -90,6 +95,11 @@ class RetryMiddleware
};
}
+ /**
+ * Execute rejected closure
+ *
+ * @return callable
+ */
private function onRejected(RequestInterface $req, array $options)
{
return function ($reason) use ($req, $options) {
@@ -106,6 +116,9 @@ class RetryMiddleware
};
}
+ /**
+ * @return self
+ */
private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null)
{
$options['delay'] = call_user_func($this->delay, ++$options['retries'], $response);
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/TransferStats.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/TransferStats.php
index 23a22a3..87fb3c0 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/TransferStats.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/TransferStats.php
@@ -18,11 +18,11 @@ final class TransferStats
private $handlerErrorData;
/**
- * @param RequestInterface $request Request that was sent.
- * @param ResponseInterface $response Response received (if any)
- * @param float|null $transferTime Total handler transfer time.
- * @param mixed $handlerErrorData Handler error data.
- * @param array $handlerStats Handler specific stats.
+ * @param RequestInterface $request Request that was sent.
+ * @param ResponseInterface|null $response Response received (if any)
+ * @param float|null $transferTime Total handler transfer time.
+ * @param mixed $handlerErrorData Handler error data.
+ * @param array $handlerStats Handler specific stats.
*/
public function __construct(
RequestInterface $request,
@@ -93,7 +93,7 @@ final class TransferStats
/**
* Get the estimated time the request was being transferred by the handler.
*
- * @return float Time in seconds.
+ * @return float|null Time in seconds.
*/
public function getTransferTime()
{
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Utils.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Utils.php
new file mode 100644
index 0000000..c8fc1ae
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Utils.php
@@ -0,0 +1,67 @@
+getHost()) {
+ $idnaVariant = defined('INTL_IDNA_VARIANT_UTS46') ? INTL_IDNA_VARIANT_UTS46 : 0;
+ $asciiHost = $idnaVariant === 0
+ ? idn_to_ascii($uri->getHost(), $options)
+ : idn_to_ascii($uri->getHost(), $options, $idnaVariant, $info);
+ if ($asciiHost === false) {
+ $errorBitSet = isset($info['errors']) ? $info['errors'] : 0;
+
+ $errorConstants = array_filter(array_keys(get_defined_constants()), function ($name) {
+ return substr($name, 0, 11) === 'IDNA_ERROR_';
+ });
+
+ $errors = [];
+ foreach ($errorConstants as $errorConstant) {
+ if ($errorBitSet & constant($errorConstant)) {
+ $errors[] = $errorConstant;
+ }
+ }
+
+ $errorMessage = 'IDN conversion failed';
+ if ($errors) {
+ $errorMessage .= ' (errors: ' . implode(', ', $errors) . ')';
+ }
+
+ throw new InvalidArgumentException($errorMessage);
+ } else {
+ if ($uri->getHost() !== $asciiHost) {
+ // Replace URI only if the ASCII version is different
+ $uri = $uri->withHost($asciiHost);
+ }
+ }
+ }
+
+ return $uri;
+ }
+}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/functions.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/functions.php
index 51d736d..c2afd8c 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/functions.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/functions.php
@@ -56,7 +56,7 @@ function describe_type($input)
/**
* Parses an array of header lines into an associative array of headers.
*
- * @param array $lines Header lines array of strings in the following
+ * @param iterable $lines Header lines array of strings in the following
* format: "Name: Value"
* @return array
*/
@@ -97,8 +97,8 @@ function debug_resource($value = null)
*
* The returned handler is not wrapped by any default middlewares.
*
- * @throws \RuntimeException if no viable Handler is available.
* @return callable Returns the best handler for the given system.
+ * @throws \RuntimeException if no viable Handler is available.
*/
function choose_handler()
{
@@ -332,15 +332,3 @@ function json_encode($value, $options = 0, $depth = 512)
return $json;
}
-
-/**
- * Wrapper for the hrtime() or microtime() functions
- * (depending on the PHP version, one of the two is used)
- *
- * @return float|mixed UNIX timestamp
- * @internal
- */
-function _current_time()
-{
- return function_exists('hrtime') ? hrtime(true) / 1e9 : microtime(true);
-}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php
index 46a91ff..f8ead47 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php
@@ -11,6 +11,8 @@
namespace Monolog\Formatter;
+use Monolog\Utils;
+
/**
* Class FluentdFormatter
*
@@ -71,7 +73,7 @@ class FluentdFormatter implements FormatterInterface
$message['level_name'] = $record['level_name'];
}
- return json_encode(array($tag, $record['datetime']->getTimestamp(), $message));
+ return Utils::jsonEncode(array($tag, $record['datetime']->getTimestamp(), $message));
}
public function formatBatch(array $records)
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php
index dfc0b4a..9e8d2d0 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php
@@ -11,6 +11,7 @@
namespace Monolog\Formatter;
use Monolog\Logger;
+use Monolog\Utils;
/**
* Formats incoming records into an HTML table
@@ -133,9 +134,9 @@ class HtmlFormatter extends NormalizerFormatter
$data = $this->normalize($data);
if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
- return json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
+ return Utils::jsonEncode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE, true);
}
- return str_replace('\\/', '/', json_encode($data));
+ return str_replace('\\/', '/', Utils::jsonEncode($data, null, true));
}
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php
index 2ff119e..86966b0 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php
@@ -145,7 +145,7 @@ class JsonFormatter extends NormalizerFormatter
return 'Over 9 levels deep, aborting normalization';
}
- if (is_array($data) || $data instanceof \Traversable) {
+ if (is_array($data)) {
$normalized = array();
$count = 1;
@@ -165,6 +165,10 @@ class JsonFormatter extends NormalizerFormatter
return $this->normalizeException($data);
}
+ if (is_resource($data)) {
+ return parent::normalize($data);
+ }
+
return $data;
}
@@ -186,7 +190,7 @@ class JsonFormatter extends NormalizerFormatter
$data = array(
'class' => Utils::getClass($e),
'message' => $e->getMessage(),
- 'code' => $e->getCode(),
+ 'code' => (int) $e->getCode(),
'file' => $e->getFile().':'.$e->getLine(),
);
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php
index f98e1a6..acc1fd3 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php
@@ -163,7 +163,7 @@ class LineFormatter extends NormalizerFormatter
return $this->toJson($data, true);
}
- return str_replace('\\/', '/', @json_encode($data));
+ return str_replace('\\/', '/', $this->toJson($data, true));
}
protected function replaceNewlines($str)
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php
index eb7be84..bd9e4c0 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php
@@ -87,7 +87,7 @@ class MongoDBFormatter implements FormatterInterface
$formattedException = array(
'class' => Utils::getClass($exception),
'message' => $exception->getMessage(),
- 'code' => $exception->getCode(),
+ 'code' => (int) $exception->getCode(),
'file' => $exception->getFile() . ':' . $exception->getLine(),
);
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php
index 9865394..61861c8 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php
@@ -129,7 +129,7 @@ class NormalizerFormatter implements FormatterInterface
$data = array(
'class' => Utils::getClass($e),
'message' => $e->getMessage(),
- 'code' => $e->getCode(),
+ 'code' => (int) $e->getCode(),
'file' => $e->getFile().':'.$e->getLine(),
);
@@ -142,8 +142,8 @@ class NormalizerFormatter implements FormatterInterface
$data['faultactor'] = $e->faultactor;
}
- if (isset($e->detail)) {
- $data['detail'] = $e->detail;
+ if (isset($e->detail) && (is_string($e->detail) || is_object($e->detail) || is_array($e->detail))) {
+ $data['detail'] = is_string($e->detail) ? $e->detail : reset($e->detail);
}
}
@@ -171,127 +171,6 @@ class NormalizerFormatter implements FormatterInterface
*/
protected function toJson($data, $ignoreErrors = false)
{
- // suppress json_encode errors since it's twitchy with some inputs
- if ($ignoreErrors) {
- return @$this->jsonEncode($data);
- }
-
- $json = $this->jsonEncode($data);
-
- if ($json === false) {
- $json = $this->handleJsonError(json_last_error(), $data);
- }
-
- return $json;
- }
-
- /**
- * @param mixed $data
- * @return string JSON encoded data or null on failure
- */
- private function jsonEncode($data)
- {
- if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
- return json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
- }
-
- return json_encode($data);
- }
-
- /**
- * Handle a json_encode failure.
- *
- * If the failure is due to invalid string encoding, try to clean the
- * input and encode again. If the second encoding attempt fails, the
- * inital error is not encoding related or the input can't be cleaned then
- * raise a descriptive exception.
- *
- * @param int $code return code of json_last_error function
- * @param mixed $data data that was meant to be encoded
- * @throws \RuntimeException if failure can't be corrected
- * @return string JSON encoded data after error correction
- */
- private function handleJsonError($code, $data)
- {
- if ($code !== JSON_ERROR_UTF8) {
- $this->throwEncodeError($code, $data);
- }
-
- if (is_string($data)) {
- $this->detectAndCleanUtf8($data);
- } elseif (is_array($data)) {
- array_walk_recursive($data, array($this, 'detectAndCleanUtf8'));
- } else {
- $this->throwEncodeError($code, $data);
- }
-
- $json = $this->jsonEncode($data);
-
- if ($json === false) {
- $this->throwEncodeError(json_last_error(), $data);
- }
-
- return $json;
- }
-
- /**
- * Throws an exception according to a given code with a customized message
- *
- * @param int $code return code of json_last_error function
- * @param mixed $data data that was meant to be encoded
- * @throws \RuntimeException
- */
- private function throwEncodeError($code, $data)
- {
- switch ($code) {
- case JSON_ERROR_DEPTH:
- $msg = 'Maximum stack depth exceeded';
- break;
- case JSON_ERROR_STATE_MISMATCH:
- $msg = 'Underflow or the modes mismatch';
- break;
- case JSON_ERROR_CTRL_CHAR:
- $msg = 'Unexpected control character found';
- break;
- case JSON_ERROR_UTF8:
- $msg = 'Malformed UTF-8 characters, possibly incorrectly encoded';
- break;
- default:
- $msg = 'Unknown error';
- }
-
- throw new \RuntimeException('JSON encoding failed: '.$msg.'. Encoding: '.var_export($data, true));
- }
-
- /**
- * Detect invalid UTF-8 string characters and convert to valid UTF-8.
- *
- * Valid UTF-8 input will be left unmodified, but strings containing
- * invalid UTF-8 codepoints will be reencoded as UTF-8 with an assumed
- * original encoding of ISO-8859-15. This conversion may result in
- * incorrect output if the actual encoding was not ISO-8859-15, but it
- * will be clean UTF-8 output and will not rely on expensive and fragile
- * detection algorithms.
- *
- * Function converts the input in place in the passed variable so that it
- * can be used as a callback for array_walk_recursive.
- *
- * @param mixed &$data Input to check and convert if needed
- * @private
- */
- public function detectAndCleanUtf8(&$data)
- {
- if (is_string($data) && !preg_match('//u', $data)) {
- $data = preg_replace_callback(
- '/[\x80-\xFF]+/',
- function ($m) { return utf8_encode($m[0]); },
- $data
- );
- $data = str_replace(
- array('¤', '¦', '¨', '´', '¸', '¼', '½', '¾'),
- array('€', 'Š', 'š', 'Ž', 'ž', 'Œ', 'œ', 'Ÿ'),
- $data
- );
- }
+ return Utils::jsonEncode($data, null, $ignoreErrors);
}
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php
index 23cf23b..68feb48 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php
@@ -164,21 +164,22 @@ class BrowserConsoleHandler extends AbstractProcessingHandler
private static function handleStyles($formatted)
{
- $args = array(static::quote('font-weight: normal'));
+ $args = array();
$format = '%c' . $formatted;
preg_match_all('/\[\[(.*?)\]\]\{([^}]*)\}/s', $format, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER);
foreach (array_reverse($matches) as $match) {
- $args[] = static::quote(static::handleCustomStyles($match[2][0], $match[1][0]));
$args[] = '"font-weight: normal"';
+ $args[] = static::quote(static::handleCustomStyles($match[2][0], $match[1][0]));
$pos = $match[0][1];
$format = substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . substr($format, $pos + strlen($match[0][0]));
}
- array_unshift($args, static::quote($format));
+ $args[] = static::quote('font-weight: normal');
+ $args[] = static::quote($format);
- return $args;
+ return array_reverse($args);
}
private static function handleCustomStyles($style, $string)
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php
index 61d1b50..0957e55 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php
@@ -13,6 +13,7 @@ namespace Monolog\Handler;
use Monolog\Logger;
use Monolog\ResettableInterface;
+use Monolog\Formatter\FormatterInterface;
/**
* Buffers all records until closing the handler and then pass them as batch.
@@ -126,4 +127,22 @@ class BufferHandler extends AbstractHandler
$this->handler->reset();
}
}
+
+ /**
+ * {@inheritdoc}
+ */
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ $this->handler->setFormatter($formatter);
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getFormatter()
+ {
+ return $this->handler->getFormatter();
+ }
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php
index ac98d5d..47120e5 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php
@@ -13,6 +13,7 @@ namespace Monolog\Handler;
use Monolog\Formatter\ChromePHPFormatter;
use Monolog\Logger;
+use Monolog\Utils;
/**
* Handler sending logs to the ChromePHP extension (http://www.chromephp.com/)
@@ -134,7 +135,7 @@ class ChromePHPHandler extends AbstractProcessingHandler
self::$json['request_uri'] = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
}
- $json = @json_encode(self::$json);
+ $json = Utils::jsonEncode(self::$json, null, true);
$data = base64_encode(utf8_encode($json));
if (strlen($data) > 3 * 1024) {
self::$overflowed = true;
@@ -149,7 +150,7 @@ class ChromePHPHandler extends AbstractProcessingHandler
'extra' => array(),
);
self::$json['rows'][count(self::$json['rows']) - 1] = $this->getFormatter()->format($record);
- $json = @json_encode(self::$json);
+ $json = Utils::jsonEncode(self::$json, null, true);
$data = base64_encode(utf8_encode($json));
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php
index 96b3ca0..44928ef 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php
@@ -12,6 +12,7 @@
namespace Monolog\Handler;
use Monolog\Logger;
+use Monolog\Utils;
/**
* Logs to Cube.
@@ -119,9 +120,9 @@ class CubeHandler extends AbstractProcessingHandler
$data['data']['level'] = $record['level'];
if ($this->scheme === 'http') {
- $this->writeHttp(json_encode($data));
+ $this->writeHttp(Utils::jsonEncode($data));
} else {
- $this->writeUdp(json_encode($data));
+ $this->writeUdp(Utils::jsonEncode($data));
}
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php
index 938c1a7..949f227 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php
@@ -12,6 +12,7 @@
namespace Monolog\Handler;
use Monolog\Logger;
+use Monolog\Formatter\FormatterInterface;
/**
* Simple handler wrapper that filters records based on a list of levels
@@ -45,7 +46,7 @@ class FilterHandler extends AbstractHandler
protected $bubble;
/**
- * @param callable|HandlerInterface $handler Handler or factory callable($record, $this).
+ * @param callable|HandlerInterface $handler Handler or factory callable($record|null, $filterHandler).
* @param int|array $minLevelOrList A list of levels to accept or a minimum level if maxLevel is provided
* @param int $maxLevel Maximum level to accept, only used if $minLevelOrList is not an array
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
@@ -104,21 +105,13 @@ class FilterHandler extends AbstractHandler
return false;
}
- // The same logic as in FingersCrossedHandler
- if (!$this->handler instanceof HandlerInterface) {
- $this->handler = call_user_func($this->handler, $record, $this);
- if (!$this->handler instanceof HandlerInterface) {
- throw new \RuntimeException("The factory callable should return a HandlerInterface");
- }
- }
-
if ($this->processors) {
foreach ($this->processors as $processor) {
$record = call_user_func($processor, $record);
}
}
- $this->handler->handle($record);
+ $this->getHandler($record)->handle($record);
return false === $this->bubble;
}
@@ -135,6 +128,45 @@ class FilterHandler extends AbstractHandler
}
}
- $this->handler->handleBatch($filtered);
+ if (count($filtered) > 0) {
+ $this->getHandler($filtered[count($filtered) - 1])->handleBatch($filtered);
+ }
+ }
+
+ /**
+ * Return the nested handler
+ *
+ * If the handler was provided as a factory callable, this will trigger the handler's instantiation.
+ *
+ * @return HandlerInterface
+ */
+ public function getHandler(array $record = null)
+ {
+ if (!$this->handler instanceof HandlerInterface) {
+ $this->handler = call_user_func($this->handler, $record, $this);
+ if (!$this->handler instanceof HandlerInterface) {
+ throw new \RuntimeException("The factory callable should return a HandlerInterface");
+ }
+ }
+
+ return $this->handler;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ $this->getHandler()->setFormatter($formatter);
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getFormatter()
+ {
+ return $this->getHandler()->getFormatter();
}
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php
index 275fd51..cdabc44 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php
@@ -15,6 +15,7 @@ use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy;
use Monolog\Handler\FingersCrossed\ActivationStrategyInterface;
use Monolog\Logger;
use Monolog\ResettableInterface;
+use Monolog\Formatter\FormatterInterface;
/**
* Buffers all records until a certain level is reached
@@ -39,7 +40,7 @@ class FingersCrossedHandler extends AbstractHandler
protected $passthruLevel;
/**
- * @param callable|HandlerInterface $handler Handler or factory callable($record, $fingersCrossedHandler).
+ * @param callable|HandlerInterface $handler Handler or factory callable($record|null, $fingersCrossedHandler).
* @param int|ActivationStrategyInterface $activationStrategy Strategy which determines when this handler takes action
* @param int $bufferSize How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
@@ -88,15 +89,7 @@ class FingersCrossedHandler extends AbstractHandler
if ($this->stopBuffering) {
$this->buffering = false;
}
- if (!$this->handler instanceof HandlerInterface) {
- $record = end($this->buffer) ?: null;
-
- $this->handler = call_user_func($this->handler, $record, $this);
- if (!$this->handler instanceof HandlerInterface) {
- throw new \RuntimeException("The factory callable should return a HandlerInterface");
- }
- }
- $this->handler->handleBatch($this->buffer);
+ $this->getHandler(end($this->buffer) ?: null)->handleBatch($this->buffer);
$this->buffer = array();
}
@@ -120,7 +113,7 @@ class FingersCrossedHandler extends AbstractHandler
$this->activate();
}
} else {
- $this->handler->handle($record);
+ $this->getHandler($record)->handle($record);
}
return false === $this->bubble;
@@ -140,8 +133,8 @@ class FingersCrossedHandler extends AbstractHandler
parent::reset();
- if ($this->handler instanceof ResettableInterface) {
- $this->handler->reset();
+ if ($this->getHandler() instanceof ResettableInterface) {
+ $this->getHandler()->reset();
}
}
@@ -167,11 +160,48 @@ class FingersCrossedHandler extends AbstractHandler
return $record['level'] >= $level;
});
if (count($this->buffer) > 0) {
- $this->handler->handleBatch($this->buffer);
+ $this->getHandler(end($this->buffer) ?: null)->handleBatch($this->buffer);
}
}
$this->buffer = array();
$this->buffering = true;
}
+
+ /**
+ * Return the nested handler
+ *
+ * If the handler was provided as a factory callable, this will trigger the handler's instantiation.
+ *
+ * @return HandlerInterface
+ */
+ public function getHandler(array $record = null)
+ {
+ if (!$this->handler instanceof HandlerInterface) {
+ $this->handler = call_user_func($this->handler, $record, $this);
+ if (!$this->handler instanceof HandlerInterface) {
+ throw new \RuntimeException("The factory callable should return a HandlerInterface");
+ }
+ }
+
+ return $this->handler;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ $this->getHandler()->setFormatter($formatter);
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getFormatter()
+ {
+ return $this->getHandler()->getFormatter();
+ }
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php
index dd9a361..f0f010c 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php
@@ -12,6 +12,7 @@
namespace Monolog\Handler;
use Monolog\Logger;
+use Monolog\Utils;
use Monolog\Formatter\FlowdockFormatter;
use Monolog\Formatter\FormatterInterface;
@@ -105,7 +106,7 @@ class FlowdockHandler extends SocketHandler
*/
private function buildContent($record)
{
- return json_encode($record['formatted']['flowdock']);
+ return Utils::jsonEncode($record['formatted']['flowdock']);
}
/**
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php
index 7f22622..f4d3b97 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php
@@ -12,6 +12,7 @@
namespace Monolog\Handler;
use Monolog\Logger;
+use Monolog\Utils;
/**
* IFTTTHandler uses cURL to trigger IFTTT Maker actions
@@ -53,7 +54,7 @@ class IFTTTHandler extends AbstractProcessingHandler
"value2" => $record["level_name"],
"value3" => $record["message"],
);
- $postString = json_encode($postData);
+ $postString = Utils::jsonEncode($postData);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://maker.ifttt.com/trigger/" . $this->eventName . "/with/key/" . $this->secretKey);
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php
index f911997..64dc138 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php
@@ -12,6 +12,7 @@
namespace Monolog\Handler;
use Monolog\Logger;
+use Monolog\Utils;
use Monolog\Formatter\NormalizerFormatter;
/**
@@ -190,7 +191,7 @@ class NewRelicHandler extends AbstractProcessingHandler
if (null === $value || is_scalar($value)) {
newrelic_add_custom_parameter($key, $value);
} else {
- newrelic_add_custom_parameter($key, @json_encode($value));
+ newrelic_add_custom_parameter($key, Utils::jsonEncode($value, null, true));
}
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php
index 1f2076a..d0a8b43 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php
@@ -14,6 +14,7 @@ namespace Monolog\Handler;
use Exception;
use Monolog\Formatter\LineFormatter;
use Monolog\Logger;
+use Monolog\Utils;
use PhpConsole\Connector;
use PhpConsole\Handler;
use PhpConsole\Helper;
@@ -188,7 +189,7 @@ class PHPConsoleHandler extends AbstractProcessingHandler
$tags = $this->getRecordTags($record);
$message = $record['message'];
if ($record['context']) {
- $message .= ' ' . json_encode($this->connector->getDumper()->dump(array_filter($record['context'])));
+ $message .= ' ' . Utils::jsonEncode($this->connector->getDumper()->dump(array_filter($record['context'])), null, true);
}
$this->connector->getDebugDispatcher()->dispatchDebug($message, $tags, $this->options['classesPartialsTraceIgnore']);
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php
index 590f996..bb00db5 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php
@@ -73,7 +73,8 @@ class RedisHandler extends AbstractProcessingHandler
protected function writeCapped(array $record)
{
if ($this->redisClient instanceof \Redis) {
- $this->redisClient->multi()
+ $mode = defined('\Redis::MULTI') ? \Redis::MULTI : 1;
+ $this->redisClient->multi($mode)
->rpush($this->redisKey, $record["formatted"])
->ltrim($this->redisKey, -$this->capSize, -1)
->exec();
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php
index 9509ae3..b547ed7 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php
@@ -11,6 +11,8 @@
namespace Monolog\Handler;
+use Monolog\Formatter\FormatterInterface;
+
/**
* Sampling handler
*
@@ -38,7 +40,7 @@ class SamplingHandler extends AbstractHandler
protected $factor;
/**
- * @param callable|HandlerInterface $handler Handler or factory callable($record, $fingersCrossedHandler).
+ * @param callable|HandlerInterface $handler Handler or factory callable($record|null, $samplingHandler).
* @param int $factor Sample factor
*/
public function __construct($handler, $factor)
@@ -54,29 +56,58 @@ class SamplingHandler extends AbstractHandler
public function isHandling(array $record)
{
- return $this->handler->isHandling($record);
+ return $this->getHandler($record)->isHandling($record);
}
public function handle(array $record)
{
if ($this->isHandling($record) && mt_rand(1, $this->factor) === 1) {
- // The same logic as in FingersCrossedHandler
- if (!$this->handler instanceof HandlerInterface) {
- $this->handler = call_user_func($this->handler, $record, $this);
- if (!$this->handler instanceof HandlerInterface) {
- throw new \RuntimeException("The factory callable should return a HandlerInterface");
- }
- }
-
if ($this->processors) {
foreach ($this->processors as $processor) {
$record = call_user_func($processor, $record);
}
}
- $this->handler->handle($record);
+ $this->getHandler($record)->handle($record);
}
return false === $this->bubble;
}
+
+ /**
+ * Return the nested handler
+ *
+ * If the handler was provided as a factory callable, this will trigger the handler's instantiation.
+ *
+ * @return HandlerInterface
+ */
+ public function getHandler(array $record = null)
+ {
+ if (!$this->handler instanceof HandlerInterface) {
+ $this->handler = call_user_func($this->handler, $record, $this);
+ if (!$this->handler instanceof HandlerInterface) {
+ throw new \RuntimeException("The factory callable should return a HandlerInterface");
+ }
+ }
+
+ return $this->handler;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function setFormatter(FormatterInterface $formatter)
+ {
+ $this->getHandler()->setFormatter($formatter);
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getFormatter()
+ {
+ return $this->getHandler()->getFormatter();
+ }
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php
index e55e0e2..3945550 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php
@@ -12,6 +12,7 @@
namespace Monolog\Handler\Slack;
use Monolog\Logger;
+use Monolog\Utils;
use Monolog\Formatter\NormalizerFormatter;
use Monolog\Formatter\FormatterInterface;
@@ -207,13 +208,17 @@ class SlackRecord
{
$normalized = $this->normalizerFormatter->format($fields);
$prettyPrintFlag = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 128;
+ $flags = 0;
+ if (PHP_VERSION_ID >= 50400) {
+ $flags = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
+ }
$hasSecondDimension = count(array_filter($normalized, 'is_array'));
$hasNonNumericKeys = !count(array_filter(array_keys($normalized), 'is_numeric'));
return $hasSecondDimension || $hasNonNumericKeys
- ? json_encode($normalized, $prettyPrintFlag)
- : json_encode($normalized);
+ ? Utils::jsonEncode($normalized, $prettyPrintFlag | $flags)
+ : Utils::jsonEncode($normalized, $flags);
}
/**
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php
index 45d634f..88c4c4d 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php
@@ -13,6 +13,7 @@ namespace Monolog\Handler;
use Monolog\Formatter\FormatterInterface;
use Monolog\Logger;
+use Monolog\Utils;
use Monolog\Handler\Slack\SlackRecord;
/**
@@ -118,7 +119,7 @@ class SlackHandler extends SocketHandler
$dataArray['token'] = $this->token;
if (!empty($dataArray['attachments'])) {
- $dataArray['attachments'] = json_encode($dataArray['attachments']);
+ $dataArray['attachments'] = Utils::jsonEncode($dataArray['attachments']);
}
return $dataArray;
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php
index 1ef85fa..b87be99 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php
@@ -13,6 +13,7 @@ namespace Monolog\Handler;
use Monolog\Formatter\FormatterInterface;
use Monolog\Logger;
+use Monolog\Utils;
use Monolog\Handler\Slack\SlackRecord;
/**
@@ -83,7 +84,7 @@ class SlackWebhookHandler extends AbstractProcessingHandler
protected function write(array $record)
{
$postData = $this->slackRecord->getSlackData($record);
- $postString = json_encode($postData);
+ $postString = Utils::jsonEncode($postData);
$ch = curl_init();
$options = array(
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Logger.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Logger.php
index 05dfc81..e649af5 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Logger.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Logger.php
@@ -527,8 +527,13 @@ class Logger implements LoggerInterface, ResettableInterface
*/
public static function toMonologLevel($level)
{
- if (is_string($level) && defined(__CLASS__.'::'.strtoupper($level))) {
- return constant(__CLASS__.'::'.strtoupper($level));
+ if (is_string($level)) {
+ // Contains chars of all log levels and avoids using strtoupper() which may have
+ // strange results depending on locale (for example, "i" will become "İ")
+ $upper = strtr($level, 'abcdefgilmnortuwy', 'ABCDEFGILMNORTUWY');
+ if (defined(__CLASS__.'::'.$upper)) {
+ return constant(__CLASS__ . '::' . $upper);
+ }
}
return $level;
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Utils.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Utils.php
index eb9be86..180a159 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Utils.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Utils.php
@@ -22,4 +22,138 @@ class Utils
return 'c' === $class[0] && 0 === strpos($class, "class@anonymous\0") ? get_parent_class($class).'@anonymous' : $class;
}
+
+ /**
+ * Return the JSON representation of a value
+ *
+ * @param mixed $data
+ * @param int $encodeFlags flags to pass to json encode, defaults to JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE
+ * @param bool $ignoreErrors whether to ignore encoding errors or to throw on error, when ignored and the encoding fails, "null" is returned which is valid json for null
+ * @throws \RuntimeException if encoding fails and errors are not ignored
+ * @return string
+ */
+ public static function jsonEncode($data, $encodeFlags = null, $ignoreErrors = false)
+ {
+ if (null === $encodeFlags && version_compare(PHP_VERSION, '5.4.0', '>=')) {
+ $encodeFlags = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
+ }
+
+ if ($ignoreErrors) {
+ $json = @json_encode($data, $encodeFlags);
+ if (false === $json) {
+ return 'null';
+ }
+
+ return $json;
+ }
+
+ $json = json_encode($data, $encodeFlags);
+ if (false === $json) {
+ $json = self::handleJsonError(json_last_error(), $data);
+ }
+
+ return $json;
+ }
+
+ /**
+ * Handle a json_encode failure.
+ *
+ * If the failure is due to invalid string encoding, try to clean the
+ * input and encode again. If the second encoding attempt fails, the
+ * inital error is not encoding related or the input can't be cleaned then
+ * raise a descriptive exception.
+ *
+ * @param int $code return code of json_last_error function
+ * @param mixed $data data that was meant to be encoded
+ * @param int $encodeFlags flags to pass to json encode, defaults to JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE
+ * @throws \RuntimeException if failure can't be corrected
+ * @return string JSON encoded data after error correction
+ */
+ public static function handleJsonError($code, $data, $encodeFlags = null)
+ {
+ if ($code !== JSON_ERROR_UTF8) {
+ self::throwEncodeError($code, $data);
+ }
+
+ if (is_string($data)) {
+ self::detectAndCleanUtf8($data);
+ } elseif (is_array($data)) {
+ array_walk_recursive($data, array('Monolog\Utils', 'detectAndCleanUtf8'));
+ } else {
+ self::throwEncodeError($code, $data);
+ }
+
+ if (null === $encodeFlags && version_compare(PHP_VERSION, '5.4.0', '>=')) {
+ $encodeFlags = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
+ }
+
+ $json = json_encode($data, $encodeFlags);
+
+ if ($json === false) {
+ self::throwEncodeError(json_last_error(), $data);
+ }
+
+ return $json;
+ }
+
+ /**
+ * Throws an exception according to a given code with a customized message
+ *
+ * @param int $code return code of json_last_error function
+ * @param mixed $data data that was meant to be encoded
+ * @throws \RuntimeException
+ */
+ private static function throwEncodeError($code, $data)
+ {
+ switch ($code) {
+ case JSON_ERROR_DEPTH:
+ $msg = 'Maximum stack depth exceeded';
+ break;
+ case JSON_ERROR_STATE_MISMATCH:
+ $msg = 'Underflow or the modes mismatch';
+ break;
+ case JSON_ERROR_CTRL_CHAR:
+ $msg = 'Unexpected control character found';
+ break;
+ case JSON_ERROR_UTF8:
+ $msg = 'Malformed UTF-8 characters, possibly incorrectly encoded';
+ break;
+ default:
+ $msg = 'Unknown error';
+ }
+
+ throw new \RuntimeException('JSON encoding failed: '.$msg.'. Encoding: '.var_export($data, true));
+ }
+
+ /**
+ * Detect invalid UTF-8 string characters and convert to valid UTF-8.
+ *
+ * Valid UTF-8 input will be left unmodified, but strings containing
+ * invalid UTF-8 codepoints will be reencoded as UTF-8 with an assumed
+ * original encoding of ISO-8859-15. This conversion may result in
+ * incorrect output if the actual encoding was not ISO-8859-15, but it
+ * will be clean UTF-8 output and will not rely on expensive and fragile
+ * detection algorithms.
+ *
+ * Function converts the input in place in the passed variable so that it
+ * can be used as a callback for array_walk_recursive.
+ *
+ * @param mixed &$data Input to check and convert if needed
+ * @private
+ */
+ public static function detectAndCleanUtf8(&$data)
+ {
+ if (is_string($data) && !preg_match('//u', $data)) {
+ $data = preg_replace_callback(
+ '/[\x80-\xFF]+/',
+ function ($m) { return utf8_encode($m[0]); },
+ $data
+ );
+ $data = str_replace(
+ array('¤', '¦', '¨', '´', '¸', '¼', '½', '¾'),
+ array('€', 'Š', 'š', 'Ž', 'ž', 'Œ', 'œ', 'Ÿ'),
+ $data
+ );
+ }
+ }
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA.php b/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA.php
index d2c6c7c..72be6ee 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA.php
@@ -2762,7 +2762,7 @@ class RSA
// if $m is larger than two million terrabytes and you're using sha1, PKCS#1 suggests a "Label too long" error
// be output.
- $emLen = ($emBits + 1) >> 3; // ie. ceil($emBits / 8);
+ $emLen = ($emBits + 7) >> 3; // ie. ceil($emBits / 8);
$sLen = $this->sLen !== null ? $this->sLen : $this->hLen;
$mHash = $this->hash->hash($m);
@@ -2840,7 +2840,7 @@ class RSA
// RSA verification
- $modBits = 8 * $this->k;
+ $modBits = strlen($this->modulus->toBits());
$s2 = $this->_os2ip($s);
$m2 = $this->_rsavp1($s2);
@@ -2848,7 +2848,7 @@ class RSA
user_error('Invalid signature');
return false;
}
- $em = $this->_i2osp($m2, $modBits >> 3);
+ $em = $this->_i2osp($m2, $this->k);
if ($em === false) {
user_error('Invalid signature');
return false;
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php b/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php
index 01e34cc..8f53eb3 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php
@@ -97,7 +97,10 @@ class Random
$fp = @fopen('/dev/urandom', 'rb');
}
if ($fp !== true && $fp !== false) { // surprisingly faster than !is_bool() or is_resource()
- return fread($fp, $length);
+ $temp = fread($fp, $length);
+ if (strlen($temp) == $length) {
+ return $temp;
+ }
}
// method 3. pretty much does the same thing as method 2 per the following url:
// https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/mcrypt/mcrypt.c#L1391
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/LoggerInterface.php b/wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/LoggerInterface.php
index e695046..2206cfd 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/LoggerInterface.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/LoggerInterface.php
@@ -22,8 +22,8 @@ interface LoggerInterface
/**
* System is unusable.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -35,8 +35,8 @@ interface LoggerInterface
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -47,8 +47,8 @@ interface LoggerInterface
*
* Example: Application component unavailable, unexpected exception.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -58,8 +58,8 @@ interface LoggerInterface
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -71,8 +71,8 @@ interface LoggerInterface
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -81,8 +81,8 @@ interface LoggerInterface
/**
* Normal but significant events.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -93,8 +93,8 @@ interface LoggerInterface
*
* Example: User logs in, SQL logs.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -103,8 +103,8 @@ interface LoggerInterface
/**
* Detailed debug information.
*
- * @param string $message
- * @param array $context
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*/
@@ -113,9 +113,9 @@ interface LoggerInterface
/**
* Logs with an arbitrary level.
*
- * @param mixed $level
- * @param string $message
- * @param array $context
+ * @param mixed $level
+ * @param string $message
+ * @param mixed[] $context
*
* @return void
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AccountApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AccountApi.php
index 18cc8ed..cce0002 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AccountApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AccountApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class AccountApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -279,9 +284,16 @@ class AccountApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php
index a0b5df3..fc332c6 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -238,19 +238,19 @@ class AttributesApi
protected function createAttributeRequest($attributeCategory, $attributeName, $createAttribute)
{
// verify the required parameter 'attributeCategory' is set
- if ($attributeCategory === null) {
+ if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeCategory when calling createAttribute'
);
}
// verify the required parameter 'attributeName' is set
- if ($attributeName === null) {
+ if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeName when calling createAttribute'
);
}
// verify the required parameter 'createAttribute' is set
- if ($createAttribute === null) {
+ if ($createAttribute === null || (is_array($createAttribute) && count($createAttribute) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $createAttribute when calling createAttribute'
);
@@ -302,9 +302,16 @@ class AttributesApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -517,13 +524,13 @@ class AttributesApi
protected function deleteAttributeRequest($attributeCategory, $attributeName)
{
// verify the required parameter 'attributeCategory' is set
- if ($attributeCategory === null) {
+ if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeCategory when calling deleteAttribute'
);
}
// verify the required parameter 'attributeName' is set
- if ($attributeName === null) {
+ if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeName when calling deleteAttribute'
);
@@ -572,9 +579,16 @@ class AttributesApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -825,9 +839,16 @@ class AttributesApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1045,19 +1066,19 @@ class AttributesApi
protected function updateAttributeRequest($attributeCategory, $attributeName, $updateAttribute)
{
// verify the required parameter 'attributeCategory' is set
- if ($attributeCategory === null) {
+ if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeCategory when calling updateAttribute'
);
}
// verify the required parameter 'attributeName' is set
- if ($attributeName === null) {
+ if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeName when calling updateAttribute'
);
}
// verify the required parameter 'updateAttribute' is set
- if ($updateAttribute === null) {
+ if ($updateAttribute === null || (is_array($updateAttribute) && count($updateAttribute) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $updateAttribute when calling updateAttribute'
);
@@ -1109,9 +1130,16 @@ class AttributesApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php
index f8cadee..37d589c 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class ContactsApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -278,13 +283,13 @@ class ContactsApi
protected function addContactToListRequest($listId, $contactEmails)
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling addContactToList'
);
}
// verify the required parameter 'contactEmails' is set
- if ($contactEmails === null) {
+ if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $contactEmails when calling addContactToList'
);
@@ -328,9 +333,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -540,19 +552,19 @@ class ContactsApi
protected function createAttributeRequest($attributeCategory, $attributeName, $createAttribute)
{
// verify the required parameter 'attributeCategory' is set
- if ($attributeCategory === null) {
+ if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeCategory when calling createAttribute'
);
}
// verify the required parameter 'attributeName' is set
- if ($attributeName === null) {
+ if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeName when calling createAttribute'
);
}
// verify the required parameter 'createAttribute' is set
- if ($createAttribute === null) {
+ if ($createAttribute === null || (is_array($createAttribute) && count($createAttribute) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $createAttribute when calling createAttribute'
);
@@ -604,9 +616,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -851,7 +870,7 @@ class ContactsApi
protected function createContactRequest($createContact)
{
// verify the required parameter 'createContact' is set
- if ($createContact === null) {
+ if ($createContact === null || (is_array($createContact) && count($createContact) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $createContact when calling createContact'
);
@@ -887,9 +906,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1126,7 +1152,7 @@ class ContactsApi
protected function createFolderRequest($createFolder)
{
// verify the required parameter 'createFolder' is set
- if ($createFolder === null) {
+ if ($createFolder === null || (is_array($createFolder) && count($createFolder) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $createFolder when calling createFolder'
);
@@ -1162,9 +1188,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1401,7 +1434,7 @@ class ContactsApi
protected function createListRequest($createList)
{
// verify the required parameter 'createList' is set
- if ($createList === null) {
+ if ($createList === null || (is_array($createList) && count($createList) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $createList when calling createList'
);
@@ -1437,9 +1470,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1652,13 +1692,13 @@ class ContactsApi
protected function deleteAttributeRequest($attributeCategory, $attributeName)
{
// verify the required parameter 'attributeCategory' is set
- if ($attributeCategory === null) {
+ if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeCategory when calling deleteAttribute'
);
}
// verify the required parameter 'attributeName' is set
- if ($attributeName === null) {
+ if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeName when calling deleteAttribute'
);
@@ -1707,9 +1747,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1925,7 +1972,7 @@ class ContactsApi
protected function deleteContactRequest($email)
{
// verify the required parameter 'email' is set
- if ($email === null) {
+ if ($email === null || (is_array($email) && count($email) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $email when calling deleteContact'
);
@@ -1966,9 +2013,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2176,7 +2230,7 @@ class ContactsApi
protected function deleteFolderRequest($folderId)
{
// verify the required parameter 'folderId' is set
- if ($folderId === null) {
+ if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $folderId when calling deleteFolder'
);
@@ -2217,9 +2271,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2427,7 +2488,7 @@ class ContactsApi
protected function deleteListRequest($listId)
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling deleteList'
);
@@ -2468,9 +2529,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2721,9 +2789,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2968,7 +3043,7 @@ class ContactsApi
protected function getContactInfoRequest($email)
{
// verify the required parameter 'email' is set
- if ($email === null) {
+ if ($email === null || (is_array($email) && count($email) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $email when calling getContactInfo'
);
@@ -3009,9 +3084,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -3256,7 +3338,7 @@ class ContactsApi
protected function getContactStatsRequest($email)
{
// verify the required parameter 'email' is set
- if ($email === null) {
+ if ($email === null || (is_array($email) && count($email) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $email when calling getContactStats'
);
@@ -3297,9 +3379,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -3589,9 +3678,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -3851,7 +3947,7 @@ class ContactsApi
protected function getContactsFromListRequest($listId, $modifiedSince = null, $limit = '50', $offset = '0')
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling getContactsFromList'
);
@@ -3908,9 +4004,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -4155,7 +4258,7 @@ class ContactsApi
protected function getFolderRequest($folderId)
{
// verify the required parameter 'folderId' is set
- if ($folderId === null) {
+ if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $folderId when calling getFolder'
);
@@ -4196,9 +4299,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -4453,7 +4563,7 @@ class ContactsApi
protected function getFolderListsRequest($folderId, $limit = '10', $offset = '0')
{
// verify the required parameter 'folderId' is set
- if ($folderId === null) {
+ if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $folderId when calling getFolderLists'
);
@@ -4506,9 +4616,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -4750,7 +4867,7 @@ class ContactsApi
protected function getFoldersRequest($limit, $offset)
{
// verify the required parameter 'limit' is set
- if ($limit === null) {
+ if ($limit === null || (is_array($limit) && count($limit) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $limit when calling getFolders'
);
@@ -4760,7 +4877,7 @@ class ContactsApi
}
// verify the required parameter 'offset' is set
- if ($offset === null) {
+ if ($offset === null || (is_array($offset) && count($offset) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $offset when calling getFolders'
);
@@ -4801,9 +4918,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -5048,7 +5172,7 @@ class ContactsApi
protected function getListRequest($listId)
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling getList'
);
@@ -5089,9 +5213,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -5372,9 +5503,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -5611,7 +5749,7 @@ class ContactsApi
protected function importContactsRequest($requestContactImport)
{
// verify the required parameter 'requestContactImport' is set
- if ($requestContactImport === null) {
+ if ($requestContactImport === null || (is_array($requestContactImport) && count($requestContactImport) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $requestContactImport when calling importContacts'
);
@@ -5647,9 +5785,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -5899,13 +6044,13 @@ class ContactsApi
protected function removeContactFromListRequest($listId, $contactEmails)
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling removeContactFromList'
);
}
// verify the required parameter 'contactEmails' is set
- if ($contactEmails === null) {
+ if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $contactEmails when calling removeContactFromList'
);
@@ -5949,9 +6094,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -6188,7 +6340,7 @@ class ContactsApi
protected function requestContactExportRequest($requestContactExport)
{
// verify the required parameter 'requestContactExport' is set
- if ($requestContactExport === null) {
+ if ($requestContactExport === null || (is_array($requestContactExport) && count($requestContactExport) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $requestContactExport when calling requestContactExport'
);
@@ -6224,9 +6376,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -6444,19 +6603,19 @@ class ContactsApi
protected function updateAttributeRequest($attributeCategory, $attributeName, $updateAttribute)
{
// verify the required parameter 'attributeCategory' is set
- if ($attributeCategory === null) {
+ if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeCategory when calling updateAttribute'
);
}
// verify the required parameter 'attributeName' is set
- if ($attributeName === null) {
+ if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $attributeName when calling updateAttribute'
);
}
// verify the required parameter 'updateAttribute' is set
- if ($updateAttribute === null) {
+ if ($updateAttribute === null || (is_array($updateAttribute) && count($updateAttribute) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $updateAttribute when calling updateAttribute'
);
@@ -6508,9 +6667,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -6723,13 +6889,13 @@ class ContactsApi
protected function updateContactRequest($email, $updateContact)
{
// verify the required parameter 'email' is set
- if ($email === null) {
+ if ($email === null || (is_array($email) && count($email) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $email when calling updateContact'
);
}
// verify the required parameter 'updateContact' is set
- if ($updateContact === null) {
+ if ($updateContact === null || (is_array($updateContact) && count($updateContact) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $updateContact when calling updateContact'
);
@@ -6773,9 +6939,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -6988,13 +7161,13 @@ class ContactsApi
protected function updateFolderRequest($folderId, $updateFolder)
{
// verify the required parameter 'folderId' is set
- if ($folderId === null) {
+ if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $folderId when calling updateFolder'
);
}
// verify the required parameter 'updateFolder' is set
- if ($updateFolder === null) {
+ if ($updateFolder === null || (is_array($updateFolder) && count($updateFolder) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $updateFolder when calling updateFolder'
);
@@ -7038,9 +7211,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -7253,13 +7433,13 @@ class ContactsApi
protected function updateListRequest($listId, $updateList)
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling updateList'
);
}
// verify the required parameter 'updateList' is set
- if ($updateList === null) {
+ if ($updateList === null || (is_array($updateList) && count($updateList) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $updateList when calling updateList'
);
@@ -7303,9 +7483,16 @@ class ContactsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php
index 049f9df..932876d 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class EmailCampaignsApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -265,7 +270,7 @@ class EmailCampaignsApi
protected function createEmailCampaignRequest($emailCampaigns)
{
// verify the required parameter 'emailCampaigns' is set
- if ($emailCampaigns === null) {
+ if ($emailCampaigns === null || (is_array($emailCampaigns) && count($emailCampaigns) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $emailCampaigns when calling createEmailCampaign'
);
@@ -301,9 +306,16 @@ class EmailCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -511,7 +523,7 @@ class EmailCampaignsApi
protected function deleteEmailCampaignRequest($campaignId)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling deleteEmailCampaign'
);
@@ -552,9 +564,16 @@ class EmailCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -804,7 +823,7 @@ class EmailCampaignsApi
protected function emailExportRecipientsRequest($campaignId, $recipientExport = null)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling emailExportRecipients'
);
@@ -848,9 +867,16 @@ class EmailCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -904,6 +930,309 @@ class EmailCampaignsApi
);
}
+ /**
+ * Operation getAbTestCampaignResult
+ *
+ * Get A/B test email campaign result
+ *
+ * @param int $campaignId Id of the A/B test campaign (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\AbTestCampaignResult
+ */
+ public function getAbTestCampaignResult($campaignId)
+ {
+ list($response) = $this->getAbTestCampaignResultWithHttpInfo($campaignId);
+ return $response;
+ }
+
+ /**
+ * Operation getAbTestCampaignResultWithHttpInfo
+ *
+ * Get A/B test email campaign result
+ *
+ * @param int $campaignId Id of the A/B test campaign (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\AbTestCampaignResult, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function getAbTestCampaignResultWithHttpInfo($campaignId)
+ {
+ $returnType = '\SendinBlue\Client\Model\AbTestCampaignResult';
+ $request = $this->getAbTestCampaignResultRequest($campaignId);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\AbTestCampaignResult',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 405:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation getAbTestCampaignResultAsync
+ *
+ * Get A/B test email campaign result
+ *
+ * @param int $campaignId Id of the A/B test campaign (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getAbTestCampaignResultAsync($campaignId)
+ {
+ return $this->getAbTestCampaignResultAsyncWithHttpInfo($campaignId)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getAbTestCampaignResultAsyncWithHttpInfo
+ *
+ * Get A/B test email campaign result
+ *
+ * @param int $campaignId Id of the A/B test campaign (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getAbTestCampaignResultAsyncWithHttpInfo($campaignId)
+ {
+ $returnType = '\SendinBlue\Client\Model\AbTestCampaignResult';
+ $request = $this->getAbTestCampaignResultRequest($campaignId);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getAbTestCampaignResult'
+ *
+ * @param int $campaignId Id of the A/B test campaign (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getAbTestCampaignResultRequest($campaignId)
+ {
+ // verify the required parameter 'campaignId' is set
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $campaignId when calling getAbTestCampaignResult'
+ );
+ }
+
+ $resourcePath = '/emailCampaigns/{campaignId}/abTestCampaignResult';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($campaignId !== null) {
+ $resourcePath = str_replace(
+ '{' . 'campaignId' . '}',
+ ObjectSerializer::toPathValue($campaignId),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\build_query($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\build_query($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
/**
* Operation getEmailCampaign
*
@@ -1095,7 +1424,7 @@ class EmailCampaignsApi
protected function getEmailCampaignRequest($campaignId)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling getEmailCampaign'
);
@@ -1136,9 +1465,16 @@ class EmailCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1455,9 +1791,311 @@ class EmailCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\build_query($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\build_query($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation getSharedTemplateUrl
+ *
+ * Get a shared template url
+ *
+ * @param int $campaignId Id of the campaign or template (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\GetSharedTemplateUrl
+ */
+ public function getSharedTemplateUrl($campaignId)
+ {
+ list($response) = $this->getSharedTemplateUrlWithHttpInfo($campaignId);
+ return $response;
+ }
+
+ /**
+ * Operation getSharedTemplateUrlWithHttpInfo
+ *
+ * Get a shared template url
+ *
+ * @param int $campaignId Id of the campaign or template (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\GetSharedTemplateUrl, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function getSharedTemplateUrlWithHttpInfo($campaignId)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetSharedTemplateUrl';
+ $request = $this->getSharedTemplateUrlRequest($campaignId);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\GetSharedTemplateUrl',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation getSharedTemplateUrlAsync
+ *
+ * Get a shared template url
+ *
+ * @param int $campaignId Id of the campaign or template (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getSharedTemplateUrlAsync($campaignId)
+ {
+ return $this->getSharedTemplateUrlAsyncWithHttpInfo($campaignId)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getSharedTemplateUrlAsyncWithHttpInfo
+ *
+ * Get a shared template url
+ *
+ * @param int $campaignId Id of the campaign or template (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getSharedTemplateUrlAsyncWithHttpInfo($campaignId)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetSharedTemplateUrl';
+ $request = $this->getSharedTemplateUrlRequest($campaignId);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getSharedTemplateUrl'
+ *
+ * @param int $campaignId Id of the campaign or template (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getSharedTemplateUrlRequest($campaignId)
+ {
+ // verify the required parameter 'campaignId' is set
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $campaignId when calling getSharedTemplateUrl'
+ );
+ }
+
+ $resourcePath = '/emailCampaigns/{campaignId}/sharedUrl';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($campaignId !== null) {
+ $resourcePath = str_replace(
+ '{' . 'campaignId' . '}',
+ ObjectSerializer::toPathValue($campaignId),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1514,7 +2152,7 @@ class EmailCampaignsApi
/**
* Operation sendEmailCampaignNow
*
- * Send an email campaign id of the campaign immediately
+ * Send an email campaign immediately, based on campaignId
*
* @param int $campaignId Id of the campaign (required)
*
@@ -1530,7 +2168,7 @@ class EmailCampaignsApi
/**
* Operation sendEmailCampaignNowWithHttpInfo
*
- * Send an email campaign id of the campaign immediately
+ * Send an email campaign immediately, based on campaignId
*
* @param int $campaignId Id of the campaign (required)
*
@@ -1607,7 +2245,7 @@ class EmailCampaignsApi
/**
* Operation sendEmailCampaignNowAsync
*
- * Send an email campaign id of the campaign immediately
+ * Send an email campaign immediately, based on campaignId
*
* @param int $campaignId Id of the campaign (required)
*
@@ -1627,7 +2265,7 @@ class EmailCampaignsApi
/**
* Operation sendEmailCampaignNowAsyncWithHttpInfo
*
- * Send an email campaign id of the campaign immediately
+ * Send an email campaign immediately, based on campaignId
*
* @param int $campaignId Id of the campaign (required)
*
@@ -1673,7 +2311,7 @@ class EmailCampaignsApi
protected function sendEmailCampaignNowRequest($campaignId)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling sendEmailCampaignNow'
);
@@ -1714,9 +2352,16 @@ class EmailCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1929,13 +2574,13 @@ class EmailCampaignsApi
protected function sendReportRequest($campaignId, $sendReport)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling sendReport'
);
}
// verify the required parameter 'sendReport' is set
- if ($sendReport === null) {
+ if ($sendReport === null || (is_array($sendReport) && count($sendReport) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $sendReport when calling sendReport'
);
@@ -1979,9 +2624,16 @@ class EmailCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2194,13 +2846,13 @@ class EmailCampaignsApi
protected function sendTestEmailRequest($campaignId, $emailTo)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling sendTestEmail'
);
}
// verify the required parameter 'emailTo' is set
- if ($emailTo === null) {
+ if ($emailTo === null || (is_array($emailTo) && count($emailTo) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $emailTo when calling sendTestEmail'
);
@@ -2244,9 +2896,16 @@ class EmailCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2459,13 +3118,13 @@ class EmailCampaignsApi
protected function updateCampaignStatusRequest($campaignId, $status)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling updateCampaignStatus'
);
}
// verify the required parameter 'status' is set
- if ($status === null) {
+ if ($status === null || (is_array($status) && count($status) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $status when calling updateCampaignStatus'
);
@@ -2509,9 +3168,16 @@ class EmailCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2724,13 +3390,13 @@ class EmailCampaignsApi
protected function updateEmailCampaignRequest($campaignId, $emailCampaign)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling updateEmailCampaign'
);
}
// verify the required parameter 'emailCampaign' is set
- if ($emailCampaign === null) {
+ if ($emailCampaign === null || (is_array($emailCampaign) && count($emailCampaign) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $emailCampaign when calling updateEmailCampaign'
);
@@ -2774,9 +3440,16 @@ class EmailCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php
index df78954..09ab731 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class FoldersApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -265,7 +270,7 @@ class FoldersApi
protected function createFolderRequest($createFolder)
{
// verify the required parameter 'createFolder' is set
- if ($createFolder === null) {
+ if ($createFolder === null || (is_array($createFolder) && count($createFolder) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $createFolder when calling createFolder'
);
@@ -301,9 +306,16 @@ class FoldersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -511,7 +523,7 @@ class FoldersApi
protected function deleteFolderRequest($folderId)
{
// verify the required parameter 'folderId' is set
- if ($folderId === null) {
+ if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $folderId when calling deleteFolder'
);
@@ -552,9 +564,16 @@ class FoldersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -799,7 +818,7 @@ class FoldersApi
protected function getFolderRequest($folderId)
{
// verify the required parameter 'folderId' is set
- if ($folderId === null) {
+ if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $folderId when calling getFolder'
);
@@ -840,9 +859,16 @@ class FoldersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1097,7 +1123,7 @@ class FoldersApi
protected function getFolderListsRequest($folderId, $limit = '10', $offset = '0')
{
// verify the required parameter 'folderId' is set
- if ($folderId === null) {
+ if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $folderId when calling getFolderLists'
);
@@ -1150,9 +1176,16 @@ class FoldersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1394,7 +1427,7 @@ class FoldersApi
protected function getFoldersRequest($limit, $offset)
{
// verify the required parameter 'limit' is set
- if ($limit === null) {
+ if ($limit === null || (is_array($limit) && count($limit) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $limit when calling getFolders'
);
@@ -1404,7 +1437,7 @@ class FoldersApi
}
// verify the required parameter 'offset' is set
- if ($offset === null) {
+ if ($offset === null || (is_array($offset) && count($offset) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $offset when calling getFolders'
);
@@ -1445,9 +1478,16 @@ class FoldersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1660,13 +1700,13 @@ class FoldersApi
protected function updateFolderRequest($folderId, $updateFolder)
{
// verify the required parameter 'folderId' is set
- if ($folderId === null) {
+ if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $folderId when calling updateFolder'
);
}
// verify the required parameter 'updateFolder' is set
- if ($updateFolder === null) {
+ if ($updateFolder === null || (is_array($updateFolder) && count($updateFolder) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $updateFolder when calling updateFolder'
);
@@ -1710,9 +1750,16 @@ class FoldersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ListsApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ListsApi.php
index 206c481..6e27807 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ListsApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ListsApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class ListsApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -278,13 +283,13 @@ class ListsApi
protected function addContactToListRequest($listId, $contactEmails)
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling addContactToList'
);
}
// verify the required parameter 'contactEmails' is set
- if ($contactEmails === null) {
+ if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $contactEmails when calling addContactToList'
);
@@ -328,9 +333,16 @@ class ListsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -567,7 +579,7 @@ class ListsApi
protected function createListRequest($createList)
{
// verify the required parameter 'createList' is set
- if ($createList === null) {
+ if ($createList === null || (is_array($createList) && count($createList) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $createList when calling createList'
);
@@ -603,9 +615,16 @@ class ListsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -813,7 +832,7 @@ class ListsApi
protected function deleteListRequest($listId)
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling deleteList'
);
@@ -854,9 +873,16 @@ class ListsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1116,7 +1142,7 @@ class ListsApi
protected function getContactsFromListRequest($listId, $modifiedSince = null, $limit = '50', $offset = '0')
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling getContactsFromList'
);
@@ -1173,9 +1199,16 @@ class ListsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1430,7 +1463,7 @@ class ListsApi
protected function getFolderListsRequest($folderId, $limit = '10', $offset = '0')
{
// verify the required parameter 'folderId' is set
- if ($folderId === null) {
+ if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $folderId when calling getFolderLists'
);
@@ -1483,9 +1516,16 @@ class ListsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1730,7 +1770,7 @@ class ListsApi
protected function getListRequest($listId)
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling getList'
);
@@ -1771,9 +1811,16 @@ class ListsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2054,9 +2101,16 @@ class ListsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2306,13 +2360,13 @@ class ListsApi
protected function removeContactFromListRequest($listId, $contactEmails)
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling removeContactFromList'
);
}
// verify the required parameter 'contactEmails' is set
- if ($contactEmails === null) {
+ if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $contactEmails when calling removeContactFromList'
);
@@ -2356,9 +2410,16 @@ class ListsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2571,13 +2632,13 @@ class ListsApi
protected function updateListRequest($listId, $updateList)
{
// verify the required parameter 'listId' is set
- if ($listId === null) {
+ if ($listId === null || (is_array($listId) && count($listId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $listId when calling updateList'
);
}
// verify the required parameter 'updateList' is set
- if ($updateList === null) {
+ if ($updateList === null || (is_array($updateList) && count($updateList) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $updateList when calling updateList'
);
@@ -2621,9 +2682,16 @@ class ListsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php
index a8f1cd8..b734edd 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class ProcessApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -273,7 +278,7 @@ class ProcessApi
protected function getProcessRequest($processId)
{
// verify the required parameter 'processId' is set
- if ($processId === null) {
+ if ($processId === null || (is_array($processId) && count($processId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $processId when calling getProcess'
);
@@ -314,9 +319,16 @@ class ProcessApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -597,9 +609,16 @@ class ProcessApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php
index cf7cf83..721ac39 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class ResellerApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -286,13 +291,13 @@ class ResellerApi
protected function addCreditsRequest($childAuthKey, $addCredits)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling addCredits'
);
}
// verify the required parameter 'addCredits' is set
- if ($addCredits === null) {
+ if ($addCredits === null || (is_array($addCredits) && count($addCredits) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $addCredits when calling addCredits'
);
@@ -336,9 +341,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -551,13 +563,13 @@ class ResellerApi
protected function associateIpToChildRequest($childAuthKey, $ip)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling associateIpToChild'
);
}
// verify the required parameter 'ip' is set
- if ($ip === null) {
+ if ($ip === null || (is_array($ip) && count($ip) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $ip when calling associateIpToChild'
);
@@ -601,9 +613,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -663,7 +682,7 @@ class ResellerApi
* Creates a domain for a child account
*
* @param string $childAuthKey auth key of reseller's child (required)
- * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account (required)
+ * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
*
* @throws \SendinBlue\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -680,7 +699,7 @@ class ResellerApi
* Creates a domain for a child account
*
* @param string $childAuthKey auth key of reseller's child (required)
- * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account (required)
+ * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
*
* @throws \SendinBlue\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -758,7 +777,7 @@ class ResellerApi
* Creates a domain for a child account
*
* @param string $childAuthKey auth key of reseller's child (required)
- * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account (required)
+ * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -779,7 +798,7 @@ class ResellerApi
* Creates a domain for a child account
*
* @param string $childAuthKey auth key of reseller's child (required)
- * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account (required)
+ * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -816,7 +835,7 @@ class ResellerApi
* Create request for operation 'createChildDomain'
*
* @param string $childAuthKey auth key of reseller's child (required)
- * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account (required)
+ * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
@@ -824,13 +843,13 @@ class ResellerApi
protected function createChildDomainRequest($childAuthKey, $addChildDomain)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling createChildDomain'
);
}
// verify the required parameter 'addChildDomain' is set
- if ($addChildDomain === null) {
+ if ($addChildDomain === null || (is_array($addChildDomain) && count($addChildDomain) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $addChildDomain when calling createChildDomain'
);
@@ -874,9 +893,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1151,9 +1177,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1374,13 +1407,13 @@ class ResellerApi
protected function deleteChildDomainRequest($childAuthKey, $domainName)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling deleteChildDomain'
);
}
// verify the required parameter 'domainName' is set
- if ($domainName === null) {
+ if ($domainName === null || (is_array($domainName) && count($domainName) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $domainName when calling deleteChildDomain'
);
@@ -1429,9 +1462,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1647,7 +1687,7 @@ class ResellerApi
protected function deleteResellerChildRequest($childAuthKey)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling deleteResellerChild'
);
@@ -1688,9 +1728,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1903,13 +1950,13 @@ class ResellerApi
protected function dissociateIpFromChildRequest($childAuthKey, $ip)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling dissociateIpFromChild'
);
}
// verify the required parameter 'ip' is set
- if ($ip === null) {
+ if ($ip === null || (is_array($ip) && count($ip) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $ip when calling dissociateIpFromChild'
);
@@ -1953,9 +2000,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2009,6 +2063,309 @@ class ResellerApi
);
}
+ /**
+ * Operation getChildAccountCreationStatus
+ *
+ * Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied
+ *
+ * @param string $childAuthKey auth key of reseller's child (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\GetChildAccountCreationStatus
+ */
+ public function getChildAccountCreationStatus($childAuthKey)
+ {
+ list($response) = $this->getChildAccountCreationStatusWithHttpInfo($childAuthKey);
+ return $response;
+ }
+
+ /**
+ * Operation getChildAccountCreationStatusWithHttpInfo
+ *
+ * Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied
+ *
+ * @param string $childAuthKey auth key of reseller's child (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\GetChildAccountCreationStatus, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function getChildAccountCreationStatusWithHttpInfo($childAuthKey)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetChildAccountCreationStatus';
+ $request = $this->getChildAccountCreationStatusRequest($childAuthKey);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\GetChildAccountCreationStatus',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 403:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation getChildAccountCreationStatusAsync
+ *
+ * Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied
+ *
+ * @param string $childAuthKey auth key of reseller's child (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getChildAccountCreationStatusAsync($childAuthKey)
+ {
+ return $this->getChildAccountCreationStatusAsyncWithHttpInfo($childAuthKey)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getChildAccountCreationStatusAsyncWithHttpInfo
+ *
+ * Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied
+ *
+ * @param string $childAuthKey auth key of reseller's child (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getChildAccountCreationStatusAsyncWithHttpInfo($childAuthKey)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetChildAccountCreationStatus';
+ $request = $this->getChildAccountCreationStatusRequest($childAuthKey);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getChildAccountCreationStatus'
+ *
+ * @param string $childAuthKey auth key of reseller's child (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getChildAccountCreationStatusRequest($childAuthKey)
+ {
+ // verify the required parameter 'childAuthKey' is set
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $childAuthKey when calling getChildAccountCreationStatus'
+ );
+ }
+
+ $resourcePath = '/reseller/children/{childAuthKey}/accountCreationStatus';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($childAuthKey !== null) {
+ $resourcePath = str_replace(
+ '{' . 'childAuthKey' . '}',
+ ObjectSerializer::toPathValue($childAuthKey),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\build_query($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\build_query($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
/**
* Operation getChildDomains
*
@@ -2208,7 +2565,7 @@ class ResellerApi
protected function getChildDomainsRequest($childAuthKey)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling getChildDomains'
);
@@ -2249,9 +2606,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2504,7 +2868,7 @@ class ResellerApi
protected function getChildInfoRequest($childAuthKey)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling getChildInfo'
);
@@ -2545,9 +2909,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2606,14 +2977,16 @@ class ResellerApi
*
* Gets the list of all reseller's children accounts
*
+ * @param int $limit Number of documents for child accounts information per page (optional, default to 10)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
*
* @throws \SendinBlue\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \SendinBlue\Client\Model\GetChildrenList
*/
- public function getResellerChilds()
+ public function getResellerChilds($limit = '10', $offset = '0')
{
- list($response) = $this->getResellerChildsWithHttpInfo();
+ list($response) = $this->getResellerChildsWithHttpInfo($limit, $offset);
return $response;
}
@@ -2622,15 +2995,17 @@ class ResellerApi
*
* Gets the list of all reseller's children accounts
*
+ * @param int $limit Number of documents for child accounts information per page (optional, default to 10)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
*
* @throws \SendinBlue\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \SendinBlue\Client\Model\GetChildrenList, HTTP status code, HTTP response headers (array of strings)
*/
- public function getResellerChildsWithHttpInfo()
+ public function getResellerChildsWithHttpInfo($limit = '10', $offset = '0')
{
$returnType = '\SendinBlue\Client\Model\GetChildrenList';
- $request = $this->getResellerChildsRequest();
+ $request = $this->getResellerChildsRequest($limit, $offset);
try {
$options = $this->createHttpClientOption();
@@ -2704,13 +3079,15 @@ class ResellerApi
*
* Gets the list of all reseller's children accounts
*
+ * @param int $limit Number of documents for child accounts information per page (optional, default to 10)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getResellerChildsAsync()
+ public function getResellerChildsAsync($limit = '10', $offset = '0')
{
- return $this->getResellerChildsAsyncWithHttpInfo()
+ return $this->getResellerChildsAsyncWithHttpInfo($limit, $offset)
->then(
function ($response) {
return $response[0];
@@ -2723,14 +3100,16 @@ class ResellerApi
*
* Gets the list of all reseller's children accounts
*
+ * @param int $limit Number of documents for child accounts information per page (optional, default to 10)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getResellerChildsAsyncWithHttpInfo()
+ public function getResellerChildsAsyncWithHttpInfo($limit = '10', $offset = '0')
{
$returnType = '\SendinBlue\Client\Model\GetChildrenList';
- $request = $this->getResellerChildsRequest();
+ $request = $this->getResellerChildsRequest($limit, $offset);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -2772,12 +3151,18 @@ class ResellerApi
/**
* Create request for operation 'getResellerChilds'
*
+ * @param int $limit Number of documents for child accounts information per page (optional, default to 10)
+ * @param int $offset Index of the first document in the page (optional, default to 0)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- protected function getResellerChildsRequest()
+ protected function getResellerChildsRequest($limit = '10', $offset = '0')
{
+ if ($limit !== null && $limit > 20) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling ResellerApi.getResellerChilds, must be smaller than or equal to 20.');
+ }
+
$resourcePath = '/reseller/children';
$formParams = [];
@@ -2786,6 +3171,14 @@ class ResellerApi
$httpBody = '';
$multipart = false;
+ // query params
+ if ($limit !== null) {
+ $queryParams['limit'] = ObjectSerializer::toQueryValue($limit);
+ }
+ // query params
+ if ($offset !== null) {
+ $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
+ }
// body params
@@ -2806,9 +3199,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -3061,7 +3461,7 @@ class ResellerApi
protected function getSsoTokenRequest($childAuthKey)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling getSsoToken'
);
@@ -3102,9 +3502,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -3362,13 +3769,13 @@ class ResellerApi
protected function removeCreditsRequest($childAuthKey, $removeCredits)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling removeCredits'
);
}
// verify the required parameter 'removeCredits' is set
- if ($removeCredits === null) {
+ if ($removeCredits === null || (is_array($removeCredits) && count($removeCredits) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $removeCredits when calling removeCredits'
);
@@ -3412,9 +3819,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -3635,13 +4049,13 @@ class ResellerApi
protected function updateChildAccountStatusRequest($childAuthKey, $updateChildAccountStatus)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling updateChildAccountStatus'
);
}
// verify the required parameter 'updateChildAccountStatus' is set
- if ($updateChildAccountStatus === null) {
+ if ($updateChildAccountStatus === null || (is_array($updateChildAccountStatus) && count($updateChildAccountStatus) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $updateChildAccountStatus when calling updateChildAccountStatus'
);
@@ -3685,9 +4099,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -3913,19 +4334,19 @@ class ResellerApi
protected function updateChildDomainRequest($childAuthKey, $domainName, $updateChildDomain)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling updateChildDomain'
);
}
// verify the required parameter 'domainName' is set
- if ($domainName === null) {
+ if ($domainName === null || (is_array($domainName) && count($domainName) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $domainName when calling updateChildDomain'
);
}
// verify the required parameter 'updateChildDomain' is set
- if ($updateChildDomain === null) {
+ if ($updateChildDomain === null || (is_array($updateChildDomain) && count($updateChildDomain) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $updateChildDomain when calling updateChildDomain'
);
@@ -3977,9 +4398,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -4200,13 +4628,13 @@ class ResellerApi
protected function updateResellerChildRequest($childAuthKey, $resellerChild)
{
// verify the required parameter 'childAuthKey' is set
- if ($childAuthKey === null) {
+ if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $childAuthKey when calling updateResellerChild'
);
}
// verify the required parameter 'resellerChild' is set
- if ($resellerChild === null) {
+ if ($resellerChild === null || (is_array($resellerChild) && count($resellerChild) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $resellerChild when calling updateResellerChild'
);
@@ -4250,9 +4678,16 @@ class ResellerApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php
index 31345a8..16833fd 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class SMSCampaignsApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -265,7 +270,7 @@ class SMSCampaignsApi
protected function createSmsCampaignRequest($createSmsCampaign)
{
// verify the required parameter 'createSmsCampaign' is set
- if ($createSmsCampaign === null) {
+ if ($createSmsCampaign === null || (is_array($createSmsCampaign) && count($createSmsCampaign) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $createSmsCampaign when calling createSmsCampaign'
);
@@ -301,9 +306,16 @@ class SMSCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -511,7 +523,7 @@ class SMSCampaignsApi
protected function deleteSmsCampaignRequest($campaignId)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling deleteSmsCampaign'
);
@@ -552,9 +564,16 @@ class SMSCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -799,7 +818,7 @@ class SMSCampaignsApi
protected function getSmsCampaignRequest($campaignId)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling getSmsCampaign'
);
@@ -840,9 +859,16 @@ class SMSCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1150,9 +1176,16 @@ class SMSCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1402,7 +1435,7 @@ class SMSCampaignsApi
protected function requestSmsRecipientExportRequest($campaignId, $recipientExport = null)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling requestSmsRecipientExport'
);
@@ -1446,9 +1479,16 @@ class SMSCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1664,7 +1704,7 @@ class SMSCampaignsApi
protected function sendSmsCampaignNowRequest($campaignId)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling sendSmsCampaignNow'
);
@@ -1705,9 +1745,16 @@ class SMSCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1920,13 +1967,13 @@ class SMSCampaignsApi
protected function sendSmsReportRequest($campaignId, $sendReport)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling sendSmsReport'
);
}
// verify the required parameter 'sendReport' is set
- if ($sendReport === null) {
+ if ($sendReport === null || (is_array($sendReport) && count($sendReport) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $sendReport when calling sendSmsReport'
);
@@ -1970,9 +2017,16 @@ class SMSCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2185,13 +2239,13 @@ class SMSCampaignsApi
protected function sendTestSmsRequest($campaignId, $phoneNumber)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling sendTestSms'
);
}
// verify the required parameter 'phoneNumber' is set
- if ($phoneNumber === null) {
+ if ($phoneNumber === null || (is_array($phoneNumber) && count($phoneNumber) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $phoneNumber when calling sendTestSms'
);
@@ -2235,9 +2289,16 @@ class SMSCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2450,13 +2511,13 @@ class SMSCampaignsApi
protected function updateSmsCampaignRequest($campaignId, $updateSmsCampaign)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling updateSmsCampaign'
);
}
// verify the required parameter 'updateSmsCampaign' is set
- if ($updateSmsCampaign === null) {
+ if ($updateSmsCampaign === null || (is_array($updateSmsCampaign) && count($updateSmsCampaign) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $updateSmsCampaign when calling updateSmsCampaign'
);
@@ -2500,9 +2561,16 @@ class SMSCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2715,13 +2783,13 @@ class SMSCampaignsApi
protected function updateSmsCampaignStatusRequest($campaignId, $status)
{
// verify the required parameter 'campaignId' is set
- if ($campaignId === null) {
+ if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $campaignId when calling updateSmsCampaignStatus'
);
}
// verify the required parameter 'status' is set
- if ($status === null) {
+ if ($status === null || (is_array($status) && count($status) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $status when calling updateSmsCampaignStatus'
);
@@ -2765,9 +2833,16 @@ class SMSCampaignsApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php
index 6789ffb..62cc00a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class SMTPApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -85,9 +90,9 @@ class SMTPApi
/**
* Operation createSmtpTemplate
*
- * Create an smtp template
+ * Create a transactional email template
*
- * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in smtp template (required)
+ * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in transactional email template (required)
*
* @throws \SendinBlue\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -102,9 +107,9 @@ class SMTPApi
/**
* Operation createSmtpTemplateWithHttpInfo
*
- * Create an smtp template
+ * Create a transactional email template
*
- * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in smtp template (required)
+ * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in transactional email template (required)
*
* @throws \SendinBlue\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -185,9 +190,9 @@ class SMTPApi
/**
* Operation createSmtpTemplateAsync
*
- * Create an smtp template
+ * Create a transactional email template
*
- * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in smtp template (required)
+ * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in transactional email template (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -205,9 +210,9 @@ class SMTPApi
/**
* Operation createSmtpTemplateAsyncWithHttpInfo
*
- * Create an smtp template
+ * Create a transactional email template
*
- * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in smtp template (required)
+ * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in transactional email template (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -257,7 +262,7 @@ class SMTPApi
/**
* Create request for operation 'createSmtpTemplate'
*
- * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in smtp template (required)
+ * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in transactional email template (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
@@ -265,7 +270,7 @@ class SMTPApi
protected function createSmtpTemplateRequest($smtpTemplate)
{
// verify the required parameter 'smtpTemplate' is set
- if ($smtpTemplate === null) {
+ if ($smtpTemplate === null || (is_array($smtpTemplate) && count($smtpTemplate) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $smtpTemplate when calling createSmtpTemplate'
);
@@ -301,9 +306,16 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -533,9 +545,16 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -592,7 +611,7 @@ class SMTPApi
/**
* Operation deleteSmtpTemplate
*
- * Delete an inactive smtp template
+ * Delete an inactive transactional email template
*
* @param int $templateId id of the template (required)
*
@@ -608,7 +627,7 @@ class SMTPApi
/**
* Operation deleteSmtpTemplateWithHttpInfo
*
- * Delete an inactive smtp template
+ * Delete an inactive transactional email template
*
* @param int $templateId id of the template (required)
*
@@ -677,7 +696,7 @@ class SMTPApi
/**
* Operation deleteSmtpTemplateAsync
*
- * Delete an inactive smtp template
+ * Delete an inactive transactional email template
*
* @param int $templateId id of the template (required)
*
@@ -697,7 +716,7 @@ class SMTPApi
/**
* Operation deleteSmtpTemplateAsyncWithHttpInfo
*
- * Delete an inactive smtp template
+ * Delete an inactive transactional email template
*
* @param int $templateId id of the template (required)
*
@@ -743,7 +762,7 @@ class SMTPApi
protected function deleteSmtpTemplateRequest($templateId)
{
// verify the required parameter 'templateId' is set
- if ($templateId === null) {
+ if ($templateId === null || (is_array($templateId) && count($templateId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $templateId when calling deleteSmtpTemplate'
);
@@ -784,9 +803,16 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -843,7 +869,7 @@ class SMTPApi
/**
* Operation getAggregatedSmtpReport
*
- * Get your SMTP activity aggregated over a period of time
+ * Get your transactional email activity aggregated over a period of time
*
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional)
@@ -863,7 +889,7 @@ class SMTPApi
/**
* Operation getAggregatedSmtpReportWithHttpInfo
*
- * Get your SMTP activity aggregated over a period of time
+ * Get your transactional email activity aggregated over a period of time
*
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional)
@@ -949,7 +975,7 @@ class SMTPApi
/**
* Operation getAggregatedSmtpReportAsync
*
- * Get your SMTP activity aggregated over a period of time
+ * Get your transactional email activity aggregated over a period of time
*
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional)
@@ -972,7 +998,7 @@ class SMTPApi
/**
* Operation getAggregatedSmtpReportAsyncWithHttpInfo
*
- * Get your SMTP activity aggregated over a period of time
+ * Get your transactional email activity aggregated over a period of time
*
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional)
@@ -1081,9 +1107,16 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1140,7 +1173,7 @@ class SMTPApi
/**
* Operation getEmailEventReport
*
- * Get all your SMTP activity (unaggregated events)
+ * Get all your transactional email activity (unaggregated events)
*
* @param int $limit Number limitation for the result returned (optional, default to 50)
* @param int $offset Beginning point in the list to retrieve from. (optional, default to 0)
@@ -1166,7 +1199,7 @@ class SMTPApi
/**
* Operation getEmailEventReportWithHttpInfo
*
- * Get all your SMTP activity (unaggregated events)
+ * Get all your transactional email activity (unaggregated events)
*
* @param int $limit Number limitation for the result returned (optional, default to 50)
* @param int $offset Beginning point in the list to retrieve from. (optional, default to 0)
@@ -1258,7 +1291,7 @@ class SMTPApi
/**
* Operation getEmailEventReportAsync
*
- * Get all your SMTP activity (unaggregated events)
+ * Get all your transactional email activity (unaggregated events)
*
* @param int $limit Number limitation for the result returned (optional, default to 50)
* @param int $offset Beginning point in the list to retrieve from. (optional, default to 0)
@@ -1287,7 +1320,7 @@ class SMTPApi
/**
* Operation getEmailEventReportAsyncWithHttpInfo
*
- * Get all your SMTP activity (unaggregated events)
+ * Get all your transactional email activity (unaggregated events)
*
* @param int $limit Number limitation for the result returned (optional, default to 50)
* @param int $offset Beginning point in the list to retrieve from. (optional, default to 0)
@@ -1436,9 +1469,16 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1495,9 +1535,9 @@ class SMTPApi
/**
* Operation getSmtpReport
*
- * Get your SMTP activity aggregated per day
+ * Get your transactional email activity aggregated per day
*
- * @param int $limit Number of documents returned per page (optional, default to 50)
+ * @param int $limit Number of documents returned per page (optional, default to 10)
* @param int $offset Index of the first document on the page (optional, default to 0)
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) (optional)
@@ -1508,7 +1548,7 @@ class SMTPApi
* @throws \InvalidArgumentException
* @return \SendinBlue\Client\Model\GetReports
*/
- public function getSmtpReport($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null)
+ public function getSmtpReport($limit = '10', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null)
{
list($response) = $this->getSmtpReportWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $tag);
return $response;
@@ -1517,9 +1557,9 @@ class SMTPApi
/**
* Operation getSmtpReportWithHttpInfo
*
- * Get your SMTP activity aggregated per day
+ * Get your transactional email activity aggregated per day
*
- * @param int $limit Number of documents returned per page (optional, default to 50)
+ * @param int $limit Number of documents returned per page (optional, default to 10)
* @param int $offset Index of the first document on the page (optional, default to 0)
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) (optional)
@@ -1530,7 +1570,7 @@ class SMTPApi
* @throws \InvalidArgumentException
* @return array of \SendinBlue\Client\Model\GetReports, HTTP status code, HTTP response headers (array of strings)
*/
- public function getSmtpReportWithHttpInfo($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null)
+ public function getSmtpReportWithHttpInfo($limit = '10', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null)
{
$returnType = '\SendinBlue\Client\Model\GetReports';
$request = $this->getSmtpReportRequest($limit, $offset, $startDate, $endDate, $days, $tag);
@@ -1605,9 +1645,9 @@ class SMTPApi
/**
* Operation getSmtpReportAsync
*
- * Get your SMTP activity aggregated per day
+ * Get your transactional email activity aggregated per day
*
- * @param int $limit Number of documents returned per page (optional, default to 50)
+ * @param int $limit Number of documents returned per page (optional, default to 10)
* @param int $offset Index of the first document on the page (optional, default to 0)
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) (optional)
@@ -1617,7 +1657,7 @@ class SMTPApi
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getSmtpReportAsync($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null)
+ public function getSmtpReportAsync($limit = '10', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null)
{
return $this->getSmtpReportAsyncWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $tag)
->then(
@@ -1630,9 +1670,9 @@ class SMTPApi
/**
* Operation getSmtpReportAsyncWithHttpInfo
*
- * Get your SMTP activity aggregated per day
+ * Get your transactional email activity aggregated per day
*
- * @param int $limit Number of documents returned per page (optional, default to 50)
+ * @param int $limit Number of documents returned per page (optional, default to 10)
* @param int $offset Index of the first document on the page (optional, default to 0)
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) (optional)
@@ -1642,7 +1682,7 @@ class SMTPApi
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getSmtpReportAsyncWithHttpInfo($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null)
+ public function getSmtpReportAsyncWithHttpInfo($limit = '10', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null)
{
$returnType = '\SendinBlue\Client\Model\GetReports';
$request = $this->getSmtpReportRequest($limit, $offset, $startDate, $endDate, $days, $tag);
@@ -1687,7 +1727,7 @@ class SMTPApi
/**
* Create request for operation 'getSmtpReport'
*
- * @param int $limit Number of documents returned per page (optional, default to 50)
+ * @param int $limit Number of documents returned per page (optional, default to 10)
* @param int $offset Index of the first document on the page (optional, default to 0)
* @param string $startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) (optional)
* @param string $endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) (optional)
@@ -1697,10 +1737,10 @@ class SMTPApi
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- protected function getSmtpReportRequest($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null)
+ protected function getSmtpReportRequest($limit = '10', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null)
{
- if ($limit !== null && $limit > 100) {
- throw new \InvalidArgumentException('invalid value for "$limit" when calling SMTPApi.getSmtpReport, must be smaller than or equal to 100.');
+ if ($limit !== null && $limit > 30) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling SMTPApi.getSmtpReport, must be smaller than or equal to 30.');
}
@@ -1755,9 +1795,16 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2002,7 +2049,7 @@ class SMTPApi
protected function getSmtpTemplateRequest($templateId)
{
// verify the required parameter 'templateId' is set
- if ($templateId === null) {
+ if ($templateId === null || (is_array($templateId) && count($templateId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $templateId when calling getSmtpTemplate'
);
@@ -2043,9 +2090,16 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2102,7 +2156,7 @@ class SMTPApi
/**
* Operation getSmtpTemplates
*
- * Get the list of SMTP templates
+ * Get the list of transactional email templates
*
* @param bool $templateStatus Filter on the status of the template. Active = true, inactive = false (optional)
* @param int $limit Number of documents returned per page (optional, default to 50)
@@ -2121,7 +2175,7 @@ class SMTPApi
/**
* Operation getSmtpTemplatesWithHttpInfo
*
- * Get the list of SMTP templates
+ * Get the list of transactional email templates
*
* @param bool $templateStatus Filter on the status of the template. Active = true, inactive = false (optional)
* @param int $limit Number of documents returned per page (optional, default to 50)
@@ -2206,7 +2260,7 @@ class SMTPApi
/**
* Operation getSmtpTemplatesAsync
*
- * Get the list of SMTP templates
+ * Get the list of transactional email templates
*
* @param bool $templateStatus Filter on the status of the template. Active = true, inactive = false (optional)
* @param int $limit Number of documents returned per page (optional, default to 50)
@@ -2228,7 +2282,7 @@ class SMTPApi
/**
* Operation getSmtpTemplatesAsyncWithHttpInfo
*
- * Get the list of SMTP templates
+ * Get the list of transactional email templates
*
* @param bool $templateStatus Filter on the status of the template. Active = true, inactive = false (optional)
* @param int $limit Number of documents returned per page (optional, default to 50)
@@ -2335,9 +2389,928 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\build_query($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\build_query($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation getTransacBlockedContacts
+ *
+ * Get the list of blocked or unsubscribed transactional contacts
+ *
+ * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts (optional)
+ * @param string $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts (optional)
+ * @param int $limit Number of documents returned per page (optional, default to 50)
+ * @param int $offset Index of the first document on the page (optional, default to 0)
+ * @param string[] $senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\GetTransacBlockedContacts
+ */
+ public function getTransacBlockedContacts($startDate = null, $endDate = null, $limit = '50', $offset = '0', $senders = null)
+ {
+ list($response) = $this->getTransacBlockedContactsWithHttpInfo($startDate, $endDate, $limit, $offset, $senders);
+ return $response;
+ }
+
+ /**
+ * Operation getTransacBlockedContactsWithHttpInfo
+ *
+ * Get the list of blocked or unsubscribed transactional contacts
+ *
+ * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts (optional)
+ * @param string $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts (optional)
+ * @param int $limit Number of documents returned per page (optional, default to 50)
+ * @param int $offset Index of the first document on the page (optional, default to 0)
+ * @param string[] $senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\GetTransacBlockedContacts, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function getTransacBlockedContactsWithHttpInfo($startDate = null, $endDate = null, $limit = '50', $offset = '0', $senders = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetTransacBlockedContacts';
+ $request = $this->getTransacBlockedContactsRequest($startDate, $endDate, $limit, $offset, $senders);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\GetTransacBlockedContacts',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation getTransacBlockedContactsAsync
+ *
+ * Get the list of blocked or unsubscribed transactional contacts
+ *
+ * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts (optional)
+ * @param string $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts (optional)
+ * @param int $limit Number of documents returned per page (optional, default to 50)
+ * @param int $offset Index of the first document on the page (optional, default to 0)
+ * @param string[] $senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getTransacBlockedContactsAsync($startDate = null, $endDate = null, $limit = '50', $offset = '0', $senders = null)
+ {
+ return $this->getTransacBlockedContactsAsyncWithHttpInfo($startDate, $endDate, $limit, $offset, $senders)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getTransacBlockedContactsAsyncWithHttpInfo
+ *
+ * Get the list of blocked or unsubscribed transactional contacts
+ *
+ * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts (optional)
+ * @param string $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts (optional)
+ * @param int $limit Number of documents returned per page (optional, default to 50)
+ * @param int $offset Index of the first document on the page (optional, default to 0)
+ * @param string[] $senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getTransacBlockedContactsAsyncWithHttpInfo($startDate = null, $endDate = null, $limit = '50', $offset = '0', $senders = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetTransacBlockedContacts';
+ $request = $this->getTransacBlockedContactsRequest($startDate, $endDate, $limit, $offset, $senders);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getTransacBlockedContacts'
+ *
+ * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts (optional)
+ * @param string $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts (optional)
+ * @param int $limit Number of documents returned per page (optional, default to 50)
+ * @param int $offset Index of the first document on the page (optional, default to 0)
+ * @param string[] $senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getTransacBlockedContactsRequest($startDate = null, $endDate = null, $limit = '50', $offset = '0', $senders = null)
+ {
+ if ($limit !== null && $limit > 100) {
+ throw new \InvalidArgumentException('invalid value for "$limit" when calling SMTPApi.getTransacBlockedContacts, must be smaller than or equal to 100.');
+ }
+
+
+ $resourcePath = '/smtp/blockedContacts';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ if ($startDate !== null) {
+ $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate);
+ }
+ // query params
+ if ($endDate !== null) {
+ $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate);
+ }
+ // query params
+ if ($limit !== null) {
+ $queryParams['limit'] = ObjectSerializer::toQueryValue($limit);
+ }
+ // query params
+ if ($offset !== null) {
+ $queryParams['offset'] = ObjectSerializer::toQueryValue($offset);
+ }
+ // query params
+ if (is_array($senders)) {
+ $queryParams['senders'] = $senders;
+ } else
+ if ($senders !== null) {
+ $queryParams['senders'] = ObjectSerializer::toQueryValue($senders);
+ }
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\build_query($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\build_query($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation getTransacEmailContent
+ *
+ * Get the personalized content of a sent transactional email
+ *
+ * @param string $uuid Unique id of the transactional email that has been sent to a particular contact (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\GetTransacEmailContent
+ */
+ public function getTransacEmailContent($uuid)
+ {
+ list($response) = $this->getTransacEmailContentWithHttpInfo($uuid);
+ return $response;
+ }
+
+ /**
+ * Operation getTransacEmailContentWithHttpInfo
+ *
+ * Get the personalized content of a sent transactional email
+ *
+ * @param string $uuid Unique id of the transactional email that has been sent to a particular contact (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\GetTransacEmailContent, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function getTransacEmailContentWithHttpInfo($uuid)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetTransacEmailContent';
+ $request = $this->getTransacEmailContentRequest($uuid);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\GetTransacEmailContent',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation getTransacEmailContentAsync
+ *
+ * Get the personalized content of a sent transactional email
+ *
+ * @param string $uuid Unique id of the transactional email that has been sent to a particular contact (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getTransacEmailContentAsync($uuid)
+ {
+ return $this->getTransacEmailContentAsyncWithHttpInfo($uuid)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getTransacEmailContentAsyncWithHttpInfo
+ *
+ * Get the personalized content of a sent transactional email
+ *
+ * @param string $uuid Unique id of the transactional email that has been sent to a particular contact (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getTransacEmailContentAsyncWithHttpInfo($uuid)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetTransacEmailContent';
+ $request = $this->getTransacEmailContentRequest($uuid);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getTransacEmailContent'
+ *
+ * @param string $uuid Unique id of the transactional email that has been sent to a particular contact (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getTransacEmailContentRequest($uuid)
+ {
+ // verify the required parameter 'uuid' is set
+ if ($uuid === null || (is_array($uuid) && count($uuid) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $uuid when calling getTransacEmailContent'
+ );
+ }
+
+ $resourcePath = '/smtp/emails/{uuid}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($uuid !== null) {
+ $resourcePath = str_replace(
+ '{' . 'uuid' . '}',
+ ObjectSerializer::toPathValue($uuid),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\build_query($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\build_query($queryParams);
+ return new Request(
+ 'GET',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation getTransacEmailsList
+ *
+ * Get the list of transactional emails on the basis of allowed filters
+ *
+ * @param string $email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. (optional)
+ * @param int $templateId Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. (optional)
+ * @param string $messageId Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. (optional)
+ * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional)
+ * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return \SendinBlue\Client\Model\GetTransacEmailsList
+ */
+ public function getTransacEmailsList($email = null, $templateId = null, $messageId = null, $startDate = null, $endDate = null)
+ {
+ list($response) = $this->getTransacEmailsListWithHttpInfo($email, $templateId, $messageId, $startDate, $endDate);
+ return $response;
+ }
+
+ /**
+ * Operation getTransacEmailsListWithHttpInfo
+ *
+ * Get the list of transactional emails on the basis of allowed filters
+ *
+ * @param string $email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. (optional)
+ * @param int $templateId Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. (optional)
+ * @param string $messageId Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. (optional)
+ * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional)
+ * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of \SendinBlue\Client\Model\GetTransacEmailsList, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function getTransacEmailsListWithHttpInfo($email = null, $templateId = null, $messageId = null, $startDate = null, $endDate = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetTransacEmailsList';
+ $request = $this->getTransacEmailsListRequest($email, $templateId, $messageId, $startDate, $endDate);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\GetTransacEmailsList',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation getTransacEmailsListAsync
+ *
+ * Get the list of transactional emails on the basis of allowed filters
+ *
+ * @param string $email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. (optional)
+ * @param int $templateId Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. (optional)
+ * @param string $messageId Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. (optional)
+ * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional)
+ * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getTransacEmailsListAsync($email = null, $templateId = null, $messageId = null, $startDate = null, $endDate = null)
+ {
+ return $this->getTransacEmailsListAsyncWithHttpInfo($email, $templateId, $messageId, $startDate, $endDate)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation getTransacEmailsListAsyncWithHttpInfo
+ *
+ * Get the list of transactional emails on the basis of allowed filters
+ *
+ * @param string $email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. (optional)
+ * @param int $templateId Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. (optional)
+ * @param string $messageId Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. (optional)
+ * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional)
+ * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function getTransacEmailsListAsyncWithHttpInfo($email = null, $templateId = null, $messageId = null, $startDate = null, $endDate = null)
+ {
+ $returnType = '\SendinBlue\Client\Model\GetTransacEmailsList';
+ $request = $this->getTransacEmailsListRequest($email, $templateId, $messageId, $startDate, $endDate);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ $responseBody = $response->getBody();
+ if ($returnType === '\SplFileObject') {
+ $content = $responseBody; //stream goes to serializer
+ } else {
+ $content = $responseBody->getContents();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'getTransacEmailsList'
+ *
+ * @param string $email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. (optional)
+ * @param int $templateId Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. (optional)
+ * @param string $messageId Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. (optional)
+ * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional)
+ * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function getTransacEmailsListRequest($email = null, $templateId = null, $messageId = null, $startDate = null, $endDate = null)
+ {
+
+ $resourcePath = '/smtp/emails';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ if ($email !== null) {
+ $queryParams['email'] = ObjectSerializer::toQueryValue($email);
+ }
+ // query params
+ if ($templateId !== null) {
+ $queryParams['templateId'] = ObjectSerializer::toQueryValue($templateId);
+ }
+ // query params
+ if ($messageId !== null) {
+ $queryParams['messageId'] = ObjectSerializer::toQueryValue($messageId);
+ }
+ // query params
+ if ($startDate !== null) {
+ $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate);
+ }
+ // query params
+ if ($endDate !== null) {
+ $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate);
+ }
+
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2587,13 +3560,13 @@ class SMTPApi
protected function sendTemplateRequest($templateId, $sendEmail)
{
// verify the required parameter 'templateId' is set
- if ($templateId === null) {
+ if ($templateId === null || (is_array($templateId) && count($templateId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $templateId when calling sendTemplate'
);
}
// verify the required parameter 'sendEmail' is set
- if ($sendEmail === null) {
+ if ($sendEmail === null || (is_array($sendEmail) && count($sendEmail) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $sendEmail when calling sendTemplate'
);
@@ -2637,9 +3610,16 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2852,13 +3832,13 @@ class SMTPApi
protected function sendTestTemplateRequest($templateId, $sendTestEmail)
{
// verify the required parameter 'templateId' is set
- if ($templateId === null) {
+ if ($templateId === null || (is_array($templateId) && count($templateId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $templateId when calling sendTestTemplate'
);
}
// verify the required parameter 'sendTestEmail' is set
- if ($sendTestEmail === null) {
+ if ($sendTestEmail === null || (is_array($sendTestEmail) && count($sendTestEmail) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $sendTestEmail when calling sendTestTemplate'
);
@@ -2902,9 +3882,16 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -3141,7 +4128,7 @@ class SMTPApi
protected function sendTransacEmailRequest($sendSmtpEmail)
{
// verify the required parameter 'sendSmtpEmail' is set
- if ($sendSmtpEmail === null) {
+ if ($sendSmtpEmail === null || (is_array($sendSmtpEmail) && count($sendSmtpEmail) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $sendSmtpEmail when calling sendTransacEmail'
);
@@ -3177,9 +4164,16 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -3233,13 +4227,529 @@ class SMTPApi
);
}
+ /**
+ * Operation smtpBlockedContactsEmailDelete
+ *
+ * Unblock or resubscribe a transactional contact
+ *
+ * @param string $email contact email (urlencoded) to unblock. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function smtpBlockedContactsEmailDelete($email)
+ {
+ $this->smtpBlockedContactsEmailDeleteWithHttpInfo($email);
+ }
+
+ /**
+ * Operation smtpBlockedContactsEmailDeleteWithHttpInfo
+ *
+ * Unblock or resubscribe a transactional contact
+ *
+ * @param string $email contact email (urlencoded) to unblock. (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function smtpBlockedContactsEmailDeleteWithHttpInfo($email)
+ {
+ $returnType = '';
+ $request = $this->smtpBlockedContactsEmailDeleteRequest($email);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation smtpBlockedContactsEmailDeleteAsync
+ *
+ * Unblock or resubscribe a transactional contact
+ *
+ * @param string $email contact email (urlencoded) to unblock. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function smtpBlockedContactsEmailDeleteAsync($email)
+ {
+ return $this->smtpBlockedContactsEmailDeleteAsyncWithHttpInfo($email)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation smtpBlockedContactsEmailDeleteAsyncWithHttpInfo
+ *
+ * Unblock or resubscribe a transactional contact
+ *
+ * @param string $email contact email (urlencoded) to unblock. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function smtpBlockedContactsEmailDeleteAsyncWithHttpInfo($email)
+ {
+ $returnType = '';
+ $request = $this->smtpBlockedContactsEmailDeleteRequest($email);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'smtpBlockedContactsEmailDelete'
+ *
+ * @param string $email contact email (urlencoded) to unblock. (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function smtpBlockedContactsEmailDeleteRequest($email)
+ {
+ // verify the required parameter 'email' is set
+ if ($email === null || (is_array($email) && count($email) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $email when calling smtpBlockedContactsEmailDelete'
+ );
+ }
+
+ $resourcePath = '/smtp/blockedContacts/{email}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($email !== null) {
+ $resourcePath = str_replace(
+ '{' . 'email' . '}',
+ ObjectSerializer::toPathValue($email),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\build_query($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\build_query($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation smtpLogMessageIdDelete
+ *
+ * Delete an SMTP transactional log
+ *
+ * @param string $messageId MessageId of the transactional log to delete (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function smtpLogMessageIdDelete($messageId)
+ {
+ $this->smtpLogMessageIdDeleteWithHttpInfo($messageId);
+ }
+
+ /**
+ * Operation smtpLogMessageIdDeleteWithHttpInfo
+ *
+ * Delete an SMTP transactional log
+ *
+ * @param string $messageId MessageId of the transactional log to delete (required)
+ *
+ * @throws \SendinBlue\Client\ApiException on non-2xx response
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function smtpLogMessageIdDeleteWithHttpInfo($messageId)
+ {
+ $returnType = '';
+ $request = $this->smtpLogMessageIdDeleteRequest($messageId);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\SendinBlue\Client\Model\ErrorModel',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation smtpLogMessageIdDeleteAsync
+ *
+ * Delete an SMTP transactional log
+ *
+ * @param string $messageId MessageId of the transactional log to delete (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function smtpLogMessageIdDeleteAsync($messageId)
+ {
+ return $this->smtpLogMessageIdDeleteAsyncWithHttpInfo($messageId)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation smtpLogMessageIdDeleteAsyncWithHttpInfo
+ *
+ * Delete an SMTP transactional log
+ *
+ * @param string $messageId MessageId of the transactional log to delete (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function smtpLogMessageIdDeleteAsyncWithHttpInfo($messageId)
+ {
+ $returnType = '';
+ $request = $this->smtpLogMessageIdDeleteRequest($messageId);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'smtpLogMessageIdDelete'
+ *
+ * @param string $messageId MessageId of the transactional log to delete (required)
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ protected function smtpLogMessageIdDeleteRequest($messageId)
+ {
+ // verify the required parameter 'messageId' is set
+ if ($messageId === null || (is_array($messageId) && count($messageId) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $messageId when calling smtpLogMessageIdDelete'
+ );
+ }
+
+ $resourcePath = '/smtp/log/{messageId}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+ // path params
+ if ($messageId !== null) {
+ $resourcePath = str_replace(
+ '{' . 'messageId' . '}',
+ ObjectSerializer::toPathValue($messageId),
+ $resourcePath
+ );
+ }
+
+ // body params
+ $_tempBody = null;
+
+ if ($multipart) {
+ $headers = $this->headerSelector->selectHeadersForMultipart(
+ ['application/json']
+ );
+ } else {
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ // for model (json/xml)
+ if (isset($_tempBody)) {
+ // $_tempBody is the method argument, if present
+ $httpBody = $_tempBody;
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
+ }
+ } elseif (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValue
+ ];
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif ($headers['Content-Type'] === 'application/json') {
+ $httpBody = \GuzzleHttp\json_encode($formParams);
+
+ } else {
+ // for HTTP post (form)
+ $httpBody = \GuzzleHttp\Psr7\build_query($formParams);
+ }
+ }
+
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('api-key');
+ if ($apiKey !== null) {
+ $headers['api-key'] = $apiKey;
+ }
+ // this endpoint requires API key authentication
+ $apiKey = $this->config->getApiKeyWithPrefix('partner-key');
+ if ($apiKey !== null) {
+ $headers['partner-key'] = $apiKey;
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $query = \GuzzleHttp\Psr7\build_query($queryParams);
+ return new Request(
+ 'DELETE',
+ $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
/**
* Operation updateSmtpTemplate
*
- * Updates an smtp templates
+ * Updates a transactional email templates
*
* @param int $templateId id of the template (required)
- * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in smtp template (required)
+ * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in transactional email template (required)
*
* @throws \SendinBlue\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -3253,10 +4763,10 @@ class SMTPApi
/**
* Operation updateSmtpTemplateWithHttpInfo
*
- * Updates an smtp templates
+ * Updates a transactional email templates
*
* @param int $templateId id of the template (required)
- * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in smtp template (required)
+ * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in transactional email template (required)
*
* @throws \SendinBlue\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -3323,10 +4833,10 @@ class SMTPApi
/**
* Operation updateSmtpTemplateAsync
*
- * Updates an smtp templates
+ * Updates a transactional email templates
*
* @param int $templateId id of the template (required)
- * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in smtp template (required)
+ * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in transactional email template (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -3344,10 +4854,10 @@ class SMTPApi
/**
* Operation updateSmtpTemplateAsyncWithHttpInfo
*
- * Updates an smtp templates
+ * Updates a transactional email templates
*
* @param int $templateId id of the template (required)
- * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in smtp template (required)
+ * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in transactional email template (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -3384,7 +4894,7 @@ class SMTPApi
* Create request for operation 'updateSmtpTemplate'
*
* @param int $templateId id of the template (required)
- * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in smtp template (required)
+ * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in transactional email template (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
@@ -3392,13 +4902,13 @@ class SMTPApi
protected function updateSmtpTemplateRequest($templateId, $smtpTemplate)
{
// verify the required parameter 'templateId' is set
- if ($templateId === null) {
+ if ($templateId === null || (is_array($templateId) && count($templateId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $templateId when calling updateSmtpTemplate'
);
}
// verify the required parameter 'smtpTemplate' is set
- if ($smtpTemplate === null) {
+ if ($smtpTemplate === null || (is_array($smtpTemplate) && count($smtpTemplate) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $smtpTemplate when calling updateSmtpTemplate'
);
@@ -3442,9 +4952,16 @@ class SMTPApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SendersApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SendersApi.php
index fade455..4a2cde4 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SendersApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SendersApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class SendersApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -295,9 +300,16 @@ class SendersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -505,7 +517,7 @@ class SendersApi
protected function deleteSenderRequest($senderId)
{
// verify the required parameter 'senderId' is set
- if ($senderId === null) {
+ if ($senderId === null || (is_array($senderId) && count($senderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $senderId when calling deleteSender'
);
@@ -546,9 +558,16 @@ class SendersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -799,9 +818,16 @@ class SendersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1046,7 +1072,7 @@ class SendersApi
protected function getIpsFromSenderRequest($senderId)
{
// verify the required parameter 'senderId' is set
- if ($senderId === null) {
+ if ($senderId === null || (is_array($senderId) && count($senderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $senderId when calling getIpsFromSender'
);
@@ -1087,9 +1113,16 @@ class SendersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1366,9 +1399,16 @@ class SendersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1581,7 +1621,7 @@ class SendersApi
protected function updateSenderRequest($senderId, $sender = null)
{
// verify the required parameter 'senderId' is set
- if ($senderId === null) {
+ if ($senderId === null || (is_array($senderId) && count($senderId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $senderId when calling updateSender'
);
@@ -1625,9 +1665,16 @@ class SendersApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php
index 3391fdf..b316d6d 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class TransactionalSMSApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -363,9 +368,16 @@ class TransactionalSMSApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -660,9 +672,16 @@ class TransactionalSMSApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -957,9 +976,16 @@ class TransactionalSMSApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1204,7 +1230,7 @@ class TransactionalSMSApi
protected function sendTransacSmsRequest($sendTransacSms)
{
// verify the required parameter 'sendTransacSms' is set
- if ($sendTransacSms === null) {
+ if ($sendTransacSms === null || (is_array($sendTransacSms) && count($sendTransacSms) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $sendTransacSms when calling sendTransacSms'
);
@@ -1240,9 +1266,16 @@ class TransactionalSMSApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php
index 38c7116..b345370 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class WebhooksApi
*/
protected $config;
+ /**
+ * @var HeaderSelector
+ */
+ protected $headerSelector;
+
/**
* @param ClientInterface $client
* @param Configuration $config
@@ -265,7 +270,7 @@ class WebhooksApi
protected function createWebhookRequest($createWebhook)
{
// verify the required parameter 'createWebhook' is set
- if ($createWebhook === null) {
+ if ($createWebhook === null || (is_array($createWebhook) && count($createWebhook) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $createWebhook when calling createWebhook'
);
@@ -301,9 +306,16 @@ class WebhooksApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -511,7 +523,7 @@ class WebhooksApi
protected function deleteWebhookRequest($webhookId)
{
// verify the required parameter 'webhookId' is set
- if ($webhookId === null) {
+ if ($webhookId === null || (is_array($webhookId) && count($webhookId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $webhookId when calling deleteWebhook'
);
@@ -552,9 +564,16 @@ class WebhooksApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -799,7 +818,7 @@ class WebhooksApi
protected function getWebhookRequest($webhookId)
{
// verify the required parameter 'webhookId' is set
- if ($webhookId === null) {
+ if ($webhookId === null || (is_array($webhookId) && count($webhookId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $webhookId when calling getWebhook'
);
@@ -840,9 +859,16 @@ class WebhooksApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1110,9 +1136,16 @@ class WebhooksApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1325,13 +1358,13 @@ class WebhooksApi
protected function updateWebhookRequest($webhookId, $updateWebhook)
{
// verify the required parameter 'webhookId' is set
- if ($webhookId === null) {
+ if ($webhookId === null || (is_array($webhookId) && count($webhookId) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $webhookId when calling updateWebhook'
);
}
// verify the required parameter 'updateWebhook' is set
- if ($updateWebhook === null) {
+ if ($updateWebhook === null || (is_array($updateWebhook) && count($updateWebhook) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $updateWebhook when calling updateWebhook'
);
@@ -1375,9 +1408,16 @@ class WebhooksApi
if (isset($_tempBody)) {
// $_tempBody is the method argument, if present
$httpBody = $_tempBody;
- // \stdClass has no __toString(), so we should encode it manually
- if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') {
- $httpBody = \GuzzleHttp\json_encode($httpBody);
+
+ if($headers['Content-Type'] === 'application/json') {
+ // \stdClass has no __toString(), so we should encode it manually
+ if ($httpBody instanceof \stdClass) {
+ $httpBody = \GuzzleHttp\json_encode($httpBody);
+ }
+ // array has no __toString(), so we should encode it manually
+ if(is_array($httpBody)) {
+ $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));
+ }
}
} elseif (count($formParams) > 0) {
if ($multipart) {
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ApiException.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ApiException.php
index ff45e00..f9783cc 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ApiException.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ApiException.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Configuration.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Configuration.php
index 06d6bb5..f99275f 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Configuration.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Configuration.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/HeaderSelector.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/HeaderSelector.php
index 214dff6..56b557d 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/HeaderSelector.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/HeaderSelector.php
@@ -12,12 +12,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php
new file mode 100644
index 0000000..1b81c77
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php
@@ -0,0 +1,515 @@
+ 'string',
+ 'winningCriteria' => 'string',
+ 'winningSubjectLine' => 'string',
+ 'openRate' => 'string',
+ 'clickRate' => 'string',
+ 'winningVersionRate' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'winningVersion' => null,
+ 'winningCriteria' => null,
+ 'winningSubjectLine' => null,
+ 'openRate' => null,
+ 'clickRate' => null,
+ 'winningVersionRate' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'winningVersion' => 'winningVersion',
+ 'winningCriteria' => 'winningCriteria',
+ 'winningSubjectLine' => 'winningSubjectLine',
+ 'openRate' => 'openRate',
+ 'clickRate' => 'clickRate',
+ 'winningVersionRate' => 'winningVersionRate'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'winningVersion' => 'setWinningVersion',
+ 'winningCriteria' => 'setWinningCriteria',
+ 'winningSubjectLine' => 'setWinningSubjectLine',
+ 'openRate' => 'setOpenRate',
+ 'clickRate' => 'setClickRate',
+ 'winningVersionRate' => 'setWinningVersionRate'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'winningVersion' => 'getWinningVersion',
+ 'winningCriteria' => 'getWinningCriteria',
+ 'winningSubjectLine' => 'getWinningSubjectLine',
+ 'openRate' => 'getOpenRate',
+ 'clickRate' => 'getClickRate',
+ 'winningVersionRate' => 'getWinningVersionRate'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+ const WINNING_VERSION_NOT_AVAILABLE = 'notAvailable';
+ const WINNING_VERSION_PENDING = 'pending';
+ const WINNING_VERSION_TIE = 'tie';
+ const WINNING_VERSION_A = 'A';
+ const WINNING_VERSION_B = 'B';
+ const WINNING_CRITERIA_OPEN = 'Open';
+ const WINNING_CRITERIA_CLICK = 'Click';
+
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getWinningVersionAllowableValues()
+ {
+ return [
+ self::WINNING_VERSION_NOT_AVAILABLE,
+ self::WINNING_VERSION_PENDING,
+ self::WINNING_VERSION_TIE,
+ self::WINNING_VERSION_A,
+ self::WINNING_VERSION_B,
+ ];
+ }
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getWinningCriteriaAllowableValues()
+ {
+ return [
+ self::WINNING_CRITERIA_OPEN,
+ self::WINNING_CRITERIA_CLICK,
+ ];
+ }
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['winningVersion'] = isset($data['winningVersion']) ? $data['winningVersion'] : null;
+ $this->container['winningCriteria'] = isset($data['winningCriteria']) ? $data['winningCriteria'] : null;
+ $this->container['winningSubjectLine'] = isset($data['winningSubjectLine']) ? $data['winningSubjectLine'] : null;
+ $this->container['openRate'] = isset($data['openRate']) ? $data['openRate'] : null;
+ $this->container['clickRate'] = isset($data['clickRate']) ? $data['clickRate'] : null;
+ $this->container['winningVersionRate'] = isset($data['winningVersionRate']) ? $data['winningVersionRate'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getWinningVersionAllowableValues();
+ if (!is_null($this->container['winningVersion']) && !in_array($this->container['winningVersion'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'winningVersion', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ $allowedValues = $this->getWinningCriteriaAllowableValues();
+ if (!is_null($this->container['winningCriteria']) && !in_array($this->container['winningCriteria'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'winningCriteria', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets winningVersion
+ *
+ * @return string
+ */
+ public function getWinningVersion()
+ {
+ return $this->container['winningVersion'];
+ }
+
+ /**
+ * Sets winningVersion
+ *
+ * @param string $winningVersion Winning Campaign Info. pending = Campaign has been picked for sending and winning version is yet to be decided, tie = A tie happened between both the versions, notAvailable = Campaign has not yet been picked for sending.
+ *
+ * @return $this
+ */
+ public function setWinningVersion($winningVersion)
+ {
+ $allowedValues = $this->getWinningVersionAllowableValues();
+ if (!is_null($winningVersion) && !in_array($winningVersion, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'winningVersion', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['winningVersion'] = $winningVersion;
+
+ return $this;
+ }
+
+ /**
+ * Gets winningCriteria
+ *
+ * @return string
+ */
+ public function getWinningCriteria()
+ {
+ return $this->container['winningCriteria'];
+ }
+
+ /**
+ * Sets winningCriteria
+ *
+ * @param string $winningCriteria Criteria choosen for winning version (Open/Click)
+ *
+ * @return $this
+ */
+ public function setWinningCriteria($winningCriteria)
+ {
+ $allowedValues = $this->getWinningCriteriaAllowableValues();
+ if (!is_null($winningCriteria) && !in_array($winningCriteria, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'winningCriteria', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['winningCriteria'] = $winningCriteria;
+
+ return $this;
+ }
+
+ /**
+ * Gets winningSubjectLine
+ *
+ * @return string
+ */
+ public function getWinningSubjectLine()
+ {
+ return $this->container['winningSubjectLine'];
+ }
+
+ /**
+ * Sets winningSubjectLine
+ *
+ * @param string $winningSubjectLine Subject Line of current winning version
+ *
+ * @return $this
+ */
+ public function setWinningSubjectLine($winningSubjectLine)
+ {
+ $this->container['winningSubjectLine'] = $winningSubjectLine;
+
+ return $this;
+ }
+
+ /**
+ * Gets openRate
+ *
+ * @return string
+ */
+ public function getOpenRate()
+ {
+ return $this->container['openRate'];
+ }
+
+ /**
+ * Sets openRate
+ *
+ * @param string $openRate Open rate for current winning version
+ *
+ * @return $this
+ */
+ public function setOpenRate($openRate)
+ {
+ $this->container['openRate'] = $openRate;
+
+ return $this;
+ }
+
+ /**
+ * Gets clickRate
+ *
+ * @return string
+ */
+ public function getClickRate()
+ {
+ return $this->container['clickRate'];
+ }
+
+ /**
+ * Sets clickRate
+ *
+ * @param string $clickRate Click rate for current winning version
+ *
+ * @return $this
+ */
+ public function setClickRate($clickRate)
+ {
+ $this->container['clickRate'] = $clickRate;
+
+ return $this;
+ }
+
+ /**
+ * Gets winningVersionRate
+ *
+ * @return string
+ */
+ public function getWinningVersionRate()
+ {
+ return $this->container['winningVersionRate'];
+ }
+
+ /**
+ * Sets winningVersionRate
+ *
+ * @param string $winningVersionRate Open/Click rate for the winner version
+ *
+ * @return $this
+ */
+ public function setWinningVersionRate($winningVersionRate)
+ {
+ $this->container['winningVersionRate'] = $winningVersionRate;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php
index 3c24c86..b139251 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class AddChildDomain implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php
index 673e1ed..fb83296 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class AddContactToList implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddCredits.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddCredits.php
index 1714ad1..cbf0dde 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddCredits.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddCredits.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -206,8 +206,7 @@ class AddCredits implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php
index 86a338a..da409c8 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -225,7 +225,7 @@ class CreateAttribute implements ModelInterface, ArrayAccess
$invalidProperties = [];
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
+ if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'type', must be one of '%s'",
implode("', '", $allowedValues)
@@ -243,12 +243,7 @@ class CreateAttribute implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- $allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -320,7 +315,7 @@ class CreateAttribute implements ModelInterface, ArrayAccess
public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
- if (!is_null($type) && !in_array($type, $allowedValues)) {
+ if (!is_null($type) && !in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'type', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php
index fad0af8..61e60d6 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['value'] === null) {
- return false;
- }
- if ($this->container['label'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateChild.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateChild.php
index 5e5c980..6fb54a3 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateChild.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateChild.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -239,23 +239,7 @@ class CreateChild implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- if ($this->container['firstName'] === null) {
- return false;
- }
- if ($this->container['lastName'] === null) {
- return false;
- }
- if ($this->container['companyName'] === null) {
- return false;
- }
- if ($this->container['password'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateContact.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateContact.php
index c362203..fcf0bd7 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateContact.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateContact.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -236,8 +236,7 @@ class CreateContact implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -254,7 +253,7 @@ class CreateContact implements ModelInterface, ArrayAccess
/**
* Sets email
*
- * @param string $email Email address of the user. Mandatory if \"sms\" field is not passed in \"attributes\" parameter'
+ * @param string $email Email address of the user. Mandatory if \"SMS\" field is not passed in \"attributes\" parameter. Mobile Number in \"SMS\" field should be passed with proper country code. For example {\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"}
*
* @return $this
*/
@@ -278,7 +277,7 @@ class CreateContact implements ModelInterface, ArrayAccess
/**
* Sets attributes
*
- * @param object $attributes Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For example, `{\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"}`
+ * @param object $attributes Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For eg. `{\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"}`
*
* @return $this
*/
@@ -398,7 +397,7 @@ class CreateContact implements ModelInterface, ArrayAccess
/**
* Sets smtpBlacklistSender
*
- * @param string[] $smtpBlacklistSender SMTP forbidden sender for contact. Use only for email Contact ( only available if updateEnabled = true )
+ * @param string[] $smtpBlacklistSender transactional email forbidden sender for contact. Use only for email Contact ( only available if updateEnabled = true )
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php
index 572ab1b..db00ac9 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -81,7 +81,10 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
'subjectB' => 'string',
'splitRule' => 'int',
'winnerCriteria' => 'string',
- 'winnerDelay' => 'int'
+ 'winnerDelay' => 'int',
+ 'ipWarmupEnable' => 'bool',
+ 'initialQuota' => 'int',
+ 'increaseRate' => 'int'
];
/**
@@ -114,7 +117,10 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
'subjectB' => null,
'splitRule' => 'int64',
'winnerCriteria' => null,
- 'winnerDelay' => 'int64'
+ 'winnerDelay' => 'int64',
+ 'ipWarmupEnable' => null,
+ 'initialQuota' => 'int64',
+ 'increaseRate' => 'int64'
];
/**
@@ -168,7 +174,10 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
'subjectB' => 'subjectB',
'splitRule' => 'splitRule',
'winnerCriteria' => 'winnerCriteria',
- 'winnerDelay' => 'winnerDelay'
+ 'winnerDelay' => 'winnerDelay',
+ 'ipWarmupEnable' => 'ipWarmupEnable',
+ 'initialQuota' => 'initialQuota',
+ 'increaseRate' => 'increaseRate'
];
/**
@@ -201,7 +210,10 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
'subjectB' => 'setSubjectB',
'splitRule' => 'setSplitRule',
'winnerCriteria' => 'setWinnerCriteria',
- 'winnerDelay' => 'setWinnerDelay'
+ 'winnerDelay' => 'setWinnerDelay',
+ 'ipWarmupEnable' => 'setIpWarmupEnable',
+ 'initialQuota' => 'setInitialQuota',
+ 'increaseRate' => 'setIncreaseRate'
];
/**
@@ -234,7 +246,10 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
'subjectB' => 'getSubjectB',
'splitRule' => 'getSplitRule',
'winnerCriteria' => 'getWinnerCriteria',
- 'winnerDelay' => 'getWinnerDelay'
+ 'winnerDelay' => 'getWinnerDelay',
+ 'ipWarmupEnable' => 'getIpWarmupEnable',
+ 'initialQuota' => 'getInitialQuota',
+ 'increaseRate' => 'getIncreaseRate'
];
/**
@@ -337,6 +352,9 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
$this->container['splitRule'] = isset($data['splitRule']) ? $data['splitRule'] : null;
$this->container['winnerCriteria'] = isset($data['winnerCriteria']) ? $data['winnerCriteria'] : null;
$this->container['winnerDelay'] = isset($data['winnerDelay']) ? $data['winnerDelay'] : null;
+ $this->container['ipWarmupEnable'] = isset($data['ipWarmupEnable']) ? $data['ipWarmupEnable'] : false;
+ $this->container['initialQuota'] = isset($data['initialQuota']) ? $data['initialQuota'] : null;
+ $this->container['increaseRate'] = isset($data['increaseRate']) ? $data['increaseRate'] : null;
}
/**
@@ -363,7 +381,7 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
}
$allowedValues = $this->getWinnerCriteriaAllowableValues();
- if (!in_array($this->container['winnerCriteria'], $allowedValues)) {
+ if (!is_null($this->container['winnerCriteria']) && !in_array($this->container['winnerCriteria'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'winnerCriteria', must be one of '%s'",
implode("', '", $allowedValues)
@@ -378,6 +396,14 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
$invalidProperties[] = "invalid value for 'winnerDelay', must be bigger than or equal to 1.";
}
+ if (!is_null($this->container['increaseRate']) && ($this->container['increaseRate'] > 100)) {
+ $invalidProperties[] = "invalid value for 'increaseRate', must be smaller than or equal to 100.";
+ }
+
+ if (!is_null($this->container['increaseRate']) && ($this->container['increaseRate'] < 0)) {
+ $invalidProperties[] = "invalid value for 'increaseRate', must be bigger than or equal to 0.";
+ }
+
return $invalidProperties;
}
@@ -389,30 +415,7 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['sender'] === null) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['splitRule'] > 50) {
- return false;
- }
- if ($this->container['splitRule'] < 1) {
- return false;
- }
- $allowedValues = $this->getWinnerCriteriaAllowableValues();
- if (!in_array($this->container['winnerCriteria'], $allowedValues)) {
- return false;
- }
- if ($this->container['winnerDelay'] > 168) {
- return false;
- }
- if ($this->container['winnerDelay'] < 1) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -549,7 +552,7 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
/**
* Sets templateId
*
- * @param int $templateId Mandatory if htmlContent and htmlUrl are empty. Id of the SMTP template with status 'active'. Used to copy only its content fetched from htmlContent/htmlUrl to an email campaign for RSS feature.
+ * @param int $templateId Mandatory if htmlContent and htmlUrl are empty. Id of the transactional email template with status 'active'. Used to copy only its content fetched from htmlContent/htmlUrl to an email campaign for RSS feature.
*
* @return $this
*/
@@ -645,7 +648,7 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
/**
* Sets toField
*
- * @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization
+ * @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization
*
* @return $this
*/
@@ -996,7 +999,7 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
public function setWinnerCriteria($winnerCriteria)
{
$allowedValues = $this->getWinnerCriteriaAllowableValues();
- if (!is_null($winnerCriteria) && !in_array($winnerCriteria, $allowedValues)) {
+ if (!is_null($winnerCriteria) && !in_array($winnerCriteria, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'winnerCriteria', must be one of '%s'",
@@ -1040,6 +1043,86 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess
return $this;
}
+
+ /**
+ * Gets ipWarmupEnable
+ *
+ * @return bool
+ */
+ public function getIpWarmupEnable()
+ {
+ return $this->container['ipWarmupEnable'];
+ }
+
+ /**
+ * Sets ipWarmupEnable
+ *
+ * @param bool $ipWarmupEnable Available for dedicated ip clients. Set this to true if you wish to warm up your ip.
+ *
+ * @return $this
+ */
+ public function setIpWarmupEnable($ipWarmupEnable)
+ {
+ $this->container['ipWarmupEnable'] = $ipWarmupEnable;
+
+ return $this;
+ }
+
+ /**
+ * Gets initialQuota
+ *
+ * @return int
+ */
+ public function getInitialQuota()
+ {
+ return $this->container['initialQuota'];
+ }
+
+ /**
+ * Sets initialQuota
+ *
+ * @param int $initialQuota Mandatory if ipWarmupEnable is set to true. Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000.
+ *
+ * @return $this
+ */
+ public function setInitialQuota($initialQuota)
+ {
+ $this->container['initialQuota'] = $initialQuota;
+
+ return $this;
+ }
+
+ /**
+ * Gets increaseRate
+ *
+ * @return int
+ */
+ public function getIncreaseRate()
+ {
+ return $this->container['increaseRate'];
+ }
+
+ /**
+ * Sets increaseRate
+ *
+ * @param int $increaseRate Mandatory if ipWarmupEnable is set to true. Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%.
+ *
+ * @return $this
+ */
+ public function setIncreaseRate($increaseRate)
+ {
+
+ if (!is_null($increaseRate) && ($increaseRate > 100)) {
+ throw new \InvalidArgumentException('invalid value for $increaseRate when calling CreateEmailCampaign., must be smaller than or equal to 100.');
+ }
+ if (!is_null($increaseRate) && ($increaseRate < 0)) {
+ throw new \InvalidArgumentException('invalid value for $increaseRate when calling CreateEmailCampaign., must be bigger than or equal to 0.');
+ }
+
+ $this->container['increaseRate'] = $increaseRate;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php
index eb83145..719be7a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -207,8 +207,7 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php
index 71fe1a3..6bb3c64 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
* CreateEmailCampaignSender Class Doc Comment
*
* @category Class
- * @description Sender details including email and name (optional). For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}`
+ * @description Sender details including id or email and name (optional). Only one of either Sender's email or Sender's ID shall be passed in one request at a time. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` , `{\"name\":\"xyz\", \"id\":123}`
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -59,7 +59,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerTypes = [
'name' => 'string',
- 'email' => 'string'
+ 'email' => 'string',
+ 'id' => 'int'
];
/**
@@ -69,7 +70,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerFormats = [
'name' => null,
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => 'int64'
];
/**
@@ -100,7 +102,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
protected static $attributeMap = [
'name' => 'name',
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => 'id'
];
/**
@@ -110,7 +113,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
protected static $setters = [
'name' => 'setName',
- 'email' => 'setEmail'
+ 'email' => 'setEmail',
+ 'id' => 'setId'
];
/**
@@ -120,7 +124,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
protected static $getters = [
'name' => 'getName',
- 'email' => 'getEmail'
+ 'email' => 'getEmail',
+ 'id' => 'getId'
];
/**
@@ -185,6 +190,7 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
{
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
}
/**
@@ -210,11 +216,7 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -265,6 +267,30 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess
return $this;
}
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id Select the sender for the campaign on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email).
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateList.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateList.php
index f3698d9..d6a812d 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateList.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateList.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class CreateList implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['folderId'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateModel.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateModel.php
index 15a1cf4..fe5ab29 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateModel.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateModel.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -203,11 +203,7 @@ class CreateModel implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php
index b384daa..1dff8d0 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -203,11 +203,7 @@ class CreateReseller implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['authKey'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSender.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSender.php
index 87cb01e..7eb24ee 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSender.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSender.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -218,14 +218,7 @@ class CreateSender implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['email'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php
index 82b885b..9df80df 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -226,20 +226,7 @@ class CreateSenderIps implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['ip'] === null) {
- return false;
- }
- if ($this->container['domain'] === null) {
- return false;
- }
- if ($this->container['weight'] > 100) {
- return false;
- }
- if ($this->container['weight'] < 1) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php
index 597078b..0f6be5f 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -215,11 +215,7 @@ class CreateSenderModel implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php
index 09502e6..a02aeb7 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -219,7 +219,7 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess
if ($this->container['sender'] === null) {
$invalidProperties[] = "'sender' can't be null";
}
- if ((strlen($this->container['sender']) > 11)) {
+ if ((mb_strlen($this->container['sender']) > 11)) {
$invalidProperties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11.";
}
@@ -237,20 +237,7 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['sender'] === null) {
- return false;
- }
- if (strlen($this->container['sender']) > 11) {
- return false;
- }
- if ($this->container['content'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -297,7 +284,7 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess
*/
public function setSender($sender)
{
- if ((strlen($sender) > 11)) {
+ if ((mb_strlen($sender) > 11)) {
throw new \InvalidArgumentException('invalid length for $sender when calling CreateSmsCampaign., must be smaller than or equal to 11.');
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php
index 90b817d..c34dc29 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -209,11 +209,7 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['listIds'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php
index 63a4d01..8ac8729 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -203,11 +203,7 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['messageId'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -224,7 +220,7 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess
/**
* Sets messageId
*
- * @param string $messageId Message ID of the SMTP Email sent
+ * @param string $messageId Message ID of the transactional email sent
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php
index bea4d64..26b8bbd 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -263,17 +263,7 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['sender'] === null) {
- return false;
- }
- if ($this->container['templateName'] === null) {
- return false;
- }
- if ($this->container['subject'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -458,7 +448,7 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess
/**
* Sets toField
*
- * @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization
+ * @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php
index f4f048f..e0bbe0e 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
* CreateSmtpTemplateSender Class Doc Comment
*
* @category Class
- * @description Sender details including email and name (optional). For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}`
+ * @description Sender details including id or email and name (optional). Only one of either Sender's email or Sender's ID shall be passed in one request at a time. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` , `{\"name\":\"xyz\", \"id\":123}`
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -59,7 +59,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerTypes = [
'name' => 'string',
- 'email' => 'string'
+ 'email' => 'string',
+ 'id' => 'int'
];
/**
@@ -69,7 +70,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerFormats = [
'name' => null,
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => 'int64'
];
/**
@@ -100,7 +102,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
protected static $attributeMap = [
'name' => 'name',
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => 'id'
];
/**
@@ -110,7 +113,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
protected static $setters = [
'name' => 'setName',
- 'email' => 'setEmail'
+ 'email' => 'setEmail',
+ 'id' => 'setId'
];
/**
@@ -120,7 +124,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
protected static $getters = [
'name' => 'getName',
- 'email' => 'getEmail'
+ 'email' => 'getEmail',
+ 'id' => 'getId'
];
/**
@@ -185,6 +190,7 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
{
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
}
/**
@@ -210,11 +216,7 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -265,6 +267,30 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess
return $this;
}
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email).
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php
index 9198065..fced0de 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php
index e51e62a..b1312a7 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php
index 21524b0..d76a8aa 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -186,6 +186,8 @@ class CreateWebhook implements ModelInterface, ArrayAccess
const EVENTS_UNIQUE_OPENED = 'uniqueOpened';
const EVENTS_UNSUBSCRIBED = 'unsubscribed';
const EVENTS_LIST_ADDITION = 'listAddition';
+ const EVENTS_CONTACT_UPDATED = 'contactUpdated';
+ const EVENTS_CONTACT_DELETED = 'contactDeleted';
const TYPE_TRANSACTIONAL = 'transactional';
const TYPE_MARKETING = 'marketing';
@@ -212,6 +214,8 @@ class CreateWebhook implements ModelInterface, ArrayAccess
self::EVENTS_UNIQUE_OPENED,
self::EVENTS_UNSUBSCRIBED,
self::EVENTS_LIST_ADDITION,
+ self::EVENTS_CONTACT_UPDATED,
+ self::EVENTS_CONTACT_DELETED,
];
}
@@ -266,7 +270,7 @@ class CreateWebhook implements ModelInterface, ArrayAccess
$invalidProperties[] = "'events' can't be null";
}
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
+ if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'type', must be one of '%s'",
implode("', '", $allowedValues)
@@ -284,18 +288,7 @@ class CreateWebhook implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['url'] === null) {
- return false;
- }
- if ($this->container['events'] === null) {
- return false;
- }
- $allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -400,7 +393,7 @@ class CreateWebhook implements ModelInterface, ArrayAccess
public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
- if (!is_null($type) && !in_array($type, $allowedValues)) {
+ if (!is_null($type) && !in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'type', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php
index dcf6ecf..d1ed5a4 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -203,11 +203,7 @@ class CreatedProcessId implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['processId'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php
index 5b87d5e..335e0da 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,8 +212,7 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php
index f092a17..a410b91 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -226,7 +226,7 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess
$invalidProperties[] = "'recipientsType' can't be null";
}
$allowedValues = $this->getRecipientsTypeAllowableValues();
- if (!in_array($this->container['recipientsType'], $allowedValues)) {
+ if (!is_null($this->container['recipientsType']) && !in_array($this->container['recipientsType'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'recipientsType', must be one of '%s'",
implode("', '", $allowedValues)
@@ -244,15 +244,7 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['recipientsType'] === null) {
- return false;
- }
- $allowedValues = $this->getRecipientsTypeAllowableValues();
- if (!in_array($this->container['recipientsType'], $allowedValues)) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -300,7 +292,7 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess
public function setRecipientsType($recipientsType)
{
$allowedValues = $this->getRecipientsTypeAllowableValues();
- if (!in_array($recipientsType, $allowedValues)) {
+ if (!in_array($recipientsType, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'recipientsType', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php
index 4c98fb5..d63e6f9 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -240,7 +240,7 @@ class ErrorModel implements ModelInterface, ArrayAccess
$invalidProperties[] = "'code' can't be null";
}
$allowedValues = $this->getCodeAllowableValues();
- if (!in_array($this->container['code'], $allowedValues)) {
+ if (!is_null($this->container['code']) && !in_array($this->container['code'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'code', must be one of '%s'",
implode("', '", $allowedValues)
@@ -261,18 +261,7 @@ class ErrorModel implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['code'] === null) {
- return false;
- }
- $allowedValues = $this->getCodeAllowableValues();
- if (!in_array($this->container['code'], $allowedValues)) {
- return false;
- }
- if ($this->container['message'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -296,7 +285,7 @@ class ErrorModel implements ModelInterface, ArrayAccess
public function setCode($code)
{
$allowedValues = $this->getCodeAllowableValues();
- if (!in_array($code, $allowedValues)) {
+ if (!in_array($code, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'code', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccount.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccount.php
index cb9dd7a..3e0fea9 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccount.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccount.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -263,29 +263,7 @@ class GetAccount implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- if ($this->container['firstName'] === null) {
- return false;
- }
- if ($this->container['lastName'] === null) {
- return false;
- }
- if ($this->container['companyName'] === null) {
- return false;
- }
- if ($this->container['address'] === null) {
- return false;
- }
- if ($this->container['plan'] === null) {
- return false;
- }
- if ($this->container['relay'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php
index a5721b2..b59305d 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -209,11 +209,7 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['enabled'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php
index df25b78..dd3b616 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -257,7 +257,7 @@ class GetAccountPlan implements ModelInterface, ArrayAccess
$invalidProperties[] = "'type' can't be null";
}
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
+ if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'type', must be one of '%s'",
implode("', '", $allowedValues)
@@ -268,7 +268,7 @@ class GetAccountPlan implements ModelInterface, ArrayAccess
$invalidProperties[] = "'creditsType' can't be null";
}
$allowedValues = $this->getCreditsTypeAllowableValues();
- if (!in_array($this->container['creditsType'], $allowedValues)) {
+ if (!is_null($this->container['creditsType']) && !in_array($this->container['creditsType'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'creditsType', must be one of '%s'",
implode("', '", $allowedValues)
@@ -289,25 +289,7 @@ class GetAccountPlan implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['type'] === null) {
- return false;
- }
- $allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
- return false;
- }
- if ($this->container['creditsType'] === null) {
- return false;
- }
- $allowedValues = $this->getCreditsTypeAllowableValues();
- if (!in_array($this->container['creditsType'], $allowedValues)) {
- return false;
- }
- if ($this->container['credits'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -331,7 +313,7 @@ class GetAccountPlan implements ModelInterface, ArrayAccess
public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($type, $allowedValues)) {
+ if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'type', must be one of '%s'",
@@ -364,7 +346,7 @@ class GetAccountPlan implements ModelInterface, ArrayAccess
public function setCreditsType($creditsType)
{
$allowedValues = $this->getCreditsTypeAllowableValues();
- if (!in_array($creditsType, $allowedValues)) {
+ if (!in_array($creditsType, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'creditsType', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php
index 61ae084..a49a56c 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
* GetAccountRelay Class Doc Comment
*
* @category Class
- * @description Information about your SMTP account
+ * @description Information about your transactional email account
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -213,14 +213,7 @@ class GetAccountRelay implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['enabled'] === null) {
- return false;
- }
- if ($this->container['data'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -237,7 +230,7 @@ class GetAccountRelay implements ModelInterface, ArrayAccess
/**
* Sets enabled
*
- * @param bool $enabled Status of your SMTP Account (true=Enabled, false=Disabled)
+ * @param bool $enabled Status of your transactional email Account (true=Enabled, false=Disabled)
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php
index 07beaf0..41cc0be 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
* GetAccountRelayData Class Doc Comment
*
* @category Class
- * @description Data regarding the SMTP account
+ * @description Data regarding the transactional email account
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -222,17 +222,7 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['userName'] === null) {
- return false;
- }
- if ($this->container['relay'] === null) {
- return false;
- }
- if ($this->container['port'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -249,7 +239,7 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess
/**
* Sets userName
*
- * @param string $userName Email to use as login on SMTP
+ * @param string $userName Email to use as login on transactional platform
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php
index 7bae834..11c8cc0 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -311,47 +311,7 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['range'] === null) {
- return false;
- }
- if ($this->container['requests'] === null) {
- return false;
- }
- if ($this->container['delivered'] === null) {
- return false;
- }
- if ($this->container['hardBounces'] === null) {
- return false;
- }
- if ($this->container['softBounces'] === null) {
- return false;
- }
- if ($this->container['clicks'] === null) {
- return false;
- }
- if ($this->container['uniqueClicks'] === null) {
- return false;
- }
- if ($this->container['opens'] === null) {
- return false;
- }
- if ($this->container['uniqueOpens'] === null) {
- return false;
- }
- if ($this->container['spamReports'] === null) {
- return false;
- }
- if ($this->container['blocked'] === null) {
- return false;
- }
- if ($this->container['invalid'] === null) {
- return false;
- }
- if ($this->container['unsubscribed'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php
index 1cfc845..ecb17e6 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -203,11 +203,7 @@ class GetAttributes implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['attributes'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php
index 7cdea1c..a87e68c 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -262,7 +262,7 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
$invalidProperties[] = "'category' can't be null";
}
$allowedValues = $this->getCategoryAllowableValues();
- if (!in_array($this->container['category'], $allowedValues)) {
+ if (!is_null($this->container['category']) && !in_array($this->container['category'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'category', must be one of '%s'",
implode("', '", $allowedValues)
@@ -270,7 +270,7 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
}
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
+ if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'type', must be one of '%s'",
implode("', '", $allowedValues)
@@ -288,22 +288,7 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['category'] === null) {
- return false;
- }
- $allowedValues = $this->getCategoryAllowableValues();
- if (!in_array($this->container['category'], $allowedValues)) {
- return false;
- }
- $allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -351,7 +336,7 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
public function setCategory($category)
{
$allowedValues = $this->getCategoryAllowableValues();
- if (!in_array($category, $allowedValues)) {
+ if (!in_array($category, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'category', must be one of '%s'",
@@ -384,7 +369,7 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
- if (!is_null($type) && !in_array($type, $allowedValues)) {
+ if (!is_null($type) && !in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'type', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php
index d6bcb40..eb54e45 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['value'] === null) {
- return false;
- }
- if ($this->container['label'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php
index 4fb098c..32c551c 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -309,7 +309,7 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess
$invalidProperties[] = "'type' can't be null";
}
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
+ if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'type', must be one of '%s'",
implode("', '", $allowedValues)
@@ -320,7 +320,7 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess
$invalidProperties[] = "'status' can't be null";
}
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
+ if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'status', must be one of '%s'",
implode("', '", $allowedValues)
@@ -338,28 +338,7 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['type'] === null) {
- return false;
- }
- $allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
- return false;
- }
- if ($this->container['status'] === null) {
- return false;
- }
- $allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -455,7 +434,7 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess
public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($type, $allowedValues)) {
+ if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'type', must be one of '%s'",
@@ -488,7 +467,7 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess
public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($status, $allowedValues)) {
+ if (!in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'status', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php
index 7197818..1149ddf 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['lists'] === null) {
- return false;
- }
- if ($this->container['exclusionLists'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php
index 91b23dc..e9cf5e0 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -296,38 +296,7 @@ class GetCampaignStats implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['uniqueClicks'] === null) {
- return false;
- }
- if ($this->container['clickers'] === null) {
- return false;
- }
- if ($this->container['complaints'] === null) {
- return false;
- }
- if ($this->container['delivered'] === null) {
- return false;
- }
- if ($this->container['sent'] === null) {
- return false;
- }
- if ($this->container['softBounces'] === null) {
- return false;
- }
- if ($this->container['hardBounces'] === null) {
- return false;
- }
- if ($this->container['uniqueViews'] === null) {
- return false;
- }
- if ($this->container['unsubscriptions'] === null) {
- return false;
- }
- if ($this->container['viewed'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php
new file mode 100644
index 0000000..ae2f356
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php
@@ -0,0 +1,304 @@
+ 'bool'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'childAccountCreated' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'childAccountCreated' => 'childAccountCreated'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'childAccountCreated' => 'setChildAccountCreated'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'childAccountCreated' => 'getChildAccountCreated'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['childAccountCreated'] = isset($data['childAccountCreated']) ? $data['childAccountCreated'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['childAccountCreated'] === null) {
+ $invalidProperties[] = "'childAccountCreated' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets childAccountCreated
+ *
+ * @return bool
+ */
+ public function getChildAccountCreated()
+ {
+ return $this->container['childAccountCreated'];
+ }
+
+ /**
+ * Sets childAccountCreated
+ *
+ * @param bool $childAccountCreated Status of child account creation whether it is successfully created (exists) or not.
+ *
+ * @return $this
+ */
+ public function setChildAccountCreated($childAccountCreated)
+ {
+ $this->container['childAccountCreated'] = $childAccountCreated;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php
index 5b7db91..76dfb88 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetChildDomain implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['domain'] === null) {
- return false;
- }
- if ($this->container['active'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php
index dc0a126..df8c544 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -199,11 +199,7 @@ class GetChildDomains implements ModelInterface, ArrayAccess
*/
public function valid()
{
- if (!parent::valid()) {
- return false;
- }
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
/**
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php
index 6991820..97296b0 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -263,23 +263,7 @@ class GetChildInfo implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- if ($this->container['firstName'] === null) {
- return false;
- }
- if ($this->container['lastName'] === null) {
- return false;
- }
- if ($this->container['companyName'] === null) {
- return false;
- }
- if ($this->container['password'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php
index cf42dde..12a4d99 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -210,11 +210,7 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['v2'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php
index f4d2369..d9ae913 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['key'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php
index b9d7c9d..5ddf6a2 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['key'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php
index 3c043c0..1af7cbf 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -207,8 +207,7 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php
index 0b5dafe..c5e8037 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -213,8 +213,7 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php
index 7a2fed2..95e5f0a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -57,7 +57,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerTypes = [
- 'children' => 'object[]'
+ 'children' => 'object[]',
+ 'count' => 'int'
];
/**
@@ -66,7 +67,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $swaggerFormats = [
- 'children' => null
+ 'children' => null,
+ 'count' => 'int64'
];
/**
@@ -96,7 +98,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $attributeMap = [
- 'children' => 'children'
+ 'children' => 'children',
+ 'count' => 'count'
];
/**
@@ -105,7 +108,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $setters = [
- 'children' => 'setChildren'
+ 'children' => 'setChildren',
+ 'count' => 'setCount'
];
/**
@@ -114,7 +118,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess
* @var string[]
*/
protected static $getters = [
- 'children' => 'getChildren'
+ 'children' => 'getChildren',
+ 'count' => 'getCount'
];
/**
@@ -178,6 +183,7 @@ class GetChildrenList implements ModelInterface, ArrayAccess
public function __construct(array $data = null)
{
$this->container['children'] = isset($data['children']) ? $data['children'] : null;
+ $this->container['count'] = isset($data['count']) ? $data['count'] : null;
}
/**
@@ -189,6 +195,9 @@ class GetChildrenList implements ModelInterface, ArrayAccess
{
$invalidProperties = [];
+ if ($this->container['count'] === null) {
+ $invalidProperties[] = "'count' can't be null";
+ }
return $invalidProperties;
}
@@ -200,8 +209,7 @@ class GetChildrenList implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -228,6 +236,30 @@ class GetChildrenList implements ModelInterface, ArrayAccess
return $this;
}
+
+ /**
+ * Gets count
+ *
+ * @return int
+ */
+ public function getCount()
+ {
+ return $this->container['count'];
+ }
+
+ /**
+ * Sets count
+ *
+ * @param int $count Number of child accounts
+ *
+ * @return $this
+ */
+ public function setCount($count)
+ {
+ $this->container['count'] = $count;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetClient.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetClient.php
index a908c1a..e615307 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetClient.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetClient.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -230,20 +230,7 @@ class GetClient implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- if ($this->container['firstName'] === null) {
- return false;
- }
- if ($this->container['lastName'] === null) {
- return false;
- }
- if ($this->container['companyName'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php
index e917e7e..df418c4 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -243,8 +243,7 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php
index 296e2a9..81fed70 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['campaignId'] === null) {
- return false;
- }
- if ($this->container['links'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php
index 53cd654..e6ad277 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -230,20 +230,7 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['campaignId'] === null) {
- return false;
- }
- if ($this->container['count'] === null) {
- return false;
- }
- if ($this->container['eventTime'] === null) {
- return false;
- }
- if ($this->container['ip'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php
index 9d8d736..3bdf637 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -221,17 +221,7 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA
*/
public function valid()
{
-
- if ($this->container['orderDate'] === null) {
- return false;
- }
- if ($this->container['orderPrice'] === null) {
- return false;
- }
- if ($this->container['orderId'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php
index 87aef87..d4750b0 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc
*/
public function valid()
{
-
- if ($this->container['userUnsubscription'] === null) {
- return false;
- }
- if ($this->container['adminUnsubscription'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php
index 318fe79..3831b79 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -272,32 +272,7 @@ class GetContactDetails implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['emailBlacklisted'] === null) {
- return false;
- }
- if ($this->container['smsBlacklisted'] === null) {
- return false;
- }
- if ($this->container['createdAt'] === null) {
- return false;
- }
- if ($this->container['modifiedAt'] === null) {
- return false;
- }
- if ($this->container['listIds'] === null) {
- return false;
- }
- if ($this->container['attributes'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContacts.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContacts.php
index 3c6c4e9..7e83dca 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContacts.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContacts.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetContacts implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['contacts'] === null) {
- return false;
- }
- if ($this->container['count'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php
new file mode 100644
index 0000000..f81e45c
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php
@@ -0,0 +1,403 @@
+ 'int',
+ 'uniqueClicks' => 'int',
+ 'viewed' => 'int',
+ 'uniqueViews' => 'int'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'clickers' => 'int64',
+ 'uniqueClicks' => 'int64',
+ 'viewed' => 'int64',
+ 'uniqueViews' => 'int64'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'clickers' => 'clickers',
+ 'uniqueClicks' => 'uniqueClicks',
+ 'viewed' => 'viewed',
+ 'uniqueViews' => 'uniqueViews'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'clickers' => 'setClickers',
+ 'uniqueClicks' => 'setUniqueClicks',
+ 'viewed' => 'setViewed',
+ 'uniqueViews' => 'setUniqueViews'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'clickers' => 'getClickers',
+ 'uniqueClicks' => 'getUniqueClicks',
+ 'viewed' => 'getViewed',
+ 'uniqueViews' => 'getUniqueViews'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['clickers'] = isset($data['clickers']) ? $data['clickers'] : null;
+ $this->container['uniqueClicks'] = isset($data['uniqueClicks']) ? $data['uniqueClicks'] : null;
+ $this->container['viewed'] = isset($data['viewed']) ? $data['viewed'] : null;
+ $this->container['uniqueViews'] = isset($data['uniqueViews']) ? $data['uniqueViews'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['clickers'] === null) {
+ $invalidProperties[] = "'clickers' can't be null";
+ }
+ if ($this->container['uniqueClicks'] === null) {
+ $invalidProperties[] = "'uniqueClicks' can't be null";
+ }
+ if ($this->container['viewed'] === null) {
+ $invalidProperties[] = "'viewed' can't be null";
+ }
+ if ($this->container['uniqueViews'] === null) {
+ $invalidProperties[] = "'uniqueViews' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets clickers
+ *
+ * @return int
+ */
+ public function getClickers()
+ {
+ return $this->container['clickers'];
+ }
+
+ /**
+ * Sets clickers
+ *
+ * @param int $clickers Number of total clicks for the campaign using the particular browser
+ *
+ * @return $this
+ */
+ public function setClickers($clickers)
+ {
+ $this->container['clickers'] = $clickers;
+
+ return $this;
+ }
+
+ /**
+ * Gets uniqueClicks
+ *
+ * @return int
+ */
+ public function getUniqueClicks()
+ {
+ return $this->container['uniqueClicks'];
+ }
+
+ /**
+ * Sets uniqueClicks
+ *
+ * @param int $uniqueClicks Number of unique clicks for the campaign using the particular browser
+ *
+ * @return $this
+ */
+ public function setUniqueClicks($uniqueClicks)
+ {
+ $this->container['uniqueClicks'] = $uniqueClicks;
+
+ return $this;
+ }
+
+ /**
+ * Gets viewed
+ *
+ * @return int
+ */
+ public function getViewed()
+ {
+ return $this->container['viewed'];
+ }
+
+ /**
+ * Sets viewed
+ *
+ * @param int $viewed Number of openings for the campaign using the particular browser
+ *
+ * @return $this
+ */
+ public function setViewed($viewed)
+ {
+ $this->container['viewed'] = $viewed;
+
+ return $this;
+ }
+
+ /**
+ * Gets uniqueViews
+ *
+ * @return int
+ */
+ public function getUniqueViews()
+ {
+ return $this->container['uniqueViews'];
+ }
+
+ /**
+ * Sets uniqueViews
+ *
+ * @param int $uniqueViews Number of unique openings for the campaign using the particular browser
+ *
+ * @return $this
+ */
+ public function setUniqueViews($uniqueViews)
+ {
+ $this->container['uniqueViews'] = $uniqueViews;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php
index 8d2434f..60a09e1 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -411,7 +411,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
$invalidProperties[] = "'type' can't be null";
}
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
+ if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'type', must be one of '%s'",
implode("', '", $allowedValues)
@@ -422,7 +422,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
$invalidProperties[] = "'status' can't be null";
}
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
+ if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'status', must be one of '%s'",
implode("', '", $allowedValues)
@@ -476,64 +476,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['type'] === null) {
- return false;
- }
- $allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
- return false;
- }
- if ($this->container['status'] === null) {
- return false;
- }
- $allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
- return false;
- }
- if ($this->container['testSent'] === null) {
- return false;
- }
- if ($this->container['header'] === null) {
- return false;
- }
- if ($this->container['footer'] === null) {
- return false;
- }
- if ($this->container['sender'] === null) {
- return false;
- }
- if ($this->container['replyTo'] === null) {
- return false;
- }
- if ($this->container['toField'] === null) {
- return false;
- }
- if ($this->container['htmlContent'] === null) {
- return false;
- }
- if ($this->container['tag'] === null) {
- return false;
- }
- if ($this->container['createdAt'] === null) {
- return false;
- }
- if ($this->container['modifiedAt'] === null) {
- return false;
- }
- if ($this->container['recipients'] === null) {
- return false;
- }
- if ($this->container['statistics'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -629,7 +572,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($type, $allowedValues)) {
+ if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'type', must be one of '%s'",
@@ -662,7 +605,7 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess
public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($status, $allowedValues)) {
+ if (!in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'status', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php
index ba26222..794b5da 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -209,11 +209,7 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['count'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php
index 4c2c169..bd1789a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php
index bebc48a..940e375 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -291,7 +291,7 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess
$invalidProperties[] = "'event' can't be null";
}
$allowedValues = $this->getEventAllowableValues();
- if (!in_array($this->container['event'], $allowedValues)) {
+ if (!is_null($this->container['event']) && !in_array($this->container['event'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'event', must be one of '%s'",
implode("', '", $allowedValues)
@@ -309,24 +309,7 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- if ($this->container['date'] === null) {
- return false;
- }
- if ($this->container['messageId'] === null) {
- return false;
- }
- if ($this->container['event'] === null) {
- return false;
- }
- $allowedValues = $this->getEventAllowableValues();
- if (!in_array($this->container['event'], $allowedValues)) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -446,7 +429,7 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess
public function setEvent($event)
{
$allowedValues = $this->getEventAllowableValues();
- if (!in_array($event, $allowedValues)) {
+ if (!in_array($event, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'event', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php
index 54ccb0c..f414577 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -399,7 +399,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
$invalidProperties[] = "'type' can't be null";
}
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
+ if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'type', must be one of '%s'",
implode("', '", $allowedValues)
@@ -410,7 +410,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
$invalidProperties[] = "'status' can't be null";
}
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
+ if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'status', must be one of '%s'",
implode("', '", $allowedValues)
@@ -458,58 +458,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['type'] === null) {
- return false;
- }
- $allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
- return false;
- }
- if ($this->container['status'] === null) {
- return false;
- }
- $allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
- return false;
- }
- if ($this->container['testSent'] === null) {
- return false;
- }
- if ($this->container['header'] === null) {
- return false;
- }
- if ($this->container['footer'] === null) {
- return false;
- }
- if ($this->container['sender'] === null) {
- return false;
- }
- if ($this->container['replyTo'] === null) {
- return false;
- }
- if ($this->container['toField'] === null) {
- return false;
- }
- if ($this->container['htmlContent'] === null) {
- return false;
- }
- if ($this->container['tag'] === null) {
- return false;
- }
- if ($this->container['createdAt'] === null) {
- return false;
- }
- if ($this->container['modifiedAt'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -605,7 +554,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($type, $allowedValues)) {
+ if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'type', must be one of '%s'",
@@ -638,7 +587,7 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess
public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($status, $allowedValues)) {
+ if (!in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'status', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php
index e74743c..0bf6346 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -58,7 +58,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerTypes = [
'name' => 'string',
- 'email' => 'string'
+ 'email' => 'string',
+ 'id' => 'string'
];
/**
@@ -68,7 +69,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerFormats = [
'name' => null,
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => null
];
/**
@@ -99,7 +101,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
*/
protected static $attributeMap = [
'name' => 'name',
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => 'id'
];
/**
@@ -109,7 +112,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
*/
protected static $setters = [
'name' => 'setName',
- 'email' => 'setEmail'
+ 'email' => 'setEmail',
+ 'id' => 'setId'
];
/**
@@ -119,7 +123,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
*/
protected static $getters = [
'name' => 'getName',
- 'email' => 'getEmail'
+ 'email' => 'getEmail',
+ 'id' => 'getId'
];
/**
@@ -184,6 +189,7 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
{
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
}
/**
@@ -206,8 +212,7 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -258,6 +263,30 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess
return $this;
}
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Sender id of the campaign
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php
index 8d1d649..2b39e2a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -62,7 +62,9 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
'mirrorClick' => 'int',
'remaining' => 'int',
'linksStats' => 'object',
- 'statsByDomain' => '\SendinBlue\Client\Model\GetStatsByDomain'
+ 'statsByDomain' => '\SendinBlue\Client\Model\GetStatsByDomain',
+ 'statsByDevice' => '\SendinBlue\Client\Model\GetStatsByDevice',
+ 'statsByBrowser' => '\SendinBlue\Client\Model\GetStatsByBrowser'
];
/**
@@ -76,7 +78,9 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
'mirrorClick' => 'int64',
'remaining' => 'int64',
'linksStats' => null,
- 'statsByDomain' => null
+ 'statsByDomain' => null,
+ 'statsByDevice' => null,
+ 'statsByBrowser' => null
];
/**
@@ -111,7 +115,9 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
'mirrorClick' => 'mirrorClick',
'remaining' => 'remaining',
'linksStats' => 'linksStats',
- 'statsByDomain' => 'statsByDomain'
+ 'statsByDomain' => 'statsByDomain',
+ 'statsByDevice' => 'statsByDevice',
+ 'statsByBrowser' => 'statsByBrowser'
];
/**
@@ -125,7 +131,9 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
'mirrorClick' => 'setMirrorClick',
'remaining' => 'setRemaining',
'linksStats' => 'setLinksStats',
- 'statsByDomain' => 'setStatsByDomain'
+ 'statsByDomain' => 'setStatsByDomain',
+ 'statsByDevice' => 'setStatsByDevice',
+ 'statsByBrowser' => 'setStatsByBrowser'
];
/**
@@ -139,7 +147,9 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
'mirrorClick' => 'getMirrorClick',
'remaining' => 'getRemaining',
'linksStats' => 'getLinksStats',
- 'statsByDomain' => 'getStatsByDomain'
+ 'statsByDomain' => 'getStatsByDomain',
+ 'statsByDevice' => 'getStatsByDevice',
+ 'statsByBrowser' => 'getStatsByBrowser'
];
/**
@@ -208,6 +218,8 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
$this->container['remaining'] = isset($data['remaining']) ? $data['remaining'] : null;
$this->container['linksStats'] = isset($data['linksStats']) ? $data['linksStats'] : null;
$this->container['statsByDomain'] = isset($data['statsByDomain']) ? $data['statsByDomain'] : null;
+ $this->container['statsByDevice'] = isset($data['statsByDevice']) ? $data['statsByDevice'] : null;
+ $this->container['statsByBrowser'] = isset($data['statsByBrowser']) ? $data['statsByBrowser'] : null;
}
/**
@@ -237,6 +249,12 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
if ($this->container['statsByDomain'] === null) {
$invalidProperties[] = "'statsByDomain' can't be null";
}
+ if ($this->container['statsByDevice'] === null) {
+ $invalidProperties[] = "'statsByDevice' can't be null";
+ }
+ if ($this->container['statsByBrowser'] === null) {
+ $invalidProperties[] = "'statsByBrowser' can't be null";
+ }
return $invalidProperties;
}
@@ -248,26 +266,7 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['globalStats'] === null) {
- return false;
- }
- if ($this->container['campaignStats'] === null) {
- return false;
- }
- if ($this->container['mirrorClick'] === null) {
- return false;
- }
- if ($this->container['remaining'] === null) {
- return false;
- }
- if ($this->container['linksStats'] === null) {
- return false;
- }
- if ($this->container['statsByDomain'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -414,6 +413,54 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess
return $this;
}
+
+ /**
+ * Gets statsByDevice
+ *
+ * @return \SendinBlue\Client\Model\GetStatsByDevice
+ */
+ public function getStatsByDevice()
+ {
+ return $this->container['statsByDevice'];
+ }
+
+ /**
+ * Sets statsByDevice
+ *
+ * @param \SendinBlue\Client\Model\GetStatsByDevice $statsByDevice Statistics about the campaign on the basis of various devices
+ *
+ * @return $this
+ */
+ public function setStatsByDevice($statsByDevice)
+ {
+ $this->container['statsByDevice'] = $statsByDevice;
+
+ return $this;
+ }
+
+ /**
+ * Gets statsByBrowser
+ *
+ * @return \SendinBlue\Client\Model\GetStatsByBrowser
+ */
+ public function getStatsByBrowser()
+ {
+ return $this->container['statsByBrowser'];
+ }
+
+ /**
+ * Sets statsByBrowser
+ *
+ * @param \SendinBlue\Client\Model\GetStatsByBrowser $statsByBrowser Statistics about the campaign on the basis of various browsers
+ *
+ * @return $this
+ */
+ public function setStatsByBrowser($statsByBrowser)
+ {
+ $this->container['statsByBrowser'] = $statsByBrowser;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php
index bb41125..13da49f 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -239,23 +239,7 @@ class GetExtendedClient implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- if ($this->container['firstName'] === null) {
- return false;
- }
- if ($this->container['lastName'] === null) {
- return false;
- }
- if ($this->container['companyName'] === null) {
- return false;
- }
- if ($this->container['address'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php
index be07159..a122e05 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -231,20 +231,7 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['street'] === null) {
- return false;
- }
- if ($this->container['city'] === null) {
- return false;
- }
- if ($this->container['zipCode'] === null) {
- return false;
- }
- if ($this->container['country'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php
index 797e2e6..3bd46da 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -281,35 +281,7 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['emailBlacklisted'] === null) {
- return false;
- }
- if ($this->container['smsBlacklisted'] === null) {
- return false;
- }
- if ($this->container['createdAt'] === null) {
- return false;
- }
- if ($this->container['modifiedAt'] === null) {
- return false;
- }
- if ($this->container['listIds'] === null) {
- return false;
- }
- if ($this->container['attributes'] === null) {
- return false;
- }
- if ($this->container['statistics'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php
index 19abe2c..a009465 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -243,8 +243,7 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php
index e328d3f..1dcea6a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra
*/
public function valid()
{
-
- if ($this->container['campaignId'] === null) {
- return false;
- }
- if ($this->container['links'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php
index 32fc9e2..6d72201 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -230,20 +230,7 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA
*/
public function valid()
{
-
- if ($this->container['count'] === null) {
- return false;
- }
- if ($this->container['eventTime'] === null) {
- return false;
- }
- if ($this->container['ip'] === null) {
- return false;
- }
- if ($this->container['url'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php
index 608fd98..f52cc77 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface,
*/
public function valid()
{
-
- if ($this->container['campaignId'] === null) {
- return false;
- }
- if ($this->container['eventTime'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php
index eedb44d..564e448 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -230,20 +230,7 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array
*/
public function valid()
{
-
- if ($this->container['campaignId'] === null) {
- return false;
- }
- if ($this->container['count'] === null) {
- return false;
- }
- if ($this->container['eventTime'] === null) {
- return false;
- }
- if ($this->container['ip'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php
index 7b4d171..9d5ca26 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -213,14 +213,7 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa
*/
public function valid()
{
-
- if ($this->container['userUnsubscription'] === null) {
- return false;
- }
- if ($this->container['adminUnsubscription'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php
index 604fdff..a797433 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl
*/
public function valid()
{
-
- if ($this->container['eventTime'] === null) {
- return false;
- }
- if ($this->container['ip'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php
index 5bb6af1..0b55554 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -221,17 +221,7 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple
*/
public function valid()
{
-
- if ($this->container['campaignId'] === null) {
- return false;
- }
- if ($this->container['eventTime'] === null) {
- return false;
- }
- if ($this->container['ip'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php
index 75861cb..8f712bb 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -260,26 +260,7 @@ class GetExtendedList implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['totalBlacklisted'] === null) {
- return false;
- }
- if ($this->container['totalSubscribers'] === null) {
- return false;
- }
- if ($this->container['folderId'] === null) {
- return false;
- }
- if ($this->container['createdAt'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php
index 90143a2..1087460 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['campaignId'] === null) {
- return false;
- }
- if ($this->container['stats'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolder.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolder.php
index bf3d2a8..b568300 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolder.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolder.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -239,23 +239,7 @@ class GetFolder implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['totalBlacklisted'] === null) {
- return false;
- }
- if ($this->container['totalSubscribers'] === null) {
- return false;
- }
- if ($this->container['uniqueSubscribers'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php
index b8b6da2..084549a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetFolderLists implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['lists'] === null) {
- return false;
- }
- if ($this->container['count'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolders.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolders.php
index 095d19a..47300d6 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolders.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolders.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -206,8 +206,7 @@ class GetFolders implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIp.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIp.php
index 027a39e..78dd084 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIp.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIp.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -230,20 +230,7 @@ class GetIp implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['ip'] === null) {
- return false;
- }
- if ($this->container['active'] === null) {
- return false;
- }
- if ($this->container['domain'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php
index 3c8e73c..24be22f 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -230,20 +230,7 @@ class GetIpFromSender implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['ip'] === null) {
- return false;
- }
- if ($this->container['domain'] === null) {
- return false;
- }
- if ($this->container['weight'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIps.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIps.php
index eb660d2..7cd281b 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIps.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIps.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -203,11 +203,7 @@ class GetIps implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['ips'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php
index c3026ec..e3f052a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -203,11 +203,7 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['ips'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetList.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetList.php
index 74c5183..e4983a2 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetList.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetList.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -230,20 +230,7 @@ class GetList implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['totalBlacklisted'] === null) {
- return false;
- }
- if ($this->container['totalSubscribers'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetLists.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetLists.php
index b004193..f83b2bf 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetLists.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetLists.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class GetLists implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['lists'] === null) {
- return false;
- }
- if ($this->container['count'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcess.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcess.php
index 4e90a36..765ff37 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcess.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcess.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -231,7 +231,7 @@ class GetProcess implements ModelInterface, ArrayAccess
$invalidProperties[] = "'status' can't be null";
}
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
+ if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'status', must be one of '%s'",
implode("', '", $allowedValues)
@@ -252,21 +252,7 @@ class GetProcess implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['status'] === null) {
- return false;
- }
- $allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -314,7 +300,7 @@ class GetProcess implements ModelInterface, ArrayAccess
public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($status, $allowedValues)) {
+ if (!in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'status', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php
index 7f53639..e19cce9 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -209,11 +209,7 @@ class GetProcesses implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['count'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReports.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReports.php
index 05a6eba..5b8daa5 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReports.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReports.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class GetReports implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php
index 4663499..a7a2f94 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -311,47 +311,7 @@ class GetReportsReports implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['date'] === null) {
- return false;
- }
- if ($this->container['requests'] === null) {
- return false;
- }
- if ($this->container['delivered'] === null) {
- return false;
- }
- if ($this->container['hardBounces'] === null) {
- return false;
- }
- if ($this->container['softBounces'] === null) {
- return false;
- }
- if ($this->container['clicks'] === null) {
- return false;
- }
- if ($this->container['uniqueClicks'] === null) {
- return false;
- }
- if ($this->container['opens'] === null) {
- return false;
- }
- if ($this->container['uniqueOpens'] === null) {
- return false;
- }
- if ($this->container['spamReports'] === null) {
- return false;
- }
- if ($this->container['blocked'] === null) {
- return false;
- }
- if ($this->container['invalid'] === null) {
- return false;
- }
- if ($this->container['unsubscribed'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php
index 7efcf13..f5fb8e3 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class GetSendersList implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php
index 89bdbd6..60a9031 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -221,17 +221,7 @@ class GetSendersListIps implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['ip'] === null) {
- return false;
- }
- if ($this->container['domain'] === null) {
- return false;
- }
- if ($this->container['weight'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php
index 8fcd3a1..b6d8b86 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -236,20 +236,7 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['email'] === null) {
- return false;
- }
- if ($this->container['active'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php
new file mode 100644
index 0000000..5ac586e
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php
@@ -0,0 +1,304 @@
+ 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'sharedUrl' => 'url'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'sharedUrl' => 'sharedUrl'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'sharedUrl' => 'setSharedUrl'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'sharedUrl' => 'getSharedUrl'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['sharedUrl'] = isset($data['sharedUrl']) ? $data['sharedUrl'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['sharedUrl'] === null) {
+ $invalidProperties[] = "'sharedUrl' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets sharedUrl
+ *
+ * @return string
+ */
+ public function getSharedUrl()
+ {
+ return $this->container['sharedUrl'];
+ }
+
+ /**
+ * Sets sharedUrl
+ *
+ * @param string $sharedUrl A unique URL for the email campaign or transactional template. This URL can be shared with other Sendinblue users.
+ *
+ * @return $this
+ */
+ public function setSharedUrl($sharedUrl)
+ {
+ $this->container['sharedUrl'] = $sharedUrl;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php
index 95c4001..3f19d1a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -276,7 +276,7 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess
$invalidProperties[] = "'status' can't be null";
}
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
+ if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'status', must be one of '%s'",
implode("', '", $allowedValues)
@@ -315,42 +315,7 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['status'] === null) {
- return false;
- }
- $allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
- return false;
- }
- if ($this->container['content'] === null) {
- return false;
- }
- if ($this->container['scheduledAt'] === null) {
- return false;
- }
- if ($this->container['sender'] === null) {
- return false;
- }
- if ($this->container['createdAt'] === null) {
- return false;
- }
- if ($this->container['modifiedAt'] === null) {
- return false;
- }
- if ($this->container['recipients'] === null) {
- return false;
- }
- if ($this->container['statistics'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -422,7 +387,7 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess
public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($status, $allowedValues)) {
+ if (!in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'status', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php
index 308bd53..6976663 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -264,7 +264,7 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess
$invalidProperties[] = "'status' can't be null";
}
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
+ if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'status', must be one of '%s'",
implode("', '", $allowedValues)
@@ -297,36 +297,7 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['status'] === null) {
- return false;
- }
- $allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
- return false;
- }
- if ($this->container['content'] === null) {
- return false;
- }
- if ($this->container['scheduledAt'] === null) {
- return false;
- }
- if ($this->container['sender'] === null) {
- return false;
- }
- if ($this->container['createdAt'] === null) {
- return false;
- }
- if ($this->container['modifiedAt'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -398,7 +369,7 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess
public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($status, $allowedValues)) {
+ if (!in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'status', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php
index 3b8f81e..c9688f1 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -257,29 +257,7 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['delivered'] === null) {
- return false;
- }
- if ($this->container['sent'] === null) {
- return false;
- }
- if ($this->container['processing'] === null) {
- return false;
- }
- if ($this->container['softBounces'] === null) {
- return false;
- }
- if ($this->container['hardBounces'] === null) {
- return false;
- }
- if ($this->container['unsubscriptions'] === null) {
- return false;
- }
- if ($this->container['answered'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php
index 8e1fb95..b2c4ec1 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -209,11 +209,7 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['count'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php
index 4fc3fe4..cd0d115 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php
index d939e56..35627f1 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -267,7 +267,7 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess
$invalidProperties[] = "'event' can't be null";
}
$allowedValues = $this->getEventAllowableValues();
- if (!in_array($this->container['event'], $allowedValues)) {
+ if (!is_null($this->container['event']) && !in_array($this->container['event'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'event', must be one of '%s'",
implode("', '", $allowedValues)
@@ -285,24 +285,7 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['phoneNumber'] === null) {
- return false;
- }
- if ($this->container['date'] === null) {
- return false;
- }
- if ($this->container['messageId'] === null) {
- return false;
- }
- if ($this->container['event'] === null) {
- return false;
- }
- $allowedValues = $this->getEventAllowableValues();
- if (!in_array($this->container['event'], $allowedValues)) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -398,7 +381,7 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess
public function setEvent($event)
{
$allowedValues = $this->getEventAllowableValues();
- if (!in_array($event, $allowedValues)) {
+ if (!in_array($event, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'event', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php
index fc119b0..a38f11c 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -302,44 +302,7 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- if ($this->container['subject'] === null) {
- return false;
- }
- if ($this->container['isActive'] === null) {
- return false;
- }
- if ($this->container['testSent'] === null) {
- return false;
- }
- if ($this->container['sender'] === null) {
- return false;
- }
- if ($this->container['replyTo'] === null) {
- return false;
- }
- if ($this->container['toField'] === null) {
- return false;
- }
- if ($this->container['tag'] === null) {
- return false;
- }
- if ($this->container['htmlContent'] === null) {
- return false;
- }
- if ($this->container['createdAt'] === null) {
- return false;
- }
- if ($this->container['modifiedAt'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php
index 7ae6e3f..ca75fcf 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -58,7 +58,8 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerTypes = [
'name' => 'string',
- 'email' => 'string'
+ 'email' => 'string',
+ 'id' => 'string'
];
/**
@@ -68,7 +69,8 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerFormats = [
'name' => null,
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => null
];
/**
@@ -99,7 +101,8 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess
*/
protected static $attributeMap = [
'name' => 'name',
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => 'id'
];
/**
@@ -109,7 +112,8 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess
*/
protected static $setters = [
'name' => 'setName',
- 'email' => 'setEmail'
+ 'email' => 'setEmail',
+ 'id' => 'setId'
];
/**
@@ -119,7 +123,8 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess
*/
protected static $getters = [
'name' => 'getName',
- 'email' => 'getEmail'
+ 'email' => 'getEmail',
+ 'id' => 'getId'
];
/**
@@ -184,6 +189,7 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess
{
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
}
/**
@@ -206,8 +212,7 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -258,6 +263,30 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess
return $this;
}
+
+ /**
+ * Gets id
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param string $id Sender id of the template
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php
index 98d2324..76805c8 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -206,8 +206,7 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -224,7 +223,7 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess
/**
* Sets count
*
- * @param int $count Count of smtp templates
+ * @param int $count Count of transactional email templates
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php
index fccdb85..cd15948 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -203,11 +203,7 @@ class GetSsoToken implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['token'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php
new file mode 100644
index 0000000..1fb4d1c
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php
@@ -0,0 +1,276 @@
+listInvalidProperties()) === 0;
+ }
+
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php
new file mode 100644
index 0000000..da291a5
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php
@@ -0,0 +1,391 @@
+ 'map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]',
+ 'mobile' => 'map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]',
+ 'tablet' => 'map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]',
+ 'unknown' => 'map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'desktop' => null,
+ 'mobile' => null,
+ 'tablet' => null,
+ 'unknown' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'desktop' => 'desktop',
+ 'mobile' => 'mobile',
+ 'tablet' => 'tablet',
+ 'unknown' => 'unknown'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'desktop' => 'setDesktop',
+ 'mobile' => 'setMobile',
+ 'tablet' => 'setTablet',
+ 'unknown' => 'setUnknown'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'desktop' => 'getDesktop',
+ 'mobile' => 'getMobile',
+ 'tablet' => 'getTablet',
+ 'unknown' => 'getUnknown'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['desktop'] = isset($data['desktop']) ? $data['desktop'] : null;
+ $this->container['mobile'] = isset($data['mobile']) ? $data['mobile'] : null;
+ $this->container['tablet'] = isset($data['tablet']) ? $data['tablet'] : null;
+ $this->container['unknown'] = isset($data['unknown']) ? $data['unknown'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets desktop
+ *
+ * @return map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]
+ */
+ public function getDesktop()
+ {
+ return $this->container['desktop'];
+ }
+
+ /**
+ * Sets desktop
+ *
+ * @param map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats] $desktop Statistics of the campaign on the basis of desktop devices
+ *
+ * @return $this
+ */
+ public function setDesktop($desktop)
+ {
+ $this->container['desktop'] = $desktop;
+
+ return $this;
+ }
+
+ /**
+ * Gets mobile
+ *
+ * @return map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]
+ */
+ public function getMobile()
+ {
+ return $this->container['mobile'];
+ }
+
+ /**
+ * Sets mobile
+ *
+ * @param map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats] $mobile Statistics of the campaign on the basis of mobile devices
+ *
+ * @return $this
+ */
+ public function setMobile($mobile)
+ {
+ $this->container['mobile'] = $mobile;
+
+ return $this;
+ }
+
+ /**
+ * Gets tablet
+ *
+ * @return map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]
+ */
+ public function getTablet()
+ {
+ return $this->container['tablet'];
+ }
+
+ /**
+ * Sets tablet
+ *
+ * @param map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats] $tablet Statistics of the campaign on the basis of tablet devices
+ *
+ * @return $this
+ */
+ public function setTablet($tablet)
+ {
+ $this->container['tablet'] = $tablet;
+
+ return $this;
+ }
+
+ /**
+ * Gets unknown
+ *
+ * @return map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]
+ */
+ public function getUnknown()
+ {
+ return $this->container['unknown'];
+ }
+
+ /**
+ * Sets unknown
+ *
+ * @param map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats] $unknown Statistics of the campaign on the basis of unknown devices
+ *
+ * @return $this
+ */
+ public function setUnknown($unknown)
+ {
+ $this->container['unknown'] = $unknown;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php
index cedf4f0..15520a2 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -199,11 +199,7 @@ class GetStatsByDomain implements ModelInterface, ArrayAccess
*/
public function valid()
{
- if (!parent::valid()) {
- return false;
- }
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
/**
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php
index 57bb501..cc7bea3 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -284,38 +284,7 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['range'] === null) {
- return false;
- }
- if ($this->container['requests'] === null) {
- return false;
- }
- if ($this->container['delivered'] === null) {
- return false;
- }
- if ($this->container['hardBounces'] === null) {
- return false;
- }
- if ($this->container['softBounces'] === null) {
- return false;
- }
- if ($this->container['blocked'] === null) {
- return false;
- }
- if ($this->container['unsubscribed'] === null) {
- return false;
- }
- if ($this->container['replied'] === null) {
- return false;
- }
- if ($this->container['accepted'] === null) {
- return false;
- }
- if ($this->container['rejected'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php
new file mode 100644
index 0000000..f1505b9
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php
@@ -0,0 +1,331 @@
+ 'int',
+ 'contacts' => '\SendinBlue\Client\Model\GetTransacBlockedContactsContacts[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'count' => 'int64',
+ 'contacts' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'count' => 'count',
+ 'contacts' => 'contacts'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'count' => 'setCount',
+ 'contacts' => 'setContacts'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'count' => 'getCount',
+ 'contacts' => 'getContacts'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['count'] = isset($data['count']) ? $data['count'] : null;
+ $this->container['contacts'] = isset($data['contacts']) ? $data['contacts'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets count
+ *
+ * @return int
+ */
+ public function getCount()
+ {
+ return $this->container['count'];
+ }
+
+ /**
+ * Sets count
+ *
+ * @param int $count Count of blocked or unsubscribed contact
+ *
+ * @return $this
+ */
+ public function setCount($count)
+ {
+ $this->container['count'] = $count;
+
+ return $this;
+ }
+
+ /**
+ * Gets contacts
+ *
+ * @return \SendinBlue\Client\Model\GetTransacBlockedContactsContacts[]
+ */
+ public function getContacts()
+ {
+ return $this->container['contacts'];
+ }
+
+ /**
+ * Sets contacts
+ *
+ * @param \SendinBlue\Client\Model\GetTransacBlockedContactsContacts[] $contacts contacts
+ *
+ * @return $this
+ */
+ public function setContacts($contacts)
+ {
+ $this->container['contacts'] = $contacts;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php
new file mode 100644
index 0000000..967bcb1
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php
@@ -0,0 +1,403 @@
+ 'string',
+ 'senderEmail' => 'string',
+ 'reason' => '\SendinBlue\Client\Model\GetTransacBlockedContactsReason',
+ 'blockedAt' => '\DateTime'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'email' => 'email',
+ 'senderEmail' => 'email',
+ 'reason' => null,
+ 'blockedAt' => 'date'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'email' => 'email',
+ 'senderEmail' => 'senderEmail',
+ 'reason' => 'reason',
+ 'blockedAt' => 'blockedAt'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'email' => 'setEmail',
+ 'senderEmail' => 'setSenderEmail',
+ 'reason' => 'setReason',
+ 'blockedAt' => 'setBlockedAt'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'email' => 'getEmail',
+ 'senderEmail' => 'getSenderEmail',
+ 'reason' => 'getReason',
+ 'blockedAt' => 'getBlockedAt'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['email'] = isset($data['email']) ? $data['email'] : null;
+ $this->container['senderEmail'] = isset($data['senderEmail']) ? $data['senderEmail'] : null;
+ $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null;
+ $this->container['blockedAt'] = isset($data['blockedAt']) ? $data['blockedAt'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['email'] === null) {
+ $invalidProperties[] = "'email' can't be null";
+ }
+ if ($this->container['senderEmail'] === null) {
+ $invalidProperties[] = "'senderEmail' can't be null";
+ }
+ if ($this->container['reason'] === null) {
+ $invalidProperties[] = "'reason' can't be null";
+ }
+ if ($this->container['blockedAt'] === null) {
+ $invalidProperties[] = "'blockedAt' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets email
+ *
+ * @return string
+ */
+ public function getEmail()
+ {
+ return $this->container['email'];
+ }
+
+ /**
+ * Sets email
+ *
+ * @param string $email Email address of the blocked or unsubscribed contact
+ *
+ * @return $this
+ */
+ public function setEmail($email)
+ {
+ $this->container['email'] = $email;
+
+ return $this;
+ }
+
+ /**
+ * Gets senderEmail
+ *
+ * @return string
+ */
+ public function getSenderEmail()
+ {
+ return $this->container['senderEmail'];
+ }
+
+ /**
+ * Sets senderEmail
+ *
+ * @param string $senderEmail Sender email address of the blocked or unsubscribed contact
+ *
+ * @return $this
+ */
+ public function setSenderEmail($senderEmail)
+ {
+ $this->container['senderEmail'] = $senderEmail;
+
+ return $this;
+ }
+
+ /**
+ * Gets reason
+ *
+ * @return \SendinBlue\Client\Model\GetTransacBlockedContactsReason
+ */
+ public function getReason()
+ {
+ return $this->container['reason'];
+ }
+
+ /**
+ * Sets reason
+ *
+ * @param \SendinBlue\Client\Model\GetTransacBlockedContactsReason $reason reason
+ *
+ * @return $this
+ */
+ public function setReason($reason)
+ {
+ $this->container['reason'] = $reason;
+
+ return $this;
+ }
+
+ /**
+ * Gets blockedAt
+ *
+ * @return \DateTime
+ */
+ public function getBlockedAt()
+ {
+ return $this->container['blockedAt'];
+ }
+
+ /**
+ * Sets blockedAt
+ *
+ * @param \DateTime $blockedAt Date when the contact was blocked or unsubscribed on
+ *
+ * @return $this
+ */
+ public function setBlockedAt($blockedAt)
+ {
+ $this->container['blockedAt'] = $blockedAt;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php
new file mode 100644
index 0000000..fdf5fc9
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php
@@ -0,0 +1,372 @@
+ 'string',
+ 'message' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'code' => null,
+ 'message' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'code' => 'code',
+ 'message' => 'message'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'code' => 'setCode',
+ 'message' => 'setMessage'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'code' => 'getCode',
+ 'message' => 'getMessage'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+ const CODE_UNSUBSCRIBED_VIA_MA = 'unsubscribedViaMA';
+ const CODE_UNSUBSCRIBED_VIA_EMAIL = 'unsubscribedViaEmail';
+ const CODE_ADMIN_BLOCKED = 'adminBlocked';
+ const CODE_UNSUBSCRIBED_VIA_API = 'unsubscribedViaApi';
+ const CODE_HARD_BOUNCE = 'hardBounce';
+ const CODE_CONTACT_FLAGGED_AS_SPAM = 'contactFlaggedAsSpam';
+
+
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getCodeAllowableValues()
+ {
+ return [
+ self::CODE_UNSUBSCRIBED_VIA_MA,
+ self::CODE_UNSUBSCRIBED_VIA_EMAIL,
+ self::CODE_ADMIN_BLOCKED,
+ self::CODE_UNSUBSCRIBED_VIA_API,
+ self::CODE_HARD_BOUNCE,
+ self::CODE_CONTACT_FLAGGED_AS_SPAM,
+ ];
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['code'] = isset($data['code']) ? $data['code'] : null;
+ $this->container['message'] = isset($data['message']) ? $data['message'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getCodeAllowableValues();
+ if (!is_null($this->container['code']) && !in_array($this->container['code'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'code', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets code
+ *
+ * @return string
+ */
+ public function getCode()
+ {
+ return $this->container['code'];
+ }
+
+ /**
+ * Sets code
+ *
+ * @param string $code Reason code for blocking / unsubscribing (This code is safe for comparison)
+ *
+ * @return $this
+ */
+ public function setCode($code)
+ {
+ $allowedValues = $this->getCodeAllowableValues();
+ if (!is_null($code) && !in_array($code, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'code', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['code'] = $code;
+
+ return $this;
+ }
+
+ /**
+ * Gets message
+ *
+ * @return string
+ */
+ public function getMessage()
+ {
+ return $this->container['message'];
+ }
+
+ /**
+ * Sets message
+ *
+ * @param string $message Reason for blocking / unsubscribing (This string is not safe for comparison)
+ *
+ * @return $this
+ */
+ public function setMessage($message)
+ {
+ $this->container['message'] = $message;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php
new file mode 100644
index 0000000..6a30b45
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php
@@ -0,0 +1,499 @@
+ 'string',
+ 'subject' => 'string',
+ 'templateId' => 'int',
+ 'date' => '\DateTime',
+ 'events' => '\SendinBlue\Client\Model\GetTransacEmailContentEvents[]',
+ 'body' => 'string',
+ 'attachmentCount' => 'int'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'email' => 'email',
+ 'subject' => null,
+ 'templateId' => 'int64',
+ 'date' => 'date-time',
+ 'events' => null,
+ 'body' => null,
+ 'attachmentCount' => 'int64'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'email' => 'email',
+ 'subject' => 'subject',
+ 'templateId' => 'templateId',
+ 'date' => 'date',
+ 'events' => 'events',
+ 'body' => 'body',
+ 'attachmentCount' => 'attachmentCount'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'email' => 'setEmail',
+ 'subject' => 'setSubject',
+ 'templateId' => 'setTemplateId',
+ 'date' => 'setDate',
+ 'events' => 'setEvents',
+ 'body' => 'setBody',
+ 'attachmentCount' => 'setAttachmentCount'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'email' => 'getEmail',
+ 'subject' => 'getSubject',
+ 'templateId' => 'getTemplateId',
+ 'date' => 'getDate',
+ 'events' => 'getEvents',
+ 'body' => 'getBody',
+ 'attachmentCount' => 'getAttachmentCount'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['email'] = isset($data['email']) ? $data['email'] : null;
+ $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null;
+ $this->container['templateId'] = isset($data['templateId']) ? $data['templateId'] : null;
+ $this->container['date'] = isset($data['date']) ? $data['date'] : null;
+ $this->container['events'] = isset($data['events']) ? $data['events'] : null;
+ $this->container['body'] = isset($data['body']) ? $data['body'] : null;
+ $this->container['attachmentCount'] = isset($data['attachmentCount']) ? $data['attachmentCount'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['email'] === null) {
+ $invalidProperties[] = "'email' can't be null";
+ }
+ if ($this->container['subject'] === null) {
+ $invalidProperties[] = "'subject' can't be null";
+ }
+ if ($this->container['date'] === null) {
+ $invalidProperties[] = "'date' can't be null";
+ }
+ if ($this->container['events'] === null) {
+ $invalidProperties[] = "'events' can't be null";
+ }
+ if ($this->container['body'] === null) {
+ $invalidProperties[] = "'body' can't be null";
+ }
+ if ($this->container['attachmentCount'] === null) {
+ $invalidProperties[] = "'attachmentCount' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets email
+ *
+ * @return string
+ */
+ public function getEmail()
+ {
+ return $this->container['email'];
+ }
+
+ /**
+ * Sets email
+ *
+ * @param string $email Email address to which transactional email has been sent
+ *
+ * @return $this
+ */
+ public function setEmail($email)
+ {
+ $this->container['email'] = $email;
+
+ return $this;
+ }
+
+ /**
+ * Gets subject
+ *
+ * @return string
+ */
+ public function getSubject()
+ {
+ return $this->container['subject'];
+ }
+
+ /**
+ * Sets subject
+ *
+ * @param string $subject Subject of the sent email
+ *
+ * @return $this
+ */
+ public function setSubject($subject)
+ {
+ $this->container['subject'] = $subject;
+
+ return $this;
+ }
+
+ /**
+ * Gets templateId
+ *
+ * @return int
+ */
+ public function getTemplateId()
+ {
+ return $this->container['templateId'];
+ }
+
+ /**
+ * Sets templateId
+ *
+ * @param int $templateId Id of the template
+ *
+ * @return $this
+ */
+ public function setTemplateId($templateId)
+ {
+ $this->container['templateId'] = $templateId;
+
+ return $this;
+ }
+
+ /**
+ * Gets date
+ *
+ * @return \DateTime
+ */
+ public function getDate()
+ {
+ return $this->container['date'];
+ }
+
+ /**
+ * Sets date
+ *
+ * @param \DateTime $date Date on which transactional email was sent
+ *
+ * @return $this
+ */
+ public function setDate($date)
+ {
+ $this->container['date'] = $date;
+
+ return $this;
+ }
+
+ /**
+ * Gets events
+ *
+ * @return \SendinBlue\Client\Model\GetTransacEmailContentEvents[]
+ */
+ public function getEvents()
+ {
+ return $this->container['events'];
+ }
+
+ /**
+ * Sets events
+ *
+ * @param \SendinBlue\Client\Model\GetTransacEmailContentEvents[] $events Series of events which occurred on the transactional email
+ *
+ * @return $this
+ */
+ public function setEvents($events)
+ {
+ $this->container['events'] = $events;
+
+ return $this;
+ }
+
+ /**
+ * Gets body
+ *
+ * @return string
+ */
+ public function getBody()
+ {
+ return $this->container['body'];
+ }
+
+ /**
+ * Sets body
+ *
+ * @param string $body Actual content of the transactional email that has been sent
+ *
+ * @return $this
+ */
+ public function setBody($body)
+ {
+ $this->container['body'] = $body;
+
+ return $this;
+ }
+
+ /**
+ * Gets attachmentCount
+ *
+ * @return int
+ */
+ public function getAttachmentCount()
+ {
+ return $this->container['attachmentCount'];
+ }
+
+ /**
+ * Sets attachmentCount
+ *
+ * @param int $attachmentCount Count of the attachments that were sent in the email
+ *
+ * @return $this
+ */
+ public function setAttachmentCount($attachmentCount)
+ {
+ $this->container['attachmentCount'] = $attachmentCount;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php
new file mode 100644
index 0000000..15896a9
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php
@@ -0,0 +1,337 @@
+ 'string',
+ 'time' => '\DateTime'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'name' => null,
+ 'time' => 'date-time'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'name' => 'name',
+ 'time' => 'time'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'name' => 'setName',
+ 'time' => 'setTime'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'name' => 'getName',
+ 'time' => 'getTime'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['name'] = isset($data['name']) ? $data['name'] : null;
+ $this->container['time'] = isset($data['time']) ? $data['time'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['name'] === null) {
+ $invalidProperties[] = "'name' can't be null";
+ }
+ if ($this->container['time'] === null) {
+ $invalidProperties[] = "'time' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param string $name Name of the event that occurred on the sent email
+ *
+ * @return $this
+ */
+ public function setName($name)
+ {
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets time
+ *
+ * @return \DateTime
+ */
+ public function getTime()
+ {
+ return $this->container['time'];
+ }
+
+ /**
+ * Sets time
+ *
+ * @param \DateTime $time Time at which the event occurred
+ *
+ * @return $this
+ */
+ public function setTime($time)
+ {
+ $this->container['time'] = $time;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php
new file mode 100644
index 0000000..486ff66
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php
@@ -0,0 +1,301 @@
+ '\SendinBlue\Client\Model\GetTransacEmailsListTransactionalEmails[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'transactionalEmails' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'transactionalEmails' => 'transactionalEmails'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'transactionalEmails' => 'setTransactionalEmails'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'transactionalEmails' => 'getTransactionalEmails'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['transactionalEmails'] = isset($data['transactionalEmails']) ? $data['transactionalEmails'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets transactionalEmails
+ *
+ * @return \SendinBlue\Client\Model\GetTransacEmailsListTransactionalEmails[]
+ */
+ public function getTransactionalEmails()
+ {
+ return $this->container['transactionalEmails'];
+ }
+
+ /**
+ * Sets transactionalEmails
+ *
+ * @param \SendinBlue\Client\Model\GetTransacEmailsListTransactionalEmails[] $transactionalEmails transactionalEmails
+ *
+ * @return $this
+ */
+ public function setTransactionalEmails($transactionalEmails)
+ {
+ $this->container['transactionalEmails'] = $transactionalEmails;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php
new file mode 100644
index 0000000..e27ef85
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php
@@ -0,0 +1,466 @@
+ 'string',
+ 'subject' => 'string',
+ 'templateId' => 'int',
+ 'messageId' => 'string',
+ 'uuid' => 'string',
+ 'date' => '\DateTime'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'email' => 'email',
+ 'subject' => null,
+ 'templateId' => 'int64',
+ 'messageId' => null,
+ 'uuid' => null,
+ 'date' => 'date-time'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'email' => 'email',
+ 'subject' => 'subject',
+ 'templateId' => 'templateId',
+ 'messageId' => 'messageId',
+ 'uuid' => 'uuid',
+ 'date' => 'date'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'email' => 'setEmail',
+ 'subject' => 'setSubject',
+ 'templateId' => 'setTemplateId',
+ 'messageId' => 'setMessageId',
+ 'uuid' => 'setUuid',
+ 'date' => 'setDate'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'email' => 'getEmail',
+ 'subject' => 'getSubject',
+ 'templateId' => 'getTemplateId',
+ 'messageId' => 'getMessageId',
+ 'uuid' => 'getUuid',
+ 'date' => 'getDate'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['email'] = isset($data['email']) ? $data['email'] : null;
+ $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null;
+ $this->container['templateId'] = isset($data['templateId']) ? $data['templateId'] : null;
+ $this->container['messageId'] = isset($data['messageId']) ? $data['messageId'] : null;
+ $this->container['uuid'] = isset($data['uuid']) ? $data['uuid'] : null;
+ $this->container['date'] = isset($data['date']) ? $data['date'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['email'] === null) {
+ $invalidProperties[] = "'email' can't be null";
+ }
+ if ($this->container['subject'] === null) {
+ $invalidProperties[] = "'subject' can't be null";
+ }
+ if ($this->container['messageId'] === null) {
+ $invalidProperties[] = "'messageId' can't be null";
+ }
+ if ($this->container['uuid'] === null) {
+ $invalidProperties[] = "'uuid' can't be null";
+ }
+ if ($this->container['date'] === null) {
+ $invalidProperties[] = "'date' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets email
+ *
+ * @return string
+ */
+ public function getEmail()
+ {
+ return $this->container['email'];
+ }
+
+ /**
+ * Sets email
+ *
+ * @param string $email Email address to which transactional email has been sent
+ *
+ * @return $this
+ */
+ public function setEmail($email)
+ {
+ $this->container['email'] = $email;
+
+ return $this;
+ }
+
+ /**
+ * Gets subject
+ *
+ * @return string
+ */
+ public function getSubject()
+ {
+ return $this->container['subject'];
+ }
+
+ /**
+ * Sets subject
+ *
+ * @param string $subject Subject of the sent email
+ *
+ * @return $this
+ */
+ public function setSubject($subject)
+ {
+ $this->container['subject'] = $subject;
+
+ return $this;
+ }
+
+ /**
+ * Gets templateId
+ *
+ * @return int
+ */
+ public function getTemplateId()
+ {
+ return $this->container['templateId'];
+ }
+
+ /**
+ * Sets templateId
+ *
+ * @param int $templateId Id of the template
+ *
+ * @return $this
+ */
+ public function setTemplateId($templateId)
+ {
+ $this->container['templateId'] = $templateId;
+
+ return $this;
+ }
+
+ /**
+ * Gets messageId
+ *
+ * @return string
+ */
+ public function getMessageId()
+ {
+ return $this->container['messageId'];
+ }
+
+ /**
+ * Sets messageId
+ *
+ * @param string $messageId Message Id of the sent email
+ *
+ * @return $this
+ */
+ public function setMessageId($messageId)
+ {
+ $this->container['messageId'] = $messageId;
+
+ return $this;
+ }
+
+ /**
+ * Gets uuid
+ *
+ * @return string
+ */
+ public function getUuid()
+ {
+ return $this->container['uuid'];
+ }
+
+ /**
+ * Sets uuid
+ *
+ * @param string $uuid Unique id of the email sent to a particular contact
+ *
+ * @return $this
+ */
+ public function setUuid($uuid)
+ {
+ $this->container['uuid'] = $uuid;
+
+ return $this;
+ }
+
+ /**
+ * Gets date
+ *
+ * @return \DateTime
+ */
+ public function getDate()
+ {
+ return $this->container['date'];
+ }
+
+ /**
+ * Sets date
+ *
+ * @param \DateTime $date Date on which transactional email was sent
+ *
+ * @return $this
+ */
+ public function setDate($date)
+ {
+ $this->container['date'] = $date;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php
index 8de91a6..24767e0 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php
index 232e1e8..8cf6600 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -284,38 +284,7 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['date'] === null) {
- return false;
- }
- if ($this->container['requests'] === null) {
- return false;
- }
- if ($this->container['delivered'] === null) {
- return false;
- }
- if ($this->container['hardBounces'] === null) {
- return false;
- }
- if ($this->container['softBounces'] === null) {
- return false;
- }
- if ($this->container['blocked'] === null) {
- return false;
- }
- if ($this->container['unsubscribed'] === null) {
- return false;
- }
- if ($this->container['replied'] === null) {
- return false;
- }
- if ($this->container['accepted'] === null) {
- return false;
- }
- if ($this->container['rejected'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php
index be79919..fdccd4c 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -256,7 +256,7 @@ class GetWebhook implements ModelInterface, ArrayAccess
$invalidProperties[] = "'type' can't be null";
}
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
+ if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'type', must be one of '%s'",
implode("', '", $allowedValues)
@@ -280,33 +280,7 @@ class GetWebhook implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['url'] === null) {
- return false;
- }
- if ($this->container['id'] === null) {
- return false;
- }
- if ($this->container['description'] === null) {
- return false;
- }
- if ($this->container['events'] === null) {
- return false;
- }
- if ($this->container['type'] === null) {
- return false;
- }
- $allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
- return false;
- }
- if ($this->container['createdAt'] === null) {
- return false;
- }
- if ($this->container['modifiedAt'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -426,7 +400,7 @@ class GetWebhook implements ModelInterface, ArrayAccess
public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($type, $allowedValues)) {
+ if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'type', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php
index 302be51..ffd15fa 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -203,11 +203,7 @@ class GetWebhooks implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['webhooks'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ManageIp.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ManageIp.php
index 9fc28a7..60b4616 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ManageIp.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ManageIp.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class ManageIp implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php
index 79f6796..d87ff71 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfo.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfo.php
index e0bd5e8..bd83c4b 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfo.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfo.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -203,11 +203,7 @@ class PostContactInfo implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['contacts'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php
index b6c9a1c..196b0b2 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,8 +212,7 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php
index b0b71f3..34c3f03 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -230,14 +230,7 @@ class PostSendFailed implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['code'] === null) {
- return false;
- }
- if ($this->container['message'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php
index 07ed3cc..9c632eb 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -224,14 +224,7 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['code'] === null) {
- return false;
- }
- if ($this->container['message'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php
index 95cad1e..64d3ce4 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['child'] === null) {
- return false;
- }
- if ($this->container['reseller'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php
index 088bd9a..e203b97 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -213,14 +213,7 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['sms'] === null) {
- return false;
- }
- if ($this->container['email'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php
index c6398f9..bd25822 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['sms'] === null) {
- return false;
- }
- if ($this->container['email'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php
index 017371b..d8f46ec 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -206,8 +206,7 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php
index 9f9aaf9..5837194 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -206,8 +206,7 @@ class RemoveCredits implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php
index 42d86ae..627f2bc 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,7 @@ class RequestContactExport implements ModelInterface, ArrayAccess
protected static $swaggerTypes = [
'exportAttributes' => 'string[]',
'contactFilter' => 'object',
+ 'customContactFilter' => '\SendinBlue\Client\Model\RequestContactExportCustomContactFilter',
'notifyUrl' => 'string'
];
@@ -70,6 +71,7 @@ class RequestContactExport implements ModelInterface, ArrayAccess
protected static $swaggerFormats = [
'exportAttributes' => null,
'contactFilter' => null,
+ 'customContactFilter' => null,
'notifyUrl' => 'url'
];
@@ -102,6 +104,7 @@ class RequestContactExport implements ModelInterface, ArrayAccess
protected static $attributeMap = [
'exportAttributes' => 'exportAttributes',
'contactFilter' => 'contactFilter',
+ 'customContactFilter' => 'customContactFilter',
'notifyUrl' => 'notifyUrl'
];
@@ -113,6 +116,7 @@ class RequestContactExport implements ModelInterface, ArrayAccess
protected static $setters = [
'exportAttributes' => 'setExportAttributes',
'contactFilter' => 'setContactFilter',
+ 'customContactFilter' => 'setCustomContactFilter',
'notifyUrl' => 'setNotifyUrl'
];
@@ -124,6 +128,7 @@ class RequestContactExport implements ModelInterface, ArrayAccess
protected static $getters = [
'exportAttributes' => 'getExportAttributes',
'contactFilter' => 'getContactFilter',
+ 'customContactFilter' => 'getCustomContactFilter',
'notifyUrl' => 'getNotifyUrl'
];
@@ -189,6 +194,7 @@ class RequestContactExport implements ModelInterface, ArrayAccess
{
$this->container['exportAttributes'] = isset($data['exportAttributes']) ? $data['exportAttributes'] : null;
$this->container['contactFilter'] = isset($data['contactFilter']) ? $data['contactFilter'] : null;
+ $this->container['customContactFilter'] = isset($data['customContactFilter']) ? $data['customContactFilter'] : null;
$this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null;
}
@@ -201,9 +207,6 @@ class RequestContactExport implements ModelInterface, ArrayAccess
{
$invalidProperties = [];
- if ($this->container['contactFilter'] === null) {
- $invalidProperties[] = "'contactFilter' can't be null";
- }
return $invalidProperties;
}
@@ -215,11 +218,7 @@ class RequestContactExport implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['contactFilter'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -260,7 +259,7 @@ class RequestContactExport implements ModelInterface, ArrayAccess
/**
* Sets contactFilter
*
- * @param object $contactFilter Set the filter for the contacts to be exported. For example, `{\"blacklisted\":true}` will export all the blacklisted contacts.
+ * @param object $contactFilter This attribute has been deprecated and will be removed by January 1st, 2021. Only one of the two filter options (contactFilter or customContactFilter) can be passed in the request. Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts.
*
* @return $this
*/
@@ -271,6 +270,30 @@ class RequestContactExport implements ModelInterface, ArrayAccess
return $this;
}
+ /**
+ * Gets customContactFilter
+ *
+ * @return \SendinBlue\Client\Model\RequestContactExportCustomContactFilter
+ */
+ public function getCustomContactFilter()
+ {
+ return $this->container['customContactFilter'];
+ }
+
+ /**
+ * Sets customContactFilter
+ *
+ * @param \SendinBlue\Client\Model\RequestContactExportCustomContactFilter $customContactFilter customContactFilter
+ *
+ * @return $this
+ */
+ public function setCustomContactFilter($customContactFilter)
+ {
+ $this->container['customContactFilter'] = $customContactFilter;
+
+ return $this;
+ }
+
/**
* Gets notifyUrl
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php
new file mode 100644
index 0000000..aaa2f5f
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php
@@ -0,0 +1,564 @@
+ 'string',
+ 'actionForEmailCampaigns' => 'string',
+ 'actionForSmsCampaigns' => 'string',
+ 'listId' => 'int',
+ 'emailCampaignId' => 'int',
+ 'smsCampaignId' => 'int'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $swaggerFormats = [
+ 'actionForContacts' => null,
+ 'actionForEmailCampaigns' => null,
+ 'actionForSmsCampaigns' => null,
+ 'listId' => 'int64',
+ 'emailCampaignId' => 'int64',
+ 'smsCampaignId' => 'int64'
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerTypes()
+ {
+ return self::$swaggerTypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function swaggerFormats()
+ {
+ return self::$swaggerFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'actionForContacts' => 'actionForContacts',
+ 'actionForEmailCampaigns' => 'actionForEmailCampaigns',
+ 'actionForSmsCampaigns' => 'actionForSmsCampaigns',
+ 'listId' => 'listId',
+ 'emailCampaignId' => 'emailCampaignId',
+ 'smsCampaignId' => 'smsCampaignId'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'actionForContacts' => 'setActionForContacts',
+ 'actionForEmailCampaigns' => 'setActionForEmailCampaigns',
+ 'actionForSmsCampaigns' => 'setActionForSmsCampaigns',
+ 'listId' => 'setListId',
+ 'emailCampaignId' => 'setEmailCampaignId',
+ 'smsCampaignId' => 'setSmsCampaignId'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'actionForContacts' => 'getActionForContacts',
+ 'actionForEmailCampaigns' => 'getActionForEmailCampaigns',
+ 'actionForSmsCampaigns' => 'getActionForSmsCampaigns',
+ 'listId' => 'getListId',
+ 'emailCampaignId' => 'getEmailCampaignId',
+ 'smsCampaignId' => 'getSmsCampaignId'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$swaggerModelName;
+ }
+
+ const ACTION_FOR_CONTACTS_ALL_CONTACTS = 'allContacts';
+ const ACTION_FOR_CONTACTS_SUBSCRIBED = 'subscribed';
+ const ACTION_FOR_CONTACTS_UNSUBSCRIBED = 'unsubscribed';
+ const ACTION_FOR_CONTACTS_UNSUBSCRIBED_PER_LIST = 'unsubscribedPerList';
+ const ACTION_FOR_EMAIL_CAMPAIGNS_OPENERS = 'openers';
+ const ACTION_FOR_EMAIL_CAMPAIGNS_NON_OPENERS = 'nonOpeners';
+ const ACTION_FOR_EMAIL_CAMPAIGNS_CLICKERS = 'clickers';
+ const ACTION_FOR_EMAIL_CAMPAIGNS_NON_CLICKERS = 'nonClickers';
+ const ACTION_FOR_EMAIL_CAMPAIGNS_UNSUBSCRIBED = 'unsubscribed';
+ const ACTION_FOR_EMAIL_CAMPAIGNS_HARD_BOUNCES = 'hardBounces';
+ const ACTION_FOR_EMAIL_CAMPAIGNS_SOFT_BOUNCES = 'softBounces';
+ const ACTION_FOR_SMS_CAMPAIGNS_HARD_BOUNCES = 'hardBounces';
+ const ACTION_FOR_SMS_CAMPAIGNS_SOFT_BOUNCES = 'softBounces';
+ const ACTION_FOR_SMS_CAMPAIGNS_UNSUBSCRIBED = 'unsubscribed';
+
+
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getActionForContactsAllowableValues()
+ {
+ return [
+ self::ACTION_FOR_CONTACTS_ALL_CONTACTS,
+ self::ACTION_FOR_CONTACTS_SUBSCRIBED,
+ self::ACTION_FOR_CONTACTS_UNSUBSCRIBED,
+ self::ACTION_FOR_CONTACTS_UNSUBSCRIBED_PER_LIST,
+ ];
+ }
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getActionForEmailCampaignsAllowableValues()
+ {
+ return [
+ self::ACTION_FOR_EMAIL_CAMPAIGNS_OPENERS,
+ self::ACTION_FOR_EMAIL_CAMPAIGNS_NON_OPENERS,
+ self::ACTION_FOR_EMAIL_CAMPAIGNS_CLICKERS,
+ self::ACTION_FOR_EMAIL_CAMPAIGNS_NON_CLICKERS,
+ self::ACTION_FOR_EMAIL_CAMPAIGNS_UNSUBSCRIBED,
+ self::ACTION_FOR_EMAIL_CAMPAIGNS_HARD_BOUNCES,
+ self::ACTION_FOR_EMAIL_CAMPAIGNS_SOFT_BOUNCES,
+ ];
+ }
+
+ /**
+ * Gets allowable values of the enum
+ *
+ * @return string[]
+ */
+ public function getActionForSmsCampaignsAllowableValues()
+ {
+ return [
+ self::ACTION_FOR_SMS_CAMPAIGNS_HARD_BOUNCES,
+ self::ACTION_FOR_SMS_CAMPAIGNS_SOFT_BOUNCES,
+ self::ACTION_FOR_SMS_CAMPAIGNS_UNSUBSCRIBED,
+ ];
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['actionForContacts'] = isset($data['actionForContacts']) ? $data['actionForContacts'] : null;
+ $this->container['actionForEmailCampaigns'] = isset($data['actionForEmailCampaigns']) ? $data['actionForEmailCampaigns'] : null;
+ $this->container['actionForSmsCampaigns'] = isset($data['actionForSmsCampaigns']) ? $data['actionForSmsCampaigns'] : null;
+ $this->container['listId'] = isset($data['listId']) ? $data['listId'] : null;
+ $this->container['emailCampaignId'] = isset($data['emailCampaignId']) ? $data['emailCampaignId'] : null;
+ $this->container['smsCampaignId'] = isset($data['smsCampaignId']) ? $data['smsCampaignId'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ $allowedValues = $this->getActionForContactsAllowableValues();
+ if (!is_null($this->container['actionForContacts']) && !in_array($this->container['actionForContacts'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'actionForContacts', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ $allowedValues = $this->getActionForEmailCampaignsAllowableValues();
+ if (!is_null($this->container['actionForEmailCampaigns']) && !in_array($this->container['actionForEmailCampaigns'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'actionForEmailCampaigns', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ $allowedValues = $this->getActionForSmsCampaignsAllowableValues();
+ if (!is_null($this->container['actionForSmsCampaigns']) && !in_array($this->container['actionForSmsCampaigns'], $allowedValues, true)) {
+ $invalidProperties[] = sprintf(
+ "invalid value for 'actionForSmsCampaigns', must be one of '%s'",
+ implode("', '", $allowedValues)
+ );
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets actionForContacts
+ *
+ * @return string
+ */
+ public function getActionForContacts()
+ {
+ return $this->container['actionForContacts'];
+ }
+
+ /**
+ * Sets actionForContacts
+ *
+ * @param string $actionForContacts Mandatory if neither actionForEmailCampaigns nor actionForSmsCampaigns is passed. This will export the contacts on the basis of provided action applied on contacts as per the list id. * allContacts - Fetch the list of all contacts for a particular list. * subscribed & unsubscribed - Fetch the list of subscribed / unsubscribed (blacklisted via any means) contacts for a particular list. * unsubscribedPerList - Fetch the list of contacts that are unsubscribed from a particular list only.
+ *
+ * @return $this
+ */
+ public function setActionForContacts($actionForContacts)
+ {
+ $allowedValues = $this->getActionForContactsAllowableValues();
+ if (!is_null($actionForContacts) && !in_array($actionForContacts, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'actionForContacts', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['actionForContacts'] = $actionForContacts;
+
+ return $this;
+ }
+
+ /**
+ * Gets actionForEmailCampaigns
+ *
+ * @return string
+ */
+ public function getActionForEmailCampaigns()
+ {
+ return $this->container['actionForEmailCampaigns'];
+ }
+
+ /**
+ * Sets actionForEmailCampaigns
+ *
+ * @param string $actionForEmailCampaigns Mandatory if neither actionForContacts nor actionForSmsCampaigns is passed. This will export the contacts on the basis of provided action applied on email campaigns. * openers & nonOpeners - emailCampaignId is mandatory. Fetch the list of readers / non-readers for a particular email campaign. * clickers & nonClickers - emailCampaignId is mandatory. Fetch the list of clickers / non-clickers for a particular email campaign. * unsubscribed - emailCampaignId is mandatory. Fetch the list of all unsubscribed (blacklisted via any means) contacts for a particular email campaign. * hardBounces & softBounces - emailCampaignId is optional. Fetch the list of hard bounces / soft bounces for a particular / all email campaign(s).
+ *
+ * @return $this
+ */
+ public function setActionForEmailCampaigns($actionForEmailCampaigns)
+ {
+ $allowedValues = $this->getActionForEmailCampaignsAllowableValues();
+ if (!is_null($actionForEmailCampaigns) && !in_array($actionForEmailCampaigns, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'actionForEmailCampaigns', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['actionForEmailCampaigns'] = $actionForEmailCampaigns;
+
+ return $this;
+ }
+
+ /**
+ * Gets actionForSmsCampaigns
+ *
+ * @return string
+ */
+ public function getActionForSmsCampaigns()
+ {
+ return $this->container['actionForSmsCampaigns'];
+ }
+
+ /**
+ * Sets actionForSmsCampaigns
+ *
+ * @param string $actionForSmsCampaigns Mandatory if neither actionForContacts nor actionForEmailCampaigns is passed. This will export the contacts on the basis of provided action applied on sms campaigns. * unsubscribed - Fetch the list of all unsubscribed (blacklisted via any means) contacts for all / particular sms campaigns. * hardBounces & softBounces - Fetch the list of hard bounces / soft bounces for all / particular sms campaigns.
+ *
+ * @return $this
+ */
+ public function setActionForSmsCampaigns($actionForSmsCampaigns)
+ {
+ $allowedValues = $this->getActionForSmsCampaignsAllowableValues();
+ if (!is_null($actionForSmsCampaigns) && !in_array($actionForSmsCampaigns, $allowedValues, true)) {
+ throw new \InvalidArgumentException(
+ sprintf(
+ "Invalid value for 'actionForSmsCampaigns', must be one of '%s'",
+ implode("', '", $allowedValues)
+ )
+ );
+ }
+ $this->container['actionForSmsCampaigns'] = $actionForSmsCampaigns;
+
+ return $this;
+ }
+
+ /**
+ * Gets listId
+ *
+ * @return int
+ */
+ public function getListId()
+ {
+ return $this->container['listId'];
+ }
+
+ /**
+ * Sets listId
+ *
+ * @param int $listId Mandatory if actionForContacts is passed, ignored otherwise. Id of the list for which the corresponding action shall be applied in the filter.
+ *
+ * @return $this
+ */
+ public function setListId($listId)
+ {
+ $this->container['listId'] = $listId;
+
+ return $this;
+ }
+
+ /**
+ * Gets emailCampaignId
+ *
+ * @return int
+ */
+ public function getEmailCampaignId()
+ {
+ return $this->container['emailCampaignId'];
+ }
+
+ /**
+ * Sets emailCampaignId
+ *
+ * @param int $emailCampaignId Considered only if actionForEmailCampaigns is passed, ignored otherwise. Mandatory if action is one of the following - openers, nonOpeners, clickers, nonClickers, unsubscribed. The id of the email campaign for which the corresponding action shall be applied in the filter.
+ *
+ * @return $this
+ */
+ public function setEmailCampaignId($emailCampaignId)
+ {
+ $this->container['emailCampaignId'] = $emailCampaignId;
+
+ return $this;
+ }
+
+ /**
+ * Gets smsCampaignId
+ *
+ * @return int
+ */
+ public function getSmsCampaignId()
+ {
+ return $this->container['smsCampaignId'];
+ }
+
+ /**
+ * Sets smsCampaignId
+ *
+ * @param int $smsCampaignId Considered only if actionForSmsCampaigns is passed, ignored otherwise. The id of sms campaign for which the corresponding action shall be applied in the filter.
+ *
+ * @return $this
+ */
+ public function setSmsCampaignId($smsCampaignId)
+ {
+ $this->container['smsCampaignId'] = $smsCampaignId;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+}
+
+
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php
index b545b75..089051f 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -248,8 +248,7 @@ class RequestContactImport implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php
index ec1ebda..7b75a55 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -207,8 +207,7 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php
index d8797ce..655fa25 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -222,7 +222,7 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess
$invalidProperties[] = "'recipientsType' can't be null";
}
$allowedValues = $this->getRecipientsTypeAllowableValues();
- if (!in_array($this->container['recipientsType'], $allowedValues)) {
+ if (!is_null($this->container['recipientsType']) && !in_array($this->container['recipientsType'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'recipientsType', must be one of '%s'",
implode("', '", $allowedValues)
@@ -240,15 +240,7 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['recipientsType'] === null) {
- return false;
- }
- $allowedValues = $this->getRecipientsTypeAllowableValues();
- if (!in_array($this->container['recipientsType'], $allowedValues)) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -296,7 +288,7 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess
public function setRecipientsType($recipientsType)
{
$allowedValues = $this->getRecipientsTypeAllowableValues();
- if (!in_array($recipientsType, $allowedValues)) {
+ if (!in_array($recipientsType, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'recipientsType', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmail.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmail.php
index 93f9ec3..3ecd6be 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmail.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmail.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -251,11 +251,7 @@ class SendEmail implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['emailTo'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -392,7 +388,7 @@ class SendEmail implements ModelInterface, ArrayAccess
/**
* Sets attachment
*
- * @param \SendinBlue\Client\Model\SendEmailAttachment[] $attachment Pass the list of content (base64 encoded) and name of the attachment. For example, `[{\"content\":\"base64 encoded content 1\", \"name\":\"attcahment1\"}, {\"content\":\"base64 encoded content 2\", \"name\":\"attcahment2\"}]`
+ * @param \SendinBlue\Client\Model\SendEmailAttachment[] $attachment Pass the list of content (base64 encoded) and name of the attachment. For example, [{'content':'base64 encoded content 1', 'name':'attcahment1'}, {'content':'base64 encoded content 2', 'name':'attcahment2'}].
*
* @return $this
*/
@@ -416,7 +412,7 @@ class SendEmail implements ModelInterface, ArrayAccess
/**
* Sets headers
*
- * @param object $headers Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, `{\"Content-Type\":\"text/html\", \"charset\":\"iso-8859-1\", \"sender.ip\":\"1.2.3.4\"}`
+ * @param object $headers Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, {'Content-Type':'text/html', 'charset':'iso-8859-1', 'sender.ip':'1.2.3.4'}
*
* @return $this
*/
@@ -440,7 +436,7 @@ class SendEmail implements ModelInterface, ArrayAccess
/**
* Sets attributes
*
- * @param object $attributes Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}
+ * @param object $attributes Pass the set of attributes to customize the template. For example, {'FNAME':'Joe', 'LNAME':'Doe'}
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php
index a36e8ef..15bbdf5 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -216,17 +216,7 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['content'] === null) {
- return false;
- }
- if (!preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $this->container['content'])) {
- return false;
- }
- if ($this->container['name'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReport.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReport.php
index 73f77c2..e9949be 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReport.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReport.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -219,7 +219,7 @@ class SendReport implements ModelInterface, ArrayAccess
$invalidProperties = [];
$allowedValues = $this->getLanguageAllowableValues();
- if (!in_array($this->container['language'], $allowedValues)) {
+ if (!is_null($this->container['language']) && !in_array($this->container['language'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'language', must be one of '%s'",
implode("', '", $allowedValues)
@@ -240,15 +240,7 @@ class SendReport implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- $allowedValues = $this->getLanguageAllowableValues();
- if (!in_array($this->container['language'], $allowedValues)) {
- return false;
- }
- if ($this->container['email'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -272,7 +264,7 @@ class SendReport implements ModelInterface, ArrayAccess
public function setLanguage($language)
{
$allowedValues = $this->getLanguageAllowableValues();
- if (!is_null($language) && !in_array($language, $allowedValues)) {
+ if (!is_null($language) && !in_array($language, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'language', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php
index 0f42a2d..e145810 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -242,7 +242,7 @@ class SendReportEmail implements ModelInterface, ArrayAccess
$invalidProperties[] = "'to' can't be null";
}
$allowedValues = $this->getContentTypeAllowableValues();
- if (!in_array($this->container['contentType'], $allowedValues)) {
+ if (!is_null($this->container['contentType']) && !in_array($this->container['contentType'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'contentType', must be one of '%s'",
implode("', '", $allowedValues)
@@ -263,21 +263,7 @@ class SendReportEmail implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['subject'] === null) {
- return false;
- }
- if ($this->container['to'] === null) {
- return false;
- }
- $allowedValues = $this->getContentTypeAllowableValues();
- if (!in_array($this->container['contentType'], $allowedValues)) {
- return false;
- }
- if ($this->container['body'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -349,7 +335,7 @@ class SendReportEmail implements ModelInterface, ArrayAccess
public function setContentType($contentType)
{
$allowedValues = $this->getContentTypeAllowableValues();
- if (!is_null($contentType) && !in_array($contentType, $allowedValues)) {
+ if (!is_null($contentType) && !in_array($contentType, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'contentType', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSms.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSms.php
index f6c3e71..c991b8a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSms.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSms.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -230,14 +230,7 @@ class SendSms implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['reference'] === null) {
- return false;
- }
- if ($this->container['messageId'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php
index c9c6c9c..81f0047 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -275,11 +275,7 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['to'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -320,7 +316,7 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess
/**
* Sets to
*
- * @param \SendinBlue\Client\Model\SendSmtpEmailTo[] $to List of email addresses and names (optional) of the recipients. For example, `[{\"name\":\"Jimmy\", \"email\":\"jimmy98@example.com\"}, {\"name\":\"Joe\", \"email\":\"joe@example.com\"}]`
+ * @param \SendinBlue\Client\Model\SendSmtpEmailTo[] $to List of email addresses and names (optional) of the recipients. For example, [{'name':'Jimmy', 'email':'jimmy98@example.com'}, {'name':'Joe', 'email':'joe@example.com'}]
*
* @return $this
*/
@@ -488,7 +484,7 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess
/**
* Sets attachment
*
- * @param \SendinBlue\Client\Model\SendSmtpEmailAttachment[] $attachment Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps and odt ( If 'templateId' is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then 'attachment' is ignored )
+ * @param \SendinBlue\Client\Model\SendSmtpEmailAttachment[] $attachment Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored )
*
* @return $this
*/
@@ -512,7 +508,7 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess
/**
* Sets headers
*
- * @param object $headers Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, `{\"Content-Type\":\"text/html\", \"charset\":\"iso-8859-1\", \"sender.ip\":\"1.2.3.4\"}`
+ * @param object $headers Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\"}`.
*
* @return $this
*/
@@ -560,7 +556,7 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess
/**
* Sets params
*
- * @param object $params Pass the set of attributes to customize the template. For example, `{\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}`. It's considered only if template is in New Template Language format.
+ * @param object $params Pass the set of attributes to customize the template. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. It's considered only if template is in New Template Language format. Alternatively, you can pass the set of attributes to customize the template for each recipient. For this the email will be the key and its value will be a JSON containing attributes specific to each recipient. For example, `{'abc@example.com':{'name':'ABC', 'age':21}, 'xyz@example.com':{'name':'XYZ', 'age':25}}`
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php
index 48909d1..1bc49fd 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -216,11 +216,7 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if (!preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $this->container['content'])) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php
index 50d5a20..9861837 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -209,11 +209,7 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -254,7 +250,7 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess
/**
* Sets name
*
- * @param string $name Name of the recipient in bcc
+ * @param string $name Name of the recipient in bcc. Maximum allowed characters are 70.
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php
index c73cc01..9104228 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -209,11 +209,7 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -254,7 +250,7 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess
/**
* Sets name
*
- * @param string $name Name of the recipient in cc
+ * @param string $name Name of the recipient in cc. Maximum allowed characters are 70.
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php
index ded04bc..8bee479 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
* SendSmtpEmailReplyTo Class Doc Comment
*
* @category Class
- * @description Email (required), along with name (optional), on which transactional mail recipients will be able to reply back. For example, `{\"email':'ann6533@example.com', 'name':'Ann'}`
+ * @description Email (required), along with name (optional), on which transactional mail recipients will be able to reply back. For example, {'email':'ann6533@example.com', 'name':'Ann'}.
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -210,11 +210,7 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -255,7 +251,7 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess
/**
* Sets name
*
- * @param string $name Name in reply to
+ * @param string $name Name in reply to. Maximum allowed characters are 70.
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php
index ce50e46..e146ea4 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
* SendSmtpEmailSender Class Doc Comment
*
* @category Class
- * @description Mandatory if 'templateId' is not passed. Pass name (optional) and email of sender from which emails will be sent. For example, `{\"name\":\"Mary from MyShop\", \"email\":\"no-reply@myshop.com\"}`
+ * @description Mandatory if 'templateId' is not passed. Pass name (optional) and email of sender from which emails will be sent. For example, {'name':'Mary from MyShop', 'email':'no-reply@myshop.com'}
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -210,11 +210,7 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -231,7 +227,7 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess
/**
* Sets name
*
- * @param string $name Name of the sender from which the emails will be sent
+ * @param string $name Name of the sender from which the emails will be sent. Maximum allowed characters are 70.
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php
index eec8a18..dd046a5 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -209,11 +209,7 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['email'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -254,7 +250,7 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess
/**
* Sets name
*
- * @param string $name Name of the recipient
+ * @param string $name Name of the recipient. Maximum allowed characters are 70.
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php
index 7dac243..8fa7c5a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -203,11 +203,7 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['messageId'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php
index 4131759..126c77f 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class SendTestEmail implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php
index f2576d3..b9e957b 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class SendTestSms implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php
index 44b9201..01420c8 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -237,7 +237,7 @@ class SendTransacSms implements ModelInterface, ArrayAccess
if ($this->container['sender'] === null) {
$invalidProperties[] = "'sender' can't be null";
}
- if ((strlen($this->container['sender']) > 11)) {
+ if ((mb_strlen($this->container['sender']) > 11)) {
$invalidProperties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11.";
}
@@ -248,7 +248,7 @@ class SendTransacSms implements ModelInterface, ArrayAccess
$invalidProperties[] = "'content' can't be null";
}
$allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
+ if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'type', must be one of '%s'",
implode("', '", $allowedValues)
@@ -266,24 +266,7 @@ class SendTransacSms implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['sender'] === null) {
- return false;
- }
- if (strlen($this->container['sender']) > 11) {
- return false;
- }
- if ($this->container['recipient'] === null) {
- return false;
- }
- if ($this->container['content'] === null) {
- return false;
- }
- $allowedValues = $this->getTypeAllowableValues();
- if (!in_array($this->container['type'], $allowedValues)) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -306,7 +289,7 @@ class SendTransacSms implements ModelInterface, ArrayAccess
*/
public function setSender($sender)
{
- if ((strlen($sender) > 11)) {
+ if ((mb_strlen($sender) > 11)) {
throw new \InvalidArgumentException('invalid length for $sender when calling SendTransacSms., must be smaller than or equal to 11.');
}
@@ -383,7 +366,7 @@ class SendTransacSms implements ModelInterface, ArrayAccess
public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
- if (!is_null($type) && !in_array($type, $allowedValues)) {
+ if (!is_null($type) && !in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'type', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php
index 7228a81..a26ef99 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -206,8 +206,7 @@ class UpdateAttribute implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -248,7 +247,7 @@ class UpdateAttribute implements ModelInterface, ArrayAccess
/**
* Sets enumeration
*
- * @param \SendinBlue\Client\Model\UpdateAttributeEnumeration[] $enumeration List of the values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, `[{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}]`
+ * @param \SendinBlue\Client\Model\UpdateAttributeEnumeration[] $enumeration List of the values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, [{'value':1, 'label':'male'}, {'value':2, 'label':'female'}]
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php
index 7c67fbc..0023dad 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,14 +212,7 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['value'] === null) {
- return false;
- }
- if ($this->container['label'] === null) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php
index 4dcac9a..d4d0168 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -218,7 +218,7 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess
$invalidProperties = [];
$allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
+ if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'status', must be one of '%s'",
implode("', '", $allowedValues)
@@ -236,12 +236,7 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- $allowedValues = $this->getStatusAllowableValues();
- if (!in_array($this->container['status'], $allowedValues)) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -265,7 +260,7 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess
public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
- if (!is_null($status) && !in_array($status, $allowedValues)) {
+ if (!is_null($status) && !in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'status', must be one of '%s'",
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php
index 2af8482..7ab3c77 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -224,8 +224,7 @@ class UpdateChild implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php
index c5153ef..6e4ed51 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,8 +212,7 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -230,7 +229,7 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess
/**
* Sets transactionalEmail
*
- * @param bool $transactionalEmail Status of Transactional Email (SMTP) Platform activation for your account (true=enabled, false=disabled)
+ * @param bool $transactionalEmail Status of Transactional Email Platform activation for your account (true=enabled, false=disabled)
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php
index 36d4fae..9e3f8b2 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -200,8 +200,7 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php
index c59691d..cf69fb7 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -230,8 +230,7 @@ class UpdateContact implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -248,7 +247,7 @@ class UpdateContact implements ModelInterface, ArrayAccess
/**
* Sets attributes
*
- * @param object $attributes Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, `{\"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}`
+ * @param object $attributes Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, { 'EMAIL':'newemail@domain.com', 'FNAME':'Ellie', 'LNAME':'Roger'} `{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}`. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in \"SMS\" field should be passed with proper country code. For example {'SMS':'+91xxxxxxxxxx'} or {'SMS':'0091xxxxxxxxxx'}
*
* @return $this
*/
@@ -368,7 +367,7 @@ class UpdateContact implements ModelInterface, ArrayAccess
/**
* Sets smtpBlacklistSender
*
- * @param string[] $smtpBlacklistSender SMTP forbidden sender for contact. Use only for email Contact
+ * @param string[] $smtpBlacklistSender transactional email forbidden sender for contact. Use only for email Contact
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php
index d1683bb..30edd3c 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -81,7 +81,10 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
'subjectB' => 'string',
'splitRule' => 'int',
'winnerCriteria' => 'string',
- 'winnerDelay' => 'int'
+ 'winnerDelay' => 'int',
+ 'ipWarmupEnable' => 'bool',
+ 'initialQuota' => 'int',
+ 'increaseRate' => 'int'
];
/**
@@ -114,7 +117,10 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
'subjectB' => null,
'splitRule' => 'int64',
'winnerCriteria' => null,
- 'winnerDelay' => 'int64'
+ 'winnerDelay' => 'int64',
+ 'ipWarmupEnable' => null,
+ 'initialQuota' => 'int64',
+ 'increaseRate' => 'int64'
];
/**
@@ -168,7 +174,10 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
'subjectB' => 'subjectB',
'splitRule' => 'splitRule',
'winnerCriteria' => 'winnerCriteria',
- 'winnerDelay' => 'winnerDelay'
+ 'winnerDelay' => 'winnerDelay',
+ 'ipWarmupEnable' => 'ipWarmupEnable',
+ 'initialQuota' => 'initialQuota',
+ 'increaseRate' => 'increaseRate'
];
/**
@@ -201,7 +210,10 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
'subjectB' => 'setSubjectB',
'splitRule' => 'setSplitRule',
'winnerCriteria' => 'setWinnerCriteria',
- 'winnerDelay' => 'setWinnerDelay'
+ 'winnerDelay' => 'setWinnerDelay',
+ 'ipWarmupEnable' => 'setIpWarmupEnable',
+ 'initialQuota' => 'setInitialQuota',
+ 'increaseRate' => 'setIncreaseRate'
];
/**
@@ -234,7 +246,10 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
'subjectB' => 'getSubjectB',
'splitRule' => 'getSplitRule',
'winnerCriteria' => 'getWinnerCriteria',
- 'winnerDelay' => 'getWinnerDelay'
+ 'winnerDelay' => 'getWinnerDelay',
+ 'ipWarmupEnable' => 'getIpWarmupEnable',
+ 'initialQuota' => 'getInitialQuota',
+ 'increaseRate' => 'getIncreaseRate'
];
/**
@@ -337,6 +352,9 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
$this->container['splitRule'] = isset($data['splitRule']) ? $data['splitRule'] : null;
$this->container['winnerCriteria'] = isset($data['winnerCriteria']) ? $data['winnerCriteria'] : null;
$this->container['winnerDelay'] = isset($data['winnerDelay']) ? $data['winnerDelay'] : null;
+ $this->container['ipWarmupEnable'] = isset($data['ipWarmupEnable']) ? $data['ipWarmupEnable'] : false;
+ $this->container['initialQuota'] = isset($data['initialQuota']) ? $data['initialQuota'] : null;
+ $this->container['increaseRate'] = isset($data['increaseRate']) ? $data['increaseRate'] : null;
}
/**
@@ -357,7 +375,7 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
}
$allowedValues = $this->getWinnerCriteriaAllowableValues();
- if (!in_array($this->container['winnerCriteria'], $allowedValues)) {
+ if (!is_null($this->container['winnerCriteria']) && !in_array($this->container['winnerCriteria'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'winnerCriteria', must be one of '%s'",
implode("', '", $allowedValues)
@@ -372,6 +390,14 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
$invalidProperties[] = "invalid value for 'winnerDelay', must be bigger than or equal to 1.";
}
+ if (!is_null($this->container['increaseRate']) && ($this->container['increaseRate'] > 100)) {
+ $invalidProperties[] = "invalid value for 'increaseRate', must be smaller than or equal to 100.";
+ }
+
+ if (!is_null($this->container['increaseRate']) && ($this->container['increaseRate'] < 0)) {
+ $invalidProperties[] = "invalid value for 'increaseRate', must be bigger than or equal to 0.";
+ }
+
return $invalidProperties;
}
@@ -383,24 +409,7 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if ($this->container['splitRule'] > 50) {
- return false;
- }
- if ($this->container['splitRule'] < 1) {
- return false;
- }
- $allowedValues = $this->getWinnerCriteriaAllowableValues();
- if (!in_array($this->container['winnerCriteria'], $allowedValues)) {
- return false;
- }
- if ($this->container['winnerDelay'] > 168) {
- return false;
- }
- if ($this->container['winnerDelay'] < 1) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -609,7 +618,7 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
/**
* Sets toField
*
- * @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization
+ * @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization
*
* @return $this
*/
@@ -825,7 +834,7 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
/**
* Sets params
*
- * @param object $params Pass the set of attributes to customize the type 'classic' campaign. For example, `{\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}`. The 'params' field will get updated, only if the campaign is in New Template Language, else ignored. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name' & 'toField'
+ * @param object $params Pass the set of attributes to customize the type 'classic' campaign. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. The 'params' field will get updated, only if the campaign is in New Template Language, else ignored. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name' & 'toField'
*
* @return $this
*/
@@ -984,7 +993,7 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
public function setWinnerCriteria($winnerCriteria)
{
$allowedValues = $this->getWinnerCriteriaAllowableValues();
- if (!is_null($winnerCriteria) && !in_array($winnerCriteria, $allowedValues)) {
+ if (!is_null($winnerCriteria) && !in_array($winnerCriteria, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'winnerCriteria', must be one of '%s'",
@@ -1028,6 +1037,86 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess
return $this;
}
+
+ /**
+ * Gets ipWarmupEnable
+ *
+ * @return bool
+ */
+ public function getIpWarmupEnable()
+ {
+ return $this->container['ipWarmupEnable'];
+ }
+
+ /**
+ * Sets ipWarmupEnable
+ *
+ * @param bool $ipWarmupEnable Available for dedicated ip clients. Set this to true if you wish to warm up your ip.
+ *
+ * @return $this
+ */
+ public function setIpWarmupEnable($ipWarmupEnable)
+ {
+ $this->container['ipWarmupEnable'] = $ipWarmupEnable;
+
+ return $this;
+ }
+
+ /**
+ * Gets initialQuota
+ *
+ * @return int
+ */
+ public function getInitialQuota()
+ {
+ return $this->container['initialQuota'];
+ }
+
+ /**
+ * Sets initialQuota
+ *
+ * @param int $initialQuota Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000.
+ *
+ * @return $this
+ */
+ public function setInitialQuota($initialQuota)
+ {
+ $this->container['initialQuota'] = $initialQuota;
+
+ return $this;
+ }
+
+ /**
+ * Gets increaseRate
+ *
+ * @return int
+ */
+ public function getIncreaseRate()
+ {
+ return $this->container['increaseRate'];
+ }
+
+ /**
+ * Sets increaseRate
+ *
+ * @param int $increaseRate Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%.
+ *
+ * @return $this
+ */
+ public function setIncreaseRate($increaseRate)
+ {
+
+ if (!is_null($increaseRate) && ($increaseRate > 100)) {
+ throw new \InvalidArgumentException('invalid value for $increaseRate when calling UpdateEmailCampaign., must be smaller than or equal to 100.');
+ }
+ if (!is_null($increaseRate) && ($increaseRate < 0)) {
+ throw new \InvalidArgumentException('invalid value for $increaseRate when calling UpdateEmailCampaign., must be bigger than or equal to 0.');
+ }
+
+ $this->container['increaseRate'] = $increaseRate;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php
index d933339..07b0a4a 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -207,8 +207,7 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php
index 6c40fd8..7049b81 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
* UpdateEmailCampaignSender Class Doc Comment
*
* @category Class
- * @description Sender details including email and/or name. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}`
+ * @description Sender details including id or email and name (optional). Only one of either Sender's email or Sender's ID shall be passed in one request at a time. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` , `{\"name\":\"xyz\", \"id\":123}`
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -59,7 +59,8 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerTypes = [
'name' => 'string',
- 'email' => 'string'
+ 'email' => 'string',
+ 'id' => 'int'
];
/**
@@ -69,7 +70,8 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerFormats = [
'name' => null,
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => 'int64'
];
/**
@@ -100,7 +102,8 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
protected static $attributeMap = [
'name' => 'name',
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => 'id'
];
/**
@@ -110,7 +113,8 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
protected static $setters = [
'name' => 'setName',
- 'email' => 'setEmail'
+ 'email' => 'setEmail',
+ 'id' => 'setId'
];
/**
@@ -120,7 +124,8 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
protected static $getters = [
'name' => 'getName',
- 'email' => 'getEmail'
+ 'email' => 'getEmail',
+ 'id' => 'getId'
];
/**
@@ -185,6 +190,7 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess
{
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
}
/**
@@ -207,8 +213,7 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -259,6 +264,30 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess
return $this;
}
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id Select the sender for the campaign on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email).
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateList.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateList.php
index 1055fa9..325f0a1 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateList.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateList.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -206,8 +206,7 @@ class UpdateList implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php
index 0a3b855..38ffdef 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -212,8 +212,7 @@ class UpdateSender implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php
index 4a8322f..55ad73e 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -213,7 +213,7 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess
{
$invalidProperties = [];
- if (!is_null($this->container['sender']) && (strlen($this->container['sender']) > 11)) {
+ if (!is_null($this->container['sender']) && (mb_strlen($this->container['sender']) > 11)) {
$invalidProperties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11.";
}
@@ -228,11 +228,7 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- if (strlen($this->container['sender']) > 11) {
- return false;
- }
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -279,7 +275,7 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess
*/
public function setSender($sender)
{
- if (!is_null($sender) && (strlen($sender) > 11)) {
+ if (!is_null($sender) && (mb_strlen($sender) > 11)) {
throw new \InvalidArgumentException('invalid length for $sender when calling UpdateSmsCampaign., must be smaller than or equal to 11.');
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php
index ebebe21..abe79d0 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -254,8 +254,7 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -440,7 +439,7 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess
/**
* Sets toField
*
- * @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add `{FNAME} {LNAME}`. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use `{{contact.FNAME}} {{contact.LNAME}}` for personalization
+ * @param string $toField To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization
*
* @return $this
*/
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php
index f675d27..6b71098 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -36,7 +36,7 @@ use \SendinBlue\Client\ObjectSerializer;
* UpdateSmtpTemplateSender Class Doc Comment
*
* @category Class
- * @description Sender details including email and/or name. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}`
+ * @description Sender details including id or email and name (optional). Only one of either Sender's email or Sender's ID shall be passed in one request at a time. For example `{\"name\":\"xyz\", \"email\":\"example@abc.com\"}` , `{\"name\":\"xyz\", \"id\":123}`
* @package SendinBlue\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
@@ -59,7 +59,8 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerTypes = [
'name' => 'string',
- 'email' => 'string'
+ 'email' => 'string',
+ 'id' => 'int'
];
/**
@@ -69,7 +70,8 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
protected static $swaggerFormats = [
'name' => null,
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => 'int64'
];
/**
@@ -100,7 +102,8 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
protected static $attributeMap = [
'name' => 'name',
- 'email' => 'email'
+ 'email' => 'email',
+ 'id' => 'id'
];
/**
@@ -110,7 +113,8 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
protected static $setters = [
'name' => 'setName',
- 'email' => 'setEmail'
+ 'email' => 'setEmail',
+ 'id' => 'setId'
];
/**
@@ -120,7 +124,8 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
protected static $getters = [
'name' => 'getName',
- 'email' => 'getEmail'
+ 'email' => 'getEmail',
+ 'id' => 'getId'
];
/**
@@ -185,6 +190,7 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess
{
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
+ $this->container['id'] = isset($data['id']) ? $data['id'] : null;
}
/**
@@ -207,8 +213,7 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
@@ -259,6 +264,30 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess
return $this;
}
+
+ /**
+ * Gets id
+ *
+ * @return int
+ */
+ public function getId()
+ {
+ return $this->container['id'];
+ }
+
+ /**
+ * Sets id
+ *
+ * @param int $id Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email).
+ *
+ * @return $this
+ */
+ public function setId($id)
+ {
+ $this->container['id'] = $id;
+
+ return $this;
+ }
/**
* Returns true if offset exists. False otherwise.
*
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php
index 9e2012e..f6adcbe 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -181,6 +181,8 @@ class UpdateWebhook implements ModelInterface, ArrayAccess
const EVENTS_UNIQUE_OPENED = 'uniqueOpened';
const EVENTS_UNSUBSCRIBED = 'unsubscribed';
const EVENTS_LIST_ADDITION = 'listAddition';
+ const EVENTS_CONTACT_UPDATED = 'contactUpdated';
+ const EVENTS_CONTACT_DELETED = 'contactDeleted';
@@ -205,6 +207,8 @@ class UpdateWebhook implements ModelInterface, ArrayAccess
self::EVENTS_UNIQUE_OPENED,
self::EVENTS_UNSUBSCRIBED,
self::EVENTS_LIST_ADDITION,
+ self::EVENTS_CONTACT_UPDATED,
+ self::EVENTS_CONTACT_DELETED,
];
}
@@ -249,8 +253,7 @@ class UpdateWebhook implements ModelInterface, ArrayAccess
*/
public function valid()
{
-
- return true;
+ return count($this->listInvalidProperties()) === 0;
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ObjectSerializer.php b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ObjectSerializer.php
index 3068625..8af09f3 100644
--- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ObjectSerializer.php
+++ b/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ObjectSerializer.php
@@ -13,12 +13,12 @@
/**
* SendinBlue API
*
- * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
+ * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* Contact: contact@sendinblue.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
- * Swagger Codegen version: 2.3.1
+ * Swagger Codegen version: 2.4.12
*/
/**
@@ -59,6 +59,11 @@ class ObjectSerializer
$data[$property] = self::sanitizeForSerialization($value);
}
return $data;
+ } elseif ($data instanceof \stdClass) {
+ foreach ($data as $property => $value) {
+ $data->$property = self::sanitizeForSerialization($value);
+ }
+ return $data;
} elseif (is_object($data)) {
$values = [];
$formats = $data::swaggerFormats();
@@ -68,7 +73,7 @@ class ObjectSerializer
if ($value !== null
&& !in_array($swaggerType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)
&& method_exists($swaggerType, 'getAllowableEnumValues')
- && !in_array($value, $swaggerType::getAllowableEnumValues())) {
+ && !in_array($value, $swaggerType::getAllowableEnumValues(), true)) {
$imploded = implode("', '", $swaggerType::getAllowableEnumValues());
throw new \InvalidArgumentException("Invalid value for enum '$swaggerType', must be one of: '$imploded'");
}
@@ -271,7 +276,7 @@ class ObjectSerializer
// determine file name
if (array_key_exists('Content-Disposition', $httpHeaders) &&
preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)) {
- $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . self::sanitizeFilename($match[1]);
+ $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . DIRECTORY_SEPARATOR . self::sanitizeFilename($match[1]);
} else {
$filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), '');
}
@@ -284,7 +289,7 @@ class ObjectSerializer
return new \SplFileObject($filename, 'r');
} elseif (method_exists($class, 'getAllowableEnumValues')) {
- if (!in_array($data, $class::getAllowableEnumValues())) {
+ if (!in_array($data, $class::getAllowableEnumValues(), true)) {
$imploded = implode("', '", $class::getAllowableEnumValues());
throw new \InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'");
}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/Idn.php b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/Idn.php
new file mode 100644
index 0000000..adb718d
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/Idn.php
@@ -0,0 +1,283 @@
+
+ * @author Sebastian Kroczek
+ * @author Dmitry Lukashin
+ * @author Laurent Bassin
+ *
+ * @internal
+ */
+final class Idn
+{
+ const INTL_IDNA_VARIANT_2003 = 0;
+ const INTL_IDNA_VARIANT_UTS46 = 1;
+
+ private static $encodeTable = array(
+ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
+ 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
+ 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
+ );
+
+ private static $decodeTable = array(
+ 'a' => 0, 'b' => 1, 'c' => 2, 'd' => 3, 'e' => 4, 'f' => 5,
+ 'g' => 6, 'h' => 7, 'i' => 8, 'j' => 9, 'k' => 10, 'l' => 11,
+ 'm' => 12, 'n' => 13, 'o' => 14, 'p' => 15, 'q' => 16, 'r' => 17,
+ 's' => 18, 't' => 19, 'u' => 20, 'v' => 21, 'w' => 22, 'x' => 23,
+ 'y' => 24, 'z' => 25, '0' => 26, '1' => 27, '2' => 28, '3' => 29,
+ '4' => 30, '5' => 31, '6' => 32, '7' => 33, '8' => 34, '9' => 35,
+ );
+
+ public static function idn_to_ascii($domain, $options, $variant, &$idna_info = array())
+ {
+ if (\PHP_VERSION_ID >= 70200 && self::INTL_IDNA_VARIANT_2003 === $variant) {
+ @trigger_error('idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated', E_USER_DEPRECATED);
+ }
+
+ if (self::INTL_IDNA_VARIANT_UTS46 === $variant) {
+ $domain = mb_strtolower($domain, 'utf-8');
+ }
+
+ $parts = explode('.', $domain);
+
+ foreach ($parts as $i => &$part) {
+ if ('' === $part && \count($parts) > 1 + $i) {
+ return false;
+ }
+ if (false === $part = self::encodePart($part)) {
+ return false;
+ }
+ }
+
+ $output = implode('.', $parts);
+
+ $idna_info = array(
+ 'result' => \strlen($output) > 255 ? false : $output,
+ 'isTransitionalDifferent' => false,
+ 'errors' => 0,
+ );
+
+ return $idna_info['result'];
+ }
+
+ public static function idn_to_utf8($domain, $options, $variant, &$idna_info = array())
+ {
+ if (\PHP_VERSION_ID >= 70200 && self::INTL_IDNA_VARIANT_2003 === $variant) {
+ @trigger_error('idn_to_utf8(): INTL_IDNA_VARIANT_2003 is deprecated', E_USER_DEPRECATED);
+ }
+
+ $parts = explode('.', $domain);
+
+ foreach ($parts as &$part) {
+ $length = \strlen($part);
+ if ($length < 1 || 63 < $length) {
+ continue;
+ }
+ if (0 !== strpos($part, 'xn--')) {
+ continue;
+ }
+
+ $part = substr($part, 4);
+ $part = self::decodePart($part);
+ }
+
+ $output = implode('.', $parts);
+
+ $idna_info = array(
+ 'result' => \strlen($output) > 255 ? false : $output,
+ 'isTransitionalDifferent' => false,
+ 'errors' => 0,
+ );
+
+ return $idna_info['result'];
+ }
+
+ private static function encodePart($input)
+ {
+ $codePoints = self::listCodePoints($input);
+
+ $n = 128;
+ $bias = 72;
+ $delta = 0;
+ $h = $b = \count($codePoints['basic']);
+
+ $output = '';
+ foreach ($codePoints['basic'] as $code) {
+ $output .= mb_chr($code, 'utf-8');
+ }
+ if ($input === $output) {
+ return $output;
+ }
+ if ($b > 0) {
+ $output .= '-';
+ }
+
+ $codePoints['nonBasic'] = array_unique($codePoints['nonBasic']);
+ sort($codePoints['nonBasic']);
+
+ $i = 0;
+ $length = mb_strlen($input, 'utf-8');
+ while ($h < $length) {
+ $m = $codePoints['nonBasic'][$i++];
+ $delta += ($m - $n) * ($h + 1);
+ $n = $m;
+
+ foreach ($codePoints['all'] as $c) {
+ if ($c < $n || $c < 128) {
+ ++$delta;
+ }
+ if ($c === $n) {
+ $q = $delta;
+ for ($k = 36;; $k += 36) {
+ $t = self::calculateThreshold($k, $bias);
+ if ($q < $t) {
+ break;
+ }
+
+ $code = $t + (($q - $t) % (36 - $t));
+ $output .= self::$encodeTable[$code];
+
+ $q = ($q - $t) / (36 - $t);
+ }
+
+ $output .= self::$encodeTable[$q];
+ $bias = self::adapt($delta, $h + 1, ($h === $b));
+ $delta = 0;
+ ++$h;
+ }
+ }
+
+ ++$delta;
+ ++$n;
+ }
+
+ $output = 'xn--'.$output;
+
+ return \strlen($output) < 1 || 63 < \strlen($output) ? false : strtolower($output);
+ }
+
+ private static function listCodePoints($input)
+ {
+ $codePoints = array(
+ 'all' => array(),
+ 'basic' => array(),
+ 'nonBasic' => array(),
+ );
+
+ $length = mb_strlen($input, 'utf-8');
+ for ($i = 0; $i < $length; ++$i) {
+ $char = mb_substr($input, $i, 1, 'utf-8');
+ $code = mb_ord($char, 'utf-8');
+ if ($code < 128) {
+ $codePoints['all'][] = $codePoints['basic'][] = $code;
+ } else {
+ $codePoints['all'][] = $codePoints['nonBasic'][] = $code;
+ }
+ }
+
+ return $codePoints;
+ }
+
+ private static function calculateThreshold($k, $bias)
+ {
+ if ($k <= $bias + 1) {
+ return 1;
+ }
+ if ($k >= $bias + 26) {
+ return 26;
+ }
+
+ return $k - $bias;
+ }
+
+ private static function adapt($delta, $numPoints, $firstTime)
+ {
+ $delta = (int) ($firstTime ? $delta / 700 : $delta / 2);
+ $delta += (int) ($delta / $numPoints);
+
+ $k = 0;
+ while ($delta > 35 * 13) {
+ $delta = (int) ($delta / 35);
+ $k = $k + 36;
+ }
+
+ return $k + (int) (36 * $delta / ($delta + 38));
+ }
+
+ private static function decodePart($input)
+ {
+ $n = 128;
+ $i = 0;
+ $bias = 72;
+ $output = '';
+
+ $pos = strrpos($input, '-');
+ if (false !== $pos) {
+ $output = substr($input, 0, $pos++);
+ } else {
+ $pos = 0;
+ }
+
+ $outputLength = \strlen($output);
+ $inputLength = \strlen($input);
+
+ while ($pos < $inputLength) {
+ $oldi = $i;
+ $w = 1;
+
+ for ($k = 36;; $k += 36) {
+ $digit = self::$decodeTable[$input[$pos++]];
+ $i += $digit * $w;
+ $t = self::calculateThreshold($k, $bias);
+
+ if ($digit < $t) {
+ break;
+ }
+
+ $w *= 36 - $t;
+ }
+
+ $bias = self::adapt($i - $oldi, ++$outputLength, 0 === $oldi);
+ $n = $n + (int) ($i / $outputLength);
+ $i = $i % $outputLength;
+ $output = mb_substr($output, 0, $i, 'utf-8').mb_chr($n, 'utf-8').mb_substr($output, $i, $outputLength - 1, 'utf-8');
+
+ ++$i;
+ }
+
+ return $output;
+ }
+}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/LICENSE b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/LICENSE
new file mode 100644
index 0000000..3f853aa
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2018-2019 Fabien Potencier
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/bootstrap.php b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/bootstrap.php
new file mode 100644
index 0000000..b29d4e5
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/bootstrap.php
@@ -0,0 +1,61 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+use Symfony\Polyfill\Intl\Idn as p;
+
+if (!defined('IDNA_DEFAULT')) {
+ define('U_IDNA_PROHIBITED_ERROR', 66560);
+ define('U_IDNA_ERROR_START', 66560);
+ define('U_IDNA_UNASSIGNED_ERROR', 66561);
+ define('U_IDNA_CHECK_BIDI_ERROR', 66562);
+ define('U_IDNA_STD3_ASCII_RULES_ERROR', 66563);
+ define('U_IDNA_ACE_PREFIX_ERROR', 66564);
+ define('U_IDNA_VERIFICATION_ERROR', 66565);
+ define('U_IDNA_LABEL_TOO_LONG_ERROR', 66566);
+ define('U_IDNA_ZERO_LENGTH_LABEL_ERROR', 66567);
+ define('U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR', 66568);
+ define('U_IDNA_ERROR_LIMIT', 66569);
+ define('U_STRINGPREP_PROHIBITED_ERROR', 66560);
+ define('U_STRINGPREP_UNASSIGNED_ERROR', 66561);
+ define('U_STRINGPREP_CHECK_BIDI_ERROR', 66562);
+ define('IDNA_DEFAULT', 0);
+ define('IDNA_ALLOW_UNASSIGNED', 1);
+ define('IDNA_USE_STD3_RULES', 2);
+ define('IDNA_CHECK_BIDI', 4);
+ define('IDNA_CHECK_CONTEXTJ', 8);
+ define('IDNA_NONTRANSITIONAL_TO_ASCII', 16);
+ define('IDNA_NONTRANSITIONAL_TO_UNICODE', 32);
+ define('INTL_IDNA_VARIANT_2003', 0);
+ define('INTL_IDNA_VARIANT_UTS46', 1);
+ define('IDNA_ERROR_EMPTY_LABEL', 1);
+ define('IDNA_ERROR_LABEL_TOO_LONG', 2);
+ define('IDNA_ERROR_DOMAIN_NAME_TOO_LONG', 4);
+ define('IDNA_ERROR_LEADING_HYPHEN', 8);
+ define('IDNA_ERROR_TRAILING_HYPHEN', 16);
+ define('IDNA_ERROR_HYPHEN_3_4', 32);
+ define('IDNA_ERROR_LEADING_COMBINING_MARK', 64);
+ define('IDNA_ERROR_DISALLOWED', 128);
+ define('IDNA_ERROR_PUNYCODE', 256);
+ define('IDNA_ERROR_LABEL_HAS_DOT', 512);
+ define('IDNA_ERROR_INVALID_ACE_LABEL', 1024);
+ define('IDNA_ERROR_BIDI', 2048);
+ define('IDNA_ERROR_CONTEXTJ', 4096);
+}
+
+if (!function_exists('idn_to_ascii')) {
+ if (PHP_VERSION_ID < 70400) {
+ function idn_to_ascii($domain, $options = IDNA_DEFAULT, $variant = INTL_IDNA_VARIANT_2003, &$idna_info = array()) { return p\Idn::idn_to_ascii($domain, $options, $variant, $idna_info); }
+ function idn_to_utf8($domain, $options = IDNA_DEFAULT, $variant = INTL_IDNA_VARIANT_2003, &$idna_info = array()) { return p\Idn::idn_to_utf8($domain, $options, $variant, $idna_info); }
+ } else {
+ function idn_to_ascii($domain, $options = IDNA_DEFAULT, $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info = array()) { return p\Idn::idn_to_ascii($domain, $options, $variant, $idna_info); }
+ function idn_to_utf8($domain, $options = IDNA_DEFAULT, $variant = INTL_IDNA_VARIANT_UTS46, &$idna_info = array()) { return p\Idn::idn_to_utf8($domain, $options, $variant, $idna_info); }
+ }
+}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/LICENSE b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/LICENSE
new file mode 100644
index 0000000..4cd8bdd
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2015-2019 Fabien Potencier
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Mbstring.php b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Mbstring.php
new file mode 100644
index 0000000..15503bc
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Mbstring.php
@@ -0,0 +1,847 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Polyfill\Mbstring;
+
+/**
+ * Partial mbstring implementation in PHP, iconv based, UTF-8 centric.
+ *
+ * Implemented:
+ * - mb_chr - Returns a specific character from its Unicode code point
+ * - mb_convert_encoding - Convert character encoding
+ * - mb_convert_variables - Convert character code in variable(s)
+ * - mb_decode_mimeheader - Decode string in MIME header field
+ * - mb_encode_mimeheader - Encode string for MIME header XXX NATIVE IMPLEMENTATION IS REALLY BUGGED
+ * - mb_decode_numericentity - Decode HTML numeric string reference to character
+ * - mb_encode_numericentity - Encode character to HTML numeric string reference
+ * - mb_convert_case - Perform case folding on a string
+ * - mb_detect_encoding - Detect character encoding
+ * - mb_get_info - Get internal settings of mbstring
+ * - mb_http_input - Detect HTTP input character encoding
+ * - mb_http_output - Set/Get HTTP output character encoding
+ * - mb_internal_encoding - Set/Get internal character encoding
+ * - mb_list_encodings - Returns an array of all supported encodings
+ * - mb_ord - Returns the Unicode code point of a character
+ * - mb_output_handler - Callback function converts character encoding in output buffer
+ * - mb_scrub - Replaces ill-formed byte sequences with substitute characters
+ * - mb_strlen - Get string length
+ * - mb_strpos - Find position of first occurrence of string in a string
+ * - mb_strrpos - Find position of last occurrence of a string in a string
+ * - mb_str_split - Convert a string to an array
+ * - mb_strtolower - Make a string lowercase
+ * - mb_strtoupper - Make a string uppercase
+ * - mb_substitute_character - Set/Get substitution character
+ * - mb_substr - Get part of string
+ * - mb_stripos - Finds position of first occurrence of a string within another, case insensitive
+ * - mb_stristr - Finds first occurrence of a string within another, case insensitive
+ * - mb_strrchr - Finds the last occurrence of a character in a string within another
+ * - mb_strrichr - Finds the last occurrence of a character in a string within another, case insensitive
+ * - mb_strripos - Finds position of last occurrence of a string within another, case insensitive
+ * - mb_strstr - Finds first occurrence of a string within another
+ * - mb_strwidth - Return width of string
+ * - mb_substr_count - Count the number of substring occurrences
+ *
+ * Not implemented:
+ * - mb_convert_kana - Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
+ * - mb_ereg_* - Regular expression with multibyte support
+ * - mb_parse_str - Parse GET/POST/COOKIE data and set global variable
+ * - mb_preferred_mime_name - Get MIME charset string
+ * - mb_regex_encoding - Returns current encoding for multibyte regex as string
+ * - mb_regex_set_options - Set/Get the default options for mbregex functions
+ * - mb_send_mail - Send encoded mail
+ * - mb_split - Split multibyte string using regular expression
+ * - mb_strcut - Get part of string
+ * - mb_strimwidth - Get truncated string with specified width
+ *
+ * @author Nicolas Grekas
+ * @author Dariusz Rumiński
+ *
+ * @internal
+ */
+final class Php72
+{
+ private static $hashMask;
+
+ public static function utf8_encode($s)
+ {
+ $s .= $s;
+ $len = \strlen($s);
+
+ for ($i = $len >> 1, $j = 0; $i < $len; ++$i, ++$j) {
+ switch (true) {
+ case $s[$i] < "\x80": $s[$j] = $s[$i]; break;
+ case $s[$i] < "\xC0": $s[$j] = "\xC2"; $s[++$j] = $s[$i]; break;
+ default: $s[$j] = "\xC3"; $s[++$j] = \chr(\ord($s[$i]) - 64); break;
+ }
+ }
+
+ return substr($s, 0, $j);
+ }
+
+ public static function utf8_decode($s)
+ {
+ $s = (string) $s;
+ $len = \strlen($s);
+
+ for ($i = 0, $j = 0; $i < $len; ++$i, ++$j) {
+ switch ($s[$i] & "\xF0") {
+ case "\xC0":
+ case "\xD0":
+ $c = (\ord($s[$i] & "\x1F") << 6) | \ord($s[++$i] & "\x3F");
+ $s[$j] = $c < 256 ? \chr($c) : '?';
+ break;
+
+ case "\xF0":
+ ++$i;
+ // no break
+
+ case "\xE0":
+ $s[$j] = '?';
+ $i += 2;
+ break;
+
+ default:
+ $s[$j] = $s[$i];
+ }
+ }
+
+ return substr($s, 0, $j);
+ }
+
+ public static function php_os_family()
+ {
+ if ('\\' === \DIRECTORY_SEPARATOR) {
+ return 'Windows';
+ }
+
+ $map = array(
+ 'Darwin' => 'Darwin',
+ 'DragonFly' => 'BSD',
+ 'FreeBSD' => 'BSD',
+ 'NetBSD' => 'BSD',
+ 'OpenBSD' => 'BSD',
+ 'Linux' => 'Linux',
+ 'SunOS' => 'Solaris',
+ );
+
+ return isset($map[PHP_OS]) ? $map[PHP_OS] : 'Unknown';
+ }
+
+ public static function spl_object_id($object)
+ {
+ if (null === self::$hashMask) {
+ self::initHashMask();
+ }
+ if (null === $hash = spl_object_hash($object)) {
+ return;
+ }
+
+ return self::$hashMask ^ hexdec(substr($hash, 16 - \PHP_INT_SIZE, \PHP_INT_SIZE));
+ }
+
+ public static function sapi_windows_vt100_support($stream, $enable = null)
+ {
+ if (!\is_resource($stream)) {
+ trigger_error('sapi_windows_vt100_support() expects parameter 1 to be resource, '.\gettype($stream).' given', E_USER_WARNING);
+
+ return false;
+ }
+
+ $meta = stream_get_meta_data($stream);
+
+ if ('STDIO' !== $meta['stream_type']) {
+ trigger_error('sapi_windows_vt100_support() was not able to analyze the specified stream', E_USER_WARNING);
+
+ return false;
+ }
+
+ // We cannot actually disable vt100 support if it is set
+ if (false === $enable || !self::stream_isatty($stream)) {
+ return false;
+ }
+
+ // The native function does not apply to stdin
+ $meta = array_map('strtolower', $meta);
+ $stdin = 'php://stdin' === $meta['uri'] || 'php://fd/0' === $meta['uri'];
+
+ return !$stdin
+ && (false !== getenv('ANSICON')
+ || 'ON' === getenv('ConEmuANSI')
+ || 'xterm' === getenv('TERM')
+ || 'Hyper' === getenv('TERM_PROGRAM'));
+ }
+
+ public static function stream_isatty($stream)
+ {
+ if (!\is_resource($stream)) {
+ trigger_error('stream_isatty() expects parameter 1 to be resource, '.\gettype($stream).' given', E_USER_WARNING);
+
+ return false;
+ }
+
+ if ('\\' === \DIRECTORY_SEPARATOR) {
+ $stat = @fstat($stream);
+ // Check if formatted mode is S_IFCHR
+ return $stat ? 0020000 === ($stat['mode'] & 0170000) : false;
+ }
+
+ return \function_exists('posix_isatty') && @posix_isatty($stream);
+ }
+
+ private static function initHashMask()
+ {
+ $obj = (object) array();
+ self::$hashMask = -1;
+
+ // check if we are nested in an output buffering handler to prevent a fatal error with ob_start() below
+ $obFuncs = array('ob_clean', 'ob_end_clean', 'ob_flush', 'ob_end_flush', 'ob_get_contents', 'ob_get_flush');
+ foreach (debug_backtrace(\PHP_VERSION_ID >= 50400 ? DEBUG_BACKTRACE_IGNORE_ARGS : false) as $frame) {
+ if (isset($frame['function'][0]) && !isset($frame['class']) && 'o' === $frame['function'][0] && \in_array($frame['function'], $obFuncs)) {
+ $frame['line'] = 0;
+ break;
+ }
+ }
+ if (!empty($frame['line'])) {
+ ob_start();
+ debug_zval_dump($obj);
+ self::$hashMask = (int) substr(ob_get_clean(), 17);
+ }
+
+ self::$hashMask ^= hexdec(substr(spl_object_hash($obj), 16 - \PHP_INT_SIZE, \PHP_INT_SIZE));
+ }
+
+ public static function mb_chr($code, $encoding = null)
+ {
+ if (0x80 > $code %= 0x200000) {
+ $s = \chr($code);
+ } elseif (0x800 > $code) {
+ $s = \chr(0xC0 | $code >> 6).\chr(0x80 | $code & 0x3F);
+ } elseif (0x10000 > $code) {
+ $s = \chr(0xE0 | $code >> 12).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
+ } else {
+ $s = \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
+ }
+
+ if ('UTF-8' !== $encoding) {
+ $s = mb_convert_encoding($s, $encoding, 'UTF-8');
+ }
+
+ return $s;
+ }
+
+ public static function mb_ord($s, $encoding = null)
+ {
+ if (null == $encoding) {
+ $s = mb_convert_encoding($s, 'UTF-8');
+ } elseif ('UTF-8' !== $encoding) {
+ $s = mb_convert_encoding($s, 'UTF-8', $encoding);
+ }
+
+ if (1 === \strlen($s)) {
+ return \ord($s);
+ }
+
+ $code = ($s = unpack('C*', substr($s, 0, 4))) ? $s[1] : 0;
+ if (0xF0 <= $code) {
+ return (($code - 0xF0) << 18) + (($s[2] - 0x80) << 12) + (($s[3] - 0x80) << 6) + $s[4] - 0x80;
+ }
+ if (0xE0 <= $code) {
+ return (($code - 0xE0) << 12) + (($s[2] - 0x80) << 6) + $s[3] - 0x80;
+ }
+ if (0xC0 <= $code) {
+ return (($code - 0xC0) << 6) + $s[2] - 0x80;
+ }
+
+ return $code;
+ }
+}
diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/bootstrap.php b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/bootstrap.php
new file mode 100644
index 0000000..519056d
--- /dev/null
+++ b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/bootstrap.php
@@ -0,0 +1,36 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+use Symfony\Polyfill\Php72 as p;
+
+if (PHP_VERSION_ID < 70200) {
+ if ('\\' === DIRECTORY_SEPARATOR && !function_exists('sapi_windows_vt100_support')) {
+ function sapi_windows_vt100_support($stream, $enable = null) { return p\Php72::sapi_windows_vt100_support($stream, $enable); }
+ }
+ if (!function_exists('stream_isatty')) {
+ function stream_isatty($stream) { return p\Php72::stream_isatty($stream); }
+ }
+ if (!function_exists('utf8_encode')) {
+ function utf8_encode($s) { return p\Php72::utf8_encode($s); }
+ function utf8_decode($s) { return p\Php72::utf8_decode($s); }
+ }
+ if (!function_exists('spl_object_id')) {
+ function spl_object_id($s) { return p\Php72::spl_object_id($s); }
+ }
+ if (!defined('PHP_OS_FAMILY')) {
+ define('PHP_OS_FAMILY', p\Php72::php_os_family());
+ }
+ if (!function_exists('mb_chr')) {
+ function mb_ord($s, $enc = null) { return p\Php72::mb_ord($s, $enc); }
+ function mb_chr($code, $enc = null) { return p\Php72::mb_chr($code, $enc); }
+ function mb_scrub($s, $enc = null) { $enc = null === $enc ? mb_internal_encoding() : $enc; return mb_convert_encoding($s, $enc, $enc); }
+ }
+}
diff --git a/wp-content/plugins/wp-mail-smtp/wp-mail-smtp-0.11.2.php b/wp-content/plugins/wp-mail-smtp/wp-mail-smtp-0.11.2.php
deleted file mode 100644
index 21b2511..0000000
--- a/wp-content/plugins/wp-mail-smtp/wp-mail-smtp-0.11.2.php
+++ /dev/null
@@ -1,759 +0,0 @@
- '',
- 'mail_from_name' => '',
- 'mailer' => 'smtp',
- 'mail_set_return_path' => 'false',
- 'smtp_host' => 'localhost',
- 'smtp_port' => '25',
- 'smtp_ssl' => 'none',
- 'smtp_auth' => false,
- 'smtp_user' => '',
- 'smtp_pass' => '',
- 'pepipost_user' => '',
- 'pepipost_pass' => '',
- 'pepipost_port' => '2525',
- 'pepipost_ssl' => 'none',
-);
-
-/**
- * Activation function. This function creates the required options and defaults.
- */
-if ( ! function_exists( 'wp_mail_smtp_activate' ) ) :
- /**
- * What to do on plugin activation.
- */
- function wp_mail_smtp_activate() {
-
- global $wpms_options;
-
- // Create the required options...
- foreach ( $wpms_options as $name => $val ) {
- add_option( $name, $val );
- }
- }
-endif;
-
-if ( ! function_exists( 'wp_mail_smtp_whitelist_options' ) ) :
- /**
- * Whitelist plugin options.
- *
- * @param array $whitelist_options
- *
- * @return mixed
- */
- function wp_mail_smtp_whitelist_options( $whitelist_options ) {
-
- global $wpms_options;
-
- // Add our options to the array.
- $whitelist_options['email'] = array_keys( $wpms_options );
-
- return $whitelist_options;
- }
-endif;
-
-/**
- * To avoid any (very unlikely) clashes, check if the function already exists.
- */
-if ( ! function_exists( 'phpmailer_init_smtp' ) ) :
- /**
- * This code is copied, from wp-includes/pluggable.php as at version 2.2.2.
- *
- * @param PHPMailer $phpmailer It's passed by reference, so no need to return anything.
- */
- function phpmailer_init_smtp( $phpmailer ) {
- /*
- * If constants are defined, apply them.
- * We should have defined all required constants before using them.
- */
- if (
- defined( 'WPMS_ON' ) && WPMS_ON &&
- defined( 'WPMS_MAILER' )
- ) {
- $phpmailer->Mailer = WPMS_MAILER;
-
- if ( defined( 'WPMS_SET_RETURN_PATH' ) && WPMS_SET_RETURN_PATH ) {
- $phpmailer->Sender = $phpmailer->From;
- }
-
- if (
- WPMS_MAILER === 'smtp' &&
- defined( 'WPMS_SSL' ) &&
- defined( 'WPMS_SMTP_HOST' ) &&
- defined( 'WPMS_SMTP_PORT' )
- ) {
- $phpmailer->SMTPSecure = WPMS_SSL;
- $phpmailer->Host = WPMS_SMTP_HOST;
- $phpmailer->Port = WPMS_SMTP_PORT;
-
- if (
- defined( 'WPMS_SMTP_AUTH' ) && WPMS_SMTP_AUTH &&
- defined( 'WPMS_SMTP_USER' ) &&
- defined( 'WPMS_SMTP_PASS' )
- ) {
- $phpmailer->SMTPAuth = true;
- $phpmailer->Username = WPMS_SMTP_USER;
- $phpmailer->Password = WPMS_SMTP_PASS;
- }
- }
- } else {
- $option_mailer = get_option( 'mailer' );
- $option_smtp_host = get_option( 'smtp_host' );
- $option_smtp_ssl = get_option( 'smtp_ssl' );
-
- // Check that mailer is not blank, and if mailer=smtp, host is not blank.
- if (
- ! $option_mailer ||
- ( 'smtp' === $option_mailer && ! $option_smtp_host )
- ) {
- return;
- }
-
- // If the mailer is pepipost, make sure we have a username and password.
- if ( 'pepipost' === $option_mailer && ( ! get_option( 'pepipost_user' ) && ! get_option( 'pepipost_pass' ) ) ) {
- return;
- }
-
- // Set the mailer type as per config above, this overrides the already called isMail method.
- $phpmailer->Mailer = $option_mailer;
-
- // Set the Sender (return-path) if required.
- if ( get_option( 'mail_set_return_path' ) ) {
- $phpmailer->Sender = $phpmailer->From;
- }
-
- // Set the SMTPSecure value, if set to none, leave this blank.
- $phpmailer->SMTPSecure = $option_smtp_ssl;
- if ( 'none' === $option_smtp_ssl ) {
- $phpmailer->SMTPSecure = '';
- $phpmailer->SMTPAutoTLS = false;
- }
-
- // If we're sending via SMTP, set the host.
- if ( 'smtp' === $option_mailer ) {
- // Set the other options.
- $phpmailer->Host = $option_smtp_host;
- $phpmailer->Port = get_option( 'smtp_port' );
-
- // If we're using smtp auth, set the username & password.
- if ( get_option( 'smtp_auth' ) === 'true' ) {
- $phpmailer->SMTPAuth = true;
- $phpmailer->Username = get_option( 'smtp_user' );
- $phpmailer->Password = get_option( 'smtp_pass' );
- }
- } elseif ( 'pepipost' === $option_mailer ) {
- // Set the Pepipost settings.
- $phpmailer->Mailer = 'smtp';
- $phpmailer->Host = 'smtp.pepipost.com';
- $phpmailer->Port = get_option( 'pepipost_port' );
- $phpmailer->SMTPSecure = get_option( 'pepipost_ssl' ) === 'none' ? '' : get_option( 'pepipost_ssl' );
- $phpmailer->SMTPAuth = true;
- $phpmailer->Username = get_option( 'pepipost_user' );
- $phpmailer->Password = get_option( 'pepipost_pass' );
- }
- }
-
- // You can add your own options here, see the phpmailer documentation for more info: http://phpmailer.sourceforge.net/docs/.
- /** @noinspection PhpUnusedLocalVariableInspection It's passed by reference. */
- $phpmailer = apply_filters( 'wp_mail_smtp_custom_options', $phpmailer );
- }
-endif;
-
-if ( ! function_exists( 'wp_mail_smtp_options_page' ) ) :
- /**
- * This function outputs the plugin options page.
- */
- function wp_mail_smtp_options_page() {
-
- global $phpmailer;
-
- // Make sure the PHPMailer class has been instantiated
- // (copied verbatim from wp-includes/pluggable.php)
- // (Re)create it, if it's gone missing.
- if ( ! is_object( $phpmailer ) || ! is_a( $phpmailer, 'PHPMailer' ) ) {
- require_once ABSPATH . WPINC . '/class-phpmailer.php';
- $phpmailer = new PHPMailer( true );
- }
-
- // Send a test mail if necessary.
- if (
- isset( $_POST['wpms_action'] ) &&
- esc_html__( 'Send Test', 'wp-mail-smtp' ) === sanitize_text_field( $_POST['wpms_action'] ) &&
- is_email( $_POST['to'] )
- ) {
-
- check_admin_referer( 'test-email' );
-
- // Set up the mail variables.
- $to = sanitize_text_field( $_POST['to'] );
- /* translators: %s - email address where test mail will be sent to. */
- $subject = 'WP Mail SMTP: ' . sprintf( esc_html__( 'Test mail to %s', 'wp-mail-smtp' ), $to );
- $message = esc_html__( 'This is a test email generated by the WP Mail SMTP WordPress plugin.', 'wp-mail-smtp' );
-
- // Set SMTPDebug level, default is 2 (commands + data + connection status).
- $phpmailer->SMTPDebug = apply_filters( 'wp_mail_smtp_admin_test_email_smtp_debug', 2 );
-
- // Start output buffering to grab smtp debugging output.
- ob_start();
-
- // Send the test mail.
- $result = wp_mail( $to, $subject, $message );
-
- // Grab the smtp debugging output.
- $smtp_debug = ob_get_clean();
-
- // Output the response.
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ' . esc_html__( 'Settings', 'wp-mail-smtp' ) . '';
-
- array_unshift( $links, $settings_link );
-
- return $links;
-}
-
-/**
- * Check whether the site is using Pepipost or not.
- *
- * @since 0.11
- *
- * @return bool
- */
-function wp_mail_smtp_is_pepipost_active() {
- return apply_filters( 'wp_mail_smtp_options_is_pepipost_active', 'pepipost' === get_option( 'mailer' ) );
-}
-
-/**
- * Check the current PHP version and display a notice if on unsupported PHP.
- *
- * @since 0.11
- */
-function wp_mail_smtp_check_php_version() {
-
- // Display for admins only.
- if ( ! is_super_admin() ) {
- return;
- }
-
- // Display on Dashboard page only.
- if ( isset( $GLOBALS['pagenow'] ) && 'index.php' !== $GLOBALS['pagenow'] ) {
- return;
- }
-
- echo '
' .
- '
' .
- sprintf(
- /* translators: %1$s - WP Mail SMTP plugin name; %2$s - opening a link tag; %3$s - closing a link tag. */
- esc_html__(
- 'Your site is running an outdated version of PHP that is no longer supported and may cause issues with %1$s. %2$sRead more%3$s for additional information.',
- 'wp-mail-smtp'
- ),
- 'WP Mail SMTP',
- '',
- ''
- ) .
- '
' .
- '
';
-}
-
-add_action( 'admin_notices', 'wp_mail_smtp_check_php_version' );
-
-// Add an action on phpmailer_init.
-add_action( 'phpmailer_init', 'phpmailer_init_smtp' );
-
-if ( ! defined( 'WPMS_ON' ) || ! WPMS_ON ) {
- // Whitelist our options.
- add_filter( 'whitelist_options', 'wp_mail_smtp_whitelist_options' );
- // Add the create pages options.
- add_action( 'admin_menu', 'wp_mail_smtp_menus' );
- // Add an activation hook for this plugin.
- register_activation_hook( __FILE__, 'wp_mail_smtp_activate' );
- // Adds "Settings" link to the Plugins page.
- add_filter( 'plugin_action_links', 'wp_mail_plugin_action_links', 10, 2 );
-}
-
-// Add filters to replace the mail from name and email address.
-add_filter( 'wp_mail_from', 'wp_mail_smtp_mail_from' );
-add_filter( 'wp_mail_from_name', 'wp_mail_smtp_mail_from_name' );
-
-load_plugin_textdomain( 'wp-mail-smtp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
diff --git a/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php b/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php
index 620d75b..a3202b4 100644
--- a/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php
+++ b/wp-content/plugins/wp-mail-smtp/wp_mail_smtp.php
@@ -1,7 +1,7 @@
wp_mail() function to use Gmail/Mailgun/SendGrid/SMTP instead of the default mail() and creates an options page to manage the settings.
* Author: WPForms
@@ -38,11 +38,15 @@ define( 'WPMS_MAIL_FROM', 'mail@example.com' );
define( 'WPMS_MAIL_FROM_FORCE', true ); // True turns it on, false turns it off.
define( 'WPMS_MAIL_FROM_NAME', 'From Name' );
define( 'WPMS_MAIL_FROM_NAME_FORCE', true ); // True turns it on, false turns it off.
-define( 'WPMS_MAILER', 'sendinblue' ); // Possible values: 'mail', 'sendinblue', 'mailgun', 'sendgrid', 'gmail', 'smtp'.
+define( 'WPMS_MAILER', 'sendinblue' ); // Possible values: 'mail', 'smtpcom', 'sendinblue', 'mailgun', 'sendgrid', 'gmail', 'smtp'.
define( 'WPMS_SET_RETURN_PATH', true ); // Sets $phpmailer->Sender if true, relevant only for Other SMTP mailer.
// Recommended mailers.
+define( 'WPMS_SMTPCOM_API_KEY', '' );
+define( 'WPMS_SMTPCOM_CHANNEL', '' );
+
define( 'WPMS_PEPIPOST_API_KEY', '' );
+
define( 'WPMS_SENDINBLUE_API_KEY', '' );
define( 'WPMS_MAILGUN_API_KEY', '' );
@@ -142,26 +146,82 @@ if ( ! function_exists( 'wp_mail_smtp_check_pro_loading_allowed' ) ) {
}
}
+if ( ! function_exists( 'wp_mail_smtp_insecure_php_version_notice' ) ) {
+ /**
+ * Display admin notice, if the server is using old/insecure PHP version.
+ *
+ * @since 2.0.0
+ */
+ function wp_mail_smtp_insecure_php_version_notice() {
+
+ ?>
+
+
+ insecure version of PHP that is no longer supported. Please contact your web hosting provider to update your PHP version or switch to a recommended WordPress hosting company.', 'wp-mail-smtp' ),
+ array(
+ 'a' => array(
+ 'href' => array(),
+ 'target' => array(),
+ 'rel' => array(),
+ ),
+ 'strong' => array(),
+ )
+ ),
+ 'https://www.wpbeginner.com/wordpress-hosting/'
+ );
+ ?>
+
+ WP Mail SMTP plugin is disabled on your site until you fix the issue. Read more for additional information.', 'wp-mail-smtp' ),
+ array(
+ 'a' => array(
+ 'href' => array(),
+ 'target' => array(),
+ 'rel' => array(),
+ ),
+ 'strong' => array(),
+ )
+ ),
+ 'https://wpmailsmtp.com/docs/supported-php-versions-for-wp-mail-smtp/'
+ );
+ ?>
+