-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from alipay/feature-update-p1
update-p1
- Loading branch information
Showing
62 changed files
with
1,393 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
``` | ||
Language:GO | ||
GO version:1.22.5+ | ||
Tags:v1.2.0 | ||
Tags:v1.2.1 | ||
Copyright:Ant financial services group | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package model | ||
|
||
type AccountBalance struct { | ||
AccountNo string `json:"accountNo,omitempty"` | ||
Currency string `json:"currency,omitempty"` | ||
AvailableBalance *Amount `json:"availableBalance,omitempty"` | ||
FrozenBalance *Amount `json:"frozenBalance,omitempty"` | ||
TotalBalance *Amount `json:"totalBalance,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package model | ||
|
||
type AttachmentType string | ||
|
||
const ( | ||
AttachmentType_SIGNATURE_AUTHORIZATION_LETTER AttachmentType = "SIGNATURE_AUTHORIZATION_LETTER" | ||
AttachmentType_ARTICLES_OF_ASSOCIATION AttachmentType = "ARTICLES_OF_ASSOCIATION" | ||
AttachmentType_LOGO AttachmentType = "LOGO" | ||
|
||
AttachmentType_AUTHORIZER_SIGNATURE_CONFIRMATION_LETTER AttachmentType = "AUTHORIZER_SIGNATURE_CONFIRMATION_LETTER" | ||
AttachmentType_ASSOCIATION_ARTICLE AttachmentType = "ASSOCIATION_ARTICLE" | ||
AttachmentType_FINANCIAL_REPORT AttachmentType = "FINANCIAL_REPORT" | ||
AttachmentType_OWNERSHIP_STRUCTURE_PIC AttachmentType = "OWNERSHIP_STRUCTURE_PIC" | ||
AttachmentType_ADDRESS_PROOF AttachmentType = "ADDRESS_PROOF" | ||
AttachmentType_UBO_PROVE AttachmentType = "UBO_PROVE" | ||
AttachmentType_ENTERPRISE_REGISTRATION AttachmentType = "ENTERPRISE_REGISTRATION" | ||
AttachmentType_LICENSE_INFO AttachmentType = "LICENSE_INFO" | ||
AttachmentType_ID_CARD AttachmentType = "ID_CARD" | ||
AttachmentType_PASSPORT AttachmentType = "PASSPORT" | ||
AttachmentType_DRIVING_LICENSE AttachmentType = "DRIVING_LICENSE" | ||
AttachmentType_CPF AttachmentType = "CPF" | ||
AttachmentType_CNPJ AttachmentType = "CNPJ" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package model | ||
|
||
type AuthorizationError struct { | ||
ErrorCode string `json:"errorCode,omitempty"` | ||
ErrorMessage string `json:"errorMessage,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package model | ||
|
||
type DisputeEvidenceFormatType string | ||
|
||
const ( | ||
DisputeEvidenceFormatType_PDF DisputeEvidenceFormatType = "PDF" | ||
DisputeEvidenceFormatType_WORD DisputeEvidenceFormatType = "WORD" | ||
) | ||
|
||
type DisputeEvidenceType string | ||
|
||
const ( | ||
DisputeEvidenceType_DISPUTE_EVIDENCE_TEMPLATE DisputeEvidenceType = "DISPUTE_EVIDENCE_TEMPLATE" | ||
DisputeEvidenceType_DISPUTE_EVIDENCE_FILE DisputeEvidenceType = "DISPUTE_EVIDENCE_FILE" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
package model | ||
|
||
type MerchantInfo struct { | ||
ReferenceMerchantId string `json:"referenceMerchantId,omitempty"` | ||
LoginId string `json:"loginId,omitempty"` | ||
LegalEntityType LegalEntityType `json:"legalEntityType,omitempty"` | ||
Company *Company `json:"company,omitempty"` | ||
BusinessInfo *BusinessInfo `json:"businessInfo,omitempty"` | ||
EntityAssociations []*EntityAssociations `json:"entityAssociations,omitempty"` | ||
} | ||
|
||
type LegalEntityType string | ||
|
||
const ( | ||
LegalEntityType_Company LegalEntityType = "COMPANY" | ||
LegalEntityType_INDIVIDUAL LegalEntityType = "INDIVIDUAL" | ||
) | ||
|
||
type Company struct { | ||
LegalName string `json:"legalName,omitempty"` | ||
CompanyType CompanyType `json:"companyType,omitempty"` | ||
RegisteredAddress *Address `json:"registeredAddress,omitempty"` | ||
OperatingAddress *Address `json:"operatingAddress,omitempty"` | ||
IncorporationDate string `json:"incorporationDate,omitempty"` | ||
StockInfo *StockInfo `json:"stockInfo,omitempty"` | ||
Certificates *Certificate `json:"certificates,omitempty"` | ||
Attachments []*Attachment `json:"attachments,omitempty"` | ||
CompanyUnit *CompanyUnitType `json:"companyUnit,omitempty"` | ||
Contacts []*Contact `json:"contacts,omitempty"` | ||
VatNo string `json:"vatNo,omitempty"` | ||
} | ||
|
||
type BusinessInfo struct { | ||
Mcc string `json:"mcc,omitempty"` | ||
Websites []*WebSite `json:"websites,omitempty"` | ||
EnglishName string `json:"englishName,omitempty"` | ||
DoingBusinessAs string `json:"doingBusinessAs,omitempty"` | ||
MainSalesCountry string `json:"mainSalesCountry,omitempty"` | ||
AppName string `json:"appName,omitempty"` | ||
ServiceDescription string `json:"serviceDescription,omitempty"` | ||
} | ||
|
||
type EntityAssociations struct { | ||
AssociationType AssociationType `json:"associationType,omitempty"` | ||
LegalEntityType LegalEntityType `json:"legalEntityType,omitempty"` | ||
Company *Company `json:"company,omitempty"` | ||
Individual *Individual `json:"individual,omitempty"` | ||
ShareholdingRatio string `json:"shareholdingRatio,omitempty"` | ||
} | ||
|
||
type Individual struct { | ||
Name *UserName `json:"name,omitempty"` | ||
EnglishName *UserName `json:"englishName,omitempty"` | ||
DateOfBirth string `json:"dateOfBirth,omitempty"` | ||
PlaceOfBirth *Address `json:"placeOfBirth,omitempty"` | ||
Certificates *Certificate `json:"certificates,omitempty"` | ||
Nationality string `json:"nationality,omitempty"` | ||
Contacts []*Contact `json:"contacts,omitempty"` | ||
} | ||
|
||
type AssociationType string | ||
|
||
const ( | ||
AssociationType_LEGAL_REPRESENTATIVE AssociationType = "LEGAL_REPRESENTATIVE" | ||
AssociationType_UBO AssociationType = "UBO" | ||
AssociationType_CONTACT AssociationType = "CONTACT" | ||
AssociationType_DIRECTOR AssociationType = "DIRECTOR" | ||
AssociationType_AUTHORIZER AssociationType = "AUTHORIZER" | ||
AssociationType_BOARD_MEMBER AssociationType = "BOARD_MEMBER" | ||
) | ||
|
||
type WebSite struct { | ||
Name string `json:"name,omitempty"` | ||
Url string `json:"url,omitempty"` | ||
Desc string `json:"desc,omitempty"` | ||
Type string `json:"type,omitempty"` | ||
} | ||
|
||
type StockInfo struct { | ||
ListedRegion string `json:"listedRegion,omitempty"` | ||
TickerSymbol string `json:"tickerSymbol,omitempty"` | ||
} | ||
|
||
type Attachment struct { | ||
AttachmentType AttachmentType `json:"attachmentType,omitempty"` | ||
File string `json:"file,omitempty"` | ||
AttachmentName string `json:"attachmentName,omitempty"` | ||
FileKey string `json:"fileKey,omitempty"` | ||
} | ||
|
||
type CompanyUnitType string | ||
|
||
const ( | ||
CompanyUnitType_HEADQUARTER CompanyUnitType = "HEADQUARTER" | ||
CompanyUnitType_BRANCH CompanyUnitType = "BRANCH" | ||
) | ||
|
||
type CompanyType string | ||
|
||
const ( | ||
CompanyType_ENTERPRISE CompanyType = "ENTERPRISE" | ||
CompanyType_SOLE_PROPRIETORSHIP CompanyType = "SOLE_PROPRIETORSHIP" | ||
CompanyType_PARTNERSHIP CompanyType = "PARTNERSHIP" | ||
CompanyType_STATE_OWNED_BUSINESS CompanyType = "STATE_OWNED_BUSINESS" | ||
CompanyType_PRIVATELY_OWNED_BUSINESS CompanyType = "PRIVATELY_OWNED_BUSINESS" | ||
CompanyType_PUBLICLY_LISTED_BUSINESS CompanyType = "PUBLICLY_LISTED_BUSINESS" | ||
CompanyType_LTDA CompanyType = "LTDA" | ||
CompanyType_SA CompanyType = "SA" | ||
CompanyType_EIRELI CompanyType = "EIRELI" | ||
CompanyType_BOFC CompanyType = "BOFC" | ||
CompanyType_MEI CompanyType = "MEI" | ||
CompanyType_EI CompanyType = "EI" | ||
) | ||
|
||
type Contact struct { | ||
Type ContactType `json:"type,omitempty"` | ||
Info string `json:"info,omitempty"` | ||
} | ||
|
||
type ContactType string | ||
|
||
const ( | ||
ContactType_EMAIL ContactType = "EMAIL" | ||
ContactType_PHONE_NO ContactType = "PHONE_NO" | ||
ContactType_COMMERCIAL_PHONE_NO ContactType = "COMMERCIAL_PHONE_NO" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package model | ||
|
||
type PaymentDetail struct { | ||
Amount *Amount `json:"amount,omitempty"` | ||
PaymentMethod *PaymentMethod `json:"paymentMethod,omitempty"` | ||
} | ||
|
||
type AuthorizationPhase string | ||
|
||
const ( | ||
AuthorizationPhase_PRE_AUTHORIZATION AuthorizationPhase = "PRE_AUTHORIZATION" | ||
AuthorizationPhase_POST_AUTHORIZATION AuthorizationPhase = "POST_AUTHORIZATION" | ||
) |
Oops, something went wrong.