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'
|
@@ -16,19 +16,33 @@ require 'time'
|
|
16
16
|
module Api
|
17
17
|
# See Google Spreadsheet for more information: https://docs.google.com/spreadsheets/d/1sxklqXzTGt-E7FgXB801d12Az8pbpZgs/edit?gid=1684227518#gid=1684227518
|
18
18
|
class BankQuota
|
19
|
-
attr_accessor :offline_purchase_limit_per_charge_with_kyc
|
19
|
+
attr_accessor :offline_purchase_limit_per_charge_with_kyc
|
20
|
+
|
21
|
+
attr_accessor :offline_purchase_limit_per_charge_without_kyc
|
22
|
+
|
23
|
+
attr_accessor :offline_purchase_limit_per_day_with_kyc
|
24
|
+
|
25
|
+
attr_accessor :offline_purchase_limit_per_day_without_kyc
|
26
|
+
|
27
|
+
attr_accessor :subscription_purchase_limit_per_charge_with_kyc
|
28
|
+
|
29
|
+
attr_accessor :subscription_purchase_limit_per_charge_without_kyc
|
30
|
+
|
31
|
+
attr_accessor :subscription_purchase_limit_per_day_with_kyc
|
32
|
+
|
33
|
+
attr_accessor :subscription_purchase_limit_per_day_without_kyc
|
20
34
|
|
21
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
36
|
def self.attribute_map
|
23
37
|
{
|
24
|
-
:offline_purchase_limit_per_charge_with_kyc => :offlinePurchaseLimitPerChargeWithKyc,
|
25
|
-
:offline_purchase_limit_per_charge_without_kyc => :offlinePurchaseLimitPerChargeWithoutKyc,
|
26
|
-
:offline_purchase_limit_per_day_with_kyc => :offlinePurchaseLimitPerDayWithKyc,
|
27
|
-
:offline_purchase_limit_per_day_without_kyc => :offlinePurchaseLimitPerDayWithoutKyc,
|
28
|
-
:subscription_purchase_limit_per_charge_with_kyc => :subscriptionPurchaseLimitPerChargeWithKyc,
|
29
|
-
:subscription_purchase_limit_per_charge_without_kyc => :subscriptionPurchaseLimitPerChargeWithoutKyc,
|
30
|
-
:subscription_purchase_limit_per_day_with_kyc => :subscriptionPurchaseLimitPerDayWithKyc,
|
31
|
-
:subscription_purchase_limit_per_day_without_kyc => :subscriptionPurchaseLimitPerDayWithoutKyc
|
38
|
+
:'offline_purchase_limit_per_charge_with_kyc' => :'offlinePurchaseLimitPerChargeWithKyc',
|
39
|
+
:'offline_purchase_limit_per_charge_without_kyc' => :'offlinePurchaseLimitPerChargeWithoutKyc',
|
40
|
+
:'offline_purchase_limit_per_day_with_kyc' => :'offlinePurchaseLimitPerDayWithKyc',
|
41
|
+
:'offline_purchase_limit_per_day_without_kyc' => :'offlinePurchaseLimitPerDayWithoutKyc',
|
42
|
+
:'subscription_purchase_limit_per_charge_with_kyc' => :'subscriptionPurchaseLimitPerChargeWithKyc',
|
43
|
+
:'subscription_purchase_limit_per_charge_without_kyc' => :'subscriptionPurchaseLimitPerChargeWithoutKyc',
|
44
|
+
:'subscription_purchase_limit_per_day_with_kyc' => :'subscriptionPurchaseLimitPerDayWithKyc',
|
45
|
+
:'subscription_purchase_limit_per_day_without_kyc' => :'subscriptionPurchaseLimitPerDayWithoutKyc'
|
32
46
|
}
|
33
47
|
end
|
34
48
|
|
@@ -40,58 +54,77 @@ module Api
|
|
40
54
|
# Attribute type mapping.
|
41
55
|
def self.openapi_types
|
42
56
|
{
|
43
|
-
:offline_purchase_limit_per_charge_with_kyc => :Integer,
|
44
|
-
:offline_purchase_limit_per_charge_without_kyc => :Integer,
|
45
|
-
:offline_purchase_limit_per_day_with_kyc => :Integer,
|
46
|
-
:offline_purchase_limit_per_day_without_kyc => :Integer,
|
47
|
-
:subscription_purchase_limit_per_charge_with_kyc => :Integer,
|
48
|
-
:subscription_purchase_limit_per_charge_without_kyc => :Integer,
|
49
|
-
:subscription_purchase_limit_per_day_with_kyc => :Integer,
|
50
|
-
:subscription_purchase_limit_per_day_without_kyc => :Integer
|
57
|
+
:'offline_purchase_limit_per_charge_with_kyc' => :'Integer',
|
58
|
+
:'offline_purchase_limit_per_charge_without_kyc' => :'Integer',
|
59
|
+
:'offline_purchase_limit_per_day_with_kyc' => :'Integer',
|
60
|
+
:'offline_purchase_limit_per_day_without_kyc' => :'Integer',
|
61
|
+
:'subscription_purchase_limit_per_charge_with_kyc' => :'Integer',
|
62
|
+
:'subscription_purchase_limit_per_charge_without_kyc' => :'Integer',
|
63
|
+
:'subscription_purchase_limit_per_day_with_kyc' => :'Integer',
|
64
|
+
:'subscription_purchase_limit_per_day_without_kyc' => :'Integer'
|
51
65
|
}
|
52
66
|
end
|
53
67
|
|
54
68
|
# List of attributes with nullable: true
|
55
69
|
def self.openapi_nullable
|
56
|
-
Set.new([
|
70
|
+
Set.new([
|
71
|
+
])
|
57
72
|
end
|
58
73
|
|
59
74
|
# Initializes the object
|
60
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
76
|
def initialize(attributes = {})
|
62
|
-
|
77
|
+
if (!attributes.is_a?(Hash))
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Api::BankQuota` initialize method"
|
79
|
+
end
|
63
80
|
|
64
81
|
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({})
|
66
|
-
|
67
|
-
|
82
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
83
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
84
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Api::BankQuota`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
85
|
+
end
|
68
86
|
h[k.to_sym] = v
|
69
|
-
|
70
|
-
|
71
|
-
self.offline_purchase_limit_per_charge_with_kyc = attributes[:offline_purchase_limit_per_charge_with_kyc] if attributes.key?(:offline_purchase_limit_per_charge_with_kyc)
|
87
|
+
}
|
72
88
|
|
73
|
-
|
89
|
+
if attributes.key?(:'offline_purchase_limit_per_charge_with_kyc')
|
90
|
+
self.offline_purchase_limit_per_charge_with_kyc = attributes[:'offline_purchase_limit_per_charge_with_kyc']
|
91
|
+
end
|
74
92
|
|
75
|
-
|
93
|
+
if attributes.key?(:'offline_purchase_limit_per_charge_without_kyc')
|
94
|
+
self.offline_purchase_limit_per_charge_without_kyc = attributes[:'offline_purchase_limit_per_charge_without_kyc']
|
95
|
+
end
|
76
96
|
|
77
|
-
|
97
|
+
if attributes.key?(:'offline_purchase_limit_per_day_with_kyc')
|
98
|
+
self.offline_purchase_limit_per_day_with_kyc = attributes[:'offline_purchase_limit_per_day_with_kyc']
|
99
|
+
end
|
78
100
|
|
79
|
-
|
101
|
+
if attributes.key?(:'offline_purchase_limit_per_day_without_kyc')
|
102
|
+
self.offline_purchase_limit_per_day_without_kyc = attributes[:'offline_purchase_limit_per_day_without_kyc']
|
103
|
+
end
|
80
104
|
|
81
|
-
|
105
|
+
if attributes.key?(:'subscription_purchase_limit_per_charge_with_kyc')
|
106
|
+
self.subscription_purchase_limit_per_charge_with_kyc = attributes[:'subscription_purchase_limit_per_charge_with_kyc']
|
107
|
+
end
|
82
108
|
|
83
|
-
|
109
|
+
if attributes.key?(:'subscription_purchase_limit_per_charge_without_kyc')
|
110
|
+
self.subscription_purchase_limit_per_charge_without_kyc = attributes[:'subscription_purchase_limit_per_charge_without_kyc']
|
111
|
+
end
|
84
112
|
|
85
|
-
|
113
|
+
if attributes.key?(:'subscription_purchase_limit_per_day_with_kyc')
|
114
|
+
self.subscription_purchase_limit_per_day_with_kyc = attributes[:'subscription_purchase_limit_per_day_with_kyc']
|
115
|
+
end
|
86
116
|
|
87
|
-
|
117
|
+
if attributes.key?(:'subscription_purchase_limit_per_day_without_kyc')
|
118
|
+
self.subscription_purchase_limit_per_day_without_kyc = attributes[:'subscription_purchase_limit_per_day_without_kyc']
|
119
|
+
end
|
88
120
|
end
|
89
121
|
|
90
122
|
# Show invalid properties with the reasons. Usually used together with valid?
|
91
123
|
# @return Array for valid properties with the reasons
|
92
124
|
def list_invalid_properties
|
93
125
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
94
|
-
|
126
|
+
invalid_properties = Array.new
|
127
|
+
invalid_properties
|
95
128
|
end
|
96
129
|
|
97
130
|
# Check to see if the all the properties in the model are valid
|
@@ -103,24 +136,23 @@ module Api
|
|
103
136
|
|
104
137
|
# Checks equality by comparing each attribute.
|
105
138
|
# @param [Object] Object to be compared
|
106
|
-
def ==(
|
107
|
-
return true if equal?(
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
subscription_purchase_limit_per_day_without_kyc == other.subscription_purchase_limit_per_day_without_kyc
|
139
|
+
def ==(o)
|
140
|
+
return true if self.equal?(o)
|
141
|
+
self.class == o.class &&
|
142
|
+
offline_purchase_limit_per_charge_with_kyc == o.offline_purchase_limit_per_charge_with_kyc &&
|
143
|
+
offline_purchase_limit_per_charge_without_kyc == o.offline_purchase_limit_per_charge_without_kyc &&
|
144
|
+
offline_purchase_limit_per_day_with_kyc == o.offline_purchase_limit_per_day_with_kyc &&
|
145
|
+
offline_purchase_limit_per_day_without_kyc == o.offline_purchase_limit_per_day_without_kyc &&
|
146
|
+
subscription_purchase_limit_per_charge_with_kyc == o.subscription_purchase_limit_per_charge_with_kyc &&
|
147
|
+
subscription_purchase_limit_per_charge_without_kyc == o.subscription_purchase_limit_per_charge_without_kyc &&
|
148
|
+
subscription_purchase_limit_per_day_with_kyc == o.subscription_purchase_limit_per_day_with_kyc &&
|
149
|
+
subscription_purchase_limit_per_day_without_kyc == o.subscription_purchase_limit_per_day_without_kyc
|
118
150
|
end
|
119
151
|
|
120
152
|
# @see the `==` method
|
121
153
|
# @param [Object] Object to be compared
|
122
|
-
def eql?(
|
123
|
-
self ==
|
154
|
+
def eql?(o)
|
155
|
+
self == o
|
124
156
|
end
|
125
157
|
|
126
158
|
# Calculates hash code according to all attributes.
|
@@ -134,18 +166,19 @@ module Api
|
|
134
166
|
# @return [Object] Returns the model itself
|
135
167
|
def self.build_from_hash(attributes)
|
136
168
|
return nil unless attributes.is_a?(Hash)
|
137
|
-
|
138
169
|
attributes = attributes.transform_keys(&:to_sym)
|
139
170
|
transformed_hash = {}
|
140
171
|
openapi_types.each_pair do |key, type|
|
141
172
|
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
142
|
-
transformed_hash[key
|
173
|
+
transformed_hash["#{key}"] = nil
|
143
174
|
elsif type =~ /\AArray<(.*)>/i
|
144
175
|
# check to ensure the input is an array given that the attribute
|
145
176
|
# is documented as an array but the input is not
|
146
|
-
|
177
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
178
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
179
|
+
end
|
147
180
|
elsif !attributes[attribute_map[key]].nil?
|
148
|
-
transformed_hash[key
|
181
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
149
182
|
end
|
150
183
|
end
|
151
184
|
new(transformed_hash)
|
@@ -211,7 +244,7 @@ module Api
|
|
211
244
|
def to_hash
|
212
245
|
hash = {}
|
213
246
|
self.class.attribute_map.each_pair do |attr, param|
|
214
|
-
value = send(attr)
|
247
|
+
value = self.send(attr)
|
215
248
|
if value.nil?
|
216
249
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
217
250
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -239,5 +272,7 @@ module Api
|
|
239
272
|
value
|
240
273
|
end
|
241
274
|
end
|
275
|
+
|
242
276
|
end
|
277
|
+
|
243
278
|
end
|
@@ -1,30 +1,38 @@
|
|
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'
|
15
15
|
|
16
16
|
module Api
|
17
17
|
class BankScheduledMaintenancePeriod
|
18
|
-
attr_accessor :bank_code
|
18
|
+
attr_accessor :bank_code
|
19
|
+
|
20
|
+
attr_accessor :start_at_jst
|
21
|
+
|
22
|
+
attr_accessor :end_at_jst
|
23
|
+
|
24
|
+
attr_accessor :start_at_utc
|
25
|
+
|
26
|
+
attr_accessor :end_at_utc
|
19
27
|
|
20
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
29
|
def self.attribute_map
|
22
30
|
{
|
23
|
-
:bank_code => :bankCode,
|
24
|
-
:start_at_jst => :startAtJst,
|
25
|
-
:end_at_jst => :endAtJst,
|
26
|
-
:start_at_utc => :startAtUtc,
|
27
|
-
:end_at_utc => :endAtUtc
|
31
|
+
:'bank_code' => :'bankCode',
|
32
|
+
:'start_at_jst' => :'startAtJst',
|
33
|
+
:'end_at_jst' => :'endAtJst',
|
34
|
+
:'start_at_utc' => :'startAtUtc',
|
35
|
+
:'end_at_utc' => :'endAtUtc'
|
28
36
|
}
|
29
37
|
end
|
30
38
|
|
@@ -36,49 +44,62 @@ module Api
|
|
36
44
|
# Attribute type mapping.
|
37
45
|
def self.openapi_types
|
38
46
|
{
|
39
|
-
:bank_code => :String,
|
40
|
-
:start_at_jst => :String,
|
41
|
-
:end_at_jst => :String,
|
42
|
-
:start_at_utc => :String,
|
43
|
-
:end_at_utc => :String
|
47
|
+
:'bank_code' => :'String',
|
48
|
+
:'start_at_jst' => :'String',
|
49
|
+
:'end_at_jst' => :'String',
|
50
|
+
:'start_at_utc' => :'String',
|
51
|
+
:'end_at_utc' => :'String'
|
44
52
|
}
|
45
53
|
end
|
46
54
|
|
47
55
|
# List of attributes with nullable: true
|
48
56
|
def self.openapi_nullable
|
49
|
-
Set.new([
|
57
|
+
Set.new([
|
58
|
+
])
|
50
59
|
end
|
51
60
|
|
52
61
|
# Initializes the object
|
53
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
63
|
def initialize(attributes = {})
|
55
|
-
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Api::BankScheduledMaintenancePeriod` initialize method"
|
66
|
+
end
|
56
67
|
|
57
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
-
attributes = attributes.each_with_object({})
|
59
|
-
|
60
|
-
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Api::BankScheduledMaintenancePeriod`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
|
+
end
|
61
73
|
h[k.to_sym] = v
|
62
|
-
|
63
|
-
|
64
|
-
self.bank_code = attributes[:bank_code] if attributes.key?(:bank_code)
|
74
|
+
}
|
65
75
|
|
66
|
-
|
76
|
+
if attributes.key?(:'bank_code')
|
77
|
+
self.bank_code = attributes[:'bank_code']
|
78
|
+
end
|
67
79
|
|
68
|
-
|
80
|
+
if attributes.key?(:'start_at_jst')
|
81
|
+
self.start_at_jst = attributes[:'start_at_jst']
|
82
|
+
end
|
69
83
|
|
70
|
-
|
84
|
+
if attributes.key?(:'end_at_jst')
|
85
|
+
self.end_at_jst = attributes[:'end_at_jst']
|
86
|
+
end
|
71
87
|
|
72
|
-
|
88
|
+
if attributes.key?(:'start_at_utc')
|
89
|
+
self.start_at_utc = attributes[:'start_at_utc']
|
90
|
+
end
|
73
91
|
|
74
|
-
|
92
|
+
if attributes.key?(:'end_at_utc')
|
93
|
+
self.end_at_utc = attributes[:'end_at_utc']
|
94
|
+
end
|
75
95
|
end
|
76
96
|
|
77
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
78
98
|
# @return Array for valid properties with the reasons
|
79
99
|
def list_invalid_properties
|
80
100
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
81
|
-
|
101
|
+
invalid_properties = Array.new
|
102
|
+
invalid_properties
|
82
103
|
end
|
83
104
|
|
84
105
|
# Check to see if the all the properties in the model are valid
|
@@ -90,21 +111,20 @@ module Api
|
|
90
111
|
|
91
112
|
# Checks equality by comparing each attribute.
|
92
113
|
# @param [Object] Object to be compared
|
93
|
-
def ==(
|
94
|
-
return true if equal?(
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
end_at_utc == other.end_at_utc
|
114
|
+
def ==(o)
|
115
|
+
return true if self.equal?(o)
|
116
|
+
self.class == o.class &&
|
117
|
+
bank_code == o.bank_code &&
|
118
|
+
start_at_jst == o.start_at_jst &&
|
119
|
+
end_at_jst == o.end_at_jst &&
|
120
|
+
start_at_utc == o.start_at_utc &&
|
121
|
+
end_at_utc == o.end_at_utc
|
102
122
|
end
|
103
123
|
|
104
124
|
# @see the `==` method
|
105
125
|
# @param [Object] Object to be compared
|
106
|
-
def eql?(
|
107
|
-
self ==
|
126
|
+
def eql?(o)
|
127
|
+
self == o
|
108
128
|
end
|
109
129
|
|
110
130
|
# Calculates hash code according to all attributes.
|
@@ -118,18 +138,19 @@ module Api
|
|
118
138
|
# @return [Object] Returns the model itself
|
119
139
|
def self.build_from_hash(attributes)
|
120
140
|
return nil unless attributes.is_a?(Hash)
|
121
|
-
|
122
141
|
attributes = attributes.transform_keys(&:to_sym)
|
123
142
|
transformed_hash = {}
|
124
143
|
openapi_types.each_pair do |key, type|
|
125
144
|
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
126
|
-
transformed_hash[key
|
145
|
+
transformed_hash["#{key}"] = nil
|
127
146
|
elsif type =~ /\AArray<(.*)>/i
|
128
147
|
# check to ensure the input is an array given that the attribute
|
129
148
|
# is documented as an array but the input is not
|
130
|
-
|
149
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
150
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
151
|
+
end
|
131
152
|
elsif !attributes[attribute_map[key]].nil?
|
132
|
-
transformed_hash[key
|
153
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
133
154
|
end
|
134
155
|
end
|
135
156
|
new(transformed_hash)
|
@@ -195,7 +216,7 @@ module Api
|
|
195
216
|
def to_hash
|
196
217
|
hash = {}
|
197
218
|
self.class.attribute_map.each_pair do |attr, param|
|
198
|
-
value = send(attr)
|
219
|
+
value = self.send(attr)
|
199
220
|
if value.nil?
|
200
221
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
201
222
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
@@ -223,5 +244,7 @@ module Api
|
|
223
244
|
value
|
224
245
|
end
|
225
246
|
end
|
247
|
+
|
226
248
|
end
|
249
|
+
|
227
250
|
end
|