module Correios::ReverseLogistics
Public Class Methods
calculate_ticket_number_check_digit(data = {})
click to toggle source
# File lib/correios_gem.rb, line 100 def self.calculate_ticket_number_check_digit(data = {}) CalculateTicketNumberCheckDigit.new(data).request end
cancel_shipping(data = {})
click to toggle source
# File lib/correios_gem.rb, line 104 def self.cancel_shipping(data = {}) CancelShipping.new(data).request end
client()
click to toggle source
# File lib/auxiliars/environments.rb, line 20 def self.client base_client(wsdl: wsdl, basic_auth: [ Correios.credentials.reverse_logistics_user || 'user', Correios.credentials.reverse_logistics_password || 'pass' ]) end
create_shippings(data = {})
click to toggle source
# File lib/correios_gem.rb, line 108 def self.create_shippings(data = {}) CreateShippings.new(data).request end
create_shippings_with_collection(data = {})
click to toggle source
# File lib/correios_gem.rb, line 112 def self.create_shippings_with_collection(data = {}) CreateShippingsWithCollection.new(data).request end
namespaces()
click to toggle source
# File lib/auxiliars/environments.rb, line 28 def self.namespaces { 'xmlns:soap' => 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns:ns1' => 'http://service.logisticareversa.correios.com.br/' } end
request_ticket_numbers(data = {})
click to toggle source
# File lib/correios_gem.rb, line 116 def self.request_ticket_numbers(data = {}) RequestTicketNumbers.new(data).request end
track_shipping(data = {})
click to toggle source
# File lib/correios_gem.rb, line 120 def self.track_shipping(data = {}) TrackShipping.new(data).request end
track_shippings_by_date(data = {})
click to toggle source
# File lib/correios_gem.rb, line 124 def self.track_shippings_by_date(data = {}) TrackShippingsByDate.new(data).request end
wsdl()
click to toggle source
# File lib/auxiliars/environments.rb, line 35 def self.wsdl if production_env? 'https://cws.correios.com.br/logisticaReversaWS/logisticaReversaService/logisticaReversaWS?wsdl' else 'https://apphom.correios.com.br/logisticaReversaWS/logisticaReversaService/logisticaReversaWS?wsdl' end end