Skip to content

Commit

Permalink
Card token - add integrated test
Browse files Browse the repository at this point in the history
  • Loading branch information
meliguilhermefernandes committed Feb 8, 2024
1 parent c7986e6 commit ee570cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/cardtoken/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func MockCardTokenRequest() Request {
}
}

func parseDate(s string) time.Time {
func parseDate(s string) *time.Time {
d, _ := time.Parse(time.RFC3339, s)
return d
return &d
}
6 changes: 3 additions & 3 deletions pkg/cardtoken/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type Response struct {
ExpirationYear int `json:"expiration_year"`
CardNumberLength int `json:"card_number_length"`
SecurityCodeLength int `json:"security_code_length"`
DateCreated time.Time `json:"date_created"`
DateLastUpdated time.Time `json:"date_last_updated"`
DateDue time.Time `json:"date_due"`
DateCreated *time.Time `json:"date_created"`
DateLastUpdated *time.Time `json:"date_last_updated"`
DateDue *time.Time `json:"date_due"`
Cardholder Cardholder `json:"cardholder"`
}

0 comments on commit ee570cd

Please sign in to comment.