pingram 1.0.19 → 1.0.22
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 +3 -3
- data/lib/pingram/api/account_api.rb +70 -66
- data/lib/pingram/api/email_api.rb +61 -0
- data/lib/pingram/api/members_api.rb +2 -2
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/client_wrapper.rb +0 -10
- data/lib/pingram/models/{push_settings_fcm_response.rb → campaign_webhook_response.rb} +20 -19
- data/lib/pingram/models/create_account_request.rb +150 -0
- data/lib/pingram/models/create_account_response.rb +30 -30
- data/lib/pingram/models/{create_account_request_body.rb → create_personal_access_token_request.rb} +18 -7
- data/lib/pingram/models/create_personal_access_token_response.rb +313 -0
- data/lib/pingram/models/{apn_config.rb → delete_email_suppressions_response.rb} +36 -86
- data/lib/pingram/models/get_members_response_inner.rb +29 -1
- data/lib/pingram/models/intercom_webhook_data_item_any_of.rb +1 -0
- data/lib/pingram/models/list_invoices_response.rb +194 -0
- data/lib/pingram/models/list_invoices_response_invoices_inner.rb +389 -0
- data/lib/pingram/models/{push_settings_fcm_put_request.rb → list_personal_access_tokens_response.rb} +21 -19
- data/lib/pingram/models/list_personal_access_tokens_response_tokens_inner.rb +287 -0
- data/lib/pingram/models/member_update_request.rb +1 -0
- data/lib/pingram/models/sender_post_body.rb +1 -11
- data/lib/pingram/models/ten_dlc_brand_registration_details.rb +14 -14
- data/lib/pingram/models/ten_dlc_campaign_registration_details.rb +457 -0
- data/lib/pingram/models/ten_dlc_campaign_update_request.rb +363 -0
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +11 -5
- data/vendor/bundle/ruby/3.2.0/cache/io-console-0.9.2.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/reline-0.7.0.gem +0 -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.8.2 → io-console-0.9.2}/gem_make.out +15 -14
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.8.2 → io-console-0.9.2}/mkmf.log +112 -109
- 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
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/Makefile +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/console.c +521 -28
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/extconf.rb +13 -14
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/ext/io/console/win32_vk.inc +313 -165
- data/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/lib/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io/ansi.rb +6 -4
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io/windows.rb +49 -23
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io.rb +8 -2
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/line_editor.rb +49 -21
- data/vendor/bundle/ruby/3.2.0/gems/reline-0.7.0/lib/reline/version.rb +3 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline.rb +10 -9
- data/vendor/bundle/ruby/3.2.0/specifications/{io-console-0.8.2.gemspec → io-console-0.9.2.gemspec} +3 -3
- data/vendor/bundle/ruby/3.2.0/specifications/{reline-0.6.3.gemspec → reline-0.7.0.gemspec} +2 -2
- metadata +55 -49
- data/lib/pingram/api/push_settings_api.rb +0 -374
- data/vendor/bundle/ruby/3.2.0/cache/io-console-0.8.2.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/cache/reline-0.6.3.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/io-console-0.8.2/lib/io/console.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/reline-0.6.3/lib/reline/version.rb +0 -3
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.8.2 → io-console-0.9.2}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/.document +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/BSDL +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/COPYING +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/README.md +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.8.2 → io-console-0.9.2}/lib/io/console/size.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/BSDL +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/COPYING +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/README.md +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/config.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/face.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/history.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/io/dumb.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/base.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/composite.rb +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/emacs.rb +2 -2
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/vi_command.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor/vi_insert.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_actor.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/key_stroke.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/kill_ring.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/unicode/east_asian_width.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/lib/reline/unicode.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{reline-0.6.3 → reline-0.7.0}/license_of_rb-readline +0 -0
|
@@ -0,0 +1,389 @@
|
|
|
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
|
+
class ListInvoicesResponseInvoicesInner < ApiModelBase
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
# Human-readable invoice number, when assigned.
|
|
21
|
+
attr_accessor :number
|
|
22
|
+
|
|
23
|
+
attr_accessor :status
|
|
24
|
+
|
|
25
|
+
attr_accessor :currency
|
|
26
|
+
|
|
27
|
+
# Total amount due on the invoice (cents).
|
|
28
|
+
attr_accessor :total
|
|
29
|
+
|
|
30
|
+
attr_accessor :amount_due
|
|
31
|
+
|
|
32
|
+
attr_accessor :amount_paid
|
|
33
|
+
|
|
34
|
+
# Unix timestamp (seconds) when the invoice was created.
|
|
35
|
+
attr_accessor :created
|
|
36
|
+
|
|
37
|
+
# Stripe-hosted invoice page (receipt / pay).
|
|
38
|
+
attr_accessor :hosted_invoice_url
|
|
39
|
+
|
|
40
|
+
# Direct PDF download URL.
|
|
41
|
+
attr_accessor :invoice_pdf
|
|
42
|
+
|
|
43
|
+
# Billing period start (unix seconds), when applicable.
|
|
44
|
+
attr_accessor :period_start
|
|
45
|
+
|
|
46
|
+
# Billing period end (unix seconds), when applicable.
|
|
47
|
+
attr_accessor :period_end
|
|
48
|
+
|
|
49
|
+
class EnumAttributeValidator
|
|
50
|
+
attr_reader :datatype
|
|
51
|
+
attr_reader :allowable_values
|
|
52
|
+
|
|
53
|
+
def initialize(datatype, allowable_values)
|
|
54
|
+
@allowable_values = allowable_values.map do |value|
|
|
55
|
+
case datatype.to_s
|
|
56
|
+
when /Integer/i
|
|
57
|
+
value.to_i
|
|
58
|
+
when /Float/i
|
|
59
|
+
value.to_f
|
|
60
|
+
else
|
|
61
|
+
value
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def valid?(value)
|
|
67
|
+
!value || allowable_values.include?(value)
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
|
+
def self.attribute_map
|
|
73
|
+
{
|
|
74
|
+
:'id' => :'id',
|
|
75
|
+
:'number' => :'number',
|
|
76
|
+
:'status' => :'status',
|
|
77
|
+
:'currency' => :'currency',
|
|
78
|
+
:'total' => :'total',
|
|
79
|
+
:'amount_due' => :'amountDue',
|
|
80
|
+
:'amount_paid' => :'amountPaid',
|
|
81
|
+
:'created' => :'created',
|
|
82
|
+
:'hosted_invoice_url' => :'hostedInvoiceUrl',
|
|
83
|
+
:'invoice_pdf' => :'invoicePdf',
|
|
84
|
+
:'period_start' => :'periodStart',
|
|
85
|
+
:'period_end' => :'periodEnd'
|
|
86
|
+
}
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Returns attribute mapping this model knows about
|
|
90
|
+
def self.acceptable_attribute_map
|
|
91
|
+
attribute_map
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Returns all the JSON keys this model knows about
|
|
95
|
+
def self.acceptable_attributes
|
|
96
|
+
acceptable_attribute_map.values
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Attribute type mapping.
|
|
100
|
+
def self.openapi_types
|
|
101
|
+
{
|
|
102
|
+
:'id' => :'String',
|
|
103
|
+
:'number' => :'String',
|
|
104
|
+
:'status' => :'String',
|
|
105
|
+
:'currency' => :'String',
|
|
106
|
+
:'total' => :'Float',
|
|
107
|
+
:'amount_due' => :'Float',
|
|
108
|
+
:'amount_paid' => :'Float',
|
|
109
|
+
:'created' => :'Float',
|
|
110
|
+
:'hosted_invoice_url' => :'String',
|
|
111
|
+
:'invoice_pdf' => :'String',
|
|
112
|
+
:'period_start' => :'Float',
|
|
113
|
+
:'period_end' => :'Float'
|
|
114
|
+
}
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# List of attributes with nullable: true
|
|
118
|
+
def self.openapi_nullable
|
|
119
|
+
Set.new([
|
|
120
|
+
])
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Initializes the object
|
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
125
|
+
def initialize(attributes = {})
|
|
126
|
+
if (!attributes.is_a?(Hash))
|
|
127
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::ListInvoicesResponseInvoicesInner` initialize method"
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
131
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
132
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
133
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
134
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::ListInvoicesResponseInvoicesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
135
|
+
end
|
|
136
|
+
h[k.to_sym] = v
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'id')
|
|
140
|
+
self.id = attributes[:'id']
|
|
141
|
+
else
|
|
142
|
+
self.id = nil
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'number')
|
|
146
|
+
self.number = attributes[:'number']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'status')
|
|
150
|
+
self.status = attributes[:'status']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'currency')
|
|
154
|
+
self.currency = attributes[:'currency']
|
|
155
|
+
else
|
|
156
|
+
self.currency = nil
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if attributes.key?(:'total')
|
|
160
|
+
self.total = attributes[:'total']
|
|
161
|
+
else
|
|
162
|
+
self.total = nil
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'amount_due')
|
|
166
|
+
self.amount_due = attributes[:'amount_due']
|
|
167
|
+
else
|
|
168
|
+
self.amount_due = nil
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if attributes.key?(:'amount_paid')
|
|
172
|
+
self.amount_paid = attributes[:'amount_paid']
|
|
173
|
+
else
|
|
174
|
+
self.amount_paid = nil
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
if attributes.key?(:'created')
|
|
178
|
+
self.created = attributes[:'created']
|
|
179
|
+
else
|
|
180
|
+
self.created = nil
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if attributes.key?(:'hosted_invoice_url')
|
|
184
|
+
self.hosted_invoice_url = attributes[:'hosted_invoice_url']
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if attributes.key?(:'invoice_pdf')
|
|
188
|
+
self.invoice_pdf = attributes[:'invoice_pdf']
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if attributes.key?(:'period_start')
|
|
192
|
+
self.period_start = attributes[:'period_start']
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if attributes.key?(:'period_end')
|
|
196
|
+
self.period_end = attributes[:'period_end']
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
201
|
+
# @return Array for valid properties with the reasons
|
|
202
|
+
def list_invalid_properties
|
|
203
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
204
|
+
invalid_properties = Array.new
|
|
205
|
+
if @id.nil?
|
|
206
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if @currency.nil?
|
|
210
|
+
invalid_properties.push('invalid value for "currency", currency cannot be nil.')
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if @total.nil?
|
|
214
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if @amount_due.nil?
|
|
218
|
+
invalid_properties.push('invalid value for "amount_due", amount_due cannot be nil.')
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if @amount_paid.nil?
|
|
222
|
+
invalid_properties.push('invalid value for "amount_paid", amount_paid cannot be nil.')
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if @created.nil?
|
|
226
|
+
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
invalid_properties
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Check to see if the all the properties in the model are valid
|
|
233
|
+
# @return true if the model is valid
|
|
234
|
+
def valid?
|
|
235
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
236
|
+
return false if @id.nil?
|
|
237
|
+
status_validator = EnumAttributeValidator.new('String', ["draft", "open", "paid", "uncollectible", "void"])
|
|
238
|
+
return false unless status_validator.valid?(@status)
|
|
239
|
+
return false if @currency.nil?
|
|
240
|
+
return false if @total.nil?
|
|
241
|
+
return false if @amount_due.nil?
|
|
242
|
+
return false if @amount_paid.nil?
|
|
243
|
+
return false if @created.nil?
|
|
244
|
+
true
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# Custom attribute writer method with validation
|
|
248
|
+
# @param [Object] id Value to be assigned
|
|
249
|
+
def id=(id)
|
|
250
|
+
if id.nil?
|
|
251
|
+
fail ArgumentError, 'id cannot be nil'
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
@id = id
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
258
|
+
# @param [Object] status Object to be assigned
|
|
259
|
+
def status=(status)
|
|
260
|
+
validator = EnumAttributeValidator.new('String', ["draft", "open", "paid", "uncollectible", "void"])
|
|
261
|
+
unless validator.valid?(status)
|
|
262
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
263
|
+
end
|
|
264
|
+
@status = status
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
# Custom attribute writer method with validation
|
|
268
|
+
# @param [Object] currency Value to be assigned
|
|
269
|
+
def currency=(currency)
|
|
270
|
+
if currency.nil?
|
|
271
|
+
fail ArgumentError, 'currency cannot be nil'
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
@currency = currency
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Custom attribute writer method with validation
|
|
278
|
+
# @param [Object] total Value to be assigned
|
|
279
|
+
def total=(total)
|
|
280
|
+
if total.nil?
|
|
281
|
+
fail ArgumentError, 'total cannot be nil'
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
@total = total
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# Custom attribute writer method with validation
|
|
288
|
+
# @param [Object] amount_due Value to be assigned
|
|
289
|
+
def amount_due=(amount_due)
|
|
290
|
+
if amount_due.nil?
|
|
291
|
+
fail ArgumentError, 'amount_due cannot be nil'
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
@amount_due = amount_due
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Custom attribute writer method with validation
|
|
298
|
+
# @param [Object] amount_paid Value to be assigned
|
|
299
|
+
def amount_paid=(amount_paid)
|
|
300
|
+
if amount_paid.nil?
|
|
301
|
+
fail ArgumentError, 'amount_paid cannot be nil'
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
@amount_paid = amount_paid
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Custom attribute writer method with validation
|
|
308
|
+
# @param [Object] created Value to be assigned
|
|
309
|
+
def created=(created)
|
|
310
|
+
if created.nil?
|
|
311
|
+
fail ArgumentError, 'created cannot be nil'
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
@created = created
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Checks equality by comparing each attribute.
|
|
318
|
+
# @param [Object] Object to be compared
|
|
319
|
+
def ==(o)
|
|
320
|
+
return true if self.equal?(o)
|
|
321
|
+
self.class == o.class &&
|
|
322
|
+
id == o.id &&
|
|
323
|
+
number == o.number &&
|
|
324
|
+
status == o.status &&
|
|
325
|
+
currency == o.currency &&
|
|
326
|
+
total == o.total &&
|
|
327
|
+
amount_due == o.amount_due &&
|
|
328
|
+
amount_paid == o.amount_paid &&
|
|
329
|
+
created == o.created &&
|
|
330
|
+
hosted_invoice_url == o.hosted_invoice_url &&
|
|
331
|
+
invoice_pdf == o.invoice_pdf &&
|
|
332
|
+
period_start == o.period_start &&
|
|
333
|
+
period_end == o.period_end
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# @see the `==` method
|
|
337
|
+
# @param [Object] Object to be compared
|
|
338
|
+
def eql?(o)
|
|
339
|
+
self == o
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Calculates hash code according to all attributes.
|
|
343
|
+
# @return [Integer] Hash code
|
|
344
|
+
def hash
|
|
345
|
+
[id, number, status, currency, total, amount_due, amount_paid, created, hosted_invoice_url, invoice_pdf, period_start, period_end].hash
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
# Builds the object from hash
|
|
349
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
350
|
+
# @return [Object] Returns the model itself
|
|
351
|
+
def self.build_from_hash(attributes)
|
|
352
|
+
return nil unless attributes.is_a?(Hash)
|
|
353
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
354
|
+
transformed_hash = {}
|
|
355
|
+
openapi_types.each_pair do |key, type|
|
|
356
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
357
|
+
transformed_hash["#{key}"] = nil
|
|
358
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
359
|
+
# check to ensure the input is an array given that the attribute
|
|
360
|
+
# is documented as an array but the input is not
|
|
361
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
362
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
363
|
+
end
|
|
364
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
365
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
366
|
+
end
|
|
367
|
+
end
|
|
368
|
+
new(transformed_hash)
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# Returns the object in the form of hash
|
|
372
|
+
# @return [Hash] Returns the object in the form of hash
|
|
373
|
+
def to_hash
|
|
374
|
+
hash = {}
|
|
375
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
376
|
+
value = self.send(attr)
|
|
377
|
+
if value.nil?
|
|
378
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
379
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
hash[param] = _to_hash(value)
|
|
383
|
+
end
|
|
384
|
+
hash
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
end
|
data/lib/pingram/models/{push_settings_fcm_put_request.rb → list_personal_access_tokens_response.rb}
RENAMED
|
@@ -14,13 +14,13 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
class
|
|
18
|
-
attr_accessor :
|
|
17
|
+
class ListPersonalAccessTokensResponse < ApiModelBase
|
|
18
|
+
attr_accessor :tokens
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
21
|
def self.attribute_map
|
|
22
22
|
{
|
|
23
|
-
:'
|
|
23
|
+
:'tokens' => :'tokens'
|
|
24
24
|
}
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -37,7 +37,7 @@ module Pingram
|
|
|
37
37
|
# Attribute type mapping.
|
|
38
38
|
def self.openapi_types
|
|
39
39
|
{
|
|
40
|
-
:'
|
|
40
|
+
:'tokens' => :'Array<ListPersonalAccessTokensResponseTokensInner>'
|
|
41
41
|
}
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -51,22 +51,24 @@ module Pingram
|
|
|
51
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
52
|
def initialize(attributes = {})
|
|
53
53
|
if (!attributes.is_a?(Hash))
|
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::ListPersonalAccessTokensResponse` initialize method"
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
58
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
60
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::ListPersonalAccessTokensResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
62
|
end
|
|
63
63
|
h[k.to_sym] = v
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
if attributes.key?(:'
|
|
67
|
-
|
|
66
|
+
if attributes.key?(:'tokens')
|
|
67
|
+
if (value = attributes[:'tokens']).is_a?(Array)
|
|
68
|
+
self.tokens = value
|
|
69
|
+
end
|
|
68
70
|
else
|
|
69
|
-
self.
|
|
71
|
+
self.tokens = nil
|
|
70
72
|
end
|
|
71
73
|
end
|
|
72
74
|
|
|
@@ -75,8 +77,8 @@ module Pingram
|
|
|
75
77
|
def list_invalid_properties
|
|
76
78
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
79
|
invalid_properties = Array.new
|
|
78
|
-
if @
|
|
79
|
-
invalid_properties.push('invalid value for "
|
|
80
|
+
if @tokens.nil?
|
|
81
|
+
invalid_properties.push('invalid value for "tokens", tokens cannot be nil.')
|
|
80
82
|
end
|
|
81
83
|
|
|
82
84
|
invalid_properties
|
|
@@ -86,18 +88,18 @@ module Pingram
|
|
|
86
88
|
# @return true if the model is valid
|
|
87
89
|
def valid?
|
|
88
90
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
89
|
-
return false if @
|
|
91
|
+
return false if @tokens.nil?
|
|
90
92
|
true
|
|
91
93
|
end
|
|
92
94
|
|
|
93
95
|
# Custom attribute writer method with validation
|
|
94
|
-
# @param [Object]
|
|
95
|
-
def
|
|
96
|
-
if
|
|
97
|
-
fail ArgumentError, '
|
|
96
|
+
# @param [Object] tokens Value to be assigned
|
|
97
|
+
def tokens=(tokens)
|
|
98
|
+
if tokens.nil?
|
|
99
|
+
fail ArgumentError, 'tokens cannot be nil'
|
|
98
100
|
end
|
|
99
101
|
|
|
100
|
-
@
|
|
102
|
+
@tokens = tokens
|
|
101
103
|
end
|
|
102
104
|
|
|
103
105
|
# Checks equality by comparing each attribute.
|
|
@@ -105,7 +107,7 @@ module Pingram
|
|
|
105
107
|
def ==(o)
|
|
106
108
|
return true if self.equal?(o)
|
|
107
109
|
self.class == o.class &&
|
|
108
|
-
|
|
110
|
+
tokens == o.tokens
|
|
109
111
|
end
|
|
110
112
|
|
|
111
113
|
# @see the `==` method
|
|
@@ -117,7 +119,7 @@ module Pingram
|
|
|
117
119
|
# Calculates hash code according to all attributes.
|
|
118
120
|
# @return [Integer] Hash code
|
|
119
121
|
def hash
|
|
120
|
-
[
|
|
122
|
+
[tokens].hash
|
|
121
123
|
end
|
|
122
124
|
|
|
123
125
|
# Builds the object from hash
|