Skip to content

Commit

Permalink
Set expiry start_at as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
andhikamaheva committed Aug 21, 2018
1 parent 2ae48a7 commit 1883d06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ type Callbacks struct {

// Expiry : Represent transaction expiry time
type Expiry struct {
StartAt time.Time `json:"start_at,omitempty"`
Unit string `json:"unit,omitempty"`
Duration int64 `json:"duration,omitempty"`
StartAt *time.Time `json:"start_at,omitempty"`
Unit string `json:"unit,omitempty"`
Duration int64 `json:"duration,omitempty"`
}

// ChargeReq : Represent Charge request payload
Expand Down

0 comments on commit 1883d06

Please sign in to comment.