transferzero-sdk 1.5.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -5
  3. data/docs/Currency.md +0 -2
  4. data/docs/CurrencyExchange.md +0 -2
  5. data/docs/CurrencyOpposite.md +3 -3
  6. data/docs/Document.md +3 -3
  7. data/docs/DocumentsApi.md +2 -74
  8. data/docs/PayinMethodDetails.md +3 -1
  9. data/docs/PayinMethodDetailsBTC.md +17 -0
  10. data/docs/PayoutMethod.md +1 -1
  11. data/docs/PayoutMethodDetails.md +17 -1
  12. data/docs/PayoutMethodDetailsBTC.md +23 -0
  13. data/docs/PayoutMethodDetailsGBPBank.md +29 -0
  14. data/docs/PayoutMethodDetailsIBAN.md +1 -1
  15. data/docs/PayoutMethodDetailsMobile.md +3 -1
  16. data/docs/PayoutMethodDetailsZARBank.md +35 -0
  17. data/docs/PoliticallyExposedPerson.md +31 -0
  18. data/docs/Recipient.md +1 -1
  19. data/docs/RecipientsApi.md +1 -1
  20. data/docs/Sender.md +72 -32
  21. data/docs/Transaction.md +3 -3
  22. data/lib/transferzero-sdk.rb +5 -0
  23. data/lib/transferzero-sdk/api/documents_api.rb +0 -63
  24. data/lib/transferzero-sdk/api/recipients_api.rb +2 -2
  25. data/lib/transferzero-sdk/api_client.rb +5 -3
  26. data/lib/transferzero-sdk/models/account.rb +70 -69
  27. data/lib/transferzero-sdk/models/account_list_response.rb +67 -66
  28. data/lib/transferzero-sdk/models/account_meta.rb +61 -60
  29. data/lib/transferzero-sdk/models/account_response.rb +66 -65
  30. data/lib/transferzero-sdk/models/account_validation_error.rb +61 -60
  31. data/lib/transferzero-sdk/models/account_validation_request.rb +164 -163
  32. data/lib/transferzero-sdk/models/account_validation_response.rb +66 -65
  33. data/lib/transferzero-sdk/models/account_validation_result.rb +61 -60
  34. data/lib/transferzero-sdk/models/api_log.rb +136 -135
  35. data/lib/transferzero-sdk/models/api_log_list_response.rb +70 -69
  36. data/lib/transferzero-sdk/models/api_log_response.rb +60 -59
  37. data/lib/transferzero-sdk/models/currency.rb +133 -142
  38. data/lib/transferzero-sdk/models/currency_exchange.rb +149 -158
  39. data/lib/transferzero-sdk/models/currency_exchange_list_response.rb +62 -61
  40. data/lib/transferzero-sdk/models/currency_list_response.rb +62 -61
  41. data/lib/transferzero-sdk/models/currency_opposite.rb +166 -165
  42. data/lib/transferzero-sdk/models/debit.rb +151 -150
  43. data/lib/transferzero-sdk/models/debit_list_request.rb +61 -60
  44. data/lib/transferzero-sdk/models/debit_list_response.rb +67 -66
  45. data/lib/transferzero-sdk/models/debit_request.rb +60 -59
  46. data/lib/transferzero-sdk/models/debit_request_wrapper.rb +80 -79
  47. data/lib/transferzero-sdk/models/debit_response.rb +60 -59
  48. data/lib/transferzero-sdk/models/document.rb +179 -177
  49. data/lib/transferzero-sdk/models/document_list_response.rb +67 -66
  50. data/lib/transferzero-sdk/models/document_request.rb +60 -59
  51. data/lib/transferzero-sdk/models/document_response.rb +60 -59
  52. data/lib/transferzero-sdk/models/document_webhook.rb +96 -95
  53. data/lib/transferzero-sdk/models/error_status.rb +66 -65
  54. data/lib/transferzero-sdk/models/field_description.rb +95 -94
  55. data/lib/transferzero-sdk/models/field_select_validation.rb +70 -69
  56. data/lib/transferzero-sdk/models/field_validation.rb +78 -77
  57. data/lib/transferzero-sdk/models/pagination.rb +97 -96
  58. data/lib/transferzero-sdk/models/pagination_meta.rb +60 -59
  59. data/lib/transferzero-sdk/models/payin_method.rb +97 -96
  60. data/lib/transferzero-sdk/models/payin_method_details.rb +122 -110
  61. data/lib/transferzero-sdk/models/payin_method_details_btc.rb +204 -0
  62. data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +75 -74
  63. data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +71 -70
  64. data/lib/transferzero-sdk/models/payin_method_request.rb +60 -59
  65. data/lib/transferzero-sdk/models/payment_method.rb +109 -108
  66. data/lib/transferzero-sdk/models/payment_method_list_response.rb +61 -60
  67. data/lib/transferzero-sdk/models/payment_method_opposite.rb +124 -123
  68. data/lib/transferzero-sdk/models/payout_method.rb +107 -106
  69. data/lib/transferzero-sdk/models/payout_method_bank_account_type_enum.rb +14 -19
  70. data/lib/transferzero-sdk/models/payout_method_details.rb +398 -297
  71. data/lib/transferzero-sdk/models/payout_method_details_balance.rb +61 -60
  72. data/lib/transferzero-sdk/models/payout_method_details_btc.rb +250 -0
  73. data/lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb +267 -0
  74. data/lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb +97 -96
  75. data/lib/transferzero-sdk/models/payout_method_details_iban.rb +100 -104
  76. data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +162 -161
  77. data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +93 -83
  78. data/lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb +104 -103
  79. data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +108 -107
  80. data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +97 -96
  81. data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +324 -0
  82. data/lib/transferzero-sdk/models/payout_method_gender_enum.rb +14 -19
  83. data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +15 -20
  84. data/lib/transferzero-sdk/models/payout_method_list_response.rb +67 -66
  85. data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +17 -19
  86. data/lib/transferzero-sdk/models/payout_method_request.rb +60 -59
  87. data/lib/transferzero-sdk/models/payout_method_response.rb +60 -59
  88. data/lib/transferzero-sdk/models/payout_method_webhook.rb +96 -95
  89. data/lib/transferzero-sdk/models/politically_exposed_person.rb +272 -0
  90. data/lib/transferzero-sdk/models/recipient.rb +230 -229
  91. data/lib/transferzero-sdk/models/recipient_list_response.rb +67 -66
  92. data/lib/transferzero-sdk/models/recipient_request.rb +60 -59
  93. data/lib/transferzero-sdk/models/recipient_response.rb +60 -59
  94. data/lib/transferzero-sdk/models/recipient_state.rb +22 -27
  95. data/lib/transferzero-sdk/models/recipient_webhook.rb +96 -95
  96. data/lib/transferzero-sdk/models/sender.rb +587 -348
  97. data/lib/transferzero-sdk/models/sender_list_response.rb +67 -66
  98. data/lib/transferzero-sdk/models/sender_request.rb +60 -59
  99. data/lib/transferzero-sdk/models/sender_response.rb +66 -65
  100. data/lib/transferzero-sdk/models/sender_response_existing.rb +60 -59
  101. data/lib/transferzero-sdk/models/sender_response_meta.rb +60 -59
  102. data/lib/transferzero-sdk/models/sender_state.rb +19 -24
  103. data/lib/transferzero-sdk/models/sender_webhook.rb +96 -95
  104. data/lib/transferzero-sdk/models/transaction.rb +192 -191
  105. data/lib/transferzero-sdk/models/transaction_list_response.rb +67 -66
  106. data/lib/transferzero-sdk/models/transaction_request.rb +60 -59
  107. data/lib/transferzero-sdk/models/transaction_response.rb +66 -65
  108. data/lib/transferzero-sdk/models/transaction_response_existing.rb +66 -65
  109. data/lib/transferzero-sdk/models/transaction_response_meta.rb +60 -59
  110. data/lib/transferzero-sdk/models/transaction_state.rb +23 -28
  111. data/lib/transferzero-sdk/models/transaction_traits.rb +71 -70
  112. data/lib/transferzero-sdk/models/transaction_webhook.rb +96 -95
  113. data/lib/transferzero-sdk/models/validation_error_description.rb +62 -61
  114. data/lib/transferzero-sdk/models/webhook.rb +92 -91
  115. data/lib/transferzero-sdk/models/webhook_definition.rb +107 -106
  116. data/lib/transferzero-sdk/models/webhook_definition_event_list_response.rb +61 -60
  117. data/lib/transferzero-sdk/models/webhook_definition_list_response.rb +67 -66
  118. data/lib/transferzero-sdk/models/webhook_definition_request.rb +60 -59
  119. data/lib/transferzero-sdk/models/webhook_definition_response.rb +60 -59
  120. data/lib/transferzero-sdk/models/webhook_log.rb +97 -96
  121. data/lib/transferzero-sdk/models/webhook_log_list_response.rb +70 -69
  122. data/lib/transferzero-sdk/models/webhook_log_metadata.rb +129 -128
  123. data/lib/transferzero-sdk/models/webhook_log_metadata_request.rb +80 -79
  124. data/lib/transferzero-sdk/models/webhook_log_metadata_response.rb +81 -80
  125. data/lib/transferzero-sdk/models/webhook_log_response.rb +60 -59
  126. data/lib/transferzero-sdk/version.rb +1 -1
  127. data/spec/models/payin_method_details_btc_spec.rb +41 -0
  128. data/spec/models/payout_method_details_btc_spec.rb +59 -0
  129. data/spec/models/payout_method_details_gbp_bank_spec.rb +77 -0
  130. data/spec/models/payout_method_details_zar_bank_spec.rb +89 -0
  131. data/spec/models/politically_exposed_person_spec.rb +83 -0
  132. metadata +32 -13
  133. data/transferzero-sdk-1.4.0.gem +0 -0
@@ -13,290 +13,290 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- # The recipient describes the amount, the currency and the destination where the money should be sent.
17
- class Recipient
18
- # the amount that should be paid to the recipient. This can be in any currency, usually either the input or the output currency. If the value here is not the output currency we will calculate how much the recipient is going to get using the exchange rates active when the transaction was created.
19
- attr_accessor :requested_amount
16
+ # The recipient describes the amount, the currency and the destination where the money should be sent.
17
+ class Recipient
18
+ # the amount that should be paid to the recipient. This can be in any currency, usually either the input or the output currency. If the value here is not the output currency we will calculate how much the recipient is going to get using the exchange rates active when the transaction was created.
19
+ attr_accessor :requested_amount
20
20
 
21
- # the currency of the amount in 3-character alpha ISO 4217 currency format
22
- attr_accessor :requested_currency
21
+ # the currency of the amount in 3-character alpha ISO 4217 currency format
22
+ attr_accessor :requested_currency
23
23
 
24
- attr_accessor :payout_method
24
+ attr_accessor :payout_method
25
25
 
26
- # Additional metadata that can be added to a recipient. These values will be returned on request
27
- attr_accessor :metadata
26
+ # Additional metadata that can be added to a recipient. These values will be returned on request
27
+ attr_accessor :metadata
28
28
 
29
- # Date and time that the recipient was created.
30
- attr_accessor :created_at
29
+ # Date and time that the recipient was created.
30
+ attr_accessor :created_at
31
31
 
32
- # Shows whether the recipient can be edited using the PATCH /v1/recipients/{id} endpoint or not
33
- attr_accessor :editable
32
+ # Shows whether the recipient can be edited using the PATCH /v1/recipients/{id} endpoint or not
33
+ attr_accessor :editable
34
34
 
35
- # Shows whether the transaction made to the recipient can be retried or not
36
- attr_accessor :retriable
35
+ # Shows whether the transaction made to the recipient can be retried or not
36
+ attr_accessor :retriable
37
37
 
38
- # Shows how much this payment is worth in USD
39
- attr_accessor :input_usd_amount
38
+ # Shows how much this payment is worth in USD
39
+ attr_accessor :input_usd_amount
40
40
 
41
- # Shows whether the payment can be cancelled using the DELETE /v1/recipients/{id} endpoint or not. The payment can not be cancelled if the payout is pending.
42
- attr_accessor :may_cancel
41
+ # If true it shows that the payment can be cancelled immediately using the DELETE /v1/recipients/{id} endpoint. If false you can still try to cancel it, however it will only gets cancelled once we have confirmation from our partner that the payment has failed.
42
+ attr_accessor :may_cancel
43
43
 
44
- # In case the payment is unsuccessful it holds the error message associated with the last unsuccessful payout.
45
- attr_accessor :state_reason
44
+ # In case the payment is unsuccessful it holds the error message associated with the last unsuccessful payout.
45
+ attr_accessor :state_reason
46
46
 
47
- attr_accessor :state
47
+ attr_accessor :state
48
48
 
49
- # The ID of the transaction that is related to this recipient
50
- attr_accessor :transaction_id
49
+ # The ID of the transaction that is related to this recipient
50
+ attr_accessor :transaction_id
51
51
 
52
- attr_accessor :transaction_state
52
+ attr_accessor :transaction_state
53
53
 
54
- # The exchange rate used in this payment
55
- attr_accessor :exchange_rate
54
+ # The exchange rate used in this payment
55
+ attr_accessor :exchange_rate
56
56
 
57
- # The fee for this payment in fractional units (for example cents for USD transactions)
58
- attr_accessor :fee_fractional
57
+ # The fee for this payment in fractional units (for example cents for USD transactions)
58
+ attr_accessor :fee_fractional
59
59
 
60
- # The amount that had to be paid in for this payment to proceed
61
- attr_accessor :input_amount
60
+ # The amount that had to be paid in for this payment to proceed
61
+ attr_accessor :input_amount
62
62
 
63
- # The currency this payment was paid in
64
- attr_accessor :input_currency
63
+ # The currency this payment was paid in
64
+ attr_accessor :input_currency
65
65
 
66
- # The amount that will be paid to the recipient
67
- attr_accessor :output_amount
66
+ # The amount that will be paid to the recipient
67
+ attr_accessor :output_amount
68
68
 
69
- # The currency the payment will be delivered in
70
- attr_accessor :output_currency
69
+ # The currency the payment will be delivered in
70
+ attr_accessor :output_currency
71
71
 
72
- attr_accessor :id
72
+ attr_accessor :id
73
73
 
74
- # The fields that have some problems and don't pass validation
75
- attr_accessor :errors
74
+ # The fields that have some problems and don't pass validation
75
+ attr_accessor :errors
76
76
 
77
- # Attribute mapping from ruby-style variable name to JSON key.
78
- def self.attribute_map
79
- {
80
- :'requested_amount' => :'requested_amount',
81
- :'requested_currency' => :'requested_currency',
82
- :'payout_method' => :'payout_method',
83
- :'metadata' => :'metadata',
84
- :'created_at' => :'created_at',
85
- :'editable' => :'editable',
86
- :'retriable' => :'retriable',
87
- :'input_usd_amount' => :'input_usd_amount',
88
- :'may_cancel' => :'may_cancel',
89
- :'state_reason' => :'state_reason',
90
- :'state' => :'state',
91
- :'transaction_id' => :'transaction_id',
92
- :'transaction_state' => :'transaction_state',
93
- :'exchange_rate' => :'exchange_rate',
94
- :'fee_fractional' => :'fee_fractional',
95
- :'input_amount' => :'input_amount',
96
- :'input_currency' => :'input_currency',
97
- :'output_amount' => :'output_amount',
98
- :'output_currency' => :'output_currency',
99
- :'id' => :'id',
100
- :'errors' => :'errors'
101
- }
102
- end
103
-
104
- # Attribute type mapping.
105
- def self.openapi_types
106
- {
107
- :'requested_amount' => :'Float',
108
- :'requested_currency' => :'String',
109
- :'payout_method' => :'PayoutMethod',
110
- :'metadata' => :'Object',
111
- :'created_at' => :'DateTime',
112
- :'editable' => :'Boolean',
113
- :'retriable' => :'Boolean',
114
- :'input_usd_amount' => :'Float',
115
- :'may_cancel' => :'Boolean',
116
- :'state_reason' => :'String',
117
- :'state' => :'RecipientState',
118
- :'transaction_id' => :'String',
119
- :'transaction_state' => :'TransactionState',
120
- :'exchange_rate' => :'Float',
121
- :'fee_fractional' => :'Float',
122
- :'input_amount' => :'Float',
123
- :'input_currency' => :'String',
124
- :'output_amount' => :'Float',
125
- :'output_currency' => :'String',
126
- :'id' => :'String',
127
- :'errors' => :'Hash<String, Array<ValidationErrorDescription>>'
128
- }
129
- end
130
-
131
- # Initializes the object
132
- # @param [Hash] attributes Model attributes in the form of hash
133
- def initialize(attributes = {})
134
- if (!attributes.is_a?(Hash))
135
- fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::Recipient` initialize method"
136
- end
137
-
138
- # check to see if the attribute exists and convert string to symbol for hash key
139
- attributes = attributes.each_with_object({}) { |(k, v), h|
140
- if (!self.class.attribute_map.key?(k.to_sym))
141
- fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::Recipient`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
142
- end
143
- h[k.to_sym] = v
144
- }
77
+ # Attribute mapping from ruby-style variable name to JSON key.
78
+ def self.attribute_map
79
+ {
80
+ :'requested_amount' => :'requested_amount',
81
+ :'requested_currency' => :'requested_currency',
82
+ :'payout_method' => :'payout_method',
83
+ :'metadata' => :'metadata',
84
+ :'created_at' => :'created_at',
85
+ :'editable' => :'editable',
86
+ :'retriable' => :'retriable',
87
+ :'input_usd_amount' => :'input_usd_amount',
88
+ :'may_cancel' => :'may_cancel',
89
+ :'state_reason' => :'state_reason',
90
+ :'state' => :'state',
91
+ :'transaction_id' => :'transaction_id',
92
+ :'transaction_state' => :'transaction_state',
93
+ :'exchange_rate' => :'exchange_rate',
94
+ :'fee_fractional' => :'fee_fractional',
95
+ :'input_amount' => :'input_amount',
96
+ :'input_currency' => :'input_currency',
97
+ :'output_amount' => :'output_amount',
98
+ :'output_currency' => :'output_currency',
99
+ :'id' => :'id',
100
+ :'errors' => :'errors'
101
+ }
102
+ end
145
103
 
146
- if attributes.key?(:'requested_amount')
147
- self.requested_amount = attributes[:'requested_amount']
148
- end
104
+ # Attribute type mapping.
105
+ def self.openapi_types
106
+ {
107
+ :'requested_amount' => :'Float',
108
+ :'requested_currency' => :'String',
109
+ :'payout_method' => :'PayoutMethod',
110
+ :'metadata' => :'Object',
111
+ :'created_at' => :'DateTime',
112
+ :'editable' => :'Boolean',
113
+ :'retriable' => :'Boolean',
114
+ :'input_usd_amount' => :'Float',
115
+ :'may_cancel' => :'Boolean',
116
+ :'state_reason' => :'String',
117
+ :'state' => :'RecipientState',
118
+ :'transaction_id' => :'String',
119
+ :'transaction_state' => :'TransactionState',
120
+ :'exchange_rate' => :'Float',
121
+ :'fee_fractional' => :'Float',
122
+ :'input_amount' => :'Float',
123
+ :'input_currency' => :'String',
124
+ :'output_amount' => :'Float',
125
+ :'output_currency' => :'String',
126
+ :'id' => :'String',
127
+ :'errors' => :'Hash<String, Array<ValidationErrorDescription>>'
128
+ }
129
+ end
149
130
 
150
- if attributes.key?(:'requested_currency')
151
- self.requested_currency = attributes[:'requested_currency']
152
- end
131
+ # Initializes the object
132
+ # @param [Hash] attributes Model attributes in the form of hash
133
+ def initialize(attributes = {})
134
+ if (!attributes.is_a?(Hash))
135
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::Recipient` initialize method"
136
+ end
153
137
 
154
- if attributes.key?(:'payout_method')
155
- self.payout_method = attributes[:'payout_method']
138
+ # check to see if the attribute exists and convert string to symbol for hash key
139
+ attributes = attributes.each_with_object({}) { |(k, v), h|
140
+ if (!self.class.attribute_map.key?(k.to_sym))
141
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::Recipient`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
156
142
  end
143
+ h[k.to_sym] = v
144
+ }
157
145
 
158
- if attributes.key?(:'metadata')
159
- self.metadata = attributes[:'metadata']
160
- end
146
+ if attributes.key?(:'requested_amount')
147
+ self.requested_amount = attributes[:'requested_amount']
148
+ end
161
149
 
162
- if attributes.key?(:'created_at')
163
- self.created_at = attributes[:'created_at']
164
- end
150
+ if attributes.key?(:'requested_currency')
151
+ self.requested_currency = attributes[:'requested_currency']
152
+ end
165
153
 
166
- if attributes.key?(:'editable')
167
- self.editable = attributes[:'editable']
168
- end
154
+ if attributes.key?(:'payout_method')
155
+ self.payout_method = attributes[:'payout_method']
156
+ end
169
157
 
170
- if attributes.key?(:'retriable')
171
- self.retriable = attributes[:'retriable']
172
- end
158
+ if attributes.key?(:'metadata')
159
+ self.metadata = attributes[:'metadata']
160
+ end
173
161
 
174
- if attributes.key?(:'input_usd_amount')
175
- self.input_usd_amount = attributes[:'input_usd_amount']
176
- end
162
+ if attributes.key?(:'created_at')
163
+ self.created_at = attributes[:'created_at']
164
+ end
177
165
 
178
- if attributes.key?(:'may_cancel')
179
- self.may_cancel = attributes[:'may_cancel']
180
- end
166
+ if attributes.key?(:'editable')
167
+ self.editable = attributes[:'editable']
168
+ end
181
169
 
182
- if attributes.key?(:'state_reason')
183
- self.state_reason = attributes[:'state_reason']
184
- end
170
+ if attributes.key?(:'retriable')
171
+ self.retriable = attributes[:'retriable']
172
+ end
185
173
 
186
- if attributes.key?(:'state')
187
- self.state = attributes[:'state']
188
- end
174
+ if attributes.key?(:'input_usd_amount')
175
+ self.input_usd_amount = attributes[:'input_usd_amount']
176
+ end
189
177
 
190
- if attributes.key?(:'transaction_id')
191
- self.transaction_id = attributes[:'transaction_id']
192
- end
178
+ if attributes.key?(:'may_cancel')
179
+ self.may_cancel = attributes[:'may_cancel']
180
+ end
193
181
 
194
- if attributes.key?(:'transaction_state')
195
- self.transaction_state = attributes[:'transaction_state']
196
- end
182
+ if attributes.key?(:'state_reason')
183
+ self.state_reason = attributes[:'state_reason']
184
+ end
197
185
 
198
- if attributes.key?(:'exchange_rate')
199
- self.exchange_rate = attributes[:'exchange_rate']
200
- end
186
+ if attributes.key?(:'state')
187
+ self.state = attributes[:'state']
188
+ end
201
189
 
202
- if attributes.key?(:'fee_fractional')
203
- self.fee_fractional = attributes[:'fee_fractional']
204
- end
190
+ if attributes.key?(:'transaction_id')
191
+ self.transaction_id = attributes[:'transaction_id']
192
+ end
205
193
 
206
- if attributes.key?(:'input_amount')
207
- self.input_amount = attributes[:'input_amount']
208
- end
194
+ if attributes.key?(:'transaction_state')
195
+ self.transaction_state = attributes[:'transaction_state']
196
+ end
209
197
 
210
- if attributes.key?(:'input_currency')
211
- self.input_currency = attributes[:'input_currency']
212
- end
198
+ if attributes.key?(:'exchange_rate')
199
+ self.exchange_rate = attributes[:'exchange_rate']
200
+ end
213
201
 
214
- if attributes.key?(:'output_amount')
215
- self.output_amount = attributes[:'output_amount']
216
- end
202
+ if attributes.key?(:'fee_fractional')
203
+ self.fee_fractional = attributes[:'fee_fractional']
204
+ end
217
205
 
218
- if attributes.key?(:'output_currency')
219
- self.output_currency = attributes[:'output_currency']
220
- end
206
+ if attributes.key?(:'input_amount')
207
+ self.input_amount = attributes[:'input_amount']
208
+ end
221
209
 
222
- if attributes.key?(:'id')
223
- self.id = attributes[:'id']
224
- end
210
+ if attributes.key?(:'input_currency')
211
+ self.input_currency = attributes[:'input_currency']
212
+ end
225
213
 
226
- if attributes.key?(:'errors')
227
- if (value = attributes[:'errors']).is_a?(Hash)
228
- self.errors = value
229
- end
230
- end
214
+ if attributes.key?(:'output_amount')
215
+ self.output_amount = attributes[:'output_amount']
231
216
  end
232
217
 
233
- # Show invalid properties with the reasons. Usually used together with valid?
234
- # @return Array for valid properties with the reasons
235
- def list_invalid_properties
236
- invalid_properties = Array.new
237
- if @requested_amount.nil?
238
- invalid_properties.push('invalid value for "requested_amount", requested_amount cannot be nil.')
239
- end
218
+ if attributes.key?(:'output_currency')
219
+ self.output_currency = attributes[:'output_currency']
220
+ end
240
221
 
241
- if @requested_currency.nil?
242
- invalid_properties.push('invalid value for "requested_currency", requested_currency cannot be nil.')
243
- end
222
+ if attributes.key?(:'id')
223
+ self.id = attributes[:'id']
224
+ end
244
225
 
245
- if @payout_method.nil?
246
- invalid_properties.push('invalid value for "payout_method", payout_method cannot be nil.')
226
+ if attributes.key?(:'errors')
227
+ if (value = attributes[:'errors']).is_a?(Hash)
228
+ self.errors = value
247
229
  end
248
-
249
- invalid_properties
250
230
  end
231
+ end
251
232
 
252
- # Check to see if the all the properties in the model are valid
253
- # @return true if the model is valid
254
- def valid?
255
- return false if @requested_amount.nil?
256
- return false if @requested_currency.nil?
257
- return false if @payout_method.nil?
258
- true
233
+ # Show invalid properties with the reasons. Usually used together with valid?
234
+ # @return Array for valid properties with the reasons
235
+ def list_invalid_properties
236
+ invalid_properties = Array.new
237
+ if @requested_amount.nil?
238
+ invalid_properties.push('invalid value for "requested_amount", requested_amount cannot be nil.')
259
239
  end
260
240
 
261
- # Checks equality by comparing each attribute.
262
- # @param [Object] Object to be compared
263
- def ==(o)
264
- return true if self.equal?(o)
265
- self.class == o.class &&
266
- requested_amount == o.requested_amount &&
267
- requested_currency == o.requested_currency &&
268
- payout_method == o.payout_method &&
269
- metadata == o.metadata &&
270
- created_at == o.created_at &&
271
- editable == o.editable &&
272
- retriable == o.retriable &&
273
- input_usd_amount == o.input_usd_amount &&
274
- may_cancel == o.may_cancel &&
275
- state_reason == o.state_reason &&
276
- state == o.state &&
277
- transaction_id == o.transaction_id &&
278
- transaction_state == o.transaction_state &&
279
- exchange_rate == o.exchange_rate &&
280
- fee_fractional == o.fee_fractional &&
281
- input_amount == o.input_amount &&
282
- input_currency == o.input_currency &&
283
- output_amount == o.output_amount &&
284
- output_currency == o.output_currency &&
285
- id == o.id &&
286
- errors == o.errors
241
+ if @requested_currency.nil?
242
+ invalid_properties.push('invalid value for "requested_currency", requested_currency cannot be nil.')
287
243
  end
288
244
 
289
- # @see the `==` method
290
- # @param [Object] Object to be compared
291
- def eql?(o)
292
- self == o
245
+ if @payout_method.nil?
246
+ invalid_properties.push('invalid value for "payout_method", payout_method cannot be nil.')
293
247
  end
294
248
 
295
- # Calculates hash code according to all attributes.
296
- # @return [Integer] Hash code
297
- def hash
298
- [requested_amount, requested_currency, payout_method, metadata, created_at, editable, retriable, input_usd_amount, may_cancel, state_reason, state, transaction_id, transaction_state, exchange_rate, fee_fractional, input_amount, input_currency, output_amount, output_currency, id, errors].hash
299
- end
249
+ invalid_properties
250
+ end
251
+
252
+ # Check to see if the all the properties in the model are valid
253
+ # @return true if the model is valid
254
+ def valid?
255
+ return false if @requested_amount.nil?
256
+ return false if @requested_currency.nil?
257
+ return false if @payout_method.nil?
258
+ true
259
+ end
260
+
261
+ # Checks equality by comparing each attribute.
262
+ # @param [Object] Object to be compared
263
+ def ==(o)
264
+ return true if self.equal?(o)
265
+ self.class == o.class &&
266
+ requested_amount == o.requested_amount &&
267
+ requested_currency == o.requested_currency &&
268
+ payout_method == o.payout_method &&
269
+ metadata == o.metadata &&
270
+ created_at == o.created_at &&
271
+ editable == o.editable &&
272
+ retriable == o.retriable &&
273
+ input_usd_amount == o.input_usd_amount &&
274
+ may_cancel == o.may_cancel &&
275
+ state_reason == o.state_reason &&
276
+ state == o.state &&
277
+ transaction_id == o.transaction_id &&
278
+ transaction_state == o.transaction_state &&
279
+ exchange_rate == o.exchange_rate &&
280
+ fee_fractional == o.fee_fractional &&
281
+ input_amount == o.input_amount &&
282
+ input_currency == o.input_currency &&
283
+ output_amount == o.output_amount &&
284
+ output_currency == o.output_currency &&
285
+ id == o.id &&
286
+ errors == o.errors
287
+ end
288
+
289
+ # @see the `==` method
290
+ # @param [Object] Object to be compared
291
+ def eql?(o)
292
+ self == o
293
+ end
294
+
295
+ # Calculates hash code according to all attributes.
296
+ # @return [Integer] Hash code
297
+ def hash
298
+ [requested_amount, requested_currency, payout_method, metadata, created_at, editable, retriable, input_usd_amount, may_cancel, state_reason, state, transaction_id, transaction_state, exchange_rate, fee_fractional, input_amount, input_currency, output_amount, output_currency, id, errors].hash
299
+ end
300
300
 
301
301
  require 'active_support/core_ext/hash'
302
302
  require 'active_support/hash_with_indifferent_access.rb'
@@ -412,5 +412,6 @@ def _to_hash(value)
412
412
  end
413
413
  end
414
414
 
415
- end
415
+ end
416
+
416
417
  end