jamm 1.3.0 → 1.4.0

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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/jamm/api/api/customer_api.rb +82 -52
  4. data/lib/jamm/api/api/healthcheck_api.rb +18 -15
  5. data/lib/jamm/api/api/payment_api.rb +113 -62
  6. data/lib/jamm/api/api/webhook_service_api.rb +41 -28
  7. data/lib/jamm/api/api_client.rb +74 -66
  8. data/lib/jamm/api/api_error.rb +16 -16
  9. data/lib/jamm/api/configuration.rb +42 -34
  10. data/lib/jamm/api/models/apiv1_error.rb +56 -44
  11. data/lib/jamm/api/models/apiv1_status.rb +57 -47
  12. data/lib/jamm/api/models/customer_service_update_customer_body.rb +107 -69
  13. data/lib/jamm/api/models/googlerpc_status.rb +61 -45
  14. data/lib/jamm/api/models/protobuf_any.rb +42 -35
  15. data/lib/jamm/api/models/v1_add_charge_request.rb +59 -44
  16. data/lib/jamm/api/models/v1_add_charge_response.rb +59 -44
  17. data/lib/jamm/api/models/v1_bank.rb +150 -95
  18. data/lib/jamm/api/models/v1_bank_assets.rb +60 -47
  19. data/lib/jamm/api/models/v1_bank_branch.rb +83 -56
  20. data/lib/jamm/api/models/v1_bank_information.rb +71 -51
  21. data/lib/jamm/api/models/v1_bank_quota.rb +99 -64
  22. data/lib/jamm/api/models/v1_bank_scheduled_maintenance_period.rb +75 -52
  23. data/lib/jamm/api/models/v1_buyer.rb +104 -76
  24. data/lib/jamm/api/models/v1_charge.rb +67 -52
  25. data/lib/jamm/api/models/v1_charge_message.rb +151 -93
  26. data/lib/jamm/api/models/v1_charge_message_status.rb +17 -18
  27. data/lib/jamm/api/models/v1_charge_result.rb +152 -93
  28. data/lib/jamm/api/models/v1_contract.rb +64 -52
  29. data/lib/jamm/api/models/v1_contract_message.rb +67 -48
  30. data/lib/jamm/api/models/v1_contract_status.rb +20 -21
  31. data/lib/jamm/api/models/v1_create_contract_with_charge_request.rb +59 -44
  32. data/lib/jamm/api/models/v1_create_contract_with_charge_response.rb +67 -48
  33. data/lib/jamm/api/models/v1_create_contract_without_charge_request.rb +51 -40
  34. data/lib/jamm/api/models/v1_create_contract_without_charge_response.rb +59 -44
  35. data/lib/jamm/api/models/v1_create_customer_request.rb +42 -35
  36. data/lib/jamm/api/models/v1_create_customer_response.rb +42 -35
  37. data/lib/jamm/api/models/v1_customer.rb +91 -60
  38. data/lib/jamm/api/models/v1_delete_customer_response.rb +42 -35
  39. data/lib/jamm/api/models/v1_deposit_type.rb +14 -15
  40. data/lib/jamm/api/models/v1_error_detail.rb +57 -44
  41. data/lib/jamm/api/models/v1_error_response.rb +46 -38
  42. data/lib/jamm/api/models/v1_error_type.rb +30 -31
  43. data/lib/jamm/api/models/v1_event_type.rb +20 -21
  44. data/lib/jamm/api/models/v1_get_bank_response.rb +42 -35
  45. data/lib/jamm/api/models/v1_get_branch_response.rb +42 -35
  46. data/lib/jamm/api/models/v1_get_branches_response.rb +44 -36
  47. data/lib/jamm/api/models/v1_get_charge_response.rb +51 -40
  48. data/lib/jamm/api/models/v1_get_charges_response.rb +60 -45
  49. data/lib/jamm/api/models/v1_get_contract_response.rb +51 -40
  50. data/lib/jamm/api/models/v1_get_customer_response.rb +42 -35
  51. data/lib/jamm/api/models/v1_get_major_banks_response.rb +59 -44
  52. data/lib/jamm/api/models/v1_initial_charge.rb +61 -48
  53. data/lib/jamm/api/models/v1_kyc_status.rb +16 -17
  54. data/lib/jamm/api/models/v1_merchant.rb +51 -40
  55. data/lib/jamm/api/models/v1_merchant_customer.rb +51 -40
  56. data/lib/jamm/api/models/v1_merchant_webhook_message.rb +75 -57
  57. data/lib/jamm/api/models/v1_message_response.rb +67 -48
  58. data/lib/jamm/api/models/v1_off_session_payment_request.rb +51 -40
  59. data/lib/jamm/api/models/v1_off_session_payment_response.rb +51 -40
  60. data/lib/jamm/api/models/v1_on_session_payment_data.rb +67 -48
  61. data/lib/jamm/api/models/v1_on_session_payment_error.rb +55 -45
  62. data/lib/jamm/api/models/v1_on_session_payment_error_code.rb +21 -22
  63. data/lib/jamm/api/models/v1_on_session_payment_request.rb +67 -48
  64. data/lib/jamm/api/models/v1_on_session_payment_response.rb +59 -44
  65. data/lib/jamm/api/models/v1_pagination.rb +51 -40
  66. data/lib/jamm/api/models/v1_payment_authorization_status.rb +14 -15
  67. data/lib/jamm/api/models/v1_payment_link.rb +57 -44
  68. data/lib/jamm/api/models/v1_ping_response.rb +42 -35
  69. data/lib/jamm/api/models/v1_search_banks_response.rb +44 -36
  70. data/lib/jamm/api/models/v1_search_branches_response.rb +44 -36
  71. data/lib/jamm/api/models/v1_update_customer_response.rb +42 -35
  72. data/lib/jamm/api/models/v1_url.rb +48 -39
  73. data/lib/jamm/api/models/v1_user_account_message.rb +67 -48
  74. data/lib/jamm/api/models/v1_withdraw_request.rb +51 -40
  75. data/lib/jamm/api/models/v1_withdraw_response.rb +51 -40
  76. data/lib/jamm/api/version.rb +11 -11
  77. data/lib/jamm/api.rb +10 -10
  78. data/lib/jamm/charge.rb +12 -0
  79. data/lib/jamm/deprecation.rb +13 -0
  80. data/lib/jamm/payment.rb +61 -0
  81. data/lib/jamm/version.rb +1 -1
  82. data/lib/jamm.rb +2 -0
  83. metadata +4 -2
@@ -1,14 +1,14 @@
1
- # frozen_string_literal: true
2
-
3
- # #Jamm API
4
- #
5
- # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- #
7
- # The version of the OpenAPI document: 1.0
8
- #
9
- # Generated by: https://openapi-generator.tech
10
- # Generator version: 7.9.0
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
- raise ArgumentError, 'The input argument (attributes) must be a hash in `Api::UpdateCustomerResponse` initialize method' unless attributes.is_a?(Hash)
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({}) do |(k, v), h|
51
- raise 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 unless self.class.attribute_map.key?(k.to_sym)
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
- end
55
-
56
- return unless attributes.key?(:customer)
58
+ }
57
59
 
58
- self.customer = attributes[:customer]
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 ==(other)
78
- return true if equal?(other)
79
-
80
- self.class == other.class &&
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?(other)
87
- self == other
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.to_s] = nil
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
- transformed_hash[key.to_s] = attributes[attribute_map[key]].map { |v| _deserialize(::Regexp.last_match(1), v) } if attributes[attribute_map[key]].is_a?(Array)
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.to_s] = _deserialize(type, attributes[attribute_map[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
- # frozen_string_literal: true
2
-
3
- # #Jamm API
4
- #
5
- # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- #
7
- # The version of the OpenAPI document: 1.0
8
- #
9
- # Generated by: https://openapi-generator.tech
10
- # Generator version: 7.9.0
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
- raise ArgumentError, 'The input argument (attributes) must be a hash in `Api::URL` initialize method' unless attributes.is_a?(Hash)
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({}) do |(k, v), h|
57
- raise 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 unless self.class.attribute_map.key?(k.to_sym)
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
- end
61
-
62
- self.success_url = attributes[:success_url] if attributes.key?(:success_url)
64
+ }
63
65
 
64
- return unless attributes.key?(:failure_url)
66
+ if attributes.key?(:'success_url')
67
+ self.success_url = attributes[:'success_url']
68
+ end
65
69
 
66
- self.failure_url = attributes[:failure_url]
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 ==(other)
86
- return true if equal?(other)
87
-
88
- self.class == other.class &&
89
- success_url == other.success_url &&
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?(other)
96
- self == other
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.to_s] = nil
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
- transformed_hash[key.to_s] = attributes[attribute_map[key]].map { |v| _deserialize(::Regexp.last_match(1), v) } if attributes[attribute_map[key]].is_a?(Array)
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.to_s] = _deserialize(type, attributes[attribute_map[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
- # frozen_string_literal: true
2
-
3
- # #Jamm API
4
- #
5
- # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- #
7
- # The version of the OpenAPI document: 1.0
8
- #
9
- # Generated by: https://openapi-generator.tech
10
- # Generator version: 7.9.0
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, :email, :deleted_at, :merchant_name
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
- raise ArgumentError, 'The input argument (attributes) must be a hash in `Api::UserAccountMessage` initialize method' unless attributes.is_a?(Hash)
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({}) do |(k, v), h|
58
- raise 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 unless self.class.attribute_map.key?(k.to_sym)
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
- end
62
-
63
- self.customer = attributes[:customer] if attributes.key?(:customer)
71
+ }
64
72
 
65
- self.email = attributes[:email] if attributes.key?(:email)
73
+ if attributes.key?(:'customer')
74
+ self.customer = attributes[:'customer']
75
+ end
66
76
 
67
- self.deleted_at = attributes[:deleted_at] if attributes.key?(:deleted_at)
77
+ if attributes.key?(:'email')
78
+ self.email = attributes[:'email']
79
+ end
68
80
 
69
- return unless attributes.key?(:merchant_name)
81
+ if attributes.key?(:'deleted_at')
82
+ self.deleted_at = attributes[:'deleted_at']
83
+ end
70
84
 
71
- self.merchant_name = attributes[:merchant_name]
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 ==(other)
91
- return true if equal?(other)
92
-
93
- self.class == other.class &&
94
- customer == other.customer &&
95
- email == other.email &&
96
- deleted_at == other.deleted_at &&
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?(other)
103
- self == other
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.to_s] = nil
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
- transformed_hash[key.to_s] = attributes[attribute_map[key]].map { |v| _deserialize(::Regexp.last_match(1), v) } if attributes[attribute_map[key]].is_a?(Array)
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.to_s] = _deserialize(type, attributes[attribute_map[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