|
| 1 | +package model |
| 2 | + |
| 3 | +type MerchantInfo struct { |
| 4 | + ReferenceMerchantId string `json:"referenceMerchantId,omitempty"` |
| 5 | + LoginId string `json:"loginId,omitempty"` |
| 6 | + LegalEntityType LegalEntityType `json:"legalEntityType,omitempty"` |
| 7 | + Company *Company `json:"company,omitempty"` |
| 8 | + BusinessInfo *BusinessInfo `json:"businessInfo,omitempty"` |
| 9 | + EntityAssociations []*EntityAssociations `json:"entityAssociations,omitempty"` |
| 10 | +} |
| 11 | + |
| 12 | +type LegalEntityType string |
| 13 | + |
| 14 | +const ( |
| 15 | + LegalEntityType_Company LegalEntityType = "COMPANY" |
| 16 | + LegalEntityType_INDIVIDUAL LegalEntityType = "INDIVIDUAL" |
| 17 | +) |
| 18 | + |
| 19 | +type Company struct { |
| 20 | + LegalName string `json:"legalName,omitempty"` |
| 21 | + CompanyType CompanyType `json:"companyType,omitempty"` |
| 22 | + RegisteredAddress *Address `json:"registeredAddress,omitempty"` |
| 23 | + OperatingAddress *Address `json:"operatingAddress,omitempty"` |
| 24 | + IncorporationDate string `json:"incorporationDate,omitempty"` |
| 25 | + StockInfo *StockInfo `json:"stockInfo,omitempty"` |
| 26 | + Certificates *Certificate `json:"certificates,omitempty"` |
| 27 | + Attachments []*Attachment `json:"attachments,omitempty"` |
| 28 | + CompanyUnit *CompanyUnitType `json:"companyUnit,omitempty"` |
| 29 | + Contacts []*Contact `json:"contacts,omitempty"` |
| 30 | + VatNo string `json:"vatNo,omitempty"` |
| 31 | +} |
| 32 | + |
| 33 | +type BusinessInfo struct { |
| 34 | + Mcc string `json:"mcc,omitempty"` |
| 35 | + Websites []*WebSite `json:"websites,omitempty"` |
| 36 | + EnglishName string `json:"englishName,omitempty"` |
| 37 | + DoingBusinessAs string `json:"doingBusinessAs,omitempty"` |
| 38 | + MainSalesCountry string `json:"mainSalesCountry,omitempty"` |
| 39 | + AppName string `json:"appName,omitempty"` |
| 40 | + ServiceDescription string `json:"serviceDescription,omitempty"` |
| 41 | +} |
| 42 | + |
| 43 | +type EntityAssociations struct { |
| 44 | + AssociationType AssociationType `json:"associationType,omitempty"` |
| 45 | + LegalEntityType LegalEntityType `json:"legalEntityType,omitempty"` |
| 46 | + Company *Company `json:"company,omitempty"` |
| 47 | + Individual *Individual `json:"individual,omitempty"` |
| 48 | + ShareholdingRatio string `json:"shareholdingRatio,omitempty"` |
| 49 | +} |
| 50 | + |
| 51 | +type Individual struct { |
| 52 | + Name *UserName `json:"name,omitempty"` |
| 53 | + EnglishName *UserName `json:"englishName,omitempty"` |
| 54 | + DateOfBirth string `json:"dateOfBirth,omitempty"` |
| 55 | + PlaceOfBirth *Address `json:"placeOfBirth,omitempty"` |
| 56 | + Certificates *Certificate `json:"certificates,omitempty"` |
| 57 | + Nationality string `json:"nationality,omitempty"` |
| 58 | + Contacts []*Contact `json:"contacts,omitempty"` |
| 59 | +} |
| 60 | + |
| 61 | +type AssociationType string |
| 62 | + |
| 63 | +const ( |
| 64 | + AssociationType_LEGAL_REPRESENTATIVE AssociationType = "LEGAL_REPRESENTATIVE" |
| 65 | + AssociationType_UBO AssociationType = "UBO" |
| 66 | + AssociationType_CONTACT AssociationType = "CONTACT" |
| 67 | + AssociationType_DIRECTOR AssociationType = "DIRECTOR" |
| 68 | + AssociationType_AUTHORIZER AssociationType = "AUTHORIZER" |
| 69 | + AssociationType_BOARD_MEMBER AssociationType = "BOARD_MEMBER" |
| 70 | +) |
| 71 | + |
| 72 | +type WebSite struct { |
| 73 | + Name string `json:"name,omitempty"` |
| 74 | + Url string `json:"url,omitempty"` |
| 75 | + Desc string `json:"desc,omitempty"` |
| 76 | + Type string `json:"type,omitempty"` |
| 77 | +} |
| 78 | + |
| 79 | +type StockInfo struct { |
| 80 | + ListedRegion string `json:"listedRegion,omitempty"` |
| 81 | + TickerSymbol string `json:"tickerSymbol,omitempty"` |
| 82 | +} |
| 83 | + |
| 84 | +type Attachment struct { |
| 85 | + AttachmentType AttachmentType `json:"attachmentType,omitempty"` |
| 86 | + File string `json:"file,omitempty"` |
| 87 | + AttachmentName string `json:"attachmentName,omitempty"` |
| 88 | + FileKey string `json:"fileKey,omitempty"` |
| 89 | +} |
| 90 | + |
| 91 | +type CompanyUnitType string |
| 92 | + |
| 93 | +const ( |
| 94 | + CompanyUnitType_HEADQUARTER CompanyUnitType = "HEADQUARTER" |
| 95 | + CompanyUnitType_BRANCH CompanyUnitType = "BRANCH" |
| 96 | +) |
| 97 | + |
| 98 | +type CompanyType string |
| 99 | + |
| 100 | +const ( |
| 101 | + CompanyType_ENTERPRISE CompanyType = "ENTERPRISE" |
| 102 | + CompanyType_SOLE_PROPRIETORSHIP CompanyType = "SOLE_PROPRIETORSHIP" |
| 103 | + CompanyType_PARTNERSHIP CompanyType = "PARTNERSHIP" |
| 104 | + CompanyType_STATE_OWNED_BUSINESS CompanyType = "STATE_OWNED_BUSINESS" |
| 105 | + CompanyType_PRIVATELY_OWNED_BUSINESS CompanyType = "PRIVATELY_OWNED_BUSINESS" |
| 106 | + CompanyType_PUBLICLY_LISTED_BUSINESS CompanyType = "PUBLICLY_LISTED_BUSINESS" |
| 107 | + CompanyType_LTDA CompanyType = "LTDA" |
| 108 | + CompanyType_SA CompanyType = "SA" |
| 109 | + CompanyType_EIRELI CompanyType = "EIRELI" |
| 110 | + CompanyType_BOFC CompanyType = "BOFC" |
| 111 | + CompanyType_MEI CompanyType = "MEI" |
| 112 | + CompanyType_EI CompanyType = "EI" |
| 113 | +) |
| 114 | + |
| 115 | +type Contact struct { |
| 116 | + Type ContactType `json:"type,omitempty"` |
| 117 | + Info string `json:"info,omitempty"` |
| 118 | +} |
| 119 | + |
| 120 | +type ContactType string |
| 121 | + |
| 122 | +const ( |
| 123 | + ContactType_EMAIL ContactType = "EMAIL" |
| 124 | + ContactType_PHONE_NO ContactType = "PHONE_NO" |
| 125 | + ContactType_COMMERCIAL_PHONE_NO ContactType = "COMMERCIAL_PHONE_NO" |
| 126 | +) |
0 commit comments