github.com/mundipagg/boleto-api@v0.0.0-20230620145841-3f9ec742599f/models/fees.go (about)

     1  package models
     2  
     3  type Fees struct {
     4  	Fine     *Fine     `json:"fine,omitempty"`
     5  	Interest *Interest `json:"interest,omitempty"`
     6  }
     7  
     8  //HasFine Verifica se o nó de fine está preenchido
     9  func (f *Fees) HasFine() bool {
    10  	return f != nil && f.Fine != nil
    11  }
    12  
    13  //HasInterest Verifica se o nó de interest está preenchido
    14  func (f *Fees) HasInterest() bool {
    15  	return f != nil && f.Interest != nil
    16  }