pingram 1.0.22 → 1.0.23
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/Gemfile.lock +1 -1
- data/lib/pingram/api/accounts_api.rb +143 -0
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/client_wrapper.rb +10 -0
- data/lib/pingram/models/account_get_response.rb +25 -4
- data/lib/pingram/models/billing_post_response_body.rb +22 -1
- data/lib/pingram/models/create_account_request.rb +45 -9
- data/lib/pingram/models/create_account_request_plan.rb +216 -0
- data/lib/pingram/models/create_account_response.rb +103 -30
- data/lib/pingram/models/first_account_request.rb +150 -0
- data/lib/pingram/models/first_account_response.rb +190 -0
- data/lib/pingram/models/list_accounts_response.rb +167 -0
- data/lib/pingram/models/list_accounts_response_accounts_inner.rb +304 -0
- data/lib/pingram/models/phone_verify_confirm_response.rb +13 -4
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +6 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/mkmf.log +3 -3
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
- metadata +8 -2
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pingram
|
|
3
|
+
|
|
4
|
+
#Internal API for notification delivery and management
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Pingram
|
|
17
|
+
# Response for GET /accounts
|
|
18
|
+
class ListAccountsResponse < ApiModelBase
|
|
19
|
+
attr_accessor :accounts
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'accounts' => :'accounts'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Returns attribute mapping this model knows about
|
|
29
|
+
def self.acceptable_attribute_map
|
|
30
|
+
attribute_map
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
|
34
|
+
def self.acceptable_attributes
|
|
35
|
+
acceptable_attribute_map.values
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'accounts' => :'Array<ListAccountsResponseAccountsInner>'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# List of attributes with nullable: true
|
|
46
|
+
def self.openapi_nullable
|
|
47
|
+
Set.new([
|
|
48
|
+
])
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Initializes the object
|
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::ListAccountsResponse` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::ListAccountsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
|
+
end
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'accounts')
|
|
68
|
+
if (value = attributes[:'accounts']).is_a?(Array)
|
|
69
|
+
self.accounts = value
|
|
70
|
+
end
|
|
71
|
+
else
|
|
72
|
+
self.accounts = nil
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
77
|
+
# @return Array for valid properties with the reasons
|
|
78
|
+
def list_invalid_properties
|
|
79
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
80
|
+
invalid_properties = Array.new
|
|
81
|
+
if @accounts.nil?
|
|
82
|
+
invalid_properties.push('invalid value for "accounts", accounts cannot be nil.')
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
invalid_properties
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Check to see if the all the properties in the model are valid
|
|
89
|
+
# @return true if the model is valid
|
|
90
|
+
def valid?
|
|
91
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
92
|
+
return false if @accounts.nil?
|
|
93
|
+
true
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Custom attribute writer method with validation
|
|
97
|
+
# @param [Object] accounts Value to be assigned
|
|
98
|
+
def accounts=(accounts)
|
|
99
|
+
if accounts.nil?
|
|
100
|
+
fail ArgumentError, 'accounts cannot be nil'
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
@accounts = accounts
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param [Object] Object to be compared
|
|
108
|
+
def ==(o)
|
|
109
|
+
return true if self.equal?(o)
|
|
110
|
+
self.class == o.class &&
|
|
111
|
+
accounts == o.accounts
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# @see the `==` method
|
|
115
|
+
# @param [Object] Object to be compared
|
|
116
|
+
def eql?(o)
|
|
117
|
+
self == o
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Calculates hash code according to all attributes.
|
|
121
|
+
# @return [Integer] Hash code
|
|
122
|
+
def hash
|
|
123
|
+
[accounts].hash
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Builds the object from hash
|
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
+
# @return [Object] Returns the model itself
|
|
129
|
+
def self.build_from_hash(attributes)
|
|
130
|
+
return nil unless attributes.is_a?(Hash)
|
|
131
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
132
|
+
transformed_hash = {}
|
|
133
|
+
openapi_types.each_pair do |key, type|
|
|
134
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
135
|
+
transformed_hash["#{key}"] = nil
|
|
136
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
137
|
+
# check to ensure the input is an array given that the attribute
|
|
138
|
+
# is documented as an array but the input is not
|
|
139
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
140
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
141
|
+
end
|
|
142
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
143
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
new(transformed_hash)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Returns the object in the form of hash
|
|
150
|
+
# @return [Hash] Returns the object in the form of hash
|
|
151
|
+
def to_hash
|
|
152
|
+
hash = {}
|
|
153
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
154
|
+
value = self.send(attr)
|
|
155
|
+
if value.nil?
|
|
156
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
157
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
hash[param] = _to_hash(value)
|
|
161
|
+
end
|
|
162
|
+
hash
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
end
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pingram
|
|
3
|
+
|
|
4
|
+
#Internal API for notification delivery and management
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Pingram
|
|
17
|
+
# Summary of an account the user can access (GET /accounts).
|
|
18
|
+
class ListAccountsResponseAccountsInner < ApiModelBase
|
|
19
|
+
attr_accessor :account_id
|
|
20
|
+
|
|
21
|
+
attr_accessor :name
|
|
22
|
+
|
|
23
|
+
attr_accessor :account_type
|
|
24
|
+
|
|
25
|
+
attr_accessor :created_at
|
|
26
|
+
|
|
27
|
+
attr_accessor :status
|
|
28
|
+
|
|
29
|
+
attr_accessor :cost_cap
|
|
30
|
+
|
|
31
|
+
class EnumAttributeValidator
|
|
32
|
+
attr_reader :datatype
|
|
33
|
+
attr_reader :allowable_values
|
|
34
|
+
|
|
35
|
+
def initialize(datatype, allowable_values)
|
|
36
|
+
@allowable_values = allowable_values.map do |value|
|
|
37
|
+
case datatype.to_s
|
|
38
|
+
when /Integer/i
|
|
39
|
+
value.to_i
|
|
40
|
+
when /Float/i
|
|
41
|
+
value.to_f
|
|
42
|
+
else
|
|
43
|
+
value
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def valid?(value)
|
|
49
|
+
!value || allowable_values.include?(value)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
54
|
+
def self.attribute_map
|
|
55
|
+
{
|
|
56
|
+
:'account_id' => :'accountId',
|
|
57
|
+
:'name' => :'name',
|
|
58
|
+
:'account_type' => :'accountType',
|
|
59
|
+
:'created_at' => :'createdAt',
|
|
60
|
+
:'status' => :'status',
|
|
61
|
+
:'cost_cap' => :'costCap'
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Returns attribute mapping this model knows about
|
|
66
|
+
def self.acceptable_attribute_map
|
|
67
|
+
attribute_map
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Returns all the JSON keys this model knows about
|
|
71
|
+
def self.acceptable_attributes
|
|
72
|
+
acceptable_attribute_map.values
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Attribute type mapping.
|
|
76
|
+
def self.openapi_types
|
|
77
|
+
{
|
|
78
|
+
:'account_id' => :'String',
|
|
79
|
+
:'name' => :'String',
|
|
80
|
+
:'account_type' => :'String',
|
|
81
|
+
:'created_at' => :'String',
|
|
82
|
+
:'status' => :'String',
|
|
83
|
+
:'cost_cap' => :'Float'
|
|
84
|
+
}
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# List of attributes with nullable: true
|
|
88
|
+
def self.openapi_nullable
|
|
89
|
+
Set.new([
|
|
90
|
+
])
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Initializes the object
|
|
94
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
95
|
+
def initialize(attributes = {})
|
|
96
|
+
if (!attributes.is_a?(Hash))
|
|
97
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::ListAccountsResponseAccountsInner` initialize method"
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
101
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
102
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
103
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
104
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::ListAccountsResponseAccountsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
105
|
+
end
|
|
106
|
+
h[k.to_sym] = v
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'account_id')
|
|
110
|
+
self.account_id = attributes[:'account_id']
|
|
111
|
+
else
|
|
112
|
+
self.account_id = nil
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'name')
|
|
116
|
+
self.name = attributes[:'name']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'account_type')
|
|
120
|
+
self.account_type = attributes[:'account_type']
|
|
121
|
+
else
|
|
122
|
+
self.account_type = nil
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'created_at')
|
|
126
|
+
self.created_at = attributes[:'created_at']
|
|
127
|
+
else
|
|
128
|
+
self.created_at = nil
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'status')
|
|
132
|
+
self.status = attributes[:'status']
|
|
133
|
+
else
|
|
134
|
+
self.status = nil
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'cost_cap')
|
|
138
|
+
self.cost_cap = attributes[:'cost_cap']
|
|
139
|
+
else
|
|
140
|
+
self.cost_cap = nil
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
145
|
+
# @return Array for valid properties with the reasons
|
|
146
|
+
def list_invalid_properties
|
|
147
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
148
|
+
invalid_properties = Array.new
|
|
149
|
+
if @account_id.nil?
|
|
150
|
+
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if @account_type.nil?
|
|
154
|
+
invalid_properties.push('invalid value for "account_type", account_type cannot be nil.')
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if @created_at.nil?
|
|
158
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if @status.nil?
|
|
162
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if @cost_cap.nil?
|
|
166
|
+
invalid_properties.push('invalid value for "cost_cap", cost_cap cannot be nil.')
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
invalid_properties
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Check to see if the all the properties in the model are valid
|
|
173
|
+
# @return true if the model is valid
|
|
174
|
+
def valid?
|
|
175
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
176
|
+
return false if @account_id.nil?
|
|
177
|
+
return false if @account_type.nil?
|
|
178
|
+
account_type_validator = EnumAttributeValidator.new('String', ["free", "paid"])
|
|
179
|
+
return false unless account_type_validator.valid?(@account_type)
|
|
180
|
+
return false if @created_at.nil?
|
|
181
|
+
return false if @status.nil?
|
|
182
|
+
status_validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
|
|
183
|
+
return false unless status_validator.valid?(@status)
|
|
184
|
+
return false if @cost_cap.nil?
|
|
185
|
+
true
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Custom attribute writer method with validation
|
|
189
|
+
# @param [Object] account_id Value to be assigned
|
|
190
|
+
def account_id=(account_id)
|
|
191
|
+
if account_id.nil?
|
|
192
|
+
fail ArgumentError, 'account_id cannot be nil'
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
@account_id = account_id
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
199
|
+
# @param [Object] account_type Object to be assigned
|
|
200
|
+
def account_type=(account_type)
|
|
201
|
+
validator = EnumAttributeValidator.new('String', ["free", "paid"])
|
|
202
|
+
unless validator.valid?(account_type)
|
|
203
|
+
fail ArgumentError, "invalid value for \"account_type\", must be one of #{validator.allowable_values}."
|
|
204
|
+
end
|
|
205
|
+
@account_type = account_type
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Custom attribute writer method with validation
|
|
209
|
+
# @param [Object] created_at Value to be assigned
|
|
210
|
+
def created_at=(created_at)
|
|
211
|
+
if created_at.nil?
|
|
212
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
@created_at = created_at
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
219
|
+
# @param [Object] status Object to be assigned
|
|
220
|
+
def status=(status)
|
|
221
|
+
validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
|
|
222
|
+
unless validator.valid?(status)
|
|
223
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
224
|
+
end
|
|
225
|
+
@status = status
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# Custom attribute writer method with validation
|
|
229
|
+
# @param [Object] cost_cap Value to be assigned
|
|
230
|
+
def cost_cap=(cost_cap)
|
|
231
|
+
if cost_cap.nil?
|
|
232
|
+
fail ArgumentError, 'cost_cap cannot be nil'
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
@cost_cap = cost_cap
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Checks equality by comparing each attribute.
|
|
239
|
+
# @param [Object] Object to be compared
|
|
240
|
+
def ==(o)
|
|
241
|
+
return true if self.equal?(o)
|
|
242
|
+
self.class == o.class &&
|
|
243
|
+
account_id == o.account_id &&
|
|
244
|
+
name == o.name &&
|
|
245
|
+
account_type == o.account_type &&
|
|
246
|
+
created_at == o.created_at &&
|
|
247
|
+
status == o.status &&
|
|
248
|
+
cost_cap == o.cost_cap
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# @see the `==` method
|
|
252
|
+
# @param [Object] Object to be compared
|
|
253
|
+
def eql?(o)
|
|
254
|
+
self == o
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Calculates hash code according to all attributes.
|
|
258
|
+
# @return [Integer] Hash code
|
|
259
|
+
def hash
|
|
260
|
+
[account_id, name, account_type, created_at, status, cost_cap].hash
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# Builds the object from hash
|
|
264
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
265
|
+
# @return [Object] Returns the model itself
|
|
266
|
+
def self.build_from_hash(attributes)
|
|
267
|
+
return nil unless attributes.is_a?(Hash)
|
|
268
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
269
|
+
transformed_hash = {}
|
|
270
|
+
openapi_types.each_pair do |key, type|
|
|
271
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
272
|
+
transformed_hash["#{key}"] = nil
|
|
273
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
274
|
+
# check to ensure the input is an array given that the attribute
|
|
275
|
+
# is documented as an array but the input is not
|
|
276
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
277
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
278
|
+
end
|
|
279
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
280
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
new(transformed_hash)
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Returns the object in the form of hash
|
|
287
|
+
# @return [Hash] Returns the object in the form of hash
|
|
288
|
+
def to_hash
|
|
289
|
+
hash = {}
|
|
290
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
291
|
+
value = self.send(attr)
|
|
292
|
+
if value.nil?
|
|
293
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
294
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
hash[param] = _to_hash(value)
|
|
298
|
+
end
|
|
299
|
+
hash
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
end
|
|
@@ -17,10 +17,13 @@ module Pingram
|
|
|
17
17
|
class PhoneVerifyConfirmResponse < ApiModelBase
|
|
18
18
|
attr_accessor :verified
|
|
19
19
|
|
|
20
|
+
attr_accessor :account_id
|
|
21
|
+
|
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
23
|
def self.attribute_map
|
|
22
24
|
{
|
|
23
|
-
:'verified' => :'verified'
|
|
25
|
+
:'verified' => :'verified',
|
|
26
|
+
:'account_id' => :'accountId'
|
|
24
27
|
}
|
|
25
28
|
end
|
|
26
29
|
|
|
@@ -37,7 +40,8 @@ module Pingram
|
|
|
37
40
|
# Attribute type mapping.
|
|
38
41
|
def self.openapi_types
|
|
39
42
|
{
|
|
40
|
-
:'verified' => :'Boolean'
|
|
43
|
+
:'verified' => :'Boolean',
|
|
44
|
+
:'account_id' => :'String'
|
|
41
45
|
}
|
|
42
46
|
end
|
|
43
47
|
|
|
@@ -68,6 +72,10 @@ module Pingram
|
|
|
68
72
|
else
|
|
69
73
|
self.verified = nil
|
|
70
74
|
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'account_id')
|
|
77
|
+
self.account_id = attributes[:'account_id']
|
|
78
|
+
end
|
|
71
79
|
end
|
|
72
80
|
|
|
73
81
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -105,7 +113,8 @@ module Pingram
|
|
|
105
113
|
def ==(o)
|
|
106
114
|
return true if self.equal?(o)
|
|
107
115
|
self.class == o.class &&
|
|
108
|
-
verified == o.verified
|
|
116
|
+
verified == o.verified &&
|
|
117
|
+
account_id == o.account_id
|
|
109
118
|
end
|
|
110
119
|
|
|
111
120
|
# @see the `==` method
|
|
@@ -117,7 +126,7 @@ module Pingram
|
|
|
117
126
|
# Calculates hash code according to all attributes.
|
|
118
127
|
# @return [Integer] Hash code
|
|
119
128
|
def hash
|
|
120
|
-
[verified].hash
|
|
129
|
+
[verified, account_id].hash
|
|
121
130
|
end
|
|
122
131
|
|
|
123
132
|
# Builds the object from hash
|
data/lib/pingram/version.rb
CHANGED
data/lib/pingram.rb
CHANGED
|
@@ -52,6 +52,7 @@ require 'pingram/models/change_email_request'
|
|
|
52
52
|
require 'pingram/models/change_phone_request'
|
|
53
53
|
require 'pingram/models/channels_enum'
|
|
54
54
|
require 'pingram/models/create_account_request'
|
|
55
|
+
require 'pingram/models/create_account_request_plan'
|
|
55
56
|
require 'pingram/models/create_account_response'
|
|
56
57
|
require 'pingram/models/create_address_request'
|
|
57
58
|
require 'pingram/models/create_key_request'
|
|
@@ -79,6 +80,8 @@ require 'pingram/models/environment_create_request'
|
|
|
79
80
|
require 'pingram/models/environment_patch_request'
|
|
80
81
|
require 'pingram/models/events_webhook_response'
|
|
81
82
|
require 'pingram/models/events_webhook_upsert_request'
|
|
83
|
+
require 'pingram/models/first_account_request'
|
|
84
|
+
require 'pingram/models/first_account_response'
|
|
82
85
|
require 'pingram/models/get_account_metadata_response'
|
|
83
86
|
require 'pingram/models/get_account_metadata_response_user_account_metadata'
|
|
84
87
|
require 'pingram/models/get_email_components_response_inner'
|
|
@@ -175,6 +178,8 @@ require 'pingram/models/intercom_webhook_data_item_any_of_source_author'
|
|
|
175
178
|
require 'pingram/models/invite_post_response'
|
|
176
179
|
require 'pingram/models/knowledge'
|
|
177
180
|
require 'pingram/models/knowledge_documents_inner'
|
|
181
|
+
require 'pingram/models/list_accounts_response'
|
|
182
|
+
require 'pingram/models/list_accounts_response_accounts_inner'
|
|
178
183
|
require 'pingram/models/list_invoices_response'
|
|
179
184
|
require 'pingram/models/list_invoices_response_invoices_inner'
|
|
180
185
|
require 'pingram/models/list_personal_access_tokens_response'
|
|
@@ -289,6 +294,7 @@ require 'pingram/models/webhook_response'
|
|
|
289
294
|
|
|
290
295
|
# APIs
|
|
291
296
|
require 'pingram/api/account_api'
|
|
297
|
+
require 'pingram/api/accounts_api'
|
|
292
298
|
require 'pingram/api/addresses_api'
|
|
293
299
|
require 'pingram/api/components_api'
|
|
294
300
|
require 'pingram/api/default_api'
|
|
@@ -3,10 +3,10 @@ current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/v
|
|
|
3
3
|
creating Makefile
|
|
4
4
|
|
|
5
5
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/byebug-13.0.0/ext/byebug
|
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-osa8hm sitelibdir\=./.gem.20260820-2534-osa8hm clean
|
|
7
7
|
|
|
8
8
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/byebug-13.0.0/ext/byebug
|
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-osa8hm sitelibdir\=./.gem.20260820-2534-osa8hm
|
|
10
10
|
compiling breakpoint.c
|
|
11
11
|
compiling byebug.c
|
|
12
12
|
byebug.c: In function ‘check_started’:
|
|
@@ -35,8 +35,8 @@ compiling threads.c
|
|
|
35
35
|
linking shared-object byebug/byebug.so
|
|
36
36
|
|
|
37
37
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/byebug-13.0.0/ext/byebug
|
|
38
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
39
|
-
/usr/bin/install -c -m 0755 byebug.so ./.gem.
|
|
38
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-osa8hm sitelibdir\=./.gem.20260820-2534-osa8hm install
|
|
39
|
+
/usr/bin/install -c -m 0755 byebug.so ./.gem.20260820-2534-osa8hm/byebug
|
|
40
40
|
|
|
41
41
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/byebug-13.0.0/ext/byebug
|
|
42
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
42
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-osa8hm sitelibdir\=./.gem.20260820-2534-osa8hm clean
|
|
@@ -6,10 +6,10 @@ checking for altzone in time.h with -Werror... no
|
|
|
6
6
|
creating Makefile
|
|
7
7
|
|
|
8
8
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/date-3.5.1/ext/date
|
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-tvjbd5 sitelibdir\=./.gem.20260820-2534-tvjbd5 clean
|
|
10
10
|
|
|
11
11
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/date-3.5.1/ext/date
|
|
12
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
12
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-tvjbd5 sitelibdir\=./.gem.20260820-2534-tvjbd5
|
|
13
13
|
compiling date_core.c
|
|
14
14
|
compiling date_parse.c
|
|
15
15
|
compiling date_strftime.c
|
|
@@ -17,8 +17,8 @@ compiling date_strptime.c
|
|
|
17
17
|
linking shared-object date_core.so
|
|
18
18
|
|
|
19
19
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/date-3.5.1/ext/date
|
|
20
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
21
|
-
/usr/bin/install -c -m 0755 date_core.so ./.gem.
|
|
20
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-tvjbd5 sitelibdir\=./.gem.20260820-2534-tvjbd5 install
|
|
21
|
+
/usr/bin/install -c -m 0755 date_core.so ./.gem.20260820-2534-tvjbd5
|
|
22
22
|
|
|
23
23
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/date-3.5.1/ext/date
|
|
24
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
24
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-tvjbd5 sitelibdir\=./.gem.20260820-2534-tvjbd5 clean
|
|
@@ -17,16 +17,16 @@ checking for rb_prepend_module()... yes
|
|
|
17
17
|
creating Makefile
|
|
18
18
|
|
|
19
19
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console
|
|
20
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
20
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-619pxo sitelibdir\=./.gem.20260820-2534-619pxo clean
|
|
21
21
|
|
|
22
22
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console
|
|
23
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
23
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-619pxo sitelibdir\=./.gem.20260820-2534-619pxo
|
|
24
24
|
compiling console.c
|
|
25
25
|
linking shared-object io/console.so
|
|
26
26
|
|
|
27
27
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console
|
|
28
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
29
|
-
/usr/bin/install -c -m 0755 console.so ./.gem.
|
|
28
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-619pxo sitelibdir\=./.gem.20260820-2534-619pxo install
|
|
29
|
+
/usr/bin/install -c -m 0755 console.so ./.gem.20260820-2534-619pxo/io
|
|
30
30
|
|
|
31
31
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console
|
|
32
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
32
|
+
make DESTDIR\= sitearchdir\=./.gem.20260820-2534-619pxo sitelibdir\=./.gem.20260820-2534-619pxo clean
|
|
@@ -143,7 +143,7 @@ checked program was:
|
|
|
143
143
|
/* end */
|
|
144
144
|
|
|
145
145
|
LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/3.2.11/x64/lib "gcc -o conftest -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/ruby/backward -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0 -I. -DENABLE_PATH_CHECK=0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -lruby -lm -lpthread -lc"
|
|
146
|
-
/usr/bin/ld: /tmp/
|
|
146
|
+
/usr/bin/ld: /tmp/cc2jkr0s.o: in function `t':
|
|
147
147
|
/home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console/conftest.c:17:(.text+0xb): undefined reference to `rb_io_path'
|
|
148
148
|
collect2: error: ld returned 1 exit status
|
|
149
149
|
checked program was:
|
|
@@ -203,7 +203,7 @@ checked program was:
|
|
|
203
203
|
/* end */
|
|
204
204
|
|
|
205
205
|
LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/3.2.11/x64/lib "gcc -o conftest -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/ruby/backward -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0 -I. -DENABLE_PATH_CHECK=0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -lruby -lm -lpthread -lc"
|
|
206
|
-
/usr/bin/ld: /tmp/
|
|
206
|
+
/usr/bin/ld: /tmp/cc9KIj9X.o: in function `t':
|
|
207
207
|
/home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console/conftest.c:17:(.text+0xb): undefined reference to `rb_io_closed_p'
|
|
208
208
|
collect2: error: ld returned 1 exit status
|
|
209
209
|
checked program was:
|
|
@@ -263,7 +263,7 @@ checked program was:
|
|
|
263
263
|
/* end */
|
|
264
264
|
|
|
265
265
|
LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/3.2.11/x64/lib "gcc -o conftest -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/ruby/backward -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0 -I. -DENABLE_PATH_CHECK=0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -lruby -lm -lpthread -lc"
|
|
266
|
-
/usr/bin/ld: /tmp/
|
|
266
|
+
/usr/bin/ld: /tmp/ccoh6Z5N.o: in function `t':
|
|
267
267
|
/home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console/conftest.c:17:(.text+0xb): undefined reference to `rb_io_open_descriptor'
|
|
268
268
|
collect2: error: ld returned 1 exit status
|
|
269
269
|
checked program was:
|