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'
|
@@ -20,7 +20,7 @@ module Api
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
21
|
def self.attribute_map
|
22
22
|
{
|
23
|
-
:customer => :customer
|
23
|
+
:'customer' => :'customer'
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
@@ -32,37 +32,42 @@ module Api
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
|
-
:customer => :MerchantCustomer
|
35
|
+
:'customer' => :'MerchantCustomer'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
39
|
# List of attributes with nullable: true
|
40
40
|
def self.openapi_nullable
|
41
|
-
Set.new([
|
41
|
+
Set.new([
|
42
|
+
])
|
42
43
|
end
|
43
44
|
|
44
45
|
# Initializes the object
|
45
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
46
47
|
def initialize(attributes = {})
|
47
|
-
|
48
|
+
if (!attributes.is_a?(Hash))
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Api::UpdateCustomerResponse` initialize method"
|
50
|
+
end
|
48
51
|
|
49
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
50
|
-
attributes = attributes.each_with_object({})
|
51
|
-
|
52
|
-
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Api::UpdateCustomerResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
|
+
end
|
53
57
|
h[k.to_sym] = v
|
54
|
-
|
55
|
-
|
56
|
-
return unless attributes.key?(:customer)
|
58
|
+
}
|
57
59
|
|
58
|
-
|
60
|
+
if attributes.key?(:'customer')
|
61
|
+
self.customer = attributes[:'customer']
|
62
|
+
end
|
59
63
|
end
|
60
64
|
|
61
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
62
66
|
# @return Array for valid properties with the reasons
|
63
67
|
def list_invalid_properties
|
64
68
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
65
|
-
|
69
|
+
invalid_properties = Array.new
|
70
|
+
invalid_properties
|
66
71
|
end
|
67
72
|
|
68
73
|
# Check to see if the all the properties in the model are valid
|
@@ -74,17 +79,16 @@ module Api
|
|
74
79
|
|
75
80
|
# Checks equality by comparing each attribute.
|
76
81
|
# @param [Object] Object to be compared
|
77
|
-
def ==(
|
78
|
-
return true if equal?(
|
79
|
-
|
80
|
-
|
81
|
-
customer == other.customer
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
customer == o.customer
|
82
86
|
end
|
83
87
|
|
84
88
|
# @see the `==` method
|
85
89
|
# @param [Object] Object to be compared
|
86
|
-
def eql?(
|
87
|
-
self ==
|
90
|
+
def eql?(o)
|
91
|
+
self == o
|
88
92
|
end
|
89
93
|
|
90
94
|
# Calculates hash code according to all attributes.
|
@@ -98,18 +102,19 @@ module Api
|
|
98
102
|
# @return [Object] Returns the model itself
|
99
103
|
def self.build_from_hash(attributes)
|
100
104
|
return nil unless attributes.is_a?(Hash)
|
101
|
-
|
102
105
|
attributes = attributes.transform_keys(&:to_sym)
|
103
106
|
transformed_hash = {}
|
104
107
|
openapi_types.each_pair do |key, type|
|
105
108
|
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
106
|
-
transformed_hash[key
|
109
|
+
transformed_hash["#{key}"] = nil
|
107
110
|
elsif type =~ /\AArray<(.*)>/i
|
108
111
|
# check to ensure the input is an array given that the attribute
|
109
112
|
# is documented as an array but the input is not
|
110
|
-
|
113
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
114
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
115
|
+
end
|
111
116
|
elsif !attributes[attribute_map[key]].nil?
|
112
|
-
transformed_hash[key
|
117
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
113
118
|
end
|
114
119
|
end
|
115
120
|
new(transformed_hash)
|
@@ -175,7 +180,7 @@ module Api
|
|
175
180
|
def to_hash
|
176
181
|
hash = {}
|
177
182
|
self.class.attribute_map.each_pair do |attr, param|
|
178
|
-
value = send(attr)
|
183
|
+
value = self.send(attr)
|
179
184
|
if value.nil?
|
180
185
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
181
186
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -203,5 +208,7 @@ module Api
|
|
203
208
|
value
|
204
209
|
end
|
205
210
|
end
|
211
|
+
|
206
212
|
end
|
213
|
+
|
207
214
|
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'
|
@@ -24,8 +24,8 @@ module Api
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
25
|
def self.attribute_map
|
26
26
|
{
|
27
|
-
:success_url => :successUrl,
|
28
|
-
:failure_url => :failureUrl
|
27
|
+
:'success_url' => :'successUrl',
|
28
|
+
:'failure_url' => :'failureUrl'
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
@@ -37,40 +37,47 @@ module Api
|
|
37
37
|
# Attribute type mapping.
|
38
38
|
def self.openapi_types
|
39
39
|
{
|
40
|
-
:success_url => :String,
|
41
|
-
:failure_url => :String
|
40
|
+
:'success_url' => :'String',
|
41
|
+
:'failure_url' => :'String'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
45
45
|
# List of attributes with nullable: true
|
46
46
|
def self.openapi_nullable
|
47
|
-
Set.new([
|
47
|
+
Set.new([
|
48
|
+
])
|
48
49
|
end
|
49
50
|
|
50
51
|
# Initializes the object
|
51
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
53
|
def initialize(attributes = {})
|
53
|
-
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Api::URL` initialize method"
|
56
|
+
end
|
54
57
|
|
55
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
56
|
-
attributes = attributes.each_with_object({})
|
57
|
-
|
58
|
-
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Api::URL`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
|
+
end
|
59
63
|
h[k.to_sym] = v
|
60
|
-
|
61
|
-
|
62
|
-
self.success_url = attributes[:success_url] if attributes.key?(:success_url)
|
64
|
+
}
|
63
65
|
|
64
|
-
|
66
|
+
if attributes.key?(:'success_url')
|
67
|
+
self.success_url = attributes[:'success_url']
|
68
|
+
end
|
65
69
|
|
66
|
-
|
70
|
+
if attributes.key?(:'failure_url')
|
71
|
+
self.failure_url = attributes[:'failure_url']
|
72
|
+
end
|
67
73
|
end
|
68
74
|
|
69
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
70
76
|
# @return Array for valid properties with the reasons
|
71
77
|
def list_invalid_properties
|
72
78
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
73
|
-
|
79
|
+
invalid_properties = Array.new
|
80
|
+
invalid_properties
|
74
81
|
end
|
75
82
|
|
76
83
|
# Check to see if the all the properties in the model are valid
|
@@ -82,18 +89,17 @@ module Api
|
|
82
89
|
|
83
90
|
# Checks equality by comparing each attribute.
|
84
91
|
# @param [Object] Object to be compared
|
85
|
-
def ==(
|
86
|
-
return true if equal?(
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
failure_url == other.failure_url
|
92
|
+
def ==(o)
|
93
|
+
return true if self.equal?(o)
|
94
|
+
self.class == o.class &&
|
95
|
+
success_url == o.success_url &&
|
96
|
+
failure_url == o.failure_url
|
91
97
|
end
|
92
98
|
|
93
99
|
# @see the `==` method
|
94
100
|
# @param [Object] Object to be compared
|
95
|
-
def eql?(
|
96
|
-
self ==
|
101
|
+
def eql?(o)
|
102
|
+
self == o
|
97
103
|
end
|
98
104
|
|
99
105
|
# Calculates hash code according to all attributes.
|
@@ -107,18 +113,19 @@ module Api
|
|
107
113
|
# @return [Object] Returns the model itself
|
108
114
|
def self.build_from_hash(attributes)
|
109
115
|
return nil unless attributes.is_a?(Hash)
|
110
|
-
|
111
116
|
attributes = attributes.transform_keys(&:to_sym)
|
112
117
|
transformed_hash = {}
|
113
118
|
openapi_types.each_pair do |key, type|
|
114
119
|
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
115
|
-
transformed_hash[key
|
120
|
+
transformed_hash["#{key}"] = nil
|
116
121
|
elsif type =~ /\AArray<(.*)>/i
|
117
122
|
# check to ensure the input is an array given that the attribute
|
118
123
|
# is documented as an array but the input is not
|
119
|
-
|
124
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
125
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
126
|
+
end
|
120
127
|
elsif !attributes[attribute_map[key]].nil?
|
121
|
-
transformed_hash[key
|
128
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
122
129
|
end
|
123
130
|
end
|
124
131
|
new(transformed_hash)
|
@@ -184,7 +191,7 @@ module Api
|
|
184
191
|
def to_hash
|
185
192
|
hash = {}
|
186
193
|
self.class.attribute_map.each_pair do |attr, param|
|
187
|
-
value = send(attr)
|
194
|
+
value = self.send(attr)
|
188
195
|
if value.nil?
|
189
196
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
190
197
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -212,5 +219,7 @@ module Api
|
|
212
219
|
value
|
213
220
|
end
|
214
221
|
end
|
222
|
+
|
215
223
|
end
|
224
|
+
|
216
225
|
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'
|
@@ -16,15 +16,21 @@ require 'time'
|
|
16
16
|
module Api
|
17
17
|
# UserAccountMessage contains information about a user account operation.
|
18
18
|
class UserAccountMessage
|
19
|
-
attr_accessor :customer
|
19
|
+
attr_accessor :customer
|
20
|
+
|
21
|
+
attr_accessor :email
|
22
|
+
|
23
|
+
attr_accessor :deleted_at
|
24
|
+
|
25
|
+
attr_accessor :merchant_name
|
20
26
|
|
21
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
28
|
def self.attribute_map
|
23
29
|
{
|
24
|
-
:customer => :customer,
|
25
|
-
:email => :email,
|
26
|
-
:deleted_at => :deletedAt,
|
27
|
-
:merchant_name => :merchantName
|
30
|
+
:'customer' => :'customer',
|
31
|
+
:'email' => :'email',
|
32
|
+
:'deleted_at' => :'deletedAt',
|
33
|
+
:'merchant_name' => :'merchantName'
|
28
34
|
}
|
29
35
|
end
|
30
36
|
|
@@ -36,46 +42,57 @@ module Api
|
|
36
42
|
# Attribute type mapping.
|
37
43
|
def self.openapi_types
|
38
44
|
{
|
39
|
-
:customer => :String,
|
40
|
-
:email => :String,
|
41
|
-
:deleted_at => :String,
|
42
|
-
:merchant_name => :String
|
45
|
+
:'customer' => :'String',
|
46
|
+
:'email' => :'String',
|
47
|
+
:'deleted_at' => :'String',
|
48
|
+
:'merchant_name' => :'String'
|
43
49
|
}
|
44
50
|
end
|
45
51
|
|
46
52
|
# List of attributes with nullable: true
|
47
53
|
def self.openapi_nullable
|
48
|
-
Set.new([
|
54
|
+
Set.new([
|
55
|
+
])
|
49
56
|
end
|
50
57
|
|
51
58
|
# Initializes the object
|
52
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
53
60
|
def initialize(attributes = {})
|
54
|
-
|
61
|
+
if (!attributes.is_a?(Hash))
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Api::UserAccountMessage` initialize method"
|
63
|
+
end
|
55
64
|
|
56
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
-
attributes = attributes.each_with_object({})
|
58
|
-
|
59
|
-
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
67
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Api::UserAccountMessage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
69
|
+
end
|
60
70
|
h[k.to_sym] = v
|
61
|
-
|
62
|
-
|
63
|
-
self.customer = attributes[:customer] if attributes.key?(:customer)
|
71
|
+
}
|
64
72
|
|
65
|
-
|
73
|
+
if attributes.key?(:'customer')
|
74
|
+
self.customer = attributes[:'customer']
|
75
|
+
end
|
66
76
|
|
67
|
-
|
77
|
+
if attributes.key?(:'email')
|
78
|
+
self.email = attributes[:'email']
|
79
|
+
end
|
68
80
|
|
69
|
-
|
81
|
+
if attributes.key?(:'deleted_at')
|
82
|
+
self.deleted_at = attributes[:'deleted_at']
|
83
|
+
end
|
70
84
|
|
71
|
-
|
85
|
+
if attributes.key?(:'merchant_name')
|
86
|
+
self.merchant_name = attributes[:'merchant_name']
|
87
|
+
end
|
72
88
|
end
|
73
89
|
|
74
90
|
# Show invalid properties with the reasons. Usually used together with valid?
|
75
91
|
# @return Array for valid properties with the reasons
|
76
92
|
def list_invalid_properties
|
77
93
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
78
|
-
|
94
|
+
invalid_properties = Array.new
|
95
|
+
invalid_properties
|
79
96
|
end
|
80
97
|
|
81
98
|
# Check to see if the all the properties in the model are valid
|
@@ -87,20 +104,19 @@ module Api
|
|
87
104
|
|
88
105
|
# Checks equality by comparing each attribute.
|
89
106
|
# @param [Object] Object to be compared
|
90
|
-
def ==(
|
91
|
-
return true if equal?(
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
merchant_name == other.merchant_name
|
107
|
+
def ==(o)
|
108
|
+
return true if self.equal?(o)
|
109
|
+
self.class == o.class &&
|
110
|
+
customer == o.customer &&
|
111
|
+
email == o.email &&
|
112
|
+
deleted_at == o.deleted_at &&
|
113
|
+
merchant_name == o.merchant_name
|
98
114
|
end
|
99
115
|
|
100
116
|
# @see the `==` method
|
101
117
|
# @param [Object] Object to be compared
|
102
|
-
def eql?(
|
103
|
-
self ==
|
118
|
+
def eql?(o)
|
119
|
+
self == o
|
104
120
|
end
|
105
121
|
|
106
122
|
# Calculates hash code according to all attributes.
|
@@ -114,18 +130,19 @@ module Api
|
|
114
130
|
# @return [Object] Returns the model itself
|
115
131
|
def self.build_from_hash(attributes)
|
116
132
|
return nil unless attributes.is_a?(Hash)
|
117
|
-
|
118
133
|
attributes = attributes.transform_keys(&:to_sym)
|
119
134
|
transformed_hash = {}
|
120
135
|
openapi_types.each_pair do |key, type|
|
121
136
|
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
122
|
-
transformed_hash[key
|
137
|
+
transformed_hash["#{key}"] = nil
|
123
138
|
elsif type =~ /\AArray<(.*)>/i
|
124
139
|
# check to ensure the input is an array given that the attribute
|
125
140
|
# is documented as an array but the input is not
|
126
|
-
|
141
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
142
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
143
|
+
end
|
127
144
|
elsif !attributes[attribute_map[key]].nil?
|
128
|
-
transformed_hash[key
|
145
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
129
146
|
end
|
130
147
|
end
|
131
148
|
new(transformed_hash)
|
@@ -191,7 +208,7 @@ module Api
|
|
191
208
|
def to_hash
|
192
209
|
hash = {}
|
193
210
|
self.class.attribute_map.each_pair do |attr, param|
|
194
|
-
value = send(attr)
|
211
|
+
value = self.send(attr)
|
195
212
|
if value.nil?
|
196
213
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
197
214
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -219,5 +236,7 @@ module Api
|
|
219
236
|
value
|
220
237
|
end
|
221
238
|
end
|
239
|
+
|
222
240
|
end
|
241
|
+
|
223
242
|
end
|