-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.go
More file actions
42 lines (34 loc) · 735 Bytes
/
Copy pathclient.go
File metadata and controls
42 lines (34 loc) · 735 Bytes
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
37
38
39
40
41
package client
import(
"fmt"
proto "github.com/golang/protobuf/proto"
model "github.com/rnzsgh/kyc-api-poc/protob/model"
)
func main() {
lastName := new(string)
*lastName = "Last"
kyc := &model.Kyc{
UserId: "sometestuserid",
FirstName: "First",
LastName: lastName,
DateOfBirth: "2020-01-10",
RecordType: "KYC",
KycStatus: "VERIFIED",
Address : &model.Address{
Address1: "111 Here",
CityLocality: "New York",
StateProvinceRegion: "NY",
PostalCode: "10004",
CountryCode: "USA",
},
Id: &model.Id{
Type: "SSN",
Value: "111-11-1111",
CountryCode: "USA",
},
}
out, err := proto.Marshal(kyc)
if err != nil {
panic(fmt.Sprintf("Failed to marshal event: %v", err))
}
}