transferzero-sdk 1.7.0 → 1.8.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.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/docs/AccountMeta.md +1 -1
- data/docs/Currency.md +1 -1
- data/docs/CurrencyExchange.md +1 -1
- data/docs/CurrencyOpposite.md +1 -1
- data/docs/Document.md +3 -3
- data/docs/DocumentsApi.md +74 -2
- data/docs/FieldSelectValidation.md +1 -1
- data/docs/FieldValidation.md +1 -1
- data/docs/PayinMethodDetails.md +1 -3
- data/docs/PayinMethodDetailsMobile.md +1 -1
- data/docs/PaymentMethod.md +2 -2
- data/docs/PaymentMethodOpposite.md +2 -2
- data/docs/PayoutMethodDetails.md +1 -7
- data/docs/PayoutMethodDetailsIBAN.md +1 -1
- data/docs/Recipient.md +4 -4
- data/docs/RecipientsApi.md +1 -1
- data/docs/Sender.md +33 -63
- data/lib/transferzero-sdk.rb +0 -3
- data/lib/transferzero-sdk/api/documents_api.rb +63 -0
- data/lib/transferzero-sdk/api/recipients_api.rb +2 -2
- data/lib/transferzero-sdk/api_client.rb +3 -5
- data/lib/transferzero-sdk/models/account.rb +69 -70
- data/lib/transferzero-sdk/models/account_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/account_meta.rb +60 -61
- data/lib/transferzero-sdk/models/account_response.rb +65 -66
- data/lib/transferzero-sdk/models/account_validation_error.rb +60 -61
- data/lib/transferzero-sdk/models/account_validation_request.rb +163 -164
- data/lib/transferzero-sdk/models/account_validation_response.rb +65 -66
- data/lib/transferzero-sdk/models/account_validation_result.rb +60 -61
- data/lib/transferzero-sdk/models/api_log.rb +135 -136
- data/lib/transferzero-sdk/models/api_log_list_response.rb +69 -70
- data/lib/transferzero-sdk/models/api_log_response.rb +59 -60
- data/lib/transferzero-sdk/models/currency.rb +141 -142
- data/lib/transferzero-sdk/models/currency_exchange.rb +157 -158
- data/lib/transferzero-sdk/models/currency_exchange_list_response.rb +61 -62
- data/lib/transferzero-sdk/models/currency_list_response.rb +61 -62
- data/lib/transferzero-sdk/models/currency_opposite.rb +165 -166
- data/lib/transferzero-sdk/models/debit.rb +150 -151
- data/lib/transferzero-sdk/models/debit_list_request.rb +60 -61
- data/lib/transferzero-sdk/models/debit_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/debit_request.rb +59 -60
- data/lib/transferzero-sdk/models/debit_request_wrapper.rb +79 -80
- data/lib/transferzero-sdk/models/debit_response.rb +59 -60
- data/lib/transferzero-sdk/models/document.rb +177 -179
- data/lib/transferzero-sdk/models/document_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/document_request.rb +59 -60
- data/lib/transferzero-sdk/models/document_response.rb +59 -60
- data/lib/transferzero-sdk/models/document_webhook.rb +95 -96
- data/lib/transferzero-sdk/models/error_status.rb +65 -66
- data/lib/transferzero-sdk/models/field_description.rb +94 -95
- data/lib/transferzero-sdk/models/field_select_validation.rb +69 -70
- data/lib/transferzero-sdk/models/field_validation.rb +77 -78
- data/lib/transferzero-sdk/models/pagination.rb +96 -97
- data/lib/transferzero-sdk/models/pagination_meta.rb +59 -60
- data/lib/transferzero-sdk/models/payin_method.rb +96 -97
- data/lib/transferzero-sdk/models/payin_method_details.rb +110 -122
- data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +74 -75
- data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +70 -71
- data/lib/transferzero-sdk/models/payin_method_request.rb +59 -60
- data/lib/transferzero-sdk/models/payment_method.rb +108 -109
- data/lib/transferzero-sdk/models/payment_method_list_response.rb +60 -61
- data/lib/transferzero-sdk/models/payment_method_opposite.rb +123 -124
- data/lib/transferzero-sdk/models/payout_method.rb +106 -107
- data/lib/transferzero-sdk/models/payout_method_bank_account_type_enum.rb +19 -14
- data/lib/transferzero-sdk/models/payout_method_details.rb +297 -337
- data/lib/transferzero-sdk/models/payout_method_details_balance.rb +60 -61
- data/lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb +96 -97
- data/lib/transferzero-sdk/models/payout_method_details_iban.rb +104 -100
- data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +161 -162
- data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +85 -86
- data/lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb +103 -104
- data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +107 -108
- data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +96 -97
- data/lib/transferzero-sdk/models/payout_method_gender_enum.rb +19 -14
- data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +20 -15
- data/lib/transferzero-sdk/models/payout_method_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +19 -14
- data/lib/transferzero-sdk/models/payout_method_request.rb +59 -60
- data/lib/transferzero-sdk/models/payout_method_response.rb +59 -60
- data/lib/transferzero-sdk/models/payout_method_webhook.rb +95 -96
- data/lib/transferzero-sdk/models/politically_exposed_person.rb +123 -123
- data/lib/transferzero-sdk/models/recipient.rb +229 -230
- data/lib/transferzero-sdk/models/recipient_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/recipient_request.rb +59 -60
- data/lib/transferzero-sdk/models/recipient_response.rb +59 -60
- data/lib/transferzero-sdk/models/recipient_state.rb +27 -22
- data/lib/transferzero-sdk/models/recipient_webhook.rb +95 -96
- data/lib/transferzero-sdk/models/sender.rb +358 -521
- data/lib/transferzero-sdk/models/sender_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/sender_request.rb +59 -60
- data/lib/transferzero-sdk/models/sender_response.rb +65 -66
- data/lib/transferzero-sdk/models/sender_response_existing.rb +59 -60
- data/lib/transferzero-sdk/models/sender_response_meta.rb +59 -60
- data/lib/transferzero-sdk/models/sender_state.rb +24 -19
- data/lib/transferzero-sdk/models/sender_webhook.rb +95 -96
- data/lib/transferzero-sdk/models/transaction.rb +191 -192
- data/lib/transferzero-sdk/models/transaction_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/transaction_request.rb +59 -60
- data/lib/transferzero-sdk/models/transaction_response.rb +65 -66
- data/lib/transferzero-sdk/models/transaction_response_existing.rb +65 -66
- data/lib/transferzero-sdk/models/transaction_response_meta.rb +59 -60
- data/lib/transferzero-sdk/models/transaction_state.rb +28 -23
- data/lib/transferzero-sdk/models/transaction_traits.rb +70 -71
- data/lib/transferzero-sdk/models/transaction_webhook.rb +95 -96
- data/lib/transferzero-sdk/models/validation_error_description.rb +61 -62
- data/lib/transferzero-sdk/models/webhook.rb +91 -92
- data/lib/transferzero-sdk/models/webhook_definition.rb +106 -107
- data/lib/transferzero-sdk/models/webhook_definition_event_list_response.rb +60 -61
- data/lib/transferzero-sdk/models/webhook_definition_list_response.rb +66 -67
- data/lib/transferzero-sdk/models/webhook_definition_request.rb +59 -60
- data/lib/transferzero-sdk/models/webhook_definition_response.rb +59 -60
- data/lib/transferzero-sdk/models/webhook_log.rb +96 -97
- data/lib/transferzero-sdk/models/webhook_log_list_response.rb +69 -70
- data/lib/transferzero-sdk/models/webhook_log_metadata.rb +128 -129
- data/lib/transferzero-sdk/models/webhook_log_metadata_request.rb +79 -80
- data/lib/transferzero-sdk/models/webhook_log_metadata_response.rb +80 -81
- data/lib/transferzero-sdk/models/webhook_log_response.rb +59 -60
- data/lib/transferzero-sdk/version.rb +1 -1
- metadata +3 -15
- data/docs/PayinMethodDetailsBTC.md +0 -17
- data/docs/PayoutMethodDetailsBTC.md +0 -23
- data/docs/PayoutMethodDetailsGBPBank.md +0 -29
- data/lib/transferzero-sdk/models/payin_method_details_btc.rb +0 -204
- data/lib/transferzero-sdk/models/payout_method_details_btc.rb +0 -250
- data/lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb +0 -267
- data/spec/models/payin_method_details_btc_spec.rb +0 -41
- data/spec/models/payout_method_details_btc_spec.rb +0 -59
- data/spec/models/payout_method_details_gbp_bank_spec.rb +0 -77
@@ -13,75 +13,75 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TransferZero
|
16
|
-
class DebitResponse
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
# Attribute type mapping.
|
27
|
-
def self.openapi_types
|
28
|
-
{
|
29
|
-
:'object' => :'Debit'
|
30
|
-
}
|
31
|
-
end
|
16
|
+
class DebitResponse
|
17
|
+
attr_accessor :object
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'object' => :'object'
|
23
|
+
}
|
24
|
+
end
|
32
25
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.openapi_types
|
28
|
+
{
|
29
|
+
:'object' => :'Debit'
|
30
|
+
}
|
38
31
|
end
|
39
32
|
|
40
|
-
#
|
41
|
-
attributes
|
42
|
-
|
43
|
-
|
33
|
+
# Initializes the object
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
35
|
+
def initialize(attributes = {})
|
36
|
+
if (!attributes.is_a?(Hash))
|
37
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::DebitResponse` initialize method"
|
44
38
|
end
|
45
|
-
h[k.to_sym] = v
|
46
|
-
}
|
47
39
|
|
48
|
-
|
49
|
-
|
40
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
41
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
42
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
43
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::DebitResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
44
|
+
end
|
45
|
+
h[k.to_sym] = v
|
46
|
+
}
|
47
|
+
|
48
|
+
if attributes.key?(:'object')
|
49
|
+
self.object = attributes[:'object']
|
50
|
+
end
|
50
51
|
end
|
51
|
-
end
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
53
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
54
|
+
# @return Array for valid properties with the reasons
|
55
|
+
def list_invalid_properties
|
56
|
+
invalid_properties = Array.new
|
57
|
+
invalid_properties
|
58
|
+
end
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
60
|
+
# Check to see if the all the properties in the model are valid
|
61
|
+
# @return true if the model is valid
|
62
|
+
def valid?
|
63
|
+
true
|
64
|
+
end
|
65
65
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
66
|
+
# Checks equality by comparing each attribute.
|
67
|
+
# @param [Object] Object to be compared
|
68
|
+
def ==(o)
|
69
|
+
return true if self.equal?(o)
|
70
|
+
self.class == o.class &&
|
71
|
+
object == o.object
|
72
|
+
end
|
73
73
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
74
|
+
# @see the `==` method
|
75
|
+
# @param [Object] Object to be compared
|
76
|
+
def eql?(o)
|
77
|
+
self == o
|
78
|
+
end
|
79
79
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
80
|
+
# Calculates hash code according to all attributes.
|
81
|
+
# @return [Integer] Hash code
|
82
|
+
def hash
|
83
|
+
[object].hash
|
84
|
+
end
|
85
85
|
|
86
86
|
require 'active_support/core_ext/hash'
|
87
87
|
require 'active_support/hash_with_indifferent_access.rb'
|
@@ -197,6 +197,5 @@ def _to_hash(value)
|
|
197
197
|
end
|
198
198
|
end
|
199
199
|
|
200
|
-
end
|
201
|
-
|
200
|
+
end
|
202
201
|
end
|
@@ -13,229 +13,228 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TransferZero
|
16
|
-
class Document
|
17
|
-
|
18
|
-
attr_accessor :upload
|
16
|
+
class Document
|
17
|
+
attr_accessor :sender_id
|
19
18
|
|
20
|
-
|
21
|
-
|
19
|
+
# Base64 encoded data uri of an image/pdf file or a fully qualified url
|
20
|
+
attr_accessor :upload
|
22
21
|
|
23
|
-
|
24
|
-
|
22
|
+
# Name of the upload
|
23
|
+
attr_accessor :upload_file_name
|
25
24
|
|
26
|
-
|
27
|
-
|
25
|
+
# Metadata of document
|
26
|
+
attr_accessor :metadata
|
28
27
|
|
29
|
-
|
28
|
+
attr_accessor :upload_content_type
|
30
29
|
|
31
|
-
|
30
|
+
attr_accessor :upload_file_size
|
32
31
|
|
33
|
-
|
34
|
-
|
32
|
+
# uncategorised
|
33
|
+
attr_accessor :category
|
35
34
|
|
36
|
-
|
37
|
-
|
35
|
+
# The side of the KYC ID. One of 'front' or 'back'
|
36
|
+
attr_accessor :side
|
38
37
|
|
39
|
-
|
40
|
-
|
38
|
+
# This is a brief description of the document type
|
39
|
+
attr_accessor :document_type
|
41
40
|
|
42
|
-
|
43
|
-
|
41
|
+
# Issuing country of ID in 2-character alpha ISO 3166-2 country format
|
42
|
+
attr_accessor :issuing_country
|
44
43
|
|
45
|
-
|
44
|
+
attr_accessor :id
|
46
45
|
|
47
|
-
|
48
|
-
|
46
|
+
# The fields that have some problems and don't pass validation
|
47
|
+
attr_accessor :errors
|
49
48
|
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
class EnumAttributeValidator
|
50
|
+
attr_reader :datatype
|
51
|
+
attr_reader :allowable_values
|
53
52
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
53
|
+
def initialize(datatype, allowable_values)
|
54
|
+
@allowable_values = allowable_values.map do |value|
|
55
|
+
case datatype.to_s
|
56
|
+
when /Integer/i
|
57
|
+
value.to_i
|
58
|
+
when /Float/i
|
59
|
+
value.to_f
|
60
|
+
else
|
61
|
+
value
|
62
|
+
end
|
63
63
|
end
|
64
64
|
end
|
65
|
+
|
66
|
+
def valid?(value)
|
67
|
+
!value || allowable_values.include?(value)
|
68
|
+
end
|
65
69
|
end
|
66
70
|
|
67
|
-
|
68
|
-
|
71
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
72
|
+
def self.attribute_map
|
73
|
+
{
|
74
|
+
:'sender_id' => :'sender_id',
|
75
|
+
:'upload' => :'upload',
|
76
|
+
:'upload_file_name' => :'upload_file_name',
|
77
|
+
:'metadata' => :'metadata',
|
78
|
+
:'upload_content_type' => :'upload_content_type',
|
79
|
+
:'upload_file_size' => :'upload_file_size',
|
80
|
+
:'category' => :'category',
|
81
|
+
:'side' => :'side',
|
82
|
+
:'document_type' => :'document_type',
|
83
|
+
:'issuing_country' => :'issuing_country',
|
84
|
+
:'id' => :'id',
|
85
|
+
:'errors' => :'errors'
|
86
|
+
}
|
69
87
|
end
|
70
|
-
end
|
71
88
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
+
# Attribute type mapping.
|
90
|
+
def self.openapi_types
|
91
|
+
{
|
92
|
+
:'sender_id' => :'String',
|
93
|
+
:'upload' => :'String',
|
94
|
+
:'upload_file_name' => :'String',
|
95
|
+
:'metadata' => :'Object',
|
96
|
+
:'upload_content_type' => :'String',
|
97
|
+
:'upload_file_size' => :'Integer',
|
98
|
+
:'category' => :'String',
|
99
|
+
:'side' => :'String',
|
100
|
+
:'document_type' => :'String',
|
101
|
+
:'issuing_country' => :'String',
|
102
|
+
:'id' => :'String',
|
103
|
+
:'errors' => :'Hash<String, Array<ValidationErrorDescription>>'
|
104
|
+
}
|
105
|
+
end
|
89
106
|
|
90
|
-
|
91
|
-
|
92
|
-
{
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
:'metadata' => :'Object',
|
97
|
-
:'upload_content_type' => :'String',
|
98
|
-
:'upload_file_size' => :'Integer',
|
99
|
-
:'category' => :'String',
|
100
|
-
:'side' => :'String',
|
101
|
-
:'document_type' => :'String',
|
102
|
-
:'issuing_country' => :'String',
|
103
|
-
:'id' => :'String',
|
104
|
-
:'errors' => :'Hash<String, Array<ValidationErrorDescription>>'
|
105
|
-
}
|
106
|
-
end
|
107
|
+
# Initializes the object
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
def initialize(attributes = {})
|
110
|
+
if (!attributes.is_a?(Hash))
|
111
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::Document` initialize method"
|
112
|
+
end
|
107
113
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
115
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
116
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
117
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::Document`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
118
|
+
end
|
119
|
+
h[k.to_sym] = v
|
120
|
+
}
|
114
121
|
|
115
|
-
|
116
|
-
|
117
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
118
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::Document`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
122
|
+
if attributes.key?(:'sender_id')
|
123
|
+
self.sender_id = attributes[:'sender_id']
|
119
124
|
end
|
120
|
-
h[k.to_sym] = v
|
121
|
-
}
|
122
125
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
+
if attributes.key?(:'upload')
|
127
|
+
self.upload = attributes[:'upload']
|
128
|
+
end
|
126
129
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
+
if attributes.key?(:'upload_file_name')
|
131
|
+
self.upload_file_name = attributes[:'upload_file_name']
|
132
|
+
end
|
130
133
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
+
if attributes.key?(:'metadata')
|
135
|
+
self.metadata = attributes[:'metadata']
|
136
|
+
end
|
134
137
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
+
if attributes.key?(:'upload_content_type')
|
139
|
+
self.upload_content_type = attributes[:'upload_content_type']
|
140
|
+
end
|
138
141
|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
+
if attributes.key?(:'upload_file_size')
|
143
|
+
self.upload_file_size = attributes[:'upload_file_size']
|
144
|
+
end
|
142
145
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
+
if attributes.key?(:'category')
|
147
|
+
self.category = attributes[:'category']
|
148
|
+
end
|
146
149
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
+
if attributes.key?(:'side')
|
151
|
+
self.side = attributes[:'side']
|
152
|
+
end
|
150
153
|
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
+
if attributes.key?(:'document_type')
|
155
|
+
self.document_type = attributes[:'document_type']
|
156
|
+
end
|
154
157
|
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
+
if attributes.key?(:'issuing_country')
|
159
|
+
self.issuing_country = attributes[:'issuing_country']
|
160
|
+
end
|
158
161
|
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
+
if attributes.key?(:'id')
|
163
|
+
self.id = attributes[:'id']
|
164
|
+
end
|
162
165
|
|
163
|
-
|
164
|
-
|
166
|
+
if attributes.key?(:'errors')
|
167
|
+
if (value = attributes[:'errors']).is_a?(Hash)
|
168
|
+
self.errors = value
|
169
|
+
end
|
170
|
+
end
|
165
171
|
end
|
166
172
|
|
167
|
-
|
168
|
-
|
169
|
-
|
173
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
174
|
+
# @return Array for valid properties with the reasons
|
175
|
+
def list_invalid_properties
|
176
|
+
invalid_properties = Array.new
|
177
|
+
if @upload.nil?
|
178
|
+
invalid_properties.push('invalid value for "upload", upload cannot be nil.')
|
170
179
|
end
|
171
|
-
end
|
172
|
-
end
|
173
180
|
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
invalid_properties = Array.new
|
178
|
-
if @upload.nil?
|
179
|
-
invalid_properties.push('invalid value for "upload", upload cannot be nil.')
|
180
|
-
end
|
181
|
+
if @upload_file_name.nil?
|
182
|
+
invalid_properties.push('invalid value for "upload_file_name", upload_file_name cannot be nil.')
|
183
|
+
end
|
181
184
|
|
182
|
-
|
183
|
-
invalid_properties.push('invalid value for "upload_file_name", upload_file_name cannot be nil.')
|
185
|
+
invalid_properties
|
184
186
|
end
|
185
187
|
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
return false unless side_validator.valid?(@side)
|
196
|
-
true
|
197
|
-
end
|
188
|
+
# Check to see if the all the properties in the model are valid
|
189
|
+
# @return true if the model is valid
|
190
|
+
def valid?
|
191
|
+
return false if @upload.nil?
|
192
|
+
return false if @upload_file_name.nil?
|
193
|
+
side_validator = EnumAttributeValidator.new('String', ["front", "back"])
|
194
|
+
return false unless side_validator.valid?(@side)
|
195
|
+
true
|
196
|
+
end
|
198
197
|
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
198
|
+
# Custom attribute writer method checking allowed values (enum).
|
199
|
+
# @param [Object] side Object to be assigned
|
200
|
+
def side=(side)
|
201
|
+
validator = EnumAttributeValidator.new('String', ["front", "back"])
|
202
|
+
unless validator.valid?(side)
|
203
|
+
fail ArgumentError, "invalid value for \"side\", must be one of #{validator.allowable_values}."
|
204
|
+
end
|
205
|
+
@side = side
|
205
206
|
end
|
206
|
-
@side = side
|
207
|
-
end
|
208
207
|
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
208
|
+
# Checks equality by comparing each attribute.
|
209
|
+
# @param [Object] Object to be compared
|
210
|
+
def ==(o)
|
211
|
+
return true if self.equal?(o)
|
212
|
+
self.class == o.class &&
|
213
|
+
sender_id == o.sender_id &&
|
214
|
+
upload == o.upload &&
|
215
|
+
upload_file_name == o.upload_file_name &&
|
216
|
+
metadata == o.metadata &&
|
217
|
+
upload_content_type == o.upload_content_type &&
|
218
|
+
upload_file_size == o.upload_file_size &&
|
219
|
+
category == o.category &&
|
220
|
+
side == o.side &&
|
221
|
+
document_type == o.document_type &&
|
222
|
+
issuing_country == o.issuing_country &&
|
223
|
+
id == o.id &&
|
224
|
+
errors == o.errors
|
225
|
+
end
|
227
226
|
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
227
|
+
# @see the `==` method
|
228
|
+
# @param [Object] Object to be compared
|
229
|
+
def eql?(o)
|
230
|
+
self == o
|
231
|
+
end
|
233
232
|
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
233
|
+
# Calculates hash code according to all attributes.
|
234
|
+
# @return [Integer] Hash code
|
235
|
+
def hash
|
236
|
+
[sender_id, upload, upload_file_name, metadata, upload_content_type, upload_file_size, category, side, document_type, issuing_country, id, errors].hash
|
237
|
+
end
|
239
238
|
|
240
239
|
require 'active_support/core_ext/hash'
|
241
240
|
require 'active_support/hash_with_indifferent_access.rb'
|
@@ -351,6 +350,5 @@ def _to_hash(value)
|
|
351
350
|
end
|
352
351
|
end
|
353
352
|
|
354
|
-
end
|
355
|
-
|
353
|
+
end
|
356
354
|
end
|