-
Notifications
You must be signed in to change notification settings - Fork 1
/
chargeauthtoken.go
36 lines (32 loc) · 1.2 KB
/
chargeauthtoken.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package monta
import "time"
// ChargeAuthTokenType is the types charge authentications.
type ChargeAuthTokenType string
// Known [ChargeAuthTokenType] values.
const (
ChargeAuthTokenTypeVehicleID ChargeAuthTokenType = "vehicleId"
ChargeAuthTokenTypeRFID ChargeAuthTokenType = "rfid"
)
// ChargeAuthToken used to authenticate the charge.
type ChargeAuthToken struct {
// The id of the charge auth token.
ID int64 `json:"id"`
// The identifier of the charge auth token, Note: without prefix e.g VID:.
Identifier string `json:"identifier"`
// The method type used for this charge auth token.
Type ChargeAuthTokenType `json:"type"`
// Id of the team that the charge auth token belongs.
TeamID int64 `json:"teamId"`
// Name of the charge auth token.
Name *string `json:"name"`
// External Id of this entity, managed by you.
PartnerExternalID *string `json:"partnerExternalId"`
// Blocked date of this charge auth token.
BlockedAt *time.Time `json:"blockedAt"`
// Creation date of this charge auth token.
CreatedAt time.Time `json:"createdAt"`
// Update date of this charge auth token.
UpdatedAt time.Time `json:"updatedAt"`
// Operator of this charge auth token.
Operator *Operator `json:"operator"`
}