transferzero-sdk 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -5
- data/docs/AccountMeta.md +1 -1
- data/docs/Currency.md +1 -3
- data/docs/CurrencyExchange.md +1 -3
- data/docs/CurrencyOpposite.md +4 -4
- data/docs/Document.md +3 -3
- data/docs/DocumentsApi.md +2 -74
- data/docs/FieldSelectValidation.md +1 -1
- data/docs/FieldValidation.md +1 -1
- data/docs/PayinMethodDetails.md +3 -1
- data/docs/PayinMethodDetailsBTC.md +17 -0
- data/docs/PayinMethodDetailsMobile.md +1 -1
- data/docs/PaymentMethod.md +2 -2
- data/docs/PaymentMethodOpposite.md +2 -2
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodDetails.md +17 -1
- data/docs/PayoutMethodDetailsBTC.md +23 -0
- data/docs/PayoutMethodDetailsGBPBank.md +29 -0
- data/docs/PayoutMethodDetailsIBAN.md +1 -1
- data/docs/PayoutMethodDetailsZARBank.md +35 -0
- data/docs/Recipient.md +4 -4
- data/docs/RecipientsApi.md +1 -1
- data/docs/Sender.md +71 -33
- data/lib/transferzero-sdk.rb +4 -0
- data/lib/transferzero-sdk/api/documents_api.rb +0 -63
- data/lib/transferzero-sdk/api/recipients_api.rb +2 -2
- data/lib/transferzero-sdk/api_client.rb +5 -3
- data/lib/transferzero-sdk/models/account.rb +70 -69
- data/lib/transferzero-sdk/models/account_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/account_meta.rb +61 -60
- data/lib/transferzero-sdk/models/account_response.rb +66 -65
- data/lib/transferzero-sdk/models/account_validation_error.rb +61 -60
- data/lib/transferzero-sdk/models/account_validation_request.rb +164 -163
- data/lib/transferzero-sdk/models/account_validation_response.rb +66 -65
- data/lib/transferzero-sdk/models/account_validation_result.rb +61 -60
- data/lib/transferzero-sdk/models/api_log.rb +136 -135
- data/lib/transferzero-sdk/models/api_log_list_response.rb +70 -69
- data/lib/transferzero-sdk/models/api_log_response.rb +60 -59
- data/lib/transferzero-sdk/models/currency.rb +133 -142
- data/lib/transferzero-sdk/models/currency_exchange.rb +149 -158
- data/lib/transferzero-sdk/models/currency_exchange_list_response.rb +62 -61
- data/lib/transferzero-sdk/models/currency_list_response.rb +62 -61
- data/lib/transferzero-sdk/models/currency_opposite.rb +166 -165
- data/lib/transferzero-sdk/models/debit.rb +151 -150
- data/lib/transferzero-sdk/models/debit_list_request.rb +61 -60
- data/lib/transferzero-sdk/models/debit_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/debit_request.rb +60 -59
- data/lib/transferzero-sdk/models/debit_request_wrapper.rb +80 -79
- data/lib/transferzero-sdk/models/debit_response.rb +60 -59
- data/lib/transferzero-sdk/models/document.rb +179 -177
- data/lib/transferzero-sdk/models/document_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/document_request.rb +60 -59
- data/lib/transferzero-sdk/models/document_response.rb +60 -59
- data/lib/transferzero-sdk/models/document_webhook.rb +96 -95
- data/lib/transferzero-sdk/models/error_status.rb +66 -65
- data/lib/transferzero-sdk/models/field_description.rb +95 -94
- data/lib/transferzero-sdk/models/field_select_validation.rb +70 -69
- data/lib/transferzero-sdk/models/field_validation.rb +78 -77
- data/lib/transferzero-sdk/models/pagination.rb +97 -96
- data/lib/transferzero-sdk/models/pagination_meta.rb +60 -59
- data/lib/transferzero-sdk/models/payin_method.rb +97 -96
- data/lib/transferzero-sdk/models/payin_method_details.rb +122 -110
- data/lib/transferzero-sdk/models/payin_method_details_btc.rb +204 -0
- data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +75 -74
- data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +71 -70
- data/lib/transferzero-sdk/models/payin_method_request.rb +60 -59
- data/lib/transferzero-sdk/models/payment_method.rb +109 -108
- data/lib/transferzero-sdk/models/payment_method_list_response.rb +61 -60
- data/lib/transferzero-sdk/models/payment_method_opposite.rb +124 -123
- data/lib/transferzero-sdk/models/payout_method.rb +107 -106
- data/lib/transferzero-sdk/models/payout_method_bank_account_type_enum.rb +14 -19
- data/lib/transferzero-sdk/models/payout_method_details.rb +398 -297
- data/lib/transferzero-sdk/models/payout_method_details_balance.rb +61 -60
- data/lib/transferzero-sdk/models/payout_method_details_btc.rb +250 -0
- data/lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb +267 -0
- data/lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb +97 -96
- data/lib/transferzero-sdk/models/payout_method_details_iban.rb +100 -104
- data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +162 -161
- data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +86 -85
- data/lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb +104 -103
- data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +108 -107
- data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +97 -96
- data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +324 -0
- data/lib/transferzero-sdk/models/payout_method_gender_enum.rb +14 -19
- data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +15 -20
- data/lib/transferzero-sdk/models/payout_method_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +14 -19
- data/lib/transferzero-sdk/models/payout_method_request.rb +60 -59
- data/lib/transferzero-sdk/models/payout_method_response.rb +60 -59
- data/lib/transferzero-sdk/models/payout_method_webhook.rb +96 -95
- data/lib/transferzero-sdk/models/politically_exposed_person.rb +123 -123
- data/lib/transferzero-sdk/models/recipient.rb +230 -229
- data/lib/transferzero-sdk/models/recipient_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/recipient_request.rb +60 -59
- data/lib/transferzero-sdk/models/recipient_response.rb +60 -59
- data/lib/transferzero-sdk/models/recipient_state.rb +22 -27
- data/lib/transferzero-sdk/models/recipient_webhook.rb +96 -95
- data/lib/transferzero-sdk/models/sender.rb +573 -358
- data/lib/transferzero-sdk/models/sender_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/sender_request.rb +60 -59
- data/lib/transferzero-sdk/models/sender_response.rb +66 -65
- data/lib/transferzero-sdk/models/sender_response_existing.rb +60 -59
- data/lib/transferzero-sdk/models/sender_response_meta.rb +60 -59
- data/lib/transferzero-sdk/models/sender_state.rb +19 -24
- data/lib/transferzero-sdk/models/sender_webhook.rb +96 -95
- data/lib/transferzero-sdk/models/transaction.rb +192 -191
- data/lib/transferzero-sdk/models/transaction_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/transaction_request.rb +60 -59
- data/lib/transferzero-sdk/models/transaction_response.rb +66 -65
- data/lib/transferzero-sdk/models/transaction_response_existing.rb +66 -65
- data/lib/transferzero-sdk/models/transaction_response_meta.rb +60 -59
- data/lib/transferzero-sdk/models/transaction_state.rb +23 -28
- data/lib/transferzero-sdk/models/transaction_traits.rb +71 -70
- data/lib/transferzero-sdk/models/transaction_webhook.rb +96 -95
- data/lib/transferzero-sdk/models/validation_error_description.rb +62 -61
- data/lib/transferzero-sdk/models/webhook.rb +92 -91
- data/lib/transferzero-sdk/models/webhook_definition.rb +107 -106
- data/lib/transferzero-sdk/models/webhook_definition_event_list_response.rb +61 -60
- data/lib/transferzero-sdk/models/webhook_definition_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/webhook_definition_request.rb +60 -59
- data/lib/transferzero-sdk/models/webhook_definition_response.rb +60 -59
- data/lib/transferzero-sdk/models/webhook_log.rb +97 -96
- data/lib/transferzero-sdk/models/webhook_log_list_response.rb +70 -69
- data/lib/transferzero-sdk/models/webhook_log_metadata.rb +129 -128
- data/lib/transferzero-sdk/models/webhook_log_metadata_request.rb +80 -79
- data/lib/transferzero-sdk/models/webhook_log_metadata_response.rb +81 -80
- data/lib/transferzero-sdk/models/webhook_log_response.rb +60 -59
- data/lib/transferzero-sdk/version.rb +1 -1
- data/spec/models/payin_method_details_btc_spec.rb +41 -0
- data/spec/models/payout_method_details_btc_spec.rb +59 -0
- data/spec/models/payout_method_details_gbp_bank_spec.rb +77 -0
- data/spec/models/payout_method_details_zar_bank_spec.rb +89 -0
- metadata +28 -12
@@ -13,118 +13,118 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TransferZero
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
# Attribute type mapping.
|
35
|
-
def self.openapi_types
|
36
|
-
{
|
37
|
-
:'webhook' => :'String',
|
38
|
-
:'event' => :'String',
|
39
|
-
:'object' => :'PayoutMethod'
|
40
|
-
}
|
41
|
-
end
|
42
|
-
|
43
|
-
# List of class defined in allOf (OpenAPI v3)
|
44
|
-
def self.openapi_all_of
|
45
|
-
[
|
46
|
-
:'Webhook'
|
47
|
-
]
|
48
|
-
end
|
49
|
-
|
50
|
-
# Initializes the object
|
51
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
-
def initialize(attributes = {})
|
53
|
-
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodWebhook` initialize method"
|
55
|
-
end
|
56
|
-
|
57
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodWebhook`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
-
end
|
62
|
-
h[k.to_sym] = v
|
63
|
-
}
|
16
|
+
class PayoutMethodWebhook
|
17
|
+
# The ID of the webhook that was used to send out this callback
|
18
|
+
attr_accessor :webhook
|
19
|
+
|
20
|
+
# The event that triggered this webhook
|
21
|
+
attr_accessor :event
|
22
|
+
|
23
|
+
attr_accessor :object
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'webhook' => :'webhook',
|
29
|
+
:'event' => :'event',
|
30
|
+
:'object' => :'object'
|
31
|
+
}
|
32
|
+
end
|
64
33
|
|
65
|
-
|
66
|
-
|
67
|
-
|
34
|
+
# Attribute type mapping.
|
35
|
+
def self.openapi_types
|
36
|
+
{
|
37
|
+
:'webhook' => :'String',
|
38
|
+
:'event' => :'String',
|
39
|
+
:'object' => :'PayoutMethod'
|
40
|
+
}
|
41
|
+
end
|
68
42
|
|
69
|
-
|
70
|
-
|
71
|
-
|
43
|
+
# List of class defined in allOf (OpenAPI v3)
|
44
|
+
def self.openapi_all_of
|
45
|
+
[
|
46
|
+
:'Webhook'
|
47
|
+
]
|
48
|
+
end
|
72
49
|
|
73
|
-
|
74
|
-
|
75
|
-
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
if (!attributes.is_a?(Hash))
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodWebhook` initialize method"
|
76
55
|
end
|
77
56
|
|
78
|
-
#
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
if @webhook.nil?
|
83
|
-
invalid_properties.push('invalid value for "webhook", webhook cannot be nil.')
|
84
|
-
end
|
85
|
-
|
86
|
-
if @event.nil?
|
87
|
-
invalid_properties.push('invalid value for "event", event cannot be nil.')
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodWebhook`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
61
|
end
|
62
|
+
h[k.to_sym] = v
|
63
|
+
}
|
89
64
|
|
90
|
-
|
91
|
-
|
92
|
-
|
65
|
+
if attributes.key?(:'webhook')
|
66
|
+
self.webhook = attributes[:'webhook']
|
67
|
+
end
|
93
68
|
|
94
|
-
|
69
|
+
if attributes.key?(:'event')
|
70
|
+
self.event = attributes[:'event']
|
95
71
|
end
|
96
72
|
|
97
|
-
|
98
|
-
|
99
|
-
def valid?
|
100
|
-
return false if @webhook.nil?
|
101
|
-
return false if @event.nil?
|
102
|
-
return false if @object.nil?
|
103
|
-
true
|
73
|
+
if attributes.key?(:'object')
|
74
|
+
self.object = attributes[:'object']
|
104
75
|
end
|
76
|
+
end
|
105
77
|
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
event == o.event &&
|
113
|
-
object == o.object
|
78
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
79
|
+
# @return Array for valid properties with the reasons
|
80
|
+
def list_invalid_properties
|
81
|
+
invalid_properties = Array.new
|
82
|
+
if @webhook.nil?
|
83
|
+
invalid_properties.push('invalid value for "webhook", webhook cannot be nil.')
|
114
84
|
end
|
115
85
|
|
116
|
-
|
117
|
-
|
118
|
-
def eql?(o)
|
119
|
-
self == o
|
86
|
+
if @event.nil?
|
87
|
+
invalid_properties.push('invalid value for "event", event cannot be nil.')
|
120
88
|
end
|
121
89
|
|
122
|
-
|
123
|
-
|
124
|
-
def hash
|
125
|
-
[webhook, event, object].hash
|
90
|
+
if @object.nil?
|
91
|
+
invalid_properties.push('invalid value for "object", object cannot be nil.')
|
126
92
|
end
|
127
93
|
|
94
|
+
invalid_properties
|
95
|
+
end
|
96
|
+
|
97
|
+
# Check to see if the all the properties in the model are valid
|
98
|
+
# @return true if the model is valid
|
99
|
+
def valid?
|
100
|
+
return false if @webhook.nil?
|
101
|
+
return false if @event.nil?
|
102
|
+
return false if @object.nil?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def ==(o)
|
109
|
+
return true if self.equal?(o)
|
110
|
+
self.class == o.class &&
|
111
|
+
webhook == o.webhook &&
|
112
|
+
event == o.event &&
|
113
|
+
object == o.object
|
114
|
+
end
|
115
|
+
|
116
|
+
# @see the `==` method
|
117
|
+
# @param [Object] Object to be compared
|
118
|
+
def eql?(o)
|
119
|
+
self == o
|
120
|
+
end
|
121
|
+
|
122
|
+
# Calculates hash code according to all attributes.
|
123
|
+
# @return [Integer] Hash code
|
124
|
+
def hash
|
125
|
+
[webhook, event, object].hash
|
126
|
+
end
|
127
|
+
|
128
128
|
require 'active_support/core_ext/hash'
|
129
129
|
require 'active_support/hash_with_indifferent_access.rb'
|
130
130
|
# Builds the object from hash
|
@@ -239,5 +239,6 @@ def _to_hash(value)
|
|
239
239
|
end
|
240
240
|
end
|
241
241
|
|
242
|
-
|
242
|
+
end
|
243
|
+
|
243
244
|
end
|
@@ -13,146 +13,145 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TransferZero
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
end
|
54
|
-
|
55
|
-
# Attribute type mapping.
|
56
|
-
def self.openapi_types
|
57
|
-
{
|
58
|
-
:'id' => :'Integer',
|
59
|
-
:'name' => :'String',
|
60
|
-
:'position' => :'String',
|
61
|
-
:'started_date' => :'DateTime',
|
62
|
-
:'ended_date' => :'DateTime',
|
63
|
-
:'sender_id' => :'String',
|
64
|
-
:'created_at' => :'DateTime',
|
65
|
-
:'updated_at' => :'DateTime'
|
66
|
-
}
|
67
|
-
end
|
68
|
-
|
69
|
-
# Initializes the object
|
70
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
71
|
-
def initialize(attributes = {})
|
72
|
-
if (!attributes.is_a?(Hash))
|
73
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PoliticallyExposedPerson` initialize method"
|
74
|
-
end
|
75
|
-
|
76
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
77
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
78
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
79
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PoliticallyExposedPerson`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
80
|
-
end
|
81
|
-
h[k.to_sym] = v
|
82
|
-
}
|
83
|
-
|
84
|
-
if attributes.key?(:'id')
|
85
|
-
self.id = attributes[:'id']
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.key?(:'name')
|
89
|
-
self.name = attributes[:'name']
|
90
|
-
end
|
16
|
+
class PoliticallyExposedPerson
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# Full name of the politically exposed person
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
# The office held by the politically exposed person
|
23
|
+
attr_accessor :position
|
24
|
+
|
25
|
+
# The date on which the person started holding the office
|
26
|
+
attr_accessor :started_date
|
27
|
+
|
28
|
+
# The date on which the person ended holding the office
|
29
|
+
attr_accessor :ended_date
|
30
|
+
|
31
|
+
# The ID of the Sender to whom the person is attached to
|
32
|
+
attr_accessor :sender_id
|
33
|
+
|
34
|
+
# Date and time the person was created
|
35
|
+
attr_accessor :created_at
|
36
|
+
|
37
|
+
# Date and time the person was updated
|
38
|
+
attr_accessor :updated_at
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
:'id' => :'id',
|
44
|
+
:'name' => :'name',
|
45
|
+
:'position' => :'position',
|
46
|
+
:'started_date' => :'started_date',
|
47
|
+
:'ended_date' => :'ended_date',
|
48
|
+
:'sender_id' => :'sender_id',
|
49
|
+
:'created_at' => :'created_at',
|
50
|
+
:'updated_at' => :'updated_at'
|
51
|
+
}
|
52
|
+
end
|
91
53
|
|
92
|
-
|
93
|
-
|
94
|
-
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.openapi_types
|
56
|
+
{
|
57
|
+
:'id' => :'Integer',
|
58
|
+
:'name' => :'String',
|
59
|
+
:'position' => :'String',
|
60
|
+
:'started_date' => :'DateTime',
|
61
|
+
:'ended_date' => :'DateTime',
|
62
|
+
:'sender_id' => :'String',
|
63
|
+
:'created_at' => :'DateTime',
|
64
|
+
:'updated_at' => :'DateTime'
|
65
|
+
}
|
66
|
+
end
|
95
67
|
|
96
|
-
|
97
|
-
|
98
|
-
|
68
|
+
# Initializes the object
|
69
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
70
|
+
def initialize(attributes = {})
|
71
|
+
if (!attributes.is_a?(Hash))
|
72
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PoliticallyExposedPerson` initialize method"
|
73
|
+
end
|
99
74
|
|
100
|
-
|
101
|
-
|
75
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
77
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PoliticallyExposedPerson`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
102
79
|
end
|
80
|
+
h[k.to_sym] = v
|
81
|
+
}
|
103
82
|
|
104
|
-
|
105
|
-
|
106
|
-
|
83
|
+
if attributes.key?(:'id')
|
84
|
+
self.id = attributes[:'id']
|
85
|
+
end
|
107
86
|
|
108
|
-
|
109
|
-
|
110
|
-
|
87
|
+
if attributes.key?(:'name')
|
88
|
+
self.name = attributes[:'name']
|
89
|
+
end
|
111
90
|
|
112
|
-
|
113
|
-
|
114
|
-
end
|
91
|
+
if attributes.key?(:'position')
|
92
|
+
self.position = attributes[:'position']
|
115
93
|
end
|
116
94
|
|
117
|
-
|
118
|
-
|
119
|
-
def list_invalid_properties
|
120
|
-
invalid_properties = Array.new
|
121
|
-
invalid_properties
|
95
|
+
if attributes.key?(:'started_date')
|
96
|
+
self.started_date = attributes[:'started_date']
|
122
97
|
end
|
123
98
|
|
124
|
-
|
125
|
-
|
126
|
-
def valid?
|
127
|
-
true
|
99
|
+
if attributes.key?(:'ended_date')
|
100
|
+
self.ended_date = attributes[:'ended_date']
|
128
101
|
end
|
129
102
|
|
130
|
-
|
131
|
-
|
132
|
-
def ==(o)
|
133
|
-
return true if self.equal?(o)
|
134
|
-
self.class == o.class &&
|
135
|
-
id == o.id &&
|
136
|
-
name == o.name &&
|
137
|
-
position == o.position &&
|
138
|
-
started_date == o.started_date &&
|
139
|
-
ended_date == o.ended_date &&
|
140
|
-
sender_id == o.sender_id &&
|
141
|
-
created_at == o.created_at &&
|
142
|
-
updated_at == o.updated_at
|
103
|
+
if attributes.key?(:'sender_id')
|
104
|
+
self.sender_id = attributes[:'sender_id']
|
143
105
|
end
|
144
106
|
|
145
|
-
|
146
|
-
|
147
|
-
def eql?(o)
|
148
|
-
self == o
|
107
|
+
if attributes.key?(:'created_at')
|
108
|
+
self.created_at = attributes[:'created_at']
|
149
109
|
end
|
150
110
|
|
151
|
-
|
152
|
-
|
153
|
-
def hash
|
154
|
-
[id, name, position, started_date, ended_date, sender_id, created_at, updated_at].hash
|
111
|
+
if attributes.key?(:'updated_at')
|
112
|
+
self.updated_at = attributes[:'updated_at']
|
155
113
|
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
117
|
+
# @return Array for valid properties with the reasons
|
118
|
+
def list_invalid_properties
|
119
|
+
invalid_properties = Array.new
|
120
|
+
invalid_properties
|
121
|
+
end
|
122
|
+
|
123
|
+
# Check to see if the all the properties in the model are valid
|
124
|
+
# @return true if the model is valid
|
125
|
+
def valid?
|
126
|
+
true
|
127
|
+
end
|
128
|
+
|
129
|
+
# Checks equality by comparing each attribute.
|
130
|
+
# @param [Object] Object to be compared
|
131
|
+
def ==(o)
|
132
|
+
return true if self.equal?(o)
|
133
|
+
self.class == o.class &&
|
134
|
+
id == o.id &&
|
135
|
+
name == o.name &&
|
136
|
+
position == o.position &&
|
137
|
+
started_date == o.started_date &&
|
138
|
+
ended_date == o.ended_date &&
|
139
|
+
sender_id == o.sender_id &&
|
140
|
+
created_at == o.created_at &&
|
141
|
+
updated_at == o.updated_at
|
142
|
+
end
|
143
|
+
|
144
|
+
# @see the `==` method
|
145
|
+
# @param [Object] Object to be compared
|
146
|
+
def eql?(o)
|
147
|
+
self == o
|
148
|
+
end
|
149
|
+
|
150
|
+
# Calculates hash code according to all attributes.
|
151
|
+
# @return [Integer] Hash code
|
152
|
+
def hash
|
153
|
+
[id, name, position, started_date, ended_date, sender_id, created_at, updated_at].hash
|
154
|
+
end
|
156
155
|
|
157
156
|
require 'active_support/core_ext/hash'
|
158
157
|
require 'active_support/hash_with_indifferent_access.rb'
|
@@ -268,5 +267,6 @@ def _to_hash(value)
|
|
268
267
|
end
|
269
268
|
end
|
270
269
|
|
271
|
-
|
270
|
+
end
|
271
|
+
|
272
272
|
end
|