infopark_webcrm_sdk 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/ca-bundle.crt +2 -26
- data/lib/crm/mailing_recipient.rb +63 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80e090fd95de4e1d92c52e8b076d2ec1177df5cc
|
4
|
+
data.tar.gz: 852ff29cda8809552e61d02daccd0a71e6a00355
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fe1bd34799e97d4ad081873f46de007cef3adb66541d47680a66d4343faca72f563c94f9f61eb2f84f719ebf6428bb07f4f1f82723e5ed1d7946e1abd1e1ded
|
7
|
+
data.tar.gz: c58de12f6b7afa209b3bc548f1774355e71f8122fc48ea7389263cff460c6fad79872dc526c2d0d5032c4b7363a4d159d556a6923bf19784e2e1aef775018b8e
|
data/config/ca-bundle.crt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
##
|
2
2
|
## Bundle of CA Root Certificates
|
3
3
|
##
|
4
|
-
## Certificate data from Mozilla as of:
|
4
|
+
## Certificate data from Mozilla as of: Wed Jun 20 13:57:57 2018
|
5
5
|
##
|
6
6
|
## This is a bundle of X.509 certificates of public Certificate Authorities
|
7
7
|
## (CA). These were automatically extracted from Mozilla's root certificates
|
@@ -14,7 +14,7 @@
|
|
14
14
|
## Just configure this file as the SSLCACertificateFile.
|
15
15
|
##
|
16
16
|
## Conversion done with mk-ca-bundle.pl version 1.25.
|
17
|
-
## SHA1:
|
17
|
+
## SHA1: 0df975deabcd0cd443b08e597700eafcbebeeb26
|
18
18
|
##
|
19
19
|
|
20
20
|
|
@@ -2635,30 +2635,6 @@ kbcFgKyLmZJ956LYBws2J+dIeWCKw9cTXPhyQN9Ky8+ZAAoACxGV2lZFA4gKn2fQ1XmxqI1AbQ3C
|
|
2635
2635
|
ekD6819kR5LLU7m7Wc5P/dAVUwHY3+vZ5nbv0CO7O6l5s9UCKc2Jo5YPSjXnTkLAdc0Hz+Ys63su
|
2636
2636
|
-----END CERTIFICATE-----
|
2637
2637
|
|
2638
|
-
TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı H5
|
2639
|
-
=========================================================
|
2640
|
-
-----BEGIN CERTIFICATE-----
|
2641
|
-
MIIEJzCCAw+gAwIBAgIHAI4X/iQggTANBgkqhkiG9w0BAQsFADCBsTELMAkGA1UEBhMCVFIxDzAN
|
2642
|
-
BgNVBAcMBkFua2FyYTFNMEsGA1UECgxEVMOcUktUUlVTVCBCaWxnaSDEsGxldGnFn2ltIHZlIEJp
|
2643
|
-
bGnFn2ltIEfDvHZlbmxpxJ9pIEhpem1ldGxlcmkgQS7Fni4xQjBABgNVBAMMOVTDnFJLVFJVU1Qg
|
2644
|
-
RWxla3Ryb25payBTZXJ0aWZpa2EgSGl6bWV0IFNhxJ9sYXnEsWPEsXPEsSBINTAeFw0xMzA0MzAw
|
2645
|
-
ODA3MDFaFw0yMzA0MjgwODA3MDFaMIGxMQswCQYDVQQGEwJUUjEPMA0GA1UEBwwGQW5rYXJhMU0w
|
2646
|
-
SwYDVQQKDERUw5xSS1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUgQmlsacWfaW0gR8O8dmVubGnE
|
2647
|
-
n2kgSGl6bWV0bGVyaSBBLsWeLjFCMEAGA1UEAww5VMOcUktUUlVTVCBFbGVrdHJvbmlrIFNlcnRp
|
2648
|
-
ZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxIEg1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
|
2649
|
-
CgKCAQEApCUZ4WWe60ghUEoI5RHwWrom/4NZzkQqL/7hzmAD/I0Dpe3/a6i6zDQGn1k19uwsu537
|
2650
|
-
jVJp45wnEFPzpALFp/kRGml1bsMdi9GYjZOHp3GXDSHHmflS0yxjXVW86B8BSLlg/kJK9siArs1m
|
2651
|
-
ep5Fimh34khon6La8eHBEJ/rPCmBp+EyCNSgBbGM+42WAA4+Jd9ThiI7/PS98wl+d+yG6w8z5UNP
|
2652
|
-
9FR1bSmZLmZaQ9/LXMrI5Tjxfjs1nQ/0xVqhzPMggCTTV+wVunUlm+hkS7M0hO8EuPbJbKoCPrZV
|
2653
|
-
4jI3X/xml1/N1p7HIL9Nxqw/dV8c7TKcfGkAaZHjIxhT6QIDAQABo0IwQDAdBgNVHQ4EFgQUVpkH
|
2654
|
-
HtOsDGlktAxQR95DLL4gwPswDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZI
|
2655
|
-
hvcNAQELBQADggEBAJ5FdnsXSDLyOIspve6WSk6BGLFRRyDN0GSxDsnZAdkJzsiZ3GglE9Rc8qPo
|
2656
|
-
BP5yCccLqh0lVX6Wmle3usURehnmp349hQ71+S4pL+f5bFgWV1Al9j4uPqrtd3GqqpmWRgqujuwq
|
2657
|
-
URawXs3qZwQcWDD1YIq9pr1N5Za0/EKJAWv2cMhQOQwt1WbZyNKzMrcbGW3LM/nfpeYVhDfwwvJl
|
2658
|
-
lpKQd/Ct9JDpEXjXk4nAPQu6KfTomZ1yju2dL+6SfaHx/126M2CFYv4HAqGEVka+lgqaE9chTLd8
|
2659
|
-
B59OTj+RdPsnnRHM3eaxynFNExc5JsUpISuTKWqW+qtB4Uu2NQvAmxU=
|
2660
|
-
-----END CERTIFICATE-----
|
2661
|
-
|
2662
2638
|
Certinomis - Root CA
|
2663
2639
|
====================
|
2664
2640
|
-----BEGIN CERTIFICATE-----
|
@@ -0,0 +1,63 @@
|
|
1
|
+
module Crm
|
2
|
+
# MailingRecipient represents a mailing recipient email address.
|
3
|
+
# @api public
|
4
|
+
class MailingRecipient < Core::BasicResource
|
5
|
+
include Core::Mixins::Inspectable
|
6
|
+
inspectable :id, :active, :consent, :topic_names
|
7
|
+
|
8
|
+
# Returns the requested mailing recipient.
|
9
|
+
# @example
|
10
|
+
# r = Crm::MailingRecipient.find("abc@example.com")
|
11
|
+
# r.active
|
12
|
+
# # => true
|
13
|
+
# r.consent
|
14
|
+
# # => "unknown"
|
15
|
+
# r.consent_given_at
|
16
|
+
# # => nil
|
17
|
+
# r.consent_revoked_at
|
18
|
+
# # => nil
|
19
|
+
# r.complained_at
|
20
|
+
# # => nil
|
21
|
+
# r.permanent_bounced_at
|
22
|
+
# # => nil
|
23
|
+
# r.topic_names
|
24
|
+
# # => ["foo"]
|
25
|
+
# r.topic_names_unsubscribed
|
26
|
+
# # => ["bar", "baz"]
|
27
|
+
# r.consent_logs
|
28
|
+
# # => [
|
29
|
+
# {
|
30
|
+
# "at"=>"2018-06-20T13:13:32Z",
|
31
|
+
# "description"=>"edited by API2 user root: this is the reason",
|
32
|
+
# "changes"=>{"active"=>["false", "true"]
|
33
|
+
# }
|
34
|
+
# ]
|
35
|
+
# @param email [String] the email address
|
36
|
+
# @return [MailingRecipient]
|
37
|
+
# @api public
|
38
|
+
def self.find(email)
|
39
|
+
if email.blank?
|
40
|
+
raise Crm::Errors::ResourceNotFound.new("Items could not be found.", [email])
|
41
|
+
end
|
42
|
+
new({'id' => email}).reload
|
43
|
+
end
|
44
|
+
|
45
|
+
# Updates the attributes of this mailing recipient.
|
46
|
+
# @example
|
47
|
+
# mailing_recipient.update({
|
48
|
+
# consent: "given",
|
49
|
+
# topic_names: ["foo", "bar"],
|
50
|
+
# edit_reason: "user registered on www.example.com and confirmed the double opt-in email link",
|
51
|
+
# })
|
52
|
+
# mailing_recipient.update({
|
53
|
+
# consent: "revoked",
|
54
|
+
# edit_reason: "user unsubscribed using our newsletter form on www.example.com",
|
55
|
+
# })
|
56
|
+
# @param attributes [Hash{String, Symbol => String}] the new attributes.
|
57
|
+
# @return [self] the updated mailing recipient.
|
58
|
+
# @api public
|
59
|
+
def update(attributes = {})
|
60
|
+
load_attributes(Core::RestApi.instance.put(path, attributes, if_match_header))
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_webcrm_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Infopark AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -119,6 +119,7 @@ files:
|
|
119
119
|
- lib/crm/event.rb
|
120
120
|
- lib/crm/event_contact.rb
|
121
121
|
- lib/crm/mailing.rb
|
122
|
+
- lib/crm/mailing_recipient.rb
|
122
123
|
- lib/crm/template_set.rb
|
123
124
|
- lib/crm/type.rb
|
124
125
|
- lib/infopark_webcrm_sdk.rb
|