-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomer.go
30 lines (23 loc) · 854 Bytes
/
customer.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
package adf
import (
"encoding/xml"
"time"
)
// ADF/XML standardization customer tag
type Customer struct {
XMLName xml.Name `xml:"customer"`
ID ID `xml:"id,omitempty"`
Contact Contact `xml:"contact,omitempty"`
TimeFrame *struct {
Description string `xml:"description,omitempty"`
// Earliest date customer is interested in.
// If timeframe tag is present, it is required to specify earliestdate and/or latestdate
// Valid value is a ISO 8601 formatted datetime
EarliestDate *time.Time `xml:"earliestdate,omitempty"`
// Latest date customer is interested in.
// If timeframe tag is present, it is required to specify earliestdate and/or latestdate
// Valid valus is a ISO 8601 formatted datetime
LatestDate *time.Time `xml:"latestdate,omitempty"`
} `xml:"timeframe,omitempty"`
Comments string `xml:"comments,omitempty"`
}