late-sdk 0.0.539 → 0.0.541

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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -42
  3. data/docs/AdAudiencesApi.md +5 -5
  4. data/docs/AdCampaignsApi.md +0 -142
  5. data/docs/AdsApi.md +18 -700
  6. data/docs/InboxApi.md +79 -0
  7. data/docs/InboxWebhookMessageAttachmentsInner.md +1 -1
  8. data/docs/SMSApi.md +1 -276
  9. data/docs/SendSmsRequest.md +1 -1
  10. data/docs/WebhookPayloadMessageMessage.md +1 -1
  11. data/docs/WebhookPayloadMessageMessageAttachmentsInner.md +22 -0
  12. data/docs/WebhookPayloadMessageSentMessage.md +1 -1
  13. data/docs/WebhookPayloadMessageSentMessageAttachmentsInner.md +22 -0
  14. data/lib/zernio-sdk/api/ad_audiences_api.rb +4 -4
  15. data/lib/zernio-sdk/api/ad_campaigns_api.rb +0 -142
  16. data/lib/zernio-sdk/api/ads_api.rb +39 -739
  17. data/lib/zernio-sdk/api/inbox_api.rb +92 -0
  18. data/lib/zernio-sdk/api/sms_api.rb +2 -256
  19. data/lib/zernio-sdk/models/inbox_webhook_message_attachments_inner.rb +1 -1
  20. data/lib/zernio-sdk/models/send_sms_request.rb +1 -1
  21. data/lib/zernio-sdk/models/webhook_payload_message_message.rb +1 -1
  22. data/lib/zernio-sdk/models/{create_sms_sender_id_request.rb → webhook_payload_message_message_attachments_inner.rb} +52 -33
  23. data/lib/zernio-sdk/models/webhook_payload_message_sent_message.rb +1 -1
  24. data/lib/zernio-sdk/models/{update_ad_creative_request.rb → webhook_payload_message_sent_message_attachments_inner.rb} +46 -44
  25. data/lib/zernio-sdk/version.rb +1 -1
  26. data/lib/zernio-sdk.rb +3 -26
  27. data/openapi.yaml +87 -624
  28. data/spec/api/ad_audiences_api_spec.rb +2 -2
  29. data/spec/api/ad_campaigns_api_spec.rb +0 -25
  30. data/spec/api/ads_api_spec.rb +0 -128
  31. data/spec/api/inbox_api_spec.rb +48 -0
  32. data/spec/api/sms_api_spec.rb +1 -47
  33. data/spec/models/{list_ad_images200_response_spec.rb → webhook_payload_message_message_attachments_inner_spec.rb} +9 -9
  34. data/spec/models/{list_ad_creatives200_response_spec.rb → webhook_payload_message_sent_message_attachments_inner_spec.rb} +9 -9
  35. data/zernio-sdk-0.0.541.gem +0 -0
  36. metadata +14 -106
  37. data/docs/CreateAdCampaign201Response.md +0 -24
  38. data/docs/CreateAdCampaignRequest.md +0 -32
  39. data/docs/CreateAdCreative201Response.md +0 -20
  40. data/docs/CreateAdCreativeRequest.md +0 -38
  41. data/docs/CreateAdCreativeRequestCarouselCardsInner.md +0 -26
  42. data/docs/CreateSmsSenderId200Response.md +0 -22
  43. data/docs/CreateSmsSenderIdRequest.md +0 -18
  44. data/docs/DeleteAdCreative200Response.md +0 -20
  45. data/docs/DeleteSmsSenderId200Response.md +0 -18
  46. data/docs/DuplicateAd200Response.md +0 -22
  47. data/docs/DuplicateAdRequest.md +0 -28
  48. data/docs/DuplicateAdSet200Response.md +0 -22
  49. data/docs/DuplicateAdSetRequest.md +0 -36
  50. data/docs/GetAdCreative200Response.md +0 -18
  51. data/docs/ListAdCreatives200Response.md +0 -22
  52. data/docs/ListAdImages200Response.md +0 -22
  53. data/docs/ListAdLabels200Response.md +0 -22
  54. data/docs/ListHighDemandPeriods200Response.md +0 -22
  55. data/docs/ListSmsSenderIds200Response.md +0 -20
  56. data/docs/ListSmsSenderIds200ResponseBudget.md +0 -24
  57. data/docs/ListSmsSenderIds200ResponseBudgetPendingRequest.md +0 -22
  58. data/docs/ListSmsSenderIds200ResponseSenderIdsInner.md +0 -24
  59. data/docs/RequestSmsSenderIdLimitIncrease200Response.md +0 -20
  60. data/docs/RequestSmsSenderIdLimitIncreaseRequest.md +0 -20
  61. data/docs/UpdateAdCreative200Response.md +0 -22
  62. data/docs/UpdateAdCreativeRequest.md +0 -20
  63. data/lib/zernio-sdk/models/create_ad_campaign201_response.rb +0 -210
  64. data/lib/zernio-sdk/models/create_ad_campaign_request.rb +0 -343
  65. data/lib/zernio-sdk/models/create_ad_creative201_response.rb +0 -157
  66. data/lib/zernio-sdk/models/create_ad_creative_request.rb +0 -390
  67. data/lib/zernio-sdk/models/create_ad_creative_request_carousel_cards_inner.rb +0 -255
  68. data/lib/zernio-sdk/models/create_sms_sender_id200_response.rb +0 -166
  69. data/lib/zernio-sdk/models/delete_ad_creative200_response.rb +0 -156
  70. data/lib/zernio-sdk/models/delete_sms_sender_id200_response.rb +0 -147
  71. data/lib/zernio-sdk/models/duplicate_ad200_response.rb +0 -200
  72. data/lib/zernio-sdk/models/duplicate_ad_request.rb +0 -243
  73. data/lib/zernio-sdk/models/duplicate_ad_set200_response.rb +0 -201
  74. data/lib/zernio-sdk/models/duplicate_ad_set_request.rb +0 -302
  75. data/lib/zernio-sdk/models/get_ad_creative200_response.rb +0 -148
  76. data/lib/zernio-sdk/models/list_ad_creatives200_response.rb +0 -167
  77. data/lib/zernio-sdk/models/list_ad_images200_response.rb +0 -167
  78. data/lib/zernio-sdk/models/list_ad_labels200_response.rb +0 -167
  79. data/lib/zernio-sdk/models/list_high_demand_periods200_response.rb +0 -168
  80. data/lib/zernio-sdk/models/list_sms_sender_ids200_response.rb +0 -158
  81. data/lib/zernio-sdk/models/list_sms_sender_ids200_response_budget.rb +0 -178
  82. data/lib/zernio-sdk/models/list_sms_sender_ids200_response_budget_pending_request.rb +0 -167
  83. data/lib/zernio-sdk/models/list_sms_sender_ids200_response_sender_ids_inner.rb +0 -175
  84. data/lib/zernio-sdk/models/request_sms_sender_id_limit_increase200_response.rb +0 -156
  85. data/lib/zernio-sdk/models/request_sms_sender_id_limit_increase_request.rb +0 -210
  86. data/lib/zernio-sdk/models/update_ad_creative200_response.rb +0 -165
  87. data/spec/models/create_ad_campaign201_response_spec.rb +0 -58
  88. data/spec/models/create_ad_campaign_request_spec.rb +0 -94
  89. data/spec/models/create_ad_creative201_response_spec.rb +0 -42
  90. data/spec/models/create_ad_creative_request_carousel_cards_inner_spec.rb +0 -60
  91. data/spec/models/create_ad_creative_request_spec.rb +0 -96
  92. data/spec/models/create_sms_sender_id200_response_spec.rb +0 -48
  93. data/spec/models/create_sms_sender_id_request_spec.rb +0 -36
  94. data/spec/models/delete_ad_creative200_response_spec.rb +0 -42
  95. data/spec/models/delete_sms_sender_id200_response_spec.rb +0 -36
  96. data/spec/models/duplicate_ad200_response_spec.rb +0 -52
  97. data/spec/models/duplicate_ad_request_spec.rb +0 -74
  98. data/spec/models/duplicate_ad_set200_response_spec.rb +0 -52
  99. data/spec/models/duplicate_ad_set_request_spec.rb +0 -102
  100. data/spec/models/get_ad_creative200_response_spec.rb +0 -36
  101. data/spec/models/list_ad_labels200_response_spec.rb +0 -48
  102. data/spec/models/list_high_demand_periods200_response_spec.rb +0 -48
  103. data/spec/models/list_sms_sender_ids200_response_budget_pending_request_spec.rb +0 -48
  104. data/spec/models/list_sms_sender_ids200_response_budget_spec.rb +0 -54
  105. data/spec/models/list_sms_sender_ids200_response_sender_ids_inner_spec.rb +0 -54
  106. data/spec/models/list_sms_sender_ids200_response_spec.rb +0 -42
  107. data/spec/models/request_sms_sender_id_limit_increase200_response_spec.rb +0 -42
  108. data/spec/models/request_sms_sender_id_limit_increase_request_spec.rb +0 -42
  109. data/spec/models/update_ad_creative200_response_spec.rb +0 -48
  110. data/spec/models/update_ad_creative_request_spec.rb +0 -42
  111. data/zernio-sdk-0.0.539.gem +0 -0
@@ -1,178 +0,0 @@
1
- =begin
2
- #Zernio API
3
-
4
- #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
-
6
- The version of the OpenAPI document: 1.0.4
7
- Contact: support@zernio.com
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 Zernio
17
- # Workspace-wide daily sending budget, shared by every sender ID (resets midnight UTC).
18
- class ListSmsSenderIds200ResponseBudget < ApiModelBase
19
- # Daily message cap (raisable via `/v1/sms/sender-ids/limit-request`).
20
- attr_accessor :cap
21
-
22
- # Messages already counted against today's cap.
23
- attr_accessor :used_today
24
-
25
- # Cap tier (Level 1 = 500/day).
26
- attr_accessor :level
27
-
28
- attr_accessor :pending_request
29
-
30
- # Attribute mapping from ruby-style variable name to JSON key.
31
- def self.attribute_map
32
- {
33
- :'cap' => :'cap',
34
- :'used_today' => :'usedToday',
35
- :'level' => :'level',
36
- :'pending_request' => :'pendingRequest'
37
- }
38
- end
39
-
40
- # Returns attribute mapping this model knows about
41
- def self.acceptable_attribute_map
42
- attribute_map
43
- end
44
-
45
- # Returns all the JSON keys this model knows about
46
- def self.acceptable_attributes
47
- acceptable_attribute_map.values
48
- end
49
-
50
- # Attribute type mapping.
51
- def self.openapi_types
52
- {
53
- :'cap' => :'Integer',
54
- :'used_today' => :'Integer',
55
- :'level' => :'Integer',
56
- :'pending_request' => :'ListSmsSenderIds200ResponseBudgetPendingRequest'
57
- }
58
- end
59
-
60
- # List of attributes with nullable: true
61
- def self.openapi_nullable
62
- Set.new([
63
- ])
64
- end
65
-
66
- # Initializes the object
67
- # @param [Hash] attributes Model attributes in the form of hash
68
- def initialize(attributes = {})
69
- if (!attributes.is_a?(Hash))
70
- fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::ListSmsSenderIds200ResponseBudget` initialize method"
71
- end
72
-
73
- # check to see if the attribute exists and convert string to symbol for hash key
74
- acceptable_attribute_map = self.class.acceptable_attribute_map
75
- attributes = attributes.each_with_object({}) { |(k, v), h|
76
- if (!acceptable_attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::ListSmsSenderIds200ResponseBudget`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
- end
79
- h[k.to_sym] = v
80
- }
81
-
82
- if attributes.key?(:'cap')
83
- self.cap = attributes[:'cap']
84
- end
85
-
86
- if attributes.key?(:'used_today')
87
- self.used_today = attributes[:'used_today']
88
- end
89
-
90
- if attributes.key?(:'level')
91
- self.level = attributes[:'level']
92
- end
93
-
94
- if attributes.key?(:'pending_request')
95
- self.pending_request = attributes[:'pending_request']
96
- end
97
- end
98
-
99
- # Show invalid properties with the reasons. Usually used together with valid?
100
- # @return Array for valid properties with the reasons
101
- def list_invalid_properties
102
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
103
- invalid_properties = Array.new
104
- invalid_properties
105
- end
106
-
107
- # Check to see if the all the properties in the model are valid
108
- # @return true if the model is valid
109
- def valid?
110
- warn '[DEPRECATED] the `valid?` method is obsolete'
111
- true
112
- end
113
-
114
- # Checks equality by comparing each attribute.
115
- # @param [Object] Object to be compared
116
- def ==(o)
117
- return true if self.equal?(o)
118
- self.class == o.class &&
119
- cap == o.cap &&
120
- used_today == o.used_today &&
121
- level == o.level &&
122
- pending_request == o.pending_request
123
- end
124
-
125
- # @see the `==` method
126
- # @param [Object] Object to be compared
127
- def eql?(o)
128
- self == o
129
- end
130
-
131
- # Calculates hash code according to all attributes.
132
- # @return [Integer] Hash code
133
- def hash
134
- [cap, used_today, level, pending_request].hash
135
- end
136
-
137
- # Builds the object from hash
138
- # @param [Hash] attributes Model attributes in the form of hash
139
- # @return [Object] Returns the model itself
140
- def self.build_from_hash(attributes)
141
- return nil unless attributes.is_a?(Hash)
142
- attributes = attributes.transform_keys(&:to_sym)
143
- transformed_hash = {}
144
- openapi_types.each_pair do |key, type|
145
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
146
- transformed_hash["#{key}"] = nil
147
- elsif type =~ /\AArray<(.*)>/i
148
- # check to ensure the input is an array given that the attribute
149
- # is documented as an array but the input is not
150
- if attributes[attribute_map[key]].is_a?(Array)
151
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
152
- end
153
- elsif !attributes[attribute_map[key]].nil?
154
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
155
- end
156
- end
157
- new(transformed_hash)
158
- end
159
-
160
- # Returns the object in the form of hash
161
- # @return [Hash] Returns the object in the form of hash
162
- def to_hash
163
- hash = {}
164
- self.class.attribute_map.each_pair do |attr, param|
165
- value = self.send(attr)
166
- if value.nil?
167
- is_nullable = self.class.openapi_nullable.include?(attr)
168
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
169
- end
170
-
171
- hash[param] = _to_hash(value)
172
- end
173
- hash
174
- end
175
-
176
- end
177
-
178
- end
@@ -1,167 +0,0 @@
1
- =begin
2
- #Zernio API
3
-
4
- #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
-
6
- The version of the OpenAPI document: 1.0.4
7
- Contact: support@zernio.com
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 Zernio
17
- # The in-flight cap-raise request awaiting review, or null. While set, further requests return 409.
18
- class ListSmsSenderIds200ResponseBudgetPendingRequest < ApiModelBase
19
- attr_accessor :requested_cap
20
-
21
- attr_accessor :level
22
-
23
- attr_accessor :requested_at
24
-
25
- # Attribute mapping from ruby-style variable name to JSON key.
26
- def self.attribute_map
27
- {
28
- :'requested_cap' => :'requestedCap',
29
- :'level' => :'level',
30
- :'requested_at' => :'requestedAt'
31
- }
32
- end
33
-
34
- # Returns attribute mapping this model knows about
35
- def self.acceptable_attribute_map
36
- attribute_map
37
- end
38
-
39
- # Returns all the JSON keys this model knows about
40
- def self.acceptable_attributes
41
- acceptable_attribute_map.values
42
- end
43
-
44
- # Attribute type mapping.
45
- def self.openapi_types
46
- {
47
- :'requested_cap' => :'Integer',
48
- :'level' => :'Integer',
49
- :'requested_at' => :'Time'
50
- }
51
- end
52
-
53
- # List of attributes with nullable: true
54
- def self.openapi_nullable
55
- Set.new([
56
- :'requested_at'
57
- ])
58
- end
59
-
60
- # Initializes the object
61
- # @param [Hash] attributes Model attributes in the form of hash
62
- def initialize(attributes = {})
63
- if (!attributes.is_a?(Hash))
64
- fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::ListSmsSenderIds200ResponseBudgetPendingRequest` initialize method"
65
- end
66
-
67
- # check to see if the attribute exists and convert string to symbol for hash key
68
- acceptable_attribute_map = self.class.acceptable_attribute_map
69
- attributes = attributes.each_with_object({}) { |(k, v), h|
70
- if (!acceptable_attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::ListSmsSenderIds200ResponseBudgetPendingRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
- end
73
- h[k.to_sym] = v
74
- }
75
-
76
- if attributes.key?(:'requested_cap')
77
- self.requested_cap = attributes[:'requested_cap']
78
- end
79
-
80
- if attributes.key?(:'level')
81
- self.level = attributes[:'level']
82
- end
83
-
84
- if attributes.key?(:'requested_at')
85
- self.requested_at = attributes[:'requested_at']
86
- end
87
- end
88
-
89
- # Show invalid properties with the reasons. Usually used together with valid?
90
- # @return Array for valid properties with the reasons
91
- def list_invalid_properties
92
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
93
- invalid_properties = Array.new
94
- invalid_properties
95
- end
96
-
97
- # Check to see if the all the properties in the model are valid
98
- # @return true if the model is valid
99
- def valid?
100
- warn '[DEPRECATED] the `valid?` method is obsolete'
101
- true
102
- end
103
-
104
- # Checks equality by comparing each attribute.
105
- # @param [Object] Object to be compared
106
- def ==(o)
107
- return true if self.equal?(o)
108
- self.class == o.class &&
109
- requested_cap == o.requested_cap &&
110
- level == o.level &&
111
- requested_at == o.requested_at
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
- [requested_cap, level, requested_at].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
@@ -1,175 +0,0 @@
1
- =begin
2
- #Zernio API
3
-
4
- #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
-
6
- The version of the OpenAPI document: 1.0.4
7
- Contact: support@zernio.com
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 Zernio
17
- class ListSmsSenderIds200ResponseSenderIdsInner < ApiModelBase
18
- attr_accessor :id
19
-
20
- attr_accessor :sender_id
21
-
22
- attr_accessor :is_active
23
-
24
- attr_accessor :created_at
25
-
26
- # Attribute mapping from ruby-style variable name to JSON key.
27
- def self.attribute_map
28
- {
29
- :'id' => :'id',
30
- :'sender_id' => :'senderId',
31
- :'is_active' => :'isActive',
32
- :'created_at' => :'createdAt'
33
- }
34
- end
35
-
36
- # Returns attribute mapping this model knows about
37
- def self.acceptable_attribute_map
38
- attribute_map
39
- end
40
-
41
- # Returns all the JSON keys this model knows about
42
- def self.acceptable_attributes
43
- acceptable_attribute_map.values
44
- end
45
-
46
- # Attribute type mapping.
47
- def self.openapi_types
48
- {
49
- :'id' => :'String',
50
- :'sender_id' => :'String',
51
- :'is_active' => :'Boolean',
52
- :'created_at' => :'Time'
53
- }
54
- end
55
-
56
- # List of attributes with nullable: true
57
- def self.openapi_nullable
58
- Set.new([
59
- :'created_at'
60
- ])
61
- end
62
-
63
- # Initializes the object
64
- # @param [Hash] attributes Model attributes in the form of hash
65
- def initialize(attributes = {})
66
- if (!attributes.is_a?(Hash))
67
- fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::ListSmsSenderIds200ResponseSenderIdsInner` initialize method"
68
- end
69
-
70
- # check to see if the attribute exists and convert string to symbol for hash key
71
- acceptable_attribute_map = self.class.acceptable_attribute_map
72
- attributes = attributes.each_with_object({}) { |(k, v), h|
73
- if (!acceptable_attribute_map.key?(k.to_sym))
74
- fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::ListSmsSenderIds200ResponseSenderIdsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
75
- end
76
- h[k.to_sym] = v
77
- }
78
-
79
- if attributes.key?(:'id')
80
- self.id = attributes[:'id']
81
- end
82
-
83
- if attributes.key?(:'sender_id')
84
- self.sender_id = attributes[:'sender_id']
85
- end
86
-
87
- if attributes.key?(:'is_active')
88
- self.is_active = attributes[:'is_active']
89
- end
90
-
91
- if attributes.key?(:'created_at')
92
- self.created_at = attributes[:'created_at']
93
- end
94
- end
95
-
96
- # Show invalid properties with the reasons. Usually used together with valid?
97
- # @return Array for valid properties with the reasons
98
- def list_invalid_properties
99
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
100
- invalid_properties = Array.new
101
- invalid_properties
102
- end
103
-
104
- # Check to see if the all the properties in the model are valid
105
- # @return true if the model is valid
106
- def valid?
107
- warn '[DEPRECATED] the `valid?` method is obsolete'
108
- true
109
- end
110
-
111
- # Checks equality by comparing each attribute.
112
- # @param [Object] Object to be compared
113
- def ==(o)
114
- return true if self.equal?(o)
115
- self.class == o.class &&
116
- id == o.id &&
117
- sender_id == o.sender_id &&
118
- is_active == o.is_active &&
119
- created_at == o.created_at
120
- end
121
-
122
- # @see the `==` method
123
- # @param [Object] Object to be compared
124
- def eql?(o)
125
- self == o
126
- end
127
-
128
- # Calculates hash code according to all attributes.
129
- # @return [Integer] Hash code
130
- def hash
131
- [id, sender_id, is_active, created_at].hash
132
- end
133
-
134
- # Builds the object from hash
135
- # @param [Hash] attributes Model attributes in the form of hash
136
- # @return [Object] Returns the model itself
137
- def self.build_from_hash(attributes)
138
- return nil unless attributes.is_a?(Hash)
139
- attributes = attributes.transform_keys(&:to_sym)
140
- transformed_hash = {}
141
- openapi_types.each_pair do |key, type|
142
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
143
- transformed_hash["#{key}"] = nil
144
- elsif type =~ /\AArray<(.*)>/i
145
- # check to ensure the input is an array given that the attribute
146
- # is documented as an array but the input is not
147
- if attributes[attribute_map[key]].is_a?(Array)
148
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
149
- end
150
- elsif !attributes[attribute_map[key]].nil?
151
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
152
- end
153
- end
154
- new(transformed_hash)
155
- end
156
-
157
- # Returns the object in the form of hash
158
- # @return [Hash] Returns the object in the form of hash
159
- def to_hash
160
- hash = {}
161
- self.class.attribute_map.each_pair do |attr, param|
162
- value = self.send(attr)
163
- if value.nil?
164
- is_nullable = self.class.openapi_nullable.include?(attr)
165
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
166
- end
167
-
168
- hash[param] = _to_hash(value)
169
- end
170
- hash
171
- end
172
-
173
- end
174
-
175
- end
@@ -1,156 +0,0 @@
1
- =begin
2
- #Zernio API
3
-
4
- #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
-
6
- The version of the OpenAPI document: 1.0.4
7
- Contact: support@zernio.com
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 Zernio
17
- class RequestSmsSenderIdLimitIncrease200Response < ApiModelBase
18
- attr_accessor :requested
19
-
20
- attr_accessor :requested_cap
21
-
22
- # Attribute mapping from ruby-style variable name to JSON key.
23
- def self.attribute_map
24
- {
25
- :'requested' => :'requested',
26
- :'requested_cap' => :'requestedCap'
27
- }
28
- end
29
-
30
- # Returns attribute mapping this model knows about
31
- def self.acceptable_attribute_map
32
- attribute_map
33
- end
34
-
35
- # Returns all the JSON keys this model knows about
36
- def self.acceptable_attributes
37
- acceptable_attribute_map.values
38
- end
39
-
40
- # Attribute type mapping.
41
- def self.openapi_types
42
- {
43
- :'requested' => :'Boolean',
44
- :'requested_cap' => :'Integer'
45
- }
46
- end
47
-
48
- # List of attributes with nullable: true
49
- def self.openapi_nullable
50
- Set.new([
51
- ])
52
- end
53
-
54
- # Initializes the object
55
- # @param [Hash] attributes Model attributes in the form of hash
56
- def initialize(attributes = {})
57
- if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::RequestSmsSenderIdLimitIncrease200Response` initialize method"
59
- end
60
-
61
- # check to see if the attribute exists and convert string to symbol for hash key
62
- acceptable_attribute_map = self.class.acceptable_attribute_map
63
- attributes = attributes.each_with_object({}) { |(k, v), h|
64
- if (!acceptable_attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::RequestSmsSenderIdLimitIncrease200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
- end
67
- h[k.to_sym] = v
68
- }
69
-
70
- if attributes.key?(:'requested')
71
- self.requested = attributes[:'requested']
72
- end
73
-
74
- if attributes.key?(:'requested_cap')
75
- self.requested_cap = attributes[:'requested_cap']
76
- end
77
- end
78
-
79
- # Show invalid properties with the reasons. Usually used together with valid?
80
- # @return Array for valid properties with the reasons
81
- def list_invalid_properties
82
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
83
- invalid_properties = Array.new
84
- invalid_properties
85
- end
86
-
87
- # Check to see if the all the properties in the model are valid
88
- # @return true if the model is valid
89
- def valid?
90
- warn '[DEPRECATED] the `valid?` method is obsolete'
91
- true
92
- end
93
-
94
- # Checks equality by comparing each attribute.
95
- # @param [Object] Object to be compared
96
- def ==(o)
97
- return true if self.equal?(o)
98
- self.class == o.class &&
99
- requested == o.requested &&
100
- requested_cap == o.requested_cap
101
- end
102
-
103
- # @see the `==` method
104
- # @param [Object] Object to be compared
105
- def eql?(o)
106
- self == o
107
- end
108
-
109
- # Calculates hash code according to all attributes.
110
- # @return [Integer] Hash code
111
- def hash
112
- [requested, requested_cap].hash
113
- end
114
-
115
- # Builds the object from hash
116
- # @param [Hash] attributes Model attributes in the form of hash
117
- # @return [Object] Returns the model itself
118
- def self.build_from_hash(attributes)
119
- return nil unless attributes.is_a?(Hash)
120
- attributes = attributes.transform_keys(&:to_sym)
121
- transformed_hash = {}
122
- openapi_types.each_pair do |key, type|
123
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
124
- transformed_hash["#{key}"] = nil
125
- elsif type =~ /\AArray<(.*)>/i
126
- # check to ensure the input is an array given that the attribute
127
- # is documented as an array but the input is not
128
- if attributes[attribute_map[key]].is_a?(Array)
129
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
130
- end
131
- elsif !attributes[attribute_map[key]].nil?
132
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
133
- end
134
- end
135
- new(transformed_hash)
136
- end
137
-
138
- # Returns the object in the form of hash
139
- # @return [Hash] Returns the object in the form of hash
140
- def to_hash
141
- hash = {}
142
- self.class.attribute_map.each_pair do |attr, param|
143
- value = self.send(attr)
144
- if value.nil?
145
- is_nullable = self.class.openapi_nullable.include?(attr)
146
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
147
- end
148
-
149
- hash[param] = _to_hash(value)
150
- end
151
- hash
152
- end
153
-
154
- end
155
-
156
- end