forked from moov-io/watchman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ofac.go
102 lines (95 loc) · 4.4 KB
/
ofac.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// Copyright 2018 The Moov Authors
// Use of this source code is governed by an Apache License
// license that can be found in the LICENSE file.
package ofac
// ToDo: NON-SDN List, Consolidated List - They appear to have the same format. Other list?
// SDN is a specially Designated National
type SDN struct {
// EntityID (ent_num) is the unique record identifier/unique listing identifier
EntityID string `json:"entityID"`
// SDNName (SDN_name) is the name of the specially designated national
SDNName string `json:"sdnName"`
// SDNType (SDN_Type) is the type of SDN
SDNType string `json:"sdnType"`
// Program is the sanctions program name
Program string `json:"program"`
// Title is the title of an individual
Title string `json:"title"`
// CallSign (Call_Sign) is vessel call sign
CallSign string `json:"callSign"`
// VesselType (Vess_type) is the vessel type
VesselType string `json:"vesselType"`
// Tonnage is the vessel tonnage
Tonnage string `json:"tonnage"`
// GrossRegisteredTonnage (GRT) is gross registered tonnage
GrossRegisteredTonnage string `json:"grossRegisteredTonnage"`
// VesselFlag (Vess_flag) is vessel flag
VesselFlag string `json:"vesselFlag"`
// VesselOwner (Vess_owner) is vessel owner
VesselOwner string `json:"vesselOwner"`
// Remarks is remarks on specially designated national
Remarks string `json:"remarks"`
}
// Address is OFAC SDN Addresses
type Address struct {
// EntityID (ent_num) is the unique record identifier/unique listing identifier
EntityID string `json:"entityID"`
// AddressID (add_num) is the unique record identifier for the address
AddressID string `json:"addressID"`
// Address is the street address of the specially designated national
Address string `json:"address"`
// CityStateProvincePostalCode is the city, state/province, zip/postal code for the address of the
// specially designated national
CityStateProvincePostalCode string `json:"cityStateProvincePostalCode"`
// Country is the country for the address of the specially designated national
Country string `json:"country"`
//AddressRemarks (Add_remarks) is remarks on the address
AddressRemarks string `json:"addressRemarks"`
}
// AlternateIdentity is OFAC SDN Alternate Identity object
type AlternateIdentity struct {
// EntityID (ent_num) is the unique record identifier/unique listing identifier
EntityID string `json:"entityID"`
// AlternateID (alt_num) is the unique record identifier for the alternate identity
AlternateID string `json:"alternateID"`
// AlternateIdentityType (alt_type) is the type of alternate identity (aka, fka, nka)
AlternateType string `json:"alternateType"`
// AlternateIdentityName (alt_name) is the alternate identity name of the specially designated national
AlternateName string `json:"alternateName"`
// AlternateIdentityRemarks (alt_remarks) is remarks on alternate identity of the specially designated national
AlternateRemarks string `json:"alternateRemarks"`
}
// SDNComments is OFAC SDN Additional Comments
type SDNComments struct {
// EntityID (ent_num) is the unique record identifier/unique listing identifier
EntityID string `json:"entityID"`
// RemarksExtended is remarks extended on a Specially Designated National
RemarksExtended string `json:"remarksExtended"`
}
// DPL is the BIS Denied Persons List
type DPL struct {
// Name is the name of the Denied Person
Name string `json:"name"`
// StreetAddress is the Denied Person's street address
StreetAddress string `json:"streetAddress"`
// City is the Denied Person's city
City string `json:"city"`
// State is the Denied Person's state
State string `json:"state"`
// Country is the Denied Person's country
Country string `json:"country"`
// PostalCode is the Denied Person's postal code
PostalCode string `json:"postalCode"`
// EffectiveDate is the date the denial came into effect
EffectiveDate string `json:"effectiveDate"`
// ExpirationDate is the date the denial expires. If blank, the denial has no expiration
ExpirationDate string `json:"expirationDate"`
// StandardOrder denotes whether or not the Person was added to the list by a "standard" order
StandardOrder string `json:"standardOrder"`
// LastUpdate is the date of the most recent change to the denial
LastUpdate string `json:"lastUpdate"`
// Action is the most recent action taken regarding the denial
Action string `json:"action"`
// FRCitation is the reference to the order's citation in the Federal Register
FRCitation string `json:"frCitation"`
}