mailslurp_client 9.0.0 → 11.0.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5df6d22ba2d40ac2dd06298d8fe6c6c8bc609820d32b5844726c2554315da10
|
4
|
+
data.tar.gz: b7c7f99d1a6a5e48966e31a72fc1aed3a920736ab8d561d0e6b4703e9217dec3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3894ac016bb3628a14958d2cf973be12b3e4b3bf73185c6b17b46f8303207039e75e6097a0c3a1792b894ffb038b4ded6c6d9ec0996b084310dcabc199feca8e
|
7
|
+
data.tar.gz: 7f38b2f109f313afbaf743da8766adc5c80872928d50efbc3a4a9e5ac6224b3d4157cf07cbc0d771549c9a059589851fd0660093ede2bca5b6a93665915eba18
|
@@ -21,33 +21,35 @@ module MailSlurpClient
|
|
21
21
|
end
|
22
22
|
# Create new random inbox
|
23
23
|
# Returns an Inbox with an `id` and an `emailAddress`
|
24
|
-
# @param use_domain_pool [Boolean] useDomainPool
|
25
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [DateTime] :expires_at expiresAt
|
26
|
+
# @option opts [Integer] :expires_in expiresIn
|
27
|
+
# @option opts [Boolean] :use_domain_pool useDomainPool
|
26
28
|
# @return [Inbox]
|
27
|
-
def create_new_email_address(
|
28
|
-
data, _status_code, _headers = create_new_email_address_with_http_info(
|
29
|
+
def create_new_email_address(opts = {})
|
30
|
+
data, _status_code, _headers = create_new_email_address_with_http_info(opts)
|
29
31
|
data
|
30
32
|
end
|
31
33
|
|
32
34
|
# Create new random inbox
|
33
35
|
# Returns an Inbox with an `id` and an `emailAddress`
|
34
|
-
# @param use_domain_pool [Boolean] useDomainPool
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [DateTime] :expires_at expiresAt
|
38
|
+
# @option opts [Integer] :expires_in expiresIn
|
39
|
+
# @option opts [Boolean] :use_domain_pool useDomainPool
|
36
40
|
# @return [Array<(Inbox, Integer, Hash)>] Inbox data, response status code and response headers
|
37
|
-
def create_new_email_address_with_http_info(
|
41
|
+
def create_new_email_address_with_http_info(opts = {})
|
38
42
|
if @api_client.config.debugging
|
39
43
|
@api_client.config.logger.debug 'Calling API: CommonActionsControllerApi.create_new_email_address ...'
|
40
44
|
end
|
41
|
-
# verify the required parameter 'use_domain_pool' is set
|
42
|
-
if @api_client.config.client_side_validation && use_domain_pool.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'use_domain_pool' when calling CommonActionsControllerApi.create_new_email_address"
|
44
|
-
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/createInbox'
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
50
|
-
query_params[:'
|
50
|
+
query_params[:'expiresAt'] = opts[:'expires_at'] if !opts[:'expires_at'].nil?
|
51
|
+
query_params[:'expiresIn'] = opts[:'expires_in'] if !opts[:'expires_in'].nil?
|
52
|
+
query_params[:'useDomainPool'] = opts[:'use_domain_pool'] if !opts[:'use_domain_pool'].nil?
|
51
53
|
|
52
54
|
# header parameters
|
53
55
|
header_params = opts[:header_params] || {}
|
@@ -84,33 +86,35 @@ module MailSlurpClient
|
|
84
86
|
|
85
87
|
# Create new random inbox
|
86
88
|
# Returns an Inbox with an `id` and an `emailAddress`
|
87
|
-
# @param use_domain_pool [Boolean] useDomainPool
|
88
89
|
# @param [Hash] opts the optional parameters
|
90
|
+
# @option opts [DateTime] :expires_at expiresAt
|
91
|
+
# @option opts [Integer] :expires_in expiresIn
|
92
|
+
# @option opts [Boolean] :use_domain_pool useDomainPool
|
89
93
|
# @return [Inbox]
|
90
|
-
def create_new_email_address1(
|
91
|
-
data, _status_code, _headers = create_new_email_address1_with_http_info(
|
94
|
+
def create_new_email_address1(opts = {})
|
95
|
+
data, _status_code, _headers = create_new_email_address1_with_http_info(opts)
|
92
96
|
data
|
93
97
|
end
|
94
98
|
|
95
99
|
# Create new random inbox
|
96
100
|
# Returns an Inbox with an `id` and an `emailAddress`
|
97
|
-
# @param use_domain_pool [Boolean] useDomainPool
|
98
101
|
# @param [Hash] opts the optional parameters
|
102
|
+
# @option opts [DateTime] :expires_at expiresAt
|
103
|
+
# @option opts [Integer] :expires_in expiresIn
|
104
|
+
# @option opts [Boolean] :use_domain_pool useDomainPool
|
99
105
|
# @return [Array<(Inbox, Integer, Hash)>] Inbox data, response status code and response headers
|
100
|
-
def create_new_email_address1_with_http_info(
|
106
|
+
def create_new_email_address1_with_http_info(opts = {})
|
101
107
|
if @api_client.config.debugging
|
102
108
|
@api_client.config.logger.debug 'Calling API: CommonActionsControllerApi.create_new_email_address1 ...'
|
103
109
|
end
|
104
|
-
# verify the required parameter 'use_domain_pool' is set
|
105
|
-
if @api_client.config.client_side_validation && use_domain_pool.nil?
|
106
|
-
fail ArgumentError, "Missing the required parameter 'use_domain_pool' when calling CommonActionsControllerApi.create_new_email_address1"
|
107
|
-
end
|
108
110
|
# resource path
|
109
111
|
local_var_path = '/newEmailAddress'
|
110
112
|
|
111
113
|
# query parameters
|
112
114
|
query_params = opts[:query_params] || {}
|
113
|
-
query_params[:'
|
115
|
+
query_params[:'expiresAt'] = opts[:'expires_at'] if !opts[:'expires_at'].nil?
|
116
|
+
query_params[:'expiresIn'] = opts[:'expires_in'] if !opts[:'expires_in'].nil?
|
117
|
+
query_params[:'useDomainPool'] = opts[:'use_domain_pool'] if !opts[:'use_domain_pool'].nil?
|
114
118
|
|
115
119
|
# header parameters
|
116
120
|
header_params = opts[:header_params] || {}
|
@@ -25,6 +25,7 @@ module MailSlurpClient
|
|
25
25
|
# @option opts [String] :description Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with
|
26
26
|
# @option opts [String] :email_address A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.
|
27
27
|
# @option opts [DateTime] :expires_at Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX.
|
28
|
+
# @option opts [Integer] :expires_in Number of milliseconds that inbox should exist for
|
28
29
|
# @option opts [Boolean] :favourite Is the inbox favorited. Favouriting inboxes is typically done in the dashboard for quick access or filtering
|
29
30
|
# @option opts [String] :name Optional name of the inbox. Displayed in the dashboard for easier search
|
30
31
|
# @option opts [Array<String>] :tags Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.
|
@@ -41,6 +42,7 @@ module MailSlurpClient
|
|
41
42
|
# @option opts [String] :description Optional description of the inbox for labelling purposes. Is shown in the dashboard and can be used with
|
42
43
|
# @option opts [String] :email_address A custom email address to use with the inbox. Defaults to null. When null MailSlurp will assign a random email address to the inbox such as `123@mailslurp.com`. If you use the `useDomainPool` option when the email address is null it will generate an email address with a more varied domain ending such as `123@mailslurp.info` or `123@mailslurp.biz`. When a custom email address is provided the address is split into a domain and the domain is queried against your user. If you have created the domain in the MailSlurp dashboard and verified it you can use any email address that ends with the domain. Send an email to this address and the inbox will receive and store it for you. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.
|
43
44
|
# @option opts [DateTime] :expires_at Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX.
|
45
|
+
# @option opts [Integer] :expires_in Number of milliseconds that inbox should exist for
|
44
46
|
# @option opts [Boolean] :favourite Is the inbox favorited. Favouriting inboxes is typically done in the dashboard for quick access or filtering
|
45
47
|
# @option opts [String] :name Optional name of the inbox. Displayed in the dashboard for easier search
|
46
48
|
# @option opts [Array<String>] :tags Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.
|
@@ -58,6 +60,7 @@ module MailSlurpClient
|
|
58
60
|
query_params[:'description'] = opts[:'description'] if !opts[:'description'].nil?
|
59
61
|
query_params[:'emailAddress'] = opts[:'email_address'] if !opts[:'email_address'].nil?
|
60
62
|
query_params[:'expiresAt'] = opts[:'expires_at'] if !opts[:'expires_at'].nil?
|
63
|
+
query_params[:'expiresIn'] = opts[:'expires_in'] if !opts[:'expires_in'].nil?
|
61
64
|
query_params[:'favourite'] = opts[:'favourite'] if !opts[:'favourite'].nil?
|
62
65
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
63
66
|
query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :multi) if !opts[:'tags'].nil?
|
@@ -24,6 +24,9 @@ module MailSlurpClient
|
|
24
24
|
# Optional inbox expiration date. If null then this inbox is permanent and the emails in it won't be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd'T'HH:mm:ss.SSSXXX.
|
25
25
|
attr_accessor :expires_at
|
26
26
|
|
27
|
+
# Number of milliseconds that inbox should exist for
|
28
|
+
attr_accessor :expires_in
|
29
|
+
|
27
30
|
# Is the inbox favorited. Favouriting inboxes is typically done in the dashboard for quick access or filtering
|
28
31
|
attr_accessor :favourite
|
29
32
|
|
@@ -42,6 +45,7 @@ module MailSlurpClient
|
|
42
45
|
:'description' => :'description',
|
43
46
|
:'email_address' => :'emailAddress',
|
44
47
|
:'expires_at' => :'expiresAt',
|
48
|
+
:'expires_in' => :'expiresIn',
|
45
49
|
:'favourite' => :'favourite',
|
46
50
|
:'name' => :'name',
|
47
51
|
:'tags' => :'tags',
|
@@ -55,6 +59,7 @@ module MailSlurpClient
|
|
55
59
|
:'description' => :'String',
|
56
60
|
:'email_address' => :'String',
|
57
61
|
:'expires_at' => :'DateTime',
|
62
|
+
:'expires_in' => :'Integer',
|
58
63
|
:'favourite' => :'Boolean',
|
59
64
|
:'name' => :'String',
|
60
65
|
:'tags' => :'Array<String>',
|
@@ -95,6 +100,10 @@ module MailSlurpClient
|
|
95
100
|
self.expires_at = attributes[:'expires_at']
|
96
101
|
end
|
97
102
|
|
103
|
+
if attributes.key?(:'expires_in')
|
104
|
+
self.expires_in = attributes[:'expires_in']
|
105
|
+
end
|
106
|
+
|
98
107
|
if attributes.key?(:'favourite')
|
99
108
|
self.favourite = attributes[:'favourite']
|
100
109
|
end
|
@@ -135,6 +144,7 @@ module MailSlurpClient
|
|
135
144
|
description == o.description &&
|
136
145
|
email_address == o.email_address &&
|
137
146
|
expires_at == o.expires_at &&
|
147
|
+
expires_in == o.expires_in &&
|
138
148
|
favourite == o.favourite &&
|
139
149
|
name == o.name &&
|
140
150
|
tags == o.tags &&
|
@@ -150,7 +160,7 @@ module MailSlurpClient
|
|
150
160
|
# Calculates hash code according to all attributes.
|
151
161
|
# @return [Integer] Hash code
|
152
162
|
def hash
|
153
|
-
[description, email_address, expires_at, favourite, name, tags, use_domain_pool].hash
|
163
|
+
[description, email_address, expires_at, expires_in, favourite, name, tags, use_domain_pool].hash
|
154
164
|
end
|
155
165
|
|
156
166
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 11.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Create emails addresses in Ruby then send and receive real emails and
|
14
14
|
attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.
|