late-sdk 0.0.569 → 0.0.571
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/README.md +4 -0
- data/docs/AdCampaignsApi.md +92 -0
- data/docs/CheckPhoneNumberAvailability200Response.md +3 -1
- data/docs/CheckPhoneNumberAvailability200ResponseAreaOptionsInner.md +22 -0
- data/docs/CreatePhoneNumberKycLinkRequest.md +2 -0
- data/docs/ListAdKeywords200Response.md +20 -0
- data/docs/ListAdKeywords200ResponseKeywordsInner.md +48 -0
- data/docs/PhoneNumbersApi.md +3 -1
- data/docs/PurchasePhoneNumberRequest.md +2 -0
- data/docs/SubmitPhoneNumberKycRequest.md +2 -0
- data/docs/SubmitWhatsAppNumberKycRequest.md +2 -0
- data/docs/WhatsAppPhoneNumbersApi.md +3 -1
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +114 -0
- data/lib/zernio-sdk/api/phone_numbers_api.rb +3 -0
- data/lib/zernio-sdk/api/whats_app_phone_numbers_api.rb +3 -0
- data/lib/zernio-sdk/models/check_phone_number_availability200_response.rb +16 -4
- data/lib/zernio-sdk/models/check_phone_number_availability200_response_area_options_inner.rb +168 -0
- data/lib/zernio-sdk/models/create_phone_number_kyc_link_request.rb +32 -1
- data/lib/zernio-sdk/models/list_ad_keywords200_response.rb +158 -0
- data/lib/zernio-sdk/models/list_ad_keywords200_response_keywords_inner.rb +348 -0
- data/lib/zernio-sdk/models/purchase_phone_number409_response.rb +2 -2
- data/lib/zernio-sdk/models/purchase_phone_number_request.rb +32 -1
- data/lib/zernio-sdk/models/submit_phone_number_kyc_request.rb +32 -1
- data/lib/zernio-sdk/models/submit_whats_app_number_kyc_request.rb +32 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +3 -0
- data/openapi.yaml +120 -10
- data/spec/api/ad_campaigns_api_spec.rb +22 -0
- data/spec/api/phone_numbers_api_spec.rb +1 -0
- data/spec/api/whats_app_phone_numbers_api_spec.rb +1 -0
- data/spec/models/check_phone_number_availability200_response_area_options_inner_spec.rb +48 -0
- data/spec/models/check_phone_number_availability200_response_spec.rb +6 -0
- data/spec/models/create_phone_number_kyc_link_request_spec.rb +6 -0
- data/spec/models/list_ad_keywords200_response_keywords_inner_spec.rb +138 -0
- data/spec/models/list_ad_keywords200_response_spec.rb +42 -0
- data/spec/models/purchase_phone_number409_response_spec.rb +1 -1
- data/spec/models/purchase_phone_number_request_spec.rb +6 -0
- data/spec/models/submit_phone_number_kyc_request_spec.rb +6 -0
- data/spec/models/submit_whats_app_number_kyc_request_spec.rb +6 -0
- data/zernio-sdk-0.0.571.gem +0 -0
- metadata +15 -3
- data/zernio-sdk-0.0.569.gem +0 -0
|
@@ -0,0 +1,168 @@
|
|
|
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 CheckPhoneNumberAvailability200ResponseAreaOptionsInner < ApiModelBase
|
|
18
|
+
# Area code (national destination code), e.g. \"11\".
|
|
19
|
+
attr_accessor :ndc
|
|
20
|
+
|
|
21
|
+
# Human-readable area name, e.g. \"Sao Paulo\".
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
24
|
+
# Deliverable numbers seen in this area on the latest inventory page.
|
|
25
|
+
attr_accessor :count
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'ndc' => :'ndc',
|
|
31
|
+
:'name' => :'name',
|
|
32
|
+
:'count' => :'count'
|
|
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
|
+
:'ndc' => :'String',
|
|
50
|
+
:'name' => :'String',
|
|
51
|
+
:'count' => :'Integer'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
])
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::CheckPhoneNumberAvailability200ResponseAreaOptionsInner` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::CheckPhoneNumberAvailability200ResponseAreaOptionsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
|
+
end
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'ndc')
|
|
78
|
+
self.ndc = attributes[:'ndc']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'name')
|
|
82
|
+
self.name = attributes[:'name']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'count')
|
|
86
|
+
self.count = attributes[:'count']
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
91
|
+
# @return Array for valid properties with the reasons
|
|
92
|
+
def list_invalid_properties
|
|
93
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
94
|
+
invalid_properties = Array.new
|
|
95
|
+
invalid_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Check to see if the all the properties in the model are valid
|
|
99
|
+
# @return true if the model is valid
|
|
100
|
+
def valid?
|
|
101
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
102
|
+
true
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Checks equality by comparing each attribute.
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def ==(o)
|
|
108
|
+
return true if self.equal?(o)
|
|
109
|
+
self.class == o.class &&
|
|
110
|
+
ndc == o.ndc &&
|
|
111
|
+
name == o.name &&
|
|
112
|
+
count == o.count
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# @see the `==` method
|
|
116
|
+
# @param [Object] Object to be compared
|
|
117
|
+
def eql?(o)
|
|
118
|
+
self == o
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Calculates hash code according to all attributes.
|
|
122
|
+
# @return [Integer] Hash code
|
|
123
|
+
def hash
|
|
124
|
+
[ndc, name, count].hash
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Builds the object from hash
|
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
129
|
+
# @return [Object] Returns the model itself
|
|
130
|
+
def self.build_from_hash(attributes)
|
|
131
|
+
return nil unless attributes.is_a?(Hash)
|
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
133
|
+
transformed_hash = {}
|
|
134
|
+
openapi_types.each_pair do |key, type|
|
|
135
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
136
|
+
transformed_hash["#{key}"] = nil
|
|
137
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
138
|
+
# check to ensure the input is an array given that the attribute
|
|
139
|
+
# is documented as an array but the input is not
|
|
140
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
141
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
142
|
+
end
|
|
143
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
144
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
new(transformed_hash)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Returns the object in the form of hash
|
|
151
|
+
# @return [Hash] Returns the object in the form of hash
|
|
152
|
+
def to_hash
|
|
153
|
+
hash = {}
|
|
154
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
155
|
+
value = self.send(attr)
|
|
156
|
+
if value.nil?
|
|
157
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
158
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
hash[param] = _to_hash(value)
|
|
162
|
+
end
|
|
163
|
+
hash
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
end
|
|
@@ -20,6 +20,9 @@ module Zernio
|
|
|
20
20
|
# ISO 3166-1 alpha-2 country code (must be a regulated/KYC country).
|
|
21
21
|
attr_accessor :country
|
|
22
22
|
|
|
23
|
+
# Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
|
|
24
|
+
attr_accessor :area_code
|
|
25
|
+
|
|
23
26
|
attr_accessor :branding
|
|
24
27
|
|
|
25
28
|
# Where to send the end customer's browser after a successful submit. On completion Zernio appends `kyc=submitted` and `country=<ISO-2>` as query params. When omitted, the hosted page shows a built-in confirmation screen instead.
|
|
@@ -30,6 +33,7 @@ module Zernio
|
|
|
30
33
|
{
|
|
31
34
|
:'profile_id' => :'profileId',
|
|
32
35
|
:'country' => :'country',
|
|
36
|
+
:'area_code' => :'areaCode',
|
|
33
37
|
:'branding' => :'branding',
|
|
34
38
|
:'redirect_url' => :'redirect_url'
|
|
35
39
|
}
|
|
@@ -50,6 +54,7 @@ module Zernio
|
|
|
50
54
|
{
|
|
51
55
|
:'profile_id' => :'String',
|
|
52
56
|
:'country' => :'String',
|
|
57
|
+
:'area_code' => :'String',
|
|
53
58
|
:'branding' => :'CreatePhoneNumberKycLinkRequestBranding',
|
|
54
59
|
:'redirect_url' => :'String'
|
|
55
60
|
}
|
|
@@ -89,6 +94,10 @@ module Zernio
|
|
|
89
94
|
self.country = nil
|
|
90
95
|
end
|
|
91
96
|
|
|
97
|
+
if attributes.key?(:'area_code')
|
|
98
|
+
self.area_code = attributes[:'area_code']
|
|
99
|
+
end
|
|
100
|
+
|
|
92
101
|
if attributes.key?(:'branding')
|
|
93
102
|
self.branding = attributes[:'branding']
|
|
94
103
|
end
|
|
@@ -119,6 +128,11 @@ module Zernio
|
|
|
119
128
|
invalid_properties.push('invalid value for "country", the character length must be greater than or equal to 2.')
|
|
120
129
|
end
|
|
121
130
|
|
|
131
|
+
pattern = Regexp.new(/^\d{1,4}$/)
|
|
132
|
+
if !@area_code.nil? && @area_code !~ pattern
|
|
133
|
+
invalid_properties.push("invalid value for \"area_code\", must conform to the pattern #{pattern}.")
|
|
134
|
+
end
|
|
135
|
+
|
|
122
136
|
invalid_properties
|
|
123
137
|
end
|
|
124
138
|
|
|
@@ -130,6 +144,7 @@ module Zernio
|
|
|
130
144
|
return false if @country.nil?
|
|
131
145
|
return false if @country.to_s.length > 2
|
|
132
146
|
return false if @country.to_s.length < 2
|
|
147
|
+
return false if !@area_code.nil? && @area_code !~ Regexp.new(/^\d{1,4}$/)
|
|
133
148
|
true
|
|
134
149
|
end
|
|
135
150
|
|
|
@@ -161,6 +176,21 @@ module Zernio
|
|
|
161
176
|
@country = country
|
|
162
177
|
end
|
|
163
178
|
|
|
179
|
+
# Custom attribute writer method with validation
|
|
180
|
+
# @param [Object] area_code Value to be assigned
|
|
181
|
+
def area_code=(area_code)
|
|
182
|
+
if area_code.nil?
|
|
183
|
+
fail ArgumentError, 'area_code cannot be nil'
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
pattern = Regexp.new(/^\d{1,4}$/)
|
|
187
|
+
if area_code !~ pattern
|
|
188
|
+
fail ArgumentError, "invalid value for \"area_code\", must conform to the pattern #{pattern}."
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@area_code = area_code
|
|
192
|
+
end
|
|
193
|
+
|
|
164
194
|
# Checks equality by comparing each attribute.
|
|
165
195
|
# @param [Object] Object to be compared
|
|
166
196
|
def ==(o)
|
|
@@ -168,6 +198,7 @@ module Zernio
|
|
|
168
198
|
self.class == o.class &&
|
|
169
199
|
profile_id == o.profile_id &&
|
|
170
200
|
country == o.country &&
|
|
201
|
+
area_code == o.area_code &&
|
|
171
202
|
branding == o.branding &&
|
|
172
203
|
redirect_url == o.redirect_url
|
|
173
204
|
end
|
|
@@ -181,7 +212,7 @@ module Zernio
|
|
|
181
212
|
# Calculates hash code according to all attributes.
|
|
182
213
|
# @return [Integer] Hash code
|
|
183
214
|
def hash
|
|
184
|
-
[profile_id, country, branding, redirect_url].hash
|
|
215
|
+
[profile_id, country, area_code, branding, redirect_url].hash
|
|
185
216
|
end
|
|
186
217
|
|
|
187
218
|
# Builds the object from hash
|
|
@@ -0,0 +1,158 @@
|
|
|
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 ListAdKeywords200Response < ApiModelBase
|
|
18
|
+
attr_accessor :keywords
|
|
19
|
+
|
|
20
|
+
attr_accessor :pagination
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'keywords' => :'keywords',
|
|
26
|
+
:'pagination' => :'pagination'
|
|
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
|
+
:'keywords' => :'Array<ListAdKeywords200ResponseKeywordsInner>',
|
|
44
|
+
:'pagination' => :'Pagination'
|
|
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::ListAdKeywords200Response` 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::ListAdKeywords200Response`. 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?(:'keywords')
|
|
71
|
+
if (value = attributes[:'keywords']).is_a?(Array)
|
|
72
|
+
self.keywords = value
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'pagination')
|
|
77
|
+
self.pagination = attributes[:'pagination']
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
82
|
+
# @return Array for valid properties with the reasons
|
|
83
|
+
def list_invalid_properties
|
|
84
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
85
|
+
invalid_properties = Array.new
|
|
86
|
+
invalid_properties
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Check to see if the all the properties in the model are valid
|
|
90
|
+
# @return true if the model is valid
|
|
91
|
+
def valid?
|
|
92
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
93
|
+
true
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Checks equality by comparing each attribute.
|
|
97
|
+
# @param [Object] Object to be compared
|
|
98
|
+
def ==(o)
|
|
99
|
+
return true if self.equal?(o)
|
|
100
|
+
self.class == o.class &&
|
|
101
|
+
keywords == o.keywords &&
|
|
102
|
+
pagination == o.pagination
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# @see the `==` method
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def eql?(o)
|
|
108
|
+
self == o
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Calculates hash code according to all attributes.
|
|
112
|
+
# @return [Integer] Hash code
|
|
113
|
+
def hash
|
|
114
|
+
[keywords, pagination].hash
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Builds the object from hash
|
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
119
|
+
# @return [Object] Returns the model itself
|
|
120
|
+
def self.build_from_hash(attributes)
|
|
121
|
+
return nil unless attributes.is_a?(Hash)
|
|
122
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
123
|
+
transformed_hash = {}
|
|
124
|
+
openapi_types.each_pair do |key, type|
|
|
125
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
126
|
+
transformed_hash["#{key}"] = nil
|
|
127
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
128
|
+
# check to ensure the input is an array given that the attribute
|
|
129
|
+
# is documented as an array but the input is not
|
|
130
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
131
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
132
|
+
end
|
|
133
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
134
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
new(transformed_hash)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Returns the object in the form of hash
|
|
141
|
+
# @return [Hash] Returns the object in the form of hash
|
|
142
|
+
def to_hash
|
|
143
|
+
hash = {}
|
|
144
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
145
|
+
value = self.send(attr)
|
|
146
|
+
if value.nil?
|
|
147
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
148
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
hash[param] = _to_hash(value)
|
|
152
|
+
end
|
|
153
|
+
hash
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
end
|