summaryrefslogtreecommitdiff
path: root/Postman/Postman-Mail/sendgrid
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-11-25 07:50:30 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-11-25 07:50:30 +0000
commit907ce8c044159ca8da6ccce3ec5362ac61e7c142 (patch)
tree4e4b83a3aa041a1826e4ac876b001195fce3f7c2 /Postman/Postman-Mail/sendgrid
parenta41b9219a66f4018dc581f561fbe3fedd24e73f2 (diff)
downloadPost-SMTP-907ce8c044159ca8da6ccce3ec5362ac61e7c142.zip
deleted by mistake
Diffstat (limited to 'Postman/Postman-Mail/sendgrid')
-rw-r--r--Postman/Postman-Mail/sendgrid/.editorconfig8
-rw-r--r--Postman/Postman-Mail/sendgrid/.travis.yml35
-rw-r--r--Postman/Postman-Mail/sendgrid/composer.json5
-rw-r--r--Postman/Postman-Mail/sendgrid/composer.lock128
-rw-r--r--Postman/Postman-Mail/sendgrid/sendgrid-php.php5
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/autoload.php7
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/composer/ClassLoader.php413
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/composer/LICENSE433
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/composer/autoload_classmap.php9
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/composer/autoload_files.php10
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/composer/autoload_namespaces.php9
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/composer/autoload_psr4.php13
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/composer/autoload_real.php59
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/composer/installed.json115
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.codeclimate.yml18
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.github/ISSUE_TEMPLATE17
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.github/PULL_REQUEST_TEMPLATE24
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.travis.yml27
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/CONTRIBUTING.md201
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/Dockerfile13
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/LICENSE.txt22
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/README.md195
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/composer.json36
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/lib/Client.php596
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/lib/Response.php113
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.codeclimate.yml11
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.editorconfig8
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.env.sample1
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.github/ISSUE_TEMPLATE16
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.github/PULL_REQUEST_TEMPLATE26
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.travis.yml33
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/CODE_OF_CONDUCT.md38
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/LICENSE.md21
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/README.md232
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/composer.json47
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/Dockerfile22
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/README.md50
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/entrypoint.sh15
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/SendGrid.php77
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/README.md16
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/Recipient.php92
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/RecipientForm.php55
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/loader.php54
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Asm.php150
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Attachment.php235
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BatchId.php75
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Bcc.php24
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BccSettings.php118
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BypassListManagement.php87
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Category.php77
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Cc.php24
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/ClickTracking.php114
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Content.php118
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/CustomArg.php119
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/EmailAddress.php222
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Footer.php144
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/From.php24
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Ganalytics.php251
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/GroupId.php73
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/GroupsToDisplay.php87
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Header.php116
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/HtmlContent.php33
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/IpPoolName.php77
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Mail.php1911
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/MailSettings.php274
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/MimeType.php26
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/OpenTracking.php124
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Personalization.php312
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/PlainTextContent.php33
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/README.md14
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/ReplyTo.php24
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SandBoxMode.php80
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Section.php115
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SendAt.php102
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SpamCheck.php161
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Subject.php74
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SubscriptionTracking.php228
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Substitution.php120
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TemplateId.php86
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/To.php24
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TrackingSettings.php252
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TypeException.php7
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/stats/Stats.php269
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/phpcs.xml196
-rwxr-xr-xPostman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/scripts/package.sh9
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/sendgrid-php.php3
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/BaseTestClass.php70
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/data/test.txt1
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Alerts/AlertsTest.php52
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/ApiKeys/ApiKeysTest.php74
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Asm/AsmGroupsTest.php105
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Asm/AsmSuppressionTest.php52
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Campaigns/CampaignsTest.php134
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Categories/CategoriesTest.php32
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Contacts/ContactDbTest.php424
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpPoolsTest.php72
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpsTest.php31
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpsWarmupTest.php41
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailBatchTest.php23
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailSendTest.php153
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailSettingsTest.php183
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailboxProvidersTest.php18
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Scopes/ScopesTest.php15
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/DomainAuthenticationTest.php124
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/LinkBrandingTest.php99
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/ReverseDNSTest.php52
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Senders/SendersTest.php99
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/AccessSettingsTest.php76
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/PartnerSettingsTest.php35
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/TrackingSettingsTest.php94
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/BrowserStatsTest.php16
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/ClientsStatsTest.php25
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/DevicesStatsTest.php16
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/GeoStatsTest.php16
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/StatsTest.php16
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Subusers/SubUsersTest.php155
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionBlocksTest.php46
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionBouncesTest.php47
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionInvalidEmailsTest.php46
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionSpamReportsTest.php46
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionUnsubscribesTest.php16
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Templates/TemplatesTest.php114
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Users/UserTest.php274
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/contacts/RecipientsTest.php31
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/stats/StatsTest.php238
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/phpunit.xml.dist8
-rwxr-xr-xPostman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/prism.sh63
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/AttachmentsTest.php45
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/DynamicTemplateTest.php415
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/FilesExistTest.php48
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/KitchenSinkTest.php1229
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MailGetContentsTest.php38
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MailHelperTest.php84
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MultipleEmailToMultipleRecipientsTest.php517
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SendGridTest.php88
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SingleEmailToASingleRecipientTest.php98
-rw-r--r--Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SingleEmailToMultipleRecipientsTest.php117
137 files changed, 0 insertions, 15848 deletions
diff --git a/Postman/Postman-Mail/sendgrid/.editorconfig b/Postman/Postman-Mail/sendgrid/.editorconfig
deleted file mode 100644
index e18928d..0000000
--- a/Postman/Postman-Mail/sendgrid/.editorconfig
+++ /dev/null
@@ -1,8 +0,0 @@
-root = true
-
-[*.php]
-indent_style = space
-indent_size = 4
-end_of_line = lf
-insert_final_newline = true
-trim_trailing_whitespace = true
diff --git a/Postman/Postman-Mail/sendgrid/.travis.yml b/Postman/Postman-Mail/sendgrid/.travis.yml
deleted file mode 100644
index 11fc944..0000000
--- a/Postman/Postman-Mail/sendgrid/.travis.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-language: php
-before_script:
-- phpenv local 5.4
-- composer install --dev --no-interaction
-- phpenv local --unset
-- cd test
-script:
-- "../vendor/bin/phpunit --coverage-clover clover.xml"
-after_script:
-- cd ..
-- phpenv local 5.4
-- phpenv local --unset
-- "./scripts/s3upload.sh"
-php:
-- 5.3
-- 5.4
-- 5.5
-- 5.6
-env:
- global:
- - S3_POLICY: ewogICJleHBpcmF0aW9uIjogIjIxMDAtMDEtMDFUMTI6MDA6MDAuMDAwWiIsCiAgImNvbmRpdGlvbnMiOiBbCiAgICB7ImFjbCI6ICJwdWJsaWMtcmVhZCIgfSwKICAgIHsiYnVja2V0IjogInNlbmRncmlkLW9wZW4tc291cmNlIiB9LAogICAgWyJzdGFydHMtd2l0aCIsICIka2V5IiwgInNlbmRncmlkLXBocC8iXSwKICAgIFsiY29udGVudC1sZW5ndGgtcmFuZ2UiLCAyMDQ4LCAyNjg0MzU0NTZdLAogICAgWyJlcSIsICIkQ29udGVudC1UeXBlIiwgImFwcGxpY2F0aW9uL3ppcCJdCiAgXQp9Cgo=
- - secure: eUN0huKA436uIkISu6V3yW01/gZHC6slBvlnprMPEhzclU2szH6qhWEXWS5CcOG6EEDBReqLZdNAwu+FC69KGFO9+6oW2GQQLSsfEViqFi/Ig2N0r4EBO4jLRebgq0GOfetPwQvJH27d8BCiloPy8rXBb5pskxSNw4B4bRyXHz4=
- - secure: j38xzMNmzYXR/JJdVumPmDoDVxb6FUDF497AuVPHowGh0egFW8XHWCOMeQWqWZI4Gg17pViQNIJ3xC6WBvob70AF8fsNm0+vxF2s7abXDMcbq5flLTS6ydKLgNu+na/RAkOBbTwxJAGIH/fQh8BH8iGKerCwoqf8sDErAge4NMw=
- - secure: h3HlxBOsNXBDrIJ0yl467ST6Q8R2TmbL7PltlPcRoHy5gAxn5UiDv5W2+6DSXrwQrTjOUunZ+O9ckcaQGQy1JNhGMwgIkJpyWAHDIHhTYGU289uUIDTHQW/soX0qHJSHSx3iMgDOIc7XnfTz6W7Nv1gYKZFedOMsZ5uBMeGyiXE=
- - secure: SKSl/RHFQNhGT7OUj7E0AbrQnuDhhCRI/4jC76mmzvy8EJBDgUNevAKJGtug+LVilHrlbk9fLC8rayPW6SGv0s3PowTGm8NMOc48aRBLOr7QRo/sMikJCmRuU6HWptr0NKuf2fq6lV94WDm/pDdyOSNyLga9/eaIDs/Sacp78sw=
-notifications:
- hipchat:
- rooms:
- secure: l4RUOBY44kVhSxx54NU3cmvn598rRMB7Y272Ct/W0fBm1tdGncp42A/rwg7JkiZH9EWXs3tKtoSjqw5xT6QeScUGQDdykS5QVO8lEIkDRGD4WwQ3VDJmRy1+04WtgqFEK8SyYTCcCl4ZJ0rtOcJZgDMvigkOJuLxwGXTDuvfu1k=
- template:
- - '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
- Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
- <a href="https://github.com/sendgrid/docs/commits/%{commit}">View on GitHub</a>'
- format: html
- notify: true
diff --git a/Postman/Postman-Mail/sendgrid/composer.json b/Postman/Postman-Mail/sendgrid/composer.json
deleted file mode 100644
index 95d93ce..0000000
--- a/Postman/Postman-Mail/sendgrid/composer.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "require": {
- "sendgrid/sendgrid": "~7"
- }
-} \ No newline at end of file
diff --git a/Postman/Postman-Mail/sendgrid/composer.lock b/Postman/Postman-Mail/sendgrid/composer.lock
deleted file mode 100644
index fd6a6e2..0000000
--- a/Postman/Postman-Mail/sendgrid/composer.lock
+++ /dev/null
@@ -1,128 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
- "This file is @generated automatically"
- ],
- "hash": "cb037c28e262c69616caad2764cb3a4f",
- "content-hash": "907e285f65325b51e424d991537f18af",
- "packages": [
- {
- "name": "sendgrid/php-http-client",
- "version": "3.9.6",
- "source": {
- "type": "git",
- "url": "https://github.com/sendgrid/php-http-client.git",
- "reference": "e9a04d949ee2d19938ab83dc100933a3b41a8ec7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sendgrid/php-http-client/zipball/e9a04d949ee2d19938ab83dc100933a3b41a8ec7",
- "reference": "e9a04d949ee2d19938ab83dc100933a3b41a8ec7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "SendGrid\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matt Bernier",
- "email": "dx@sendgrid.com"
- },
- {
- "name": "Elmer Thomas",
- "email": "elmer@thinkingserious.com"
- }
- ],
- "description": "HTTP REST client, simplified for PHP",
- "homepage": "http://github.com/sendgrid/php-http-client",
- "keywords": [
- "api",
- "fluent",
- "http",
- "rest",
- "sendgrid"
- ],
- "time": "2018-04-10 18:06:08"
- },
- {
- "name": "sendgrid/sendgrid",
- "version": "7.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sendgrid/sendgrid-php.git",
- "reference": "37fa19d3ae019842f07a2a43e92ed0f566ad927d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sendgrid/sendgrid-php/zipball/37fa19d3ae019842f07a2a43e92ed0f566ad927d",
- "reference": "37fa19d3ae019842f07a2a43e92ed0f566ad927d",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "ext-json": "*",
- "ext-mbstring": "*",
- "ext-openssl": "*",
- "php": ">=5.6",
- "sendgrid/php-http-client": "~3.9"
- },
- "replace": {
- "sendgrid/sendgrid-php": "*"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7.9 || ^6.4.3",
- "squizlabs/php_codesniffer": "3.*",
- "swaggest/json-diff": "^3.4"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "SendGrid\\": "lib/",
- "SendGrid\\Mail\\": "lib/mail/",
- "SendGrid\\Contacts\\": "lib/contacts/",
- "SendGrid\\Stats\\": "lib/stats/"
- },
- "files": [
- "lib/SendGrid.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.",
- "homepage": "http://github.com/sendgrid/sendgrid-php",
- "keywords": [
- "email",
- "grid",
- "send",
- "sendgrid",
- "twilio sendgrid"
- ],
- "time": "2019-04-15 17:27:21"
- }
- ],
- "packages-dev": [],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": [],
- "platform-dev": []
-}
diff --git a/Postman/Postman-Mail/sendgrid/sendgrid-php.php b/Postman/Postman-Mail/sendgrid/sendgrid-php.php
deleted file mode 100644
index 47449d1..0000000
--- a/Postman/Postman-Mail/sendgrid/sendgrid-php.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-if ( ! class_exists('\\SendGrid\\Client') ) {
- require 'vendor/autoload.php';
-}
-?> \ No newline at end of file
diff --git a/Postman/Postman-Mail/sendgrid/vendor/autoload.php b/Postman/Postman-Mail/sendgrid/vendor/autoload.php
deleted file mode 100644
index 764afb2..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/autoload.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
-// autoload.php @generated by Composer
-
-require_once __DIR__ . '/composer' . '/autoload_real.php';
-
-return ComposerAutoloaderInitb8261ccd2bb9e98223bcd166b46db8d9::getLoader();
diff --git a/Postman/Postman-Mail/sendgrid/vendor/composer/ClassLoader.php b/Postman/Postman-Mail/sendgrid/vendor/composer/ClassLoader.php
deleted file mode 100644
index ff6ecfb..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/composer/ClassLoader.php
+++ /dev/null
@@ -1,413 +0,0 @@
-<?php
-
-/*
- * This file is part of Composer.
- *
- * (c) Nils Adermann <naderman@naderman.de>
- * Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Composer\Autoload;
-
-/**
- * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
- *
- * $loader = new \Composer\Autoload\ClassLoader();
- *
- * // register classes with namespaces
- * $loader->add('Symfony\Component', __DIR__.'/component');
- * $loader->add('Symfony', __DIR__.'/framework');
- *
- * // activate the autoloader
- * $loader->register();
- *
- * // to enable searching the include path (eg. for PEAR packages)
- * $loader->setUseIncludePath(true);
- *
- * In this example, if you try to use a class in the Symfony\Component
- * namespace or one of its children (Symfony\Component\Console for instance),
- * the autoloader will first look for the class under the component/
- * directory, and it will then fallback to the framework/ directory if not
- * found before giving up.
- *
- * This class is loosely based on the Symfony UniversalClassLoader.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- * @author Jordi Boggiano <j.boggiano@seld.be>
- * @see http://www.php-fig.org/psr/psr-0/
- * @see http://www.php-fig.org/psr/psr-4/
- */
-class ClassLoader
-{
- // PSR-4
- private $prefixLengthsPsr4 = array();
- private $prefixDirsPsr4 = array();
- private $fallbackDirsPsr4 = array();
-
- // PSR-0
- private $prefixesPsr0 = array();
- private $fallbackDirsPsr0 = array();
-
- private $useIncludePath = false;
- private $classMap = array();
-
- private $classMapAuthoritative = false;
-
- public function getPrefixes()
- {
- if (!empty($this->prefixesPsr0)) {
- return call_user_func_array('array_merge', $this->prefixesPsr0);
- }
-
- return array();
- }
-
- public function getPrefixesPsr4()
- {
- return $this->prefixDirsPsr4;
- }
-
- public function getFallbackDirs()
- {
- return $this->fallbackDirsPsr0;
- }
-
- public function getFallbackDirsPsr4()
- {
- return $this->fallbackDirsPsr4;
- }
-
- public function getClassMap()
- {
- return $this->classMap;
- }
-
- /**
- * @param array $classMap Class to filename map
- */
- public function addClassMap(array $classMap)
- {
- if ($this->classMap) {
- $this->classMap = array_merge($this->classMap, $classMap);
- } else {
- $this->classMap = $classMap;
- }
- }
-
- /**
- * Registers a set of PSR-0 directories for a given prefix, either
- * appending or prepending to the ones previously set for this prefix.
- *
- * @param string $prefix The prefix
- * @param array|string $paths The PSR-0 root directories
- * @param bool $prepend Whether to prepend the directories
- */
- public function add($prefix, $paths, $prepend = false)
- {
- if (!$prefix) {
- if ($prepend) {
- $this->fallbackDirsPsr0 = array_merge(
- (array) $paths,
- $this->fallbackDirsPsr0
- );
- } else {
- $this->fallbackDirsPsr0 = array_merge(
- $this->fallbackDirsPsr0,
- (array) $paths
- );
- }
-
- return;
- }
-
- $first = $prefix[0];
- if (!isset($this->prefixesPsr0[$first][$prefix])) {
- $this->prefixesPsr0[$first][$prefix] = (array) $paths;
-
- return;
- }
- if ($prepend) {
- $this->prefixesPsr0[$first][$prefix] = array_merge(
- (array) $paths,
- $this->prefixesPsr0[$first][$prefix]
- );
- } else {
- $this->prefixesPsr0[$first][$prefix] = array_merge(
- $this->prefixesPsr0[$first][$prefix],
- (array) $paths
- );
- }
- }
-
- /**
- * Registers a set of PSR-4 directories for a given namespace, either
- * appending or prepending to the ones previously set for this namespace.
- *
- * @param string $prefix The prefix/namespace, with trailing '\\'
- * @param array|string $paths The PSR-4 base directories
- * @param bool $prepend Whether to prepend the directories
- *
- * @throws \InvalidArgumentException
- */
- public function addPsr4($prefix, $paths, $prepend = false)
- {
- if (!$prefix) {
- // Register directories for the root namespace.
- if ($prepend) {
- $this->fallbackDirsPsr4 = array_merge(
- (array) $paths,
- $this->fallbackDirsPsr4
- );
- } else {
- $this->fallbackDirsPsr4 = array_merge(
- $this->fallbackDirsPsr4,
- (array) $paths
- );
- }
- } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
- // Register directories for a new namespace.
- $length = strlen($prefix);
- if ('\\' !== $prefix[$length - 1]) {
- throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
- }
- $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
- $this->prefixDirsPsr4[$prefix] = (array) $paths;
- } elseif ($prepend) {
- // Prepend directories for an already registered namespace.
- $this->prefixDirsPsr4[$prefix] = array_merge(
- (array) $paths,
- $this->prefixDirsPsr4[$prefix]
- );
- } else {
- // Append directories for an already registered namespace.
- $this->prefixDirsPsr4[$prefix] = array_merge(
- $this->prefixDirsPsr4[$prefix],
- (array) $paths
- );
- }
- }
-
- /**
- * Registers a set of PSR-0 directories for a given prefix,
- * replacing any others previously set for this prefix.
- *
- * @param string $prefix The prefix
- * @param array|string $paths The PSR-0 base directories
- */
- public function set($prefix, $paths)
- {
- if (!$prefix) {
- $this->fallbackDirsPsr0 = (array) $paths;
- } else {
- $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
- }
- }
-
- /**
- * Registers a set of PSR-4 directories for a given namespace,
- * replacing any others previously set for this namespace.
- *
- * @param string $prefix The prefix/namespace, with trailing '\\'
- * @param array|string $paths The PSR-4 base directories
- *
- * @throws \InvalidArgumentException
- */
- public function setPsr4($prefix, $paths)
- {
- if (!$prefix) {
- $this->fallbackDirsPsr4 = (array) $paths;
- } else {
- $length = strlen($prefix);
- if ('\\' !== $prefix[$length - 1]) {
- throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
- }
- $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
- $this->prefixDirsPsr4[$prefix] = (array) $paths;
- }
- }
-
- /**
- * Turns on searching the include path for class files.
- *
- * @param bool $useIncludePath
- */
- public function setUseIncludePath($useIncludePath)
- {
- $this->useIncludePath = $useIncludePath;
- }
-
- /**
- * Can be used to check if the autoloader uses the include path to check
- * for classes.
- *
- * @return bool
- */
- public function getUseIncludePath()
- {
- return $this->useIncludePath;
- }
-
- /**
- * Turns off searching the prefix and fallback directories for classes
- * that have not been registered with the class map.
- *
- * @param bool $classMapAuthoritative
- */
- public function setClassMapAuthoritative($classMapAuthoritative)
- {
- $this->classMapAuthoritative = $classMapAuthoritative;
- }
-
- /**
- * Should class lookup fail if not found in the current class map?
- *
- * @return bool
- */
- public function isClassMapAuthoritative()
- {
- return $this->classMapAuthoritative;
- }
-
- /**
- * Registers this instance as an autoloader.
- *
- * @param bool $prepend Whether to prepend the autoloader or not
- */
- public function register($prepend = false)
- {
- spl_autoload_register(array($this, 'loadClass'), true, $prepend);
- }
-
- /**
- * Unregisters this instance as an autoloader.
- */
- public function unregister()
- {
- spl_autoload_unregister(array($this, 'loadClass'));
- }
-
- /**
- * Loads the given class or interface.
- *
- * @param string $class The name of the class
- * @return bool|null True if loaded, null otherwise
- */
- public function loadClass($class)
- {
- if ($file = $this->findFile($class)) {
- includeFile($file);
-
- return true;
- }
- }
-
- /**
- * Finds the path to the file where the class is defined.
- *
- * @param string $class The name of the class
- *
- * @return string|false The path if found, false otherwise
- */
- public function findFile($class)
- {
- // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
- if ('\\' == $class[0]) {
- $class = substr($class, 1);
- }
-
- // class map lookup
- if (isset($this->classMap[$class])) {
- return $this->classMap[$class];
- }
- if ($this->classMapAuthoritative) {
- return false;
- }
-
- $file = $this->findFileWithExtension($class, '.php');
-
- // Search for Hack files if we are running on HHVM
- if ($file === null && defined('HHVM_VERSION')) {
- $file = $this->findFileWithExtension($class, '.hh');
- }
-
- if ($file === null) {
- // Remember that this class does not exist.
- return $this->classMap[$class] = false;
- }
-
- return $file;
- }
-
- private function findFileWithExtension($class, $ext)
- {
- // PSR-4 lookup
- $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
-
- $first = $class[0];
- if (isset($this->prefixLengthsPsr4[$first])) {
- foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
- if (0 === strpos($class, $prefix)) {
- foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
- return $file;
- }
- }
- }
- }
- }
-
- // PSR-4 fallback dirs
- foreach ($this->fallbackDirsPsr4 as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
- return $file;
- }
- }
-
- // PSR-0 lookup
- if (false !== $pos = strrpos($class, '\\')) {
- // namespaced class name
- $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
- . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
- } else {
- // PEAR-like class name
- $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
- }
-
- if (isset($this->prefixesPsr0[$first])) {
- foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
- if (0 === strpos($class, $prefix)) {
- foreach ($dirs as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
- return $file;
- }
- }
- }
- }
- }
-
- // PSR-0 fallback dirs
- foreach ($this->fallbackDirsPsr0 as $dir) {
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
- return $file;
- }
- }
-
- // PSR-0 include paths.
- if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
- return $file;
- }
- }
-}
-
-/**
- * Scope isolated include.
- *
- * Prevents access to $this/self from included files.
- */
-function includeFile($file)
-{
- include $file;
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/composer/LICENSE b/Postman/Postman-Mail/sendgrid/vendor/composer/LICENSE
deleted file mode 100644
index ee274f1..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/composer/LICENSE
+++ /dev/null
@@ -1,433 +0,0 @@
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: Composer
-Upstream-Contact: Jordi Boggiano <j.boggiano@seld.be>
-Source: https://github.com/composer/composer
-
-Files: *
-Copyright: 2016, Nils Adermann <naderman@naderman.de>
- 2016, Jordi Boggiano <j.boggiano@seld.be>
-License: Expat
-
-Files: res/cacert.pem
-Copyright: 2015, Mozilla Foundation
-License: MPL-2.0
-
-Files: src/Composer/Util/RemoteFilesystem.php
- src/Composer/Util/TlsHelper.php
-Copyright: 2016, Nils Adermann <naderman@naderman.de>
- 2016, Jordi Boggiano <j.boggiano@seld.be>
- 2013, Evan Coury <me@evancoury.com>
-License: Expat and BSD-2-Clause
-
-License: BSD-2-Clause
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
- .
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- .
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- .
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-License: Expat
- 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.
-
-License: MPL-2.0
- 1. Definitions
- --------------
- .
- 1.1. "Contributor"
- means each individual or legal entity that creates, contributes to
- the creation of, or owns Covered Software.
- .
- 1.2. "Contributor Version"
- means the combination of the Contributions of others (if any) used
- by a Contributor and that particular Contributor's Contribution.
- .
- 1.3. "Contribution"
- means Covered Software of a particular Contributor.
- .
- 1.4. "Covered Software"
- means Source Code Form to which the initial Contributor has attached
- the notice in Exhibit A, the Executable Form of such Source Code
- Form, and Modifications of such Source Code Form, in each case
- including portions thereof.
- .
- 1.5. "Incompatible With Secondary Licenses"
- means
- .
- (a) that the initial Contributor has attached the notice described
- in Exhibit B to the Covered Software; or
- .
- (b) that the Covered Software was made available under the terms of
- version 1.1 or earlier of the License, but not also under the
- terms of a Secondary License.
- .
- 1.6. "Executable Form"
- means any form of the work other than Source Code Form.
- .
- 1.7. "Larger Work"
- means a work that combines Covered Software with other material, in
- a separate file or files, that is not Covered Software.
- .
- 1.8. "License"
- means this document.
- .
- 1.9. "Licensable"
- means having the right to grant, to the maximum extent possible,
- whether at the time of the initial grant or subsequently, any and
- all of the rights conveyed by this License.
- .
- 1.10. "Modifications"
- means any of the following:
- .
- (a) any file in Source Code Form that results from an addition to,
- deletion from, or modification of the contents of Covered
- Software; or
- .
- (b) any new file in Source Code Form that contains any Covered
- Software.
- .
- 1.11. "Patent Claims" of a Contributor
- means any patent claim(s), including without limitation, method,
- process, and apparatus claims, in any patent Licensable by such
- Contributor that would be infringed, but for the grant of the
- License, by the making, using, selling, offering for sale, having
- made, import, or transfer of either its Contributions or its
- Contributor Version.
- .
- 1.12. "Secondary License"
- means either the GNU General Public License, Version 2.0, the GNU
- Lesser General Public License, Version 2.1, the GNU Affero General
- Public License, Version 3.0, or any later versions of those
- licenses.
- .
- 1.13. "Source Code Form"
- means the form of the work preferred for making modifications.
- .
- 1.14. "You" (or "Your")
- means an individual or a legal entity exercising rights under this
- License. For legal entities, "You" includes any entity that
- controls, is controlled by, or is under common control with You. For
- purposes of this definition, "control" means (a) the power, direct
- or indirect, to cause the direction or management of such entity,
- whether by contract or otherwise, or (b) ownership of more than
- fifty percent (50%) of the outstanding shares or beneficial
- ownership of such entity.
- .
- 2. License Grants and Conditions
- --------------------------------
- .
- 2.1. Grants
- .
- Each Contributor hereby grants You a world-wide, royalty-free,
- non-exclusive license:
- .
- (a) under intellectual property rights (other than patent or trademark)
- Licensable by such Contributor to use, reproduce, make available,
- modify, display, perform, distribute, and otherwise exploit its
- Contributions, either on an unmodified basis, with Modifications, or
- as part of a Larger Work; and
- .
- (b) under Patent Claims of such Contributor to make, use, sell, offer
- for sale, have made, import, and otherwise transfer either its
- Contributions or its Contributor Version.
- .
- 2.2. Effective Date
- .
- The licenses granted in Section 2.1 with respect to any Contribution
- become effective for each Contribution on the date the Contributor first
- distributes such Contribution.
- .
- 2.3. Limitations on Grant Scope
- .
- The licenses granted in this Section 2 are the only rights granted under
- this License. No additional rights or licenses will be implied from the
- distribution or licensing of Covered Software under this License.
- Notwithstanding Section 2.1(b) above, no patent license is granted by a
- Contributor:
- .
- (a) for any code that a Contributor has removed from Covered Software;
- or
- .
- (b) for infringements caused by: (i) Your and any other third party's
- modifications of Covered Software, or (ii) the combination of its
- Contributions with other software (except as part of its Contributor
- Version); or
- .
- (c) under Patent Claims infringed by Covered Software in the absence of
- its Contributions.
- .
- This License does not grant any rights in the trademarks, service marks,
- or logos of any Contributor (except as may be necessary to comply with
- the notice requirements in Section 3.4).
- .
- 2.4. Subsequent Licenses
- .
- No Contributor makes additional grants as a result of Your choice to
- distribute the Covered Software under a subsequent version of this
- License (see Section 10.2) or under the terms of a Secondary License (if
- permitted under the terms of Section 3.3).
- .
- 2.5. Representation
- .
- Each Contributor represents that the Contributor believes its
- Contributions are its original creation(s) or it has sufficient rights
- to grant the rights to its Contributions conveyed by this License.
- .
- 2.6. Fair Use
- .
- This License is not intended to limit any rights You have under
- applicable copyright doctrines of fair use, fair dealing, or other
- equivalents.
- .
- 2.7. Conditions
- .
- Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
- in Section 2.1.
- .
- 3. Responsibilities
- -------------------
- .
- 3.1. Distribution of Source Form
- .
- All distribution of Covered Software in Source Code Form, including any
- Modifications that You create or to which You contribute, must be under
- the terms of this License. You must inform recipients that the Source
- Code Form of the Covered Software is governed by the terms of this
- License, and how they can obtain a copy of this License. You may not
- attempt to alter or restrict the recipients' rights in the Source Code
- Form.
- .
- 3.2. Distribution of Executable Form
- .
- If You distribute Covered Software in Executable Form then:
- .
- (a) such Covered Software must also be made available in Source Code
- Form, as described in Section 3.1, and You must inform recipients of
- the Executable Form how they can obtain a copy of such Source Code
- Form by reasonable means in a timely manner, at a charge no more
- than the cost of distribution to the recipient; and
- .
- (b) You may distribute such Executable Form under the terms of this
- License, or sublicense it under different terms, provided that the
- license for the Executable Form does not attempt to limit or alter
- the recipients' rights in the Source Code Form under this License.
- .
- 3.3. Distribution of a Larger Work
- .
- You may create and distribute a Larger Work under terms of Your choice,
- provided that You also comply with the requirements of this License for
- the Covered Software. If the Larger Work is a combination of Covered
- Software with a work governed by one or more Secondary Licenses, and the
- Covered Software is not Incompatible With Secondary Licenses, this
- License permits You to additionally distribute such Covered Software
- under the terms of such Secondary License(s), so that the recipient of
- the Larger Work may, at their option, further distribute the Covered
- Software under the terms of either this License or such Secondary
- License(s).
- .
- 3.4. Notices
- .
- You may not remove or alter the substance of any license notices
- (including copyright notices, patent notices, disclaimers of warranty,
- or limitations of liability) contained within the Source Code Form of
- the Covered Software, except that You may alter any license notices to
- the extent required to remedy known factual inaccuracies.
- .
- 3.5. Application of Additional Terms
- .
- You may choose to offer, and to charge a fee for, warranty, support,
- indemnity or liability obligations to one or more recipients of Covered
- Software. However, You may do so only on Your own behalf, and not on
- behalf of any Contributor. You must make it absolutely clear that any
- such warranty, support, indemnity, or liability obligation is offered by
- You alone, and You hereby agree to indemnify every Contributor for any
- liability incurred by such Contributor as a result of warranty, support,
- indemnity or liability terms You offer. You may include additional
- disclaimers of warranty and limitations of liability specific to any
- jurisdiction.
- .
- 4. Inability to Comply Due to Statute or Regulation
- ---------------------------------------------------
- .
- If it is impossible for You to comply with any of the terms of this
- License with respect to some or all of the Covered Software due to
- statute, judicial order, or regulation then You must: (a) comply with
- the terms of this License to the maximum extent possible; and (b)
- describe the limitations and the code they affect. Such description must
- be placed in a text file included with all distributions of the Covered
- Software under this License. Except to the extent prohibited by statute
- or regulation, such description must be sufficiently detailed for a
- recipient of ordinary skill to be able to understand it.
- .
- 5. Termination
- --------------
- .
- 5.1. The rights granted under this License will terminate automatically
- if You fail to comply with any of its terms. However, if You become
- compliant, then the rights granted under this License from a particular
- Contributor are reinstated (a) provisionally, unless and until such
- Contributor explicitly and finally terminates Your grants, and (b) on an
- ongoing basis, if such Contributor fails to notify You of the
- non-compliance by some reasonable means prior to 60 days after You have
- come back into compliance. Moreover, Your grants from a particular
- Contributor are reinstated on an ongoing basis if such Contributor
- notifies You of the non-compliance by some reasonable means, this is the
- first time You have received notice of non-compliance with this License
- from such Contributor, and You become compliant prior to 30 days after
- Your receipt of the notice.
- .
- 5.2. If You initiate litigation against any entity by asserting a patent
- infringement claim (excluding declaratory judgment actions,
- counter-claims, and cross-claims) alleging that a Contributor Version
- directly or indirectly infringes any patent, then the rights granted to
- You by any and all Contributors for the Covered Software under Section
- 2.1 of this License shall terminate.
- .
- 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
- end user license agreements (excluding distributors and resellers) which
- have been validly granted by You or Your distributors under this License
- prior to termination shall survive termination.
- .
- ************************************************************************
- * *
- * 6. Disclaimer of Warranty *
- * ------------------------- *
- * *
- * Covered Software is provided under this License on an "as is" *
- * basis, without warranty of any kind, either expressed, implied, or *
- * statutory, including, without limitation, warranties that the *
- * Covered Software is free of defects, merchantable, fit for a *
- * particular purpose or non-infringing. The entire risk as to the *
- * quality and performance of the Covered Software is with You. *
- * Should any Covered Software prove defective in any respect, You *
- * (not any Contributor) assume the cost of any necessary servicing, *
- * repair, or correction. This disclaimer of warranty constitutes an *
- * essential part of this License. No use of any Covered Software is *
- * authorized under this License except under this disclaimer. *
- * *
- ************************************************************************
- .
- ************************************************************************
- * *
- * 7. Limitation of Liability *
- * -------------------------- *
- * *
- * Under no circumstances and under no legal theory, whether tort *
- * (including negligence), contract, or otherwise, shall any *
- * Contributor, or anyone who distributes Covered Software as *
- * permitted above, be liable to You for any direct, indirect, *
- * special, incidental, or consequential damages of any character *
- * including, without limitation, damages for lost profits, loss of *
- * goodwill, work stoppage, computer failure or malfunction, or any *
- * and all other commercial damages or losses, even if such party *
- * shall have been informed of the possibility of such damages. This *
- * limitation of liability shall not apply to liability for death or *
- * personal injury resulting from such party's negligence to the *
- * extent applicable law prohibits such limitation. Some *
- * jurisdictions do not allow the exclusion or limitation of *
- * incidental or consequential damages, so this exclusion and *
- * limitation may not apply to You. *
- * *
- ************************************************************************
- .
- 8. Litigation
- -------------
- .
- Any litigation relating to this License may be brought only in the
- courts of a jurisdiction where the defendant maintains its principal
- place of business and such litigation shall be governed by laws of that
- jurisdiction, without reference to its conflict-of-law provisions.
- Nothing in this Section shall prevent a party's ability to bring
- cross-claims or counter-claims.
- .
- 9. Miscellaneous
- ----------------
- .
- This License represents the complete agreement concerning the subject
- matter hereof. If any provision of this License is held to be
- unenforceable, such provision shall be reformed only to the extent
- necessary to make it enforceable. Any law or regulation which provides
- that the language of a contract shall be construed against the drafter
- shall not be used to construe this License against a Contributor.
- .
- 10. Versions of the License
- ---------------------------
- .
- 10.1. New Versions
- .
- Mozilla Foundation is the license steward. Except as provided in Section
- 10.3, no one other than the license steward has the right to modify or
- publish new versions of this License. Each version will be given a
- distinguishing version number.
- .
- 10.2. Effect of New Versions
- .
- You may distribute the Covered Software under the terms of the version
- of the License under which You originally received the Covered Software,
- or under the terms of any subsequent version published by the license
- steward.
- .
- 10.3. Modified Versions
- .
- If you create software not governed by this License, and you want to
- create a new license for such software, you may create and use a
- modified version of this License if you rename the license and remove
- any references to the name of the license steward (except to note that
- such modified license differs from this License).
- .
- 10.4. Distributing Source Code Form that is Incompatible With Secondary
- Licenses
- .
- If You choose to distribute Source Code Form that is Incompatible With
- Secondary Licenses under the terms of this version of the License, the
- notice described in Exhibit B of this License must be attached.
- .
- Exhibit A - Source Code Form License Notice
- -------------------------------------------
- .
- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/.
- .
- If it is not possible or desirable to put the notice in a particular
- file, then You may include the notice in a location (such as a LICENSE
- file in a relevant directory) where a recipient would be likely to look
- for such a notice.
- .
- You may add additional accurate notices of copyright ownership.
- .
- Exhibit B - "Incompatible With Secondary Licenses" Notice
- ---------------------------------------------------------
- .
- This Source Code Form is "Incompatible With Secondary Licenses", as
- defined by the Mozilla Public License, v. 2.0.
diff --git a/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_classmap.php b/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_classmap.php
deleted file mode 100644
index 7a91153..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_classmap.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-// autoload_classmap.php @generated by Composer
-
-$vendorDir = dirname(dirname(__FILE__));
-$baseDir = dirname($vendorDir);
-
-return array(
-);
diff --git a/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_files.php b/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_files.php
deleted file mode 100644
index 4d74b3d..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_files.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-// autoload_files.php @generated by Composer
-
-$vendorDir = dirname(dirname(__FILE__));
-$baseDir = dirname($vendorDir);
-
-return array(
- '3f8bdd3b35094c73a26f0106e3c0f8b2' => $vendorDir . '/sendgrid/sendgrid/lib/SendGrid.php',
-);
diff --git a/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_namespaces.php b/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_namespaces.php
deleted file mode 100644
index b7fc012..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_namespaces.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-// autoload_namespaces.php @generated by Composer
-
-$vendorDir = dirname(dirname(__FILE__));
-$baseDir = dirname($vendorDir);
-
-return array(
-);
diff --git a/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_psr4.php b/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_psr4.php
deleted file mode 100644
index 7618d79..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_psr4.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-// autoload_psr4.php @generated by Composer
-
-$vendorDir = dirname(dirname(__FILE__));
-$baseDir = dirname($vendorDir);
-
-return array(
- 'SendGrid\\Stats\\' => array($vendorDir . '/sendgrid/sendgrid/lib/stats'),
- 'SendGrid\\Mail\\' => array($vendorDir . '/sendgrid/sendgrid/lib/mail'),
- 'SendGrid\\Contacts\\' => array($vendorDir . '/sendgrid/sendgrid/lib/contacts'),
- 'SendGrid\\' => array($vendorDir . '/sendgrid/php-http-client/lib', $vendorDir . '/sendgrid/sendgrid/lib'),
-);
diff --git a/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_real.php b/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_real.php
deleted file mode 100644
index 35b4612..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/composer/autoload_real.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-// autoload_real.php @generated by Composer
-
-class ComposerAutoloaderInitb8261ccd2bb9e98223bcd166b46db8d9
-{
- private static $loader;
-
- public static function loadClassLoader($class)
- {
- if ('Composer\Autoload\ClassLoader' === $class) {
- require __DIR__ . '/ClassLoader.php';
- }
- }
-
- public static function getLoader()
- {
- if (null !== self::$loader) {
- return self::$loader;
- }
-
- spl_autoload_register(array('ComposerAutoloaderInitb8261ccd2bb9e98223bcd166b46db8d9', 'loadClassLoader'), true, true);
- self::$loader = $loader = new \Composer\Autoload\ClassLoader();
- spl_autoload_unregister(array('ComposerAutoloaderInitb8261ccd2bb9e98223bcd166b46db8d9', 'loadClassLoader'));
-
- $map = require __DIR__ . '/autoload_namespaces.php';
- foreach ($map as $namespace => $path) {
- $loader->set($namespace, $path);
- }
-
- $map = require __DIR__ . '/autoload_psr4.php';
- foreach ($map as $namespace => $path) {
- $loader->setPsr4($namespace, $path);
- }
-
- $classMap = require __DIR__ . '/autoload_classmap.php';
- if ($classMap) {
- $loader->addClassMap($classMap);
- }
-
- $loader->register(true);
-
- $includeFiles = require __DIR__ . '/autoload_files.php';
- foreach ($includeFiles as $fileIdentifier => $file) {
- composerRequireb8261ccd2bb9e98223bcd166b46db8d9($fileIdentifier, $file);
- }
-
- return $loader;
- }
-}
-
-function composerRequireb8261ccd2bb9e98223bcd166b46db8d9($fileIdentifier, $file)
-{
- if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
- require $file;
-
- $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/composer/installed.json b/Postman/Postman-Mail/sendgrid/vendor/composer/installed.json
deleted file mode 100644
index f86362a..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/composer/installed.json
+++ /dev/null
@@ -1,115 +0,0 @@
-[
- {
- "name": "sendgrid/php-http-client",
- "version": "3.9.6",
- "version_normalized": "3.9.6.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sendgrid/php-http-client.git",
- "reference": "e9a04d949ee2d19938ab83dc100933a3b41a8ec7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sendgrid/php-http-client/zipball/e9a04d949ee2d19938ab83dc100933a3b41a8ec7",
- "reference": "e9a04d949ee2d19938ab83dc100933a3b41a8ec7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "time": "2018-04-10 18:06:08",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "SendGrid\\": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Matt Bernier",
- "email": "dx@sendgrid.com"
- },
- {
- "name": "Elmer Thomas",
- "email": "elmer@thinkingserious.com"
- }
- ],
- "description": "HTTP REST client, simplified for PHP",
- "homepage": "http://github.com/sendgrid/php-http-client",
- "keywords": [
- "api",
- "fluent",
- "http",
- "rest",
- "sendgrid"
- ]
- },
- {
- "name": "sendgrid/sendgrid",
- "version": "7.3.0",
- "version_normalized": "7.3.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sendgrid/sendgrid-php.git",
- "reference": "37fa19d3ae019842f07a2a43e92ed0f566ad927d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sendgrid/sendgrid-php/zipball/37fa19d3ae019842f07a2a43e92ed0f566ad927d",
- "reference": "37fa19d3ae019842f07a2a43e92ed0f566ad927d",
- "shasum": ""
- },
- "require": {
- "ext-curl": "*",
- "ext-json": "*",
- "ext-mbstring": "*",
- "ext-openssl": "*",
- "php": ">=5.6",
- "sendgrid/php-http-client": "~3.9"
- },
- "replace": {
- "sendgrid/sendgrid-php": "*"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7.9 || ^6.4.3",
- "squizlabs/php_codesniffer": "3.*",
- "swaggest/json-diff": "^3.4"
- },
- "time": "2019-04-15 17:27:21",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "SendGrid\\": "lib/",
- "SendGrid\\Mail\\": "lib/mail/",
- "SendGrid\\Contacts\\": "lib/contacts/",
- "SendGrid\\Stats\\": "lib/stats/"
- },
- "files": [
- "lib/SendGrid.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.",
- "homepage": "http://github.com/sendgrid/sendgrid-php",
- "keywords": [
- "email",
- "grid",
- "send",
- "sendgrid",
- "twilio sendgrid"
- ]
- }
-]
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.codeclimate.yml b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.codeclimate.yml
deleted file mode 100644
index 0bd0385..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.codeclimate.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-engines:
- duplication:
- enabled: true
- config:
- languages:
- - "php"
- phpcodesniffer:
- enabled: true
- config:
- file_extensions: "php"
- standard: "PSR1,PSR2"
-ratings:
- paths:
- - "**.php"
-exclude_paths:
- - "examples/**/*"
- - "test/**/*"
- - "vendor/**/*" \ No newline at end of file
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.github/ISSUE_TEMPLATE b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.github/ISSUE_TEMPLATE
deleted file mode 100644
index 94a2122..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.github/ISSUE_TEMPLATE
+++ /dev/null
@@ -1,17 +0,0 @@
-#### Issue Summary
-
-A summary of the issue and the environment in which it occurs. If suitable, include the steps required to reproduce the bug. Please feel free to include screenshots, screencasts, code examples.
-
-
-#### Steps to Reproduce
-
-1. This is the first step
-2. This is the second step
-3. Further steps, etc.
-
-Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? What do you expect to happen instead?
-
-#### Technical details:
-
-* php-http-client Version: master (latest commit: [commit number])
-* PHP Version: X.X
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.github/PULL_REQUEST_TEMPLATE b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.github/PULL_REQUEST_TEMPLATE
deleted file mode 100644
index 7ad590b..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.github/PULL_REQUEST_TEMPLATE
+++ /dev/null
@@ -1,24 +0,0 @@
-<!--
-We appreciate the effort for this pull request but before that please make sure you read the contribution guidelines given above, then fill out the blanks below.
-
-
-Please enter each Issue number you are resolving in your PR after one of the following words [Fixes, Closes, Resolves]. This will auto-link these issues and close them when this PR is merged!
-e.g.
-Fixes #1
-Closes #2
--->
-# Fixes #
-
-### Checklist
-- [ ] I have made a material change to the repo (functionality, testing, spelling, grammar)
-- [ ] I have read the [Contribution Guide] and my PR follows them.
-- [ ] I updated my branch with the master branch.
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation about the functionality in the appropriate .md file
-- [ ] I have added in line documentation to the code I modified
-
-### Short description of what this PR does:
--
--
-
-If you have questions, please send an email to [Sendgrid](mailto:dx@sendgrid.com), or file a Github Issue in this repository.
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.travis.yml b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.travis.yml
deleted file mode 100644
index 0ba5d28..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.travis.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-language: php
-before_script:
-- composer install --dev --no-interaction
-- cd test/unit
-script:
-- ../../vendor/bin/phpunit . --bootstrap bootstrap.php --filter test* --coverage-clover=coverage.xml
-after_success:
-- bash <(curl -s https://codecov.io/bash)
-php:
-- 5.6
-- 7.0
-env:
- global:
- - secure: eUN0huKA436uIkISu6V3yW01/gZHC6slBvlnprMPEhzclU2szH6qhWEXWS5CcOG6EEDBReqLZdNAwu+FC69KGFO9+6oW2GQQLSsfEViqFi/Ig2N0r4EBO4jLRebgq0GOfetPwQvJH27d8BCiloPy8rXBb5pskxSNw4B4bRyXHz4=
- - secure: j38xzMNmzYXR/JJdVumPmDoDVxb6FUDF497AuVPHowGh0egFW8XHWCOMeQWqWZI4Gg17pViQNIJ3xC6WBvob70AF8fsNm0+vxF2s7abXDMcbq5flLTS6ydKLgNu+na/RAkOBbTwxJAGIH/fQh8BH8iGKerCwoqf8sDErAge4NMw=
- - secure: h3HlxBOsNXBDrIJ0yl467ST6Q8R2TmbL7PltlPcRoHy5gAxn5UiDv5W2+6DSXrwQrTjOUunZ+O9ckcaQGQy1JNhGMwgIkJpyWAHDIHhTYGU289uUIDTHQW/soX0qHJSHSx3iMgDOIc7XnfTz6W7Nv1gYKZFedOMsZ5uBMeGyiXE=
- - secure: SKSl/RHFQNhGT7OUj7E0AbrQnuDhhCRI/4jC76mmzvy8EJBDgUNevAKJGtug+LVilHrlbk9fLC8rayPW6SGv0s3PowTGm8NMOc48aRBLOr7QRo/sMikJCmRuU6HWptr0NKuf2fq6lV94WDm/pDdyOSNyLga9/eaIDs/Sacp78sw=
-notifications:
- hipchat:
- rooms:
- secure: EFEaChRQCOLvxAvmxJe357CbfJ/wpW7ddhU0dqUljawSKbdeTkoF0Ja2NbtnIPVpJrqN9qT8BXTK3fmsJ7OJO+QCLi0R2FPnI7r+GpmjFqkxHO0KJ/Oiv1kB9jL1UcKuwhSsPubWPRvt4TKuDhEefuZb1X2xSFZZAzqROrLKtqUmy9vgpRYZtxmGRTGLfLmih8DJP96yvIOE/7/lp8lEdmXw4xF1NZtshnOiOLYrahY4pcOSl3y7eepzaGA33wWS/truH0Rh/IgTOYP2Z/ujIZE9Eg6nSwwOI8U2XzK/BEwEhrHCeyj3oAoBoGbO/m9ydaM6QM8/VT3JdVHPIWFpIhCioClwrIs3m1KsoMVeqEbuWF3h+ju6RMve5fCNvGV8tUyKpZ8GEVlEc7WdwkSKXeINgRLv7AykybZ6EkCRPkQ61/h+cNQlwKqtfeUaoBwjGAnfMQMQX5qApUn/ow8TbULnveqswhkV1fBsydiPBJxdlDe8x54GclCmgU5wnd283THUecP+8dznU+xVgfHqBnf2k9wirSEnYXh2T228kYUmEWKfhRq/7e86K2DAQAO5Vw/6HgL7e1ZVDccH6hx3lTGyjlUskkZvzktwi6gZ9gxOihQ8Yzkc1IQANr8ckQJvOZjMTQxJqgFWgXJWgRxWlpPiISLauaegcH2eNwGPRmY=
- template:
- - '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
- Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
- <a href="https://github.com/%{repository}/commits/%{commit}">View on GitHub</a>'
- format: html
- notify: true
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/CONTRIBUTING.md b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/CONTRIBUTING.md
deleted file mode 100644
index 6b01be8..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/CONTRIBUTING.md
+++ /dev/null
@@ -1,201 +0,0 @@
-Hello! Thank you for choosing to help contribute to one of the SendGrid open source projects. There are many ways you can contribute and help is always welcome. We simply ask that you follow the following contribution policies.
-
-- [CLAs and CCLAs](#cla)
-- [Roadmap & Milestones](#roadmap)
-- [Feature Request](#feature-request)
-- [Submit a Bug Report](#submit-a-bug-report)
-- [Improvements to the Codebase](#improvements-to-the-codebase)
-- [Understanding the Code Base](#understanding-the-codebase)
-- [Testing](#testing)
-- [Style Guidelines & Naming Conventions](#style-guidelines-and-naming-conventions)
-- [Creating a Pull Request](#creating-a-pull-request)
-- [Code Reviews](#code-reviews)
-
-<a name="roadmap"></a>
-We use [Milestones](https://github.com/sendgrid/php-http-client/milestones) to help define current roadmaps, please feel free to grab an issue from the current milestone. Please indicate that you have begun work on it to avoid collisions. Once a PR is made, community review, comments, suggestions and additional PRs are welcomed and encouraged.
-
-<a name="cla"></a>
-## CLAs and CCLAs
-
-Before you get started, SendGrid requires that a SendGrid Contributor License Agreement (CLA) be filled out by every contributor to a SendGrid open source project.
-
-Our goal with the CLA is to clarify the rights of our contributors and reduce other risks arising from inappropriate contributions. The CLA also clarifies the rights SendGrid holds in each contribution and helps to avoid misunderstandings over what rights each contributor is required to grant to SendGrid when making a contribution. In this way the CLA encourages broad participation by our open source community and helps us build strong open source projects, free from any individual contributor withholding or revoking rights to any contribution.
-
-SendGrid does not merge a pull request made against a SendGrid open source project until that pull request is associated with a signed CLA. Copies of the CLA are available [here](https://gist.github.com/SendGridDX/98b42c0a5d500058357b80278fde3be8#file-sendgrid_cla).
-
-When you create a Pull Request, after a few seconds, a comment will appear with a link to the CLA. Click the link and fill out the brief form and then click the "I agree" button and you are all set. You will not be asked to re-sign the CLA unless we make a change.
-
-There are a few ways to contribute, which we'll enumerate below:
-
-<a name="feature-request"></a>
-## Feature Request
-
-If you'd like to make a feature request, please read this section.
-
-The GitHub issue tracker is the preferred channel for library feature requests, but please respect the following restrictions:
-
-- Please **search for existing issues** in order to ensure we don't have duplicate bugs/feature requests.
-- Please be respectful and considerate of others when commenting on issues
-
-<a name="submit-a-bug-report"></a>
-## Submit a Bug Report
-
-Note: DO NOT include your credentials in ANY code examples, descriptions, or media you make public.
-
-A software bug is a demonstrable issue in the code base. In order for us to diagnose the issue and respond as quickly as possible, please add as much detail as possible into your bug report.
-
-Before you decide to create a new issue, please try the following:
-
-1. Check the Github issues tab if the identified issue has already been reported, if so, please add a +1 to the existing post.
-2. Update to the latest version of this code and check if issue has already been fixed
-3. Copy and fill in the Bug Report Template we have provided below
-
-### Please use our Bug Report Template
-
-In order to make the process easier, we've included a [sample bug report template](https://github.com/sendgrid/php-http-client/.github/ISSUE_TEMPLATE) (borrowed from [Ghost](https://github.com/TryGhost/Ghost/)). The template uses [GitHub flavored markdown](https://help.github.com/articles/github-flavored-markdown/) for formatting.
-
-<a name="improvements-to-the-codebase"></a>
-## Improvements to the Codebase
-
-We welcome direct contributions to the php-http-client code base. Thank you!
-
-### Development Environment ###
-
-#### Install and Run Locally ####
-
-##### Prerequisites #####
-
-- PHP 5.6 or 7.0
-- [Composer](https://getcomposer.org/)
-
-##### Initial setup: #####
-
-```bash
-git clone https://github.com/sendgrid/php-http-client.git
-cd php-http-client
-```
-
-### Environment Variables
-
-First, get your free SendGrid account [here](https://sendgrid.com/free?source=php-http-client).
-
-Next, update your environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys).
-
-```bash
-echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env
-echo "sendgrid.env" >> .gitignore
-source ./sendgrid.env
-```
-
-##### Execute: #####
-
-See the [examples folder](https://github.com/sendgrid/php-http-client/tree/master/examples).
-
-<a name="understanding-the-codebase"></a>
-## Understanding the Code Base
-
-**/examples**
-
-Working examples that demonstrate usage.
-
-**/test/unit**
-
-Unit tests.
-
-**/lib/SendGrid/Client.php**
-
-An HTTP client with a fluent interface using method chaining and reflection. By returning self on [__call](https://github.com/sendgrid/php-http-client/blob/master/lib/client.php#L212) and [_()](https://github.com/sendgrid/php-http-client/blob/master/lib/client.pph#L198), we can dynamically build the URL using method chaining and [__call](https://github.com/sendgrid/php-http-client/blob/master/lib/client.php#L212) allows us to dynamically receive the method calls to achieve reflection.
-
-This allows for the following mapping from a URL to a method chain:
-
-`/api_client/{api_key_id}/version` maps to `client->api_client().->_($api_key_id)->version-><method>()` where <method> is a [HTTP verb](https://github.com/sendgrid/php-http-client/blob/master/lib/client.php#L94).
-
-**/lib/SendGrid/Config.php**
-
-Loads the environment variables.
-
-<a name="testing"></a>
-## Testing
-
-All PRs require passing tests before the PR will be reviewed.
-
-All test files are in the [`/test/unit`](https://github.com/sendgrid/php-http-client/tree/master/test/unit) directory.
-
-For the purposes of contributing to this repo, please update the [`ClientTest.php`](https://github.com/sendgrid/php-http-client/blob/master/test/unit/ClientTest.php) file with unit tests as you modify the code.
-
-```bash
-composer install
-cd test/unit
-../../vendor/bin/phpunit . --bootstrap bootstrap.php --filter test*
-```
-
-<a name="style-guidelines-and-naming-conventions"></a>
-## Style Guidelines & Naming Conventions
-
-Generally, we follow the style guidelines as suggested by the official language. However, we ask that you conform to the styles that already exist in the library. If you wish to deviate, please explain your reasoning.
-
-- [pear coding standards](https://pear.php.net/manual/en/standards.php)
-
-Please run your code through:
-
-- [PHP Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer)
-
-<a name="creating-a-pull-request"></a>
-## Creating a Pull Request
-
-1. [Fork](https://help.github.com/fork-a-repo/) the project, clone your fork,
- and configure the remotes:
-
- ```bash
- # Clone your fork of the repo into the current directory
- git clone https://github.com/sendgrid/php-http-client
- # Navigate to the newly cloned directory
- cd php-http-client
- # Assign the original repo to a remote called "upstream"
- git remote add upstream https://github.com/sendgrid/php-http-client
- ```
-
-2. If you cloned a while ago, get the latest changes from upstream:
-
- ```bash
- git checkout <dev-branch>
- git pull upstream <dev-branch>
- ```
-
-3. Create a new topic branch (off the main project development branch) to
- contain your feature, change, or fix:
-
- ```bash
- git checkout -b <topic-branch-name>
- ```
-
-4. Commit your changes in logical chunks. Please adhere to these [git commit
- message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
- or your code is unlikely be merged into the main project. Use Git's
- [interactive rebase](https://help.github.com/articles/interactive-rebase)
- feature to tidy up your commits before making them public.
-
-4a. Create tests.
-
-4b. Create or update the example code that demonstrates the functionality of this change to the code.
-
-5. Locally merge (or rebase) the upstream development branch into your topic branch:
-
- ```bash
- git pull [--rebase] upstream master
- ```
-
-6. Push your topic branch up to your fork:
-
- ```bash
- git push origin <topic-branch-name>
- ```
-
-7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/)
- with a clear title and description against the `master` branch. All tests must be passing before we will review the PR.
-
-<a name="code-reviews"></a>
-## Code Reviews
-If you can, please look at open PRs and review them. Give feedback and help us merge these PRs much faster! If you don't know how, Github has some great [information on how to review a Pull Request](https://help.github.com/articles/about-pull-request-reviews/).
-
-If you have any additional questions, please feel free to [email](mailto:dx@sendgrid.com) us or create an issue in this repo.
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/Dockerfile b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/Dockerfile
deleted file mode 100644
index da1ef10..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/Dockerfile
+++ /dev/null
@@ -1,13 +0,0 @@
-FROM php:7.1-apache
-
-ARG sendgrid_apikey
-ENV SENDGRID_API_KEY=$sendgrid_apikey
-
-COPY . /var/www/client
-WORKDIR /var/www/client
-
-RUN apt-get update && \
- apt-get install -y git zip zlib1g-dev && docker-php-ext-install zip
-RUN curl --silent --show-error https://getcomposer.org/installer | php
-
-RUN php composer.phar install
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/LICENSE.txt b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/LICENSE.txt
deleted file mode 100644
index 8a3ef00..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/LICENSE.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2012-2018 SendGrid, Inc.
-
-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/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/README.md b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/README.md
deleted file mode 100644
index ef7236a..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/README.md
+++ /dev/null
@@ -1,195 +0,0 @@
-![SendGrid Logo](https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png)
-
-[![Travis Badge](https://travis-ci.org/sendgrid/php-http-client.svg?branch=master)](https://travis-ci.org/sendgrid/php-http-client)
-[![Latest Version on Packagist](https://img.shields.io/packagist/v/sendgrid/php-http-client.svg?style=flat-square)](https://packagist.org/packages/sendgrid/php-http-client)
-[![Email Notifications Badge](https://dx.sendgrid.com/badge/php)](https://dx.sendgrid.com/newsletter/php)
-[![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid)
-[![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/php-http-client.svg)](https://github.com/sendgrid/php-http-client/graphs/contributors)
-[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.txt)
-
-**Quickly and easily access any RESTful or RESTful-like API.**
-
-If you are looking for the SendGrid API client library, please see [this repo](https://github.com/sendgrid/sendgrid-php).
-
-# Announcements
-
-All updates to this library is documented in our [CHANGELOG](https://github.com/sendgrid/php-http-client/blob/master/CHANGELOG.md).
-
-# Table of Contents
-- [Installation](#installation)
-- [Quick Start](#quick-start)
-- [Usage](#usage)
-- [Roadmap](#roadmap)
-- [How to Contribute](#contribute)
-- [Thanks](#thanks)
-- [About](#about)
-- [License](#license)
-
-<a name="installation"></a>
-# Installation
-
-## Prerequisites
-
-- PHP version 5.6 or 7.0
-
-## Install with Composer
-
-Add php-http-client to your `composer.json` file. If you are not using [Composer](http://getcomposer.org), you should be. It's an excellent way to manage dependencies in your PHP application.
-
-```json
-{
- "require": {
- "sendgrid/php-http-client": "~3.9.6"
- }
-}
-```
-
-Then at the top of your PHP script require the autoloader:
-
-```php
-require __DIR__ . '/vendor/autoload.php';
-```
-
-Then from the command line:
-
-```bash
-composer install
-```
-
-## Install without Composer
-
-You should create directory `lib` in directory of your application and clone to `lib` repositories [php-http-client](https://github.com/sendgrid/php-http-client.git) and [sendgrid-php](https://github.com/sendgrid/sendgrid-php.git):
-
-```
-$ cd /path/to/your/app
-$ mkdir lib
-$ cd lib
-$ git clone https://github.com/sendgrid/php-http-client.git
-```
-
-In the next step you should create `loader.php`:
-
-```
-$ cd /path/to/your/app
-$ touch loader.php
-```
-
-And add to `loader.php` code below:
-
-```php
-<?php
-
-require_once __DIR__ . '/lib/php-http-client/lib/Client.php';
-require_once __DIR__ . '/lib/php-http-client/lib/Response.php';
-```
-
-After it you can use `php-http-client` library in your project:
-
-```php
-<?php
-
-include __DIR__ . '/loader.php';
-
-$client = new SendGrid\Client();
-```
-
-<a name="quick-start"></a>
-# Quick Start
-
-Here is a quick example:
-
-`GET /your/api/{param}/call`
-
-```php
-// include __DIR__ . '/loader.php';
-require 'vendor/autoload.php';
-$apiKey = YOUR_SENDGRID_API_KEY;
-$authHeaders = [
- 'Authorization: Bearer ' . $apiKey
-];
-$client = new SendGrid\Client('https://api.sendgrid.com', $authHeaders);
-$param = 'foo';
-$response = $client->your()->api()->_($param)->call()->get();
-
-var_dump(
- $response->statusCode(),
- $response->headers(),
- $response->body()
-);
-```
-
-`POST /your/api/{param}/call` with headers, query parameters and a request body with versioning.
-
-```php
-// include __DIR__ . '/loader.php';
-require 'vendor/autoload.php';
-$apiKey = YOUR_SENDGRID_API_KEY;
-$authHeaders = [
- 'Authorization: Bearer ' . $apiKey
-];
-$client = new SendGrid\Client('https://api.sendgrid.com', $authHeaders);
-$queryParams = [
- 'hello' => 0, 'world' => 1
-];
-$requestHeaders = [
- 'X-Test' => 'test'
-];
-$data = [
- 'some' => 1, 'awesome' => 2, 'data' => 3
-];
-$param = 'bar';
-$response = $client->your()->api()->_($param)->call()->post($data, $queryParams, $requestHeaders);
-
-var_dump(
- $response->statusCode(),
- $response->headers(),
- $response->body()
-);
-```
-
-<a name="usage"></a>
-# Usage
-
-- [Usage Examples](USAGE.md)
-
-## Environment Variables
-
-You can do the following to create a .env file:
-
-```cp .env_example .env```
-
-Then, just add your API Key into your .env file.
-
-<a name="roadmap"></a>
-# Roadmap
-
-If you are interested in the future direction of this project, please take a look at our [milestones](https://github.com/sendgrid/php-http-client/milestones). We would love to hear your feedback.
-
-<a name="contribute"></a>
-# How to Contribute
-
-We encourage contribution to our libraries, please see our [CONTRIBUTING](https://github.com/sendgrid/php-http-client/blob/master/CONTRIBUTING.md) guide for details.
-
-Quick links:
-
-- [Feature Request](https://github.com/sendgrid/php-http-client/blob/master/CONTRIBUTING.md#feature-request)
-- [Bug Reports](https://github.com/sendgrid/php-http-client/blob/master/CONTRIBUTING.md#submit-a-bug-report)
-- [Sign the CLA to Create a Pull Request](https://github.com/sendgrid/php-http-client/blob/master/CONTRIBUTING.md#cla)
-- [Improvements to the Codebase](https://github.com/sendgrid/php-http-client/blob/master/CONTRIBUTING.md#improvements-to-the-codebase)
-- [Review Pull Requests](https://github.com/sendgrid/php-http-client/blob/master/CONTRIBUTING.md#code-reviews)
-
-<a name="thanks"></a>
-# Thanks
-
-We were inspired by the work done on [birdy](https://github.com/inueni/birdy) and [universalclient](https://github.com/dgreisen/universalclient).
-
-<a name="about"></a>
-# About
-
-php-http-client is guided and supported by the SendGrid [Developer Experience Team](mailto:dx@sendgrid.com).
-
-php-http-client is maintained and funded by SendGrid, Inc. The names and logos for php-http-client are trademarks of SendGrid, Inc.
-
-<a name="license"></a>
-# License
-[The MIT License (MIT)](LICENSE.txt)
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/composer.json b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/composer.json
deleted file mode 100644
index 5c0a3af..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/composer.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "name": "sendgrid/php-http-client",
- "description": "HTTP REST client, simplified for PHP",
- "type": "library",
- "version": "3.9.6",
- "homepage": "http://github.com/sendgrid/php-http-client",
- "keywords": ["SendGrid", "HTTP", "REST", "API", "Fluent"],
- "license": "MIT",
- "authors": [
- {
- "name": "Matt Bernier",
- "email": "dx@sendgrid.com"
- },
- {
- "name": "Elmer Thomas",
- "email": "elmer@thinkingserious.com"
- }
- ],
- "require": {
- "php": ">=5.6"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.4",
- "squizlabs/php_codesniffer": "~2.0"
- },
- "autoload": {
- "psr-4": {
- "SendGrid\\": "lib/"
- }
- },
- "autoload-dev": {
- "psr-4": {
- "SendGrid\\Test\\": "test/unit/"
- }
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/lib/Client.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/lib/Client.php
deleted file mode 100644
index ec732b9..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/lib/Client.php
+++ /dev/null
@@ -1,596 +0,0 @@
-<?php
-
-/**
- * HTTP Client library
- *
- * @author Matt Bernier <dx@sendgrid.com>
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018 SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/php-http-client
- */
-
-namespace SendGrid;
-
-/**
- *
- * Class Client
- * @package SendGrid
- * @version 3.9.5
- *
- * Quickly and easily access any REST or REST-like API.
- *
- * @method Response get($body = null, $query = null, $headers = null)
- * @method Response post($body = null, $query = null, $headers = null)
- * @method Response patch($body = null, $query = null, $headers = null)
- * @method Response put($body = null, $query = null, $headers = null)
- * @method Response delete($body = null, $query = null, $headers = null)
- *
- * @method Client version($value)
- * @method Client|Response send()
- *
- * Adding all the endpoints as a method so code completion works
- *
- * General
- * @method Client stats()
- * @method Client search()
- * @method Client monthly()
- * @method Client sums()
- * @method Client monitor()
- * @method Client test()
- *
- * Access settings
- * @method Client access_settings()
- * @method Client activity()
- * @method Client whitelist()
- *
- * Alerts
- * @method Client alerts()
- *
- * Api keys
- * @method Client api_keys()
- *
- * ASM
- * @method Client asm()
- * @method Client groups()
- *
- * Browsers
- * @method Client browsers()
- *
- * Campaigns
- * @method Client campaigns()
- * @method Client schedules()
- * @method Client now()
- *
- * Categories
- * @method Client categories()
- *
- * Clients
- * @method Client clients()
- *
- * ContactDB
- * @method Client contactdb()
- * @method Client custom_fields()
- * @method Client lists()
- * @method Client recipients()
- * @method Client billable_count()
- * @method Client count()
- * @method Client reserved_fields()
- * @method Client segments()
- *
- * Devices
- * @method Client devices()
- *
- * Geo
- * @method Client geo()
- *
- * Ips
- * @method Client ips()
- * @method Client assigned()
- * @method Client pools()
- * @method Client warmup()
- *
- * Mail
- * @method Client mail()
- * @method Client batch()
- *
- * Mailbox Providers
- * @method Client mailbox_providers()
- *
- * Mail settings
- * @method Client mail_settings()
- * @method Client address_whitelist()
- * @method Client bcc()
- * @method Client bounce_purge()
- * @method Client footer()
- * @method Client forward_bounce()
- * @method Client forward_spam()
- * @method Client plain_content()
- * @method Client spam_check()
- * @method Client template()
- *
- * Partner settings
- * @method Client partner_settings()
- * @method Client new_relic()
- *
- * Scopes
- * @method Client scopes()
- *
- * Senders
- * @method Client senders()
- * @method Client resend_verification()
- *
- * Sub Users
- * @method Client subusers()
- * @method Client reputations()
- *
- * Supressions
- * @method Client suppressions()
- * @method Client global()
- * @method Client blocks()
- * @method Client bounces()
- * @method Client invalid_emails()
- * @method Client spam_reports()
- * @method Client unsubcribes()
- *
- * Templates
- * @method Client templates()
- * @method Client versions()
- * @method Client activate()
- *
- * Tracking settings
- * @method Client tracking_settings()
- * @method Client click()
- * @method Client google_analytics()
- * @method Client open()
- * @method Client subscription()
- *
- * User
- * @method Client user()
- * @method Client account()
- * @method Client credits()
- * @method Client email()
- * @method Client password()
- * @method Client profile()
- * @method Client scheduled_sends()
- * @method Client enforced_tls()
- * @method Client settings()
- * @method Client username()
- * @method Client webhooks()
- * @method Client event()
- * @method Client parse()
- *
- * Missed any? Simply add them by doing: @method Client method()
- */
-class Client
-{
- const TOO_MANY_REQUESTS_HTTP_CODE = 429;
-
- /**
- * @var string
- */
- protected $host;
-
- /**
- * @var array
- */
- protected $headers;
-
- /**
- * @var string
- */
- protected $version;
-
- /**
- * @var array
- */
- protected $path;
-
- /**
- * @var array
- */
- protected $curlOptions;
-
- /**
- * @var bool
- */
- protected $isConcurrentRequest;
-
- /**
- * @var array
- */
- protected $savedRequests;
-
- /**
- * @var bool
- */
- protected $retryOnLimit;
-
- /**
- * These are the supported HTTP verbs
- *
- * @var array
- */
- private $methods = ['get', 'post', 'patch', 'put', 'delete'];
-
- /**
- * Initialize the client
- *
- * @param string $host the base url (e.g. https://api.sendgrid.com)
- * @param array $headers global request headers
- * @param string $version api version (configurable) - this is specific to the SendGrid API
- * @param array $path holds the segments of the url path
- * @param array $curlOptions extra options to set during curl initialization
- * @param bool $retryOnLimit set default retry on limit flag
- */
- public function __construct($host, $headers = null, $version = null, $path = null, $curlOptions = null, $retryOnLimit = false)
- {
- $this->host = $host;
- $this->headers = $headers ?: [];
- $this->version = $version;
- $this->path = $path ?: [];
- $this->curlOptions = $curlOptions ?: [];
- $this->retryOnLimit = $retryOnLimit;
- $this->isConcurrentRequest = false;
- $this->savedRequests = [];
- }
-
- /**
- * @return string
- */
- public function getHost()
- {
- return $this->host;
- }
-
- /**
- * @return array
- */
- public function getHeaders()
- {
- return $this->headers;
- }
-
- /**
- * @return string|null
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * @return array
- */
- public function getPath()
- {
- return $this->path;
- }
-
- /**
- * @return array
- */
- public function getCurlOptions()
- {
- return $this->curlOptions;
- }
-
- /**
- * Set extra options to set during curl initialization
- *
- * @param array $options
- *
- * @return Client
- */
- public function setCurlOptions(array $options)
- {
- $this->curlOptions = $options;
-
- return $this;
- }
-
- /**
- * Set default retry on limit flag
- *
- * @param bool $retry
- *
- * @return Client
- */
- public function setRetryOnLimit($retry)
- {
- $this->retryOnLimit = $retry;
-
- return $this;
- }
-
- /**
- * Set concurrent request flag
- *
- * @param bool $isConcurrent
- *
- * @return Client
- */
- public function setIsConcurrentRequest($isConcurrent)
- {
- $this->isConcurrentRequest = $isConcurrent;
-
- return $this;
- }
-
- /**
- * Build the final URL to be passed
- *
- * @param array $queryParams an array of all the query parameters
- *
- * @return string
- */
- private function buildUrl($queryParams = null)
- {
- $path = '/' . implode('/', $this->path);
- if (isset($queryParams)) {
- $path .= '?' . http_build_query($queryParams);
- }
- return sprintf('%s%s%s', $this->host, $this->version ?: '', $path);
- }
-
- /**
- * Creates curl options for a request
- * this function does not mutate any private variables
- *
- * @param string $method
- * @param array $body
- * @param array $headers
- *
- * @return array
- */
- private function createCurlOptions($method, $body = null, $headers = null)
- {
- $options = [
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_HEADER => true,
- CURLOPT_CUSTOMREQUEST => strtoupper($method),
- CURLOPT_SSL_VERIFYPEER => true,
- CURLOPT_FAILONERROR => false
- ] + $this->curlOptions;
-
- if (isset($headers)) {
- $headers = array_merge($this->headers, $headers);
- } else {
- $headers = $this->headers;
- }
-
- if (isset($body)) {
- $encodedBody = json_encode($body);
- $options[CURLOPT_POSTFIELDS] = $encodedBody;
- $headers = array_merge($headers, ['Content-Type: application/json']);
- }
- $options[CURLOPT_HTTPHEADER] = $headers;
-
- return $options;
- }
-
- /**
- * @param array $requestData
- * e.g. ['method' => 'POST', 'url' => 'www.example.com', 'body' => 'test body', 'headers' => []]
- * @param bool $retryOnLimit
- *
- * @return array
- */
- private function createSavedRequest(array $requestData, $retryOnLimit = false)
- {
- return array_merge($requestData, ['retryOnLimit' => $retryOnLimit]);
- }
-
- /**
- * @param array $requests
- *
- * @return array
- */
- private function createCurlMultiHandle(array $requests)
- {
- $channels = [];
- $multiHandle = curl_multi_init();
-
- foreach ($requests as $id => $data) {
- $channels[$id] = curl_init($data['url']);
- $curlOpts = $this->createCurlOptions($data['method'], $data['body'], $data['headers']);
- curl_setopt_array($channels[$id], $curlOpts);
- curl_multi_add_handle($multiHandle, $channels[$id]);
- }
-
- return [$channels, $multiHandle];
- }
-
- /**
- * Prepare response object
- *
- * @param resource $channel the curl resource
- * @param string $content
- *
- * @return Response object
- */
- private function parseResponse($channel, $content)
- {
- $headerSize = curl_getinfo($channel, CURLINFO_HEADER_SIZE);
- $statusCode = curl_getinfo($channel, CURLINFO_HTTP_CODE);
-
- $responseBody = substr($content, $headerSize);
-
- $responseHeaders = substr($content, 0, $headerSize);
- $responseHeaders = explode("\n", $responseHeaders);
- $responseHeaders = array_map('trim', $responseHeaders);
-
- return new Response($statusCode, $responseBody, $responseHeaders);
- }
-
- /**
- * Retry request
- *
- * @param array $responseHeaders headers from rate limited response
- * @param string $method the HTTP verb
- * @param string $url the final url to call
- * @param array $body request body
- * @param array $headers original headers
- *
- * @return Response response object
- */
- private function retryRequest(array $responseHeaders, $method, $url, $body, $headers)
- {
- $sleepDurations = $responseHeaders['X-Ratelimit-Reset'] - time();
- sleep($sleepDurations > 0 ? $sleepDurations : 0);
- return $this->makeRequest($method, $url, $body, $headers, false);
- }
-
- /**
- * Make the API call and return the response.
- * This is separated into it's own function, so we can mock it easily for testing.
- *
- * @param string $method the HTTP verb
- * @param string $url the final url to call
- * @param array $body request body
- * @param array $headers any additional request headers
- * @param bool $retryOnLimit should retry if rate limit is reach?
- *
- * @return Response object
- */
- public function makeRequest($method, $url, $body = null, $headers = null, $retryOnLimit = false)
- {
- $channel = curl_init($url);
-
- $options = $this->createCurlOptions($method, $body, $headers);
-
- curl_setopt_array($channel, $options);
- $content = curl_exec($channel);
-
- $response = $this->parseResponse($channel, $content);
-
- if ($response->statusCode() === self::TOO_MANY_REQUESTS_HTTP_CODE && $retryOnLimit) {
- $responseHeaders = $response->headers(true);
- return $this->retryRequest($responseHeaders, $method, $url, $body, $headers);
- }
-
- curl_close($channel);
-
- return $response;
- }
-
- /**
- * Send all saved requests at once
- *
- * @param array $requests
- *
- * @return Response[]
- */
- public function makeAllRequests(array $requests = [])
- {
- if (empty($requests)) {
- $requests = $this->savedRequests;
- }
- list($channels, $multiHandle) = $this->createCurlMultiHandle($requests);
-
- // running all requests
- $isRunning = null;
- do {
- curl_multi_exec($multiHandle, $isRunning);
- } while ($isRunning);
-
- // get response and close all handles
- $retryRequests = [];
- $responses = [];
- $sleepDurations = 0;
- foreach ($channels as $id => $channel) {
-
- $content = curl_multi_getcontent($channel);
- $response = $this->parseResponse($channel, $content);
-
- if ($response->statusCode() === self::TOO_MANY_REQUESTS_HTTP_CODE && $requests[$id]['retryOnLimit']) {
- $headers = $response->headers(true);
- $sleepDurations = max($sleepDurations, $headers['X-Ratelimit-Reset'] - time());
- $requestData = [
- 'method' => $requests[$id]['method'],
- 'url' => $requests[$id]['url'],
- 'body' => $requests[$id]['body'],
- 'headers' => $headers,
- ];
- $retryRequests[] = $this->createSavedRequest($requestData, false);
- } else {
- $responses[] = $response;
- }
-
- curl_multi_remove_handle($multiHandle, $channel);
- }
- curl_multi_close($multiHandle);
-
- // retry requests
- if (!empty($retryRequests)) {
- sleep($sleepDurations > 0 ? $sleepDurations : 0);
- $responses = array_merge($responses, $this->makeAllRequests($retryRequests));
- }
- return $responses;
- }
-
- /**
- * Add variable values to the url. (e.g. /your/api/{variable_value}/call)
- * Another example: if you have a PHP reserved word, such as and, in your url, you must use this method.
- *
- * @param string $name name of the url segment
- *
- * @return Client object
- */
- public function _($name = null)
- {
- if (isset($name)) {
- $this->path[] = $name;
- }
- $client = new static($this->host, $this->headers, $this->version, $this->path);
- $client->setCurlOptions($this->curlOptions);
- $client->setRetryOnLimit($this->retryOnLimit);
- $this->path = [];
-
- return $client;
- }
-
- /**
- * Dynamically add method calls to the url, then call a method.
- * (e.g. client.name.name.method())
- *
- * @param string $name name of the dynamic method call or HTTP verb
- * @param array $args parameters passed with the method call
- *
- * @return Client|Response|Response[]|null object
- */
- public function __call($name, $args)
- {
- $name = strtolower($name);
-
- if ($name === 'version') {
- $this->version = $args[0];
- return $this->_();
- }
-
- // send all saved requests
- if (($name === 'send') && $this->isConcurrentRequest) {
- return $this->makeAllRequests();
- }
-
- if (in_array($name, $this->methods, true)) {
- $body = isset($args[0]) ? $args[0] : null;
- $queryParams = isset($args[1]) ? $args[1] : null;
- $url = $this->buildUrl($queryParams);
- $headers = isset($args[2]) ? $args[2] : null;
- $retryOnLimit = isset($args[3]) ? $args[3] : $this->retryOnLimit;
-
- if ($this->isConcurrentRequest) {
- // save request to be sent later
- $requestData = ['method' => $name, 'url' => $url, 'body' => $body, 'headers' => $headers];
- $this->savedRequests[] = $this->createSavedRequest($requestData, $retryOnLimit);
- return null;
- }
-
- return $this->makeRequest($name, $url, $body, $headers, $retryOnLimit);
- }
-
- return $this->_($name);
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/lib/Response.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/lib/Response.php
deleted file mode 100644
index f658f2c..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/lib/Response.php
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-
-/**
- * HTTP Client library
- *
- * @author Matt Bernier <dx@sendgrid.com>
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018 SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/php-http-client
- */
-
-namespace SendGrid;
-
-/**
- * Holds the response from an API call.
- */
-class Response
-{
- /**
- * @var int
- */
- protected $statusCode;
-
- /**
- * @var string
- */
- protected $body;
-
- /**
- * @var array
- */
- protected $headers;
-
- /**
- * Setup the response data
- *
- * @param int $statusCode the status code.
- * @param string $body the response body.
- * @param array $headers an array of response headers.
- */
- public function __construct($statusCode = 200, $body = '', array $headers = [])
- {
- $this->statusCode = $statusCode;
- $this->body = $body;
- $this->headers = $headers;
- }
-
- /**
- * The status code
- *
- * @return int
- */
- public function statusCode()
- {
- return $this->statusCode;
- }
-
- /**
- * The response body
- *
- * @return string
- */
- public function body()
- {
- return $this->body;
- }
-
- /**
- * The response headers
- *
- * @param bool $assoc
- *
- * @return array
- */
- public function headers($assoc = false)
- {
- if (!$assoc) {
- return $this->headers;
- }
-
- return $this->prettifyHeaders($this->headers);
- }
-
- /**
- * Returns response headers as associative array
- *
- * @param array $headers
- *
- * @return array
- */
- private function prettifyHeaders(array $headers)
- {
- return array_reduce(
- array_filter($headers),
- function ($result, $header) {
-
- if (false === strpos($header, ':')) {
- $result['Status'] = trim($header);
-
- return $result;
- }
-
- list($key, $value) = explode(':', $header, 2);
- $result[trim($key)] = trim($value);
-
- return $result;
- },
- []
- );
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.codeclimate.yml b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.codeclimate.yml
deleted file mode 100644
index bd9c6ec..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.codeclimate.yml
+++ /dev/null
@@ -1,11 +0,0 @@
----
-engines:
- duplication:
- enabled: true
- config:
- languages:
- - php
- fixme:
- enabled: true
- phpmd:
- enabled: true
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.editorconfig b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.editorconfig
deleted file mode 100644
index e18928d..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.editorconfig
+++ /dev/null
@@ -1,8 +0,0 @@
-root = true
-
-[*.php]
-indent_style = space
-indent_size = 4
-end_of_line = lf
-insert_final_newline = true
-trim_trailing_whitespace = true
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.env.sample b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.env.sample
deleted file mode 100644
index 937e999..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.env.sample
+++ /dev/null
@@ -1 +0,0 @@
-export SENDGRID_API_KEY=''
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.github/ISSUE_TEMPLATE b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.github/ISSUE_TEMPLATE
deleted file mode 100644
index d378427..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.github/ISSUE_TEMPLATE
+++ /dev/null
@@ -1,16 +0,0 @@
-#### Issue Summary
-
-A summary of the issue and the environment in which it occurs. If suitable, include the steps required to reproduce the bug. Please feel free to include screenshots, screencasts, code examples.
-
-#### Steps to Reproduce
-
-1. This is the first step
-2. This is the second step
-3. Further steps, etc.
-
-Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? What do you expect to happen instead?
-
-#### Technical details:
-
-* sendgrid-php Version: master (latest commit: [commit number])
-* PHP Version: 5.6, 7.0, 7.1, 7.2 (as of May 17, 2018)
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.github/PULL_REQUEST_TEMPLATE b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.github/PULL_REQUEST_TEMPLATE
deleted file mode 100644
index d1e0450..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.github/PULL_REQUEST_TEMPLATE
+++ /dev/null
@@ -1,26 +0,0 @@
-<!--
-We appreciate the effort for this pull request but before that please make sure you read the contribution guidelines given above, then fill out the blanks below.
-
-**All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.**
-
-Please enter each Issue number you are resolving in your PR after one of the following words [Fixes, Closes, Resolves]. This will auto-link these issues and close them when this PR is merged!
-e.g.
-Fixes #1
-Closes #2
--->
-# Fixes #
-
-### Checklist
-- [ ] I acknowledge that all my contributions will be made under the project's license
-- [ ] I have made a material change to the repo (functionality, testing, spelling, grammar)
-- [ ] I have read the [Contribution Guide] and my PR follows them.
-- [ ] I updated my branch with the development branch.
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation about the functionality in the appropriate .md file
-- [ ] I have added in line documentation to the code I modified
-
-### Short description of what this PR does:
--
--
-
-If you have questions, please send an email to [Twilio Sendgrid](mailto:dx@sendgrid.com), or file a Github Issue in this repository.
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.travis.yml b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.travis.yml
deleted file mode 100644
index c222a38..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.travis.yml
+++ /dev/null
@@ -1,33 +0,0 @@
-language: php
-
-before_script:
-- composer install
-- "./test/prism.sh &"
-- sleep 60
-- cd test
-
-script:
-- "../vendor/bin/phpunit . --filter test*"
-
-after_script:
-- cd ../
-after_success:
-- bash <(curl -s https://codecov.io/bash)
-
-php:
-- 5.6
-- 7.0
-- 7.1
-- 7.2
-- 7.3
-
-notifications:
- hipchat:
- rooms:
- secure: l4RUOBY44kVhSxx54NU3cmvn598rRMB7Y272Ct/W0fBm1tdGncp42A/rwg7JkiZH9EWXs3tKtoSjqw5xT6QeScUGQDdykS5QVO8lEIkDRGD4WwQ3VDJmRy1+04WtgqFEK8SyYTCcCl4ZJ0rtOcJZgDMvigkOJuLxwGXTDuvfu1k=
- template:
- - '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
- Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
- <a href="https://github.com/%{repository}/commits/%{commit}">View on GitHub</a>'
- format: html
- notify: true
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/CODE_OF_CONDUCT.md b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/CODE_OF_CONDUCT.md
deleted file mode 100644
index 2bd6362..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# Twilio SendGrid Community Code of Conduct
-
-The Twilio SendGrid open source community is made up of members from around the globe with a diverse set of skills, personalities, and experiences. It is through these differences that our community experiences successes and continued growth. When you're working with members of the community, we encourage you to follow these guidelines, which help steer our interactions and strive to maintain a positive, successful and growing community.
-
-### Be Open
-Members of the community are open to collaboration, whether it's on pull requests, code reviews, approvals, issues or otherwise. We're receptive to constructive comments and criticism, as the experiences and skill sets of all members contribute to the whole of our efforts. We're accepting of all who wish to take part in our activities, fostering an environment where anyone can participate, and everyone can make a difference.
-
-### Be Considerate
-Members of the community are considerate of their peers, which include other contributors and users of Twilio SendGrid. We're thoughtful when addressing the efforts of others, keeping in mind that often the labor was completed with the intent of the good of the community. We're attentive in our communications, whether in person or online, and we're tactful when approaching differing views.
-
-### Be Respectful
-Members of the community are respectful. We're respectful of others, their positions, their skills, their commitments and their efforts. We're respectful of the volunteer efforts that permeate the Twilio SendGrid community. We're respectful of the processes outlined in the community, and we work within them. When we disagree, we are courteous in raising our issues. Overall, we're good to each other. We contribute to this community not because we have to, but because we want to. If we remember that, these guidelines will come naturally.
-
-## Additional Guidance
-
-### Disclose Potential Conflicts of Interest
-Community discussions often involve interested parties. We expect participants to be aware when they are conflicted due to employment or other projects they are involved in and disclose those interests to other project members. When in doubt, over-disclose. Perceived conflicts of interest are important to address so that the community’s decisions are credible even when unpopular, difficult or favorable to the interests of one group over another.
-
-### Interpretation
-This Code is not exhaustive or complete. It is not a rulebook; it serves to distill our common understanding of a collaborative, shared environment and goals. We expect it to be followed in spirit as much as in the letter. When in doubt, try to abide by [Twilio SendGrid’s cultural values](https://sendgrid.com/blog/employee-engagement-the-4h-way) defined by our “4H’s”: Happy, Hungry, Humble and Honest.
-
-### Enforcement
-Most members of the Twilio SendGrid community always comply with this Code, not because of the existence of this Code, but because they have long experience participating in open source communities where the conduct described above is normal and expected. However, failure to observe this Code may be grounds for suspension, reporting the user for abuse or changing permissions for outside contributors.
-
-## If you have concerns about someone’s conduct
-**Initiate Direct Contact** - It is always appropriate to email a community member (if contact information is available), mention that you think their behavior was out of line, and (if necessary) point them to this Code.
-
-**Discuss Publicly** - Discussing publicly is always acceptable. Note, though, that approaching the person directly may be better, as it tends to make them less defensive, and it respects the time of other community members, so you probably want to try direct contact first.
-
-**Contact the Moderators** - You can reach the Twilio SendGrid moderators by emailing dx@sendgrid.com.
-
-## Attribution
-
-Twilio SendGrid thanks the following, on which it draws for content and inspiration:
-
-* [Python Community Code of Conduct](https://www.python.org/psf/codeofconduct/)
-* [Open Source Initiative General Code of Conduct](https://opensource.org/codeofconduct)
-* [Apache Code of Conduct](https://www.apache.org/foundation/policies/conduct.html)
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/LICENSE.md b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/LICENSE.md
deleted file mode 100644
index 42495db..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2012-19 Twilio SendGrid, Inc.
-
-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/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/README.md b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/README.md
deleted file mode 100644
index 79d38ee..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/README.md
+++ /dev/null
@@ -1,232 +0,0 @@
-![SendGrid Logo](https://github.com/sendgrid/sendgrid-python/raw/master/twilio_sendgrid_logo.png)
-
-[![BuildStatus](https://travis-ci.org/sendgrid/sendgrid-php.svg?branch=master)](https://travis-ci.org/sendgrid/sendgrid-php)
-[![Packagist](https://img.shields.io/packagist/v/sendgrid/sendgrid.svg)](https://packagist.org/packages/sendgrid/sendgrid)
-[![Downloads](https://img.shields.io/packagist/dt/sendgrid/sendgrid.svg?maxAge=3600)](https://packagist.org/packages/sendgrid/sendgrid)
-[![Email Notifications Badge](https://dx.sendgrid.com/badge/php)](https://dx.sendgrid.com/newsletter/php)
-[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.md)
-[![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social&label=Follow)](https://twitter.com/sendgrid)
-[![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/sendgrid-php.svg)](https://github.com/sendgrid/sendgrid-php/graphs/contributors)
-[![Open Source Helpers](https://www.codetriage.com/sendgrid/sendgrid-php/badges/users.svg)](https://www.codetriage.com/sendgrid/sendgrid-php)
-
-**NEW:**
-- Subscribe to email [notifications](https://dx.sendgrid.com/newsletter/php) for releases and breaking changes.
-- Send SMS messages with [Twilio](https://github.com/sendgrid/sendgrid-php/blob/master/USE_CASES.md#sms).
-
-**This library allows you to quickly and easily use the Twilio SendGrid Web API v3 via PHP.**
-
-Version 7.X.X of this library provides full support for all Twilio SendGrid [Web API v3](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html) endpoints, including the new [v3 /mail/send](https://sendgrid.com/blog/introducing-v3mailsend-sendgrids-new-mail-endpoint).
-
-We want this library to be community driven and Twilio SendGrid led. Your help is needed to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/sendgrid/sendgrid-php/issues) and [pull requests](https://github.com/sendgrid/sendgrid-php/blob/master/CONTRIBUTING.md) or simply upvote or comment on existing issues or pull requests.
-
-Please browse the rest of this README for further details.
-
-We appreciate your continued support, thank you!
-
-# Table of Contents
-
-* [Installation](#installation)
-* [Quick Start](#quick-start)
-* [Use Cases](#use-cases)
-* [Usage](#usage)
-* [Announcements](#announcements)
-* [Roadmap](#roadmap)
-* [How to Contribute](#contribute)
-* [Troubleshooting](#troubleshooting)
-* [About](#about)
-* [License](#license)
-
-<a name="installation"></a>
-# Installation
-
-## Prerequisites
-
-- PHP version 5.6, 7.0, 7.1 or 7.2
-- The Twilio SendGrid service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-php) to send up to 40,000 emails for the first 30 days, then send 100 emails/day free forever or check out [our pricing](https://sendgrid.com/pricing?source=sendgrid-php).
-- For SMS messages, you will need a free [Twilio account](https://www.twilio.com/try-twilio?source=sendgrid-php).
-
-## Setup Environment Variables
-
-Update the development environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys), for example:
-
-1. Copy the sample env file to a new file named `.env`
-```bash
-cp .env.sample .env
-```
-2. Edit the `.env` file to include your `SENDGRID_API_KEY`
-3. Source the `.env` file
-```bash
-source ./.env
-```
-
-## Install Package
-
-Add Twilio SendGrid to your `composer.json` file. If you are not using [Composer](http://getcomposer.org), we highly recommend it. It's an excellent way to manage dependencies in your PHP application.
-
-```json
-{
- "require": {
- "sendgrid/sendgrid": "~7"
- }
-}
-```
-
-#### Alternative: Install package from zip
-
-If you are not using Composer, simply download and install the **[latest packaged release of the library as a zip](https://github.com/sendgrid/sendgrid-php/releases/download/v7.3.0/sendgrid-php.zip)**.
-
-[**⬇︎ Download Packaged Library ⬇︎**](https://github.com/sendgrid/sendgrid-php/releases/download/v7.3.0/sendgrid-php.zip)
-
-Previous versions of the library can be found in the [version index](https://sendgrid-open-source.s3.amazonaws.com/index.html) or downloaded directly from [GitHub](https://github.com/sendgrid/sendgrid-php/releases).
-
-## Dependencies
-
-- The Twilio SendGrid Service, starting at the [free level](https://sendgrid.com/free?source=sendgrid-php)
-- The dependency free [php-http-client](https://github.com/sendgrid/php-http-client)
-
-<a name="quick-start"></a>
-# Quick Start
-
-## Hello Email
-
-The following is the minimum needed code to send an email. You may find more examples in our USE_CASES file:
-
-```php
-<?php
-require 'vendor/autoload.php'; // If you're using Composer (recommended)
-// Comment out the above line if not using Composer
-// require("<PATH TO>/sendgrid-php.php");
-// If not using Composer, uncomment the above line and
-// download sendgrid-php.zip from the latest release here,
-// replacing <PATH TO> with the path to the sendgrid-php.php file,
-// which is included in the download:
-// https://github.com/sendgrid/sendgrid-php/releases
-
-$email = new \SendGrid\Mail\Mail();
-$email->setFrom("test@example.com", "Example User");
-$email->setSubject("Sending with Twilio SendGrid is Fun");
-$email->addTo("test@example.com", "Example User");
-$email->addContent("text/plain", "and easy to do anywhere, even with PHP");
-$email->addContent(
- "text/html", "<strong>and easy to do anywhere, even with PHP</strong>"
-);
-$sendgrid = new \SendGrid(getenv('SENDGRID_API_KEY'));
-try {
- $response = $sendgrid->send($email);
- print $response->statusCode() . "\n";
- print_r($response->headers());
- print $response->body() . "\n";
-} catch (Exception $e) {
- echo 'Caught exception: '. $e->getMessage() ."\n";
-}
-```
-
-The `SendGrid\Mail` constructor creates a [personalization object](https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/personalizations.html) for you. [Here](https://github.com/sendgrid/sendgrid-php/blob/master/USE_CASES.md#kitchen-sink) is an example of how to add to it.
-
-## General v3 Web API Usage (With Fluent Interface)
-
-```php
-<?php
-require 'vendor/autoload.php'; // If you're using Composer (recommended)
-// Comment out the above line if not using Composer
-// Comment out the above line if not using Composer
-// require("<PATH TO>/sendgrid-php.php");
-// If not using Composer, uncomment the above line and
-// download sendgrid-php.zip from the latest release here,
-// replacing <PATH TO> with the path to the sendgrid-php.php file,
-// which is included in the download:
-// https://github.com/sendgrid/sendgrid-php/releases
-
-$apiKey = getenv('SENDGRID_API_KEY');
-$sg = new \SendGrid($apiKey);
-
-try {
- $response = $sg->client->suppression()->bounces()->get();
- print $response->statusCode() . "\n";
- print_r($response->headers());
- print $response->body() . "\n";
-} catch (Exception $e) {
- echo 'Caught exception: '. $e->getMessage(). "\n";
-}
-```
-
-## General v3 Web API Usage (Without Fluent Interface)
-
-```php
-<?php
-require 'vendor/autoload.php'; // If you're using Composer (recommended)
-// Comment out the above line if not using Composer
-// Comment out the above line if not using Composer
-// require("<PATH TO>/sendgrid-php.php");
-// If not using Composer, uncomment the above line and
-// download sendgrid-php.zip from the latest release here,
-// replacing <PATH TO> with the path to the sendgrid-php.php file,
-// which is included in the download:
-// https://github.com/sendgrid/sendgrid-php/releases
-
-$apiKey = getenv('SENDGRID_API_KEY');
-$sg = new \SendGrid($apiKey);
-
-try {
- $response = $sg->client->_("suppression/bounces")->get();
- print $response->statusCode() . "\n";
- print_r($response->headers());
- print $response->body() . "\n";
-} catch (Exception $e) {
- echo 'Caught exception: '. $e->getMessage(). "\n";
-}
-```
-
-<a name="use-cases"></a>
-# Use Cases
-
-[Examples of common API use cases](https://github.com/sendgrid/sendgrid-php/blob/master/USE_CASES.md), such as how to send an email with a transactional template.
-
-<a name="usage"></a>
-# Usage
-
-- [Twilio SendGrid Docs](https://sendgrid.com/docs/API_Reference/index.html)
-- [Generic Library Usage
- Documentation](https://github.com/sendgrid/sendgrid-php/tree/master/USAGE.md)
-- [Example Code](https://github.com/sendgrid/sendgrid-php/blob/master/USE_CASES.md)
-
-<a name="announcements"></a>
-# Announcements
-
-v7 has been released! Please see the [release notes](https://github.com/sendgrid/sendgrid-php/releases/tag/v7.0.0) for details.
-
-All updates to this library are documented in our [CHANGELOG](https://github.com/sendgrid/sendgrid-php/blob/master/CHANGELOG.md) and [releases](https://github.com/sendgrid/sendgrid-php/releases). You may also subscribe to email [release notifications](https://dx.sendgrid.com/newsletter/php) for releases and breaking changes.
-
-<a name="roadmap"></a>
-# Roadmap
-
-If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/sendgrid/sendgrid-php/issues) and [pull requests](https://github.com/sendgrid/sendgrid-php/pulls). We would love to hear your feedback.
-
-<a name="contribute"></a>
-# How to Contribute
-
-We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/sendgrid/sendgrid-php/blob/master/CONTRIBUTING.md) guide for details.
-
-Quick links:
-
-- [Feature Request](https://github.com/sendgrid/sendgrid-php/blob/master/CONTRIBUTING.md#feature_request)
-- [Bug Reports](https://github.com/sendgrid/sendgrid-php/blob/master/CONTRIBUTING.md#submit_a_bug_report)
-- [Sign the CLA to Create a Pull Request](https://github.com/sendgrid/sendgrid-php/blob/master/CONTRIBUTING.md#cla)
-- [Improvements to the Codebase](https://github.com/sendgrid/sendgrid-php/blob/master/CONTRIBUTING.md#improvements_to_the_codebase)
-- [Review Pull Requests](https://github.com/sendgrid/sendgrid-php/blob/master/CONTRIBUTING.md#code-reviews)
-
-<a name="troubleshooting"></a>
-# Troubleshooting
-
-Please see our [troubleshooting guide](https://github.com/sendgrid/sendgrid-php/blob/master/TROUBLESHOOTING.md) for common library issues.
-
-<a name="about"></a>
-# About
-
-sendgrid-php is guided and supported by the Twilio [Developer Experience Team](mailto:dx@sendgrid.com).
-
-sendgrid-php is maintained and funded by Twilio SendGrid, Inc. The names and logos for sendgrid-php are trademarks of Twilio SendGrid, Inc.
-
-
-# License
-[The MIT License (MIT)](LICENSE.txt)
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/composer.json b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/composer.json
deleted file mode 100644
index d7dea0e..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/composer.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "name": "sendgrid/sendgrid",
- "description": "This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.",
- "version": "7.3.0",
- "homepage": "http://github.com/sendgrid/sendgrid-php",
- "license": "MIT",
- "keywords": [
- "SendGrid",
- "sendgrid",
- "Twilio SendGrid",
- "twilio sendgrid",
- "email",
- "send",
- "grid"
- ],
- "require": {
- "php": ">=5.6",
- "sendgrid/php-http-client": "~3.9",
- "ext-curl": "*",
- "ext-json": "*",
- "ext-mbstring": "*",
- "ext-openssl": "*"
- },
- "require-dev": {
- "phpunit/phpunit": "^5.7.9 || ^6.4.3",
- "squizlabs/php_codesniffer": "3.*",
- "swaggest/json-diff": "^3.4"
- },
- "replace": {
- "sendgrid/sendgrid-php": "*"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "SendGrid\\": "lib/",
- "SendGrid\\Mail\\": "lib/mail/",
- "SendGrid\\Contacts\\": "lib/contacts/",
- "SendGrid\\Stats\\": "lib/stats/"
- },
- "files": ["lib/SendGrid.php"]
- },
- "autoload-dev": {
- "psr-4": {
- "SendGrid\\Tests\\": "test/"
- }
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/Dockerfile b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/Dockerfile
deleted file mode 100644
index 125579e..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/Dockerfile
+++ /dev/null
@@ -1,22 +0,0 @@
-FROM php:7.1-cli
-
-ENV OAI_SPEC_URL="https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json"
-ENV SENDGRID_API_KEY $SENDGRID_API_KEY
-
-# install Prism
-WORKDIR /root
-
-# install Prism
-ADD https://raw.githubusercontent.com/stoplightio/prism/master/install.sh install.sh
-RUN chmod +x ./install.sh && sync && \
- ./install.sh && \
- rm ./install.sh
-
-# set up default Twilio SendGrid env
-WORKDIR /root
-
-RUN mkdir sendgrid-php
-COPY entrypoint.sh entrypoint.sh
-RUN chmod +x entrypoint.sh
-ENTRYPOINT ["./entrypoint.sh"]
-CMD ["--mock"]
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/README.md b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/README.md
deleted file mode 100644
index 7a2b4cb..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/README.md
+++ /dev/null
@@ -1,50 +0,0 @@
-Use Docker to easily try out or contribute to the sendgrid-php library.
-
-This Docker image contains:
- - PHP 7.1.16
- - A running instance of [Stoplight.io's Prism](https://stoplight.io/platform/prism/), which lets you try out the Twilio SendGrid API without actually sending email
- - A mirrored copy of sendgrid-php so that you may develop locally and then run the tests within the Docker container.
-
-# Table of Contents
-
-* [Quick Start](#quick-start)
-* [Testing](#testing)
-* [Contributing](#contributing)
-
-<a name="quick-start"></a>
-# Quick Start
-
-0. Install Composer:
- - `php -r "readfile('https://getcomposer.org/installer');" | php`
- - `mv composer.phar /usr/local/bin/composer`
-1. Clone the sendgrid-php repo
- - `git clone https://github.com/sendgrid/sendgrid-php.git`
- - `cd sendgrid-php`
- - `composer install`
-2. [Install Docker](https://docs.docker.com/install/)
-3. [Setup local environment variable SENDGRID_API_KEY](https://github.com/sendgrid/sendgrid-php#setup-environment-variables)
-4. Build Docker image, run Docker container, login to the Docker container
- - `docker image build --tag="sendgrid/php7" ./docker`
- - `docker run -itd --name="sendgrid_php7" -v $(pwd):/root/sendgrid-php sendgrid/php7 /bin/bash`
-5. Run the tests within the Docker container
- - `docker exec -it sendgrid_php7 /bin/bash -c 'cd sendgrid-php/test; ../vendor/bin/phpunit . --filter test*; exec "${SHELL:-sh}"'`
-
-Now you can continue development locally, and run `../vendor/bin/phpunit . --filter test*` inside of the container to test. Replace `test*` with the name of a particular test if you do not wish to run the entire suite of tests.
-
-To clean up the container: `docker stop sendgrid_php7 && docker rm sendgrid_php7`.
-
-Happy Hacking!
-
-<a name="testing"></a>
-# For Testing the Library (Kick the Tires)
-
-- After step 5 in the QuickStart, within the Docker container:
- - `cd ../`
- - `php sendmail.php`
-
-<a name="contributing"></a>
-# For Contributors
-
-- Develop per usual locally, but before pushing up to GitHub, you can run the tests locally in the Docker container per step 5 of the quickstart.
-- To run all the tests: `../vendor/bin/phpunit . --filter test*`
-- To run an individual test: `../vendor/bin/phpunit . --filter [Name of Test]`
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/entrypoint.sh b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/entrypoint.sh
deleted file mode 100644
index fd2bcbd..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/docker/entrypoint.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#! /bin/bash
-clear
-
-if [ "$1" != "--no-mock" ]
-then
- echo "Starting Prism in mock mode. Calls made to Prism will not actually send emails."
- echo "Disable this by running this container with --no-mock."
- prism run --mock --spec $OAI_SPEC_URL 2> /dev/null &
-else
- echo "Starting Prism in live (--no-mock) mode. Calls made to Prism will send emails."
- prism run --spec $OAI_SPEC_URL 2> /dev/null &
-fi
-
-cd sendgrid-php
-exec $SHELL
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/SendGrid.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/SendGrid.php
deleted file mode 100644
index 08ee1d6..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/SendGrid.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/**
- * This library allows you to quickly and easily send emails through
- * Twilio SendGrid using PHP.
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-/**
- * This class is the interface to the Twilio SendGrid Web API
- *
- * @package SendGrid\Mail
- */
-class SendGrid
-{
- const VERSION = '7.3.0';
-
- // @var string
- protected $namespace = 'SendGrid';
-
- // @var \SendGrid\Client
- public $client;
- // @var string
- public $version = self::VERSION;
-
- /**
- * Setup the HTTP Client
- *
- * @param string $apiKey Your Twilio SendGrid API Key.
- * @param array $options An array of options, currently only "host", "curl" and
- * "impersonateSubuser" are implemented.
- */
- public function __construct($apiKey, $options = array())
- {
- $headers = array(
- 'Authorization: Bearer '.$apiKey,
- 'User-Agent: sendgrid/' . $this->version . ';php',
- 'Accept: application/json'
- );
-
- $host = isset($options['host']) ? $options['host'] :
- 'https://api.sendgrid.com';
-
- if (!empty($options['impersonateSubuser'])) {
- $headers[] = 'On-Behalf-Of: '. $options['impersonateSubuser'];
- }
-
- $curlOptions = isset($options['curl']) ? $options['curl'] : null;
-
- $this->client = new \SendGrid\Client(
- $host,
- $headers,
- '/v3',
- null,
- $curlOptions
- );
- }
-
- /**
- * Make an API request
- *
- * @param \SendGrid\Mail\Mail $email A Mail object, containing the request object
- *
- * @return \SendGrid\Response
- */
- public function send(\SendGrid\Mail\Mail $email)
- {
- return $this->client->mail()->send()->post($email);
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/README.md b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/README.md
deleted file mode 100644
index 601f3b3..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Recipients Helper
-
-**This helper allows you to quickly and easily build a subscription form to add contacts to your contactdb in Sendgrid.**
-
-## Quick Start
-
-Run the [example](https://github.com/sendgrid/sendgrid-php/blob/master/examples/helpers/contacts/recipients.php) (make sure you have set your environment variable to include your SENDGRID_API_KEY).
-
-```bash
-php examples/helpers/contacts/recipients.php
-```
-
-## Usage
-
-- See this complete working [example](https://github.com/sendgrid/sendgrid-php/blob/master/examples/helpers/contacts/recipients.php).
-- [Documentation](https://sendgrid.com/docs/API_Reference/api_v3.html#contacts-api-recipients)
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/Recipient.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/Recipient.php
deleted file mode 100644
index 7eb00be..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/Recipient.php
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php
-/**
- * This helper builds a recipient for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Contacts
- * @author Kraig Hufstedler <kraigory@gmail.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Contacts;
-/**
- * This class is used to construct a recipient for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Recipient implements \JsonSerializable
-{
- /** @var $firstName string First name of the email recipient */
- private $firstName;
- /** @var $lastName string Last name of the email recipient */
- private $lastName;
- /** @var $email string Email address of the recipient */
- private $email;
-
- /**
- * Create a recipient for the /mail/send API call
- *
- * @param string $firstName First name of the email recipient
- * @param string $lastName Last name of the email recipient
- * @param string $email Email address of the recipient
- */
- public function __construct($firstName, $lastName, $email)
- {
- $this->firstName = $firstName;
- $this->lastName = $lastName;
- $this->email = $email;
- }
-
- /**
- * Retrieve the first name of the recipient
- *
- * @return string
- */
- public function getFirstName()
- {
- return $this->firstName;
- }
-
- /**
- * Retrieve the last name of the recipient
- *
- * @return string
- */
- public function getLastName()
- {
- return $this->lastName;
- }
-
- /**
- * Retrieve the email address of the recipient
- *
- * @return string
- */
- public function getEmail()
- {
- return $this->email;
- }
-
- /**
- * Return an array representing a recipient object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'email' => $this->getEmail(),
- 'first_name' => $this->getFirstName(),
- 'last_name' => $this->getLastName()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/RecipientForm.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/RecipientForm.php
deleted file mode 100644
index 18bbc53..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/contacts/RecipientForm.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-/**
- * This helper builds a html form and provides a submission endpoint
- * for the form that makes a /contactdb/recipients API call.
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Contacts
- * @author Kraig Hufstedler <kraigory@gmail.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Contacts;
-
-/**
- * This class is used to build a html form and provides a submission
- * endpoint for the form that makes a /contactdb/recipients API call.
- *
- * @package SendGrid\Contacts
- */
-class RecipientForm
-{
- /** @var $html string HTML content for the form */
- private $html;
-
- /**
- * Form constructor
- *
- * @param string $url The url the form should submit to
- */
- public function __construct($url)
- {
- $html = '<form action="' . $url . '" method="post">
- First Name: <input type="text" name="first-name"><br>
- Last Name: <input type="text" name="last-name"><br>
- E-mail: <input type="text" name="email"><br>
- <input type="submit">
-</form>';
- $this->html = $html;
- }
-
- /**
- * Return the HTML form
- *
- * @return string
- */
- public function __toString()
- {
- return $this->html;
- }
-
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/loader.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/loader.php
deleted file mode 100644
index 9e6a749..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/loader.php
+++ /dev/null
@@ -1,54 +0,0 @@
-<?php
-/**
- * Allows us to include one file instead of two when working without composer.
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-require_once __DIR__ . '/SendGrid.php';
-require_once __DIR__ . '/contacts/Recipient.php';
-require_once __DIR__ . '/contacts/RecipientForm.php';
-require_once __DIR__ . '/mail/EmailAddress.php';
-require_once __DIR__ . '/mail/Asm.php';
-require_once __DIR__ . '/mail/Attachment.php';
-require_once __DIR__ . '/mail/BatchId.php';
-require_once __DIR__ . '/mail/Bcc.php';
-require_once __DIR__ . '/mail/BccSettings.php';
-require_once __DIR__ . '/mail/BypassListManagement.php';
-require_once __DIR__ . '/mail/Category.php';
-require_once __DIR__ . '/mail/Cc.php';
-require_once __DIR__ . '/mail/ClickTracking.php';
-require_once __DIR__ . '/mail/Content.php';
-require_once __DIR__ . '/mail/CustomArg.php';
-require_once __DIR__ . '/mail/Footer.php';
-require_once __DIR__ . '/mail/From.php';
-require_once __DIR__ . '/mail/Ganalytics.php';
-require_once __DIR__ . '/mail/GroupId.php';
-require_once __DIR__ . '/mail/GroupsToDisplay.php';
-require_once __DIR__ . '/mail/Header.php';
-require_once __DIR__ . '/mail/HtmlContent.php';
-require_once __DIR__ . '/mail/IpPoolName.php';
-require_once __DIR__ . '/mail/Mail.php';
-require_once __DIR__ . '/mail/MailSettings.php';
-require_once __DIR__ . '/mail/MimeType.php';
-require_once __DIR__ . '/mail/OpenTracking.php';
-require_once __DIR__ . '/mail/Personalization.php';
-require_once __DIR__ . '/mail/PlainTextContent.php';
-require_once __DIR__ . '/mail/ReplyTo.php';
-require_once __DIR__ . '/mail/Section.php';
-require_once __DIR__ . '/mail/SandBoxMode.php';
-require_once __DIR__ . '/mail/SendAt.php';
-require_once __DIR__ . '/mail/SpamCheck.php';
-require_once __DIR__ . '/mail/Subject.php';
-require_once __DIR__ . '/mail/SubscriptionTracking.php';
-require_once __DIR__ . '/mail/Substitution.php';
-require_once __DIR__ . '/mail/TemplateId.php';
-require_once __DIR__ . '/mail/TrackingSettings.php';
-require_once __DIR__ . '/mail/To.php';
-require_once __DIR__ . '/stats/Stats.php';
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Asm.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Asm.php
deleted file mode 100644
index c5f3643..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Asm.php
+++ /dev/null
@@ -1,150 +0,0 @@
-<?php
-/**
- * This helper builds the Asm object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Asm object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Asm implements \JsonSerializable
-{
- /** @var $group_id int The unsubscribe group to associate with this email */
- private $group_id;
- /**
- * @var $groups_to_display int[] An array containing the unsubscribe groups that you
- * would like to be displayed on the unsubscribe preferences page.
- */
- private $groups_to_display;
-
- /**
- * Optional constructor
- *
- * @param int|GroupId|null $group_id A GroupId object or the
- * unsubscribe group to
- * associate with this email
- * @param int[]|GroupsToDisplay|null $groups_to_display A GroupsToDisplay
- * object or an array
- * containing the
- * unsubscribe groups
- * that you would like
- * to be displayed
- * on the unsubscribe
- * preferences page.
- */
- public function __construct(
- $group_id = null,
- $groups_to_display = null
- ) {
- if (isset($group_id)) {
- $this->setGroupId($group_id);
- }
- if (isset($groups_to_display)) {
- $this->setGroupsToDisplay($groups_to_display);
- }
- }
-
- /**
- * Add the group id to a Asm object
- *
- * @param int|GroupId $group_id The unsubscribe group to associate with this
- * email
- *
- * @throws TypeException
- */
- public function setGroupId($group_id)
- {
- if ($group_id instanceof GroupId) {
- $this->group_id = $group_id->getGroupId();
- } else {
- if (!is_int($group_id)) {
- throw new TypeException(
- '$group_id must be an instance of Twilio SendGrid\Mail\GroupId or of type int.'
- );
- }
- $this->group_id = new GroupId($group_id);
- }
- return;
- }
-
- /**
- * Retrieve the GroupId object from a Asm object
- *
- * The unsubscribe group to associate with this email
- *
- * @return int
- */
- public function getGroupId()
- {
- return $this->group_id;
- }
-
- /**
- * Add the groups to display id(s) to a Asm object
- *
- * @param int[]|GroupsToDisplay $groups_to_display A GroupsToDisplay
- * object or an array
- * containing the
- * unsubscribe groups
- * that you would like
- * to be displayed
- * on the unsubscribe
- * preferences page.
- *
- * @throws TypeException
- */
- public function setGroupsToDisplay($groups_to_display)
- {
- if ($groups_to_display instanceof GroupsToDisplay) {
- $this->groups_to_display = $groups_to_display->getGroupsToDisplay();
- } else {
- if (!is_array($groups_to_display)) {
- throw new TypeException(
- '$groups_to_display must be an instance of Twilio SendGrid\Mail\GroupsToDisplay or of type array.'
- );
- }
- $this->groups_to_display = new GroupsToDisplay($groups_to_display);
- }
- return;
- }
-
- /**
- * Retrieve the groups to display id(s) from a Asm object
- *
- * @return int[]
- */
- public function getGroupsToDisplay()
- {
- return $this->groups_to_display;
- }
-
- /**
- * Return an array representing a Asm object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'group_id' => $this->getGroupId(),
- 'groups_to_display' => $this->getGroupsToDisplay()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Attachment.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Attachment.php
deleted file mode 100644
index 632781c..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Attachment.php
+++ /dev/null
@@ -1,235 +0,0 @@
-<?php
-/**
- * This helper builds the Attachment object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Attachment object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Attachment implements \JsonSerializable
-{
- /** @var $content string Base64 encoded content */
- private $content;
- /** @var $type string Mime type of the attachment */
- private $type;
- /** @var $filename string File name of the attachment */
- private $filename;
- /** @var $disposition string How the attachment should be displayed: inline or attachment, default is attachment */
- private $disposition;
- /** @var $content_id string Used when disposition is inline to diplay the file within the body of the email */
- private $content_id;
-
- /**
- * Optional constructor
- *
- * @param string $content Base64 encoded content
- * @param string $type Mime type of the attachment
- * @param string $filename File name of the attachment
- * @param string $disposition How the attachment should be displayed: inline
- * or attachment, default is attachment
- * @param string $content_id Used when disposition is inline to diplay the
- * file within the body of the email
- */
- public function __construct(
- $content = null,
- $type = null,
- $filename = null,
- $disposition = null,
- $content_id = null
- ) {
- if (isset($content)) {
- $this->setContent($content);
- }
- if (isset($type)) {
- $this->setType($type);
- }
- if (isset($filename)) {
- $this->setFilename($filename);
- }
- if (isset($disposition)) {
- $this->setDisposition($disposition);
- }
- if (isset($content_id)) {
- $this->setContentID($content_id);
- }
- }
-
- /**
- * Add the content to a Attachment object
- *
- * @param string $content Base64 encoded content
- *
- * @throws TypeException
- */
- public function setContent($content)
- {
- if (!is_string($content)) {
- throw new TypeException('$content must be of type string.');
- }
- if (!$this->isBase64($content)) {
- $this->content = base64_encode($content);
- } else {
- $this->content = $content;
- }
- }
-
- /**
- * Retrieve the content from a Attachment object
- *
- * @return string
- */
- public function getContent()
- {
- return $this->content;
- }
-
- /**
- * Add the mime type to a Attachment object
- *
- * @param string $type Mime type of the attachment
- *
- * @throws TypeException
- */
- public function setType($type)
- {
- if (!is_string($type)) {
- throw new TypeException('$type must be of type string.');
- }
- $this->type = $type;
- }
-
- /**
- * Retrieve the mime type from a Attachment object
- *
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Add the file name to a Attachment object
- *
- * @param string $filename File name of the attachment
- *
- * @throws TypeException
- */
- public function setFilename($filename)
- {
- if (!is_string($filename)) {
- throw new TypeException('$filename must be of type string');
- }
- $this->filename = $filename;
- }
-
- /**
- * Retrieve the file name from a Attachment object
- *
- * @return string
- */
- public function getFilename()
- {
- return $this->filename;
- }
-
- /**
- * Add the disposition to a Attachment object
- *
- * @param string $disposition How the attachment should be displayed:
- * inline or attachment, default is attachment
- *
- * @throws TypeException
- */
- public function setDisposition($disposition)
- {
- if (!is_string($disposition)) {
- throw new TypeException('$disposition must be of type string.');
- }
- $this->disposition = $disposition;
- }
-
- /**
- * Retrieve the disposition from a Attachment object
- *
- * @return string
- */
- public function getDisposition()
- {
- return $this->disposition;
- }
-
- /**
- * Add the content id to a Attachment object
- *
- * @param string $content_id Used when disposition is inline to diplay
- * the file within the body of the email
- */
- public function setContentID($content_id)
- {
- if (!is_string($content_id)) {
- throw new TypeException('$content_id must be of type string.');
- }
- $this->content_id = $content_id;
- }
-
- /**
- * Retrieve the content id from a Attachment object
- *
- * @return string
- */
- public function getContentID()
- {
- return $this->content_id;
- }
-
- /**
- * Verifies whether or not the provided string is a valid base64 string
- *
- * @param $string string The string that has to be checked
- * @return bool
- */
- private function isBase64($string)
- {
- $decoded_data = base64_decode($string, true);
- $encoded_data = base64_encode($decoded_data);
- if ($encoded_data != $string) {
- return false;
- }
- return true;
- }
-
- /**
- * Return an array representing a Attachment object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'content' => $this->getContent(),
- 'type' => $this->getType(),
- 'filename' => $this->getFilename(),
- 'disposition' => $this->getDisposition(),
- 'content_id' => $this->getContentID()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BatchId.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BatchId.php
deleted file mode 100644
index 508e60c..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BatchId.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-/**
- * This helper builds the BatchId object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a BatchId object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class BatchId implements \JsonSerializable
-{
- /** @var $batch_id string This ID represents a batch of emails to be sent at the same time */
- private $batch_id;
-
- /**
- * Optional constructor
- *
- * @param string|null $batch_id This ID represents a batch of emails to
- * be sent at the same time
- */
- public function __construct($batch_id = null)
- {
- if (isset($batch_id)) {
- $this->setBatchId($batch_id);
- }
- }
-
- /**
- * Add the batch id to a BatchId object
- *
- * @param string $batch_id This ID represents a batch of emails to be sent
- * at the same time
- *
- * @throws TypeException
- */
- public function setBatchId($batch_id)
- {
- if (!is_string($batch_id)) {
- throw new TypeException('$batch_id must be of type string.');
- }
- $this->batch_id = $batch_id;
- }
-
- /**
- * Return the batch id from a BatchId object
- *
- * @return string
- */
- public function getBatchId()
- {
- return $this->batch_id;
- }
-
- /**
- * Return an array representing a BatchId object for the Twilio SendGrid API
- *
- * @return null|string
- */
- public function jsonSerialize()
- {
- return $this->getBatchId();
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Bcc.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Bcc.php
deleted file mode 100644
index 88a588c..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Bcc.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * This helper builds the Bcc object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Bcc object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Bcc extends EmailAddress implements \JsonSerializable
-{
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BccSettings.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BccSettings.php
deleted file mode 100644
index 1841f01..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BccSettings.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?php
-/**
- * This helper builds the BccSettings object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a BccSettings object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class BccSettings implements \JsonSerializable
-{
- /** @var $enable bool Indicates if this setting is enabled */
- private $enable;
- /** @var $email string The email address that you would like to receive the BCC */
- private $email;
-
- /**
- * Optional constructor
- *
- * @param bool|null $enable Indicates if this setting is enabled
- * @param string|null $email The email address that you would like
- * to receive the BCC
- */
- public function __construct($enable = null, $email = null)
- {
- if (isset($enable)) {
- $this->setEnable($enable);
- }
- if (isset($email)) {
- $this->setEmail($email);
- }
- }
-
- /**
- * Update the enable setting on a BccSettings object
- *
- * @param bool $enable Indicates if this setting is enabled
- *
- * @throws TypeException
- */
- public function setEnable($enable)
- {
- if (!is_bool($enable)) {
- throw new TypeException('$enable must be of type bool.');
- }
- $this->enable = $enable;
- }
-
- /**
- * Retrieve the enable setting on a BccSettings object
- *
- * @return bool
- */
- public function getEnable()
- {
- return $this->enable;
- }
-
- /**
- * Add the email setting on a BccSettings object
- *
- * @param string $email The email address that you would like
- * to receive the BCC
- *
- * @throws TypeException
- */
- public function setEmail($email)
- {
- if (!is_string($email) &&
- filter_var($email, FILTER_VALIDATE_EMAIL)
- ) {
- throw new TypeException(
- '$email must valid and be of type string.'
- );
- }
- $this->email = $email;
- }
-
- /**
- * Retrieve the email setting on a BccSettings object
- *
- * @return string
- */
- public function getEmail()
- {
- return $this->email;
- }
-
- /**
- * Return an array representing a BccSettings object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'enable' => $this->getEnable(),
- 'email' => $this->getEmail()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BypassListManagement.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BypassListManagement.php
deleted file mode 100644
index 9b6762d..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/BypassListManagement.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-/**
- * This helper builds the BypassListManagement object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a BypassListManagement object for
- * the /mail/send API call
- *
- * Allows you to bypass all unsubscribe groups and suppressions to
- * ensure that the email is delivered to every single recipient. This
- * should only be used in emergencies when it is absolutely necessary
- * that every recipient receives your email
- *
- * @package SendGrid\Mail
- */
-class BypassListManagement implements \JsonSerializable
-{
- /** @var $enable bool Indicates if this setting is enabled */
- private $enable;
-
- /**
- * Optional constructor
- *
- * @param bool|null $enable Indicates if this setting is enabled
- */
- public function __construct($enable = null)
- {
- if (isset($enable)) {
- $this->setEnable($enable);
- }
- }
-
- /**
- * Update the enable setting on a BypassListManagement object
- *
- * @param bool $enable Indicates if this setting is enabled
- *
- * @throws TypeException
- */
- public function setEnable($enable)
- {
- if (!is_bool($enable)) {
- throw new TypeException('$enable must be of type bool.');
- }
- $this->enable = $enable;
- }
-
- /**
- * Retrieve the enable setting on a BypassListManagement object
- *
- * @return bool
- */
- public function getEnable()
- {
- return $this->enable;
- }
-
- /**
- * Return an array representing a BypassListManagement object for
- * the SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'enable' => $this->getEnable()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Category.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Category.php
deleted file mode 100644
index ce94ddc..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Category.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/**
- * This helper builds the Category object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Category object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Category implements \JsonSerializable
-{
- /** @var $category string A category name for an email message. Each category name may not exceed 255 characters */
- private $category;
-
- /**
- * Optional constructor
- *
- * @param string|null $category A category name for an email message.
- * Each category name may not exceed 255
- * characters
- */
- public function __construct($category = null)
- {
- if (isset($category)) {
- $this->setCategory($category);
- }
- }
-
- /**
- * Add a category to a Category object
- *
- * @param string $category A category name for an email message.
- * Each category name may not exceed 255
- * characters
- *
- * @throws TypeException
- */
- public function setCategory($category)
- {
- if (!is_string($category)) {
- throw new TypeException('$category must be of type string.');
- }
- $this->category = $category;
- }
-
- /**
- * Retrieve a category from a Category object
- *
- * @return string
- */
- public function getCategory()
- {
- return $this->category;
- }
-
- /**
- * Return an array representing a Category object for the Twilio SendGrid API
- *
- * @return string
- */
- public function jsonSerialize()
- {
- return $this->getCategory();
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Cc.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Cc.php
deleted file mode 100644
index 70485ee..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Cc.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * This helper builds the Cc object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Cc object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Cc extends EmailAddress implements \JsonSerializable
-{
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/ClickTracking.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/ClickTracking.php
deleted file mode 100644
index abce412..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/ClickTracking.php
+++ /dev/null
@@ -1,114 +0,0 @@
-<?php
-/**
- * This helper builds the ClickTracking object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a ClickTracking object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class ClickTracking implements \JsonSerializable
-{
- /** @var $enable bool Indicates if this setting is enabled */
- private $enable;
- /* @var $enable_text bool Indicates if this setting should be included in the text/plain portion of your email */
- private $enable_text;
-
- /**
- * Optional constructor
- *
- * @param bool|null $enable Indicates if this setting is enabled
- * @param bool|null $enable_text Indicates if this setting should be
- * included in the text/plain portion of
- * your email
- */
- public function __construct($enable = null, $enable_text = null)
- {
- if (isset($enable)) {
- $this->setEnable($enable);
- }
- if (isset($enable_text)) {
- $this->setEnableText($enable_text);
- }
- }
-
- /**
- * Update the enable setting on a ClickTracking object
- *
- * @param bool $enable Indicates if this setting is enabled
- *
- * @throws TypeException
- */
- public function setEnable($enable)
- {
- if (!is_bool($enable)) {
- throw new TypeException('$enable must be of type bool.');
- }
- $this->enable = $enable;
- }
-
- /**
- * Retrieve the enable setting on a ClickTracking object
- *
- * @return bool
- */
- public function getEnable()
- {
- return $this->enable;
- }
-
- /**
- * Update the enable text setting on a ClickTracking object
- *
- * @param bool $enable_text Indicates if this setting is enabled
- *
- * @throws TypeException
- */
- public function setEnableText($enable_text)
- {
- if (!is_bool($enable_text)) {
- throw new TypeException('$enable_text must be of type bool');
- }
- $this->enable_text = $enable_text;
- }
-
- /**
- * Retrieve the enable_text setting on a ClickTracking object
- *
- * @return bool
- */
- public function getEnableText()
- {
- return $this->enable_text;
- }
-
- /**
- * Return an array representing a ClickTracking object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'enable' => $this->getEnable(),
- 'enable_text' => $this->getEnableText()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Content.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Content.php
deleted file mode 100644
index 62417d5..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Content.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?php
-/**
- * This helper builds the Content object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Content object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Content implements \JsonSerializable
-{
- /** @var $type string The mime type of the content you are including in your email. For example, “text/plain” or “text/html” */
- private $type;
- /** @var $value string The actual content of the specified mime type that you are including in your email */
- private $value;
-
- /**
- * Optional constructor
- *
- * @param string|null $type The mime type of the content you are including
- * in your email. For example, “text/plain” or
- * “text/html”
- * @param string|null $value The actual content of the specified mime type
- * that you are including in your email
- */
- public function __construct($type = null, $value = null)
- {
- if (isset($type)) {
- $this->setType($type);
- }
- if (isset($value)) {
- $this->setValue($value);
- }
- }
-
- /**
- * Add the mime type on a Content object
- *
- * @param string $type The mime type of the content you are including
- * in your email. For example, “text/plain” or
- * “text/html”
- *
- * @throws TypeException
- */
- public function setType($type)
- {
- if (!is_string($type)) {
- throw new TypeException('$type must be of type string.');
- }
- $this->type = $type;
- }
-
- /**
- * Retrieve the mime type on a Content object
- *
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Add the content value to a Content object
- *
- * @param string $value The actual content of the specified mime type
- * that you are including in your email
- *
- * @throws TypeException
- */
- public function setValue($value)
- {
- if (!is_string($value)) {
- throw new TypeException('$value must be of type string');
- }
- $this->value = mb_convert_encoding($value, 'UTF-8', 'UTF-8');
- }
-
- /**
- * Retrieve the content value to a Content object
- *
- * @return string
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * Return an array representing a Contact object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'type' => $this->getType(),
- 'value' => $this->getValue()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/CustomArg.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/CustomArg.php
deleted file mode 100644
index 031f035..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/CustomArg.php
+++ /dev/null
@@ -1,119 +0,0 @@
-<?php
-/**
- * This helper builds the CustomArg object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a CustomArg object for the /mail/send API call
- *
- * Values that are specific to the entire send that will be carried along with the
- * email and its activity data. Substitutions will not be made on custom arguments,
- * so any string that is entered into this parameter will be assumed to be the
- * custom argument that you would like to be used. This parameter is overridden by
- * personalizations[x].custom_args if that parameter has been defined. Total custom
- * args size may not exceed 10,000 bytes.
- *
- * @package SendGrid\Mail
- */
-class CustomArg implements \JsonSerializable
-{
- /** @var $key string Custom arg key */
- private $key;
- /** @var $value string Custom arg value */
- private $value;
-
- /**
- * Optional constructor
- *
- * @param string|null $key Custom arg key
- * @param string|null $value Custom arg value
- */
- public function __construct($key = null, $value = null)
- {
- if (isset($key)) {
- $this->setKey($key);
- }
- if (isset($value)) {
- $this->setValue($value);
- }
- }
-
- /**
- * Add a custom arg key on a CustomArg object
- *
- * @param string $key Custom arg key
- *
- * @throws TypeException
- */
- public function setKey($key)
- {
- if (!is_string($key)) {
- throw new TypeException('$key must be of type string');
- }
- $this->key = (string) $key;
- }
-
- /**
- * Retrieve a custom arg key on a CustomArg object
- *
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Add a custom arg value on a CustomArg object
- *
- * @param string $value Custom arg value
- *
- * @throws TypeException
- */
- public function setValue($value)
- {
- if (!is_string($value)) {
- throw new TypeException('$value must be of type string.');
- }
- $this->value = (string) $value;
- }
-
- /**
- * Retrieve a custom arg key on a CustomArg object
- *
- * @return string
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * Return an array representing a CustomArg object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'key' => $this->getKey(),
- 'value' => $this->getValue()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/EmailAddress.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/EmailAddress.php
deleted file mode 100644
index 88299f5..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/EmailAddress.php
+++ /dev/null
@@ -1,222 +0,0 @@
-<?php
-/**
- * This helper builds the EmailAddress object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a EmailAddress object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class EmailAddress implements \JsonSerializable
-{
- /** @var $name string The name of the person associated with the email */
- private $name;
- /** @var $email string The email address */
- private $email;
- /** @var $substitutions Substitution[] An array of key/value substitutions to be be applied to the text and html content of the email body */
- private $substitutions;
- /** @var $subject Subject The personalized subject of the email */
- private $subject;
-
- /**
- * Optional constructor
- *
- * @param string|null $emailAddress The email address
- * @param string|null $name The name of the person associated with
- * the email
- * @param array|null $substitutions An array of key/value substitutions to
- * be be applied to the text and html content
- * of the email body
- * @param string|null $subject The personalized subject of the email
- */
- public function __construct(
- $emailAddress = null,
- $name = null,
- $substitutions = null,
- $subject = null
- ) {
- if (isset($emailAddress)) {
- $this->setEmailAddress($emailAddress);
- }
- if (isset($name) && $name !== null) {
- $this->setName($name);
- }
- if (isset($substitutions)) {
- $this->setSubstitutions($substitutions);
- }
- if (isset($subject)) {
- $this->setSubject($subject);
- }
- }
-
- /**
- * Add the email address to a EmailAddress object
- *
- * @param string $emailAddress The email address
- *
- * @throws TypeException
- */
- public function setEmailAddress($emailAddress)
- {
- if (!(is_string($emailAddress) &&
- filter_var($emailAddress, FILTER_VALIDATE_EMAIL))
- ) {
- throw new TypeException(
- '$emailAddress must be valid and of type string.'
- );
- }
- $this->email = $emailAddress;
- }
-
- /**
- * Retrieve the email address from a EmailAddress object
- *
- * @return string
- */
- public function getEmailAddress()
- {
- return $this->email;
- }
-
- /**
- * Retrieve the email address from a EmailAddress object
- *
- * @return string
- */
- public function getEmail()
- {
- return $this->getEmailAddress();
- }
-
- /**
- * Add a name to a EmailAddress object
- *
- * @param string $name The name of the person associated with the email
- *
- * @throws TypeException
- */
- public function setName($name)
- {
- if (!is_string($name)) {
- throw new TypeException('$name must be of type string.');
- }
-
- /*
- Issue #368
- ==========
- If the name is not wrapped in double quotes and contains a comma or
- semicolon, the API fails to parse it correctly.
- When wrapped in double quotes, commas, semicolons and unescaped single
- quotes are supported.
- Escaped double quotes are supported as well but will appear unescaped in
- the mail (e.g. "O\'Keefe").
- Double quotes will be shown in some email clients, so the name should
- only be wrapped when necessary.
- */
- // Only wrapp in double quote if comma or semicolon are found
- if (false !== strpos($name, ',') || false !== strpos($name, ';')) {
- // Unescape quotes
- $name = stripslashes(html_entity_decode($name, ENT_QUOTES));
- // Escape only double quotes
- $name = str_replace('"', '\\"', $name);
- // Wrapp in double quotes
- $name = '"' . $name . '"';
- }
- $this->name = (!empty($name)) ? $name : null;
- }
-
- /**
- * Retrieve the name from a EmailAddress object
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Add substitutions to a EmailAddress object
- *
- * @param array $substitutions An array of key/value substitutions to
- * be be applied to the text and html content
- * of the email body
- *
- * @throws TypeException
- */
- public function setSubstitutions($substitutions)
- {
- if (!is_array($substitutions)) {
- throw new TypeException('$substitutions must be an array.');
- }
-
- $this->substitutions = $substitutions;
- }
-
- /**
- * Retrieve substitutions from a EmailAddress object
- */
- public function getSubstitutions()
- {
- return $this->substitutions;
- }
-
- /**
- * Add a subject to a EmailAddress object
- *
- * @param string $subject The personalized subject of the email
- *
- * @throws TypeException
- */
- public function setSubject($subject)
- {
- if (!is_string($subject)) {
- throw new TypeException('$subject must be of type string.');
- }
- if (!($subject instanceof Subject)) {
- $this->subject = new Subject($subject);
- } else {
- $this->subject = $subject;
- }
- }
-
- /**
- * Retrieve a subject from a EmailAddress object
- *
- * @return Subject
- */
- public function getSubject()
- {
- return $this->subject;
- }
-
- /**
- * Return an array representing a EmailAddress object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'name' => $this->getName(),
- 'email' => $this->getEmail()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Footer.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Footer.php
deleted file mode 100644
index 92d2f4b..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Footer.php
+++ /dev/null
@@ -1,144 +0,0 @@
-<?php
-/**
- * This helper builds the Footer object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Footer object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Footer implements \JsonSerializable
-{
- /** @var $enable bool Indicates if this setting is enabled */
- private $enable;
- /** @var $text string The plain text content of your footer */
- private $text;
- /** @var $html string The HTML content of your footer */
- private $html;
-
- /**
- * Optional constructor
- *
- * @param bool|null $enable Indicates if this setting is enabled
- * @param string|null $text The plain text content of your footer
- * @param string|null $html The HTML content of your footer
- */
- public function __construct($enable = null, $text = null, $html = null)
- {
- if (isset($enable)) {
- $this->setEnable($enable);
- }
- if (isset($text)) {
- $this->setText($text);
- }
- if (isset($html)) {
- $this->setHtml($html);
- }
- }
-
- /**
- * Update the enable setting on a Footer object
- *
- * @param bool $enable Indicates if this setting is enabled
- *
- * @throws TypeException
- */
- public function setEnable($enable)
- {
- if (!is_bool($enable)) {
- throw new TypeException('$enable must be of type bool');
- }
- $this->enable = $enable;
- }
-
- /**
- * Retrieve the enable setting on a Footer object
- *
- * @return bool
- */
- public function getEnable()
- {
- return $this->enable;
- }
-
- /**
- * Add text to a Footer object
- *
- * @param string $text The plain text content of your footer
- *
- * @throws TypeException
- */
- public function setText($text)
- {
- if (!is_string($text)) {
- throw new TypeException('$text must be of type string.');
- }
- $this->text = $text;
- }
-
- /**
- * Retrieve text to a Footer object
- *
- * @return string
- */
- public function getText()
- {
- return $this->text;
- }
-
- /**
- * Add html to a Footer object
- *
- * @param string $html The HTML content of your footer
- *
- * @throws TypeException
- */
- public function setHtml($html)
- {
- if (!is_string($html)) {
- throw new TypeException('$html must be of type string.');
- }
- $this->html = $html;
- }
-
- /**
- * Retrieve html from a Footer object
- *
- * @return string
- */
- public function getHtml()
- {
- return $this->html;
- }
-
- /**
- * Return an array representing a Footer object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'enable' => $this->getEnable(),
- 'text' => $this->getText(),
- 'html' => $this->getHtml()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/From.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/From.php
deleted file mode 100644
index 602000a..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/From.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * This helper builds the From object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a From object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class From extends EmailAddress implements \JsonSerializable
-{
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Ganalytics.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Ganalytics.php
deleted file mode 100644
index 2d51188..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Ganalytics.php
+++ /dev/null
@@ -1,251 +0,0 @@
-<?php
-/**
- * This helper builds the Ganalytics object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Ganalytics object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Ganalytics implements \JsonSerializable
-{
- /** @var $enable bool Indicates if this setting is enabled */
- private $enable;
- /** @var $utm_source string Name of the referrer source. (e.g. Google, SomeDomain.com, or Marketing Email) */
- private $utm_source;
- /** @var $utm_medium string Name of the marketing medium. (e.g. Email) */
- private $utm_medium;
- /** @var $utm_term string Used to identify any paid keywords */
- private $utm_term;
- /** @var $utm_content string Used to differentiate your campaign from advertisements */
- private $utm_content;
- /** @var $utm_campaign string The name of the campaign */
- private $utm_campaign;
-
- /**
- * Optional constructor
- *
- * @param bool|null $enable Indicates if this setting is enabled
- * @param string|null $utm_source Name of the referrer source. (e.g.
- * Google, SomeDomain.com, or Marketing Email)
- * @param string|null $utm_medium Name of the marketing medium. (e.g. Email)
- * @param string|null $utm_term Used to identify any paid keywords
- * @param string|null $utm_content Used to differentiate your campaign from
- * advertisements
- * @param string|null $utm_campaign The name of the campaign
- */
- public function __construct(
- $enable = null,
- $utm_source = null,
- $utm_medium = null,
- $utm_term = null,
- $utm_content = null,
- $utm_campaign = null
- )
- {
- if (isset($enable)) {
- $this->setEnable($enable);
- }
- if (isset($utm_source)) {
- $this->setCampaignSource($utm_source);
- }
- if (isset($utm_medium)) {
- $this->setCampaignMedium($utm_medium);
- }
- if (isset($utm_term)) {
- $this->setCampaignTerm($utm_term);
- }
- if (isset($utm_content)) {
- $this->setCampaignContent($utm_content);
- }
- if (isset($utm_campaign)) {
- $this->setCampaignName($utm_campaign);
- }
- }
-
- /**
- * Update the enable setting on a Ganalytics object
- *
- * @param bool $enable Indicates if this setting is enabled
- *
- * @throws TypeException
- */
- public function setEnable($enable)
- {
- if (!is_bool($enable)) {
- throw new TypeException('$enable must be of type bool.');
- }
- $this->enable = $enable;
- }
-
- /**
- * Retrieve the enable setting on a Ganalytics object
- *
- * @return bool
- */
- public function getEnable()
- {
- return $this->enable;
- }
-
- /**
- * Add the campaign source to a Ganalytics object
- *
- * @param string $utm_source Name of the referrer source. (e.g.
- * Google, SomeDomain.com, or Marketing Email)
- *
- * @throws TypeException
- */
- public function setCampaignSource($utm_source)
- {
- if (!is_string($utm_source)) {
- throw new TypeException('$utm_source must be of type string.');
- }
- $this->utm_source = $utm_source;
- }
-
- /**
- * Return the campaign source from a Ganalytics object
- *
- * @return string
- */
- public function getCampaignSource()
- {
- return $this->utm_source;
- }
-
- /**
- * Add the campaign medium to a Ganalytics object
- *
- * @param string $utm_medium Name of the marketing medium. (e.g. Email)
- *
- * @throws TypeException
- */
- public function setCampaignMedium($utm_medium)
- {
- if (!is_string($utm_medium)) {
- throw new TypeException('$utm_medium must be of type string.');
- }
- $this->utm_medium = $utm_medium;
- }
-
- /**
- * Return the campaign medium from a Ganalytics object
- *
- * @return string
- */
- public function getCampaignMedium()
- {
- return $this->utm_medium;
- }
-
- /**
- * Add the campaign term to a Ganalytics object
- *
- * @param string $utm_term Used to identify any paid keywords
- *
- * @throws TypeException
- */
- public function setCampaignTerm($utm_term)
- {
- if (!is_string($utm_term)) {
- throw new TypeException('$utm_term must be of type string');
- }
- $this->utm_term = $utm_term;
- }
-
- /**
- * Return the campaign term from a Ganalytics object
- *
- * @return string
- */
- public function getCampaignTerm()
- {
- return $this->utm_term;
- }
-
- /**
- * Add the campaign content to a Ganalytics object
- *
- * @param string $utm_content Used to differentiate your campaign from
- * advertisements
- *
- * @throws TypeException
- */
- public function setCampaignContent($utm_content)
- {
- if (!is_string($utm_content)) {
- throw new TypeException('$utm_content must be of type string.');
- }
- $this->utm_content = $utm_content;
- }
-
- /**
- * Return the campaign content from a Ganalytics object
- *
- * @return string
- */
- public function getCampaignContent()
- {
- return $this->utm_content;
- }
-
- /**
- * Add the campaign name to a Ganalytics object
- *
- * @param string $utm_campaign The name of the campaign
- *
- * @throws TypeException
- */
- public function setCampaignName($utm_campaign)
- {
- if (!is_string($utm_campaign)) {
- throw new TypeException('$utm_campaign must be of type string.');
- }
- $this->utm_campaign = $utm_campaign;
- }
-
- /**
- * Return the campaign name from a Ganalytics object
- *
- * @return string
- */
- public function getCampaignName()
- {
- return $this->utm_campaign;
- }
-
- /**
- * Return an array representing a Ganalytics object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'enable' => $this->getEnable(),
- 'utm_source' => $this->getCampaignSource(),
- 'utm_medium' => $this->getCampaignMedium(),
- 'utm_term' => $this->getCampaignTerm(),
- 'utm_content' => $this->getCampaignContent(),
- 'utm_campaign' => $this->getCampaignName()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/GroupId.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/GroupId.php
deleted file mode 100644
index 64c52a7..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/GroupId.php
+++ /dev/null
@@ -1,73 +0,0 @@
-<?php
-/**
- * This helper builds the GroupId object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a GroupId object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class GroupId implements \JsonSerializable
-{
- /** @var $group_id int The unsubscribe group to associate with this email */
- private $group_id;
-
- /**
- * Optional constructor
- *
- * @param int|null $group_id The unsubscribe group to associate with this email
- */
- public function __construct($group_id = null)
- {
- if (isset($group_id)) {
- $this->setGroupId($group_id);
- }
- }
-
- /**
- * Add the group id to a GroupId object
- *
- * @param int $group_id The unsubscribe group to associate with this email
- *
- * @throws TypeException
- */
- public function setGroupId($group_id)
- {
- if (!is_int($group_id)) {
- throw new TypeException('$group_id must be of type int.');
- }
- $this->group_id = $group_id;
- }
-
- /**
- * Retrieve the group id from a GroupId object
- *
- * @return int
- */
- public function getGroupId()
- {
- return $this->group_id;
- }
-
- /**
- * Return an array representing a GroupId object for the Twilio SendGrid API
- *
- * @return int
- */
- public function jsonSerialize()
- {
- return $this->getGroupId();
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/GroupsToDisplay.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/GroupsToDisplay.php
deleted file mode 100644
index 7ed1120..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/GroupsToDisplay.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-/**
- * This helper builds the GroupsToDisplay object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a GroupsToDisplay object for
- * the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class GroupsToDisplay implements \JsonSerializable
-{
- /** @var $groups_to_display int[] An array containing the unsubscribe groups that you would like to be displayed on the unsubscribe preferences page. Maximum of 25 */
- private $groups_to_display;
-
- /**
- * Optional constructor
- *
- * @param int[]|int|null $groups_to_display An array containing
- * the unsubscribe groups
- * that you would like to
- * be displayed on the
- * unsubscribe preferences
- * page. Maximum of 25
- */
- public function __construct($groups_to_display = null)
- {
- if (isset($groups_to_display)) {
- $this->setGroupsToDisplay($groups_to_display);
- }
- }
-
- /**
- * Add a group to display on a GroupsToDisplay object
- *
- * @param int|int[] $groups_to_display The unsubscribe group(s)
- * that you would like to be
- * displayed on the unsubscribe
- * preferences page
- *
- * @throws TypeException
- * @return null
- */
- public function setGroupsToDisplay($groups_to_display)
- {
- if (!is_array($groups_to_display)) {
- throw new TypeException('$groups_to_display must be an array.');
- }
- if (is_array($groups_to_display)) {
- $this->groups_to_display = $groups_to_display;
- } else {
- $this->groups_to_display[] = $groups_to_display;
- }
- }
-
- /**
- * Return the group(s) to display on a GroupsToDisplay object
- *
- * @return int[]
- */
- public function getGroupsToDisplay()
- {
- return $this->groups_to_display;
- }
-
- /**
- * Return an array representing a GroupsToDisplay object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return $this->getGroupsToDisplay();
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Header.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Header.php
deleted file mode 100644
index aa901cf..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Header.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-/**
- * This helper builds the Header object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Header object for the /mail/send API call
- *
- * An object containing key/value pairs of header names and the value to substitute
- * for them. You must ensure these are properly encoded if they contain unicode
- * characters. Must not be one of the reserved headers
- *
- * @package SendGrid\Mail
- */
-class Header implements \JsonSerializable
-{
- /** @var $key string Header key */
- private $key;
- /** @var $value string Header value */
- private $value;
-
- /**
- * Optional constructor
- *
- * @param string|null $key Header key
- * @param string|null $value Header value
- */
- public function __construct($key = null, $value = null)
- {
- if (isset($key)) {
- $this->setKey($key);
- }
- if (isset($value)) {
- $this->setValue($value);
- }
- }
-
- /**
- * Add the key on a Header object
- *
- * @param string $key Header key
- *
- * @throws TypeException
- */
- public function setKey($key)
- {
- if (!is_string($key)) {
- throw new TypeException('$key must be of type string.');
- }
- $this->key = $key;
- }
-
- /**
- * Retrieve the key from a Header object
- *
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Add the value on a Header object
- *
- * @param string $value Header value
- *
- * @throws TypeException
- */
- public function setValue($value)
- {
- if (!is_string($value)) {
- throw new TypeException('$value must be of type string.');
- }
- $this->value = $value;
- }
-
- /**
- * Retrieve the value from a Header object
- *
- * @return string
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * Return an array representing a Header object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'key' => $this->getKey(),
- 'value' => $this->getValue()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/HtmlContent.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/HtmlContent.php
deleted file mode 100644
index b8d6e9b..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/HtmlContent.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/**
- * This helper builds the Content object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Content object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class HtmlContent extends Content
-{
- /**
- * Create a Content object with a HTML mime type
- *
- * @param string $value HTML formatted content
- */
- public function __construct($value)
- {
- parent::__construct(MimeType::HTML, $value);
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/IpPoolName.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/IpPoolName.php
deleted file mode 100644
index 5e0cdeb..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/IpPoolName.php
+++ /dev/null
@@ -1,77 +0,0 @@
-<?php
-/**
- * This helper builds the IpPoolName object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a IpPoolName object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class IpPoolName implements \JsonSerializable
-{
- /** @var $ip_pool_name string The IP Pool that you would like to send this email from. Minimum length: 2, Maximum Length: 64 */
- private $ip_pool_name;
-
- /**
- * Optional constructor
- *
- * @param string|null $ip_pool_name The IP Pool that you would like to
- * send this email from. Minimum length:
- * 2, Maximum Length: 64
- */
- public function __construct($ip_pool_name = null)
- {
- if (isset($ip_pool_name)) {
- $this->setIpPoolName($ip_pool_name);
- }
- }
-
- /**
- * Set the ip pool name on a IpPoolName object
- *
- * @param string $ip_pool_name The IP Pool that you would like to
- * send this email from. Minimum length:
- * 2, Maximum Length: 64
- *
- * @throws TypeException
- */
- public function setIpPoolName($ip_pool_name)
- {
- if (!is_string($ip_pool_name)) {
- throw new TypeException('$ip_pool_name must be of type string.');
- }
- $this->ip_pool_name = $ip_pool_name;
- }
-
- /**
- * Retrieve the ip pool name from a IpPoolName object
- *
- * @return string
- */
- public function getIpPoolName()
- {
- return $this->ip_pool_name;
- }
-
- /**
- * Return an array representing a IpPoolName object for the Twilio SendGrid API
- *
- * @return string
- */
- public function jsonSerialize()
- {
- return $this->getIpPoolName();
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Mail.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Mail.php
deleted file mode 100644
index 86a5128..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Mail.php
+++ /dev/null
@@ -1,1911 +0,0 @@
-<?php
-/**
- * This helper builds the request body for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a request body for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Mail implements \JsonSerializable
-{
- /** @var $from From Email address of the sender */
- private $from;
-
- /** @var $subject Subject Subject of the email */
- private $subject;
-
- /** @var $contents Content[] Content(s) of the email */
- private $contents;
-
- /** @var $attachments Attachment[] Email attachments */
- private $attachments;
-
- /** @var $template_id TemplateId Id of a template that you would like to use */
- private $template_id;
-
- /** @var $sections Section[] Key/value pairs that define block sections of code to be used as substitutions */
- private $sections;
-
- /** @var $headers Header[] Header names and the value to substitute for them */
- private $headers;
-
- /** @var $categories Category[] Category names for this message */
- private $categories;
-
- /** @var $custom_args CustomArg[] Values that are specific to the entire send that will be carried along with the email and its activity data */
- private $custom_args;
-
- /** @var $substitutions Substitution[] Substitutions that will apply to the text and html content of the body of your email, in addition to the subject and reply-to parameters */
- private $substitutions;
-
- /** @var $send_at SendAt A unix timestamp allowing you to specify when you want your email to be delivered */
- private $send_at;
-
- /** @var $batch_id BatchId This ID represents a batch of emails to be sent at the same time */
- private $batch_id;
-
- /** @var $asm ASM Specifies how to handle unsubscribes */
- private $asm;
-
- /** @var $ip_pool_name IpPoolName The IP Pool that you would like to send this email from */
- private $ip_pool_name;
-
- /** @var $mail_settings MailSettings A collection of different mail settings that you can use to specify how you would like this email to be handled */
- private $mail_settings;
-
- /** @var $tracking_settings TrackingSettings Settings to determine how you would like to track the metrics of how your recipients interact with your email */
- private $tracking_settings;
-
- /** @var $reply_to ReplyTo Email to be use when replied to */
- private $reply_to;
-
- /** @var $personalization Personalization[] Messages and their metadata */
- private $personalization;
-
- const VERSION = "7.0.0";
-
- /**
- * If passing parameters into this constructor include
- * $from, $to, $subject, $plainTextContent and
- * $htmlContent at a minimum. In that case, a Personalization
- * object will be created for you.
- *
- * @param From|null $from Email address of the sender
- * @param To|To[]|null $to Recipient(s) email
- * address(es)
- * @param Subject|Subject[]|null $subject Subject(s)
- * @param PlainTextContent|null $plainTextContent Plain text version of
- * content
- * @param HtmlContent|null $htmlContent Html version of content
- * @param Substitution[]|null $globalSubstitutions Substitutions for entire
- * email
- */
- public function __construct(
- $from = null,
- $to = null,
- $subject = null,
- $plainTextContent = null,
- $htmlContent = null,
- array $globalSubstitutions = null
- ) {
- if (!isset($from)
- && !isset($to)
- && !isset($subject)
- && !isset($plainTextContent)
- && !isset($htmlContent)
- && !isset($globalSubstitutions)
- ) {
- $this->personalization[] = new Personalization();
- return;
- }
- if (isset($from)) {
- $this->setFrom($from);
- }
- if (isset($to)) {
- if (!is_array($to)) {
- $to = [$to];
- }
- $subjectCount = 0;
- $personalization = new Personalization();
- foreach ($to as $email) {
- if ($subs = $email->getSubstitutions()) {
- $personalization = new Personalization();
- }
- $personalization->addTo($email);
- if ($subs = $email->getSubstitutions()) {
- foreach ($subs as $key => $value) {
- $personalization->addSubstitution($key, $value);
- }
- }
- if ($email->getSubject()) {
- $personalization->setSubject($email->getSubject());
- }
- if (is_array($subject)) {
- if ($subjectCount < sizeof($subject)) {
- $personalization->setSubject($subject[$subjectCount]);
- }
- $subjectCount++;
- }
- if (is_array($globalSubstitutions)) {
- foreach ($globalSubstitutions as $key => $value) {
- $personalization->addSubstitution($key, $value);
- }
- }
- if ($subs = $email->getSubstitutions()) {
- $this->addPersonalization($personalization);
- }
- }
- if (!$subs = $email->getSubstitutions()) {
- $this->addPersonalization($personalization);
- }
- }
- if (isset($subject)) {
- if (!is_array($subject)) {
- $this->setSubject($subject);
- }
- }
- if (isset($plainTextContent)) {
- $this->addContent($plainTextContent);
- }
- if (isset($htmlContent)) {
- $this->addContent($htmlContent);
- }
- }
-
- /**
- * Adds a To, Cc or Bcc object to a Personalization object
- *
- * @param string $emailType Object type name:
- * To, Cc or Bcc
- * @param string $email Recipient email
- * address
- * @param string|null $name Recipient name
- * @param Substitution[]|array|null $substitutions Personalized
- * substitutions
- * @param int|null $personalizationIndex Index into an array
- * of existing
- * Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- *
- * @return null
- */
- private function addRecipientEmail(
- $emailType,
- $email,
- $name = null,
- $substitutions = null,
- $personalizationIndex = null,
- $personalization = null
- ) {
- $personalizationFunctionCall = "add" . $emailType;
- $emailType = "\SendGrid\Mail\\" . $emailType;
- if (!($email instanceof $emailType)) {
- $email = new $emailType(
- $email,
- $name,
- $substitutions
- );
- }
- if ($personalization != null) {
- $personalization->$personalizationFunctionCall($email);
- if ($subs = $email->getSubstitutions()) {
- foreach ($subs as $key => $value) {
- $personalization->addSubstitution($key, $value);
- }
- }
- $this->addPersonalization($personalization);
- return;
- } else {
- if (isset($personalizationIndex)
- && !isset($this->personalization[$personalizationIndex])
- ) {
- // TODO: We should only do this if there exists an index
- // previous. For example, if given an index 3 and there is
- // no index 2, we should throw an error.
- $this->personalization[$personalizationIndex]
- = new Personalization();
- }
- if ($this->personalization[0] != null && $personalizationIndex == 0) {
- $this->personalization[0]->$personalizationFunctionCall($email);
- if ($subs = $email->getSubstitutions()) {
- foreach ($subs as $key => $value) {
- $this->personalization[0]->addSubstitution($key, $value);
- }
- }
- return;
- } else if ($this->personalization[$personalizationIndex] != null) {
- $this->personalization[$personalizationIndex]->$personalizationFunctionCall($email);
- if ($subs = $email->getSubstitutions()) {
- foreach ($subs as $key => $value) {
- $this->personalization[$personalizationIndex]->addSubstitution(
- $key,
- $value
- );
- }
- }
- return;
- } else {
- $personalization = new Personalization();
- $personalization->$personalizationFunctionCall($email);
- if ($subs = $email->getSubstitutions()) {
- foreach ($subs as $key => $value) {
- $personalization->addSubstitution($key, $value);
- }
- }
- if (($personalizationIndex != 0)
- && ($this->getPersonalizationCount() <= $personalizationIndex)
- ) {
- $this->personalization[$personalizationIndex] = $personalization;
- } else {
- $this->addPersonalization($personalization);
- }
- return;
- }
- }
- }
-
- /**
- * Adds an array of To, Cc or Bcc objects to a Personalization object
- *
- * @param string $emailType Object type name: To, Cc
- * or Bcc
- * @param To[]|Cc[]|Bcc[] $emails Array of email recipients
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A Personalization object
- */
- private function addRecipientEmails(
- $emailType,
- $emails,
- $personalizationIndex = null,
- $personalization = null
- ) {
- $emailFunctionCall = "add" . $emailType;
-
- if (current($emails) instanceof EmailAddress) {
- foreach ($emails as $email) {
- $this->$emailFunctionCall(
- $email,
- $name = null,
- $personalizationIndex,
- $personalization
- );
- }
- } else {
- foreach ($emails as $email => $name) {
- $this->$emailFunctionCall(
- $email,
- $name,
- $personalizationIndex,
- $personalization
- );
- }
- }
- }
-
- /**
- * Add a Personalization object to the Mail object
- *
- * @param Personalization $personalization A Personalization object
- */
- public function addPersonalization($personalization)
- {
- $this->personalization[] = $personalization;
- }
-
- /**
- * Retrieve a Personalization object from the Mail object
- *
- * @return Personalization[]
- */
- public function getPersonalizations()
- {
- return $this->personalization;
- }
-
- /**
- * Retrieve the number of Personalization objects associated with the Mail object
- *
- * @return int
- */
- public function getPersonalizationCount()
- {
- return count($this->personalization);
- }
-
- /**
- * Adds an email recipient to a Personalization object
- *
- * @param string|To $to Email address or To object
- * @param string $name Recipient name
- * @param array|Substitution[] $substitutions Personalized substitutions
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addTo(
- $to,
- $name = null,
- $substitutions = null,
- $personalizationIndex = null,
- $personalization = null
- ) {
- if ($to instanceof To) {
- $name = $to->getName();
- $substitutions = $to->getSubstitutions();
- $to = $to->getEmailAddress();
- }
- $this->addRecipientEmail(
- "To",
- $to,
- $name,
- $substitutions,
- $personalizationIndex,
- $personalization
- );
- }
-
- /**
- * Adds multiple email recipients to a Personalization object
- *
- * @param To[]|array $toEmails Array of To objects or
- * key/value pairs of email
- * address/recipient names
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addTos(
- $toEmails,
- $personalizationIndex = null,
- $personalization = null
- ) {
- $this->addRecipientEmails(
- "To",
- $toEmails,
- $personalizationIndex,
- $personalization
- );
- }
-
- /**
- * Adds an email cc recipient to a Personalization object
- *
- * @param string|Cc $cc Email address or Cc object
- * @param string $name Recipient name
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addCc(
- $cc,
- $name = null,
- $personalizationIndex = null,
- $personalization = null
- ) {
- if ($cc instanceof Cc) {
- $name = $cc->getName();
- $cc = $cc->getEmailAddress();
- }
- $this->addRecipientEmail(
- "Cc",
- $cc,
- $name,
- $personalizationIndex,
- $personalization
- );
- }
-
- /**
- * Adds multiple email cc recipients to a Personalization object
- *
- * @param Cc[]|array $ccEmails Array of Cc objects or
- * key/value pairs of email
- * address/recipient names
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addCcs(
- $ccEmails,
- $personalizationIndex = null,
- $personalization = null
- ) {
- $this->addRecipientEmails(
- "Cc",
- $ccEmails,
- $personalizationIndex,
- $personalization
- );
- }
-
- /**
- * Adds an email bcc recipient to a Personalization object
- *
- * @param string|Bcc $bcc Email address or Bcc object
- * @param string $name Recipient name
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addBcc(
- $bcc,
- $name = null,
- $personalizationIndex = null,
- $personalization = null
- ) {
- if ($bcc instanceof Bcc) {
- $name = $bcc->getName();
- $bcc = $bcc->getEmailAddress();
- }
- $this->addRecipientEmail(
- "Bcc",
- $bcc,
- $name,
- $personalizationIndex,
- $personalization
- );
- }
-
- /**
- * Adds multiple email bcc recipients to a Personalization object
- *
- * @param Bcc[]|array $bccEmails Array of Bcc objects or
- * key/value pairs of email
- * address/recipient names
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addBccs(
- $bccEmails,
- $personalizationIndex = null,
- $personalization = null
- ) {
- $this->addRecipientEmails(
- "Bcc",
- $bccEmails,
- $personalizationIndex,
- $personalization
- );
- }
-
- /**
- * Add a subject to a Personalization or Mail object
- *
- * If you don't provide a Personalization object or index, the
- * subject will be global to entire message. Note that
- * subjects added to Personalization objects override
- * global subjects.
- *
- * @param string|Subject $subject Email subject
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function setSubject(
- $subject,
- $personalizationIndex = null,
- $personalization = null
- ) {
- if (!($subject instanceof Subject)) {
- $subject = new Subject($subject);
- }
-
- if ($personalization != null) {
- $personalization->setSubject($subject);
- $this->addPersonalization($personalization);
- return;
- }
- if ($personalizationIndex != null) {
- $this->personalization[$personalizationIndex]->setSubject($subject);
- return;
- }
- $this->setGlobalSubject($subject);
- return;
- }
-
- /**
- * Retrieve a subject attached to a Personalization object
- *
- * @param int|0 $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- *
- * @return Subject
- */
- public function getSubject($personalizationIndex = 0)
- {
- return $this->personalization[$personalizationIndex]->getSubject();
- }
-
- /**
- * Add a header to a Personalization or Mail object
- *
- * If you don't provide a Personalization object or index, the
- * header will be global to entire message. Note that
- * headers added to Personalization objects override
- * global headers.
- *
- * @param string|Header $key Key or Header object
- * @param string|null $value Value
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addHeader(
- $key,
- $value = null,
- $personalizationIndex = null,
- $personalization = null
- ) {
- $header = null;
- if ($key instanceof Header) {
- $h = $key;
- $header = new Header($h->getKey(), $h->getValue());
- } else {
- $header = new Header($key, $value);
- }
- if ($personalization != null) {
- $personalization->addHeader($header);
- $this->addPersonalization($personalization);
- return;
- } else {
- if ($this->personalization[0] != null) {
- $this->personalization[0]->addHeader($header);
- } else if ($this->personalization[$personalizationIndex] != null) {
- $this->personalization[$personalizationIndex]->addHeader($header);
- } else {
- $personalization = new Personalization();
- $personalization->addHeader($header);
- if (($personalizationIndex != 0)
- && ($this->getPersonalizationCount() <= $personalizationIndex)
- ) {
- $this->personalization[$personalizationIndex] = $personalization;
- } else {
- $this->addPersonalization($personalization);
- }
- }
- return;
- }
- }
-
- /**
- * Adds multiple headers to a Personalization or Mail object
- *
- * If you don't provide a Personalization object or index, the
- * header will be global to entire message. Note that
- * headers added to Personalization objects override
- * global headers.
- *
- * @param array|Header[] $headers Array of Header objects
- * or key values
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addHeaders(
- $headers,
- $personalizationIndex = null,
- $personalization = null
- ) {
- if (current($headers) instanceof Header) {
- foreach ($headers as $header) {
- $this->addHeader($header);
- }
- } else {
- foreach ($headers as $key => $value) {
- $this->addHeader(
- $key,
- $value,
- $personalizationIndex,
- $personalization
- );
- }
- }
- }
-
- /**
- * Retrieve the headers attached to a Personalization object
- *
- * @param int|0 $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- *
- * @return Header[]
- */
- public function getHeaders($personalizationIndex = 0)
- {
- return $this->personalization[$personalizationIndex]->getHeaders();
- }
-
- /**
- * Add a DynamicTemplateData object or key/value to a Personalization object
- *
- * @param DynamicTemplateData|string $data DynamicTemplateData object or the key of a
- * dynamic data
- * @param string|null $value Value
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addDynamicTemplateData(
- $key,
- $value = null,
- $personalizationIndex = null,
- $personalization = null
- ) {
- $this->addSubstitution($key, $value, $personalizationIndex, $personalization);
- }
-
- /**
- * Add a DynamicTemplateData object or key/value to a Personalization object
- *
- * @param array|DynamicTemplateData[] $data Array of DynamicTemplateData objects or key/values
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addDynamicTemplateDatas(
- $datas,
- $personalizationIndex = null,
- $personalization = null
- ) {
- $this->addSubstitutions($datas);
- }
-
- /**
- * Retrieve dynamic template data key/value pairs from a Personalization object
- *
- * @param int|0 $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- *
- * @return array
- */
- public function getDynamicTemplateDatas($personalizationIndex = 0)
- {
- return $this->getSubstitutions($personalizationIndex);
- }
-
- /**
- * Add a substitution to a Personalization or Mail object
- *
- * If you don't provide a Personalization object or index, the
- * substitution will be global to entire message. Note that
- * substitutions added to Personalization objects override
- * global substitutions.
- *
- * @param string|Substitution $key Key or Substitution object
- * @param string|null $value Value
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- *
- * @return null
- */
- public function addSubstitution(
- $key,
- $value = null,
- $personalizationIndex = null,
- $personalization = null
- ) {
- $substitution = null;
- if ($key instanceof Substitution) {
- $s = $key;
- $substitution = new Substitution($s->getKey(), $s->getValue());
- } else {
- $substitution = new Substitution($key, $value);
- }
- if ($personalization != null) {
- $personalization->addSubstitution($substitution);
- $this->addPersonalization($personalization);
- return;
- } else {
- if ($this->personalization[0] != null) {
- $this->personalization[0]->addSubstitution($substitution);
- } else if ($this->personalization[$personalizationIndex] != null) {
- $this->personalization[$personalizationIndex]->addSubstitution($substitution);
- } else {
- $personalization = new Personalization();
- $personalization->addSubstitution($substitution);
- if (($personalizationIndex != 0)
- && ($this->getPersonalizationCount() <= $personalizationIndex)
- ) {
- $this->personalization[$personalizationIndex] = $personalization;
- } else {
- $this->addPersonalization($personalization);
- }
- }
- return;
- }
- }
-
- /**
- * Adds multiple substitutions to a Personalization or Mail object
- *
- * If you don't provide a Personalization object or index, the
- * substitution will be global to entire message. Note that
- * substitutions added to Personalization objects override
- * global headers.
- *
- * @param array|Substitution[] $substitutions Array of Substitution
- * objects or key/values
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * ersonalization object
- */
- public function addSubstitutions(
- $substitutions,
- $personalizationIndex = null,
- $personalization = null
- ) {
- if (current($substitutions) instanceof Substitution) {
- foreach ($substitutions as $substitution) {
- $this->addSubstitution($substitution);
- }
- } else {
- foreach ($substitutions as $key => $value) {
- $this->addSubstitution(
- $key,
- $value,
- $personalizationIndex,
- $personalization
- );
- }
- }
- }
-
- /**
- * Retrieve the substitutions attached to a Personalization object
- *
- * @param int|0 $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- *
- * @return Substitution[]
- */
- public function getSubstitutions($personalizationIndex = 0)
- {
- return $this->personalization[$personalizationIndex]->getSubstitutions();
- }
-
- /**
- * Add a custom arg to a Personalization or Mail object
- *
- * Note that custom args added to Personalization objects
- * override global custom args.
- *
- * @param string|CustomArg $key Key or CustomArg object
- * @param string|null $value Value
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addCustomArg(
- $key,
- $value = null,
- $personalizationIndex = null,
- $personalization = null
- ) {
- $custom_arg = null;
- if ($key instanceof CustomArg) {
- $ca = $key;
- $custom_arg = new CustomArg($ca->getKey(), $ca->getValue());
- } else {
- $custom_arg = new CustomArg($key, $value);
- }
- if ($personalization != null) {
- $personalization->addCustomArg($custom_arg);
- $this->addPersonalization($personalization);
- return;
- } else {
- if ($this->personalization[0] != null) {
- $this->personalization[0]->addCustomArg($custom_arg);
- } else if ($this->personalization[$personalizationIndex] != null) {
- $this->personalization[$personalizationIndex]->addCustomArg(
- $custom_arg
- );
- } else {
- $personalization = new Personalization();
- $personalization->addCustomArg($custom_arg);
- if (($personalizationIndex != 0)
- && ($this->getPersonalizationCount() <= $personalizationIndex)
- ) {
- $this->personalization[$personalizationIndex] = $personalization;
- } else {
- $this->addPersonalization($personalization);
- }
- }
- return;
- }
- }
-
- /**
- * Adds multiple custom args to a Personalization or Mail object
- *
- * If you don't provide a Personalization object or index, the
- * custom arg will be global to entire message. Note that
- * custom args added to Personalization objects override
- * global custom args.
- *
- * @param array|CustomArg[] $custom_args Array of CustomArg objects
- * or key/values
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function addCustomArgs(
- $custom_args,
- $personalizationIndex = null,
- $personalization = null
- ) {
- if (current($custom_args) instanceof CustomArg) {
- foreach ($custom_args as $custom_arg) {
- $this->addCustomArg($custom_arg);
- }
- } else {
- foreach ($custom_args as $key => $value) {
- $this->addCustomArg(
- $key,
- $value,
- $personalizationIndex,
- $personalization
- );
- }
- }
- }
-
- /**
- * Retrieve the custom args attached to a Personalization object
- *
- * @param int|0 $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- *
- * @return CustomArg[]
- */
- public function getCustomArgs($personalizationIndex = 0)
- {
- return $this->personalization[$personalizationIndex]->getCustomArgs();
- }
-
- /**
- * Add a unix timestamp allowing you to specify when you want your
- * email to be delivered to a Personalization or Mail object
- *
- * If you don't provide a Personalization object or index, the
- * send at timestamp will be global to entire message. Note that
- * timestamps added to Personalization objects override
- * global timestamps.
- *
- * @param int|SendAt $send_at A unix timestamp
- * @param int|null $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- * @param Personalization|null $personalization A pre-created
- * Personalization object
- */
- public function setSendAt(
- $send_at,
- $personalizationIndex = null,
- $personalization = null
- ) {
- if (!($send_at instanceof SendAt)) {
- $send_at = new SendAt($send_at);
- }
- if ($personalization != null) {
- $personalization->setSendAt($send_at);
- $this->addPersonalization($personalization);
- return;
- } else {
- if ($this->personalization[0] != null) {
- $this->personalization[0]->setSendAt($send_at);
- return;
- } else if ($this->personalization[$personalizationIndex] != null) {
- $this->personalization[$personalizationIndex]->setSendAt($send_at);
- return;
- } else {
- $personalization = new Personalization();
- $personalization->setSendAt($send_at);
- if (($personalizationIndex != 0)
- && ($this->getPersonalizationCount() <= $personalizationIndex)
- ) {
- $this->personalization[$personalizationIndex] = $personalization;
- } else {
- $this->addPersonalization($personalization);
- }
- return;
- }
- }
- }
-
- /**
- * Retrieve the unix timestamp attached to a Personalization object
- *
- * @param int|0 $personalizationIndex Index into an array of
- * existing Personalization
- * objects
- *
- * @return SendAt
- */
- public function getSendAt($personalizationIndex = 0)
- {
- return $this->personalization[$personalizationIndex]->getSendAt();
- }
-
- /**
- * Add the sender email address to a Mail object
- *
- * @param string|From $email Email address or From object
- * @param string|null $name Sender name
- *
- * @throws TypeException
- */
- public function setFrom($email, $name = null)
- {
- if ($email instanceof From) {
- $this->from = $email;
- } else {
-
- if (
- is_string($email) && filter_var($email, FILTER_VALIDATE_EMAIL)
- ) {
- $this->from = new From($email, $name);
- } else {
- throw new TypeException(
- '$email must be valid and of type string.'
- );
- }
-
- }
- return;
- }
-
- /**
- * Retrieve the sender attached to a Mail object
- *
- * @return From
- */
- public function getFrom()
- {
- return $this->from;
- }
-
- /**
- * Add the reply to email address to a Mail object
- *
- * @param string|ReplyTo $email Email address or From object
- * @param string|null $name Reply to name
- */
- public function setReplyTo($email, $name = null)
- {
- if ($email instanceof ReplyTo) {
- $this->reply_to = $email;
- } else {
- $this->reply_to = new ReplyTo($email, $name);
- }
- }
-
- /**
- * Retrieve the reply to information attached to a Mail object
- *
- * @return ReplyTo
- */
- public function getReplyTo()
- {
- return $this->reply_to;
- }
-
-
- /**
- * Add a subject to a Mail object
- *
- * Note that
- * subjects added to Personalization objects override
- * global subjects.
- *
- * @param string|Subject $subject Email subject
- */
- public function setGlobalSubject($subject)
- {
- if (!($subject instanceof Subject)) {
- $subject = new Subject($subject);
- }
- $this->subject = $subject;
- }
-
- /**
- * Retrieve a subject attached to a Mail object
- *
- * @return Subject
- */
- public function getGlobalSubject()
- {
- return $this->subject;
- }
-
- /**
- * Add content to a Mail object
- *
- * For a list of pre-configured mime types, please see
- * MimeType.php
- *
- * @param string|Content $type Mime type or Content object
- * @param string|null $value Contents (e.g. text or html)
- */
- public function addContent($type, $value = null)
- {
- if ($type instanceof Content) {
- $content = $type;
- } else {
- $content = new Content($type, $value);
- }
- $this->contents[] = $content;
- }
-
- /**
- * Adds multiple Content objects to a Mail object
- *
- * @param array|Content[] $contents Array of Content objects
- * or key value pairs
- */
- public function addContents($contents)
- {
- if (current($contents) instanceof Content) {
- foreach ($contents as $content) {
- $this->addContent($content);
- }
- } else {
- foreach ($contents as $key => $value) {
- $this->addContent($key, $value);
- }
- }
- }
-
- /**
- * Retrieve the contents attached to a Mail object
- *
- * Will return array of Content Objects with text/plain MimeType first
- * Array re-ordered before return where this is not already the case
- *
- * @return Content[]
- */
- public function getContents()
- {
- if ($this->contents) {
- if ($this->contents[0]->getType() !== 'text/plain'
- && count($this->contents) > 1
- ) {
- foreach ($this->contents as $key => $value) {
- if ($value->getType() == 'text/plain') {
- $plain_content = $value;
- unset($this->contents[$key]);
- break;
- }
- }
- array_unshift($this->contents, $plain_content);
- }
- }
-
- return $this->contents;
- }
-
- /**
- * Add an attachment to a Mail object
- *
- * @param string|Attachment $attachment Attachment object or
- * Base64 encoded content
- * @param string|null $type Mime type of the attachment
- * @param string|null $filename File name of the attachment
- * @param string|null $disposition How the attachment should be
- * displayed: inline or attachment
- * default is attachment
- * @param string|null $content_id Used when disposition is inline
- * to diplay the file within the
- * body of the email
- */
- public function addAttachment(
- $attachment,
- $type = null,
- $filename = null,
- $disposition = null,
- $content_id = null
- ) {
- if (is_array($attachment)) {
- $attachment = new Attachment(
- $attachment[0],
- $attachment[1],
- $attachment[2],
- $attachment[3],
- $attachment[4]
- );
- } else if (!($attachment instanceof Attachment)) {
- $attachment = new Attachment(
- $attachment,
- $type,
- $filename,
- $disposition,
- $content_id
- );
- }
- $this->attachments[] = $attachment;
- }
-
- /**
- * Adds multiple attachments to a Mail object
- *
- * @param array|Attachment[] $attachments Array of Attachment objects
- * or arrays
- */
- public function addAttachments($attachments)
- {
- foreach ($attachments as $attachment) {
- $this->addAttachment($attachment);
- }
- }
-
- /**
- * Retrieve the attachments attached to a Mail object
- *
- * @return Attachment[]
- */
- public function getAttachments()
- {
- return $this->attachments;
- }
-
- /**
- * Add a template id to a Mail object
- *
- * @param string $template_id The id of the template to be
- * appied to this email
- */
- public function setTemplateId($template_id)
- {
- if (!($template_id instanceof TemplateId)) {
- $template_id = new TemplateId($template_id);
- }
-
- $this->template_id = $template_id;
- }
-
- /**
- * Retrieve a template id attached to a Mail object
- *
- * @return TemplateId
- */
- public function getTemplateId()
- {
- return $this->template_id;
- }
-
- /**
- * Add a section to a Mail object
- *
- * @param string|Section $key Key or Section object
- * @param string|null $value Value
- */
- public function addSection($key, $value = null)
- {
- if ($key instanceof Section) {
- $section = $key;
- $this->sections[$section->getKey()]
- = $section->getValue();
- return;
- }
- $this->sections[$key] = (string)$value;
- }
-
- /**
- * Adds multiple sections to a Mail object
- *
- * @param array|Section[] $sections Array of CustomArg objects
- * or key/values
- */
- public function addSections($sections)
- {
- if (current($sections) instanceof Section) {
- foreach ($sections as $section) {
- $this->addSection($section);
- }
- } else {
- foreach ($sections as $key => $value) {
- $this->addSection($key, $value);
- }
- }
- }
-
- /**
- * Retrieve the section(s) attached to a Mail object
- *
- * @return Section[]
- */
- public function getSections()
- {
- return $this->sections;
- }
-
- /**
- * Add a header to a Mail object
- *
- * Note that headers added to Personalization objects override
- * global headers.
- *
- * @param string|Header $key Key or Header object
- * @param string|null $value Value
- */
- public function addGlobalHeader($key, $value = null)
- {
- if ($key instanceof Header) {
- $header = $key;
- $this->headers[$header->getKey()]
- = $header->getValue();
- return;
- }
- $this->headers[$key] = (string)$value;
- }
-
- /**
- * Adds multiple headers to a Mail object
- *
- * Note that headers added to Personalization objects override
- * global headers.
- *
- * @param array|Header[] $headers Array of Header objects
- * or key values
- */
- public function addGlobalHeaders($headers)
- {
- if (current($headers) instanceof Header) {
- foreach ($headers as $header) {
- $this->addGlobalHeader($header);
- }
- } else {
- foreach ($headers as $key => $value) {
- $this->addGlobalHeader($key, $value);
- }
- }
- }
-
- /**
- * Retrieve the headers attached to a Mail object
- *
- * @return Header[]
- */
- public function getGlobalHeaders()
- {
- return $this->headers;
- }
-
- /**
- * Add a substitution to a Mail object
- *
- * Note that substitutions added to Personalization objects override
- * global substitutions.
- *
- * @param string|Substitution $key Key or Substitution object
- * @param string|null $value Value
- */
- public function addGlobalSubstitution($key, $value = null)
- {
- if ($key instanceof Substitution) {
- $substitution = $key;
- $this->substitutions[$substitution->getKey()]
- = $substitution->getValue();
- return;
- }
- $this->substitutions[$key] = $value;
- }
-
- /**
- * Adds multiple substitutions to a Mail object
- *
- * Note that substitutions added to Personalization objects override
- * global headers.
- *
- * @param array|Substitution[] $substitutions Array of Substitution
- * objects or key/values
- */
- public function addGlobalSubstitutions($substitutions)
- {
- if (current($substitutions) instanceof Substitution) {
- foreach ($substitutions as $substitution) {
- $this->addGlobalSubstitution($substitution);
- }
- } else {
- foreach ($substitutions as $key => $value) {
- $this->addGlobalSubstitution($key, $value);
- }
- }
- }
-
- /**
- * Retrieve the substitutions attached to a Mail object
- *
- * @return Substitution[]
- */
- public function getGlobalSubstitutions()
- {
- return $this->substitutions;
- }
-
- /**
- * Add a category to a Mail object
- *
- * @param string|Category $category Category object or category name
- */
- public function addCategory($category)
- {
- if (!($category instanceof Category)) {
- $category = new Category($category);
- }
- $this->categories[] = $category;
- }
-
- /**
- * Adds multiple categories to a Mail object
- *
- * @param array|Category[] $categories Array of Category objects
- * or arrays
- */
- public function addCategories($categories)
- {
- foreach ($categories as $category) {
- $this->addCategory($category);
- }
- return;
- }
-
- /**
- * Retrieve the categories attached to a Mail object
- *
- * @return Category[]
- */
- public function getCategories()
- {
- return $this->categories;
- }
-
- /**
- * Add a custom arg to a Mail object
- *
- * Note that custom args added to Personalization objects override
- * global custom args.
- *
- * @param string|CustomArg $key Key or CustomArg object
- * @param string|null $value Value
- */
- public function addGlobalCustomArg($key, $value = null)
- {
- if ($key instanceof CustomArg) {
- $custom_arg = $key;
- $this->custom_args[$custom_arg->getKey()]
- = $custom_arg->getValue();
- return;
- }
- $this->custom_args[$key] = (string)$value;
- }
-
- /**
- * Adds multiple custom args to a Mail object
- *
- * Note that custom args added to Personalization objects override
- * global custom args.
- *
- * @param array|CustomArg[] $custom_args Array of CustomArg objects
- * or key/values
- */
- public function addGlobalCustomArgs($custom_args)
- {
- if (current($custom_args) instanceof CustomArg) {
- foreach ($custom_args as $custom_arg) {
- $this->addGlobalCustomArg($custom_arg);
- }
- } else {
- foreach ($custom_args as $key => $value) {
- $this->addGlobalCustomArg($key, $value);
- }
- }
- }
-
- /**
- * Retrieve the custom args attached to a Mail object
- *
- * @return CustomArg[]
- */
- public function getGlobalCustomArgs()
- {
- return $this->custom_args;
- }
-
- /**
- * Add a unix timestamp allowing you to specify when you want your
- * email to be delivered to a Mail object
- *
- * Note that timestamps added to Personalization objects override
- * global timestamps.
- *
- * @param int|SendAt $send_at A unix timestamp
- */
- public function setGlobalSendAt($send_at)
- {
- if (!($send_at instanceof SendAt)) {
- $send_at = new SendAt($send_at);
- }
- $this->send_at = $send_at;
- }
-
- /**
- * Retrieve the unix timestamp attached to a Mail object
- *
- * @return SendAt
- */
- public function getGlobalSendAt()
- {
- return $this->send_at;
- }
-
- /**
- * Add a batch id to a Mail object
- *
- * @param string|BatchId $batch_id Id for a batch of emails
- * to be sent at the same time
- */
- public function setBatchId($batch_id)
- {
- if (!($batch_id instanceof BatchId)) {
- $batch_id = new BatchId($batch_id);
- }
- $this->batch_id = $batch_id;
- }
-
- /**
- * Retrieve the batch id attached to a Mail object
- *
- * @return BatchId
- */
- public function getBatchId()
- {
- return $this->batch_id;
- }
-
- /**
- * Add a Asm describing how to handle unsubscribes to a Mail object
- *
- * @param int|Asm $group_id Asm object or unsubscribe group id
- * to associate this email with
- * @param array $groups_to_display Array of integer ids of unsubscribe
- * groups to be displayed on the
- * unsubscribe preferences page
- */
- public function setAsm($group_id, $groups_to_display = null)
- {
- if ($group_id instanceof Asm) {
- $asm = $group_id;
- $this->asm = $asm;
- } else {
- $this->asm = new Asm($group_id, $groups_to_display);
- }
- }
-
- /**
- * Retrieve the Asm object describing how to handle unsubscribes attached
- * to a Mail object
- *
- * @return Asm
- */
- public function getAsm()
- {
- return $this->asm;
- }
-
- /**
- * Add the IP pool name to a Mail object
- *
- * @param string|IpPoolName $ip_pool_name The IP Pool that you would
- * like to send this email from
- */
- public function setIpPoolName($ip_pool_name)
- {
- if ($ip_pool_name instanceof IpPoolName) {
- $this->ip_pool_name = $ip_pool_name->getIpPoolName();
- } else {
- $this->ip_pool_name = new IpPoolName($ip_pool_name);
- }
-
- }
-
- /**
- * Retrieve the IP pool name attached to a Mail object
- *
- * @return IpPoolName
- */
- public function getIpPoolName()
- {
- return $this->ip_pool_name;
- }
-
- /**
- * Add a MailSettings object to a Mail object
- *
- * @param MailSettings $mail_settings A collection of different
- * mail settings that you can
- * use to specify how you would
- * like this email to be handled
- * @throws TypeException
- */
- public function setMailSettings($mail_settings)
- {
- if (!($mail_settings instanceof MailSettings)) {
- throw new TypeException(
- '$mail_settings must be an instance of SendGrid\Mail\MailSettings'
- );
- }
- $this->mail_settings = $mail_settings;
- }
-
- /**
- * Retrieve the MailSettings object attached to a Mail object
- *
- * @return MailSettings
- */
- public function getMailSettings()
- {
- return $this->mail_settings;
- }
-
- /**
- * Set the Bcc settings on a MailSettings object
- *
- * @param bool|BccSettings $enable A BccSettings object or a boolean
- * to determine if this setting is active
- * @param string|null $email The email address to be bcc'ed
- */
- public function setBccSettings($enable, $email = null)
- {
- if (!($this->mail_settings instanceof MailSettings)) {
- $this->mail_settings = new MailSettings();
- }
- $this->mail_settings->setBccSettings($enable, $email);
- }
-
- /**
- * Enable bypass list management on a MailSettings object
- *
- * Allows you to bypass all unsubscribe groups and suppressions to ensure
- * that the email is delivered to every single recipient. This should only
- * be used in emergencies when it is absolutely necessary that every
- * recipient receives your email.
- */
- public function enableBypassListManagement()
- {
- if (!$this->mail_settings instanceof MailSettings) {
- $this->mail_settings = new MailSettings();
- }
- $this->mail_settings->setBypassListManagement(true);
- }
-
- /**
- * Disable bypass list management on a MailSettings object
- *
- * Allows you to bypass all unsubscribe groups and suppressions to ensure
- * that the email is delivered to every single recipient. This should only
- * be used in emergencies when it is absolutely necessary that every
- * recipient receives your email.
- */
- public function disableBypassListManagement()
- {
- if (!($this->mail_settings instanceof MailSettings)) {
- $this->mail_settings = new MailSettings();
- }
- $this->mail_settings->setBypassListManagement(false);
- }
-
- /**
- * Set the Footer settings on a MailSettings object
- *
- * @param bool|Footer $enable A Footer object or a boolean
- * to determine if this setting is active
- * @param string|null $text The plain text content of the footer
- * @param string|null $html The HTML content of the footer
- */
- public function setFooter($enable = null, $text = null, $html = null)
- {
- if (!$this->mail_settings instanceof MailSettings) {
- $this->mail_settings = new MailSettings();
- }
- $this->mail_settings->setFooter($enable, $text, $html);
- }
-
- /**
- * Enable sandbox mode on a MailSettings object
- *
- * This allows you to send a test email to ensure that your request
- * body is valid and formatted correctly.
- */
- public function enableSandBoxMode()
- {
- if (!($this->mail_settings instanceof MailSettings)) {
- $this->mail_settings = new MailSettings();
- }
- $this->mail_settings->setSandBoxMode(true);
- }
-
- /**
- * Disable sandbox mode on a MailSettings object
- *
- * This allows you to send a test email to ensure that your request
- * body is valid and formatted correctly.
- */
- public function disableSandBoxMode()
- {
- if (!($this->mail_settings instanceof MailSettings)) {
- $this->mail_settings = new MailSettings();
- }
- $this->mail_settings->setSandBoxMode(false);
- }
-
- /**
- * Set the spam check settings on a MailSettings object
- *
- * @param bool|SpamCheck $enable A SpamCheck object or a boolean
- * to determine if this setting is active
- * @param int|null $threshold The threshold used to determine if your
- * content qualifies as spam on a scale from
- * 1 to 10, with 10 being most strict, or
- * most likely to be considered as spam
- * @param string|null $post_to_url An Inbound Parse URL that you would like
- * a copy of your email along with the spam
- * report to be sent to
- */
- public function setSpamCheck($enable = null, $threshold = null, $post_to_url = null)
- {
- if (!$this->mail_settings instanceof MailSettings) {
- $this->mail_settings = new MailSettings();
- }
- $this->mail_settings->setSpamCheck($enable, $threshold, $post_to_url);
- }
-
- /**
- * Add a TrackingSettings object to a Mail object
- *
- * @param TrackingSettings $tracking_settings Settings to determine how you
- * would like to track the metrics
- * of how your recipients interact
- * with your email
- * @throws TypeException
- */
- public function setTrackingSettings($tracking_settings)
- {
- if (!($tracking_settings instanceof TrackingSettings)) {
- throw new TypeException(
- '$tracking_settings must be an instance of SendGrid\Mail\TrackingSettings'
- );
- }
- $this->tracking_settings = $tracking_settings;
- }
-
- /**
- * Retrieve the TrackingSettings object attached to a Mail object
- *
- * @return TrackingSettings
- */
- public function getTrackingSettings()
- {
- return $this->tracking_settings;
- }
-
- /**
- * Set the click tracking settings on a TrackingSettings object
- *
- * @param bool|ClickTracking $enable A ClickTracking object or a boolean
- * to determine if this setting is active
- * @param bool|null $enable_text Indicates if this setting should be
- * included in the text/plain portion of
- * your email
- */
- public function setClickTracking($enable = null, $enable_text = null)
- {
- if (!($this->tracking_settings instanceof TrackingSettings)) {
- $this->tracking_settings = new TrackingSettings();
- }
- $this->tracking_settings->setClickTracking($enable, $enable_text);
- }
-
- /**
- * Set the open tracking settings on a TrackingSettings object
- *
- * @param bool|OpenTracking $enable A OpenTracking object or a boolean
- * to determine if this setting is
- * active
- * @param string|null $substitution_tag Allows you to specify a
- * substitution tag that you can
- * insert in the body of your email
- * at a location that you desire.
- * This tag will be replaced by the
- * open tracking pixel
- */
- public function setOpenTracking($enable = null, $substitution_tag = null)
- {
- if (!($this->tracking_settings instanceof TrackingSettings)) {
- $this->tracking_settings = new TrackingSettings();
- }
- $this->tracking_settings->setOpenTracking($enable, $substitution_tag);
- }
-
- /**
- * Set the subscription tracking settings on a TrackingSettings object
- *
- * @param bool|SubscriptionTracking $enable A SubscriptionTracking
- * object or a boolean to
- * determine if this setting
- * is active
- * @param string|null $text Text to be appended to the
- * email, with the
- * subscription tracking
- * link. You may control
- * where the link is by using
- * the tag <% %>
- * @param string|null $html HTML to be appended to the
- * email, with the
- * subscription tracking
- * link. You may control
- * where the link is by using
- * the tag <% %>
- * @param string|null $substitution_tag A tag that will be
- * replaced with the
- * unsubscribe URL. for
- * example:
- * [unsubscribe_url]. If this
- * parameter is used, it will
- * override both the text and
- * html parameters. The URL
- * of the link will be placed
- * at the substitution tag’s
- * location, with no
- * additional formatting
- */
- public function setSubscriptionTracking(
- $enable = null,
- $text = null,
- $html = null,
- $substitution_tag = null
- ) {
- if (!($this->tracking_settings instanceof TrackingSettings)) {
- $this->tracking_settings = new TrackingSettings();
- }
- $this->tracking_settings->setSubscriptionTracking(
- $enable,
- $text,
- $html,
- $substitution_tag
- );
- }
-
- /**
- * Set the Google anatlyics settings on a TrackingSettings object
- *
- * @param bool|Ganalytics $enable A Ganalytics object or a boolean to
- * determine if this setting
- * is active
- * @param string|null $utm_source Name of the referrer source. (e.g.
- * Google, SomeDomain.com, or
- * Marketing Email)
- * @param string|null $utm_medium Name of the marketing medium.
- * (e.g. Email)
- * @param string|null $utm_term Used to identify any paid keywords.
- * @param string|null $utm_content Used to differentiate your campaign
- * from advertisements
- * @param string|null $utm_campaign The name of the campaign
- */
- public function setGanalytics(
- $enable = null,
- $utm_source = null,
- $utm_medium = null,
- $utm_term = null,
- $utm_content = null,
- $utm_campaign = null
- ) {
- if (!($this->tracking_settings instanceof TrackingSettings)) {
- $this->tracking_settings = new TrackingSettings();
- }
- $this->tracking_settings->setGanalytics(
- $enable,
- $utm_source,
- $utm_medium,
- $utm_term,
- $utm_content,
- $utm_campaign
- );
- }
-
- /**
- * Return an array representing a request object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- // Detect if we are using the new dynamic templates
- $template_id = $this->getTemplateId();
- if ($template_id != null) {
- if (substr((string) $template_id->getTemplateId(), 0, 2) == "d-") {
- foreach ($this->personalization as $personalization) {
- $personalization->setHasDynamicTemplate(true);
- }
- }
- }
- return array_filter(
- [
- 'personalizations' => $this->getPersonalizations(),
- 'from' => $this->getFrom(),
- 'reply_to' => $this->getReplyTo(),
- 'subject' => $this->getGlobalSubject(),
- 'content' => $this->getContents(),
- 'attachments' => $this->getAttachments(),
- 'template_id' => $this->getTemplateId(),
- 'sections' => $this->getSections(),
- 'headers' => $this->getGlobalHeaders(),
- 'categories' => $this->getCategories(),
- 'custom_args' => $this->getGlobalCustomArgs(),
- 'send_at' => $this->getGlobalSendAt(),
- 'batch_id' => $this->getBatchId(),
- 'asm' => $this->getASM(),
- 'ip_pool_name' => $this->getIpPoolName(),
- 'substitutions' => $this->getGlobalSubstitutions(),
- 'mail_settings' => $this->getMailSettings(),
- 'tracking_settings' => $this->getTrackingSettings()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/MailSettings.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/MailSettings.php
deleted file mode 100644
index 8ee56ea..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/MailSettings.php
+++ /dev/null
@@ -1,274 +0,0 @@
-<?php
-/**
- * This helper builds the MailSettings object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a MailSettings object for the /mail/send API call
- *
- * A collection of different mail settings that you can use to specify how you would
- * like this email to be handled
- *
- * @package SendGrid\Mail
- */
-class MailSettings implements \JsonSerializable
-{
- /** @var $bcc Bcc object */
- private $bcc;
- /** @var $bypass_list_management BypassListManagement object */
- private $bypass_list_management;
- /** @var $footer Footer object */
- private $footer;
- /** @var $sandbox_mode SandBoxMode object */
- private $sandbox_mode;
- /** @var $spam_check SpamCheck object */
- private $spam_check;
-
- /**
- * Optional constructor
- *
- * @param BccSettings|null $bcc_settings BccSettings object
- * @param BypassListManagement|null $bypass_list_management BypassListManagement
- * object
- * @param Footer|null $footer Footer object
- * @param SandBoxMode|null $sandbox_mode SandBoxMode object
- * @param SpamCheck|null $spam_check SpamCheck object
- */
- public function __construct(
- $bcc_settings = null,
- $bypass_list_management = null,
- $footer = null,
- $sandbox_mode = null,
- $spam_check = null
- ) {
- if (isset($bcc_settings)) {
- $this->setBccSettings($bcc_settings);
- }
- if (isset($bypass_list_management)) {
- $this->setBypassListManagement($bypass_list_management);
- }
- if (isset($footer)) {
- $this->setFooter($footer);
- }
- if (isset($sandbox_mode)) {
- $this->setSandboxMode($sandbox_mode);
- }
- if (isset($spam_check)) {
- $this->setSpamCheck($spam_check);
- }
- }
-
- /**
- * Set the bcc settings on a MailSettings object
- *
- * @param BccSettings|bool $enable The BccSettings object or an indication
- * if the setting is enabled
- * @param string|null $email The email address that you would like
- * to receive the BCC
- *
- * @throws TypeException
- */
- public function setBccSettings($enable, $email = null)
- {
- if ($enable instanceof BccSettings) {
- $bcc = $enable;
- $this->bcc = $bcc;
- return;
- }
- if (!is_bool($enable)) {
- throw new TypeException(
- '$enable must be an instance of SendGrid\Mail\BccSettings or of type bool.'
- );
- }
- $this->bcc = new BccSettings($enable, $email);
- }
-
- /**
- * Retrieve the bcc settings from a MailSettings object
- *
- * @return Bcc
- */
- public function getBccSettings()
- {
- return $this->bcc;
- }
-
- /**
- * Set bypass list management settings on a MailSettings object
- *
- * @param BypassListManagement|bool $enable The BypassListManagement
- * object or an indication
- * if the setting is enabled
- *
- * @throws TypeException
- */
- public function setBypassListManagement($enable)
- {
- if ($enable instanceof BypassListManagement) {
- $bypass_list_management = $enable;
- $this->bypass_list_management = $bypass_list_management;
- return;
- }
- if (!is_bool($enable)) {
- throw new TypeException(
- '$enable must be an instance of SendGrid\Mail\BypassListManagement or of type bool.'
- );
- }
- $this->bypass_list_management = new BypassListManagement($enable);
- return;
- }
-
- /**
- * Retrieve bypass list management settings from a MailSettings object
- *
- * @return BypassListManagement
- */
- public function getBypassListManagement()
- {
- return $this->bypass_list_management;
- }
-
- /**
- * Set the footer settings on a MailSettings object
- *
- * @param Footer|bool $enable The Footer object or an indication
- * if the setting is enabled
- * @param string|null $text The plain text content of your footer
- * @param string|null $html The HTML content of your footer
- *
- * @return null
- */
- public function setFooter($enable, $text = null, $html = null)
- {
- if ($enable instanceof Footer) {
- $footer = $enable;
- $this->footer = $footer;
- return;
- }
- $this->footer = new Footer($enable, $text, $html);
- return;
- }
-
- /**
- * Retrieve the footer settings from a MailSettings object
- *
- * @return Footer
- */
- public function getFooter()
- {
- return $this->footer;
- }
-
- /**
- * Set sandbox mode settings on a MailSettings object
- *
- * @param SandBoxMode|bool $enable The SandBoxMode object or an
- * indication if the setting is enabled
- *
- * @return null
- */
- public function setSandboxMode($enable)
- {
- if ($enable instanceof SandBoxMode) {
- $sandbox_mode = $enable;
- $this->sandbox_mode = $sandbox_mode;
- return;
- }
- $this->sandbox_mode = new SandBoxMode($enable);
- return;
- }
-
- /**
- * Retrieve sandbox mode settings on a MailSettings object
- *
- * @return SandBoxMode
- */
- public function getSandboxMode()
- {
- return $this->sandbox_mode;
- }
-
- /**
- * Enable sandbox mode on a MailSettings object
- */
- public function enableSandboxMode()
- {
- $this->setSandboxMode(true);
- }
-
- /**
- * Disable sandbox mode on a MailSettings object
- */
- public function disableSandboxMode()
- {
- $this->setSandboxMode(false);
- }
-
- /**
- * Set spam check settings on a MailSettings object
- *
- * @param SpamCheck|bool $enable The SpamCheck object or an
- * indication if the setting is enabled
- * @param int $threshold The threshold used to determine if your
- * content qualifies as spam on a scale
- * from 1 to 10, with 10 being most strict,
- * or most
- * @param string $post_to_url An Inbound Parse URL that you would like
- * a copy of your email along with the spam
- * report to be sent to
- *
- * @return null
- */
- public function setSpamCheck($enable, $threshold = null, $post_to_url = null)
- {
- if ($enable instanceof SpamCheck) {
- $spam_check = $enable;
- $this->spam_check = $spam_check;
- return;
- }
- $this->spam_check = new SpamCheck($enable, $threshold, $post_to_url);
- return;
- }
-
- /**
- * Retrieve spam check settings from a MailSettings object
- *
- * @return SpamCheck
- */
- public function getSpamCheck()
- {
- return $this->spam_check;
- }
-
- /**
- * Return an array representing a MailSettings object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'bcc' => $this->getBccSettings(),
- 'bypass_list_management' => $this->getBypassListManagement(),
- 'footer' => $this->getFooter(),
- 'sandbox_mode' => $this->getSandboxMode(),
- 'spam_check' => $this->getSpamCheck()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/MimeType.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/MimeType.php
deleted file mode 100644
index 6d33872..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/MimeType.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * This helper defines the content mime types for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to define the content mime types for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-abstract class MimeType
-{
- const HTML = "text/html";
- const TEXT = "text/plain";
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/OpenTracking.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/OpenTracking.php
deleted file mode 100644
index f3204fe..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/OpenTracking.php
+++ /dev/null
@@ -1,124 +0,0 @@
-<?php
-/**
- * This helper builds the OpenTracking object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a OpenTracking object for the /mail/send API call
- *
- * Allows you to track whether the email was opened or not, but including a single
- * pixel image in the body of the content. When the pixel is loaded, we can log that
- * the email was opened
- *
- * @package SendGrid\Mail
- */
-class OpenTracking implements \JsonSerializable
-{
- /** @var $enable bool Indicates if this setting is enabled */
- private $enable;
- /** @var $substitution_tag string Allows you to specify a substitution tag that you can insert in the body of your email at a location that you desire. This tag will be replaced by the open tracking pixel */
- private $substitution_tag;
-
- /**
- * Optional constructor
- *
- * @param bool|null $enable Indicates if this setting is enabled
- * @param string|null $substitution_tag Allows you to specify a substitution
- * tag that you can insert in the body
- * of your email at a location that you
- * desire. This tag will be replaced by
- * the open tracking pixel
- */
- public function __construct($enable = null, $substitution_tag = null)
- {
- if (isset($enable)) {
- $this->setEnable($enable);
- }
- if (isset($substitution_tag)) {
- $this->setSubstitutionTag($substitution_tag);
- }
- }
-
- /**
- * Update the enable setting on a OpenTracking object
- *
- * @param bool $enable Indicates if this setting is enabled
- *
- * @throws TypeException
- */
- public function setEnable($enable)
- {
- if (!is_bool($enable)) {
- throw new TypeException('$enable must be of type bool');
- }
- $this->enable = $enable;
- }
-
- /**
- * Retrieve the enable setting on a OpenTracking object
- *
- * @return bool
- */
- public function getEnable()
- {
- return $this->enable;
- }
-
- /**
- * Set the substitution tag on a OpenTracking object
- *
- * @param string $substitution_tag Allows you to specify a substitution
- * tag that you can insert in the body
- * of your email at a location that you
- * desire. This tag will be replaced by
- * the open tracking pixel
- *
- * @throws TypeException
- */
- public function setSubstitutionTag($substitution_tag)
- {
- if (!is_string($substitution_tag)) {
- throw new TypeException('$substitution_tag must be of type string.');
- }
- $this->substitution_tag = $substitution_tag;
- }
-
- /**
- * Retrieve the substitution tag from a OpenTracking object
- *
- * @return string
- */
- public function getSubstitutionTag()
- {
- return $this->substitution_tag;
- }
-
- /**
- * Return an array representing a OpenTracking object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'enable' => $this->getEnable(),
- 'substitution_tag' => $this->getSubstitutionTag()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Personalization.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Personalization.php
deleted file mode 100644
index 711a824..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Personalization.php
+++ /dev/null
@@ -1,312 +0,0 @@
-<?php
-/**
- * This helper builds the Personalization object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Personalization object for
- * the /mail/send API call
- *
- * Each Personalization can be thought of as an envelope - it defines
- * who should receive an individual message and how that message should be handled
- *
- * @package SendGrid\Mail
- */
-class Personalization implements \JsonSerializable
-{
- /** @var $tos To[] objects */
- private $tos;
- /** @var $ccs Cc[] objects */
- private $ccs;
- /** @var $bccs Bcc[] objects */
- private $bccs;
- /** @var $subject Subject object */
- private $subject;
- /** @var $headers Header[] array of header key values */
- private $headers;
- /** @var $substitutions Substitution[] array of substitution key values, used for legacy templates */
- private $substitutions;
- /** @var array of dynamic template data key values */
- private $dynamic_template_data;
- /** @var bool if we are using dynamic templates this will be true */
- private $has_dynamic_template = false;
- /** @var $custom_args CustomArg[] array of custom arg key values */
- private $custom_args;
- /** @var $send_at SendAt object */
- private $send_at;
-
- /**
- * Add a To object to a Personalization object
- *
- * @param To $email To object
- */
- public function addTo($email)
- {
- $this->tos[] = $email;
- }
-
- /**
- * Retrieve To object(s) from a Personalization object
- *
- * @return To[]
- */
- public function getTos()
- {
- return $this->tos;
- }
-
- /**
- * Add a Cc object to a Personalization object
- *
- * @param Cc $email Cc object
- */
- public function addCc($email)
- {
- $this->ccs[] = $email;
- }
-
- /**
- * Retrieve Cc object(s) from a Personalization object
- *
- * @return Cc[]
- */
- public function getCcs()
- {
- return $this->ccs;
- }
-
- /**
- * Add a Bcc object to a Personalization object
- *
- * @param Bcc $email Bcc object
- */
- public function addBcc($email)
- {
- $this->bccs[] = $email;
- }
-
- /**
- * Retrieve Bcc object(s) from a Personalization object
- *
- * @return Bcc[]
- */
- public function getBccs()
- {
- return $this->bccs;
- }
-
- /**
- * Add a subject object to a Personalization object
- *
- * @param Subject $subject Subject object
- *
- * @throws TypeException
- */
- public function setSubject($subject)
- {
- if (!($subject instanceof Subject)) {
- throw new TypeException(
- '$subject must be an instance of SendGrid\Mail\Subject'
- );
- }
- $this->subject = $subject;
- }
-
- /**
- * Retrieve a Subject object from a Personalization object
- *
- * @return Subject
- */
- public function getSubject()
- {
- return $this->subject;
- }
-
- /**
- * Add a Header object to a Personalization object
- *
- * @param Header $header Header object
- */
- public function addHeader($header)
- {
- $this->headers[$header->getKey()] = $header->getValue();
- }
-
- /**
- * Retrieve header key/value pairs from a Personalization object
- *
- * @return array
- */
- public function getHeaders()
- {
- return $this->headers;
- }
-
- /**
- * Add a Substitution object or key/value to a Personalization object
- *
- * @param Substitution|string $data DynamicTemplateData object or the key of a
- * dynamic data
- * @param string|null $value The value of dynmic data
- *
- * @return null
- */
- public function addDynamicTemplateData($data, $value = null)
- {
- $this->addSubstitution($data, $value);
- }
-
- /**
- * Retrieve dynamic template data key/value pairs from a Personalization object
- *
- * @return array
- */
- public function getDynamicTemplateData()
- {
- return $this->getSubstitutions();
- }
-
- /**
- * Add a Substitution object or key/value to a Personalization object
- *
- * @param Substitution|string $substitution Substitution object or the key of a
- * substitution
- * @param string|null $value The value of a substitution
- */
- public function addSubstitution($substitution, $value = null)
- {
- if (!($substitution instanceof Substitution)) {
- $key = $substitution;
- $substitution = new Substitution($key, $value);
- }
- $this->substitutions[$substitution->getKey()] = $substitution->getValue();
- }
-
- /**
- * Retrieve substitution key/value pairs from a Personalization object
- *
- * @return array
- */
- public function getSubstitutions()
- {
- return $this->substitutions;
- }
-
- /**
- * Add a CustomArg object to a Personalization object
- *
- * @param CustomArg $custom_arg CustomArg object
- */
- public function addCustomArg($custom_arg)
- {
- $this->custom_args[$custom_arg->getKey()] = (string)$custom_arg->getValue();
- }
-
- /**
- * Retrieve custom arg key/value pairs from a Personalization object
- *
- * @return array
- */
- public function getCustomArgs()
- {
- return $this->custom_args;
- }
-
- /**
- * Add a SendAt object to a Personalization object
- *
- * @param SendAt $send_at SendAt object
- *
- * @throws TypeException
- */
- public function setSendAt($send_at)
- {
- if (!($send_at instanceof SendAt)) {
- throw new TypeException(
- '$send_at must be an instance of SendGrid\Mail\SendAt'
- );
- }
- $this->send_at = $send_at;
- }
-
- /**
- * Retrieve a SendAt object from a Personalization object
- *
- * @return SendAt
- */
- public function getSendAt()
- {
- return $this->send_at;
- }
-
- /**
- * Specify if this personalization is using dynamic templates
- *
- * @param bool $has_dynamic_template are we using dynamic templates
- *
- * @throws TypeException
- */
- public function setHasDynamicTemplate($has_dynamic_template)
- {
- if (is_bool($has_dynamic_template) != true) {
- throw new TypeException(
- '$has_dynamic_template must be an instance of bool'
- );
- }
- $this->has_dynamic_template = $has_dynamic_template;
- }
-
- /**
- * Determine if this Personalization object is using dynamic templates
- *
- * @return bool
- */
- public function getHasDynamicTemplate()
- {
- return $this->has_dynamic_template;
- }
-
- /**
- * Return an array representing a Personalization object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- if ($this->getHasDynamicTemplate() == true) {
- $dynamic_substitutions = $this->getSubstitutions();
- $substitutions = null;
- } else {
- $substitutions = $this->getSubstitutions();
- $dynamic_substitutions = null;
- }
-
- return array_filter(
- [
- 'to' => $this->getTos(),
- 'cc' => $this->getCcs(),
- 'bcc' => $this->getBccs(),
- 'subject' => $this->getSubject(),
- 'headers' => $this->getHeaders(),
- 'substitutions' => $substitutions,
- 'dynamic_template_data' => $dynamic_substitutions,
- 'custom_args' => $this->getCustomArgs(),
- 'send_at' => $this->getSendAt()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/PlainTextContent.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/PlainTextContent.php
deleted file mode 100644
index a6acbef..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/PlainTextContent.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/**
- * This helper builds theContent object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Content object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class PlainTextContent extends Content
-{
- /**
- * Create a Content object with a plain text mime type
- *
- * @param string $value plain text formatted content
- */
- public function __construct($value)
- {
- parent::__construct(MimeType::TEXT, $value);
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/README.md b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/README.md
deleted file mode 100644
index 87a0997..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-**This helper allows you to quickly and easily build a Mail object for sending email through Twilio SendGrid.**
-
-# Quick Start
-
-Run the [example](https://github.com/sendgrid/sendgrid-php/blob/master/examples/helpers/mail/example.php) (make sure you have set your environment variable to include your SENDGRID_API_KEY).
-
-```bash
-php examples/helpers/mail/example.php
-```
-
-## Usage
-
-- See this complete working [example](https://github.com/sendgrid/sendgrid-php/blob/master/examples/helpers/mail/example.php).
-- [Documentation](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/overview.html)
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/ReplyTo.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/ReplyTo.php
deleted file mode 100644
index 3f4e10d..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/ReplyTo.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * This helper builds the ReplyTo object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a ReplyTo object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class ReplyTo extends EmailAddress implements \JsonSerializable
-{
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SandBoxMode.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SandBoxMode.php
deleted file mode 100644
index ab7a1fb..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SandBoxMode.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/**
- * This helper builds the SandBoxMode object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a SandBoxMode object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class SandBoxMode implements \JsonSerializable
-{
- // @var bool Indicates if this setting is enabled
- private $enable;
-
- /**
- * Optional constructor
- *
- * @param bool|null $enable Indicates if this setting is enabled
- */
- public function __construct($enable = null)
- {
- if (isset($enable)) {
- $this->setEnable($enable);
- }
- }
-
- /**
- * Update the enable setting on a SandBoxMode object
- *
- * @param bool $enable Indicates if this setting is enabled
- *
- * @throws TypeException
- */
- public function setEnable($enable)
- {
- if (!is_bool($enable)) {
- throw new TypeException('$enable must be of type bool.');
- }
- $this->enable = $enable;
- }
-
- /**
- * Retrieve the enable setting on a SandBoxMode object
- *
- * @return bool
- */
- public function getEnable()
- {
- return $this->enable;
- }
-
- /**
- * Return an array representing a SandBoxMode object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'enable' => $this->getEnable()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Section.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Section.php
deleted file mode 100644
index eb2e246..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Section.php
+++ /dev/null
@@ -1,115 +0,0 @@
-<?php
-/**
- * This helper builds the Section object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Section object for the /mail/send API call
- *
- * An object of key/value pairs that define block sections of code to be used
- * as substitutions
- *
- * @package SendGrid\Mail
- */
-class Section implements \JsonSerializable
-{
- /** @var $key string Section key */
- private $key;
- /** @var $value string Section value */
- private $value;
-
- /**
- * Optional constructor
- *
- * @param string|null $key Section key
- * @param string|null $value Section value
- */
- public function __construct($key = null, $value = null)
- {
- if (isset($key)) {
- $this->setKey($key);
- }
- if (isset($value)) {
- $this->setValue($value);
- }
- }
-
- /**
- * Add the key on a Section object
- *
- * @param string $key Section key
- *
- * @throws TypeException
- */
- public function setKey($key)
- {
- if (!is_string($key)) {
- throw new TypeException('$key must be of type string.');
- }
- $this->key = $key;
- }
-
- /**
- * Retrieve the key from a Section object
- *
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Add the value on a Section object
- *
- * @param string $value Section value
- *
- * @throws TypeException
- */
- public function setValue($value)
- {
- if (!is_string($value)) {
- throw new TypeException('$value must be of type string.');
- }
- $this->value = $value;
- }
-
- /**
- * Retrieve the value from a Section object
- *
- * @return string
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * Return an array representing a Section object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'key' => $this->getKey(),
- 'value' => $this->getValue()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SendAt.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SendAt.php
deleted file mode 100644
index 1dbb3f1..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SendAt.php
+++ /dev/null
@@ -1,102 +0,0 @@
-<?php
-/**
- * This helper builds the SendAt object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a SendAt object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class SendAt implements \JsonSerializable
-{
- /**
- * @var $send_at int A unix timestamp allowing you to specify when you want your email
- * to be delivered. This may be overridden by the personalizations[x].send_at
- * parameter. You can't schedule more than 72 hours in advance. If you have
- * the flexibility, it's better to schedule mail for off-peak times. Most
- * emails are scheduled and sent at the top of the hour or half hour.
- * Scheduling email to avoid those times (for example, scheduling at 10:53) can
- * result in lower deferral rates because it won't be going through our servers
- * at the same times as everyone else's mail
- */
-
- private $send_at;
-
- /**
- * Optional constructor
- *
- * @param int|null $send_at A unix timestamp allowing you to specify when you
- * want your email to be delivered. This may be
- * overridden by the personalizations[x].send_at
- * parameter. You can't schedule more than 72 hours
- * in advance. If you have the flexibility, it's better
- * to schedule mail for off-peak times. Most emails are
- * scheduled and sent at the top of the hour or half
- * hour. Scheduling email to avoid those times (for
- * example, scheduling at 10:53) can result in lower
- * deferral rates because it won't be going through
- * our servers at the same times as everyone else's mail
- */
- public function __construct($send_at=null)
- {
- if (isset($send_at)) {
- $this->setSendAt($send_at);
- }
- }
-
- /**
- * Add the send at value to a SendAt object
- *
- * @param int $send_at A unix timestamp allowing you to specify when you
- * want your email to be delivered. This may be
- * overridden by the personalizations[x].send_at
- * parameter. You can't schedule more than 72 hours
- * in advance. If you have the flexibility, it's better
- * to schedule mail for off-peak times. Most emails are
- * scheduled and sent at the top of the hour or half
- * hour. Scheduling email to avoid those times (for
- * example, scheduling at 10:53) can result in lower
- * deferral rates because it won't be going through
- * our servers at the same times as everyone else's mail
- *
- * @throws TypeException
- */
- public function setSendAt($send_at)
- {
- if (!is_int($send_at)) {
- throw new TypeException('$send_at must be of type int.');
- }
- $this->send_at = $send_at;
- }
-
- /**
- * Retrieve the send at value from a SendAt object
- *
- * @return int
- */
- public function getSendAt()
- {
- return $this->send_at;
- }
-
- /**
- * Return an array representing a SendAt object for the Twilio SendGrid API
- *
- * @return int
- */
- public function jsonSerialize()
- {
- return $this->getSendAt();
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SpamCheck.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SpamCheck.php
deleted file mode 100644
index 4173c77..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SpamCheck.php
+++ /dev/null
@@ -1,161 +0,0 @@
-<?php
-/**
- * This helper builds the SpamCheck object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a SpamCheck object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class SpamCheck implements \JsonSerializable
-{
- /** @var $enable bool Indicates if this setting is enabled */
- private $enable;
- /**
- * @var $threshold int The threshold used to determine if your content qualifies as
- * spam on a scale from 1 to 10, with 10 being most strict, or most
- * likely to be considered as spam
- */
- private $threshold;
- /**
- * @var $post_to_urlstring An Inbound Parse URL that you would like a copy of your
- * email along with the spam report to be sent to
- */
- private $post_to_url;
-
- /**
- * Optional constructor
- *
- * @param bool|null $enable Indicates if this setting is enabled
- * @param int|null $threshold The threshold used to determine if your
- * content qualifies as spam on a scale
- * from 1 to 10, with 10 being most strict,
- * or most
- * @param string|null $post_to_url An Inbound Parse URL that you would like
- * a copy of your email along with the spam
- * report to be sent to
- */
- public function __construct($enable = null, $threshold = null, $post_to_url = null)
- {
- if (isset($enable)) {
- $this->setEnable($enable);
- }
- if (isset($threshold)) {
- $this->setThreshold($threshold);
- }
- if (isset($post_to_url)) {
- $this->setPostToUrl($post_to_url);
- }
- }
-
- /**
- * Update the enable setting on a SpamCheck object
- *
- * @param bool $enable Indicates if this setting is enabled
- *
- * @throws TypeException
- */
- public function setEnable($enable)
- {
- if (!is_bool($enable)) {
- throw new TypeException('$enable must be of type bool.');
- }
- $this->enable = $enable;
- }
-
- /**
- * Retrieve the enable setting on a SpamCheck object
- *
- * @return bool
- */
- public function getEnable()
- {
- return $this->enable;
- }
-
- /**
- * Set the threshold value on a SpamCheck object
- *
- * @param int $threshold The threshold used to determine if your
- * content qualifies as spam on a scale
- * from 1 to 10, with 10 being most strict,
- * or most
- *
- * @throws TypeException
- */
- public function setThreshold($threshold)
- {
- if (!is_int($threshold)) {
- throw new TypeException('$threshold must be of type int.');
- }
- $this->threshold = $threshold;
- }
-
- /**
- * Retrieve the threshold value from a SpamCheck object
- *
- * @return int
- */
- public function getThreshold()
- {
- return $this->threshold;
- }
-
- /**
- * Set the post to url value on a SpamCheck object
- *
- * @param string $post_to_url An Inbound Parse URL that you would like
- * a copy of your email along with the spam
- * report to be sent to
- *
- * @throws TypeException
- */
- public function setPostToUrl($post_to_url)
- {
- if (!is_string($post_to_url)) {
- throw new TypeException('$post_to_url must be of type string.');
- }
- $this->post_to_url = $post_to_url;
- }
-
- /**
- * Retrieve the post to url value from a SpamCheck object
- *
- * @return string
- */
- public function getPostToUrl()
- {
- return $this->post_to_url;
- }
-
- /**
- * Return an array representing a SpamCheck object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'enable' => $this->getEnable(),
- 'threshold' => $this->getThreshold(),
- 'post_to_url' => $this->getPostToUrl()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Subject.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Subject.php
deleted file mode 100644
index 94b4066..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Subject.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-/**
- * This helper builds the Subject object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Subject object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Subject implements \JsonSerializable
-{
- /** @var $subject string The email subject */
- private $subject;
-
- /**
- * Optional constructor
- *
- * @param string|null $subject The email subject
- */
- public function __construct($subject = null)
- {
- if (isset($subject)) {
- $this->setSubject($subject);
- }
- }
-
- /**
- * Set the subject on a Subject object
- *
- * @param string $subject The email subject
- *
- * @throws TypeException
- */
- public function setSubject($subject)
- {
- if (!is_string($subject)) {
- throw new TypeException('$subject must be of type string.');
- }
-
- $this->subject = $subject;
- }
-
- /**
- * Retrieve the subject from a Subject object
- *
- * @return string
- */
- public function getSubject()
- {
- return mb_convert_encoding($this->subject, 'UTF-8', 'UTF-8');
- }
-
- /**
- * Return an array representing a Subject object for the Twilio SendGrid API
- *
- * @return string
- */
- public function jsonSerialize()
- {
- return $this->getSubject();
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SubscriptionTracking.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SubscriptionTracking.php
deleted file mode 100644
index 87fb15a..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/SubscriptionTracking.php
+++ /dev/null
@@ -1,228 +0,0 @@
-<?php
-/**
- * This helper builds the SubscriptionTracking object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a SubscriptionTracking object for
- * the /mail/send API call
- *
- * Allows you to insert a subscription management link at the bottom
- * of the text and html bodies of your email. If you would like to
- * specify the location of the link within your email, you may use
- * the substitution_tag
- *
- * @package SendGrid\Mail
- */
-class SubscriptionTracking implements \JsonSerializable
-{
- /** @var $enable bool Indicates if this setting is enabled */
- private $enable;
- /**
- * @var $text string Text to be appended to the email, with the
- * subscription tracking link. You may control where the
- * link is by using the tag <% %>
- */
- private $text;
- /**
- * @var $htmlstring string to be appended to the email, with the
- * subscription tracking link. You may control where the
- * link is by using the tag <% %>
- */
- private $html;
- /**
- * @var $substitution_tag string A tag that will be replaced with the
- * unsubscribe URL. for example: [unsubscribe_url]. If
- * this parameter is used, it will override both the text
- * and html parameters. The URL of the link will be placed
- * at the substitution tag’s location, with no additional
- * formatting
- */
- private $substitution_tag;
-
- /**
- * Optional constructor
- *
- * @param bool|null $enable Indicates if this setting is enabled
- * @param string|null $text Text to be appended to the email, with
- * the subscription tracking link. You may
- * control where the link is by using the
- * tag <% %>
- * @param string|null $html HTML to be appended to the email, with
- * the subscription tracking link. You may
- * control where the link is by using the
- * tag <% %>
- * @param string|null $substitution_tag A tag that will be replaced with the
- * unsubscribe URL. For example:
- * [unsubscribe_url]. If this parameter
- * is used, it will override both the text
- * and html parameters. The URL of the link
- * will be placed at the substitution tag’s
- * location, with no additional formatting
- */
- public function __construct(
- $enable = null,
- $text = null,
- $html = null,
- $substitution_tag = null
- ) {
- if (isset($enable)) {
- $this->setEnable($enable);
- }
- if (isset($text)) {
- $this->setText($text);
- }
- if (isset($html)) {
- $this->setHtml($html);
- }
- if (isset($substitution_tag)) {
- $this->setSubstitutionTag($substitution_tag);
- }
- }
-
- /**
- * Update the enable setting on a SubscriptionTracking object
- *
- * @param bool $enable Indicates if this setting is enabled
- *
- * @throws TypeException
- */
- public function setEnable($enable)
- {
- if (!is_bool($enable)) {
- throw new TypeException('$enable must be of type bool.');
- }
- $this->enable = $enable;
- }
-
- /**
- * Retrieve the enable setting from a SubscriptionTracking object
- *
- * @return bool
- */
- public function getEnable()
- {
- return $this->enable;
- }
-
- /**
- * Add text to a SubscriptionTracking object
- *
- * @param string $text Text to be appended to the email, with
- * the subscription tracking link. You may
- * control where the link is by using the
- * tag <% %>
- *
- * @throws TypeException
- */
- public function setText($text)
- {
- if (!is_string($text)) {
- throw new TypeException('$text must be of type string.');
- }
- $this->text = $text;
- }
-
- /**
- * Retrieve text from a SubscriptionTracking object
- *
- * @return string
- */
- public function getText()
- {
- return $this->text;
- }
-
- /**
- * Add HTML to a SubscriptionTracking object
- *
- * @param string $html HTML to be appended to the email, with
- * the subscription tracking link. You may
- * control where the link is by using the
- * tag <% %>
- *
- * @throws TypeException
- */
- public function setHtml($html)
- {
- if (!is_string($html)) {
- throw new TypeException('$html must be of type string.');
- }
- $this->html = $html;
- }
-
- /**
- * Retrieve HTML from a SubscriptionTracking object
- *
- * @return string
- */
- public function getHtml()
- {
- return $this->html;
- }
-
- /**
- * Add a substitution tag to a SubscriptionTracking object
- *
- * @param string $substitution_tag A tag that will be replaced with the
- * unsubscribe URL. for example:
- * [unsubscribe_url]. If this parameter
- * is used, it will override both the text
- * and html parameters. The URL of the link
- * will be placed at the substitution tag’s
- * location, with no additional formatting %>
- *
- * @throws TypeException
- */
- public function setSubstitutionTag($substitution_tag)
- {
- if (!is_string($substitution_tag)) {
- throw new TypeException(
- '$substitution_tag must be of type string.'
- );
- }
- $this->substitution_tag = $substitution_tag;
- }
-
- /**
- * Retrieve a substitution tag from a SubscriptionTracking object
- *
- * @return string
- */
- public function getSubstitutionTag()
- {
- return $this->substitution_tag;
- }
-
- /**
- * Return an array representing a SubscriptionTracking object
- * for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'enable' => $this->getEnable(),
- 'text' => $this->getText(),
- 'html' => $this->getHtml(),
- 'substitution_tag' => $this->getSubstitutionTag()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Substitution.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Substitution.php
deleted file mode 100644
index c18e080..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/Substitution.php
+++ /dev/null
@@ -1,120 +0,0 @@
-<?php
-/**
- * This helper builds the Substitution object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a Substitution object for the /mail/send API call
- *
- * A collection of key/value pairs following the pattern "substitution_tag":"value
- * to substitute". All are assumed to be strings. These substitutions will apply
- * to the text and html content of the body of your email, in addition to the
- * subject and reply-to parameters. The total collective size of your substitutions
- * may not exceed 10,000 bytes per personalization object
- *
- * @package SendGrid\Mail
- */
-class Substitution implements \JsonSerializable
-{
- /** @var $key string Substitution key */
- private $key;
- /** @var $value string Substitution value */
- private $value;
-
- /**
- * Optional constructor
- *
- * @param string|null $key Substitution key
- * @param string|null $value Substitution value
- */
- public function __construct($key = null, $value = null)
- {
- if (isset($key)) {
- $this->setKey($key);
- }
- if (isset($value)) {
- $this->setValue($value);
- }
- }
-
- /**
- * Add the key on a Substitution object
- *
- * @param string $key Substitution key
- *
- * @throws TypeException
- * @return null
- */
- public function setKey($key)
- {
- if (!is_string($key)) {
- throw new TypeException('$key must be of type string.');
- }
- $this->key = (string) $key;
- }
-
- /**
- * Retrieve the key from a Substitution object
- *
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Add the value on a Substitution object
- *
- * @param string|array|bool|int $value Substitution value
- *
- * @throws TypeException
- * @return null
- */
- public function setValue($value)
- {
- if (!is_string($value) && !is_array($value) && !is_object($value) &&!is_bool($value) &&!is_int($value)) {
- throw new TypeException('$value must be of type string, array or object.');
- }
- $this->value = $value;
- }
-
- /**
- * Retrieve the value from a Substitution object
- *
- * @return string
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * Return an array representing a Substitution object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'key' => $this->getKey(),
- 'value' => $this->getValue()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TemplateId.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TemplateId.php
deleted file mode 100644
index 890de3f..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TemplateId.php
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-/**
- * This helper builds the TemplateId object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a TemplateId object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class TemplateId implements \JsonSerializable
-{
- /**
- * @var $template_id string The id of a template that you would like to use. If you use a
- * template that contains a subject and content (either text or html), you do
- * not need to specify those at the personalizations nor message level
- */
- private $template_id;
-
- /**
- * Optional constructor
- *
- * @param string|null $template_id The id of a template that you would like
- * to use. If you use a template that contains
- * a subject and content (either text or html),
- * you do not need to specify those at the
- * personalizations nor message level
- */
- public function __construct($template_id = null)
- {
- if (isset($template_id)) {
- $this->setTemplateId($template_id);
- }
- }
-
- /**
- * Add a template id to a TemplateId object
- *
- * @param string $template_id The id of a template that you would like
- * to use. If you use a template that contains
- * a subject and content (either text or html),
- * you do not need to specify those at the
- * personalizations nor message level
- *
- * @throws TypeException
- */
- public function setTemplateId($template_id)
- {
- if (!is_string($template_id)) {
- throw new TypeException('$template_id must be of type string.');
- }
-
- $this->template_id = $template_id;
- }
-
- /**
- * Retrieve a template id from a TemplateId object
- *
- * @return string
- */
- public function getTemplateId()
- {
- return $this->template_id;
- }
-
- /**
- * Return an array representing a TemplateId object for the Twilio SendGrid API
- *
- * @return string
- */
- public function jsonSerialize()
- {
- return $this->getTemplateId();
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/To.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/To.php
deleted file mode 100644
index d9e3537..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/To.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * This helper builds the To object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a To object for the /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class To extends EmailAddress implements \JsonSerializable
-{
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TrackingSettings.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TrackingSettings.php
deleted file mode 100644
index 271ec06..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TrackingSettings.php
+++ /dev/null
@@ -1,252 +0,0 @@
-<?php
-/**
- * This helper builds the TrackingSettings object for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Mail;
-
-/**
- * This class is used to construct a TrackingSettings object for the
- * /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class TrackingSettings implements \JsonSerializable
-{
- /** @var $click_tracking ClickTracking object */
- private $click_tracking;
- /** @var $open_tracking OpenTracking object */
- private $open_tracking;
- /** @var $subscription_tracking SubscriptionTracking object */
- private $subscription_tracking;
- /** @var $ganalytics Ganalytics object */
- private $ganalytics;
-
- /**
- * Optional constructor
- *
- * @param ClickTracking|null $click_tracking ClickTracking object
- * @param OpenTracking|null $open_tracking OpenTracking object
- * @param SubscriptionTracking|null $subscription_tracking SubscriptionTracking
- * object
- * @param Ganalytics|null $ganalytics Ganalytics object
- */
- public function __construct(
- $click_tracking = null,
- $open_tracking = null,
- $subscription_tracking = null,
- $ganalytics = null
- )
- {
- if (isset($click_tracking)) {
- $this->setClickTracking($click_tracking);
- }
- if (isset($open_tracking)) {
- $this->setOpenTracking($open_tracking);
- }
- if (isset($subscription_tracking)) {
- $this->setSubscriptionTracking($subscription_tracking);
- }
- if (isset($ganalytics)) {
- $this->setGanalytics($ganalytics);
- }
- }
-
- /**
- * Set the click tracking settings on a TrackingSettings object
- *
- * @param ClickTracking|bool $enable The ClickTracking object or an
- * indication if the setting is enabled
- * @param bool|null $enable_text Indicates if this setting should be
- * included in the text/plain portion of
- * your email
- */
- public function setClickTracking($enable, $enable_text = null)
- {
- if ($enable instanceof ClickTracking) {
- $click_tracking = $enable;
- $this->click_tracking = $click_tracking;
- return;
- }
- $this->click_tracking = new ClickTracking($enable, $enable_text);
- }
-
- /**
- * Retrieve the click tracking settings from a TrackingSettings object
- *
- * @return ClickTracking
- */
- public function getClickTracking()
- {
- return $this->click_tracking;
- }
-
- /**
- * Set the open tracking settings on a TrackingSettings object
- *
- * @param OpenTracking|bool $enable The ClickTracking object or an
- * indication if the setting is
- * enabled
- * @param string|null $substitution_tag Allows you to specify a
- * substitution tag that you can
- * insert in the body of your email
- * at a location that you desire.
- * This tag will be replaced by
- * the open tracking pixelail
- *
- * @return null
- */
- public function setOpenTracking($enable, $substitution_tag = null)
- {
- if ($enable instanceof OpenTracking) {
- $open_tracking = $enable;
- $this->open_tracking = $open_tracking;
- return;
- }
- $this->open_tracking = new OpenTracking($enable, $substitution_tag);
- return;
- }
-
- /**
- * Retrieve the open tracking settings on a TrackingSettings object
- *
- * @return OpenTracking
- */
- public function getOpenTracking()
- {
- return $this->open_tracking;
- }
-
- /**
- * Set the subscription tracking settings on a TrackingSettings object
- *
- * @param SubscriptionTracking|bool $enable The SubscriptionTracking
- * object or an indication
- * if the setting is enabled
- * @param string|null $text Text to be appended to the
- * email, with the
- * subscription tracking
- * link. You may control
- * where the link is by using
- * the tag <% %>
- * @param string|null $html HTML to be appended to the
- * email, with the
- * subscription tracking
- * link. You may control
- * where the link is by using
- * the tag <% %>
- * @param string|null $substitution_tag A tag that will be
- * replaced with the
- * unsubscribe URL. For
- * example:
- * [unsubscribe_url]. If this
- * parameter is used, it will
- * override both the text
- * and html parameters. The
- * URL of the link will be
- * placed at the substitution
- * tag’s location, with no
- * additional formatting
- */
- public function setSubscriptionTracking(
- $enable,
- $text = null,
- $html = null,
- $substitution_tag = null
- ) {
- if ($enable instanceof SubscriptionTracking) {
- $subscription_tracking = $enable;
- $this->subscription_tracking = $subscription_tracking;
- return;
- }
- $this->subscription_tracking
- = new SubscriptionTracking($enable, $text, $html, $substitution_tag);
- }
-
- /**
- * Retrieve the subscription tracking settings from a TrackingSettings object
- *
- * @return SubscriptionTracking
- */
- public function getSubscriptionTracking()
- {
- return $this->subscription_tracking;
- }
-
- /**
- * Set the Google analytics settings on a TrackingSettings object
- *
- * @param Ganalytics|bool $enable The Ganalytics object or an indication
- * if the setting is enabled
- * @param string|null $utm_source Name of the referrer source. (e.g.
- * Google, SomeDomain.com, or
- * Marketing Email)
- * @param string|null $utm_medium Name of the marketing medium. (e.g.
- * Email)
- * @param string|null $utm_term Used to identify any paid keywords
- * @param string|null $utm_content Used to differentiate your campaign from
- * advertisements
- * @param string|null $utm_campaign The name of the campaign
- */
- public function setGanalytics(
- $enable,
- $utm_source = null,
- $utm_medium = null,
- $utm_term = null,
- $utm_content = null,
- $utm_campaign = null
- ) {
- if ($enable instanceof Ganalytics) {
- $ganalytics = $enable;
- $this->ganalytics = $ganalytics;
- return;
- }
- $this->ganalytics = new Ganalytics(
- $enable,
- $utm_source,
- $utm_medium,
- $utm_term,
- $utm_content,
- $utm_campaign
- );
- }
-
- /**
- * Retrieve the Google analytics settings from a TrackingSettings object
- *
- * @return Ganalytics
- */
- public function getGanalytics()
- {
- return $this->ganalytics;
- }
-
- /**
- * Return an array representing a TrackingSettings object for the Twilio SendGrid API
- *
- * @return null|array
- */
- public function jsonSerialize()
- {
- return array_filter(
- [
- 'click_tracking' => $this->getClickTracking(),
- 'open_tracking' => $this->getOpenTracking(),
- 'subscription_tracking' => $this->getSubscriptionTracking(),
- 'ganalytics' => $this->getGanalytics()
- ],
- function ($value) {
- return $value !== null;
- }
- ) ?: null;
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TypeException.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TypeException.php
deleted file mode 100644
index 980b60f..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/mail/TypeException.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-namespace SendGrid\Mail;
-
-class TypeException extends \Exception
-{
-
-} \ No newline at end of file
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/stats/Stats.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/stats/Stats.php
deleted file mode 100644
index 39ae0ad..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/lib/stats/Stats.php
+++ /dev/null
@@ -1,269 +0,0 @@
-<?php
-/**
- * This helper retrieves stats from a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Mail
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-namespace SendGrid\Stats;
-
-/**
- * This class is used to retrieve stats from a /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class Stats
-{
- const DATE_FORMAT = 'Y-m-d';
- const OPTIONS_SORT_DIRECTION = ['asc', 'desc'];
- const OPTIONS_AGGREGATED_BY = ['day', 'week', 'month'];
-
- // @var string
- private $startDate;
-
- // @var string
- private $endDate;
-
- // @var string
- private $aggregatedBy;
-
- /**
- * Stats constructor
- *
- * @param string $startDate YYYYMMDD
- * @param string $endDate YYYYMMDD
- * @param string $aggregatedBy day|week|month
- */
- public function __construct($startDate, $endDate = null, $aggregatedBy = null)
- {
- $this->validateDateFormat($startDate);
- if (null !== $endDate) {
- $this->validateDateFormat($endDate);
- }
- if (null !== $aggregatedBy) {
- $this->validateOptions(
- 'aggregatedBy',
- $aggregatedBy,
- self::OPTIONS_AGGREGATED_BY
- );
- }
- $this->startDate = $startDate;
- $this->endDate = $endDate;
- $this->aggregatedBy = $aggregatedBy;
- }
-
- /**
- * Retrieve global stats parameters, start date, end date and
- * aggregated by
- *
- * @return array
- */
- public function getGlobal()
- {
- return [
- 'start_date' => $this->startDate,
- 'end_date' => $this->endDate,
- 'aggregated_by' => $this->aggregatedBy
- ];
- }
-
- /**
- * Retrieve an array of categories
- *
- * @param array $categories
- *
- * @return array
- * @throws \Exception
- */
- public function getCategory($categories)
- {
- $this->validateNumericArray('categories', $categories);
- $stats = $this->getGlobal();
- $stats['categories'] = $categories;
- return $stats;
- }
-
- /**
- * Retrieve global stats parameters, start date, end date and
- * aggregated for the given set of subusers
- *
- * @param array $subusers Subuser accounts
- *
- * @return array
- * @throws \Exception
- */
- public function getSubuser($subusers)
- {
- $this->validateNumericArray('subusers', $subusers);
- $stats = $this->getGlobal();
- $stats['subusers'] = $subusers;
- return $stats;
- }
-
- /**
- * Retrieve global stats parameters, start date, end date,
- * aggregated by, sort by metric, sort by direction, limit
- * and offset
- *
- * @param string $sortByMetric blocks|bounce_drops|bounces|
- * clicks|deferred|delivered|
- * invalid_emails|opens|processed|
- * requests|spam_report_drops|
- * spam_reports|unique_clicks|
- * unique_opens|unsubscribe_drops|
- * unsubsribes
- * @param string $sortByDirection asc|desc
- * @param integer $limit The number of results to return
- * @param integer $offset The point in the list to begin
- * retrieving results
- *
- * @return array
- * @throws \Exception
- */
- public function getSum(
- $sortByMetric = 'delivered',
- $sortByDirection = 'desc',
- $limit = 5, $offset = 0
- ) {
- $this->validateOptions(
- 'sortByDirection',
- $sortByDirection,
- self::OPTIONS_SORT_DIRECTION
- );
- $this->validateInteger('limit', $limit);
- $this->validateInteger('offset', $offset);
- $stats = $this->getGlobal();
- $stats['sort_by_metric'] = $sortByMetric;
- $stats['sort_by_direction'] = $sortByDirection;
- $stats['limit'] = $limit;
- $stats['offset'] = $offset;
- return $stats;
- }
-
- /**
- * Retrieve monthly stats by subuser
- *
- * @param string $subuser Subuser account
- * @param string $sortByMetric blocks|bounce_drops|bounces|
- * clicks|deferred|delivered|
- * invalid_emails|opens|processed|
- * requests|spam_report_drops|
- * spam_reports|unique_clicks|
- * unique_opens|unsubscribe_drops|
- * unsubsribes
- * @param string $sortByDirection asc|desc
- * @param integer $limit The number of results to return
- * @param integer $offset The point in the list to begin
- * retrieving results
- *
- * @return array
- * @throws \Exception
- */
- public function getSubuserMonthly(
- $subuser = null,
- $sortByMetric = 'delivered',
- $sortByDirection = 'desc',
- $limit = 5,
- $offset = 0
- ) {
- $this->validateOptions(
- 'sortByDirection',
- $sortByDirection,
- self::OPTIONS_SORT_DIRECTION
- );
- $this->validateInteger('limit', $limit);
- $this->validateInteger('offset', $offset);
- return [
- 'date' => $this->startDate,
- 'subuser' => $subuser,
- 'sort_by_metric' => $sortByMetric,
- 'sort_by_direction' => $sortByDirection,
- 'limit' => $limit,
- 'offset' => $offset
- ];
- }
-
- /**
- * Validate the date format
- *
- * @param string $date YYYY-MM-DD
- *
- * @return null
- * @throws \Exception
- */
- protected function validateDateFormat($date)
- {
- if (false === \DateTime::createFromFormat(self::DATE_FORMAT, $date)) {
- throw new \Exception('Date must be in the YYYY-MM-DD format.');
- }
- }
-
- /**
- * Validate options
- *
- * @param string $name Name of option
- * @param string $value Value of option
- * @param array $options Array of options
- *
- * @return null
- * @throws \Exception
- */
- protected function validateOptions($name, $value, $options)
- {
- if (!in_array($value, $options)) {
- throw new \Exception(
- $name . ' must be one of: ' . implode(', ', $options)
- );
- }
- }
-
- /**
- * Validate integer
- *
- * @param string $name Name as a string
- * @param integer $value Value as an integer
- *
- * @return null
- * @throws \Exception
- */
- protected function validateInteger($name, $value)
- {
- if (!is_integer($value)) {
- throw new \Exception($name . ' must be an integer.');
- }
- }
-
- /**
- * Validate a numeric array
- *
- * @param string $name Name as a string
- * @param array $value Value as an array of integers
- *
- * @return null
- * @throws \Exception
- */
- protected function validateNumericArray($name, $value)
- {
- if (!is_array($value) || empty($value) || !$this->isNumeric($value)) {
- throw new \Exception($name . ' must be a non-empty numeric array.');
- }
- }
-
- /**
- * Determine if the array is numeric
- *
- * @param array $array Array of values
- *
- * @return bool
- */
- protected function isNumeric(array $array)
- {
- return array_keys($array) == range(0, count($array) - 1);
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/phpcs.xml b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/phpcs.xml
deleted file mode 100644
index f646392..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/phpcs.xml
+++ /dev/null
@@ -1,196 +0,0 @@
-<?xml version="1.0"?>
-<ruleset name="PSR2">
- <description>The PSR-2 coding standard.</description>
- <arg name="tab-width" value="4"/>
-
- <!-- 2. General -->
-
- <!-- 2.1 Basic Coding Standard -->
-
- <!-- Include the whole PSR-1 standard -->
- <rule ref="PSR1"/>
-
- <!-- 2.2 Files -->
-
- <!-- All PHP files MUST use the Unix LF (linefeed) line ending. -->
- <rule ref="Generic.Files.LineEndings">
- <properties>
- <property name="eolChar" value="\n"/>
- </properties>
- </rule>
-
- <!-- All PHP files MUST end with a single blank line. -->
- <!-- checked in Files/EndFileNewlineSniff -->
-
- <!-- The closing ?> tag MUST be omitted from files containing only PHP. -->
- <!-- checked in Files/ClosingTagSniff -->
-
- <!-- 2.3 Lines -->
-
- <!-- The soft limit on line length MUST be 120 characters; automated style checkers MUST warn but MUST NOT error at the soft limit. -->
- <rule ref="Generic.Files.LineLength">
- <properties>
- <property name="lineLimit" value="120"/>
- <property name="absoluteLineLimit" value="0"/>
- </properties>
- </rule>
-
- <!-- There MUST NOT be trailing whitespace at the end of non-blank lines. -->
- <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile">
- <severity>0</severity>
- </rule>
- <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndFile">
- <severity>0</severity>
- </rule>
- <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines">
- <severity>0</severity>
- </rule>
-
- <!-- There MUST NOT be more than one statement per line. -->
- <rule ref="Generic.Formatting.DisallowMultipleStatements"/>
-
- <!-- 2.4 Indenting -->
-
- <!-- Code MUST use an indent of 4 spaces, and MUST NOT use tabs for indenting. -->
- <rule ref="Generic.WhiteSpace.ScopeIndent">
- <properties>
- <property name="ignoreIndentationTokens" type="array">
- <element value="T_COMMENT"/>
- <element value="T_DOC_COMMENT_OPEN_TAG"/>
- </property>
- </properties>
- </rule>
- <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
-
- <!-- 2.5 Keywords and True/False/Null -->
-
- <!-- PHP keywords MUST be in lower case. -->
- <rule ref="Generic.PHP.LowerCaseKeyword"/>
-
- <!-- The PHP constants true, false, and null MUST be in lower case. -->
- <rule ref="Generic.PHP.LowerCaseConstant"/>
-
- <!-- 3. Namespace and Use Declarations -->
-
- <!-- When present, there MUST be one blank line after the namespace declaration. -->
- <!-- checked in Namespaces/NamespaceDeclarationSniff -->
-
- <!-- When present, all use declarations MUST go after the namespace declaration.
- There MUST be one use keyword per declaration.
- There MUST be one blank line after the use block. -->
- <!-- checked in Namespaces/UseDeclarationSniff -->
-
- <!-- 4. Classes, Properties, and Methods -->
-
- <!-- 4.1. Extends and Implements -->
-
- <!-- The extends and implements keywords MUST be declared on the same line as the class name.
- The opening brace for the class go MUST go on its own line; the closing brace for the class MUST go on the next line after the body.
- Lists of implements MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one interface per line. -->
- <!-- checked in Classes/ClassDeclarationSniff -->
-
- <!-- 4.2. Properties -->
-
- <!-- Visibility MUST be declared on all properties.
- The var keyword MUST NOT be used to declare a property.
- There MUST NOT be more than one property declared per statement.
- Property names SHOULD NOT be prefixed with a single underscore to indicate protected or private visibility. -->
- <!-- checked in Classes/PropertyDeclarationSniff -->
-
- <!-- 4.3 Methods -->
-
- <!-- Visibility MUST be declared on all methods. -->
- <rule ref="Squiz.Scope.MethodScope"/>
- <rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing"/>
-
- <!-- Method names SHOULD NOT be prefixed with a single underscore to indicate protected or private visibility. -->
- <!-- checked in Methods/MethodDeclarationSniff -->
-
- <!-- Method names MUST NOT be declared with a space after the method name. The opening brace MUST go on its own line, and the closing brace MUST go on the next line following the body. There MUST NOT be a space after the opening parenthesis, and there MUST NOT be a space before the closing parenthesis. -->
- <!-- checked in Methods/FunctionClosingBraceSniff -->
- <rule ref="Squiz.Functions.FunctionDeclaration"/>
- <rule ref="Squiz.Functions.LowercaseFunctionKeywords"/>
-
- <!-- 4.4 Method Arguments -->
-
- <!-- In the argument list, there MUST NOT be a space before each comma, and there MUST be one space after each comma. -->
- <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
- <properties>
- <property name="equalsSpacing" value="1"/>
- </properties>
- </rule>
- <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint">
- <severity>0</severity>
- </rule>
-
- <!-- Method arguments with default values MUST go at the end of the argument list. -->
- <rule ref="PEAR.Functions.ValidDefaultValue"/>
-
- <!-- Argument lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument per line. When the argument list is split across multiple lines, the closing parenthesis and opening brace MUST be placed together on their own line with one space between them. -->
- <rule ref="Squiz.Functions.MultiLineFunctionDeclaration"/>
-
- <!-- 4.5 abstract, final, and static -->
-
- <!-- When present, the abstract and final declarations MUST precede the visibility declaration.
- When present, the static declaration MUST come after the visibility declaration. -->
- <!-- checked in Methods/MethodDeclarationSniff -->
-
- <!-- 4.6 Method and Function Calls -->
-
- <!-- When making a method or function call, there MUST NOT be a space between the method or function name and the opening parenthesis, there MUST NOT be a space after the opening parenthesis, and there MUST NOT be a space before the closing parenthesis. In the argument list, there MUST NOT be a space before each comma, and there MUST be one space after each comma.
- Argument lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument per line. -->
- <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
- <rule ref="PSR2.Methods.FunctionCallSignature.SpaceAfterCloseBracket">
- <severity>0</severity>
- </rule>
- <rule ref="PSR2.Methods.FunctionCallSignature.OpeningIndent">
- <severity>0</severity>
- </rule>
-
- <!-- 5. Control Structures -->
-
- <!-- The general style rules for control structures are as follows:
- There MUST be one space after the control structure keyword
- There MUST NOT be a space after the opening parenthesis
- There MUST NOT be a space before the closing parenthesis
- There MUST be one space between the closing parenthesis and the opening brace
- The structure body MUST be indented once
- The closing brace MUST be on the next line after the body -->
- <rule ref="Squiz.ControlStructures.ControlSignature"/>
- <rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen" />
- <rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose" />
- <rule ref="Squiz.WhiteSpace.ScopeClosingBrace"/>
- <rule ref="Squiz.ControlStructures.ForEachLoopDeclaration"/>
- <rule ref="Squiz.ControlStructures.ForLoopDeclaration"/>
- <rule ref="Squiz.ControlStructures.LowercaseDeclaration"/>
- <!-- checked in ControlStructures/ControlStructureSpacingSniff -->
-
- <!-- exclude this message as it is already checked Generic.PHP.LowerCaseKeyword -->
- <rule ref="Squiz.ControlStructures.ForEachLoopDeclaration.AsNotLower">
- <severity>0</severity>
- </rule>
-
- <!-- The body of each structure MUST be enclosed by braces. This standardizes how the structures look, and reduces the likelihood of introducing errors as new lines get added to the body. -->
- <rule ref="Generic.ControlStructures.InlineControlStructure"/>
-
- <!-- 5.1. if, elseif, else -->
-
- <!-- The keyword elseif SHOULD be used instead of else if so that all control keywords look like single words. -->
- <!-- checked in ControlStructures/ElseIfDeclarationSniff -->
-
- <!-- 5.2. switch, case -->
-
- <!-- The case statement MUST be indented once from switch, and the break keyword (or other terminating keyword) MUST be indented at the same level as the case body. There MUST be a comment such as // no break when fall-through is intentional in a non-empty case body. -->
- <!-- checked in ControlStructures/SwitchDeclarationSniff -->
-
- <!-- 6. Closures -->
-
- <!-- Closures MUST be declared with a space after the function keyword, and a space before and after the use keyword.
- The opening brace MUST go on the same line, and the closing brace MUST go on the next line following the body.
- There MUST NOT be a space after the opening parenthesis of the argument list or variable list, and there MUST NOT be a space before the closing parenthesis of the argument list or variable list.
- In the argument list and variable list, there MUST NOT be a space before each comma, and there MUST be one space after each comma.
- Closure arguments with default values MUST go at the end of the argument list.
- Argument lists and variable lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument or variable per line.
- When the ending list (whether or arguments or variables) is split across multiple lines, the closing parenthesis and opening brace MUST be placed together on their own line with one space between them. -->
- <!-- checked in Squiz.Functions.MultiLineFunctionDeclaration -->
-</ruleset> \ No newline at end of file
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/scripts/package.sh b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/scripts/package.sh
deleted file mode 100755
index 6d23743..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/scripts/package.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-rm -rf vendor composer.lock
-composer install --no-dev
-printf "<?php\nrequire __DIR__ . '/vendor/autoload.php';\n?>" > sendgrid-php.php
-cd ..
-zip -r sendgrid-php.zip sendgrid-php -x \*.git\* \*composer.json\* \*scripts\* \*test\* \*.travis.yml\* \*prism\*
-
-exit 0
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/sendgrid-php.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/sendgrid-php.php
deleted file mode 100644
index a17aebb..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/sendgrid-php.php
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-require __DIR__ . '/vendor/autoload.php';
-?> \ No newline at end of file
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/BaseTestClass.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/BaseTestClass.php
deleted file mode 100644
index a3fe54e..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/BaseTestClass.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-/**
- * This file contains the base class for testing the request object
- * generation for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-namespace SendGrid\Tests;
-
-use PHPUnit\Framework\TestCase;
-use Swaggest\JsonDiff\JsonDiff;
-use Swaggest\JsonDiff\JsonPatch;
-
-/**
- * This class facilitates testing the request object
- * generation for a /mail/send API call
- *
- * @package SendGrid\Mail
- */
-class BaseTestClass extends TestCase
-{
- // @var string Twilio SendGrid API Key
- protected static $apiKey;
- // @var SendGrid Twilio SendGrid client
- protected static $sg;
-
- /**
- * This method is run before the classes are initialised
- *
- * @return null
- */
- public static function setUpBeforeClass()
- {
- self::$apiKey = "SENDGRID_API_KEY";
- $host = ['host' => 'http://localhost:4010'];
- self::$sg = new \SendGrid(self::$apiKey, $host);
- }
-
- /**
- * Compares to JSON objects and returns True if equal,
- * else return array of differences
- *
- * @param string $json1 A string representation of a JSON object
- * @param string $json2 A string representation of a JSON object
- *
- * @return bool|array
- */
- public static function compareJSONObjects($json1, $json2)
- {
- $diff = new JsonDiff(
- json_decode($json1),
- json_decode($json2),
- JsonDiff::REARRANGE_ARRAYS
- );
- $patch = $diff->getPatch();
- $patch_array = JsonPatch::export($patch);
- if (empty($patch_array)) {
- return true;
- } else {
- return $patch_array;
- }
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/data/test.txt b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/data/test.txt
deleted file mode 100644
index ce01362..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/data/test.txt
+++ /dev/null
@@ -1 +0,0 @@
-hello
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Alerts/AlertsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Alerts/AlertsTest.php
deleted file mode 100644
index b330ee7..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Alerts/AlertsTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-namespace SendGrid\Tests;
-
-class AlertsTest extends BaseTestClass
-{
- public function testAlertsPostMethod()
- {
- $request_body = json_decode('{
- "email_to": "example@example.com",
- "frequency": "daily",
- "type": "stats_notification"
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->alerts()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testAlertsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->alerts()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAlertsIdPatchMethod()
- {
- $request_body = json_decode('{
- "email_to": "example@example.com"
-}');
- $alert_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->alerts()->_($alert_id)->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAlertsIdGetMethod()
- {
- $alert_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->alerts()->_($alert_id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAlertsIdDeleteMethod()
- {
- $alert_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->alerts()->_($alert_id)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/ApiKeys/ApiKeysTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/ApiKeys/ApiKeysTest.php
deleted file mode 100644
index 0602185..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/ApiKeys/ApiKeysTest.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\ApiKeys;
-
-use SendGrid\Tests\BaseTestClass;
-
-class ApiKeysTest extends BaseTestClass
-{
- public function testApiKeysPostMethod()
- {
- $request_body = json_decode('{
- "name": "My API Key",
- "sample": "data",
- "scopes": [
- "mail.send",
- "alerts.create",
- "alerts.read"
- ]
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->api_keys()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testApiKeysGetMethod()
- {
- $query_params = json_decode('{"limit": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->api_keys()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testApiKeysIdPutMethod()
- {
- $request_body = json_decode('{
- "name": "A New Hope",
- "scopes": [
- "user.profile.read",
- "user.profile.update"
- ]
-}');
- $api_key_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->api_keys()->_($api_key_id)->put($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testApiKeysIdPatchMethod()
- {
- $request_body = json_decode('{
- "name": "A New Hope"
-}');
- $api_key_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->api_keys()->_($api_key_id)->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testApiKeysIdGetMethod()
- {
- $api_key_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->api_keys()->_($api_key_id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testApiKeysIdDeleteMethod()
- {
- $api_key_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->api_keys()->_($api_key_id)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Asm/AsmGroupsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Asm/AsmGroupsTest.php
deleted file mode 100644
index b2887dc..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Asm/AsmGroupsTest.php
+++ /dev/null
@@ -1,105 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Asm;
-
-use SendGrid\Tests\BaseTestClass;
-
-class AsmGroupsTest extends BaseTestClass
-{
- public function testAsmGroupsPostMethod()
- {
- $request_body = json_decode('{
- "description": "Suggestions for products our users might like.",
- "is_default": true,
- "name": "Product Suggestions"
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->asm()->groups()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testAsmGroupsGetMethod()
- {
- $query_params = json_decode('{"id": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->asm()->groups()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAsmGroupsIdPatchMethod()
- {
- $request_body = json_decode('{
- "description": "Suggestions for items our users might like.",
- "id": 103,
- "name": "Item Suggestions"
-}');
- $group_id = "test_url_param";
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->asm()->groups()->_($group_id)->patch($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testAsmGroupsIdGetMethod()
- {
- $group_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->asm()->groups()->_($group_id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAsmGroupsIdDeleteMethod()
- {
- $group_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->asm()->groups()->_($group_id)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testAsmGroupsIdSuppressionPostMethod()
- {
- $request_body = json_decode('{
- "recipient_emails": [
- "test1@example.com",
- "test2@example.com"
- ]
-}');
- $group_id = "test_url_param";
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->asm()->groups()->_($group_id)->suppressions()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testAsmGroupsIdSuppressionGetMethod()
- {
- $group_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->asm()->groups()->_($group_id)->suppressions()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAsmGroupsIdSuppressionSearchPostMethod()
- {
- $request_body = json_decode('{
- "recipient_emails": [
- "exists1@example.com",
- "exists2@example.com",
- "doesnotexists@example.com"
- ]
-}');
- $group_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->asm()->groups()->_($group_id)->suppressions()->search()
- ->post($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAsmGroupsIdSuppressionEmailDeleteMethod()
- {
- $group_id = "test_url_param";
- $email = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->asm()->groups()->_($group_id)->suppressions()->_($email)
- ->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Asm/AsmSuppressionTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Asm/AsmSuppressionTest.php
deleted file mode 100644
index af96cc8..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Asm/AsmSuppressionTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Asm;
-
-use SendGrid\Tests\BaseTestClass;
-
-class AsmSuppressionTest extends BaseTestClass
-{
- public function testAsmSuppressionGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->asm()->suppressions()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAsmSuppressionGlobalPostMethod()
- {
- $request_body = json_decode('{
- "recipient_emails": [
- "test1@example.com",
- "test2@example.com"
- ]
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->asm()->suppressions()->global()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testAsmSuppressionGlobalEmailGetMethod()
- {
- $email = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->asm()->suppressions()->global()->_($email)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAsmSuppressionGlobalEmailDeleteMethod()
- {
- $email = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->asm()->suppressions()->global()->_($email)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testAsmSuppressionEmailGetMethod()
- {
- $email = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->asm()->suppressions()->_($email)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Campaigns/CampaignsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Campaigns/CampaignsTest.php
deleted file mode 100644
index 56df198..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Campaigns/CampaignsTest.php
+++ /dev/null
@@ -1,134 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Campaigns;
-
-use SendGrid\Tests\BaseTestClass;
-
-class CampaignsTest extends BaseTestClass
-{
- public function testCampaignsPostMethod()
- {
- $request_body = json_decode('{
- "categories": [
- "spring line"
- ],
- "custom_unsubscribe_url": "",
- "html_content": "<html><head><title></title></head><body><p>Check out our spring line!</p></body></html>",
- "ip_pool": "marketing",
- "list_ids": [
- 110,
- 124
- ],
- "plain_content": "Check out our spring line!",
- "segment_ids": [
- 110
- ],
- "sender_id": 124451,
- "subject": "New Products for Spring!",
- "suppression_group_id": 42,
- "title": "March Newsletter"
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->campaigns()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testCampaignsGetMethod()
- {
- $query_params = json_decode('{"limit": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->campaigns()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testCampaignsIdPatchMethod()
- {
- $request_body = json_decode('{
- "categories": [
- "summer line"
- ],
- "html_content": "<html><head><title></title></head><body><p>Check out our summer line!</p></body></html>",
- "plain_content": "Check out our summer line!",
- "subject": "New Products for Summer!",
- "title": "May Newsletter"
-}');
- $campaign_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->campaigns()->_($campaign_id)->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testCampaignsIdGetMethod()
- {
- $campaign_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->campaigns()->_($campaign_id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testCampaignsIdDeleteMethod()
- {
- $campaign_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->campaigns()->_($campaign_id)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testCampaignsIdSchedulesPatchMethod()
- {
- $request_body = json_decode('{
- "send_at": 1489451436
-}');
- $campaign_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->campaigns()->_($campaign_id)->schedules()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testCampaignsIdSchedulesPostMethod()
- {
- $request_body = json_decode('{
- "send_at": 1489771528
-}');
- $campaign_id = "test_url_param";
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->campaigns()->_($campaign_id)->schedules()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testCampaignsIdSchedulesGetMethod()
- {
- $campaign_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->campaigns()->_($campaign_id)->schedules()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testCampaignsIdSchedulesDeleteMethod()
- {
- $campaign_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->campaigns()->_($campaign_id)->schedules()->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testCampaignsIdSchedulesNowPostMethod()
- {
- $campaign_id = "test_url_param";
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->campaigns()->_($campaign_id)->schedules()->now()->post(null, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testCampaignsIdSchedulesTestPostMethod()
- {
- $request_body = json_decode('{
- "to": "your.email@example.com"
-}');
- $campaign_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->campaigns()->_($campaign_id)->schedules()->test()
- ->post($request_body, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Categories/CategoriesTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Categories/CategoriesTest.php
deleted file mode 100644
index 33442f4..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Categories/CategoriesTest.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Categories;
-
-use SendGrid\Tests\BaseTestClass;
-
-class CategoriesTest extends BaseTestClass
-{
- public function testCategoriesGetMethod()
- {
- $query_params = json_decode('{"category": "test_string", "limit": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->categories()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testCategoriesStatsGetMethod()
- {
- $query_params = json_decode('{"end_date": "2016-04-01", "aggregated_by": "day", "limit": 1, "offset": 1, "start_date": "2016-01-01", "categories": "test_string"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->categories()->stats()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testCategoriesStatsSumsGetMethod()
- {
- $query_params = json_decode('{"end_date": "2016-04-01", "aggregated_by": "day", "limit": 1, "sort_by_metric": "test_string", "offset": 1, "start_date": "2016-01-01", "sort_by_direction": "asc"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->categories()->stats()->sums()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Contacts/ContactDbTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Contacts/ContactDbTest.php
deleted file mode 100644
index c412950..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Contacts/ContactDbTest.php
+++ /dev/null
@@ -1,424 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Contacts;
-
-use SendGrid\Tests\BaseTestClass;
-
-class ContactDbTest extends BaseTestClass
-{
- public function testContactDbCustomFieldsPostMethod()
- {
- $request_body = json_decode('{
- "name": "pet",
- "type": "text"
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->contactdb()
- ->custom_fields()
- ->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testContactDbCustomFieldsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->custom_fields()
- ->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbCustomFieldsIdGetMethod()
- {
- $custom_field_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->custom_fields()
- ->_($custom_field_id)
- ->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbCustomFieldsIdDeleteMethod()
- {
- $custom_field_id = "test_url_param";
- $request_headers = ["X-Mock: 202"];
- $response = self::$sg->client->contactdb()
- ->custom_fields()
- ->_($custom_field_id)
- ->delete(null, null, $request_headers);
- $this->assertEquals(202, $response->statusCode());
- }
-
- public function testContactDbListsPostMethod()
- {
- $request_body = json_decode('{
- "name": "your list name"
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->contactdb()
- ->lists()
- ->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testContactDbListsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->lists()
- ->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbListsDeleteMethod()
- {
- $request_body = json_decode('[
- 1,
- 2,
- 3,
- 4
-]');
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->contactdb()
- ->lists()
- ->delete($request_body, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testContactDbListsIdPatchMethod()
- {
- $request_body = json_decode('{
- "name": "newlistname"
-}');
- $query_params = json_decode('{"list_id": 1}');
- $list_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->lists()
- ->_($list_id)
- ->patch($request_body, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbListsIdGetMethod()
- {
- $query_params = json_decode('{"list_id": 1}');
- $list_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->lists()
- ->_($list_id)
- ->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbListsIdDeleteMethod()
- {
- $query_params = json_decode('{"delete_contacts": "true"}');
- $list_id = "test_url_param";
- $request_headers = ["X-Mock: 202"];
- $response = self::$sg->client->contactdb()
- ->lists()
- ->_($list_id)
- ->delete(null, $query_params, $request_headers);
- $this->assertEquals(202, $response->statusCode());
- }
-
- public function testContactDbListsIdRecipientsPostMethod()
- {
- $request_body = json_decode('[
- "recipient_id1",
- "recipient_id2"
-]');
- $list_id = "test_url_param";
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->contactdb()
- ->lists()
- ->_($list_id)
- ->recipients()
- ->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testContactDbListsIdRecipientsGetMethod()
- {
- $query_params = json_decode('{"page": 1, "page_size": 1, "list_id": 1}');
- $list_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->lists()
- ->_($list_id)
- ->recipients()
- ->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbListsIdRecipientsIdPostMethod()
- {
- $list_id = "test_url_param";
- $recipient_id = "test_url_param";
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->contactdb()
- ->lists()
- ->_($list_id)
- ->recipients()
- ->_($recipient_id)
- ->post(null, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testContactDbListsIdRecipientsIdDeleteMethod()
- {
- $query_params = json_decode('{"recipient_id": 1, "list_id": 1}');
- $list_id = "test_url_param";
- $recipient_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->contactdb()
- ->lists()
- ->_($list_id)
- ->recipients()
- ->_($recipient_id)
- ->delete(null, $query_params, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testContactDbRecipientsPatchMethod()
- {
- $request_body = json_decode('[
- {
- "email": "jones@example.com",
- "first_name": "Guy",
- "last_name": "Jones"
- }
-]');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->contactdb()
- ->recipients()
- ->patch($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testContactDbRecipientsPostMethod()
- {
- $request_body = json_decode('[
- {
- "age": 25,
- "email": "example@example.com",
- "first_name": "",
- "last_name": "User"
- },
- {
- "age": 25,
- "email": "example2@example.com",
- "first_name": "Example",
- "last_name": "User"
- }
-]');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->contactdb()
- ->recipients()
- ->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testContactDbRecipientsGetMethod()
- {
- $query_params = json_decode('{"page": 1, "page_size": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->recipients()
- ->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbRecipientsDeleteMethod()
- {
- $request_body = json_decode('[
- "recipient_id1",
- "recipient_id2"
-]');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->recipients()
- ->delete($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbRecipientsBillableCountGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->recipients()
- ->billable_count()
- ->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbRecipientsCountMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->recipients()
- ->count()
- ->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbRecipientsSearchGetMethod()
- {
- $query_params = json_decode('{"{field_name}": "test_string"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->recipients()
- ->search()
- ->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbRecipientsIdGetMethod()
- {
- $recipient_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->recipients()
- ->_($recipient_id)
- ->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbRecipientsIdDeleteMethod()
- {
- $recipient_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->contactdb()
- ->recipients()
- ->_($recipient_id)
- ->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testContactDbRecipientsIdListsGetMethod()
- {
- $recipient_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->recipients()
- ->_($recipient_id)
- ->lists()
- ->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbReservedFieldsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->reserved_fields()
- ->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbSegmentsPostMethod()
- {
- $request_body = json_decode('{
- "conditions": [
- {
- "and_or": "",
- "field": "last_name",
- "operator": "eq",
- "value": "Miller"
- },
- {
- "and_or": "and",
- "field": "last_clicked",
- "operator": "gt",
- "value": "01/02/2015"
- },
- {
- "and_or": "or",
- "field": "clicks.campaign_identifier",
- "operator": "eq",
- "value": "513"
- }
- ],
- "list_id": 4,
- "name": "Last Name Miller"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->segments()
- ->post($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbSegmentsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->segments()
- ->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbSegmentsIdPatchMethod()
- {
- $request_body = json_decode('{
- "conditions": [
- {
- "and_or": "",
- "field": "last_name",
- "operator": "eq",
- "value": "Miller"
- }
- ],
- "list_id": 5,
- "name": "The Millers"
-}');
- $query_params = json_decode('{"segment_id": "test_string"}');
- $segment_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->segments()
- ->_($segment_id)
- ->patch($request_body, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbSegmentsIdGetMethod()
- {
- $query_params = json_decode('{"segment_id": 1}');
- $segment_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->segments()
- ->_($segment_id)
- ->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testContactDbSegmentsIdDeleteMethod()
- {
- $query_params = json_decode('{"delete_contacts": "true"}');
- $segment_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->contactdb()
- ->segments()
- ->_($segment_id)
- ->delete(null, $query_params, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testContactDbSegmentsIdRecipientsGetMethod()
- {
- $query_params = json_decode('{"page": 1, "page_size": 1}');
- $segment_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->contactdb()
- ->segments()
- ->_($segment_id)
- ->recipients()
- ->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpPoolsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpPoolsTest.php
deleted file mode 100644
index 17bb8e9..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpPoolsTest.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Ip;
-
-use SendGrid\Tests\BaseTestClass;
-
-class IpPoolsTest extends BaseTestClass
-{
- public function testIpPoolsPostMethod()
- {
- $request_body = json_decode('{
- "name": "marketing"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->ips()->pools()->post($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testIpPoolsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->ips()->pools()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testIpPoolsPoolNamePutMethod()
- {
- $request_body = json_decode('{
- "name": "new_pool_name"
-}');
- $pool_name = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->ips()->pools()->_($pool_name)->put($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testIpPoolsPoolNameGetMethod()
- {
- $pool_name = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->ips()->pools()->_($pool_name)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testIpPoolsPoolNameDeleteMethod()
- {
- $pool_name = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->ips()->pools()->_($pool_name)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testIpPoolsPoolNameIpsPostMethod()
- {
- $request_body = json_decode('{
- "ip": "0.0.0.0"
-}');
- $pool_name = "test_url_param";
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->ips()->pools()->_($pool_name)->ips()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testIpPoolsPoolNameIpsIdDeleteMethod()
- {
- $pool_name = "test_url_param";
- $ip = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->ips()->pools()->_($pool_name)->ips()->_($ip)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpsTest.php
deleted file mode 100644
index 345daeb..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpsTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Ip;
-
-use SendGrid\Tests\BaseTestClass;
-
-class IpsTest extends BaseTestClass
-{
- public function testIpsGetMethod()
- {
- $query_params = json_decode('{"subuser": "test_string", "ip": "test_string", "limit": 1, "exclude_whitelabels": "true", "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->ips()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testIpsAssignedGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->ips()->assigned()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testIpsIpAddressGetMethod()
- {
- $ip_address = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->ips()->_($ip_address)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpsWarmupTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpsWarmupTest.php
deleted file mode 100644
index 9e4945f..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Ip/IpsWarmupTest.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Ip;
-
-use SendGrid\Tests\BaseTestClass;
-
-class IpsWarmupTest extends BaseTestClass
-{
- public function testIpsWarmupGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->ips()->warmup()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testIpsWarmupPostMethod()
- {
- $request_body = json_decode('{
- "ip": "0.0.0.0"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->ips()->warmup()->post($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testIpsWarmupIpAddressGetMethod()
- {
- $ip_address = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->ips()->warmup()->_($ip_address)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testIpsWarmupIpAddressDeleteMethod()
- {
- $ip_address = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->ips()->warmup()->_($ip_address)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailBatchTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailBatchTest.php
deleted file mode 100644
index 506ced5..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailBatchTest.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Mail;
-
-use SendGrid\Tests\BaseTestClass;
-
-class MailBatchTest extends BaseTestClass
-{
- public function testMailBatchPostMethod()
- {
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->mail()->batch()->post(null, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testMailBatchIdGetMethod()
- {
- $batch_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail()->batch()->_($batch_id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailSendTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailSendTest.php
deleted file mode 100644
index 30e299a..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailSendTest.php
+++ /dev/null
@@ -1,153 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Mail;
-
-use SendGrid\Tests\BaseTestClass;
-
-class MailSendTest extends BaseTestClass
-{
- public function testMailSendPostMethod()
- {
- $request_body = json_decode('{
- "asm": {
- "group_id": 1,
- "groups_to_display": [
- 1,
- 2,
- 3
- ]
- },
- "attachments": [
- {
- "content": "[BASE64 encoded content block here]",
- "content_id": "ii_139db99fdb5c3704",
- "disposition": "inline",
- "filename": "file1.jpg",
- "name": "file1",
- "type": "jpg"
- }
- ],
- "batch_id": "[YOUR BATCH ID GOES HERE]",
- "categories": [
- "category1",
- "category2"
- ],
- "content": [
- {
- "type": "text/html",
- "value": "<html><p>Hello, world!</p><img src=[CID GOES HERE] /></html>"
- }
- ],
- "custom_args": {
- "New Argument 1": "New Value 1",
- "activationAttempt": "1",
- "customerAccountNumber": "[CUSTOMER ACCOUNT NUMBER GOES HERE]"
- },
- "from": {
- "email": "sam.smith@example.com",
- "name": "Sam Smith"
- },
- "headers": {},
- "ip_pool_name": "[YOUR POOL NAME GOES HERE]",
- "mail_settings": {
- "bcc": {
- "email": "ben.doe@example.com",
- "enable": true
- },
- "bypass_list_management": {
- "enable": true
- },
- "footer": {
- "enable": true,
- "html": "<p>Thanks</br>The Twilio SendGrid Team</p>",
- "text": "Thanks,/n The Twilio SendGrid Team"
- },
- "sandbox_mode": {
- "enable": false
- },
- "spam_check": {
- "enable": true,
- "post_to_url": "http://example.com/compliance",
- "threshold": 3
- }
- },
- "personalizations": [
- {
- "bcc": [
- {
- "email": "sam.doe@example.com",
- "name": "Sam Doe"
- }
- ],
- "cc": [
- {
- "email": "jane.doe@example.com",
- "name": "Jane Doe"
- }
- ],
- "custom_args": {
- "New Argument 1": "New Value 1",
- "activationAttempt": "1",
- "customerAccountNumber": "[CUSTOMER ACCOUNT NUMBER GOES HERE]"
- },
- "headers": {
- "X-Accept-Language": "en",
- "X-Mailer": "MyApp"
- },
- "send_at": 1409348513,
- "subject": "Hello, World!",
- "substitutions": {
- "id": "substitutions",
- "type": "object"
- },
- "to": [
- {
- "email": "john.doe@example.com",
- "name": "John Doe"
- }
- ]
- }
- ],
- "reply_to": {
- "email": "sam.smith@example.com",
- "name": "Sam Smith"
- },
- "sections": {
- "section": {
- ":sectionName1": "section 1 text",
- ":sectionName2": "section 2 text"
- }
- },
- "send_at": 1409348513,
- "subject": "Hello, World!",
- "template_id": "[YOUR TEMPLATE ID GOES HERE]",
- "tracking_settings": {
- "click_tracking": {
- "enable": true,
- "enable_text": true
- },
- "ganalytics": {
- "enable": true,
- "utm_campaign": "[NAME OF YOUR REFERRER SOURCE]",
- "utm_content": "[USE THIS SPACE TO DIFFERENTIATE YOUR EMAIL FROM ADS]",
- "utm_medium": "[NAME OF YOUR MARKETING MEDIUM e.g. email]",
- "utm_name": "[NAME OF YOUR CAMPAIGN]",
- "utm_term": "[IDENTIFY PAID KEYWORDS HERE]"
- },
- "open_tracking": {
- "enable": true,
- "substitution_tag": "%opentrack"
- },
- "subscription_tracking": {
- "enable": true,
- "html": "If you would like to unsubscribe and stop receiving these emails <% clickhere %>.",
- "substitution_tag": "<%click here%>",
- "text": "If you would like to unsubscribe and stop receiving these emails <% click here %>."
- }
- }
-}');
- $request_headers = ["X-Mock: 202"];
- $response = self::$sg->client->mail()->send()->post($request_body, null, $request_headers);
- $this->assertEquals(202, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailSettingsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailSettingsTest.php
deleted file mode 100644
index aa4065a..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailSettingsTest.php
+++ /dev/null
@@ -1,183 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Mail;
-
-use SendGrid\Tests\BaseTestClass;
-
-class MailSettingsTest extends BaseTestClass
-{
- public function testMailSettingsGetMethod()
- {
- $query_params = json_decode('{"limit": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsAddressWhitelistPatchMethod()
- {
- $request_body = json_decode('{
- "enabled": true,
- "list": [
- "email1@example.com",
- "example.com"
- ]
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->address_whitelist()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsAddressWhitelistGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->address_whitelist()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsBccPatchMethod()
- {
- $request_body = json_decode('{
- "email": "email@example.com",
- "enabled": false
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->bcc()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsBccGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->bcc()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsBouncePurgePatchMethod()
- {
- $request_body = json_decode('{
- "enabled": true,
- "hard_bounces": 5,
- "soft_bounces": 5
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->bounce_purge()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsBouncePurgeGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->bounce_purge()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsFooterPatchMethod()
- {
- $request_body = json_decode('{
- "enabled": true,
- "html_content": "...",
- "plain_content": "..."
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->footer()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsFooterGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->footer()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsForwardBouncePatchMethod()
- {
- $request_body = json_decode('{
- "email": "example@example.com",
- "enabled": true
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->forward_bounce()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsForwardBounceGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->forward_bounce()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsForwardSpamPatchMethod()
- {
- $request_body = json_decode('{
- "email": "",
- "enabled": false
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->forward_spam()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsForwardSpamGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->forward_spam()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsPlainContentPatchMethod()
- {
- $request_body = json_decode('{
- "enabled": false
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->plain_content()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsPlainContentGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->plain_content()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsSpamCheckPatchMethod()
- {
- $request_body = json_decode('{
- "enabled": true,
- "max_score": 5,
- "url": "url"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->spam_check()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsSpamCheckGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->spam_check()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsTemplatePatchMethod()
- {
- $request_body = json_decode('{
- "enabled": true,
- "html_content": "<% body %>"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->template()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testMailSettingsTemplateGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mail_settings()->template()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailboxProvidersTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailboxProvidersTest.php
deleted file mode 100644
index 8fba4d0..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Mail/MailboxProvidersTest.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Mail;
-
-use SendGrid\Tests\BaseTestClass;
-
-class MailboxProvidersTest extends BaseTestClass
-{
- public function testMailboxProvidersStatsGetMethod()
- {
- $query_params = json_decode('{"end_date": "2016-04-01", "mailbox_providers": "test_string", "aggregated_by": "day", "limit": 1, "offset": 1, "start_date": "2016-01-01"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->mailbox_providers()
- ->stats()
- ->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Scopes/ScopesTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Scopes/ScopesTest.php
deleted file mode 100644
index edeb675..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Scopes/ScopesTest.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Scopes;
-
-use SendGrid\Tests\BaseTestClass;
-
-class ScopesTest extends BaseTestClass
-{
- public function testScopesGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->scopes()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/DomainAuthenticationTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/DomainAuthenticationTest.php
deleted file mode 100644
index 8cd7437..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/DomainAuthenticationTest.php
+++ /dev/null
@@ -1,124 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Whitelabel;
-
-use SendGrid\Tests\BaseTestClass;
-
-class WhitelabelDomainsTest extends BaseTestClass
-{
- public function testWhitelabelDomainsPostMethod()
- {
- $request_body = json_decode('{
- "automatic_security": false,
- "custom_spf": true,
- "default": true,
- "domain": "example.com",
- "ips": [
- "192.168.1.1",
- "192.168.1.2"
- ],
- "subdomain": "news",
- "username": "john@example.com"
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->whitelabel()->domains()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testWhitelabelDomainsGetMethod()
- {
- $query_params = json_decode('{"username": "test_string", "domain": "test_string", "exclude_subusers": "true", "limit": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->domains()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelDomainsDefaultGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->domains()->default()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelDomainsSubUserGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->domains()->subuser()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelDomainsSubUserDeleteMethod()
- {
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->whitelabel()->domains()->subuser()->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testWhitelabelDomainsIdPatchMethod()
- {
- $request_body = json_decode('{
- "custom_spf": true,
- "default": false
-}');
- $domain_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->domains()->_($domain_id)->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelDomainsIdGetMethod()
- {
- $domain_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->domains()->_($domain_id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelDomainsIdDeleteMethod()
- {
- $domain_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->whitelabel()->domains()->_($domain_id)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testWhitelabelDomainsIdSubUserPostMethod()
- {
- $request_body = json_decode('{
- "username": "jane@example.com"
-}');
- $domain_id = "test_url_param";
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->whitelabel()->domains()->_($domain_id)->subuser()
- ->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testWhitelabelDomainsIdIpsPostMethod()
- {
- $request_body = json_decode('{
- "ip": "192.168.0.1"
-}');
- $id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->domains()->_($id)->ips()->post($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelDomainsIdIpsDeleteMethod()
- {
- $id = "test_url_param";
- $ip = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->domains()->_($id)->ips()->_($ip)->delete(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelDomainsIdValidatePostMethod()
- {
- $id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->domains()->_($id)->validate()->post(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/LinkBrandingTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/LinkBrandingTest.php
deleted file mode 100644
index 9493c8f..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/LinkBrandingTest.php
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Whitelabel;
-
-use SendGrid\Tests\BaseTestClass;
-
-class WhitelabelLinksTest extends BaseTestClass
-{
- public function testWhitelabelLinksPostMethod()
- {
- $request_body = json_decode('{
- "default": true,
- "domain": "example.com",
- "subdomain": "mail"
-}');
- $query_params = json_decode('{"limit": 1, "offset": 1}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->whitelabel()->links()->post($request_body, $query_params, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testWhitelabelLinksGetMethod()
- {
- $query_params = json_decode('{"limit": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->links()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelLinksDefaultGetMethod()
- {
- $query_params = json_decode('{"domain": "test_string"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->links()->default()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelLinksSubUserGetMethod()
- {
- $query_params = json_decode('{"username": "test_string"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->links()->subuser()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelLinksSubUserDeleteMethod()
- {
- $query_params = json_decode('{"username": "test_string"}');
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->whitelabel()->links()->subuser()->delete(null, $query_params, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testWhitelabelLinksIdPatchMethod()
- {
- $request_body = json_decode('{
- "default": true
-}');
- $id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->links()->_($id)->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelLinksIdGetMethod()
- {
- $id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->links()->_($id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelLinksIdDeleteMethod()
- {
- $id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->whitelabel()->links()->_($id)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testWhitelabelLinksIdValidatePostMethod()
- {
- $id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->links()->_($id)->validate()->post(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelLinksIdSubUserPostMethod()
- {
- $request_body = json_decode('{
- "username": "jane@example.com"
-}');
- $link_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->links()->_($link_id)->subuser()->post($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/ReverseDNSTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/ReverseDNSTest.php
deleted file mode 100644
index 96b2bd7..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/SenderAuthentication/ReverseDNSTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Whitelabel;
-
-use SendGrid\Tests\BaseTestClass;
-
-class WhitelabelIpsTest extends BaseTestClass
-{
- public function testWhitelabelIpsPostMethod()
- {
- $request_body = json_decode('{
- "domain": "example.com",
- "ip": "192.168.1.1",
- "subdomain": "email"
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->whitelabel()->ips()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testWhitelabelIpsGetMethod()
- {
- $query_params = json_decode('{"ip": "test_string", "limit": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->ips()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelIpsIdGetMethod()
- {
- $id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->ips()->_($id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testWhitelabelIpsIdDeleteMethod()
- {
- $id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->whitelabel()->ips()->_($id)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testWhitelabelIpsIdValidatePostMethod()
- {
- $id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->whitelabel()->ips()->_($id)->validate()->post(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Senders/SendersTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Senders/SendersTest.php
deleted file mode 100644
index 82471bd..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Senders/SendersTest.php
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Senders;
-
-use SendGrid\Tests\BaseTestClass;
-
-class SendersTest extends BaseTestClass
-{
- public function testSendersPostMethod()
- {
- $request_body = json_decode('{
- "address": "123 Elm St.",
- "address_2": "Apt. 456",
- "city": "Denver",
- "country": "United States",
- "from": {
- "email": "from@example.com",
- "name": "Example INC"
- },
- "nickname": "My Sender ID",
- "reply_to": {
- "email": "replyto@example.com",
- "name": "Example INC"
- },
- "state": "Colorado",
- "zip": "80202"
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->senders()
- ->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testSendersGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->senders()
- ->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSendersIdPatchMethod()
- {
- $request_body = json_decode('{
- "address": "123 Elm St.",
- "address_2": "Apt. 456",
- "city": "Denver",
- "country": "United States",
- "from": {
- "email": "from@example.com",
- "name": "Example INC"
- },
- "nickname": "My Sender ID",
- "reply_to": {
- "email": "replyto@example.com",
- "name": "Example INC"
- },
- "state": "Colorado",
- "zip": "80202"
-}');
- $sender_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->senders()
- ->_($sender_id)
- ->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSendersIdGetMethod()
- {
- $sender_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->senders()
- ->_($sender_id)
- ->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSendersIdDeleteMethod()
- {
- $sender_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->senders()
- ->_($sender_id)
- ->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testSendersIdResendVerificationPostMethod()
- {
- $sender_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->senders()
- ->_($sender_id)
- ->resend_verification()
- ->post(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/AccessSettingsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/AccessSettingsTest.php
deleted file mode 100644
index 576766a..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/AccessSettingsTest.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Settings;
-
-use SendGrid\Tests\BaseTestClass;
-
-class AccessSettingsTest extends BaseTestClass
-{
- public function testAccessSettingsActivityGetMethod()
- {
- $query_params = [
- 'limit' => 1
- ];
- $request_headers = ['X-Mock: 200'];
- $response = self::$sg->client->access_settings()->activity()->get(null, $query_params, $request_headers);
-
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAccessSettingsWhitelistPostMethod()
- {
- $request_body = json_decode('{
- "ips": [
- {
- "ip": "192.168.1.1"
- },
- {
- "ip": "192.*.*.*"
- },
- {
- "ip": "192.168.1.3/32"
- }
- ]
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->access_settings()->whitelist()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testAccessSettingsWhitelistGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->access_settings()->whitelist()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAccessSettingsWhitelistDeleteMethod()
- {
- $request_body = json_decode('{
- "ids": [
- 1,
- 2,
- 3
- ]
-}');
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->access_settings()->whitelist()->delete($request_body, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testAccessSettingsWhitelistRuleIdGetMethod()
- {
- $rule_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->access_settings()->whitelist()->_($rule_id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testAccessSettingsWhitelistRuleIdDeleteMethod()
- {
- $rule_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->access_settings()->whitelist()->_($rule_id)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/PartnerSettingsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/PartnerSettingsTest.php
deleted file mode 100644
index d4c525f..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/PartnerSettingsTest.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Settings;
-
-use SendGrid\Tests\BaseTestClass;
-
-class PartnerSettingsTest extends BaseTestClass
-{
- public function testPartnerSettingsGetMethod()
- {
- $query_params = json_decode('{"limit": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->partner_settings()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testPartnerSettingsNewRelicPatchMethod()
- {
- $request_body = json_decode('{
- "enable_subuser_statistics": true,
- "enabled": true,
- "license_key": ""
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->partner_settings()->new_relic()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testPartnerSettingsNewRelicGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->partner_settings()->new_relic()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/TrackingSettingsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/TrackingSettingsTest.php
deleted file mode 100644
index 07c41f0..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Settings/TrackingSettingsTest.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Settings;
-
-use SendGrid\Tests\BaseTestClass;
-
-class TrackingSettingsTest extends BaseTestClass
-{
- public function testTrackingSettingsGetMethod()
- {
- $query_params = json_decode('{"limit": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->tracking_settings()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTrackingSettingsClickPatchMethod()
- {
- $request_body = json_decode('{
- "enabled": true
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->tracking_settings()->click()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTrackingSettingsClickGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->tracking_settings()->click()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTrackingSettingsGoogleAnalyticsPatchMethod()
- {
- $request_body = json_decode('{
- "enabled": true,
- "utm_campaign": "website",
- "utm_content": "",
- "utm_medium": "email",
- "utm_source": "sendgrid.com",
- "utm_term": ""
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->tracking_settings()->google_analytics()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTrackingSettingsGoogleAnalyticsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->tracking_settings()->google_analytics()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTrackingSettingsOpenPatchMethod()
- {
- $request_body = json_decode('{
- "enabled": true
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->tracking_settings()->open()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTrackingSettingsOpenGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->tracking_settings()->open()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTrackingSettingsSubscriptionPatchMethod()
- {
- $request_body = json_decode('{
- "enabled": true,
- "html_content": "html content",
- "landing": "landing page html",
- "plain_content": "text content",
- "replace": "replacement tag",
- "url": "url"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->tracking_settings()->subscription()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTrackingSettingsSubscriptionGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->tracking_settings()->subscription()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/BrowserStatsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/BrowserStatsTest.php
deleted file mode 100644
index 685cfe0..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/BrowserStatsTest.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Stats;
-
-use SendGrid\Tests\BaseTestClass;
-
-class BrowserStatsTest extends BaseTestClass
-{
- public function testBrowserStatsGetMethod()
- {
- $query_params = json_decode('{"end_date": "2016-04-01", "aggregated_by": "day", "browsers": "test_string", "limit": "test_string", "offset": "test_string", "start_date": "2016-01-01"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->browsers()->stats()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/ClientsStatsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/ClientsStatsTest.php
deleted file mode 100644
index 633fd62..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/ClientsStatsTest.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Stats;
-
-use SendGrid\Tests\BaseTestClass;
-
-class ClientsStatsTest extends BaseTestClass
-{
- public function testClientsStatsGetMethod()
- {
- $query_params = json_decode('{"aggregated_by": "day", "start_date": "2016-01-01", "end_date": "2016-04-01"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->clients()->stats()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testClientsClientTypeStatsGetMethod()
- {
- $query_params = json_decode('{"aggregated_by": "day", "start_date": "2016-01-01", "end_date": "2016-04-01"}');
- $client_type = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->clients()->_($client_type)->stats()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/DevicesStatsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/DevicesStatsTest.php
deleted file mode 100644
index 08b6131..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/DevicesStatsTest.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Stats;
-
-use SendGrid\Tests\BaseTestClass;
-
-class DevicesStatsTest extends BaseTestClass
-{
- public function testDevicesStatsGetMethod()
- {
- $query_params = json_decode('{"aggregated_by": "day", "limit": 1, "start_date": "2016-01-01", "end_date": "2016-04-01", "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->devices()->stats()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/GeoStatsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/GeoStatsTest.php
deleted file mode 100644
index b006f93..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/GeoStatsTest.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Stats;
-
-use SendGrid\Tests\BaseTestClass;
-
-class GeoStatsTest extends BaseTestClass
-{
- public function testGeoStatsGetMethod()
- {
- $query_params = json_decode('{"end_date": "2016-04-01", "country": "US", "aggregated_by": "day", "limit": 1, "offset": 1, "start_date": "2016-01-01"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->geo()->stats()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/StatsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/StatsTest.php
deleted file mode 100644
index 3646122..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Stats/StatsTest.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Stats;
-
-use SendGrid\Tests\BaseTestClass;
-
-class StatsTest extends BaseTestClass
-{
- public function testStatsGetMethod()
- {
- $query_params = json_decode('{"aggregated_by": "day", "limit": 1, "start_date": "2016-01-01", "end_date": "2016-04-01", "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->stats()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Subusers/SubUsersTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Subusers/SubUsersTest.php
deleted file mode 100644
index 1774f90..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Subusers/SubUsersTest.php
+++ /dev/null
@@ -1,155 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Subusers;
-
-use SendGrid\Tests\BaseTestClass;
-
-class SubUsersTest extends BaseTestClass
-{
- public function testSubUsersGetMethod()
- {
- $query_params = json_decode('{"username": "test_string", "limit": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->subusers()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSubUsersPostMethod()
- {
- $request_body = json_decode('{
- "email": "John@example.com",
- "ips": [
- "1.1.1.1",
- "2.2.2.2"
- ],
- "password": "johns_password",
- "username": "John@example.com"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->subusers()->post($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSubUsersReputationGetMethod()
- {
- $query_params = json_decode('{"usernames": "test_string"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->subusers()->reputations()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSubUsersStatsGetMethod()
- {
- $query_params = json_decode('{"end_date": "2016-04-01", "aggregated_by": "day", "limit": 1, "offset": 1, "start_date": "2016-01-01", "subusers": "test_string"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->subusers()->stats()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSubUsersStatsMonthlyGetMethod()
- {
- $query_params = json_decode('{"subuser": "test_string", "limit": 1, "sort_by_metric": "test_string", "offset": 1, "date": "test_string", "sort_by_direction": "asc"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->subusers()->stats()->monthly()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSubUsersStatsSumsGetMethod()
- {
- $query_params = json_decode('{"end_date": "2016-04-01", "aggregated_by": "day", "limit": 1, "sort_by_metric": "test_string", "offset": 1, "start_date": "2016-01-01", "sort_by_direction": "asc"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->subusers()->stats()->sums()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSubUsersNamePatchMethod()
- {
- $request_body = json_decode('{
- "disabled": false
-}');
- $subuser_name = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->subusers()->_($subuser_name)->patch($request_body, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testSubUsersNameDeleteMethod()
- {
- $subuser_name = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->subusers()->_($subuser_name)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testSubUsersNameIpsPutMethod()
- {
- $request_body = json_decode('[
- "127.0.0.1"
-]');
- $subuser_name = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->subusers()->_($subuser_name)->ips()->put($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSubUsersNameMonitorPutMethod()
- {
- $request_body = json_decode('{
- "email": "example@example.com",
- "frequency": 500
-}');
- $subuser_name = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->subusers()->_($subuser_name)->monitor()->put(
- $request_body,
- null,
- $request_headers
- );
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSubUsersNameMonitorPostMethod()
- {
- $request_body = json_decode('{
- "email": "example@example.com",
- "frequency": 50000
-}');
- $subuser_name = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->subusers()->_($subuser_name)->monitor()->post(
- $request_body,
- null,
- $request_headers
- );
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSubUsersNameMonitorGetMethod()
- {
- $subuser_name = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->subusers()->_($subuser_name)->monitor()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSubUsersNameMonitorDeleteMethod()
- {
- $subuser_name = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->subusers()->_($subuser_name)->monitor()->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testSubUsersNameStatsMonthlyGetMethod()
- {
- $query_params = json_decode('{"date": "test_string", "sort_by_direction": "asc", "limit": 1, "sort_by_metric": "test_string", "offset": 1}');
- $subuser_name = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->subusers()->_($subuser_name)->stats()->monthly()->get(
- null,
- $query_params,
- $request_headers
- );
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionBlocksTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionBlocksTest.php
deleted file mode 100644
index e0c90e2..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionBlocksTest.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Suppression;
-
-use SendGrid\Tests\BaseTestClass;
-
-class SuppressionBlocksTest extends BaseTestClass
-{
- public function testSuppressionBlocksGetMethod()
- {
- $query_params = json_decode('{"start_time": 1, "limit": 1, "end_time": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->suppression()->blocks()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSuppressionBlocksDeleteMethod()
- {
- $request_body = json_decode('{
- "delete_all": false,
- "emails": [
- "example1@example.com",
- "example2@example.com"
- ]
-}');
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->suppression()->blocks()->delete($request_body, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testSuppressionBlocksEmailGetMethod()
- {
- $email = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->suppression()->blocks()->_($email)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSuppressionBlocksEmailDeleteMethod()
- {
- $email = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->suppression()->blocks()->_($email)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionBouncesTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionBouncesTest.php
deleted file mode 100644
index b440de3..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionBouncesTest.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Suppression;
-
-use SendGrid\Tests\BaseTestClass;
-
-class SuppressionBouncesTest extends BaseTestClass
-{
- public function testSuppressionBouncesGetMethod()
- {
- $query_params = json_decode('{"start_time": 1, "end_time": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->suppression()->bounces()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSuppressionBouncesDeleteMethod()
- {
- $request_body = json_decode('{
- "delete_all": true,
- "emails": [
- "example@example.com",
- "example2@example.com"
- ]
-}');
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->suppression()->bounces()->delete($request_body, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testSuppressionBouncesEmailGetMethod()
- {
- $email = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->suppression()->bounces()->_($email)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSuppressionBouncesEmailDeleteMethod()
- {
- $query_params = json_decode('{"email_address": "example@example.com"}');
- $email = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->suppression()->bounces()->_($email)->delete(null, $query_params, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionInvalidEmailsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionInvalidEmailsTest.php
deleted file mode 100644
index 040a21f..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionInvalidEmailsTest.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Suppression;
-
-use SendGrid\Tests\BaseTestClass;
-
-class SuppressionInvalidEmailsTest extends BaseTestClass
-{
- public function testSuppressionInvalidEmailsGetMethod()
- {
- $query_params = json_decode('{"start_time": 1, "limit": 1, "end_time": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->suppression()->invalid_emails()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSuppressionInvalidEmailsDeleteMethod()
- {
- $request_body = json_decode('{
- "delete_all": false,
- "emails": [
- "example1@example.com",
- "example2@example.com"
- ]
-}');
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->suppression()->invalid_emails()->delete($request_body, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testSuppressionInvalidEmailsEmailGetMethod()
- {
- $email = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->suppression()->invalid_emails()->_($email)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSuppressionBouncesEmailDeleteMethod()
- {
- $email = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->suppression()->invalid_emails()->_($email)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionSpamReportsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionSpamReportsTest.php
deleted file mode 100644
index fc640fe..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionSpamReportsTest.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Suppression;
-
-use SendGrid\Tests\BaseTestClass;
-
-class SuppressionSpamReportsTest extends BaseTestClass
-{
- public function testSuppressionSpamReportsGetMethod()
- {
- $query_params = json_decode('{"start_time": 1, "limit": 1, "end_time": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->suppression()->spam_reports()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSuppressionSpamReportsDeleteMethod()
- {
- $request_body = json_decode('{
- "delete_all": false,
- "emails": [
- "example1@example.com",
- "example2@example.com"
- ]
-}');
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->suppression()->spam_reports()->delete($request_body, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testSuppressionSpamReportsEmailGetMethod()
- {
- $email = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->suppression()->spam_reports()->_($email)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testSuppressionSpamReportsEmailDeleteMethod()
- {
- $email = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->suppression()->spam_reports()->_($email)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionUnsubscribesTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionUnsubscribesTest.php
deleted file mode 100644
index 0c20423..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Suppression/SuppressionUnsubscribesTest.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Suppression;
-
-use SendGrid\Tests\BaseTestClass;
-
-class SuppressionUnsubscribesTest extends BaseTestClass
-{
- public function testSuppressionUnsubscribesGetMethod()
- {
- $query_params = json_decode('{"start_time": 1, "limit": 1, "end_time": 1, "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->suppression()->unsubscribes()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Templates/TemplatesTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Templates/TemplatesTest.php
deleted file mode 100644
index 8dc71f0..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Templates/TemplatesTest.php
+++ /dev/null
@@ -1,114 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Templates;
-
-use SendGrid\Tests\BaseTestClass;
-
-class TemplatesTest extends BaseTestClass
-{
- public function testTemplatesPostMethod()
- {
- $request_body = json_decode('{
- "name": "example_name"
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->templates()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testTemplatesGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->templates()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTemplatesIdPatchMethod()
- {
- $request_body = json_decode('{
- "name": "new_example_name"
-}');
- $template_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->templates()->_($template_id)->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTemplatesIdGetMethod()
- {
- $template_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->templates()->_($template_id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTemplatesIdDeleteMethod()
- {
- $template_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->templates()->_($template_id)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testTemplatesIdVersionsPostMethod()
- {
- $request_body = json_decode('{
- "active": 1,
- "html_content": "<%body%>",
- "name": "example_version_name",
- "plain_content": "<%body%>",
- "subject": "<%subject%>",
- "template_id": "ddb96bbc-9b92-425e-8979-99464621b543"
-}');
- $template_id = "test_url_param";
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->templates()->_($template_id)->versions()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testTemplatesIdVersionsIdPatchMethod()
- {
- $request_body = json_decode('{
- "active": 1,
- "html_content": "<%body%>",
- "name": "updated_example_name",
- "plain_content": "<%body%>",
- "subject": "<%subject%>"
-}');
- $template_id = "test_url_param";
- $version_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->templates()->_($template_id)->versions()->_($version_id)
- ->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTemplatesIdVersionsIdGetMethod()
- {
- $template_id = "test_url_param";
- $version_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->templates()->_($template_id)->versions()->_($version_id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testTemplatesIdVersionsIdDeleteMethod()
- {
- $template_id = "test_url_param";
- $version_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->templates()->_($template_id)->versions()->_($version_id)
- ->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testTemplatesIdVersionsIdActivatePostMethod()
- {
- $template_id = "test_url_param";
- $version_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->templates()->_($template_id)->versions()->_($version_id)->activate()
- ->post(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Users/UserTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Users/UserTest.php
deleted file mode 100644
index 45f789e..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/Users/UserTest.php
+++ /dev/null
@@ -1,274 +0,0 @@
-<?php
-
-namespace SendGrid\Tests\Users;
-
-use SendGrid\Tests\BaseTestClass;
-
-class UserTest extends BaseTestClass
-{
- public function testUserMethod()
- {
- $query_params = json_decode('{"aggregated_by": "day", "limit": 1, "start_date": "2016-01-01", "end_date": "2016-04-01", "offset": 1}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->stats()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserAccountGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->account()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserCreditsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->credits()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserEmailPutMethod()
- {
- $request_body = json_decode('{
- "email": "example@example.com"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->email()->put($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserEmailGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->email()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserPasswordPutMethod()
- {
- $request_body = json_decode('{
- "new_password": "new_password",
- "old_password": "old_password"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->password()->put($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserProfilePatchMethod()
- {
- $request_body = json_decode('{
- "city": "Orange",
- "first_name": "Example",
- "last_name": "User"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->profile()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserProfileGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->profile()->get(null, null, $request_headers);
- $this->assertEquals($response->statusCode(), 200);
- }
-
- public function testUserScheduledSendsPostMethod()
- {
- $request_body = json_decode('{
- "batch_id": "YOUR_BATCH_ID",
- "status": "pause"
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->user()->scheduled_sends()->post($request_body, null, $request_headers);
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testUserScheduledSendsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->scheduled_sends()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserScheduledSendsBatchIdPatchMethod()
- {
- $request_body = json_decode('{
- "status": "pause"
-}');
- $batch_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->user()->scheduled_sends()->_($batch_id)->patch(
- $request_body,
- null,
- $request_headers
- );
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testUserScheduledSendsBatchIdGetMethod()
- {
- $batch_id = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->scheduled_sends()->_($batch_id)->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserScheduledSendsBatchIdDeleteMethod()
- {
- $batch_id = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->user()->scheduled_sends()->_($batch_id)->delete(null, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testUserSettingsEnforcedTlsPatchMethod()
- {
- $request_body = json_decode('{
- "require_tls": true,
- "require_valid_cert": false
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->settings()->enforced_tls()->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserSettingsEnforcedTlsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->settings()->enforced_tls()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserUsernamePutMethod()
- {
- $request_body = json_decode('{
- "username": "test_username"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->username()->put($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserUsernameGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->username()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserWebhooksEventSettingsPatchMethod()
- {
- $request_body = json_decode('{
- "bounce": true,
- "click": true,
- "deferred": true,
- "delivered": true,
- "dropped": true,
- "enabled": true,
- "group_resubscribe": true,
- "group_unsubscribe": true,
- "open": true,
- "processed": true,
- "spam_report": true,
- "unsubscribe": true,
- "url": "url"
-}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->webhooks()->event()->settings()->patch(
- $request_body,
- null,
- $request_headers
- );
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserWebhooksEventSettingsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->webhooks()->event()->settings()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserWebhooksEventTestPostMethod()
- {
- $request_body = json_decode('{
- "url": "url"
-}');
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->user()->webhooks()->event()->test()->post($request_body, null, $request_headers);
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testUserWebhooksParseSettingsPostMethod()
- {
- $request_body = json_decode('{
- "hostname": "myhostname.com",
- "send_raw": false,
- "spam_check": true,
- "url": "http://email.myhosthame.com"
-}');
- $request_headers = ["X-Mock: 201"];
- $response = self::$sg->client->user()->webhooks()->parse()->settings()->post(
- $request_body,
- null,
- $request_headers
- );
- $this->assertEquals(201, $response->statusCode());
- }
-
- public function testUserWebhooksParseSettingsGetMethod()
- {
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->webhooks()->parse()->settings()->get(null, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserWebhooksParseHostnamePatchMethod()
- {
- $request_body = json_decode('{
- "send_raw": true,
- "spam_check": false,
- "url": "http://newdomain.com/parse"
-}');
- $hostname = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->webhooks()->parse()->settings()->_($hostname)
- ->patch($request_body, null, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserWebhooksParseHostnameGetMethod()
- {
- $hostname = "test_url_param";
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->webhooks()->parse()->settings()->_($hostname)->get(
- null,
- null,
- $request_headers
- );
- $this->assertEquals(200, $response->statusCode());
- }
-
- public function testUserWebhooksParseHostnameDeleteMethod()
- {
- $hostname = "test_url_param";
- $request_headers = ["X-Mock: 204"];
- $response = self::$sg->client->user()->webhooks()->parse()->settings()->_($hostname)->delete(
- null,
- null,
- $request_headers
- );
- $this->assertEquals(204, $response->statusCode());
- }
-
- public function testUserWebhooksParseStatsGetMethod()
- {
- $query_params = json_decode('{"aggregated_by": "day", "limit": "test_string", "start_date": "2016-01-01", "end_date": "2016-04-01", "offset": "test_string"}');
- $request_headers = ["X-Mock: 200"];
- $response = self::$sg->client->user()->webhooks()->parse()->stats()->get(null, $query_params, $request_headers);
- $this->assertEquals(200, $response->statusCode());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/contacts/RecipientsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/contacts/RecipientsTest.php
deleted file mode 100644
index b82764e..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/contacts/RecipientsTest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-namespace SendGrid\Tests;
-
-use SendGrid\Tests\BaseTestClass;
-use SendGrid\Contacts\RecipientForm;
-use SendGrid\Contacts\Recipient;
-
-class RecipientsTestRecipient extends BaseTestClass
-{
- public function testRecipientsForm()
- {
- $form = (string) new RecipientForm('http://www.example.com/recipientFormSubmit');
- $this->assertEquals(
- $form, '<form action="http://www.example.com/recipientFormSubmit" method="post">
- First Name: <input type="text" name="first-name"><br>
- Last Name: <input type="text" name="last-name"><br>
- E-mail: <input type="text" name="email"><br>
- <input type="submit">
-</form>'
- );
- }
- public function testRecipientsFormSubmit()
- {
- $firstName = 'Test';
- $lastName = 'Tester';
- $email = 'test@test.com';
- $recipient = new Recipient($firstName, $lastName, $email);
- $json = json_encode($recipient);
- $this->assertEquals($json, '{"email":"test@test.com","first_name":"Test","last_name":"Tester"}');
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/stats/StatsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/stats/StatsTest.php
deleted file mode 100644
index a30226d..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/integration/helpers/stats/StatsTest.php
+++ /dev/null
@@ -1,238 +0,0 @@
-<?php
-namespace SendGrid\Tests;
-
-use SendGrid\Tests\BaseTestClass;
-use SendGrid\Stats\Stats;
-
-class StatsTest extends BaseTestClass
-{
- /**
- * @param array $expectedGlobal
- * @param array $expectedCategory
- * @param array $expectedSubuser
- * @param array $expectedSum
- * @param array $expectedSubuserMonthly
- * @dataProvider validValues
- */
- public function testGetValues(
- $expectedGlobal,
- $expectedCategory,
- $expectedSubuser,
- $expectedSum,
- $expectedSubuserMonthly
- ) {
- $userStats = new Stats($expectedGlobal['start_date'], $expectedGlobal['end_date'], $expectedGlobal['aggregated_by']);
- $this->assertEquals($expectedGlobal, $userStats->getGlobal());
- $this->assertEquals($expectedCategory, $userStats->getCategory($expectedCategory['categories']));
- $this->assertEquals($expectedSubuser, $userStats->getSubuser($expectedSubuser['subusers']));
- $this->assertEquals($expectedSum, $userStats->getSum(
- $expectedSum['sort_by_metric'],
- $expectedSum['sort_by_direction'],
- $expectedSum['limit'],
- $expectedSum['offset']
- ));
- $this->assertEquals($expectedSubuserMonthly, $userStats->getSubuserMonthly(
- $expectedSubuserMonthly['subuser'],
- $expectedSubuserMonthly['sort_by_metric'],
- $expectedSubuserMonthly['sort_by_direction'],
- $expectedSubuserMonthly['limit'],
- $expectedSubuserMonthly['offset']
- ));
- }
-
- /**
- * @param array $expectedGlobal
- * @param array $expectedCategory
- * @param array $expectedSubuser
- * @param array $expectedSum
- * @param array $expectedSubuserMonthly
- * @dataProvider invalidValues
- * @expectedException Exception
- */
- public function testGetValuesFail(
- $expectedGlobal,
- $expectedCategory,
- $expectedSubuser,
- $expectedSum,
- $expectedSubuserMonthly
- ) {
- $this->testGetValues(
- $expectedGlobal,
- $expectedCategory,
- $expectedSubuser,
- $expectedSum,
- $expectedSubuserMonthly
- );
- }
-
- public function validValues()
- {
- return [
- [
- $this->getExpectedGlobal('1980-01-01', null, null),
- $this->getExpectedCategory('1980-01-01', null, null, ['cat1', 'cat2']),
- $this->getExpectedSubuser('1980-01-01', null, null, ['user1', 'user2']),
- $this->getExpectedSum('1980-01-01', null, null, 'delivered', 'desc', 5, 0),
- $this->getExpectedSubuserMonthly('1980-01-01', 'user1', 'delivered', 'desc', 5, 0),
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '2017-01-01', null),
- $this->getExpectedCategory('1980-01-01', '2017-01-01', null, ['cat1']),
- $this->getExpectedSubuser('1980-01-01', '2017-01-01', null, ['user1']),
- $this->getExpectedSum('1980-01-01', '2017-01-01', null, 'delivered', 'asc', 10, 2),
- $this->getExpectedSubuserMonthly('1980-01-01', 'user1', 'delivered', 'asc', 10, 2),
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '2017-01-01', 'day'),
- $this->getExpectedCategory('1980-01-01', '2017-01-01', 'day', ['cat1']),
- $this->getExpectedSubuser('1980-01-01', '2017-01-01', 'day', ['user1']),
- $this->getExpectedSum('1980-01-01', '2017-01-01', 'day', 'delivered', 'asc', 50, 6),
- $this->getExpectedSubuserMonthly('1980-01-01', 'user1', 'delivered', 'asc', 50, 6),
- ],
- ];
- }
-
- public function invalidValues()
- {
- return [
- [
- $this->getExpectedGlobal(null, null, null),
- null,
- null,
- null,
- null
- ],
- [
- $this->getExpectedGlobal('1980-01-0145', null, null),
- null,
- null,
- null,
- null
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '1980-01-0145', null),
- null,
- null,
- null,
- null
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '1980-01-02', 'asdf'),
- null,
- null,
- null,
- null
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '2017-01-01', 'day'),
- $this->getExpectedCategory('1980-01-01', '2017-01-01', 'day', null),
- null,
- null,
- null
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '2017-01-01', 'day'),
- $this->getExpectedCategory('1980-01-01', '2017-01-01', 'day', null),
- null,
- null,
- null
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '2017-01-01', 'day'),
- $this->getExpectedCategory('1980-01-01', '2017-01-01', 'day', []),
- null,
- null,
- null
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '2017-01-01', 'day'),
- $this->getExpectedCategory('1980-01-01', '2017-01-01', 'day', ['a' => 'b']),
- null,
- null,
- null
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '2017-01-01', 'day'),
- $this->getExpectedCategory('1980-01-01', '2017-01-01', 'day', ['cat1']),
- $this->getExpectedSubuser('1980-01-01', '2017-01-01', 'day', null),
- $this->getExpectedSum('1980-01-01', '2017-01-01', 'day', 'delivered', null, 50, 6),
- null
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '2017-01-01', 'day'),
- $this->getExpectedCategory('1980-01-01', '2017-01-01', 'day', ['cat1']),
- $this->getExpectedSubuser('1980-01-01', '2017-01-01', 'day', null),
- $this->getExpectedSum('1980-01-01', '2017-01-01', 'day', 'delivered', 'asdf', 50, 6),
- null
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '2017-01-01', 'day'),
- $this->getExpectedCategory('1980-01-01', '2017-01-01', 'day', ['cat1']),
- $this->getExpectedSubuser('1980-01-01', '2017-01-01', 'day', null),
- $this->getExpectedSum('1980-01-01', '2017-01-01', 'day', 'delivered', 'asc', null, 'asdf'),
- null
- ],
- [
- $this->getExpectedGlobal('1980-01-01', '2017-01-01', 'day'),
- $this->getExpectedCategory('1980-01-01', '2017-01-01', 'day', ['cat1']),
- $this->getExpectedSubuser('1980-01-01', '2017-01-01', 'day', ['user1']),
- $this->getExpectedSum('1980-01-01', '2017-01-01', 'day', 'delivered', 'asc', 50, 6),
- $this->getExpectedSubuserMonthly('1980-01-01', 'user1', 'delivered', 'asc', 50, null),
- ],
- ];
- }
-
- public function getExpectedGlobal($startDate, $endDate, $aggregatedBy)
- {
- return [
- 'start_date' => $startDate,
- 'end_date' => $endDate,
- 'aggregated_by' => $aggregatedBy,
- ];
- }
-
- public function getExpectedCategory($startDate, $endDate, $aggregatedBy, $categories)
- {
- return [
- 'start_date' => $startDate,
- 'end_date' => $endDate,
- 'aggregated_by' => $aggregatedBy,
- 'categories' => $categories
- ];
- }
-
- public function getExpectedSubuser($startDate, $endDate, $aggregatedBy, $subusers)
- {
- return [
- 'start_date' => $startDate,
- 'end_date' => $endDate,
- 'aggregated_by' => $aggregatedBy,
- 'subusers' => $subusers
- ];
- }
-
- public function getExpectedSum($startDate, $endDate, $aggregatedBy, $sortByMetric, $sortByDirection, $limit, $offset)
- {
- return [
- 'start_date' => $startDate,
- 'end_date' => $endDate,
- 'aggregated_by' => $aggregatedBy,
- 'sort_by_metric' => $sortByMetric,
- 'sort_by_direction' => $sortByDirection,
- 'limit' => $limit,
- 'offset' => $offset
- ];
- }
-
- public function getExpectedSubuserMonthly($date, $subuser, $sortByMetric, $sortByDirection, $limit, $offset)
- {
- return [
- 'date' => $date,
- 'subuser' => $subuser,
- 'sort_by_metric' => $sortByMetric,
- 'sort_by_direction' => $sortByDirection,
- 'limit' => $limit,
- 'offset' => $offset
- ];
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/phpunit.xml.dist b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/phpunit.xml.dist
deleted file mode 100644
index c80a65f..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/phpunit.xml.dist
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit colors="true" bootstrap="../vendor/autoload.php">
- <testsuites>
- <testsuite name="All">
- <directory>.</directory>
- </testsuite>
- </testsuites>
-</phpunit>
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/prism.sh b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/prism.sh
deleted file mode 100755
index 4537445..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/prism.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/bash
-
-get_latest_release() {
- curl --silent "https://api.github.com/repos/stoplightio/prism/releases/latest" | # Get latest release from GitHub api
- grep '"tag_name":' | # Get tag line
- sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
-}
-set -eu
-
-install () {
-
-echo "Installing Prism..."
-
-UNAME=$(uname)
-ARCH=$(uname -m)
-if [ "$UNAME" != "Linux" ] && [ "$UNAME" != "Darwin" ] && [ "$ARCH" != "x86_64" ] && [ "$ARCH" != "i686" ]; then
- echo "Sorry, OS/Architecture not supported: ${UNAME}/${ARCH}. Download binary from https://github.com/stoplightio/prism/releases"
- exit 1
-fi
-
-if [ "$UNAME" = "Darwin" ] ; then
- OSX_ARCH=$(uname -m)
- if [ "${OSX_ARCH}" = "x86_64" ] ; then
- PLATFORM="darwin_amd64"
- fi
-elif [ "$UNAME" = "Linux" ] ; then
- LINUX_ARCH=$(uname -m)
- if [ "${LINUX_ARCH}" = "i686" ] ; then
- PLATFORM="linux_386"
- elif [ "${LINUX_ARCH}" = "x86_64" ] ; then
- PLATFORM="linux_amd64"
- fi
-fi
-
-mkdir -p ../prism/bin
-LATEST=$(get_latest_release)
-# URL="https://github.com/stoplightio/prism/releases/download/$LATEST/prism_$PLATFORM"
-URL="https://github.com/stoplightio/prism/releases/download/v2.0.17/prism_$PLATFORM"
-DEST=../prism/bin/prism
-
-# if [ -z $LATEST ] ; then
-# echo "Error requesting. Download binary from ${URL}"
-# exit 1
-# else
-curl -L $URL -o $DEST
-chmod +x $DEST
-# fi
-}
-
-run () {
- echo "Running prism..."
- cd ../prism/bin
- ./prism mock --spec https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json
-}
-
-if [ -f ../prism/bin/prism ]; then
- echo "Prism is already installed."
- run
-else
- echo "Prism is not installed."
- install
- run
-fi
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/AttachmentsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/AttachmentsTest.php
deleted file mode 100644
index 007eba8..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/AttachmentsTest.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-/**
- * This file tests attachments.
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-namespace SendGrid\Tests;
-
-use PHPUnit\Framework\TestCase;
-use SendGrid\Mail\Attachment;
-
-/**
- * This file tests attachments.
- *
- * @package SendGrid\Tests
- */
-class AttachmentsTests extends TestCase
-{
- public function testWillEncodeNonBase64String() {
-
- $attachment = new Attachment();
- $testString = 'Twilio Sendgrid is awesome!';
-
- $attachment->setContent($testString);
-
- $this->assertEquals(base64_encode($testString), $attachment->getContent());
- }
-
- public function testWillNotEncodeBase64String() {
-
- $attachment = new Attachment();
- $testString = base64_encode('Twilio Sendgrid is awesome!');
-
- $attachment->setContent($testString);
-
- $this->assertEquals($testString, $attachment->getContent());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/DynamicTemplateTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/DynamicTemplateTest.php
deleted file mode 100644
index d07d97d..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/DynamicTemplateTest.php
+++ /dev/null
@@ -1,415 +0,0 @@
-<?php
-/**
- * This file tests the dynamic/transactional template functionality for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Tests;
-
-// Test each use case that uses substitutions
-
-/**
- * This class tests the dynamic/transactional template functionality for a /mail/send API call
- *
- * @package SendGrid\Tests
- */
-class DynamicTemplateTest extends BaseTestClass
-{
-
- private $REQUEST_OBJECT_LEGACY = <<<'JSON'
-{
- "content": [
- {
- "type": "text/plain",
- "value": "and easy to do anywhere, even with PHP"
- },
- {
- "type": "text/html",
- "value": "<strong>and easy to do anywhere, even with PHP</strong>"
- },
- {
- "type": "text/calendar",
- "value": "Party Time!!"
- },
- {
- "type": "text/calendar2",
- "value": "Party Time 2!!"
- }
- ],
- "from": {
- "email": "test@example.com",
- "name": "DX"
- },
- "subject": "Sending with Twilio SendGrid is Fun and Global 2",
- "personalizations": [
- {
- "bcc": [
- {
- "email": "test+7@example.com",
- "name": "Example User7"
- },
- {
- "email": "test+8@example.com",
- "name": "Example User8"
- },
- {
- "email": "test+9@example.com",
- "name": "Example User9"
- }
- ],
- "cc": [
- {
- "email": "test+4@example.com",
- "name": "Example User4"
- },
- {
- "email": "test+5@example.com",
- "name": "Example User5"
- },
- {
- "email": "test+6@example.com",
- "name": "Example User6"
- }
- ],
- "substitutions": {
- "%city1%": "Denver",
- "%city2%": "Orange",
- "%name1%": "Example Name 1",
- "%name2%": "Example Name 2"
- },
- "to": [
- {
- "email": "test@example.com",
- "name": "Example User"
- },
- {
- "email": "test+1@example.com",
- "name": "Example User1"
- },
- {
- "email": "test+2@example.com",
- "name": "Example User2"
- },
- {
- "email": "test+3@example.com",
- "name": "Example User3"
- }
- ]
- }
- ],
- "template_id": "13b8f94f-bcae-4ec6-b752-70d6cb59f932"
-}
-JSON;
-
- private $REQUEST_OBJECT = <<<'JSON'
-{
- "content": [
- {
- "type": "text/plain",
- "value": "and easy to do anywhere, even with PHP"
- },
- {
- "type": "text/html",
- "value": "<strong>and easy to do anywhere, even with PHP</strong>"
- },
- {
- "type": "text/calendar",
- "value": "Party Time!!"
- },
- {
- "type": "text/calendar2",
- "value": "Party Time 2!!"
- }
- ],
- "from": {
- "email": "test@example.com",
- "name": "DX"
- },
- "subject": "Sending with Twilio SendGrid is Fun and Global 2",
- "personalizations": [
- {
- "bcc": [
- {
- "email": "test+7@example.com",
- "name": "Example User7"
- },
- {
- "email": "test+8@example.com",
- "name": "Example User8"
- },
- {
- "email": "test+9@example.com",
- "name": "Example User9"
- }
- ],
- "cc": [
- {
- "email": "test+4@example.com",
- "name": "Example User4"
- },
- {
- "email": "test+5@example.com",
- "name": "Example User5"
- },
- {
- "email": "test+6@example.com",
- "name": "Example User6"
- }
- ],
- "dynamic_template_data": {
- "%city1%": "Denver",
- "%city2%": "Orange",
- "%name1%": "Example Name 1",
- "%name2%": "Example Name 2"
- },
- "to": [
- {
- "email": "test@example.com",
- "name": "Example User"
- },
- {
- "email": "test+1@example.com",
- "name": "Example User1"
- },
- {
- "email": "test+2@example.com",
- "name": "Example User2"
- },
- {
- "email": "test+3@example.com",
- "name": "Example User3"
- }
- ]
- }
- ],
- "template_id": "d-13b8f94f-bcae-4ec6-b752-70d6cb59f932"
-}
-JSON;
-
- /**
- * Test all parameters without using objects
- */
- public function testKitchenSinkExampleWithoutObjectsAndLegacyTemplate()
- {
- $email = new \SendGrid\Mail\Mail();
-
- // For a detailed description of each of these settings,
- // please see the
- // [documentation](https://sendgrid.com/docs/API_Reference/api_v3.html).
- $email->setSubject("Sending with Twilio SendGrid is Fun 2");
-
- $email->addTo("test@example.com", "Example User");
- $email->addTo("test+1@example.com", "Example User1");
- $toEmails = [
- "test+2@example.com" => "Example User2",
- "test+3@example.com" => "Example User3"
- ];
- $email->addTos($toEmails);
-
- $email->addCc("test+4@example.com", "Example User4");
- $ccEmails = [
- "test+5@example.com" => "Example User5",
- "test+6@example.com" => "Example User6"
- ];
- $email->addCcs($ccEmails);
-
- $email->addBcc("test+7@example.com", "Example User7");
- $bccEmails = [
- "test+8@example.com" => "Example User8",
- "test+9@example.com" => "Example User9"
- ];
- $email->addBccs($bccEmails);
-
- $email->addSubstitution("%name1%", "Example Name 1");
- $email->addSubstitution("%city1%", "Denver");
- $substitutions = [
- "%name2%" => "Example Name 2",
- "%city2%" => "Orange"
- ];
- $email->addSubstitutions($substitutions);
-
- // The values below this comment are global to entire message
-
- $email->setFrom("test@example.com", "DX");
-
- $email->setGlobalSubject("Sending with Twilio SendGrid is Fun and Global 2");
-
- $email->addContent(
- "text/plain",
- "and easy to do anywhere, even with PHP"
- );
- $email->addContent(
- "text/html",
- "<strong>and easy to do anywhere, even with PHP</strong>"
- );
- $contents = [
- "text/calendar" => "Party Time!!",
- "text/calendar2" => "Party Time 2!!"
- ];
- $email->addContents($contents);
-
- $email->setTemplateId("d-13b8f94f-bcae-4ec6-b752-70d6cb59f932");
-
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT);
- $this->assertTrue($isEqual);
- }
-
- /**
- * Test all parameters without using objects with Dynamic Templates
- */
- public function testKitchenSinkExampleWithoutObjectsAndDynamicTemplate()
- {
- $email = new \SendGrid\Mail\Mail();
-
- // For a detailed description of each of these settings,
- // please see the
- // [documentation](https://sendgrid.com/docs/API_Reference/api_v3.html).
- $email->setSubject("Sending with Twilio SendGrid is Fun 2");
-
- $email->addTo("test@example.com", "Example User");
- $email->addTo("test+1@example.com", "Example User1");
- $toEmails = [
- "test+2@example.com" => "Example User2",
- "test+3@example.com" => "Example User3"
- ];
- $email->addTos($toEmails);
-
- $email->addCc("test+4@example.com", "Example User4");
- $ccEmails = [
- "test+5@example.com" => "Example User5",
- "test+6@example.com" => "Example User6"
- ];
- $email->addCcs($ccEmails);
-
- $email->addBcc("test+7@example.com", "Example User7");
- $bccEmails = [
- "test+8@example.com" => "Example User8",
- "test+9@example.com" => "Example User9"
- ];
- $email->addBccs($bccEmails);
-
- $email->addSubstitution("%name1%", "Example Name 1");
- $email->addSubstitution("%city1%", "Denver");
- $substitutions = [
- "%name2%" => "Example Name 2",
- "%city2%" => "Orange"
- ];
- $email->addSubstitutions($substitutions);
-
- // The values below this comment are global to entire message
-
- $email->setFrom("test@example.com", "DX");
-
- $email->setGlobalSubject("Sending with Twilio SendGrid is Fun and Global 2");
-
- $email->addContent(
- "text/plain",
- "and easy to do anywhere, even with PHP"
- );
- $email->addContent(
- "text/html",
- "<strong>and easy to do anywhere, even with PHP</strong>"
- );
- $contents = [
- "text/calendar" => "Party Time!!",
- "text/calendar2" => "Party Time 2!!"
- ];
- $email->addContents($contents);
-
- $email->setTemplateId("d-13b8f94f-bcae-4ec6-b752-70d6cb59f932");
-
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT);
- $this->assertTrue($isEqual);
- }
-
- /**
- * Test all parameters using objects
- */
- public function testKitchenSinkExampleWithObjectsAndLegacyTemplate()
- {
- $email = new \SendGrid\Mail\Mail();
-
- // For a detailed description of each of these settings,
- // please see the
- // [documentation](https://sendgrid.com/docs/API_Reference/api_v3.html).
- $email->setSubject(
- new \SendGrid\Mail\Subject("Sending with Twilio SendGrid is Fun 2")
- );
-
- $email->addTo(new \SendGrid\Mail\To("test@example.com", "Example User"));
- $email->addTo(new \SendGrid\Mail\To("test+1@example.com", "Example User1"));
- $toEmails = [
- new \SendGrid\Mail\To("test+2@example.com", "Example User2"),
- new \SendGrid\Mail\To("test+3@example.com", "Example User3")
- ];
- $email->addTos($toEmails);
-
- $email->addCc(new \SendGrid\Mail\Cc("test+4@example.com", "Example User4"));
- $ccEmails = [
- new \SendGrid\Mail\Cc("test+5@example.com", "Example User5"),
- new \SendGrid\Mail\Cc("test+6@example.com", "Example User6")
- ];
- $email->addCcs($ccEmails);
-
- $email->addBcc(
- new \SendGrid\Mail\Bcc("test+7@example.com", "Example User7")
- );
- $bccEmails = [
- new \SendGrid\Mail\Bcc("test+8@example.com", "Example User8"),
- new \SendGrid\Mail\Bcc("test+9@example.com", "Example User9")
- ];
- $email->addBccs($bccEmails);
-
- $email->addSubstitution(
- new \SendGrid\Mail\Substitution("%name1%", "Example Name 1")
- );
- $email->addSubstitution(
- new \SendGrid\Mail\Substitution("%city1%", "Denver")
- );
- $substitutions = [
- new \SendGrid\Mail\Substitution("%name2%", "Example Name 2"),
- new \SendGrid\Mail\Substitution("%city2%", "Orange")
- ];
- $email->addSubstitutions($substitutions);
-
- // The values below this comment are global to entire message
-
- $email->setFrom(new \SendGrid\Mail\From("test@example.com", "DX"));
-
- $email->setGlobalSubject(
- new \SendGrid\Mail\Subject("Sending with Twilio SendGrid is Fun and Global 2")
- );
-
- $plainTextContent = new \SendGrid\Mail\PlainTextContent(
- "and easy to do anywhere, even with PHP"
- );
- $htmlContent = new \SendGrid\Mail\HtmlContent(
- "<strong>and easy to do anywhere, even with PHP</strong>"
- );
- $email->addContent($plainTextContent);
- $email->addContent($htmlContent);
- $contents = [
- new \SendGrid\Mail\Content("text/calendar", "Party Time!!"),
- new \SendGrid\Mail\Content("text/calendar2", "Party Time 2!!")
- ];
- $email->addContents($contents);
-
- $email->setTemplateId(
- new \SendGrid\Mail\TemplateId("13b8f94f-bcae-4ec6-b752-70d6cb59f932")
- );
-
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT_LEGACY);
- $this->assertTrue($isEqual);
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/FilesExistTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/FilesExistTest.php
deleted file mode 100644
index 0ce586c..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/FilesExistTest.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-/**
- * This file tests the existence of necessary files in this repo
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Tests;
-
-use PHPUnit\Framework\TestCase;
-
-/**
- * This class tests the existence of necessary files in this repo
- *
- * @package SendGrid\Tests
- */
-class FilesExistTest extends TestCase
-{
- /**
- * This method tests that the required files exist in the repo
- */
- public function testFilesArePresentInRepo()
- {
- $rootDir = __DIR__ . '/../..';
- $this->assertFileExists("$rootDir/docker/Dockerfile");
- //$this->assertFileExists("$rootDir/docker/docker-compose.yml");
- $this->assertFileExists("$rootDir/.codeclimate.yml");
- $this->assertFileExists("$rootDir/.env.sample");
- $this->assertFileExists("$rootDir/.github/ISSUE_TEMPLATE");
- $this->assertFileExists("$rootDir/.github/PULL_REQUEST_TEMPLATE");
- $this->assertFileExists("$rootDir/.gitignore");
- $this->assertFileExists("$rootDir/.travis.yml");
- $this->assertFileExists("$rootDir/CHANGELOG.md");
- $this->assertFileExists("$rootDir/CODE_OF_CONDUCT.md");
- $this->assertFileExists("$rootDir/LICENSE.md");
- $this->assertFileExists("$rootDir/README.md");
- $this->assertFileExists("$rootDir/TROUBLESHOOTING.md");
- $this->assertFileExists("$rootDir/USAGE.md");
- $this->assertFileExists("$rootDir/USE_CASES.md");
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/KitchenSinkTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/KitchenSinkTest.php
deleted file mode 100644
index 28d047a..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/KitchenSinkTest.php
+++ /dev/null
@@ -1,1229 +0,0 @@
-<?php
-/**
- * This file tests the request object generation for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Tests;
-
-/**
- * This class tests the request object generation for a /mail/send API call
- *
- * @package SendGrid\Tests
- */
-class KitchenSinkTest extends BaseTestClass
-{
-
- private $REQUEST_OBJECT_DYNAMIC = <<<'JSON'
-{
- "asm": {
- "group_id": 1,
- "groups_to_display": [
- 1,
- 2,
- 3,
- 4
- ]
- },
- "attachments": [
- {
- "content": "YmFzZTY0IGVuY29kZWQgY29udGVudDE=",
- "content_id": "Banner",
- "disposition": "inline",
- "filename": "banner.png",
- "type": "image/png"
- },
- {
- "content": "YmFzZTY0IGVuY29kZWQgY29udGVudDI=",
- "content_id": "Banner 3",
- "disposition": "attachment",
- "filename": "image/jpeg",
- "type": "banner2.jpeg"
- },
- {
- "content": "YmFzZTY0IGVuY29kZWQgY29udGVudDM=",
- "content_id": "Banner 3",
- "disposition": "inline",
- "filename": "image/gif",
- "type": "banner3.gif"
- }
- ],
- "batch_id": "MWQxZmIyODYtNjE1Ni0xMWU1LWI3ZTUtMDgwMDI3OGJkMmY2LWEzMmViMjYxMw",
- "categories": [
- "Category 1",
- "Category 2",
- "Category 3"
- ],
- "content": [
- {
- "type": "text/plain",
- "value": "and easy to do anywhere, even with PHP"
- },
- {
- "type": "text/html",
- "value": "<strong>and easy to do anywhere, even with PHP</strong>"
- },
- {
- "type": "text/calendar",
- "value": "Party Time!!"
- },
- {
- "type": "text/calendar2",
- "value": "Party Time 2!!"
- }
- ],
- "from": {
- "email": "test@example.com",
- "name": "DX"
- },
- "headers": {
- "X-Day": "Monday",
- "X-Month": "January",
- "X-Year": "2017"
- },
- "ip_pool_name": "23",
- "mail_settings": {
- "bcc": {
- "email": "bcc@example.com",
- "enable": true
- },
- "bypass_list_management": {
- "enable": true
- },
- "footer": {
- "enable": true,
- "html": "<strong>Footer</strong>",
- "text": "Footer"
- },
- "sandbox_mode": {
- "enable": true
- },
- "spam_check": {
- "enable": true,
- "post_to_url": "http://mydomain.com",
- "threshold": 1
- }
- },
- "personalizations": [
- {
- "bcc": [
- {
- "email": "test+7@example.com",
- "name": "Example User7"
- },
- {
- "email": "test+8@example.com",
- "name": "Example User8"
- },
- {
- "email": "test+9@example.com",
- "name": "Example User9"
- }
- ],
- "cc": [
- {
- "email": "test+4@example.com",
- "name": "Example User4"
- },
- {
- "email": "test+5@example.com",
- "name": "Example User5"
- },
- {
- "email": "test+6@example.com",
- "name": "Example User6"
- }
- ],
- "custom_args": {
- "category": "name",
- "marketing1": "false",
- "marketing2": "true",
- "transactional1": "true",
- "transactional2": "false"
- },
- "headers": {
- "X-Test1": "Test1",
- "X-Test2": "Test2",
- "X-Test3": "Test3",
- "X-Test4": "Test4"
- },
- "send_at": 1461775051,
- "dynamic_template_data": {
- "object": {
- "key1": "Key 1",
- "key2": "Key 2"
- },
- "boolean": false,
- "array": [
- "index0",
- "index1"
- ],
- "number": 1
- },
- "to": [
- {
- "email": "test@example.com",
- "name": "Example User"
- },
- {
- "email": "test+1@example.com",
- "name": "Example User1"
- },
- {
- "email": "test+2@example.com",
- "name": "Example User2"
- },
- {
- "email": "test+3@example.com",
- "name": "Example User3"
- }
- ]
- }
- ],
- "reply_to": {
- "email": "dx+replyto2@example.com",
- "name": "DX Team Reply To 2"
- },
- "sections": {
- "%section1%": "Substitution for Section 1 Tag",
- "%section3%": "Substitution for Section 3 Tag",
- "%section4%": "Substitution for Section 4 Tag"
- },
- "subject": "Sending with Twilio SendGrid is Fun and Global 2",
- "template_id": "d-13b8f94fbcae4ec6b75270d6cb59f932",
- "tracking_settings": {
- "click_tracking": {
- "enable": true,
- "enable_text": true
- },
- "ganalytics": {
- "enable": true,
- "utm_campaign": "utm_campaign",
- "utm_content": "utm_content",
- "utm_medium": "utm_medium",
- "utm_source": "utm_source",
- "utm_term": "utm_term"
- },
- "open_tracking": {
- "enable": true,
- "substitution_tag": "--sub--"
- },
- "subscription_tracking": {
- "enable": true,
- "html": "<bold>subscribe</bold>",
- "substitution_tag": "%%sub%%",
- "text": "subscribe"
- }
- }
-}
-JSON;
-
- private $REQUEST_OBJECT = <<<'JSON'
-{
- "asm": {
- "group_id": 1,
- "groups_to_display": [
- 1,
- 2,
- 3,
- 4
- ]
- },
- "attachments": [
- {
- "content": "YmFzZTY0IGVuY29kZWQgY29udGVudDE=",
- "content_id": "Banner",
- "disposition": "inline",
- "filename": "banner.png",
- "type": "image/png"
- },
- {
- "content": "YmFzZTY0IGVuY29kZWQgY29udGVudDI=",
- "content_id": "Banner 3",
- "disposition": "attachment",
- "filename": "image/jpeg",
- "type": "banner2.jpeg"
- },
- {
- "content": "YmFzZTY0IGVuY29kZWQgY29udGVudDM=",
- "content_id": "Banner 3",
- "disposition": "inline",
- "filename": "image/gif",
- "type": "banner3.gif"
- }
- ],
- "batch_id": "MWQxZmIyODYtNjE1Ni0xMWU1LWI3ZTUtMDgwMDI3OGJkMmY2LWEzMmViMjYxMw",
- "categories": [
- "Category 1",
- "Category 2",
- "Category 3"
- ],
- "content": [
- {
- "type": "text/plain",
- "value": "and easy to do anywhere, even with PHP"
- },
- {
- "type": "text/html",
- "value": "<strong>and easy to do anywhere, even with PHP</strong>"
- },
- {
- "type": "text/calendar",
- "value": "Party Time!!"
- },
- {
- "type": "text/calendar2",
- "value": "Party Time 2!!"
- }
- ],
- "from": {
- "email": "test@example.com",
- "name": "DX"
- },
- "headers": {
- "X-Day": "Monday",
- "X-Month": "January",
- "X-Year": "2017"
- },
- "ip_pool_name": "23",
- "mail_settings": {
- "bcc": {
- "email": "bcc@example.com",
- "enable": true
- },
- "bypass_list_management": {
- "enable": true
- },
- "footer": {
- "enable": true,
- "html": "<strong>Footer</strong>",
- "text": "Footer"
- },
- "sandbox_mode": {
- "enable": true
- },
- "spam_check": {
- "enable": true,
- "post_to_url": "http://mydomain.com",
- "threshold": 1
- }
- },
- "personalizations": [
- {
- "bcc": [
- {
- "email": "test+7@example.com",
- "name": "Example User7"
- },
- {
- "email": "test+8@example.com",
- "name": "Example User8"
- },
- {
- "email": "test+9@example.com",
- "name": "Example User9"
- }
- ],
- "cc": [
- {
- "email": "test+4@example.com",
- "name": "Example User4"
- },
- {
- "email": "test+5@example.com",
- "name": "Example User5"
- },
- {
- "email": "test+6@example.com",
- "name": "Example User6"
- }
- ],
- "custom_args": {
- "category": "name",
- "marketing1": "false",
- "marketing2": "true",
- "transactional1": "true",
- "transactional2": "false"
- },
- "headers": {
- "X-Test1": "Test1",
- "X-Test2": "Test2",
- "X-Test3": "Test3",
- "X-Test4": "Test4"
- },
- "send_at": 1461775051,
- "substitutions": {
- "%city1%": "Denver",
- "%city2%": "Orange",
- "%name1%": "Example Name 1",
- "%name2%": "Example Name 2"
- },
- "to": [
- {
- "email": "test@example.com",
- "name": "Example User"
- },
- {
- "email": "test+1@example.com",
- "name": "Example User1"
- },
- {
- "email": "test+2@example.com",
- "name": "Example User2"
- },
- {
- "email": "test+3@example.com",
- "name": "Example User3"
- }
- ]
- }
- ],
- "reply_to": {
- "email": "dx+replyto2@example.com",
- "name": "DX Team Reply To 2"
- },
- "sections": {
- "%section1%": "Substitution for Section 1 Tag",
- "%section3%": "Substitution for Section 3 Tag",
- "%section4%": "Substitution for Section 4 Tag"
- },
- "subject": "Sending with Twilio SendGrid is Fun and Global 2",
- "template_id": "13b8f94f-bcae-4ec6-b752-70d6cb59f932",
- "tracking_settings": {
- "click_tracking": {
- "enable": true,
- "enable_text": true
- },
- "ganalytics": {
- "enable": true,
- "utm_campaign": "utm_campaign",
- "utm_content": "utm_content",
- "utm_medium": "utm_medium",
- "utm_source": "utm_source",
- "utm_term": "utm_term"
- },
- "open_tracking": {
- "enable": true,
- "substitution_tag": "--sub--"
- },
- "subscription_tracking": {
- "enable": true,
- "html": "<bold>subscribe</bold>",
- "substitution_tag": "%%sub%%",
- "text": "subscribe"
- }
- }
-}
-JSON;
-
- /**
- * Test all parameters without using objects
- */
- public function testKitchenSinkExampleWithoutObjects()
- {
- $email = new \SendGrid\Mail\Mail();
-
- // For a detailed description of each of these settings,
- // please see the
- // [documentation](https://sendgrid.com/docs/API_Reference/api_v3.html).
- $email->setSubject("Sending with Twilio SendGrid is Fun 2");
-
- $email->addTo("test@example.com", "Example User");
- $email->addTo("test+1@example.com", "Example User1");
- $toEmails = [
- "test+2@example.com" => "Example User2",
- "test+3@example.com" => "Example User3"
- ];
- $email->addTos($toEmails);
-
- $email->addCc("test+4@example.com", "Example User4");
- $ccEmails = [
- "test+5@example.com" => "Example User5",
- "test+6@example.com" => "Example User6"
- ];
- $email->addCcs($ccEmails);
-
- $email->addBcc("test+7@example.com", "Example User7");
- $bccEmails = [
- "test+8@example.com" => "Example User8",
- "test+9@example.com" => "Example User9"
- ];
- $email->addBccs($bccEmails);
-
- $email->addHeader("X-Test1", "Test1");
- $email->addHeader("X-Test2", "Test2");
- $headers = [
- "X-Test3" => "Test3",
- "X-Test4" => "Test4",
- ];
- $email->addHeaders($headers);
-
- $email->addSubstitution("%name1%", "Example Name 1");
- $email->addSubstitution("%city1%", "Denver");
- $substitutions = [
- "%name2%" => "Example Name 2",
- "%city2%" => "Orange"
- ];
- $email->addSubstitutions($substitutions);
-
- $email->addCustomArg("marketing1", "false");
- $email->addCustomArg("transactional1", "true");
- $email->addCustomArg("category", "name");
- $customArgs = [
- "marketing2" => "true",
- "transactional2" => "false",
- "category" => "name"
- ];
- $email->addCustomArgs($customArgs);
-
- $email->setSendAt(1461775051);
-
- // The values below this comment are global to entire message
-
- $email->setFrom("test@example.com", "DX");
-
- $email->setGlobalSubject("Sending with Twilio SendGrid is Fun and Global 2");
-
- $email->addContent(
- "text/plain",
- "and easy to do anywhere, even with PHP"
- );
- $email->addContent(
- "text/html",
- "<strong>and easy to do anywhere, even with PHP</strong>"
- );
- $contents = [
- "text/calendar" => "Party Time!!",
- "text/calendar2" => "Party Time 2!!"
- ];
- $email->addContents($contents);
-
- $email->addAttachment(
- "base64 encoded content1",
- "image/png",
- "banner.png",
- "inline",
- "Banner"
- );
- $attachments = [
- [
- "base64 encoded content2",
- "banner2.jpeg",
- "image/jpeg",
- "attachment",
- "Banner 3"
- ],
- [
- "base64 encoded content3",
- "banner3.gif",
- "image/gif",
- "inline",
- "Banner 3"
- ]
- ];
- $email->addAttachments($attachments);
-
- $email->setTemplateId("13b8f94f-bcae-4ec6-b752-70d6cb59f932");
-
- $email->addGlobalHeader("X-Day", "Monday");
- $globalHeaders = [
- "X-Month" => "January",
- "X-Year" => "2017"
- ];
- $email->addGlobalHeaders($globalHeaders);
-
- $email->addSection("%section1%", "Substitution for Section 1 Tag");
- $sections = [
- "%section3%" => "Substitution for Section 3 Tag",
- "%section4%" => "Substitution for Section 4 Tag"
- ];
- $email->addSections($sections);
-
- $email->addCategory("Category 1");
- $categories = [
- "Category 2",
- "Category 3"
- ];
- $email->addCategories($categories);
-
- $email->setBatchId(
- "MWQxZmIyODYtNjE1Ni0xMWU1LWI3ZTUtMDgwMDI3OGJkMmY2LWEzMmViMjYxMw"
- );
-
- $email->setReplyTo("dx+replyto2@example.com", "DX Team Reply To 2");
-
- $email->setAsm(1, [1, 2, 3, 4]);
-
- $email->setIpPoolName("23");
-
- // Mail Settings
- $email->setBccSettings(true, "bcc@example.com");
- $email->enableBypassListManagement();
- //$email->disableBypassListManagement();
- $email->setFooter(true, "Footer", "<strong>Footer</strong>");
- $email->enableSandBoxMode();
- //$email->disableSandBoxMode();
- $email->setSpamCheck(true, 1, "http://mydomain.com");
-
- // Tracking Settings
- $email->setClickTracking(true, true);
- $email->setOpenTracking(true, "--sub--");
- $email->setSubscriptionTracking(
- true,
- "subscribe",
- "<bold>subscribe</bold>",
- "%%sub%%"
- );
- $email->setGanalytics(
- true,
- "utm_source",
- "utm_medium",
- "utm_term",
- "utm_content",
- "utm_campaign"
- );
-
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT);
- $this->assertTrue($isEqual);
- }
-
- /**
- * Test all parameters without using objects with dynamic templates
- */
- public function testKitchenSinkExampleWithoutObjectsWithDynamicTemplates()
- {
- $email = new \SendGrid\Mail\Mail();
-
- // For a detailed description of each of these settings,
- // please see the
- // [documentation](https://sendgrid.com/docs/API_Reference/api_v3.html).
- $email->setSubject("Sending with Twilio SendGrid is Fun 2");
-
- $email->addTo("test@example.com", "Example User");
- $email->addTo("test+1@example.com", "Example User1");
- $toEmails = [
- "test+2@example.com" => "Example User2",
- "test+3@example.com" => "Example User3"
- ];
- $email->addTos($toEmails);
-
- $email->addCc("test+4@example.com", "Example User4");
- $ccEmails = [
- "test+5@example.com" => "Example User5",
- "test+6@example.com" => "Example User6"
- ];
- $email->addCcs($ccEmails);
-
- $email->addBcc("test+7@example.com", "Example User7");
- $bccEmails = [
- "test+8@example.com" => "Example User8",
- "test+9@example.com" => "Example User9"
- ];
- $email->addBccs($bccEmails);
-
- $email->addHeader("X-Test1", "Test1");
- $email->addHeader("X-Test2", "Test2");
- $headers = [
- "X-Test3" => "Test3",
- "X-Test4" => "Test4",
- ];
- $email->addHeaders($headers);
-
- $email->addDynamicTemplateData('object', [
- 'key1' => 'Key 1',
- 'key2' => 'Key 2',
- ]);
- $email->addDynamicTemplateData('boolean', false);
- $email->addDynamicTemplateData('array', [
- 'index0',
- 'index1',
- ]);
- $email->addDynamicTemplateData('number', 1);
-
- $email->addCustomArg("marketing1", "false");
- $email->addCustomArg("transactional1", "true");
- $email->addCustomArg("category", "name");
- $customArgs = [
- "marketing2" => "true",
- "transactional2" => "false",
- "category" => "name"
- ];
- $email->addCustomArgs($customArgs);
-
- $email->setSendAt(1461775051);
-
- // The values below this comment are global to entire message
-
- $email->setFrom("test@example.com", "DX");
-
- $email->setGlobalSubject("Sending with Twilio SendGrid is Fun and Global 2");
-
- $email->addContent(
- "text/plain",
- "and easy to do anywhere, even with PHP"
- );
- $email->addContent(
- "text/html",
- "<strong>and easy to do anywhere, even with PHP</strong>"
- );
- $contents = [
- "text/calendar" => "Party Time!!",
- "text/calendar2" => "Party Time 2!!"
- ];
- $email->addContents($contents);
-
- $email->addAttachment(
- "base64 encoded content1",
- "image/png",
- "banner.png",
- "inline",
- "Banner"
- );
- $attachments = [
- [
- "base64 encoded content2",
- "banner2.jpeg",
- "image/jpeg",
- "attachment",
- "Banner 3"
- ],
- [
- "base64 encoded content3",
- "banner3.gif",
- "image/gif",
- "inline",
- "Banner 3"
- ]
- ];
- $email->addAttachments($attachments);
-
- $email->setTemplateId("d-13b8f94fbcae4ec6b75270d6cb59f932");
-
- $email->addGlobalHeader("X-Day", "Monday");
- $globalHeaders = [
- "X-Month" => "January",
- "X-Year" => "2017"
- ];
- $email->addGlobalHeaders($globalHeaders);
-
- $email->addSection("%section1%", "Substitution for Section 1 Tag");
- $sections = [
- "%section3%" => "Substitution for Section 3 Tag",
- "%section4%" => "Substitution for Section 4 Tag"
- ];
- $email->addSections($sections);
-
- $email->addCategory("Category 1");
- $categories = [
- "Category 2",
- "Category 3"
- ];
- $email->addCategories($categories);
-
- $email->setBatchId(
- "MWQxZmIyODYtNjE1Ni0xMWU1LWI3ZTUtMDgwMDI3OGJkMmY2LWEzMmViMjYxMw"
- );
-
- $email->setReplyTo("dx+replyto2@example.com", "DX Team Reply To 2");
-
- $email->setAsm(1, [1, 2, 3, 4]);
-
- $email->setIpPoolName("23");
-
- // Mail Settings
- $email->setBccSettings(true, "bcc@example.com");
- $email->enableBypassListManagement();
- //$email->disableBypassListManagement();
- $email->setFooter(true, "Footer", "<strong>Footer</strong>");
- $email->enableSandBoxMode();
- //$email->disableSandBoxMode();
- $email->setSpamCheck(true, 1, "http://mydomain.com");
-
- // Tracking Settings
- $email->setClickTracking(true, true);
- $email->setOpenTracking(true, "--sub--");
- $email->setSubscriptionTracking(
- true,
- "subscribe",
- "<bold>subscribe</bold>",
- "%%sub%%"
- );
- $email->setGanalytics(
- true,
- "utm_source",
- "utm_medium",
- "utm_term",
- "utm_content",
- "utm_campaign"
- );
-
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT_DYNAMIC);
- $this->assertTrue($isEqual);
- }
-
-
- /**
- * Test all parameters using objects
- */
- public function testKitchenSinkExampleWithObjects()
- {
- $email = new \SendGrid\Mail\Mail();
-
- // For a detailed description of each of these settings,
- // please see the
- // [documentation](https://sendgrid.com/docs/API_Reference/api_v3.html).
- $email->setSubject(
- new \SendGrid\Mail\Subject("Sending with Twilio SendGrid is Fun 2")
- );
-
- $email->addTo(new \SendGrid\Mail\To("test@example.com", "Example User"));
- $email->addTo(new \SendGrid\Mail\To("test+1@example.com", "Example User1"));
- $toEmails = [
- new \SendGrid\Mail\To("test+2@example.com", "Example User2"),
- new \SendGrid\Mail\To("test+3@example.com", "Example User3")
- ];
- $email->addTos($toEmails);
-
- $email->addCc(new \SendGrid\Mail\Cc("test+4@example.com", "Example User4"));
- $ccEmails = [
- new \SendGrid\Mail\Cc("test+5@example.com", "Example User5"),
- new \SendGrid\Mail\Cc("test+6@example.com", "Example User6")
- ];
- $email->addCcs($ccEmails);
-
- $email->addBcc(
- new \SendGrid\Mail\Bcc("test+7@example.com", "Example User7")
- );
- $bccEmails = [
- new \SendGrid\Mail\Bcc("test+8@example.com", "Example User8"),
- new \SendGrid\Mail\Bcc("test+9@example.com", "Example User9")
- ];
- $email->addBccs($bccEmails);
-
- $email->addHeader(new \SendGrid\Mail\Header("X-Test1", "Test1"));
- $email->addHeader(new \SendGrid\Mail\Header("X-Test2", "Test2"));
- $headers = [
- new \SendGrid\Mail\Header("X-Test3", "Test3"),
- new \SendGrid\Mail\Header("X-Test4", "Test4")
- ];
- $email->addHeaders($headers);
-
- $email->addSubstitution(
- new \SendGrid\Mail\Substitution("%name1%", "Example Name 1")
- );
- $email->addSubstitution(
- new \SendGrid\Mail\Substitution("%city1%", "Denver")
- );
- $substitutions = [
- new \SendGrid\Mail\Substitution("%name2%", "Example Name 2"),
- new \SendGrid\Mail\Substitution("%city2%", "Orange")
- ];
- $email->addSubstitutions($substitutions);
-
- $email->addCustomArg(new \SendGrid\Mail\CustomArg("marketing1", "false"));
- $email->addCustomArg(new \SendGrid\Mail\CustomArg("transactional1", "true"));
- $email->addCustomArg(new \SendGrid\Mail\CustomArg("category", "name"));
- $customArgs = [
- new \SendGrid\Mail\CustomArg("marketing2", "true"),
- new \SendGrid\Mail\CustomArg("transactional2", "false"),
- new \SendGrid\Mail\CustomArg("category", "name")
- ];
- $email->addCustomArgs($customArgs);
-
- $email->setSendAt(new \SendGrid\Mail\SendAt(1461775051));
-
- // The values below this comment are global to entire message
-
- $email->setFrom(new \SendGrid\Mail\From("test@example.com", "DX"));
-
- $email->setGlobalSubject(
- new \SendGrid\Mail\Subject("Sending with Twilio SendGrid is Fun and Global 2")
- );
-
- $plainTextContent = new \SendGrid\Mail\PlainTextContent(
- "and easy to do anywhere, even with PHP"
- );
- $htmlContent = new \SendGrid\Mail\HtmlContent(
- "<strong>and easy to do anywhere, even with PHP</strong>"
- );
- $email->addContent($plainTextContent);
- $email->addContent($htmlContent);
- $contents = [
- new \SendGrid\Mail\Content("text/calendar", "Party Time!!"),
- new \SendGrid\Mail\Content("text/calendar2", "Party Time 2!!")
- ];
- $email->addContents($contents);
-
- $email->addAttachment(
- new \SendGrid\Mail\Attachment(
- "base64 encoded content1",
- "image/png",
- "banner.png",
- "inline",
- "Banner"
- )
- );
- $attachments = [
- new \SendGrid\Mail\Attachment(
- "base64 encoded content2",
- "banner2.jpeg",
- "image/jpeg",
- "attachment",
- "Banner 3"
- ),
- new \SendGrid\Mail\Attachment(
- "base64 encoded content3",
- "banner3.gif",
- "image/gif",
- "inline",
- "Banner 3"
- )
- ];
- $email->addAttachments($attachments);
-
- $email->setTemplateId(
- new \SendGrid\Mail\TemplateId("13b8f94f-bcae-4ec6-b752-70d6cb59f932")
- );
-
- $email->addGlobalHeader(new \SendGrid\Mail\Header("X-Day", "Monday"));
- $globalHeaders = [
- new \SendGrid\Mail\Header("X-Month", "January"),
- new \SendGrid\Mail\Header("X-Year", "2017")
- ];
- $email->addGlobalHeaders($globalHeaders);
-
- $email->addSection(
- new \SendGrid\Mail\Section(
- "%section1%",
- "Substitution for Section 1 Tag"
- )
- );
-
- $sections = [
- new \SendGrid\Mail\Section(
- "%section3%",
- "Substitution for Section 3 Tag"
- ),
- new \SendGrid\Mail\Section(
- "%section4%",
- "Substitution for Section 4 Tag"
- )
- ];
- $email->addSections($sections);
-
- $email->addCategory(new \SendGrid\Mail\Category("Category 1"));
- $categories = [
- new \SendGrid\Mail\Category("Category 2"),
- new \SendGrid\Mail\Category("Category 3")
- ];
- $email->addCategories($categories);
-
- $email->setBatchId(
- new \SendGrid\Mail\BatchId(
- "MWQxZmIyODYtNjE1Ni0xMWU1LWI3ZTUtMDgwMDI3OGJkMmY2LWEzMmViMjYxMw"
- )
- );
-
- $email->setReplyTo(
- new \SendGrid\Mail\ReplyTo(
- "dx+replyto2@example.com",
- "DX Team Reply To 2"
- )
- );
-
- $asm = new \SendGrid\Mail\Asm(
- new \SendGrid\Mail\GroupId(1),
- new \SendGrid\Mail\GroupsToDisplay([1, 2, 3, 4])
- );
- $email->setAsm($asm);
-
- $email->setIpPoolName(new \SendGrid\Mail\IpPoolName("23"));
-
- $mail_settings = new \SendGrid\Mail\MailSettings();
- $mail_settings->setBccSettings(
- new \SendGrid\Mail\BccSettings(true, "bcc@example.com")
- );
- $mail_settings->setBypassListManagement(
- new \SendGrid\Mail\BypassListManagement(true)
- );
- $mail_settings->setFooter(
- new \SendGrid\Mail\Footer(true, "Footer", "<strong>Footer</strong>")
- );
- $mail_settings->setSandBoxMode(new \SendGrid\Mail\SandBoxMode(true));
- $mail_settings->setSpamCheck(
- new \SendGrid\Mail\SpamCheck(true, 1, "http://mydomain.com")
- );
- $email->setMailSettings($mail_settings);
-
- $tracking_settings = new \SendGrid\Mail\TrackingSettings();
- $tracking_settings->setClickTracking(
- new \SendGrid\Mail\ClickTracking(true, true)
- );
- $tracking_settings->setOpenTracking(
- new \SendGrid\Mail\OpenTracking(true, "--sub--")
- );
- $tracking_settings->setSubscriptionTracking(
- new \SendGrid\Mail\SubscriptionTracking(
- true,
- "subscribe",
- "<bold>subscribe</bold>",
- "%%sub%%"
- )
- );
- $tracking_settings->setGanalytics(
- new \SendGrid\Mail\Ganalytics(
- true,
- "utm_source",
- "utm_medium",
- "utm_term",
- "utm_content",
- "utm_campaign"
- )
- );
- $email->setTrackingSettings($tracking_settings);
-
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT);
- $this->assertTrue($isEqual);
- }
-
- /**
- * Test all parameters using objects with dynamic templates
- */
- public function testKitchenSinkExampleWithObjectsWithDynamicTemplate()
- {
- $email = new \SendGrid\Mail\Mail();
-
- // For a detailed description of each of these settings,
- // please see the
- // [documentation](https://sendgrid.com/docs/API_Reference/api_v3.html).
- $email->setSubject(
- new \SendGrid\Mail\Subject("Sending with Twilio SendGrid is Fun 2")
- );
-
- $email->addTo(new \SendGrid\Mail\To("test@example.com", "Example User"));
- $email->addTo(new \SendGrid\Mail\To("test+1@example.com", "Example User1"));
- $toEmails = [
- new \SendGrid\Mail\To("test+2@example.com", "Example User2"),
- new \SendGrid\Mail\To("test+3@example.com", "Example User3")
- ];
- $email->addTos($toEmails);
-
- $email->addCc(new \SendGrid\Mail\Cc("test+4@example.com", "Example User4"));
- $ccEmails = [
- new \SendGrid\Mail\Cc("test+5@example.com", "Example User5"),
- new \SendGrid\Mail\Cc("test+6@example.com", "Example User6")
- ];
- $email->addCcs($ccEmails);
-
- $email->addBcc(
- new \SendGrid\Mail\Bcc("test+7@example.com", "Example User7")
- );
- $bccEmails = [
- new \SendGrid\Mail\Bcc("test+8@example.com", "Example User8"),
- new \SendGrid\Mail\Bcc("test+9@example.com", "Example User9")
- ];
- $email->addBccs($bccEmails);
-
- $email->addHeader(new \SendGrid\Mail\Header("X-Test1", "Test1"));
- $email->addHeader(new \SendGrid\Mail\Header("X-Test2", "Test2"));
- $headers = [
- new \SendGrid\Mail\Header("X-Test3", "Test3"),
- new \SendGrid\Mail\Header("X-Test4", "Test4")
- ];
- $email->addHeaders($headers);
-
- $email->addDynamicTemplateData(
- new \SendGrid\Mail\Substitution('object', [
- 'key1' => 'Key 1',
- 'key2' => 'Key 2',
- ])
- );
- $email->addDynamicTemplateData(
- new \SendGrid\Mail\Substitution('boolean', false)
- );
- $email->addDynamicTemplateDatas([
- new \SendGrid\Mail\Substitution('array', [
- 'index0',
- 'index1',
- ]),
- new \SendGrid\Mail\Substitution('number', 1),
- ]);
-
- $email->addCustomArg(new \SendGrid\Mail\CustomArg("marketing1", "false"));
- $email->addCustomArg(new \SendGrid\Mail\CustomArg("transactional1", "true"));
- $email->addCustomArg(new \SendGrid\Mail\CustomArg("category", "name"));
- $customArgs = [
- new \SendGrid\Mail\CustomArg("marketing2", "true"),
- new \SendGrid\Mail\CustomArg("transactional2", "false"),
- new \SendGrid\Mail\CustomArg("category", "name")
- ];
- $email->addCustomArgs($customArgs);
-
- $email->setSendAt(new \SendGrid\Mail\SendAt(1461775051));
-
- // The values below this comment are global to entire message
-
- $email->setFrom(new \SendGrid\Mail\From("test@example.com", "DX"));
-
- $email->setGlobalSubject(
- new \SendGrid\Mail\Subject("Sending with Twilio SendGrid is Fun and Global 2")
- );
-
- $plainTextContent = new \SendGrid\Mail\PlainTextContent(
- "and easy to do anywhere, even with PHP"
- );
- $htmlContent = new \SendGrid\Mail\HtmlContent(
- "<strong>and easy to do anywhere, even with PHP</strong>"
- );
- $email->addContent($plainTextContent);
- $email->addContent($htmlContent);
- $contents = [
- new \SendGrid\Mail\Content("text/calendar", "Party Time!!"),
- new \SendGrid\Mail\Content("text/calendar2", "Party Time 2!!")
- ];
- $email->addContents($contents);
-
- $email->addAttachment(
- new \SendGrid\Mail\Attachment(
- "base64 encoded content1",
- "image/png",
- "banner.png",
- "inline",
- "Banner"
- )
- );
- $attachments = [
- new \SendGrid\Mail\Attachment(
- "base64 encoded content2",
- "banner2.jpeg",
- "image/jpeg",
- "attachment",
- "Banner 3"
- ),
- new \SendGrid\Mail\Attachment(
- "base64 encoded content3",
- "banner3.gif",
- "image/gif",
- "inline",
- "Banner 3"
- )
- ];
- $email->addAttachments($attachments);
-
- $email->setTemplateId(
- new \SendGrid\Mail\TemplateId("d-13b8f94fbcae4ec6b75270d6cb59f932")
- );
-
- $email->addGlobalHeader(new \SendGrid\Mail\Header("X-Day", "Monday"));
- $globalHeaders = [
- new \SendGrid\Mail\Header("X-Month", "January"),
- new \SendGrid\Mail\Header("X-Year", "2017")
- ];
- $email->addGlobalHeaders($globalHeaders);
-
- $email->addSection(
- new \SendGrid\Mail\Section(
- "%section1%",
- "Substitution for Section 1 Tag"
- )
- );
-
- $sections = [
- new \SendGrid\Mail\Section(
- "%section3%",
- "Substitution for Section 3 Tag"
- ),
- new \SendGrid\Mail\Section(
- "%section4%",
- "Substitution for Section 4 Tag"
- )
- ];
- $email->addSections($sections);
-
- $email->addCategory(new \SendGrid\Mail\Category("Category 1"));
- $categories = [
- new \SendGrid\Mail\Category("Category 2"),
- new \SendGrid\Mail\Category("Category 3")
- ];
- $email->addCategories($categories);
-
- $email->setBatchId(
- new \SendGrid\Mail\BatchId(
- "MWQxZmIyODYtNjE1Ni0xMWU1LWI3ZTUtMDgwMDI3OGJkMmY2LWEzMmViMjYxMw"
- )
- );
-
- $email->setReplyTo(
- new \SendGrid\Mail\ReplyTo(
- "dx+replyto2@example.com",
- "DX Team Reply To 2"
- )
- );
-
- $asm = new \SendGrid\Mail\Asm(
- new \SendGrid\Mail\GroupId(1),
- new \SendGrid\Mail\GroupsToDisplay([1, 2, 3, 4])
- );
- $email->setAsm($asm);
-
- $email->setIpPoolName(new \SendGrid\Mail\IpPoolName("23"));
-
- $mail_settings = new \SendGrid\Mail\MailSettings();
- $mail_settings->setBccSettings(
- new \SendGrid\Mail\BccSettings(true, "bcc@example.com")
- );
- $mail_settings->setBypassListManagement(
- new \SendGrid\Mail\BypassListManagement(true)
- );
- $mail_settings->setFooter(
- new \SendGrid\Mail\Footer(true, "Footer", "<strong>Footer</strong>")
- );
- $mail_settings->setSandBoxMode(new \SendGrid\Mail\SandBoxMode(true));
- $mail_settings->setSpamCheck(
- new \SendGrid\Mail\SpamCheck(true, 1, "http://mydomain.com")
- );
- $email->setMailSettings($mail_settings);
-
- $tracking_settings = new \SendGrid\Mail\TrackingSettings();
- $tracking_settings->setClickTracking(
- new \SendGrid\Mail\ClickTracking(true, true)
- );
- $tracking_settings->setOpenTracking(
- new \SendGrid\Mail\OpenTracking(true, "--sub--")
- );
- $tracking_settings->setSubscriptionTracking(
- new \SendGrid\Mail\SubscriptionTracking(
- true,
- "subscribe",
- "<bold>subscribe</bold>",
- "%%sub%%"
- )
- );
- $tracking_settings->setGanalytics(
- new \SendGrid\Mail\Ganalytics(
- true,
- "utm_source",
- "utm_medium",
- "utm_term",
- "utm_content",
- "utm_campaign"
- )
- );
- $email->setTrackingSettings($tracking_settings);
-
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT_DYNAMIC);
- $this->assertTrue($isEqual);
- }
-} \ No newline at end of file
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MailGetContentsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MailGetContentsTest.php
deleted file mode 100644
index cda8337..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MailGetContentsTest.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-namespace SendGrid\Tests;
-
-use PHPUnit\Framework\TestCase;
-use SendGrid\Mail\Mail;
-use SendGrid\Mail\Content;
-use SendGrid\Mail\EmailAddress;
-use SendGrid\Mail\From;
-
-/**
- * This class tests the getContents() function in SendGrid\Mail\Mail
- *
- * @package SendGrid\Tests
- */
-class MailGetContentsTest extends TestCase
-{
-
- /**
- * This method tests that array from Mail getContents() returns with
- * text/plain Content object first when Mail instantiated with text/html
- * content before text/plain
- *
- * @return null
- */
- public function testWillReturnPlainContentFirst()
- {
- $email = new \SendGrid\Mail\Mail();
- $email->setFrom("test@example.com", null);
- $email->setSubject("Hello World from the Twilio SendGrid PHP Library");
- $email->addTo("test@example.com", "Test Person");
-
- $email->addContent("text/html", "<p>some text here</p>");
- $email->addContent("text/plain", "some text here");
-
- $this->assertEquals('text/plain', $email->getContents()[0]->getType());
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MailHelperTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MailHelperTest.php
deleted file mode 100644
index 7a3487f..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MailHelperTest.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/**
- * This file tests email address encoding
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Tests;
-
-use SendGrid\Mail\EmailAddress as EmailAddress;
-
-/**
- * This class tests email address encoding
- *
- * @package SendGrid\Tests
- */
-class MailTest_Mail extends \PHPUnit\Framework\TestCase
-{
- /**
- * This method tests various types of unencoded emails
- *
- * @expectedException \SendGrid\Mail\TypeException
- */
- public function testEmailName()
- {
- $email = new EmailAddress('test@example.com', 'John Doe');
- $json = json_encode($email->jsonSerialize());
- $this->assertEquals($json, '{"name":"John Doe","email":"test@example.com"}');
-
- $email->setName('');
- $json = json_encode($email->jsonSerialize());
- $this->assertEquals($json, '{"email":"test@example.com"}');
-
- $email->setName(null);
- $json = json_encode($email->jsonSerialize());
- $this->assertEquals($json, '{"email":"test@example.com"}');
-
- $email->setName('Doe, John');
- $json = json_encode($email->jsonSerialize());
- $this->assertEquals(
- $json,
- '{"name":"\\"Doe, John\\"","email":"test@example.com"}'
- );
-
- $email->setName('Doe; John');
- $json = json_encode($email->jsonSerialize());
- $this->assertEquals(
- $json,
- '{"name":"\\"Doe; John\\"","email":"test@example.com"}'
- );
-
- $email->setName('John "Billy" O\'Keeffe');
- $json = json_encode($email->jsonSerialize());
- $this->assertEquals(
- $json,
- '{"name":"John \\"Billy\\" O\'Keeffe","email":"test@example.com"}'
- );
-
- $email->setName('O\'Keeffe, John "Billy"');
- $json = json_encode($email->jsonSerialize());
- $this->assertEquals(
- $json,
- '{"name":"\\"O\'Keeffe, John \\\\\\"Billy\\\\\\"\\"","email":"test@example.com"}'
- );
- }
-
- /**
- * This method tests TypeException for wrong email address
- *
- * @expectedException \SendGrid\Mail\TypeException
- */
- public function testEmailAddress()
- {
- $email = new EmailAddress();
- $email->setEmailAddress('test@example.com@wrong');
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MultipleEmailToMultipleRecipientsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MultipleEmailToMultipleRecipientsTest.php
deleted file mode 100644
index e168fd5..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/MultipleEmailToMultipleRecipientsTest.php
+++ /dev/null
@@ -1,517 +0,0 @@
-<?php
-/**
- * This file tests the request object generation for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Tests;
-
-/**
- * This class tests the request object generation for a /mail/send API call
- *
- * @package SendGrid\Tests
- */
-class MultipleEmailToMulipleRecipientsTest extends BaseTestClass
-{
-
- private $REQUEST_OBJECT = <<<'JSON'
-{
- "content": [
- {
- "type": "text/plain",
- "value": "Hello -name-, your github is -github- sent at -time-"
- },
- {
- "type": "text/html",
- "value": "<strong>Hello -name-, your github is <a href=\"-github-\">here</a></strong> sent at -time-"
- }
- ],
- "from": {
- "email": "test@example.com",
- "name": "Example User"
- },
- "personalizations": [
- {
- "subject": "Subject 1 -name-",
- "substitutions": {
- "-github-": "http://github.com/example_user1",
- "-name-": "Example User 1",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test1@example.com",
- "name": "Example User1"
- }
- ]
- },
- {
- "subject": "Subject 2 -name-",
- "substitutions": {
- "-github-": "http://github.com/example_user2",
- "-name-": "Example User 2",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test2@example.com",
- "name": "Example User2"
- }
- ]
- },
- {
- "substitutions": {
- "-github-": "http://github.com/example_user3",
- "-name-": "Example User 3",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test3@example.com",
- "name": "Example User3"
- }
- ]
- }
- ],
- "subject": "Hi -name-!"
-}
-JSON;
-
- private $REQUEST_OBJECT_2 = <<<'JSON'
-{
- "content": [
- {
- "type": "text/plain",
- "value": "Hello -name-, your github is -github- sent at -time-"
- },
- {
- "type": "text/html",
- "value": "<strong>Hello -name-, your github is <a href=\"-github-\">here</a></strong> sent at -time-"
- }
- ],
- "from": {
- "email": "test@example.com",
- "name": "Example User"
- },
- "personalizations": [
- {
- "subject": "Subject 1 -name-",
- "substitutions": {
- "-github-": "http://github.com/example_user1",
- "-name-": "Example User 1",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test1@example.com",
- "name": "Example User1"
- }
- ]
- },
- {
- "subject": "Subject 2 -name-",
- "substitutions": {
- "-github-": "http://github.com/example_user2",
- "-name-": "Example User 2",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test2@example.com",
- "name": "Example User2"
- }
- ]
- },
- {
- "substitutions": {
- "-github-": "http://github.com/example_user3",
- "-name-": "Example User 3",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test3@example.com",
- "name": "Example User3"
- }
- ]
- }
- ]
-}
-JSON;
-
- private $REQUEST_OBJECT_3 = <<<'JSON'
-{
- "content": [
- {
- "type": "text/plain",
- "value": "Hello -name-, your github is -github- sent at -time-"
- },
- {
- "type": "text/html",
- "value": "<strong>Hello -name-, your github is <a href=\"-github-\">here</a></strong> sent at -time-"
- }
- ],
- "from": {
- "email": "test@example.com",
- "name": "Example User"
- },
- "personalizations": [
- {
- "subject": "Subject 1 -name-",
- "dynamic_template_data": {
- "-github-": "http://github.com/example_user1",
- "-name-": "Example User 1",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test1@example.com",
- "name": "Example User1"
- }
- ]
- },
- {
- "subject": "Subject 2 -name-",
- "dynamic_template_data": {
- "-github-": "http://github.com/example_user2",
- "-name-": "Example User 2",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test2@example.com",
- "name": "Example User2"
- }
- ]
- },
- {
- "dynamic_template_data": {
- "-github-": "http://github.com/example_user3",
- "-name-": "Example User 3",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test3@example.com",
- "name": "Example User3"
- }
- ]
- }
- ],
- "template_id": "d-13b8f94f-bcae-4ec6-b752-70d6cb59f932",
- "subject": "Hi -name-!"
-}
-JSON;
-
- private $REQUEST_OBJECT_4 = <<<'JSON'
-{
- "content": [
- {
- "type": "text/plain",
- "value": "Hello -name-, your github is -github- sent at -time-"
- },
- {
- "type": "text/html",
- "value": "<strong>Hello -name-, your github is <a href=\"-github-\">here</a></strong> sent at -time-"
- }
- ],
- "from": {
- "email": "test@example.com",
- "name": "Example User"
- },
- "personalizations": [
- {
- "subject": "Subject 1 -name-",
- "dynamic_template_data": {
- "-github-": "http://github.com/example_user1",
- "-name-": "Example User 1",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test1@example.com",
- "name": "Example User1"
- }
- ]
- },
- {
- "subject": "Subject 2 -name-",
- "dynamic_template_data": {
- "-github-": "http://github.com/example_user2",
- "-name-": "Example User 2",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test2@example.com",
- "name": "Example User2"
- }
- ]
- },
- {
- "dynamic_template_data": {
- "-github-": "http://github.com/example_user3",
- "-name-": "Example User 3",
- "-time-": "2018-05-03 23:10:29"
- },
- "to": [
- {
- "email": "test+test3@example.com",
- "name": "Example User3"
- }
- ]
- }
- ],
- "template_id": "d-13b8f94f-bcae-4ec6-b752-70d6cb59f932"
-}
-JSON;
-
- /**
- * Test when we have individual subjects for each Personalization object
- */
- public function testWithIndividualSubjects()
- {
- $from = new \SendGrid\Mail\From("test@example.com", "Example User");
- $tos = [
- new \SendGrid\Mail\To(
- "test+test1@example.com",
- "Example User1",
- [
- '-name-' => 'Example User 1',
- '-github-' => 'http://github.com/example_user1'
- ],
- "Subject 1 -name-"
- ),
- new \SendGrid\Mail\To(
- "test+test2@example.com",
- "Example User2",
- [
- '-name-' => 'Example User 2',
- '-github-' => 'http://github.com/example_user2'
- ],
- "Subject 2 -name-"
- ),
- new \SendGrid\Mail\To(
- "test+test3@example.com",
- "Example User3",
- [
- '-name-' => 'Example User 3',
- '-github-' => 'http://github.com/example_user3'
- ]
- )
- ];
- $subject = new \SendGrid\Mail\Subject("Hi -name-!"); // default subject
- $globalSubstitutions = [
- '-time-' => "2018-05-03 23:10:29"
- ];
- $plainTextContent = new \SendGrid\Mail\PlainTextContent(
- "Hello -name-, your github is -github- sent at -time-"
- );
- $htmlContent = new \SendGrid\Mail\HtmlContent(
- "<strong>Hello -name-, your github is <a href=\"-github-\">here</a></strong> sent at -time-"
- );
- $email = new \SendGrid\Mail\Mail(
- $from,
- $tos,
- $subject, // or array of subjects, these take precendence
- $plainTextContent,
- $htmlContent,
- $globalSubstitutions
- );
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT);
- $this->assertTrue($isEqual);
- }
-
- /**
- * Test when we have individual subjects using dynamic templates for each Personalization object
- */
- public function testWithIndividualSubjectsDynamicTemplates()
- {
- $from = new \SendGrid\Mail\From("test@example.com", "Example User");
- $tos = [
- new \SendGrid\Mail\To(
- "test+test1@example.com",
- "Example User1",
- [
- '-name-' => 'Example User 1',
- '-github-' => 'http://github.com/example_user1'
- ],
- "Subject 1 -name-"
- ),
- new \SendGrid\Mail\To(
- "test+test2@example.com",
- "Example User2",
- [
- '-name-' => 'Example User 2',
- '-github-' => 'http://github.com/example_user2'
- ],
- "Subject 2 -name-"
- ),
- new \SendGrid\Mail\To(
- "test+test3@example.com",
- "Example User3",
- [
- '-name-' => 'Example User 3',
- '-github-' => 'http://github.com/example_user3'
- ]
- )
- ];
- $subject = new \SendGrid\Mail\Subject("Hi -name-!"); // default subject
- $globalSubstitutions = [
- '-time-' => "2018-05-03 23:10:29"
- ];
- $plainTextContent = new \SendGrid\Mail\PlainTextContent(
- "Hello -name-, your github is -github- sent at -time-"
- );
- $htmlContent = new \SendGrid\Mail\HtmlContent(
- "<strong>Hello -name-, your github is <a href=\"-github-\">here</a></strong> sent at -time-"
- );
- $email = new \SendGrid\Mail\Mail(
- $from,
- $tos,
- $subject, // or array of subjects, these take precendence
- $plainTextContent,
- $htmlContent,
- $globalSubstitutions
- );
- $email->setTemplateId("d-13b8f94f-bcae-4ec6-b752-70d6cb59f932");
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT_3);
- $this->assertTrue($isEqual);
- }
-
- /**
- * Test when we pass in an array of subjects
- *
- * @expectedException \SendGrid\Mail\TypeException
- */
- public function testWithCollectionOfSubjects()
- {
- $from = new \SendGrid\Mail\From("test@example.com", "Example User");
- $tos = [
- new \SendGrid\Mail\To(
- "test+test1@example.com",
- "Example User1",
- [
- '-name-' => 'Example User 1',
- '-github-' => 'http://github.com/example_user1'
- ],
- "Example User1 -name-"
- ),
- new \SendGrid\Mail\To(
- "test+test2@example.com",
- "Example User2",
- [
- '-name-' => 'Example User 2',
- '-github-' => 'http://github.com/example_user2'
- ],
- "Example User2 -name-"
- ),
- new \SendGrid\Mail\To(
- "test+test3@example.com",
- "Example User3",
- [
- '-name-' => 'Example User 3',
- '-github-' => 'http://github.com/example_user3'
- ]
- )
- ];
- $subject = [
- "Subject 1 -name-",
- "Subject 2 -name-"
- ];
- $globalSubstitutions = [
- '-time-' => "2018-05-03 23:10:29"
- ];
- $plainTextContent = new \SendGrid\Mail\PlainTextContent(
- "Hello -name-, your github is -github- sent at -time-"
- );
- $htmlContent = new \SendGrid\Mail\HtmlContent(
- "<strong>Hello -name-, your github is <a href=\"-github-\">here</a></strong> sent at -time-"
- );
- $email = new \SendGrid\Mail\Mail(
- $from,
- $tos,
- $subject, // or array of subjects, these take precendence
- $plainTextContent,
- $htmlContent,
- $globalSubstitutions
- );
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT_2);
- $this->assertTrue($isEqual);
- }
-
- /**
- * Test when we pass in an array of subjects
- *
- * @expectedException \SendGrid\Mail\TypeException
- */
- public function testWithCollectionOfSubjectsDynamic()
- {
- $from = new \SendGrid\Mail\From("test@example.com", "Example User");
- $tos = [
- new \SendGrid\Mail\To(
- "test+test1@example.com",
- "Example User1",
- [
- '-name-' => 'Example User 1',
- '-github-' => 'http://github.com/example_user1'
- ],
- "Example User1 -name-"
- ),
- new \SendGrid\Mail\To(
- "test+test2@example.com",
- "Example User2",
- [
- '-name-' => 'Example User 2',
- '-github-' => 'http://github.com/example_user2'
- ],
- "Example User2 -name-"
- ),
- new \SendGrid\Mail\To(
- "test+test3@example.com",
- "Example User3",
- [
- '-name-' => 'Example User 3',
- '-github-' => 'http://github.com/example_user3'
- ]
- )
- ];
- $subject = [
- "Subject 1 -name-",
- "Subject 2 -name-"
- ];
- $globalSubstitutions = [
- '-time-' => "2018-05-03 23:10:29"
- ];
- $plainTextContent = new \SendGrid\Mail\PlainTextContent(
- "Hello -name-, your github is -github- sent at -time-"
- );
- $htmlContent = new \SendGrid\Mail\HtmlContent(
- "<strong>Hello -name-, your github is <a href=\"-github-\">here</a></strong> sent at -time-"
- );
- $email = new \SendGrid\Mail\Mail(
- $from,
- $tos,
- $subject, // or array of subjects, these take precendence
- $plainTextContent,
- $htmlContent,
- $globalSubstitutions
- );
- $email->setTemplateId("d-13b8f94f-bcae-4ec6-b752-70d6cb59f932");
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT_2);
- $this->assertTrue($isEqual);
- }
-
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SendGridTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SendGridTest.php
deleted file mode 100644
index 274e7aa..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SendGridTest.php
+++ /dev/null
@@ -1,88 +0,0 @@
-<?php
-/**
- * This file tests the SendGrid Client
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Tests;
-
-/**
- * This class tests the Twilio SendGrid Client
- *
- * @package SendGrid\Tests
- */
-class SendGridTest extends BaseTestClass
-{
- /**
- * Test if the version is correct
- */
- public function testVersionIsCorrect()
- {
- $this->assertEquals(\SendGrid::VERSION, '7.3.0');
- $version = json_decode(
- file_get_contents(__DIR__ . '/../../composer.json')
- )->version;
- $this->assertEquals(
- $version,
- \SendGrid::VERSION
- );
- }
-
- /**
- * Test that we can connect to the Twilio SendGrid API
- */
- public function testCanConnectToSendGridApi()
- {
- $sg = new \SendGrid(self::$apiKey);
- $headers = [
- 'Authorization: Bearer ' . self::$apiKey,
- 'User-Agent: sendgrid/' . $sg->version . ';php',
- 'Accept: application/json'
- ];
-
- $this->assertEquals(
- $sg->client->getHost(),
- 'https://api.sendgrid.com',
- '/v3'
- );
- $this->assertEquals(
- $sg->client->getHeaders(),
- $headers
- );
- $this->assertEquals($sg->client->getVersion(), '/v3');
-
- $sg2 = new \SendGrid(self::$apiKey, ['host' => 'https://api.test.com']);
- $this->assertEquals($sg2->client->getHost(), 'https://api.test.com');
-
- $sg3 = new \SendGrid(self::$apiKey, ['curl' => ['foo' => 'bar']]);
- $this->assertEquals(['foo' => 'bar'], $sg3->client->getCurlOptions());
-
- $sg4 = new \SendGrid(
- self::$apiKey,
- ['curl' => [CURLOPT_PROXY => '127.0.0.1:8000']]
- );
- $this->assertEquals(
- $sg4->client->getCurlOptions(),
- [10004 => '127.0.0.1:8000']
- );
-
- $subuser = 'abcxyz@this.is.a.test.subuser';
- $headers[] = 'On-Behalf-Of: ' . $subuser;
- $sg5 = new \SendGrid(
- self::$apiKey,
- ['impersonateSubuser' => $subuser]
- );
- $this->assertSame(
- $headers,
- $sg5->client->getHeaders()
- );
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SingleEmailToASingleRecipientTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SingleEmailToASingleRecipientTest.php
deleted file mode 100644
index ad9053d..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SingleEmailToASingleRecipientTest.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-/**
- * This file tests the request object generation for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Tests;
-
-/**
- * This class tests the request object generation for a /mail/send API call
- *
- * @package SendGrid\Tests
- */
-class SingleEmailToASingleRecipientTest extends BaseTestClass
-{
-
- private $REQUEST_OBJECT = <<<'JSON'
-{
- "personalizations": [
- {
- "to": [
- {
- "email": "test@example.com",
- "name": "Example User"
- }
- ]
- }
- ],
- "subject": "Sending with Twilio SendGrid is Fun",
- "from": {
- "email": "test@example.com",
- "name": "Example User"
- },
- "content": [
- {
- "type": "text/plain",
- "value": "and easy to do anywhere, even with PHP"
- },
- {
- "type": "text/html",
- "value": "<strong>and easy to do anywhere, even with PHP</strong>"
- }
- ]
-}
-JSON;
-
- /**
- * Test all parameters using objects
- */
- public function testWithObjects()
- {
- $from = new \SendGrid\Mail\From("test@example.com", "Example User");
- $subject = new \SendGrid\Mail\Subject("Sending with Twilio SendGrid is Fun");
- $to = new \SendGrid\Mail\To("test@example.com", "Example User");
- $plainTextContent = new \SendGrid\Mail\PlainTextContent(
- "and easy to do anywhere, even with PHP"
- );
- $htmlContent = new \SendGrid\Mail\HtmlContent(
- "<strong>and easy to do anywhere, even with PHP</strong>"
- );
- $email = new \SendGrid\Mail\Mail(
- $from,
- $to,
- $subject,
- $plainTextContent,
- $htmlContent
- );
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT);
- $this->assertTrue($isEqual);
- }
-
- /**
- * Test all parameters without using objects
- */
- public function testWithoutObjects()
- {
- $email = new \SendGrid\Mail\Mail();
- $email->setFrom("test@example.com", "Example User");
- $email->setSubject("Sending with Twilio SendGrid is Fun");
- $email->addTo("test@example.com", "Example User");
- $email->addContent("text/plain", "and easy to do anywhere, even with PHP");
- $email->addContent(
- "text/html", "<strong>and easy to do anywhere, even with PHP</strong>"
- );
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT);
- $this->assertTrue($isEqual);
- }
-}
diff --git a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SingleEmailToMultipleRecipientsTest.php b/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SingleEmailToMultipleRecipientsTest.php
deleted file mode 100644
index 40b1b83..0000000
--- a/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/test/unit/SingleEmailToMultipleRecipientsTest.php
+++ /dev/null
@@ -1,117 +0,0 @@
-<?php
-/**
- * This file tests the request object generation for a /mail/send API call
- *
- * PHP Version - 5.6, 7.0, 7.1, 7.2
- *
- * @package SendGrid\Tests
- * @author Elmer Thomas <dx@sendgrid.com>
- * @copyright 2018-19 Twilio SendGrid
- * @license https://opensource.org/licenses/MIT The MIT License
- * @version GIT: <git_id>
- * @link http://packagist.org/packages/sendgrid/sendgrid
- */
-
-namespace SendGrid\Tests;
-
-
-/**
- * This class tests the request object generation for a /mail/send API call
- *
- * @package SendGrid\Tests
- */
-class SingleEmailToMulipleRecipientsTest extends BaseTestClass
-{
-
- private $REQUEST_OBJECT = <<<'JSON'
-{
- "personalizations": [
- {
- "to": [
- {
- "email": "test+test1@example.com",
- "name": "Example User1"
- },
- {
- "email": "test+test2@example.com",
- "name": "Example User2"
- },
- {
- "email": "test+test3@example.com",
- "name": "Example User3"
- }
- ]
- }
- ],
- "subject": "Sending with Twilio SendGrid is Fun",
- "content": [
- {
- "type": "text/plain",
- "value": "and easy to do anywhere, even with PHP"
- },
- {
- "type": "text/html",
- "value": "<strong>and easy to do anywhere, even with PHP</strong>"
- }
- ],
- "from": {
- "email": "test@example.com",
- "name": "Example User"
- }
-}
-JSON;
-
-
- /**
- * Test when we are using objects
- */
- public function testWithObjects()
- {
- $from = new \SendGrid\Mail\From("test@example.com", "Example User");
- $tos = [
- new \SendGrid\Mail\To("test+test1@example.com", "Example User1"),
- new \SendGrid\Mail\To("test+test2@example.com", "Example User2"),
- new \SendGrid\Mail\To("test+test3@example.com", "Example User3")
- ];
- $subject = new \SendGrid\Mail\Subject("Sending with Twilio SendGrid is Fun");
- $plainTextContent = new \SendGrid\Mail\PlainTextContent(
- "and easy to do anywhere, even with PHP"
- );
- $htmlContent = new \SendGrid\Mail\HtmlContent(
- "<strong>and easy to do anywhere, even with PHP</strong>"
- );
- $email = new \SendGrid\Mail\Mail(
- $from,
- $tos,
- $subject,
- $plainTextContent,
- $htmlContent
- );
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT);
- $this->assertTrue($isEqual);
- }
-
- /**
- * Test when we are not using objects
- */
- public function testWithoutObjects()
- {
- $email = new \SendGrid\Mail\Mail();
- $email->setFrom("test@example.com", "Example User");
- $tos = [
- "test+test1@example.com" => "Example User1",
- "test+test2@example.com" => "Example User2",
- "test+test3@example.com" => "Example User3"
- ];
- $email->addTos($tos);
- $email->setSubject("Sending with Twilio SendGrid is Fun");
- $email->addContent("text/plain", "and easy to do anywhere, even with PHP");
- $email->addContent(
- "text/html", "<strong>and easy to do anywhere, even with PHP</strong>"
- );
- $json = json_encode($email->jsonSerialize());
- $isEqual = BaseTestClass::compareJSONObjects($json, $this->REQUEST_OBJECT);
- $this->assertTrue($isEqual);
- }
-}