def to_request
        credit = {
          delayed:              self.delayed,
          authenticated:        self.authenticated,
          pre_authorization:    self.pre_authorization,
          save_card_data:       self.save_card_data,
          transaction_type:     self.transaction_type,
          number_installments:  self.number_installments.to_i,
          soft_descriptor:      self.soft_descriptor,
          dynamic_mcc:          self.dynamic_mcc,
          card:                 self.card.to_request,
        }

      return credit
    end
def to_request
        credit = {
          delayed:              self.delayed,
          authenticated:        self.authenticated,
          pre_authorization:    self.pre_authorization,
          save_card_data:       self.save_card_data,
          transaction_type:     self.transaction_type,
          number_installments:  self.number_installments.to_i,
          soft_descriptor:      self.soft_descriptor,
          dynamic_mcc:          self.dynamic_mcc,
          card:                 self.card.to_request,
        }

      return credit
    end
Nova instancia da classe Credit
 @param [Hash] campos
 Montar o Hash de dados do pagamento no padrão utilizado pela Getnet