Skip to content

Commit

Permalink
add types for recurrence payment
Browse files Browse the repository at this point in the history
  • Loading branch information
vasconcelosvcd committed Dec 30, 2021
1 parent 6c0a050 commit c540fec
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ module github.com/vasconcelosvcd/go-cielo

go 1.13

require github.com/satori/go.uuid v1.2.0
require (
github.com/satori/go.uuid v1.2.0
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
)
7 changes: 7 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
3 changes: 2 additions & 1 deletion test/sale_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package test

import (
"github.com/vasconcelosvcd/go-cielo"
"testing"

"github.com/vasconcelosvcd/go-cielo"
)

func Test_SaleCreditCard(t *testing.T) {
Expand Down
10 changes: 7 additions & 3 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,13 @@ type (
}

RecurrentPayment struct {
AuthorizeNow bool `json:",omitempty"`
EndDate string `json:",omitempty"`
Interval string `json:",omitempty"`
AuthorizeNow bool `json:",omitempty"`
EndDate string `json:",omitempty"`
Interval string `json:",omitempty"`
RecurrentPaymentId string `json:",omitempty"`
ReasonCode int32 `json:",omitempty"`
ReasonMessage string `json:",omitempty"`
NextRecurrency string `json:",omitempty"`
}

CreditCard struct {
Expand Down

0 comments on commit c540fec

Please sign in to comment.