jamm 1.3.0 → 1.4.1
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/jamm.gemspec +1 -1
- data/lib/jamm/api/api/customer_api.rb +82 -52
- data/lib/jamm/api/api/healthcheck_api.rb +18 -15
- data/lib/jamm/api/api/payment_api.rb +113 -62
- data/lib/jamm/api/api/webhook_service_api.rb +41 -28
- data/lib/jamm/api/api_client.rb +74 -66
- data/lib/jamm/api/api_error.rb +16 -16
- data/lib/jamm/api/configuration.rb +42 -34
- data/lib/jamm/api/models/apiv1_error.rb +56 -44
- data/lib/jamm/api/models/apiv1_status.rb +57 -47
- data/lib/jamm/api/models/customer_service_update_customer_body.rb +107 -69
- data/lib/jamm/api/models/googlerpc_status.rb +61 -45
- data/lib/jamm/api/models/protobuf_any.rb +42 -35
- data/lib/jamm/api/models/v1_add_charge_request.rb +59 -44
- data/lib/jamm/api/models/v1_add_charge_response.rb +59 -44
- data/lib/jamm/api/models/v1_bank.rb +150 -95
- data/lib/jamm/api/models/v1_bank_assets.rb +60 -47
- data/lib/jamm/api/models/v1_bank_branch.rb +83 -56
- data/lib/jamm/api/models/v1_bank_information.rb +71 -51
- data/lib/jamm/api/models/v1_bank_quota.rb +99 -64
- data/lib/jamm/api/models/v1_bank_scheduled_maintenance_period.rb +75 -52
- data/lib/jamm/api/models/v1_buyer.rb +104 -76
- data/lib/jamm/api/models/v1_charge.rb +67 -52
- data/lib/jamm/api/models/v1_charge_message.rb +151 -93
- data/lib/jamm/api/models/v1_charge_message_status.rb +17 -18
- data/lib/jamm/api/models/v1_charge_result.rb +152 -93
- data/lib/jamm/api/models/v1_contract.rb +64 -52
- data/lib/jamm/api/models/v1_contract_message.rb +67 -48
- data/lib/jamm/api/models/v1_contract_status.rb +20 -21
- data/lib/jamm/api/models/v1_create_contract_with_charge_request.rb +59 -44
- data/lib/jamm/api/models/v1_create_contract_with_charge_response.rb +67 -48
- data/lib/jamm/api/models/v1_create_contract_without_charge_request.rb +51 -40
- data/lib/jamm/api/models/v1_create_contract_without_charge_response.rb +59 -44
- data/lib/jamm/api/models/v1_create_customer_request.rb +42 -35
- data/lib/jamm/api/models/v1_create_customer_response.rb +42 -35
- data/lib/jamm/api/models/v1_customer.rb +91 -60
- data/lib/jamm/api/models/v1_delete_customer_response.rb +42 -35
- data/lib/jamm/api/models/v1_deposit_type.rb +14 -15
- data/lib/jamm/api/models/v1_error_detail.rb +57 -44
- data/lib/jamm/api/models/v1_error_response.rb +46 -38
- data/lib/jamm/api/models/v1_error_type.rb +30 -31
- data/lib/jamm/api/models/v1_event_type.rb +20 -21
- data/lib/jamm/api/models/v1_get_bank_response.rb +42 -35
- data/lib/jamm/api/models/v1_get_branch_response.rb +42 -35
- data/lib/jamm/api/models/v1_get_branches_response.rb +44 -36
- data/lib/jamm/api/models/v1_get_charge_response.rb +51 -40
- data/lib/jamm/api/models/v1_get_charges_response.rb +60 -45
- data/lib/jamm/api/models/v1_get_contract_response.rb +51 -40
- data/lib/jamm/api/models/v1_get_customer_response.rb +42 -35
- data/lib/jamm/api/models/v1_get_major_banks_response.rb +59 -44
- data/lib/jamm/api/models/v1_initial_charge.rb +61 -48
- data/lib/jamm/api/models/v1_kyc_status.rb +16 -17
- data/lib/jamm/api/models/v1_merchant.rb +51 -40
- data/lib/jamm/api/models/v1_merchant_customer.rb +51 -40
- data/lib/jamm/api/models/v1_merchant_webhook_message.rb +75 -57
- data/lib/jamm/api/models/v1_message_response.rb +67 -48
- data/lib/jamm/api/models/v1_off_session_payment_request.rb +51 -40
- data/lib/jamm/api/models/v1_off_session_payment_response.rb +51 -40
- data/lib/jamm/api/models/v1_on_session_payment_data.rb +67 -48
- data/lib/jamm/api/models/v1_on_session_payment_error.rb +55 -45
- data/lib/jamm/api/models/v1_on_session_payment_error_code.rb +21 -22
- data/lib/jamm/api/models/v1_on_session_payment_request.rb +67 -48
- data/lib/jamm/api/models/v1_on_session_payment_response.rb +59 -44
- data/lib/jamm/api/models/v1_pagination.rb +51 -40
- data/lib/jamm/api/models/v1_payment_authorization_status.rb +14 -15
- data/lib/jamm/api/models/v1_payment_link.rb +57 -44
- data/lib/jamm/api/models/v1_ping_response.rb +42 -35
- data/lib/jamm/api/models/v1_search_banks_response.rb +44 -36
- data/lib/jamm/api/models/v1_search_branches_response.rb +44 -36
- data/lib/jamm/api/models/v1_update_customer_response.rb +42 -35
- data/lib/jamm/api/models/v1_url.rb +48 -39
- data/lib/jamm/api/models/v1_user_account_message.rb +67 -48
- data/lib/jamm/api/models/v1_withdraw_request.rb +51 -40
- data/lib/jamm/api/models/v1_withdraw_response.rb +51 -40
- data/lib/jamm/api/version.rb +11 -11
- data/lib/jamm/api.rb +10 -10
- data/lib/jamm/charge.rb +12 -0
- data/lib/jamm/deprecation.rb +13 -0
- data/lib/jamm/payment.rb +61 -0
- data/lib/jamm/version.rb +1 -1
- data/lib/jamm.rb +2 -0
- metadata +5 -3
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
=begin
|
2
|
+
#Jamm API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
@@ -52,17 +52,17 @@ module Api
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:email => :email,
|
56
|
-
:force_kyc => :forceKyc,
|
57
|
-
:phone => :phone,
|
58
|
-
:name => :name,
|
59
|
-
:katakana_last_name => :katakanaLastName,
|
60
|
-
:katakana_first_name => :katakanaFirstName,
|
61
|
-
:address => :address,
|
62
|
-
:birth_date => :birthDate,
|
63
|
-
:gender => :gender,
|
64
|
-
:expires_at => :expiresAt,
|
65
|
-
:metadata => :metadata
|
55
|
+
:'email' => :'email',
|
56
|
+
:'force_kyc' => :'forceKyc',
|
57
|
+
:'phone' => :'phone',
|
58
|
+
:'name' => :'name',
|
59
|
+
:'katakana_last_name' => :'katakanaLastName',
|
60
|
+
:'katakana_first_name' => :'katakanaFirstName',
|
61
|
+
:'address' => :'address',
|
62
|
+
:'birth_date' => :'birthDate',
|
63
|
+
:'gender' => :'gender',
|
64
|
+
:'expires_at' => :'expiresAt',
|
65
|
+
:'metadata' => :'metadata'
|
66
66
|
}
|
67
67
|
end
|
68
68
|
|
@@ -74,68 +74,94 @@ module Api
|
|
74
74
|
# Attribute type mapping.
|
75
75
|
def self.openapi_types
|
76
76
|
{
|
77
|
-
:email => :String,
|
78
|
-
:force_kyc => :Boolean,
|
79
|
-
:phone => :String,
|
80
|
-
:name => :String,
|
81
|
-
:katakana_last_name => :String,
|
82
|
-
:katakana_first_name => :String,
|
83
|
-
:address => :String,
|
84
|
-
:birth_date => :String,
|
85
|
-
:gender => :String,
|
86
|
-
:expires_at => :Time,
|
87
|
-
:metadata => :'Hash<String, String>'
|
77
|
+
:'email' => :'String',
|
78
|
+
:'force_kyc' => :'Boolean',
|
79
|
+
:'phone' => :'String',
|
80
|
+
:'name' => :'String',
|
81
|
+
:'katakana_last_name' => :'String',
|
82
|
+
:'katakana_first_name' => :'String',
|
83
|
+
:'address' => :'String',
|
84
|
+
:'birth_date' => :'String',
|
85
|
+
:'gender' => :'String',
|
86
|
+
:'expires_at' => :'Time',
|
87
|
+
:'metadata' => :'Hash<String, String>'
|
88
88
|
}
|
89
89
|
end
|
90
90
|
|
91
91
|
# List of attributes with nullable: true
|
92
92
|
def self.openapi_nullable
|
93
|
-
Set.new([
|
93
|
+
Set.new([
|
94
|
+
])
|
94
95
|
end
|
95
96
|
|
96
97
|
# Initializes the object
|
97
98
|
# @param [Hash] attributes Model attributes in the form of hash
|
98
99
|
def initialize(attributes = {})
|
99
|
-
|
100
|
+
if (!attributes.is_a?(Hash))
|
101
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Api::Buyer` initialize method"
|
102
|
+
end
|
100
103
|
|
101
104
|
# check to see if the attribute exists and convert string to symbol for hash key
|
102
|
-
attributes = attributes.each_with_object({})
|
103
|
-
|
104
|
-
|
105
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
106
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
107
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Api::Buyer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
108
|
+
end
|
105
109
|
h[k.to_sym] = v
|
106
|
-
|
107
|
-
|
108
|
-
self.email = attributes[:email] if attributes.key?(:email)
|
110
|
+
}
|
109
111
|
|
110
|
-
|
112
|
+
if attributes.key?(:'email')
|
113
|
+
self.email = attributes[:'email']
|
114
|
+
end
|
111
115
|
|
112
|
-
|
116
|
+
if attributes.key?(:'force_kyc')
|
117
|
+
self.force_kyc = attributes[:'force_kyc']
|
118
|
+
end
|
113
119
|
|
114
|
-
|
120
|
+
if attributes.key?(:'phone')
|
121
|
+
self.phone = attributes[:'phone']
|
122
|
+
end
|
115
123
|
|
116
|
-
|
124
|
+
if attributes.key?(:'name')
|
125
|
+
self.name = attributes[:'name']
|
126
|
+
end
|
117
127
|
|
118
|
-
|
128
|
+
if attributes.key?(:'katakana_last_name')
|
129
|
+
self.katakana_last_name = attributes[:'katakana_last_name']
|
130
|
+
end
|
119
131
|
|
120
|
-
|
132
|
+
if attributes.key?(:'katakana_first_name')
|
133
|
+
self.katakana_first_name = attributes[:'katakana_first_name']
|
134
|
+
end
|
121
135
|
|
122
|
-
|
136
|
+
if attributes.key?(:'address')
|
137
|
+
self.address = attributes[:'address']
|
138
|
+
end
|
123
139
|
|
124
|
-
|
140
|
+
if attributes.key?(:'birth_date')
|
141
|
+
self.birth_date = attributes[:'birth_date']
|
142
|
+
end
|
125
143
|
|
126
|
-
|
144
|
+
if attributes.key?(:'gender')
|
145
|
+
self.gender = attributes[:'gender']
|
146
|
+
end
|
127
147
|
|
128
|
-
|
129
|
-
|
148
|
+
if attributes.key?(:'expires_at')
|
149
|
+
self.expires_at = attributes[:'expires_at']
|
150
|
+
end
|
130
151
|
|
131
|
-
|
152
|
+
if attributes.key?(:'metadata')
|
153
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
154
|
+
self.metadata = value
|
155
|
+
end
|
156
|
+
end
|
132
157
|
end
|
133
158
|
|
134
159
|
# Show invalid properties with the reasons. Usually used together with valid?
|
135
160
|
# @return Array for valid properties with the reasons
|
136
161
|
def list_invalid_properties
|
137
162
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
138
|
-
|
163
|
+
invalid_properties = Array.new
|
164
|
+
invalid_properties
|
139
165
|
end
|
140
166
|
|
141
167
|
# Check to see if the all the properties in the model are valid
|
@@ -147,27 +173,26 @@ module Api
|
|
147
173
|
|
148
174
|
# Checks equality by comparing each attribute.
|
149
175
|
# @param [Object] Object to be compared
|
150
|
-
def ==(
|
151
|
-
return true if equal?(
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
metadata == other.metadata
|
176
|
+
def ==(o)
|
177
|
+
return true if self.equal?(o)
|
178
|
+
self.class == o.class &&
|
179
|
+
email == o.email &&
|
180
|
+
force_kyc == o.force_kyc &&
|
181
|
+
phone == o.phone &&
|
182
|
+
name == o.name &&
|
183
|
+
katakana_last_name == o.katakana_last_name &&
|
184
|
+
katakana_first_name == o.katakana_first_name &&
|
185
|
+
address == o.address &&
|
186
|
+
birth_date == o.birth_date &&
|
187
|
+
gender == o.gender &&
|
188
|
+
expires_at == o.expires_at &&
|
189
|
+
metadata == o.metadata
|
165
190
|
end
|
166
191
|
|
167
192
|
# @see the `==` method
|
168
193
|
# @param [Object] Object to be compared
|
169
|
-
def eql?(
|
170
|
-
self ==
|
194
|
+
def eql?(o)
|
195
|
+
self == o
|
171
196
|
end
|
172
197
|
|
173
198
|
# Calculates hash code according to all attributes.
|
@@ -181,18 +206,19 @@ module Api
|
|
181
206
|
# @return [Object] Returns the model itself
|
182
207
|
def self.build_from_hash(attributes)
|
183
208
|
return nil unless attributes.is_a?(Hash)
|
184
|
-
|
185
209
|
attributes = attributes.transform_keys(&:to_sym)
|
186
210
|
transformed_hash = {}
|
187
211
|
openapi_types.each_pair do |key, type|
|
188
212
|
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
189
|
-
transformed_hash[key
|
213
|
+
transformed_hash["#{key}"] = nil
|
190
214
|
elsif type =~ /\AArray<(.*)>/i
|
191
215
|
# check to ensure the input is an array given that the attribute
|
192
216
|
# is documented as an array but the input is not
|
193
|
-
|
217
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
218
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
219
|
+
end
|
194
220
|
elsif !attributes[attribute_map[key]].nil?
|
195
|
-
transformed_hash[key
|
221
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
196
222
|
end
|
197
223
|
end
|
198
224
|
new(transformed_hash)
|
@@ -258,7 +284,7 @@ module Api
|
|
258
284
|
def to_hash
|
259
285
|
hash = {}
|
260
286
|
self.class.attribute_map.each_pair do |attr, param|
|
261
|
-
value = send(attr)
|
287
|
+
value = self.send(attr)
|
262
288
|
if value.nil?
|
263
289
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
264
290
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -286,5 +312,7 @@ module Api
|
|
286
312
|
value
|
287
313
|
end
|
288
314
|
end
|
315
|
+
|
289
316
|
end
|
317
|
+
|
290
318
|
end
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
=begin
|
2
|
+
#Jamm API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
@@ -34,11 +34,11 @@ module Api
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
-
:id => :id,
|
38
|
-
:price => :price,
|
39
|
-
:description => :description,
|
40
|
-
:metadata => :metadata,
|
41
|
-
:expires_at => :expiresAt
|
37
|
+
:'id' => :'id',
|
38
|
+
:'price' => :'price',
|
39
|
+
:'description' => :'description',
|
40
|
+
:'metadata' => :'metadata',
|
41
|
+
:'expires_at' => :'expiresAt'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -50,51 +50,64 @@ module Api
|
|
50
50
|
# Attribute type mapping.
|
51
51
|
def self.openapi_types
|
52
52
|
{
|
53
|
-
:id => :String,
|
54
|
-
:price => :Integer,
|
55
|
-
:description => :String,
|
56
|
-
:metadata => :'Hash<String, String>',
|
57
|
-
:expires_at => :Time
|
53
|
+
:'id' => :'String',
|
54
|
+
:'price' => :'Integer',
|
55
|
+
:'description' => :'String',
|
56
|
+
:'metadata' => :'Hash<String, String>',
|
57
|
+
:'expires_at' => :'Time'
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
61
61
|
# List of attributes with nullable: true
|
62
62
|
def self.openapi_nullable
|
63
|
-
Set.new([
|
63
|
+
Set.new([
|
64
|
+
])
|
64
65
|
end
|
65
66
|
|
66
67
|
# Initializes the object
|
67
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
68
69
|
def initialize(attributes = {})
|
69
|
-
|
70
|
+
if (!attributes.is_a?(Hash))
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Api::Charge` initialize method"
|
72
|
+
end
|
70
73
|
|
71
74
|
# check to see if the attribute exists and convert string to symbol for hash key
|
72
|
-
attributes = attributes.each_with_object({})
|
73
|
-
|
74
|
-
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
76
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Api::Charge`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
78
|
+
end
|
75
79
|
h[k.to_sym] = v
|
76
|
-
|
77
|
-
|
78
|
-
self.id = attributes[:id] if attributes.key?(:id)
|
80
|
+
}
|
79
81
|
|
80
|
-
|
82
|
+
if attributes.key?(:'id')
|
83
|
+
self.id = attributes[:'id']
|
84
|
+
end
|
81
85
|
|
82
|
-
|
86
|
+
if attributes.key?(:'price')
|
87
|
+
self.price = attributes[:'price']
|
88
|
+
end
|
83
89
|
|
84
|
-
if attributes.key?(:
|
85
|
-
self.
|
90
|
+
if attributes.key?(:'description')
|
91
|
+
self.description = attributes[:'description']
|
86
92
|
end
|
87
93
|
|
88
|
-
|
94
|
+
if attributes.key?(:'metadata')
|
95
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
96
|
+
self.metadata = value
|
97
|
+
end
|
98
|
+
end
|
89
99
|
|
90
|
-
|
100
|
+
if attributes.key?(:'expires_at')
|
101
|
+
self.expires_at = attributes[:'expires_at']
|
102
|
+
end
|
91
103
|
end
|
92
104
|
|
93
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
94
106
|
# @return Array for valid properties with the reasons
|
95
107
|
def list_invalid_properties
|
96
108
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
97
|
-
|
109
|
+
invalid_properties = Array.new
|
110
|
+
invalid_properties
|
98
111
|
end
|
99
112
|
|
100
113
|
# Check to see if the all the properties in the model are valid
|
@@ -106,21 +119,20 @@ module Api
|
|
106
119
|
|
107
120
|
# Checks equality by comparing each attribute.
|
108
121
|
# @param [Object] Object to be compared
|
109
|
-
def ==(
|
110
|
-
return true if equal?(
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
expires_at == other.expires_at
|
122
|
+
def ==(o)
|
123
|
+
return true if self.equal?(o)
|
124
|
+
self.class == o.class &&
|
125
|
+
id == o.id &&
|
126
|
+
price == o.price &&
|
127
|
+
description == o.description &&
|
128
|
+
metadata == o.metadata &&
|
129
|
+
expires_at == o.expires_at
|
118
130
|
end
|
119
131
|
|
120
132
|
# @see the `==` method
|
121
133
|
# @param [Object] Object to be compared
|
122
|
-
def eql?(
|
123
|
-
self ==
|
134
|
+
def eql?(o)
|
135
|
+
self == o
|
124
136
|
end
|
125
137
|
|
126
138
|
# Calculates hash code according to all attributes.
|
@@ -134,18 +146,19 @@ module Api
|
|
134
146
|
# @return [Object] Returns the model itself
|
135
147
|
def self.build_from_hash(attributes)
|
136
148
|
return nil unless attributes.is_a?(Hash)
|
137
|
-
|
138
149
|
attributes = attributes.transform_keys(&:to_sym)
|
139
150
|
transformed_hash = {}
|
140
151
|
openapi_types.each_pair do |key, type|
|
141
152
|
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
142
|
-
transformed_hash[key
|
153
|
+
transformed_hash["#{key}"] = nil
|
143
154
|
elsif type =~ /\AArray<(.*)>/i
|
144
155
|
# check to ensure the input is an array given that the attribute
|
145
156
|
# is documented as an array but the input is not
|
146
|
-
|
157
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
158
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
159
|
+
end
|
147
160
|
elsif !attributes[attribute_map[key]].nil?
|
148
|
-
transformed_hash[key
|
161
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
149
162
|
end
|
150
163
|
end
|
151
164
|
new(transformed_hash)
|
@@ -211,7 +224,7 @@ module Api
|
|
211
224
|
def to_hash
|
212
225
|
hash = {}
|
213
226
|
self.class.attribute_map.each_pair do |attr, param|
|
214
|
-
value = send(attr)
|
227
|
+
value = self.send(attr)
|
215
228
|
if value.nil?
|
216
229
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
217
230
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -239,5 +252,7 @@ module Api
|
|
239
252
|
value
|
240
253
|
end
|
241
254
|
end
|
255
|
+
|
242
256
|
end
|
257
|
+
|
243
258
|
end
|