Skip to content

Commit

Permalink
Changed StartAt to StartTime included the data type
Browse files Browse the repository at this point in the history
  • Loading branch information
andhikamaheva committed Aug 21, 2018
1 parent 80ced2c commit b7ded34
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions request.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package midtrans

import (
"time"
)

// ItemDetail : Represent the transaction details
type ItemDetail struct {
ID string `json:"id"`
Expand Down Expand Up @@ -180,9 +176,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"`
StartTime string `json:"start_time,omitempty"`
Unit string `json:"unit,omitempty"`
Duration int64 `json:"duration,omitempty"`
}

// ChargeReq : Represent Charge request payload
Expand Down

0 comments on commit b7ded34

Please sign in to comment.