Class: Boletoman::Services::Santander::Query::Ticket

Inherits:
Ticket show all
Defined in:
lib/boletoman/services/santander/query/ticket.rb

Constant Summary

Constants inherited from Ticket

Ticket::BANK_CODE

Instance Method Summary collapse

Methods inherited from Ticket

#operation, #requires_certificate?, #response_class, #wsdl

Methods inherited from Request

#extra_config_options, #requires_certificate?

Methods inherited from Boletoman::Services::Soap::Request

#basic_config, #call, #client, #config_options, #extra_config_options, #operation, #response, #response_class, #wsdl

Instance Method Details

#messageObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/boletoman/services/santander/query/ticket.rb', line 8

def message
  {
    'TicketRequest' => {
      dados: {
        entry: [
          {
            key: 'CONVENIO.COD-BANCO',
            value: BANK_CODE
          },
          {
            key: 'CONVENIO.COD-CONVENIO',
            value: ::Boletoman.configuration.santander.configuration.covenant
          }
        ]
      },
      expiracao: '100',
      sistema: 'YMB'
    }
  }
end