Skip to content

Commit d842481

Browse files
authored
feat(account): add qualification field to project response (scaleway#2510)
1 parent 3dbc4df commit d842481

File tree

1 file changed

+56
-53
lines changed

1 file changed

+56
-53
lines changed

api/account/v3/account_sdk.go

Lines changed: 56 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -574,28 +574,6 @@ func (enum *QualificationShareDataSubUseCase) UnmarshalJSON(data []byte) error {
574574
return nil
575575
}
576576

577-
// Contract: contract.
578-
type Contract struct {
579-
// ID: ID of the contract.
580-
ID string `json:"id"`
581-
582-
// Type: the type of the contract.
583-
// Default value: unknown_type
584-
Type ContractType `json:"type"`
585-
586-
// Name: the name of the contract.
587-
Name string `json:"name"`
588-
589-
// Version: the version of the contract.
590-
Version uint32 `json:"version"`
591-
592-
// CreatedAt: the creation date of the contract.
593-
CreatedAt *time.Time `json:"created_at"`
594-
595-
// UpdatedAt: the last modification date of the contract.
596-
UpdatedAt *time.Time `json:"updated_at"`
597-
}
598-
599577
// QualificationAiMachine: qualification ai machine.
600578
type QualificationAiMachine struct {
601579
// SubUseCase: default value: unknown_sub_use_case
@@ -650,46 +628,26 @@ type QualificationShareData struct {
650628
SubUseCase QualificationShareDataSubUseCase `json:"sub_use_case"`
651629
}
652630

653-
// ContractSignature: contract signature.
654-
type ContractSignature struct {
655-
// ID: ID of the contract signature.
631+
// Contract: contract.
632+
type Contract struct {
633+
// ID: ID of the contract.
656634
ID string `json:"id"`
657635

658-
// OrganizationID: the Organization ID which signed the contract.
659-
OrganizationID string `json:"organization_id"`
660-
661-
// CreatedAt: the creation date of the contract signature.
662-
CreatedAt *time.Time `json:"created_at"`
663-
664-
// SignedAt: the signing date of the contract signature.
665-
SignedAt *time.Time `json:"signed_at"`
666-
667-
// ExpiresAt: the expiration date of the contract signature.
668-
ExpiresAt *time.Time `json:"expires_at"`
669-
670-
// Contract: the contract signed.
671-
Contract *Contract `json:"contract"`
672-
}
673-
674-
// Project: project.
675-
type Project struct {
676-
// ID: ID of the Project.
677-
ID string `json:"id"`
636+
// Type: the type of the contract.
637+
// Default value: unknown_type
638+
Type ContractType `json:"type"`
678639

679-
// Name: name of the Project.
640+
// Name: the name of the contract.
680641
Name string `json:"name"`
681642

682-
// OrganizationID: organization ID of the Project.
683-
OrganizationID string `json:"organization_id"`
643+
// Version: the version of the contract.
644+
Version uint32 `json:"version"`
684645

685-
// CreatedAt: creation date of the Project.
646+
// CreatedAt: the creation date of the contract.
686647
CreatedAt *time.Time `json:"created_at"`
687648

688-
// UpdatedAt: update date of the Project.
649+
// UpdatedAt: the last modification date of the contract.
689650
UpdatedAt *time.Time `json:"updated_at"`
690-
691-
// Description: description of the Project.
692-
Description string `json:"description"`
693651
}
694652

695653
// Qualification: qualification.
@@ -726,6 +684,51 @@ type Qualification struct {
726684
OtherUseCase *QualificationOtherUseCase `json:"other_use_case,omitempty"`
727685
}
728686

687+
// ContractSignature: contract signature.
688+
type ContractSignature struct {
689+
// ID: ID of the contract signature.
690+
ID string `json:"id"`
691+
692+
// OrganizationID: the Organization ID which signed the contract.
693+
OrganizationID string `json:"organization_id"`
694+
695+
// CreatedAt: the creation date of the contract signature.
696+
CreatedAt *time.Time `json:"created_at"`
697+
698+
// SignedAt: the signing date of the contract signature.
699+
SignedAt *time.Time `json:"signed_at"`
700+
701+
// ExpiresAt: the expiration date of the contract signature.
702+
ExpiresAt *time.Time `json:"expires_at"`
703+
704+
// Contract: the contract signed.
705+
Contract *Contract `json:"contract"`
706+
}
707+
708+
// Project: project.
709+
type Project struct {
710+
// ID: ID of the Project.
711+
ID string `json:"id"`
712+
713+
// Name: name of the Project.
714+
Name string `json:"name"`
715+
716+
// OrganizationID: organization ID of the Project.
717+
OrganizationID string `json:"organization_id"`
718+
719+
// CreatedAt: creation date of the Project.
720+
CreatedAt *time.Time `json:"created_at"`
721+
722+
// UpdatedAt: update date of the Project.
723+
UpdatedAt *time.Time `json:"updated_at"`
724+
725+
// Description: description of the Project.
726+
Description string `json:"description"`
727+
728+
// Qualification: qualification of the Project.
729+
Qualification *Qualification `json:"qualification"`
730+
}
731+
729732
// CheckContractSignatureResponse: check contract signature response.
730733
type CheckContractSignatureResponse struct {
731734
// Created: whether a signature has been requested for this contract.

0 commit comments

Comments
 (0)