Class: BancoBrasilPayments::RootTypeForReturnedPaymentsDetails
- Inherits:
-
Object
- Object
- BancoBrasilPayments::RootTypeForReturnedPaymentsDetails
- Defined in:
- lib/bb_payments/models/root_type_for_returned_payments_details.rb
Overview
Objeto de Detalhes dos pagamentos devolvidos
Instance Attribute Summary collapse
-
#beneficiary_name ⇒ Object
Nome da pessoa ou empresa beneficiária no pagamento.
-
#check_digits_credit_current_account ⇒ Object
Dígito verificador da conta corrente para crédito.
-
#check_digits_debit_current_account ⇒ Object
Dígito do verificador da conta corrente para débito.
-
#clearinghouse_code ⇒ Object
Código de identificação da instituição para crédito na câmara de compensação (no Brasil, identificado pela sigla COMPE).
-
#credit_branch_office ⇒ Object
Código da agência para crédito.
-
#credit_card_first_four_digits_start ⇒ Object
Quatro primeiros números do cartão de crédito utilizado para pagamento (pagamento devolvido).
-
#credit_card_last_four_digits_end ⇒ Object
Quatro últimos números do cartão de crédito utilizado para pagamento (pagamento devolvido).
-
#credit_current_account ⇒ Object
Conta corrente para crédito.
-
#credit_type ⇒ Object
A modalidade que representa a maneira como o crédito foi dado, descrito a seguir: 1 significa Crédito em Conta Corrente; 3 significa DOC ou TED; 5 significa Crédito em Conta Poupança; 13 significa Liquidação de Guia com Código de Barra; 21 significa Liquidação de Guia sem Código de Barra; 30 significa Liquidação de Boleto Bancário; 31 significa Liquidação de Papéis Diversos; 71 significa Depósito Judicial.
-
#debit_branch_office ⇒ Object
Código da agência para débito.
-
#debit_current_account ⇒ Object
Conta corrente de débito.
-
#debit_document ⇒ Object
Documento de débito.
-
#ispb_code ⇒ Object
Código identificador do Sistema de Pagamento Brasileiro (Identificado pelo acrônimo ISPB) para crédito.
-
#numeric_bar_code ⇒ Object
Define o código de barras numérico do pagamento.
-
#paid_value ⇒ Object
Valor pago em reais (formato 0.00).
-
#payer_taxpayer_registration ⇒ Object
CPF ou CNPJ do pagador.
-
#payer_taxpayer_type ⇒ Object
Identifica o tipo de beneficiário, como: 1 - Pessoa física 2 - Pessoa Jurídica.
-
#payment_current_account ⇒ Object
Conta corrente para pagamento.
-
#payment_date ⇒ Object
Data do pagamento (formato ddmmaaaa).
-
#payment_id ⇒ Object
Código identificador do pagamento.
-
#payment_type ⇒ Object
Modalidade que representa o tipo de pagamento, sendo: 126 pagamento de fornecedores; 127 pagamento de salário e 128 pagamentos diversos.
-
#payment_value ⇒ Object
Valor do pagamento em reais (formato 0.00).
-
#request_identification ⇒ Object
Identificação da solicitação de pagamento.
-
#returned_code ⇒ Object
Código que representa o motivo da devolução do pagamento Domínios(Tipo de pagamento - Código - Mensagem): Transferência - 01 - CONTA DESTINATÁRIA DO CRÉDITO ENCERRADA; Transferência - 02 - AGÊNCIA OU CONTA DESTINATÁRIA DO CRÉDITO INVÁLIDA; Transferência - 03 - AUSÊNCIA OU DIVERGÊNCIA NA INDICAÇÃO DO CPF/CNPJ ; Transferência - 04 - MENSAGEM INVÁLIDA PARA O TIPO DE TRANSAÇÃO/FINALIDADE; Transferência - 05 - DIVERGÊNCIA NA TITULARIDADE; Transferência - 06 - TRANSFERÊNCIA INSUFICIENTE PARA A FINALIDADE INDICADA; Transferência - 57 - AG/CTA OU CPF/CNPJ DESTINATÁRIO INVÁLIDO OU TRANSF.
-
#returned_date ⇒ Object
Data da devolução do pagamento pelo Beneficiário (formato ddmmaaaa).
-
#returned_sequence ⇒ Object
Em caso de devolução parcial dos pagamentos, este campo indicará a sequência de devolução.
-
#returned_value ⇒ Object
Valor da devolução do pagamento pelo Beneficiário (formato 0.00).
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ RootTypeForReturnedPaymentsDetails
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ RootTypeForReturnedPaymentsDetails
Initializes the object
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 172 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `BancoBrasilPayments::RootTypeForReturnedPaymentsDetails` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `BancoBrasilPayments::RootTypeForReturnedPaymentsDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'payment_id') self.payment_id = attributes[:'payment_id'] end if attributes.key?(:'payment_type') self.payment_type = attributes[:'payment_type'] end if attributes.key?(:'credit_type') self.credit_type = attributes[:'credit_type'] end if attributes.key?(:'payment_date') self.payment_date = attributes[:'payment_date'] end if attributes.key?(:'clearinghouse_code') self.clearinghouse_code = attributes[:'clearinghouse_code'] end if attributes.key?(:'ispb_code') self.ispb_code = attributes[:'ispb_code'] end if attributes.key?(:'credit_branch_office') self.credit_branch_office = attributes[:'credit_branch_office'] end if attributes.key?(:'credit_current_account') self.credit_current_account = attributes[:'credit_current_account'] end if attributes.key?(:'check_digits_credit_current_account') self.check_digits_credit_current_account = attributes[:'check_digits_credit_current_account'] end if attributes.key?(:'payment_current_account') self.payment_current_account = attributes[:'payment_current_account'] end if attributes.key?(:'payer_taxpayer_type') self.payer_taxpayer_type = attributes[:'payer_taxpayer_type'] end if attributes.key?(:'payer_taxpayer_registration') self.payer_taxpayer_registration = attributes[:'payer_taxpayer_registration'] end if attributes.key?(:'beneficiary_name') self.beneficiary_name = attributes[:'beneficiary_name'] end if attributes.key?(:'paid_value') self.paid_value = attributes[:'paid_value'] end if attributes.key?(:'numeric_bar_code') self. = attributes[:'numeric_bar_code'] end if attributes.key?(:'payment_value') self.payment_value = attributes[:'payment_value'] end if attributes.key?(:'request_identification') self.request_identification = attributes[:'request_identification'] end if attributes.key?(:'debit_branch_office') self.debit_branch_office = attributes[:'debit_branch_office'] end if attributes.key?(:'debit_current_account') self.debit_current_account = attributes[:'debit_current_account'] end if attributes.key?(:'check_digits_debit_current_account') self.check_digits_debit_current_account = attributes[:'check_digits_debit_current_account'] end if attributes.key?(:'credit_card_first_four_digits_start') self.credit_card_first_four_digits_start = attributes[:'credit_card_first_four_digits_start'] end if attributes.key?(:'credit_card_last_four_digits_end') self.credit_card_last_four_digits_end = attributes[:'credit_card_last_four_digits_end'] end if attributes.key?(:'debit_document') self.debit_document = attributes[:'debit_document'] end if attributes.key?(:'returned_date') self.returned_date = attributes[:'returned_date'] end if attributes.key?(:'returned_value') self.returned_value = attributes[:'returned_value'] end if attributes.key?(:'returned_code') self.returned_code = attributes[:'returned_code'] end if attributes.key?(:'returned_sequence') self.returned_sequence = attributes[:'returned_sequence'] end end |
Instance Attribute Details
#beneficiary_name ⇒ Object
Nome da pessoa ou empresa beneficiária no pagamento
54 55 56 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 54 def beneficiary_name @beneficiary_name end |
#check_digits_credit_current_account ⇒ Object
Dígito verificador da conta corrente para crédito. Não informado quando se trata de depósito judicial.
42 43 44 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 42 def check_digits_credit_current_account @check_digits_credit_current_account end |
#check_digits_debit_current_account ⇒ Object
Dígito do verificador da conta corrente para débito.
75 76 77 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 75 def check_digits_debit_current_account @check_digits_debit_current_account end |
#clearinghouse_code ⇒ Object
Código de identificação da instituição para crédito na câmara de compensação (no Brasil, identificado pela sigla COMPE). Por exemplo, valor 1 para o Banco do Brasil e valor 104 para a Caixa Econômica Federal. Se o valor 0 for informado, o campo ispbCode será considerado.
30 31 32 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 30 def clearinghouse_code @clearinghouse_code end |
#credit_branch_office ⇒ Object
Código da agência para crédito.
36 37 38 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 36 def credit_branch_office @credit_branch_office end |
#credit_card_first_four_digits_start ⇒ Object
Quatro primeiros números do cartão de crédito utilizado para pagamento (pagamento devolvido)
78 79 80 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 78 def credit_card_first_four_digits_start @credit_card_first_four_digits_start end |
#credit_card_last_four_digits_end ⇒ Object
Quatro últimos números do cartão de crédito utilizado para pagamento (pagamento devolvido)
81 82 83 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 81 def credit_card_last_four_digits_end @credit_card_last_four_digits_end end |
#credit_current_account ⇒ Object
Conta corrente para crédito. Não informado quando se trata de depósito judicial.
39 40 41 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 39 def credit_current_account @credit_current_account end |
#credit_type ⇒ Object
A modalidade que representa a maneira como o crédito foi dado, descrito a seguir: 1 significa Crédito em Conta Corrente; 3 significa DOC ou TED; 5 significa Crédito em Conta Poupança; 13 significa Liquidação de Guia com Código de Barra; 21 significa Liquidação de Guia sem Código de Barra; 30 significa Liquidação de Boleto Bancário; 31 significa Liquidação de Papéis Diversos; 71 significa Depósito Judicial.
24 25 26 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 24 def credit_type @credit_type end |
#debit_branch_office ⇒ Object
Código da agência para débito.
69 70 71 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 69 def debit_branch_office @debit_branch_office end |
#debit_current_account ⇒ Object
Conta corrente de débito.
72 73 74 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 72 def debit_current_account @debit_current_account end |
#debit_document ⇒ Object
Documento de débito.
84 85 86 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 84 def debit_document @debit_document end |
#ispb_code ⇒ Object
Código identificador do Sistema de Pagamento Brasileiro (Identificado pelo acrônimo ISPB) para crédito. Por exemplo, valor 0 para o Banco do Brasil e valor 360305 para a Caixa Econômica Federal. Não considerado quando o campo clearinghouse é informado.
33 34 35 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 33 def ispb_code @ispb_code end |
#numeric_bar_code ⇒ Object
Define o código de barras numérico do pagamento.
60 61 62 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 60 def @numeric_bar_code end |
#paid_value ⇒ Object
Valor pago em reais (formato 0.00)
57 58 59 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 57 def paid_value @paid_value end |
#payer_taxpayer_registration ⇒ Object
CPF ou CNPJ do pagador.
51 52 53 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 51 def payer_taxpayer_registration @payer_taxpayer_registration end |
#payer_taxpayer_type ⇒ Object
Identifica o tipo de beneficiário, como: 1 - Pessoa física 2 - Pessoa Jurídica.
48 49 50 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 48 def payer_taxpayer_type @payer_taxpayer_type end |
#payment_current_account ⇒ Object
Conta corrente para pagamento.
45 46 47 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 45 def payment_current_account @payment_current_account end |
#payment_date ⇒ Object
Data do pagamento (formato ddmmaaaa). Solicitações de pagamentos para dias não úteis ou após o horário limite de processamento serão pagas no próximo dia útil, com exceção de transferências entre contas do Banco do Brasil
27 28 29 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 27 def payment_date @payment_date end |
#payment_id ⇒ Object
Código identificador do pagamento.
18 19 20 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 18 def payment_id @payment_id end |
#payment_type ⇒ Object
Modalidade que representa o tipo de pagamento, sendo: 126 pagamento de fornecedores; 127 pagamento de salário e 128 pagamentos diversos
21 22 23 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 21 def payment_type @payment_type end |
#payment_value ⇒ Object
Valor do pagamento em reais (formato 0.00)
63 64 65 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 63 def payment_value @payment_value end |
#request_identification ⇒ Object
Identificação da solicitação de pagamento. É um número único, não sequencial, controlado pelo cliente, cujo valor vai de 1 a 999999.
66 67 68 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 66 def request_identification @request_identification end |
#returned_code ⇒ Object
Código que representa o motivo da devolução do pagamento Domínios(Tipo de pagamento - Código - Mensagem): Transferência - 01 - CONTA DESTINATÁRIA DO CRÉDITO ENCERRADA; Transferência - 02 - AGÊNCIA OU CONTA DESTINATÁRIA DO CRÉDITO INVÁLIDA; Transferência - 03 - AUSÊNCIA OU DIVERGÊNCIA NA INDICAÇÃO DO CPF/CNPJ ; Transferência - 04 - MENSAGEM INVÁLIDA PARA O TIPO DE TRANSAÇÃO/FINALIDADE; Transferência - 05 - DIVERGÊNCIA NA TITULARIDADE; Transferência - 06 - TRANSFERÊNCIA INSUFICIENTE PARA A FINALIDADE INDICADA; Transferência - 57 - AG/CTA OU CPF/CNPJ DESTINATÁRIO INVÁLIDO OU TRANSF. ENTRE CONTAS CONJUNTAS; Transferência - 58 - TRANSFERÊNCIA DE UMA CONTA CORRENTE PARA UMA CONTA DE POUPANÇA; Transferência - 62 - DIVERGÊNCIA CPF/CNPJ DE UM DOS TITULARES; Transferência - 66 - TRANSFERÊNCIA DE CONTA CONJUNTA PARA CONTA INDIVIDUAL OU VICE VERSA; Transferência - 67 - SEM INDICAÇÃO DO TIPO DE CONTA; Boleto - 01 - DATA DE RECEBIMENTO NÃO NUMÉRICA; Boleto - 02 - AGÊNCIA INVÁLIDA; Boleto - 03 - VALOR RECEBIDO NÃO NUMÉRICO OU IGUAL A ZERO; Boleto - 04 - LOTE NÃO NUMÉRCIO; Boleto - 05 - BANCO INVÁLIDO; Boleto - 06 - CÓDIGO MOEDA NÃO NUMÉRICO; Boleto - 07 - DV CÓDIGO DE BARRAS NÃO NUMÉRICO; Boleto - 08 - FATOR VENCIMENTO NÃO NUMÉRICO; Boleto - 09 - VALOR TÍTULO NÃO NUMÉRICO; Boleto - 10 - CAMPO LIVRE NÃO NUMÉRICO; Boleto - 11 - DV CÓDIGO DE BARRAS NÃO CONFERE; Boleto - 12 - DATA DE RECEBIMENTO INVÁLIDA; Boleto - 13 - VALOR RECEBIMENTO ACIMA DO LIMITE;
93 94 95 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 93 def returned_code @returned_code end |
#returned_date ⇒ Object
Data da devolução do pagamento pelo Beneficiário (formato ddmmaaaa)
87 88 89 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 87 def returned_date @returned_date end |
#returned_sequence ⇒ Object
Em caso de devolução parcial dos pagamentos, este campo indicará a sequência de devolução
96 97 98 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 96 def returned_sequence @returned_sequence end |
#returned_value ⇒ Object
Valor da devolução do pagamento pelo Beneficiário (formato 0.00)
90 91 92 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 90 def returned_value @returned_value end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 99 def self.attribute_map { :'payment_id' => :'paymentId', :'payment_type' => :'paymentType', :'credit_type' => :'creditType', :'payment_date' => :'paymentDate', :'clearinghouse_code' => :'clearinghouseCode', :'ispb_code' => :'ispbCode', :'credit_branch_office' => :'creditBranchOffice', :'credit_current_account' => :'creditCurrentAccount', :'check_digits_credit_current_account' => :'checkDigitsCreditCurrentAccount', :'payment_current_account' => :'paymentCurrentAccount', :'payer_taxpayer_type' => :'payerTaxpayerType', :'payer_taxpayer_registration' => :'payerTaxpayerRegistration', :'beneficiary_name' => :'beneficiaryName', :'paid_value' => :'paidValue', :'numeric_bar_code' => :'numericBarCode', :'payment_value' => :'paymentValue', :'request_identification' => :'requestIdentification', :'debit_branch_office' => :'debitBranchOffice', :'debit_current_account' => :'debitCurrentAccount', :'check_digits_debit_current_account' => :'checkDigitsDebitCurrentAccount', :'credit_card_first_four_digits_start' => :'creditCardFirstFourDigitsStart', :'credit_card_last_four_digits_end' => :'creditCardLastFourDigitsEnd', :'debit_document' => :'debitDocument', :'returned_date' => :'returnedDate', :'returned_value' => :'returnedValue', :'returned_code' => :'returnedCode', :'returned_sequence' => :'returnedSequence' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
356 357 358 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 356 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
165 166 167 168 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 165 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 132 def self.openapi_types { :'payment_id' => :'Object', :'payment_type' => :'Object', :'credit_type' => :'Object', :'payment_date' => :'Object', :'clearinghouse_code' => :'Object', :'ispb_code' => :'Object', :'credit_branch_office' => :'Object', :'credit_current_account' => :'Object', :'check_digits_credit_current_account' => :'Object', :'payment_current_account' => :'Object', :'payer_taxpayer_type' => :'Object', :'payer_taxpayer_registration' => :'Object', :'beneficiary_name' => :'Object', :'paid_value' => :'Object', :'numeric_bar_code' => :'Object', :'payment_value' => :'Object', :'request_identification' => :'Object', :'debit_branch_office' => :'Object', :'debit_current_account' => :'Object', :'check_digits_debit_current_account' => :'Object', :'credit_card_first_four_digits_start' => :'Object', :'credit_card_last_four_digits_end' => :'Object', :'debit_document' => :'Object', :'returned_date' => :'Object', :'returned_value' => :'Object', :'returned_code' => :'Object', :'returned_sequence' => :'Object' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 309 def ==(o) return true if self.equal?(o) self.class == o.class && payment_id == o.payment_id && payment_type == o.payment_type && credit_type == o.credit_type && payment_date == o.payment_date && clearinghouse_code == o.clearinghouse_code && ispb_code == o.ispb_code && credit_branch_office == o.credit_branch_office && credit_current_account == o.credit_current_account && check_digits_credit_current_account == o.check_digits_credit_current_account && payment_current_account == o.payment_current_account && payer_taxpayer_type == o.payer_taxpayer_type && payer_taxpayer_registration == o.payer_taxpayer_registration && beneficiary_name == o.beneficiary_name && paid_value == o.paid_value && == o. && payment_value == o.payment_value && request_identification == o.request_identification && debit_branch_office == o.debit_branch_office && debit_current_account == o.debit_current_account && check_digits_debit_current_account == o.check_digits_debit_current_account && credit_card_first_four_digits_start == o.credit_card_first_four_digits_start && credit_card_last_four_digits_end == o.credit_card_last_four_digits_end && debit_document == o.debit_document && returned_date == o.returned_date && returned_value == o.returned_value && returned_code == o.returned_code && returned_sequence == o.returned_sequence end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 386 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model BancoBrasilPayments.const_get(type).build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
455 456 457 458 459 460 461 462 463 464 465 466 467 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 455 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 363 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) end end self end |
#eql?(o) ⇒ Boolean
343 344 345 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 343 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
349 350 351 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 349 def hash [payment_id, payment_type, credit_type, payment_date, clearinghouse_code, ispb_code, credit_branch_office, credit_current_account, check_digits_credit_current_account, payment_current_account, payer_taxpayer_type, payer_taxpayer_registration, beneficiary_name, paid_value, , payment_value, request_identification, debit_branch_office, debit_current_account, check_digits_debit_current_account, credit_card_first_four_digits_start, credit_card_last_four_digits_end, debit_document, returned_date, returned_value, returned_code, returned_sequence].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
296 297 298 299 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 296 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
431 432 433 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 431 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
437 438 439 440 441 442 443 444 445 446 447 448 449 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 437 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
425 426 427 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 425 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
303 304 305 |
# File 'lib/bb_payments/models/root_type_for_returned_payments_details.rb', line 303 def valid? true end |