pepipost_gem 2.5.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 +7 -0
- data/LICENSE +28 -0
- data/README.md +141 -0
- data/lib/pepipost_gem.rb +40 -0
- data/lib/pepipost_gem/api_helper.rb +273 -0
- data/lib/pepipost_gem/configuration.rb +17 -0
- data/lib/pepipost_gem/controllers/base_controller.rb +49 -0
- data/lib/pepipost_gem/controllers/email_controller.rb +59 -0
- data/lib/pepipost_gem/exceptions/api_exception.rb +18 -0
- data/lib/pepipost_gem/http/faraday_client.rb +55 -0
- data/lib/pepipost_gem/http/http_call_back.rb +22 -0
- data/lib/pepipost_gem/http/http_client.rb +102 -0
- data/lib/pepipost_gem/http/http_context.rb +18 -0
- data/lib/pepipost_gem/http/http_method_enum.rb +11 -0
- data/lib/pepipost_gem/http/http_request.rb +48 -0
- data/lib/pepipost_gem/http/http_response.rb +21 -0
- data/lib/pepipost_gem/models/attachments.rb +42 -0
- data/lib/pepipost_gem/models/attribute.rb +42 -0
- data/lib/pepipost_gem/models/base_model.rb +34 -0
- data/lib/pepipost_gem/models/email_body.rb +119 -0
- data/lib/pepipost_gem/models/email_body_attachments.rb +42 -0
- data/lib/pepipost_gem/models/from.rb +42 -0
- data/lib/pepipost_gem/models/personalizations.rb +85 -0
- data/lib/pepipost_gem/models/send_email_error.rb +42 -0
- data/lib/pepipost_gem/models/send_email_response.rb +52 -0
- data/lib/pepipost_gem/models/settings.rb +69 -0
- data/lib/pepipost_gem/pepipost_gem_client.rb +19 -0
- metadata +152 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
# This file was automatically generated by APIMATIC v2.0
|
2
|
+
# ( https://apimatic.io ).
|
3
|
+
|
4
|
+
module PepipostGem
|
5
|
+
# Settings Model.
|
6
|
+
class Settings < BaseModel
|
7
|
+
# TODO: Write general description for this method
|
8
|
+
# @return [Integer]
|
9
|
+
attr_accessor :footer
|
10
|
+
|
11
|
+
# TODO: Write general description for this method
|
12
|
+
# @return [Integer]
|
13
|
+
attr_accessor :clicktrack
|
14
|
+
|
15
|
+
# TODO: Write general description for this method
|
16
|
+
# @return [Integer]
|
17
|
+
attr_accessor :opentrack
|
18
|
+
|
19
|
+
# TODO: Write general description for this method
|
20
|
+
# @return [Integer]
|
21
|
+
attr_accessor :unsubscribe
|
22
|
+
|
23
|
+
# TODO: Write general description for this method
|
24
|
+
# @return [String]
|
25
|
+
attr_accessor :bcc
|
26
|
+
|
27
|
+
# A mapping from model property names to API property names.
|
28
|
+
def self.names
|
29
|
+
@_hash = {} if @_hash.nil?
|
30
|
+
@_hash['footer'] = 'footer'
|
31
|
+
@_hash['clicktrack'] = 'clicktrack'
|
32
|
+
@_hash['opentrack'] = 'opentrack'
|
33
|
+
@_hash['unsubscribe'] = 'unsubscribe'
|
34
|
+
@_hash['bcc'] = 'bcc'
|
35
|
+
@_hash
|
36
|
+
end
|
37
|
+
|
38
|
+
def initialize(footer = nil,
|
39
|
+
clicktrack = nil,
|
40
|
+
opentrack = nil,
|
41
|
+
unsubscribe = nil,
|
42
|
+
bcc = nil)
|
43
|
+
@footer = footer
|
44
|
+
@clicktrack = clicktrack
|
45
|
+
@opentrack = opentrack
|
46
|
+
@unsubscribe = unsubscribe
|
47
|
+
@bcc = bcc
|
48
|
+
end
|
49
|
+
|
50
|
+
# Creates an instance of the object from a hash.
|
51
|
+
def self.from_hash(hash)
|
52
|
+
return nil unless hash
|
53
|
+
|
54
|
+
# Extract variables from the hash.
|
55
|
+
footer = hash['footer']
|
56
|
+
clicktrack = hash['clicktrack']
|
57
|
+
opentrack = hash['opentrack']
|
58
|
+
unsubscribe = hash['unsubscribe']
|
59
|
+
bcc = hash['bcc']
|
60
|
+
|
61
|
+
# Create object from extracted values.
|
62
|
+
Settings.new(footer,
|
63
|
+
clicktrack,
|
64
|
+
opentrack,
|
65
|
+
unsubscribe,
|
66
|
+
bcc)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# This file was automatically generated by APIMATIC v2.0
|
2
|
+
# ( https://apimatic.io ).
|
3
|
+
|
4
|
+
module PepipostGem
|
5
|
+
# pepipost_gem client class.
|
6
|
+
class PepipostGemClient
|
7
|
+
# Singleton access to email controller.
|
8
|
+
# @return [EmailController] Returns the controller instance.
|
9
|
+
def email
|
10
|
+
EmailController.instance
|
11
|
+
end
|
12
|
+
|
13
|
+
# Returns the configuration class for easy access.
|
14
|
+
# @return [Configuration] Returns the actual configuration class.
|
15
|
+
def config
|
16
|
+
Configuration
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,152 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pepipost_gem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.5.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dx Team Pepipost
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-08-31 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: logging
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.10.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.10.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: test-unit
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.1.5
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.1.5
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: certifi
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2016.9'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 2016.09.26
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '2016.9'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 2016.09.26
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: faraday-http-cache
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '1.2'
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.2.2
|
85
|
+
type: :runtime
|
86
|
+
prerelease: false
|
87
|
+
version_requirements: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '1.2'
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 1.2.2
|
95
|
+
description: Pepipost is a cloud-based SMTP relay service that delivers highly personalised
|
96
|
+
transactional emails to the inbox within seconds of your customer’s transaction
|
97
|
+
email: dx@pepipost.com
|
98
|
+
executables: []
|
99
|
+
extensions: []
|
100
|
+
extra_rdoc_files: []
|
101
|
+
files:
|
102
|
+
- LICENSE
|
103
|
+
- README.md
|
104
|
+
- lib/pepipost_gem.rb
|
105
|
+
- lib/pepipost_gem/api_helper.rb
|
106
|
+
- lib/pepipost_gem/configuration.rb
|
107
|
+
- lib/pepipost_gem/controllers/base_controller.rb
|
108
|
+
- lib/pepipost_gem/controllers/email_controller.rb
|
109
|
+
- lib/pepipost_gem/exceptions/api_exception.rb
|
110
|
+
- lib/pepipost_gem/http/faraday_client.rb
|
111
|
+
- lib/pepipost_gem/http/http_call_back.rb
|
112
|
+
- lib/pepipost_gem/http/http_client.rb
|
113
|
+
- lib/pepipost_gem/http/http_context.rb
|
114
|
+
- lib/pepipost_gem/http/http_method_enum.rb
|
115
|
+
- lib/pepipost_gem/http/http_request.rb
|
116
|
+
- lib/pepipost_gem/http/http_response.rb
|
117
|
+
- lib/pepipost_gem/models/attachments.rb
|
118
|
+
- lib/pepipost_gem/models/attribute.rb
|
119
|
+
- lib/pepipost_gem/models/base_model.rb
|
120
|
+
- lib/pepipost_gem/models/email_body.rb
|
121
|
+
- lib/pepipost_gem/models/email_body_attachments.rb
|
122
|
+
- lib/pepipost_gem/models/from.rb
|
123
|
+
- lib/pepipost_gem/models/personalizations.rb
|
124
|
+
- lib/pepipost_gem/models/send_email_error.rb
|
125
|
+
- lib/pepipost_gem/models/send_email_response.rb
|
126
|
+
- lib/pepipost_gem/models/settings.rb
|
127
|
+
- lib/pepipost_gem/pepipost_gem_client.rb
|
128
|
+
homepage: https://pepipost.com
|
129
|
+
licenses:
|
130
|
+
- MIT
|
131
|
+
metadata: {}
|
132
|
+
post_install_message:
|
133
|
+
rdoc_options: []
|
134
|
+
require_paths:
|
135
|
+
- lib
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - "~>"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '2.0'
|
141
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
requirements: []
|
147
|
+
rubyforge_project:
|
148
|
+
rubygems_version: 2.5.2.1
|
149
|
+
signing_key:
|
150
|
+
specification_version: 4
|
151
|
+
summary: pepipost_gem
|
152
|
+
test_files: []
|