diff --git a/v2core_account.go b/v2core_account.go index 83d2814c0f..bc0cd98a46 100644 --- a/v2core_account.go +++ b/v2core_account.go @@ -4400,7 +4400,7 @@ type V2CoreAccountIdentityIndividualRelationship struct { // Whether the individual is an owner of the Account's identity. Owner bool `json:"owner,omitempty"` // The percentage of the Account's identity that the individual owns. - PercentOwnership string `json:"percent_ownership,omitempty"` + PercentOwnership float64 `json:"percent_ownership,string,omitempty"` // Whether the individual is authorized as the primary representative of the Account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account. Representative bool `json:"representative,omitempty"` // The individual's title (e.g., CEO, Support Engineer). diff --git a/v2core_account_params.go b/v2core_account_params.go index 9f7181124d..75d2f8b588 100644 --- a/v2core_account_params.go +++ b/v2core_account_params.go @@ -1148,7 +1148,7 @@ type V2CoreAccountIdentityIndividualRelationshipParams struct { // Whether the person is an owner of the account's identity. Owner *bool `form:"owner" json:"owner,omitempty"` // The percent owned by the person of the account's legal entity. - PercentOwnership *string `form:"percent_ownership" json:"percent_ownership,omitempty"` + PercentOwnership *float64 `form:"percent_ownership,high_precision" json:"percent_ownership,string,omitempty"` // The person's title (e.g., CEO, Support Engineer). Title *string `form:"title" json:"title,omitempty"` } @@ -2458,7 +2458,7 @@ type V2CoreAccountCreateIdentityIndividualRelationshipParams struct { // Whether the person is an owner of the account's identity. Owner *bool `form:"owner" json:"owner,omitempty"` // The percent owned by the person of the account's legal entity. - PercentOwnership *string `form:"percent_ownership" json:"percent_ownership,omitempty"` + PercentOwnership *float64 `form:"percent_ownership,high_precision" json:"percent_ownership,string,omitempty"` // The person's title (e.g., CEO, Support Engineer). Title *string `form:"title" json:"title,omitempty"` } @@ -3782,7 +3782,7 @@ type V2CoreAccountUpdateIdentityIndividualRelationshipParams struct { // Whether the person is an owner of the account's identity. Owner *bool `form:"owner" json:"owner,omitempty"` // The percent owned by the person of the account's legal entity. - PercentOwnership *string `form:"percent_ownership" json:"percent_ownership,omitempty"` + PercentOwnership *float64 `form:"percent_ownership,high_precision" json:"percent_ownership,string,omitempty"` // The person's title (e.g., CEO, Support Engineer). Title *string `form:"title" json:"title,omitempty"` } diff --git a/v2core_accountperson.go b/v2core_accountperson.go index a7af6d71f0..0e11154442 100644 --- a/v2core_accountperson.go +++ b/v2core_accountperson.go @@ -332,7 +332,7 @@ type V2CoreAccountPersonRelationship struct { // Whether the individual is an owner of the Account's identity. Owner bool `json:"owner,omitempty"` // The percentage of the Account's identity that the individual owns. - PercentOwnership string `json:"percent_ownership,omitempty"` + PercentOwnership float64 `json:"percent_ownership,string,omitempty"` // Whether the individual is authorized as the primary representative of the Account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account. Representative bool `json:"representative,omitempty"` // The individual's title (e.g., CEO, Support Engineer). diff --git a/v2core_accounttoken_params.go b/v2core_accounttoken_params.go index 561ef928b6..4d97ed27ab 100644 --- a/v2core_accounttoken_params.go +++ b/v2core_accounttoken_params.go @@ -465,7 +465,7 @@ type V2CoreAccountTokenIdentityIndividualRelationshipParams struct { // Whether the person is an owner of the account's identity. Owner *bool `form:"owner" json:"owner,omitempty"` // The percent owned by the person of the account's legal entity. - PercentOwnership *string `form:"percent_ownership" json:"percent_ownership,omitempty"` + PercentOwnership *float64 `form:"percent_ownership,high_precision" json:"percent_ownership,string,omitempty"` // The person's title (e.g., CEO, Support Engineer). Title *string `form:"title" json:"title,omitempty"` } @@ -1069,7 +1069,7 @@ type V2CoreAccountTokenCreateIdentityIndividualRelationshipParams struct { // Whether the person is an owner of the account's identity. Owner *bool `form:"owner" json:"owner,omitempty"` // The percent owned by the person of the account's legal entity. - PercentOwnership *string `form:"percent_ownership" json:"percent_ownership,omitempty"` + PercentOwnership *float64 `form:"percent_ownership,high_precision" json:"percent_ownership,string,omitempty"` // The person's title (e.g., CEO, Support Engineer). Title *string `form:"title" json:"title,omitempty"` } diff --git a/v2coreaccounts_person_params.go b/v2coreaccounts_person_params.go index 7733fabf66..bd2e04e3d4 100644 --- a/v2coreaccounts_person_params.go +++ b/v2coreaccounts_person_params.go @@ -184,7 +184,7 @@ type V2CoreAccountsPersonRelationshipParams struct { // Indicates whether the person is an owner of the associated legal entity. Owner *bool `form:"owner" json:"owner,omitempty"` // The percentage of ownership the person has in the associated legal entity. - PercentOwnership *string `form:"percent_ownership" json:"percent_ownership,omitempty"` + PercentOwnership *float64 `form:"percent_ownership,high_precision" json:"percent_ownership,string,omitempty"` // Indicates whether the person is a representative of the associated legal entity. Representative *bool `form:"representative" json:"representative,omitempty"` // The title or position the person holds in the associated legal entity. @@ -480,7 +480,7 @@ type V2CoreAccountsPersonCreateRelationshipParams struct { // Indicates whether the person is an owner of the associated legal entity. Owner *bool `form:"owner" json:"owner,omitempty"` // The percentage of ownership the person has in the associated legal entity. - PercentOwnership *string `form:"percent_ownership" json:"percent_ownership,omitempty"` + PercentOwnership *float64 `form:"percent_ownership,high_precision" json:"percent_ownership,string,omitempty"` // Indicates whether the person is a representative of the associated legal entity. Representative *bool `form:"representative" json:"representative,omitempty"` // The title or position the person holds in the associated legal entity. @@ -790,7 +790,7 @@ type V2CoreAccountsPersonUpdateRelationshipParams struct { // Indicates whether the person is an owner of the associated legal entity. Owner *bool `form:"owner" json:"owner,omitempty"` // The percentage of ownership the person has in the associated legal entity. - PercentOwnership *string `form:"percent_ownership" json:"percent_ownership,omitempty"` + PercentOwnership *float64 `form:"percent_ownership,high_precision" json:"percent_ownership,string,omitempty"` // Indicates whether the person is a representative of the associated legal entity. Representative *bool `form:"representative" json:"representative,omitempty"` // The title or position the person holds in the associated legal entity. diff --git a/v2coreaccounts_persontoken_params.go b/v2coreaccounts_persontoken_params.go index 57a5472ef9..4671d3b672 100644 --- a/v2coreaccounts_persontoken_params.go +++ b/v2coreaccounts_persontoken_params.go @@ -169,7 +169,7 @@ type V2CoreAccountsPersonTokenRelationshipParams struct { // Indicates whether the person is an owner of the associated legal entity. Owner *bool `form:"owner" json:"owner,omitempty"` // The percentage of ownership the person has in the associated legal entity. - PercentOwnership *string `form:"percent_ownership" json:"percent_ownership,omitempty"` + PercentOwnership *float64 `form:"percent_ownership,high_precision" json:"percent_ownership,string,omitempty"` // Indicates whether the person is a representative of the associated legal entity. Representative *bool `form:"representative" json:"representative,omitempty"` // The title or position the person holds in the associated legal entity. @@ -459,7 +459,7 @@ type V2CoreAccountsPersonTokenCreateRelationshipParams struct { // Indicates whether the person is an owner of the associated legal entity. Owner *bool `form:"owner" json:"owner,omitempty"` // The percentage of ownership the person has in the associated legal entity. - PercentOwnership *string `form:"percent_ownership" json:"percent_ownership,omitempty"` + PercentOwnership *float64 `form:"percent_ownership,high_precision" json:"percent_ownership,string,omitempty"` // Indicates whether the person is a representative of the associated legal entity. Representative *bool `form:"representative" json:"representative,omitempty"` // The title or position the person holds in the associated legal entity.