Documentation
¶
Index ¶
- func Bool(b bool) param.Opt[bool]
- func BoolPtr(v bool) *bool
- func DefaultClientOptions() []option.RequestOption
- func File(rdr io.Reader, filename string, contentType string) file
- func Float(f float64) param.Opt[float64]
- func FloatPtr(v float64) *float64
- func Int(i int64) param.Opt[int64]
- func IntPtr(v int64) *int64
- func Opt[T comparable](v T) param.Opt[T]
- func Ptr[T any](v T) *T
- func String(s string) param.Opt[string]
- func StringPtr(v string) *string
- func Time(t time.Time) param.Opt[time.Time]
- func TimePtr(v time.Time) *time.Time
- type Client
- func (r *Client) Delete(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, ...) error
- func (r *Client) Get(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Patch(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Post(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Put(ctx context.Context, path string, params any, res any, ...) error
- type Document
- type DocumentGetSummariesResponse
- type DocumentList
- type DocumentListParams
- type DocumentNewParams
- type DocumentService
- func (r *DocumentService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
- func (r *DocumentService) Download(ctx context.Context, id string, opts ...option.RequestOption) (res *http.Response, err error)
- func (r *DocumentService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Document, err error)
- func (r *DocumentService) GetSummaries(ctx context.Context, id string, opts ...option.RequestOption) (res *DocumentGetSummariesResponse, err error)
- func (r *DocumentService) List(ctx context.Context, query DocumentListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[Document], err error)
- func (r *DocumentService) ListAutoPaging(ctx context.Context, query DocumentListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[Document]
- func (r *DocumentService) New(ctx context.Context, body DocumentNewParams, opts ...option.RequestOption) (res *Document, err error)
- func (r *DocumentService) Update(ctx context.Context, id string, body DocumentUpdateParams, ...) (res *Document, err error)
- type DocumentSummary
- type DocumentSummaryDownloadParams
- type DocumentSummaryDownloadParamsFormat
- type DocumentSummaryEntryMode
- type DocumentSummaryFormat
- type DocumentSummaryListParams
- type DocumentSummaryService
- func (r *DocumentSummaryService) Download(ctx context.Context, id string, query DocumentSummaryDownloadParams, ...) (res *http.Response, err error)
- func (r *DocumentSummaryService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *DocumentSummary, err error)
- func (r *DocumentSummaryService) List(ctx context.Context, query DocumentSummaryListParams, ...) (res *pagination.CursorPagination[DocumentSummary], err error)
- func (r *DocumentSummaryService) ListAutoPaging(ctx context.Context, query DocumentSummaryListParams, ...) *pagination.CursorPaginationAutoPager[DocumentSummary]
- func (r *DocumentSummaryService) Update(ctx context.Context, id string, body DocumentSummaryUpdateParams, ...) (res *DocumentSummary, err error)
- type DocumentSummaryUpdateParams
- type DocumentType
- type DocumentUpdateParams
- type Entity
- type EntityInEstateStatus
- type EntityKind
- type EntityList
- type EntityListParams
- type EntityService
- func (r *EntityService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
- func (r *EntityService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Entity, err error)
- func (r *EntityService) List(ctx context.Context, query EntityListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[Entity], err error)
- func (r *EntityService) ListAutoPaging(ctx context.Context, query EntityListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[Entity]
- type EntityStage
- type EntityValuationNewParams
- type EntityValuationNewParamsDirectlyHeldAsset
- type EntityValuationService
- type Error
- type Household
- type HouseholdListDocumentsParams
- type HouseholdListEntitiesParams
- type HouseholdListIndividualsParams
- type HouseholdListParams
- type HouseholdNewParams
- type HouseholdNewParamsPrimaryIndividual
- type HouseholdService
- func (r *HouseholdService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
- func (r *HouseholdService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Household, err error)
- func (r *HouseholdService) List(ctx context.Context, query HouseholdListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[Household], err error)
- func (r *HouseholdService) ListAutoPaging(ctx context.Context, query HouseholdListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[Household]
- func (r *HouseholdService) ListDocuments(ctx context.Context, id string, query HouseholdListDocumentsParams, ...) (res *pagination.CursorPagination[Document], err error)
- func (r *HouseholdService) ListDocumentsAutoPaging(ctx context.Context, id string, query HouseholdListDocumentsParams, ...) *pagination.CursorPaginationAutoPager[Document]
- func (r *HouseholdService) ListEntities(ctx context.Context, id string, query HouseholdListEntitiesParams, ...) (res *pagination.CursorPagination[Entity], err error)
- func (r *HouseholdService) ListEntitiesAutoPaging(ctx context.Context, id string, query HouseholdListEntitiesParams, ...) *pagination.CursorPaginationAutoPager[Entity]
- func (r *HouseholdService) ListIndividuals(ctx context.Context, id string, query HouseholdListIndividualsParams, ...) (res *pagination.CursorPagination[Individual], err error)
- func (r *HouseholdService) ListIndividualsAutoPaging(ctx context.Context, id string, query HouseholdListIndividualsParams, ...) *pagination.CursorPaginationAutoPager[Individual]
- func (r *HouseholdService) New(ctx context.Context, body HouseholdNewParams, opts ...option.RequestOption) (res *Household, err error)
- func (r *HouseholdService) Update(ctx context.Context, id string, body HouseholdUpdateParams, ...) (res *Household, err error)
- type HouseholdUpdateParams
- type Individual
- type IndividualList
- type IndividualListParams
- type IndividualNewParams
- type IndividualService
- func (r *IndividualService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
- func (r *IndividualService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Individual, err error)
- func (r *IndividualService) List(ctx context.Context, query IndividualListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[Individual], err error)
- func (r *IndividualService) ListAutoPaging(ctx context.Context, query IndividualListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[Individual]
- func (r *IndividualService) New(ctx context.Context, body IndividualNewParams, opts ...option.RequestOption) (res *Individual, err error)
- func (r *IndividualService) Update(ctx context.Context, id string, body IndividualUpdateParams, ...) (res *Individual, err error)
- type IndividualUpdateParams
- type PageInfo
- type User
- type UserListParams
- type UserService
- func (r *UserService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *User, err error)
- func (r *UserService) List(ctx context.Context, query UserListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[User], err error)
- func (r *UserService) ListAutoPaging(ctx context.Context, query UserListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[User]
- type Valuation
- type ValuationDirectlyHeldAsset
- type ValuationDirectlyHeldAssetAssetClass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClientOptions ¶
func DefaultClientOptions() []option.RequestOption
DefaultClientOptions read from the environment (CLIENT_ID, CLIENT_SECRET, WITHLUMINARY_SUBDOMAIN, LUMINARY_BASE_URL). This should be used to initialize new clients.
func Opt ¶
func Opt[T comparable](v T) param.Opt[T]
Types ¶
type Client ¶
type Client struct {
Options []option.RequestOption
DocumentSummaries DocumentSummaryService
Documents DocumentService
Entities EntityService
Households HouseholdService
Individuals IndividualService
Users UserService
}
Client creates a struct with services and top level methods that help with interacting with the luminary API. You should not instantiate this client directly, and instead use the NewClient method instead.
func NewClient ¶
func NewClient(opts ...option.RequestOption) (r Client)
NewClient generates a new client with the default option read from the environment (CLIENT_ID, CLIENT_SECRET, WITHLUMINARY_SUBDOMAIN, LUMINARY_BASE_URL). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.
func (*Client) Delete ¶
func (r *Client) Delete(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error
Delete makes a DELETE request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (*Client) Execute ¶
func (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, opts ...option.RequestOption) error
Execute makes a request with the given context, method, URL, request params, response, and request options. This is useful for hitting undocumented endpoints while retaining the base URL, auth, retries, and other options from the client.
If a byte slice or an io.Reader is supplied to params, it will be used as-is for the request body.
The params is by default serialized into the body using encoding/json. If your type implements a MarshalJSON function, it will be used instead to serialize the request. If a URLQuery method is implemented, the returned url.Values will be used as query strings to the url.
If your params struct uses param.Field, you must provide either [MarshalJSON], [URLQuery], and/or [MarshalForm] functions. It is undefined behavior to use a struct uses param.Field without specifying how it is serialized.
Any "…Params" object defined in this library can be used as the request argument. Note that 'path' arguments will not be forwarded into the url.
The response body will be deserialized into the res variable, depending on its type:
- A pointer to a *http.Response is populated by the raw response.
- A pointer to a byte array will be populated with the contents of the request body.
- A pointer to any other type uses this library's default JSON decoding, which respects UnmarshalJSON if it is defined on the type.
- A nil value will not read the response body.
For even greater flexibility, see option.WithResponseInto and option.WithResponseBodyInto.
func (*Client) Get ¶
func (r *Client) Get(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error
Get makes a GET request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (*Client) Patch ¶
func (r *Client) Patch(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error
Patch makes a PATCH request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
type Document ¶
type Document struct {
// Unique identifier with document\_ prefix
ID string `json:"id" api:"required"`
// Timestamp when the document was created
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
// Household ID this document belongs to
HouseholdID string `json:"household_id" api:"required"`
// Display name of the document
Name string `json:"name" api:"required"`
// Type of document
//
// Any of "GRAT_DESIGN_SUMMARY", "GENERATED_PRESENTATION", "ASSET_VALUATION",
// "SIGNED_TRUST_DOCUMENT", "TRUST_AMENDMENT", "TRANSFER_CONFIRMATION",
// "EXISTING_REMAINDER_TRUST_DOCUMENT", "BALANCE_SHEET", "WILL", "WILL_CODICIL",
// "POWER_OF_ATTORNEY", "ASSIGNMENT_OF_INTEREST",
// "ASSIGNMENT_OF_TANGIBLE_PROPERTY", "LOAN_NOTE_AGREEMENT",
// "ARTICLES_OF_INCORPORATION", "OPERATING_AGREEMENT", "PARTNERSHIP_AGREEMENT",
// "ACCOUNT_DOCUMENTATION_STATEMENT", "TAX_ID_CONFIRMATION", "GIFT_TAX_RETURN",
// "INCOME_TAX_RETURN", "TAX_RECEIPT", "TAX_FILING", "CORPORATE_BYLAWS",
// "LLC_AGREEMENT", "LLC_AGREEMENT_AMENDMENT", "OPERATING_AGREEMENT_AMENDMENT",
// "PARTNERSHIP_AGREEMENT_AMENDMENT", "SHAREHOLDERS_AGREEMENT",
// "STATE_BUSINESS_FILING", "LOGGED_CONTRIBUTION", "LOGGED_DISTRIBUTION",
// "INSURANCE_POLICY", "CRUMMEY_LETTER", "INSURANCE_PREMIUM_PAYMENT",
// "BENEFICIAL_OWNERSHIP_INFORMATION_REPORT", "FINCEN_FILING", "HEALTHCARE_PROXY",
// "LIVING_WILL", "DRIVERS_LICENSE", "PASSPORT", "DEED", "OTHER".
Type DocumentType `json:"type" api:"required"`
// Timestamp when the document was last updated
UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
// Whether this document should be used for AI suggestions
EnableAISuggestions bool `json:"enable_ai_suggestions"`
// Entity ID if this document is owned by an entity
EntityID string `json:"entity_id" api:"nullable"`
// Individual ID if this document is associated with an individual
IndividualID string `json:"individual_id" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
HouseholdID respjson.Field
Name respjson.Field
Type respjson.Field
UpdatedAt respjson.Field
EnableAISuggestions respjson.Field
EntityID respjson.Field
IndividualID respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (*Document) UnmarshalJSON ¶
type DocumentGetSummariesResponse ¶
type DocumentGetSummariesResponse struct {
Data []DocumentSummary `json:"data" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Data respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (DocumentGetSummariesResponse) RawJSON ¶
func (r DocumentGetSummariesResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*DocumentGetSummariesResponse) UnmarshalJSON ¶
func (r *DocumentGetSummariesResponse) UnmarshalJSON(data []byte) error
type DocumentList ¶
type DocumentList struct {
Data []Document `json:"data" api:"required"`
PageInfo PageInfo `json:"page_info" api:"required"`
// Total number of items matching the query (across all pages)
TotalCount int64 `json:"total_count" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Data respjson.Field
PageInfo respjson.Field
TotalCount respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (DocumentList) RawJSON ¶
func (r DocumentList) RawJSON() string
Returns the unmodified JSON received from the API
func (*DocumentList) UnmarshalJSON ¶
func (r *DocumentList) UnmarshalJSON(data []byte) error
type DocumentListParams ¶
type DocumentListParams struct {
// Cursor for forward pagination. Returns items after this cursor.
After param.Opt[string] `query:"after,omitzero" json:"-"`
// Cursor for backward pagination. Returns items before this cursor.
Before param.Opt[string] `query:"before,omitzero" json:"-"`
// Filter documents by household ID
HouseholdID param.Opt[string] `query:"household_id,omitzero" json:"-"`
// Maximum number of items to return
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// Filter by document type
//
// Any of "GRAT_DESIGN_SUMMARY", "GENERATED_PRESENTATION", "ASSET_VALUATION",
// "SIGNED_TRUST_DOCUMENT", "TRUST_AMENDMENT", "TRANSFER_CONFIRMATION",
// "EXISTING_REMAINDER_TRUST_DOCUMENT", "BALANCE_SHEET", "WILL", "WILL_CODICIL",
// "POWER_OF_ATTORNEY", "ASSIGNMENT_OF_INTEREST",
// "ASSIGNMENT_OF_TANGIBLE_PROPERTY", "LOAN_NOTE_AGREEMENT",
// "ARTICLES_OF_INCORPORATION", "OPERATING_AGREEMENT", "PARTNERSHIP_AGREEMENT",
// "ACCOUNT_DOCUMENTATION_STATEMENT", "TAX_ID_CONFIRMATION", "GIFT_TAX_RETURN",
// "INCOME_TAX_RETURN", "TAX_RECEIPT", "TAX_FILING", "CORPORATE_BYLAWS",
// "LLC_AGREEMENT", "LLC_AGREEMENT_AMENDMENT", "OPERATING_AGREEMENT_AMENDMENT",
// "PARTNERSHIP_AGREEMENT_AMENDMENT", "SHAREHOLDERS_AGREEMENT",
// "STATE_BUSINESS_FILING", "LOGGED_CONTRIBUTION", "LOGGED_DISTRIBUTION",
// "INSURANCE_POLICY", "CRUMMEY_LETTER", "INSURANCE_PREMIUM_PAYMENT",
// "BENEFICIAL_OWNERSHIP_INFORMATION_REPORT", "FINCEN_FILING", "HEALTHCARE_PROXY",
// "LIVING_WILL", "DRIVERS_LICENSE", "PASSPORT", "DEED", "OTHER".
Type DocumentType `query:"type,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (DocumentListParams) URLQuery ¶
func (r DocumentListParams) URLQuery() (v url.Values, err error)
URLQuery serializes DocumentListParams's query parameters as `url.Values`.
type DocumentNewParams ¶
type DocumentNewParams struct {
// The document file to upload
File io.Reader `json:"file,omitzero" api:"required" format:"binary"`
// Household ID this document belongs to
HouseholdID string `json:"household_id" api:"required"`
// Display name of the document
Name string `json:"name" api:"required"`
// Type of document
//
// Any of "GRAT_DESIGN_SUMMARY", "GENERATED_PRESENTATION", "ASSET_VALUATION",
// "SIGNED_TRUST_DOCUMENT", "TRUST_AMENDMENT", "TRANSFER_CONFIRMATION",
// "EXISTING_REMAINDER_TRUST_DOCUMENT", "BALANCE_SHEET", "WILL", "WILL_CODICIL",
// "POWER_OF_ATTORNEY", "ASSIGNMENT_OF_INTEREST",
// "ASSIGNMENT_OF_TANGIBLE_PROPERTY", "LOAN_NOTE_AGREEMENT",
// "ARTICLES_OF_INCORPORATION", "OPERATING_AGREEMENT", "PARTNERSHIP_AGREEMENT",
// "ACCOUNT_DOCUMENTATION_STATEMENT", "TAX_ID_CONFIRMATION", "GIFT_TAX_RETURN",
// "INCOME_TAX_RETURN", "TAX_RECEIPT", "TAX_FILING", "CORPORATE_BYLAWS",
// "LLC_AGREEMENT", "LLC_AGREEMENT_AMENDMENT", "OPERATING_AGREEMENT_AMENDMENT",
// "PARTNERSHIP_AGREEMENT_AMENDMENT", "SHAREHOLDERS_AGREEMENT",
// "STATE_BUSINESS_FILING", "LOGGED_CONTRIBUTION", "LOGGED_DISTRIBUTION",
// "INSURANCE_POLICY", "CRUMMEY_LETTER", "INSURANCE_PREMIUM_PAYMENT",
// "BENEFICIAL_OWNERSHIP_INFORMATION_REPORT", "FINCEN_FILING", "HEALTHCARE_PROXY",
// "LIVING_WILL", "DRIVERS_LICENSE", "PASSPORT", "DEED", "OTHER".
Type DocumentType `json:"type,omitzero" api:"required"`
// Whether this document should be used for AI suggestions
EnableAISuggestions param.Opt[bool] `json:"enable_ai_suggestions,omitzero"`
// Entity ID if this document is owned by an entity
EntityID param.Opt[string] `json:"entity_id,omitzero"`
// Individual ID if associated with an individual
IndividualID param.Opt[string] `json:"individual_id,omitzero"`
// contains filtered or unexported fields
}
func (DocumentNewParams) MarshalMultipart ¶
func (r DocumentNewParams) MarshalMultipart() (data []byte, contentType string, err error)
type DocumentService ¶
type DocumentService struct {
Options []option.RequestOption
}
DocumentService contains methods and other services that help with interacting with the luminary API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDocumentService method instead.
func NewDocumentService ¶
func NewDocumentService(opts ...option.RequestOption) (r DocumentService)
NewDocumentService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DocumentService) Delete ¶
func (r *DocumentService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
Soft delete a document (marks as deleted but preserves data)
func (*DocumentService) Download ¶
func (r *DocumentService) Download(ctx context.Context, id string, opts ...option.RequestOption) (res *http.Response, err error)
Download the binary content of the document file
func (*DocumentService) Get ¶
func (r *DocumentService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Document, err error)
Retrieve document metadata
func (*DocumentService) GetSummaries ¶
func (r *DocumentService) GetSummaries(ctx context.Context, id string, opts ...option.RequestOption) (res *DocumentGetSummariesResponse, err error)
Retrieve all summaries associated with a specific document
func (*DocumentService) List ¶
func (r *DocumentService) List(ctx context.Context, query DocumentListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[Document], err error)
Retrieve a paginated list of documents using cursor-based pagination
func (*DocumentService) ListAutoPaging ¶
func (r *DocumentService) ListAutoPaging(ctx context.Context, query DocumentListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[Document]
Retrieve a paginated list of documents using cursor-based pagination
func (*DocumentService) New ¶
func (r *DocumentService) New(ctx context.Context, body DocumentNewParams, opts ...option.RequestOption) (res *Document, err error)
Create a new document with file content
func (*DocumentService) Update ¶
func (r *DocumentService) Update(ctx context.Context, id string, body DocumentUpdateParams, opts ...option.RequestOption) (res *Document, err error)
Update document metadata only
type DocumentSummary ¶
type DocumentSummary struct {
// Unique identifier for the document summary
ID string `json:"id" api:"required"`
// Timestamp when the summary was created
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
// Display name for the summary
DisplayName string `json:"display_name" api:"required"`
// ID of the document this summary belongs to
DocumentID string `json:"document_id" api:"required"`
// ID of the household this summary belongs to
HouseholdID string `json:"household_id" api:"required"`
// The summary text content
Summary string `json:"summary" api:"required"`
// Timestamp when the summary was last updated
UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
// Indicates if the summary was AI-generated or user-entered
//
// Any of "AI_AUTO", "USER".
EntryMode DocumentSummaryEntryMode `json:"entry_mode"`
// Format of the summary content
//
// Any of "MARKDOWN", "PLAIN_TEXT".
SummaryFormat DocumentSummaryFormat `json:"summary_format"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
DisplayName respjson.Field
DocumentID respjson.Field
HouseholdID respjson.Field
Summary respjson.Field
UpdatedAt respjson.Field
EntryMode respjson.Field
SummaryFormat respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (DocumentSummary) RawJSON ¶
func (r DocumentSummary) RawJSON() string
Returns the unmodified JSON received from the API
func (*DocumentSummary) UnmarshalJSON ¶
func (r *DocumentSummary) UnmarshalJSON(data []byte) error
type DocumentSummaryDownloadParams ¶
type DocumentSummaryDownloadParams struct {
// Output format for the download
//
// Any of "pdf".
Format DocumentSummaryDownloadParamsFormat `query:"format,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (DocumentSummaryDownloadParams) URLQuery ¶
func (r DocumentSummaryDownloadParams) URLQuery() (v url.Values, err error)
URLQuery serializes DocumentSummaryDownloadParams's query parameters as `url.Values`.
type DocumentSummaryDownloadParamsFormat ¶
type DocumentSummaryDownloadParamsFormat string
Output format for the download
const (
DocumentSummaryDownloadParamsFormatPdf DocumentSummaryDownloadParamsFormat = "pdf"
)
type DocumentSummaryEntryMode ¶
type DocumentSummaryEntryMode string
Indicates if the summary was AI-generated or user-entered
const ( DocumentSummaryEntryModeAIAuto DocumentSummaryEntryMode = "AI_AUTO" DocumentSummaryEntryModeUser DocumentSummaryEntryMode = "USER" )
type DocumentSummaryFormat ¶
type DocumentSummaryFormat string
Format of the summary content
const ( DocumentSummaryFormatMarkdown DocumentSummaryFormat = "MARKDOWN" DocumentSummaryFormatPlainText DocumentSummaryFormat = "PLAIN_TEXT" )
type DocumentSummaryListParams ¶
type DocumentSummaryListParams struct {
// Cursor for forward pagination. Returns items after this cursor.
After param.Opt[string] `query:"after,omitzero" json:"-"`
// Cursor for backward pagination. Returns items before this cursor.
Before param.Opt[string] `query:"before,omitzero" json:"-"`
// Filter summaries by document ID
DocumentID param.Opt[string] `query:"document_id,omitzero" json:"-"`
// Filter summaries by household ID
HouseholdID param.Opt[string] `query:"household_id,omitzero" json:"-"`
// Maximum number of items to return
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (DocumentSummaryListParams) URLQuery ¶
func (r DocumentSummaryListParams) URLQuery() (v url.Values, err error)
URLQuery serializes DocumentSummaryListParams's query parameters as `url.Values`.
type DocumentSummaryService ¶
type DocumentSummaryService struct {
Options []option.RequestOption
}
DocumentSummaryService contains methods and other services that help with interacting with the luminary API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDocumentSummaryService method instead.
func NewDocumentSummaryService ¶
func NewDocumentSummaryService(opts ...option.RequestOption) (r DocumentSummaryService)
NewDocumentSummaryService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DocumentSummaryService) Download ¶
func (r *DocumentSummaryService) Download(ctx context.Context, id string, query DocumentSummaryDownloadParams, opts ...option.RequestOption) (res *http.Response, err error)
Download the document summary content in the specified format
func (*DocumentSummaryService) Get ¶
func (r *DocumentSummaryService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *DocumentSummary, err error)
Retrieve a specific document summary
func (*DocumentSummaryService) List ¶
func (r *DocumentSummaryService) List(ctx context.Context, query DocumentSummaryListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[DocumentSummary], err error)
Retrieve a paginated list of document summaries using cursor-based pagination
func (*DocumentSummaryService) ListAutoPaging ¶
func (r *DocumentSummaryService) ListAutoPaging(ctx context.Context, query DocumentSummaryListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[DocumentSummary]
Retrieve a paginated list of document summaries using cursor-based pagination
func (*DocumentSummaryService) Update ¶
func (r *DocumentSummaryService) Update(ctx context.Context, id string, body DocumentSummaryUpdateParams, opts ...option.RequestOption) (res *DocumentSummary, err error)
Update an existing document summary
type DocumentSummaryUpdateParams ¶
type DocumentSummaryUpdateParams struct {
// Display name for the summary
DisplayName param.Opt[string] `json:"display_name,omitzero"`
// The summary text content
Summary param.Opt[string] `json:"summary,omitzero"`
// Indicates if the summary was AI-generated or user-entered
//
// Any of "AI_AUTO", "USER".
EntryMode DocumentSummaryEntryMode `json:"entry_mode,omitzero"`
// Format of the summary content
//
// Any of "MARKDOWN", "PLAIN_TEXT".
SummaryFormat DocumentSummaryFormat `json:"summary_format,omitzero"`
// contains filtered or unexported fields
}
func (DocumentSummaryUpdateParams) MarshalJSON ¶
func (r DocumentSummaryUpdateParams) MarshalJSON() (data []byte, err error)
func (*DocumentSummaryUpdateParams) UnmarshalJSON ¶
func (r *DocumentSummaryUpdateParams) UnmarshalJSON(data []byte) error
type DocumentType ¶
type DocumentType string
Type of document
const ( DocumentTypeGratDesignSummary DocumentType = "GRAT_DESIGN_SUMMARY" DocumentTypeGeneratedPresentation DocumentType = "GENERATED_PRESENTATION" DocumentTypeAssetValuation DocumentType = "ASSET_VALUATION" DocumentTypeSignedTrustDocument DocumentType = "SIGNED_TRUST_DOCUMENT" DocumentTypeTrustAmendment DocumentType = "TRUST_AMENDMENT" DocumentTypeTransferConfirmation DocumentType = "TRANSFER_CONFIRMATION" DocumentTypeExistingRemainderTrustDocument DocumentType = "EXISTING_REMAINDER_TRUST_DOCUMENT" DocumentTypeBalanceSheet DocumentType = "BALANCE_SHEET" DocumentTypeWill DocumentType = "WILL" DocumentTypeWillCodicil DocumentType = "WILL_CODICIL" DocumentTypePowerOfAttorney DocumentType = "POWER_OF_ATTORNEY" DocumentTypeAssignmentOfInterest DocumentType = "ASSIGNMENT_OF_INTEREST" DocumentTypeAssignmentOfTangibleProperty DocumentType = "ASSIGNMENT_OF_TANGIBLE_PROPERTY" DocumentTypeLoanNoteAgreement DocumentType = "LOAN_NOTE_AGREEMENT" DocumentTypeArticlesOfIncorporation DocumentType = "ARTICLES_OF_INCORPORATION" DocumentTypeOperatingAgreement DocumentType = "OPERATING_AGREEMENT" DocumentTypePartnershipAgreement DocumentType = "PARTNERSHIP_AGREEMENT" DocumentTypeAccountDocumentationStatement DocumentType = "ACCOUNT_DOCUMENTATION_STATEMENT" DocumentTypeTaxIDConfirmation DocumentType = "TAX_ID_CONFIRMATION" DocumentTypeGiftTaxReturn DocumentType = "GIFT_TAX_RETURN" DocumentTypeIncomeTaxReturn DocumentType = "INCOME_TAX_RETURN" DocumentTypeTaxReceipt DocumentType = "TAX_RECEIPT" DocumentTypeTaxFiling DocumentType = "TAX_FILING" DocumentTypeCorporateBylaws DocumentType = "CORPORATE_BYLAWS" DocumentTypeLlcAgreement DocumentType = "LLC_AGREEMENT" DocumentTypeLlcAgreementAmendment DocumentType = "LLC_AGREEMENT_AMENDMENT" DocumentTypeOperatingAgreementAmendment DocumentType = "OPERATING_AGREEMENT_AMENDMENT" DocumentTypePartnershipAgreementAmendment DocumentType = "PARTNERSHIP_AGREEMENT_AMENDMENT" DocumentTypeStateBusinessFiling DocumentType = "STATE_BUSINESS_FILING" DocumentTypeLoggedContribution DocumentType = "LOGGED_CONTRIBUTION" DocumentTypeLoggedDistribution DocumentType = "LOGGED_DISTRIBUTION" DocumentTypeInsurancePolicy DocumentType = "INSURANCE_POLICY" DocumentTypeCrummeyLetter DocumentType = "CRUMMEY_LETTER" DocumentTypeInsurancePremiumPayment DocumentType = "INSURANCE_PREMIUM_PAYMENT" DocumentTypeBeneficialOwnershipInformationReport DocumentType = "BENEFICIAL_OWNERSHIP_INFORMATION_REPORT" DocumentTypeFincenFiling DocumentType = "FINCEN_FILING" DocumentTypeHealthcareProxy DocumentType = "HEALTHCARE_PROXY" DocumentTypeLivingWill DocumentType = "LIVING_WILL" DocumentTypeDriversLicense DocumentType = "DRIVERS_LICENSE" DocumentTypePassport DocumentType = "PASSPORT" DocumentTypeDeed DocumentType = "DEED" DocumentTypeOther DocumentType = "OTHER" )
type DocumentUpdateParams ¶
type DocumentUpdateParams struct {
// Entity ID if this document is owned by an entity
EntityID param.Opt[string] `json:"entity_id,omitzero"`
// Individual ID if associated with an individual
IndividualID param.Opt[string] `json:"individual_id,omitzero"`
// Whether this document should be used for AI suggestions
EnableAISuggestions param.Opt[bool] `json:"enable_ai_suggestions,omitzero"`
// Display name of the document
Name param.Opt[string] `json:"name,omitzero"`
// Type of document
//
// Any of "GRAT_DESIGN_SUMMARY", "GENERATED_PRESENTATION", "ASSET_VALUATION",
// "SIGNED_TRUST_DOCUMENT", "TRUST_AMENDMENT", "TRANSFER_CONFIRMATION",
// "EXISTING_REMAINDER_TRUST_DOCUMENT", "BALANCE_SHEET", "WILL", "WILL_CODICIL",
// "POWER_OF_ATTORNEY", "ASSIGNMENT_OF_INTEREST",
// "ASSIGNMENT_OF_TANGIBLE_PROPERTY", "LOAN_NOTE_AGREEMENT",
// "ARTICLES_OF_INCORPORATION", "OPERATING_AGREEMENT", "PARTNERSHIP_AGREEMENT",
// "ACCOUNT_DOCUMENTATION_STATEMENT", "TAX_ID_CONFIRMATION", "GIFT_TAX_RETURN",
// "INCOME_TAX_RETURN", "TAX_RECEIPT", "TAX_FILING", "CORPORATE_BYLAWS",
// "LLC_AGREEMENT", "LLC_AGREEMENT_AMENDMENT", "OPERATING_AGREEMENT_AMENDMENT",
// "PARTNERSHIP_AGREEMENT_AMENDMENT", "SHAREHOLDERS_AGREEMENT",
// "STATE_BUSINESS_FILING", "LOGGED_CONTRIBUTION", "LOGGED_DISTRIBUTION",
// "INSURANCE_POLICY", "CRUMMEY_LETTER", "INSURANCE_PREMIUM_PAYMENT",
// "BENEFICIAL_OWNERSHIP_INFORMATION_REPORT", "FINCEN_FILING", "HEALTHCARE_PROXY",
// "LIVING_WILL", "DRIVERS_LICENSE", "PASSPORT", "DEED", "OTHER".
Type DocumentType `json:"type,omitzero"`
// contains filtered or unexported fields
}
func (DocumentUpdateParams) MarshalJSON ¶
func (r DocumentUpdateParams) MarshalJSON() (data []byte, err error)
func (*DocumentUpdateParams) UnmarshalJSON ¶
func (r *DocumentUpdateParams) UnmarshalJSON(data []byte) error
type Entity ¶
type Entity struct {
// Unique identifier with entity\_ prefix
ID string `json:"id" api:"required"`
// Timestamp when the entity was created
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
// Display name of the entity
DisplayName string `json:"display_name" api:"required"`
// Household ID this entity belongs to
HouseholdID string `json:"household_id" api:"required"`
// Whether the entity is in or out of the estate
//
// Any of "in_estate", "out_of_estate", "none".
InEstateStatus EntityInEstateStatus `json:"in_estate_status" api:"required"`
// Type of entity - determines the specific subtype and applicable fields
//
// Any of "REVOCABLE_TRUST", "IRREVOCABLE_TRUST", "SLAT_TRUST", "ILIT_TRUST",
// "QPRT_TRUST", "GRAT_TRUST", "CRT_TRUST", "CLT_TRUST",
// "INDIVIDUAL_PERSONAL_ACCOUNT", "JOINT_PERSONAL_ACCOUNT",
// "CUSTODIAL_PERSONAL_ACCOUNT", "INSURANCE_PERSONAL_ACCOUNT",
// "QUALIFIED_TUITION_PERSONAL_ACCOUNT", "RETIREMENT_PERSONAL_ACCOUNT",
// "DONOR_ADVISED_FUND", "PRIVATE_FOUNDATION", "LLC_BUSINESS_ENTITY",
// "LP_BUSINESS_ENTITY", "GP_BUSINESS_ENTITY",
// "SOLE_PROPRIETORSHIP_BUSINESS_ENTITY", "SCORP_BUSINESS_ENTITY",
// "CCORP_BUSINESS_ENTITY".
Kind EntityKind `json:"kind" api:"required"`
// Lifecycle stage of the entity
//
// Any of "PRE_CREATED", "AI_CREATING", "AI_CREATION_FAILED", "AI_NEEDS_REVIEW",
// "DRAFT", "READY_FOR_PROPOSAL", "IMPLEMENTATION", "ACTIVE", "COMPLETED",
// "ARCHIVED".
Stage EntityStage `json:"stage" api:"required"`
// Timestamp when the entity was last updated
UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
// Customer-supplied identifier from an external system. Unique within the caller's
// tenant when set.
ExternalID string `json:"external_id" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
DisplayName respjson.Field
HouseholdID respjson.Field
InEstateStatus respjson.Field
Kind respjson.Field
Stage respjson.Field
UpdatedAt respjson.Field
ExternalID respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (*Entity) UnmarshalJSON ¶
type EntityInEstateStatus ¶ added in v0.3.0
type EntityInEstateStatus string
Whether the entity is in or out of the estate
const ( EntityInEstateStatusInEstate EntityInEstateStatus = "in_estate" EntityInEstateStatusOutOfEstate EntityInEstateStatus = "out_of_estate" EntityInEstateStatusNone EntityInEstateStatus = "none" )
type EntityKind ¶
type EntityKind string
Type of entity - determines the specific subtype and applicable fields
const ( EntityKindRevocableTrust EntityKind = "REVOCABLE_TRUST" EntityKindIrrevocableTrust EntityKind = "IRREVOCABLE_TRUST" EntityKindSlatTrust EntityKind = "SLAT_TRUST" EntityKindIlitTrust EntityKind = "ILIT_TRUST" EntityKindQprtTrust EntityKind = "QPRT_TRUST" EntityKindGratTrust EntityKind = "GRAT_TRUST" EntityKindCrtTrust EntityKind = "CRT_TRUST" EntityKindCltTrust EntityKind = "CLT_TRUST" EntityKindIndividualPersonalAccount EntityKind = "INDIVIDUAL_PERSONAL_ACCOUNT" EntityKindJointPersonalAccount EntityKind = "JOINT_PERSONAL_ACCOUNT" EntityKindCustodialPersonalAccount EntityKind = "CUSTODIAL_PERSONAL_ACCOUNT" EntityKindInsurancePersonalAccount EntityKind = "INSURANCE_PERSONAL_ACCOUNT" EntityKindQualifiedTuitionPersonalAccount EntityKind = "QUALIFIED_TUITION_PERSONAL_ACCOUNT" EntityKindRetirementPersonalAccount EntityKind = "RETIREMENT_PERSONAL_ACCOUNT" EntityKindDonorAdvisedFund EntityKind = "DONOR_ADVISED_FUND" EntityKindPrivateFoundation EntityKind = "PRIVATE_FOUNDATION" EntityKindLlcBusinessEntity EntityKind = "LLC_BUSINESS_ENTITY" EntityKindLpBusinessEntity EntityKind = "LP_BUSINESS_ENTITY" EntityKindGpBusinessEntity EntityKind = "GP_BUSINESS_ENTITY" EntityKindSoleProprietorshipBusinessEntity EntityKind = "SOLE_PROPRIETORSHIP_BUSINESS_ENTITY" EntityKindScorpBusinessEntity EntityKind = "SCORP_BUSINESS_ENTITY" EntityKindCcorpBusinessEntity EntityKind = "CCORP_BUSINESS_ENTITY" )
type EntityList ¶
type EntityList struct {
Data []Entity `json:"data" api:"required"`
PageInfo PageInfo `json:"page_info" api:"required"`
// Total number of items matching the query (across all pages)
TotalCount int64 `json:"total_count" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Data respjson.Field
PageInfo respjson.Field
TotalCount respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (EntityList) RawJSON ¶
func (r EntityList) RawJSON() string
Returns the unmodified JSON received from the API
func (*EntityList) UnmarshalJSON ¶
func (r *EntityList) UnmarshalJSON(data []byte) error
type EntityListParams ¶
type EntityListParams struct {
// Cursor for forward pagination. Returns items after this cursor.
After param.Opt[string] `query:"after,omitzero" json:"-"`
// Cursor for backward pagination. Returns items before this cursor.
Before param.Opt[string] `query:"before,omitzero" json:"-"`
// Filter by external ID (exact match within the caller's tenant)
ExternalID param.Opt[string] `query:"external_id,omitzero" json:"-"`
// Filter entities by household ID
HouseholdID param.Opt[string] `query:"household_id,omitzero" json:"-"`
// Maximum number of items to return
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// Filter by entity kind/type
//
// Any of "REVOCABLE_TRUST", "IRREVOCABLE_TRUST", "SLAT_TRUST", "ILIT_TRUST",
// "QPRT_TRUST", "GRAT_TRUST", "CRT_TRUST", "CLT_TRUST",
// "INDIVIDUAL_PERSONAL_ACCOUNT", "JOINT_PERSONAL_ACCOUNT",
// "CUSTODIAL_PERSONAL_ACCOUNT", "INSURANCE_PERSONAL_ACCOUNT",
// "QUALIFIED_TUITION_PERSONAL_ACCOUNT", "RETIREMENT_PERSONAL_ACCOUNT",
// "DONOR_ADVISED_FUND", "PRIVATE_FOUNDATION", "LLC_BUSINESS_ENTITY",
// "LP_BUSINESS_ENTITY", "GP_BUSINESS_ENTITY",
// "SOLE_PROPRIETORSHIP_BUSINESS_ENTITY", "SCORP_BUSINESS_ENTITY",
// "CCORP_BUSINESS_ENTITY".
Kind EntityKind `query:"kind,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (EntityListParams) URLQuery ¶
func (r EntityListParams) URLQuery() (v url.Values, err error)
URLQuery serializes EntityListParams's query parameters as `url.Values`.
type EntityService ¶
type EntityService struct {
Options []option.RequestOption
Valuation EntityValuationService
}
EntityService contains methods and other services that help with interacting with the luminary API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEntityService method instead.
func NewEntityService ¶
func NewEntityService(opts ...option.RequestOption) (r EntityService)
NewEntityService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*EntityService) Delete ¶
func (r *EntityService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
Delete an entity and all of it's related data
func (*EntityService) Get ¶
func (r *EntityService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Entity, err error)
Retrieve detailed information about a specific entity
func (*EntityService) List ¶
func (r *EntityService) List(ctx context.Context, query EntityListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[Entity], err error)
Retrieve a paginated list of entities (trusts, businesses, accounts, etc.) using cursor-based pagination
func (*EntityService) ListAutoPaging ¶
func (r *EntityService) ListAutoPaging(ctx context.Context, query EntityListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[Entity]
Retrieve a paginated list of entities (trusts, businesses, accounts, etc.) using cursor-based pagination
type EntityStage ¶
type EntityStage string
Lifecycle stage of the entity
const ( EntityStagePreCreated EntityStage = "PRE_CREATED" EntityStageAICreating EntityStage = "AI_CREATING" EntityStageAICreationFailed EntityStage = "AI_CREATION_FAILED" EntityStageAINeedsReview EntityStage = "AI_NEEDS_REVIEW" EntityStageDraft EntityStage = "DRAFT" EntityStageReadyForProposal EntityStage = "READY_FOR_PROPOSAL" EntityStageImplementation EntityStage = "IMPLEMENTATION" EntityStageActive EntityStage = "ACTIVE" EntityStageCompleted EntityStage = "COMPLETED" EntityStageArchived EntityStage = "ARCHIVED" )
type EntityValuationNewParams ¶
type EntityValuationNewParams struct {
// List of assets to include in this valuation
DirectlyHeldAssets []EntityValuationNewParamsDirectlyHeldAsset `json:"directly_held_assets,omitzero" api:"required"`
// The date this valuation is effective
EffectiveDate time.Time `json:"effective_date" api:"required" format:"date"`
// Free-form notes about this valuation
Description param.Opt[string] `json:"description,omitzero"`
// contains filtered or unexported fields
}
func (EntityValuationNewParams) MarshalJSON ¶
func (r EntityValuationNewParams) MarshalJSON() (data []byte, err error)
func (*EntityValuationNewParams) UnmarshalJSON ¶
func (r *EntityValuationNewParams) UnmarshalJSON(data []byte) error
type EntityValuationNewParamsDirectlyHeldAsset ¶
type EntityValuationNewParamsDirectlyHeldAsset struct {
// Asset class ID to associate with this asset
AssetClassID string `json:"asset_class_id" api:"required"`
// Display name of the asset
DisplayName string `json:"display_name" api:"required"`
// Value of this asset in USD
Value float64 `json:"value" api:"required"`
// External ID for the asset
ExternalID param.Opt[string] `json:"external_id,omitzero"`
// contains filtered or unexported fields
}
The properties AssetClassID, DisplayName, Value are required.
func (EntityValuationNewParamsDirectlyHeldAsset) MarshalJSON ¶
func (r EntityValuationNewParamsDirectlyHeldAsset) MarshalJSON() (data []byte, err error)
func (*EntityValuationNewParamsDirectlyHeldAsset) UnmarshalJSON ¶
func (r *EntityValuationNewParamsDirectlyHeldAsset) UnmarshalJSON(data []byte) error
type EntityValuationService ¶
type EntityValuationService struct {
Options []option.RequestOption
}
EntityValuationService contains methods and other services that help with interacting with the luminary API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEntityValuationService method instead.
func NewEntityValuationService ¶
func NewEntityValuationService(opts ...option.RequestOption) (r EntityValuationService)
NewEntityValuationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*EntityValuationService) Get ¶
func (r *EntityValuationService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Valuation, err error)
Retrieve the most recent valuation with flattened asset values by type
func (*EntityValuationService) New ¶
func (r *EntityValuationService) New(ctx context.Context, id string, body EntityValuationNewParams, opts ...option.RequestOption) (res *Valuation, err error)
Add a new valuation to the entity's history
type Household ¶
type Household struct {
// Unique identifier with household\_ prefix
ID string `json:"id" api:"required"`
// Timestamp when the household was created
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
// User ID of the primary relationship owner
PrimaryRelationshipOwnerID string `json:"primary_relationship_owner_id" api:"required"`
// Timestamp when the household was last updated
UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
// Customer-supplied identifier from an external system. Unique within the caller's
// tenant when set.
ExternalID string `json:"external_id" api:"nullable"`
// Display name for the household
Name string `json:"name"`
// Notes about the household
Notes string `json:"notes" api:"nullable"`
// Primary client profiles for this household (at most 2)
PrimaryIndividuals []Individual `json:"primary_individuals"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
PrimaryRelationshipOwnerID respjson.Field
UpdatedAt respjson.Field
ExternalID respjson.Field
Name respjson.Field
Notes respjson.Field
PrimaryIndividuals respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (*Household) UnmarshalJSON ¶
type HouseholdListDocumentsParams ¶
type HouseholdListDocumentsParams struct {
// Cursor for forward pagination. Returns items after this cursor.
After param.Opt[string] `query:"after,omitzero" json:"-"`
// Cursor for backward pagination. Returns items before this cursor.
Before param.Opt[string] `query:"before,omitzero" json:"-"`
// Maximum number of items to return
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// Filter by document type
//
// Any of "GRAT_DESIGN_SUMMARY", "GENERATED_PRESENTATION", "ASSET_VALUATION",
// "SIGNED_TRUST_DOCUMENT", "TRUST_AMENDMENT", "TRANSFER_CONFIRMATION",
// "EXISTING_REMAINDER_TRUST_DOCUMENT", "BALANCE_SHEET", "WILL", "WILL_CODICIL",
// "POWER_OF_ATTORNEY", "ASSIGNMENT_OF_INTEREST",
// "ASSIGNMENT_OF_TANGIBLE_PROPERTY", "LOAN_NOTE_AGREEMENT",
// "ARTICLES_OF_INCORPORATION", "OPERATING_AGREEMENT", "PARTNERSHIP_AGREEMENT",
// "ACCOUNT_DOCUMENTATION_STATEMENT", "TAX_ID_CONFIRMATION", "GIFT_TAX_RETURN",
// "INCOME_TAX_RETURN", "TAX_RECEIPT", "TAX_FILING", "CORPORATE_BYLAWS",
// "LLC_AGREEMENT", "LLC_AGREEMENT_AMENDMENT", "OPERATING_AGREEMENT_AMENDMENT",
// "PARTNERSHIP_AGREEMENT_AMENDMENT", "SHAREHOLDERS_AGREEMENT",
// "STATE_BUSINESS_FILING", "LOGGED_CONTRIBUTION", "LOGGED_DISTRIBUTION",
// "INSURANCE_POLICY", "CRUMMEY_LETTER", "INSURANCE_PREMIUM_PAYMENT",
// "BENEFICIAL_OWNERSHIP_INFORMATION_REPORT", "FINCEN_FILING", "HEALTHCARE_PROXY",
// "LIVING_WILL", "DRIVERS_LICENSE", "PASSPORT", "DEED", "OTHER".
Type DocumentType `query:"type,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (HouseholdListDocumentsParams) URLQuery ¶
func (r HouseholdListDocumentsParams) URLQuery() (v url.Values, err error)
URLQuery serializes HouseholdListDocumentsParams's query parameters as `url.Values`.
type HouseholdListEntitiesParams ¶
type HouseholdListEntitiesParams struct {
// Cursor for forward pagination. Returns items after this cursor.
After param.Opt[string] `query:"after,omitzero" json:"-"`
// Cursor for backward pagination. Returns items before this cursor.
Before param.Opt[string] `query:"before,omitzero" json:"-"`
// Maximum number of items to return
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// Filter by entity kind/type
//
// Any of "REVOCABLE_TRUST", "IRREVOCABLE_TRUST", "SLAT_TRUST", "ILIT_TRUST",
// "QPRT_TRUST", "GRAT_TRUST", "CRT_TRUST", "CLT_TRUST",
// "INDIVIDUAL_PERSONAL_ACCOUNT", "JOINT_PERSONAL_ACCOUNT",
// "CUSTODIAL_PERSONAL_ACCOUNT", "INSURANCE_PERSONAL_ACCOUNT",
// "QUALIFIED_TUITION_PERSONAL_ACCOUNT", "RETIREMENT_PERSONAL_ACCOUNT",
// "DONOR_ADVISED_FUND", "PRIVATE_FOUNDATION", "LLC_BUSINESS_ENTITY",
// "LP_BUSINESS_ENTITY", "GP_BUSINESS_ENTITY",
// "SOLE_PROPRIETORSHIP_BUSINESS_ENTITY", "SCORP_BUSINESS_ENTITY",
// "CCORP_BUSINESS_ENTITY".
Kind EntityKind `query:"kind,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (HouseholdListEntitiesParams) URLQuery ¶
func (r HouseholdListEntitiesParams) URLQuery() (v url.Values, err error)
URLQuery serializes HouseholdListEntitiesParams's query parameters as `url.Values`.
type HouseholdListIndividualsParams ¶
type HouseholdListIndividualsParams struct {
// Cursor for forward pagination. Returns items after this cursor.
After param.Opt[string] `query:"after,omitzero" json:"-"`
// Cursor for backward pagination. Returns items before this cursor.
Before param.Opt[string] `query:"before,omitzero" json:"-"`
// Filter by primary client status
IsPrimary param.Opt[bool] `query:"is_primary,omitzero" json:"-"`
// Maximum number of items to return
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (HouseholdListIndividualsParams) URLQuery ¶
func (r HouseholdListIndividualsParams) URLQuery() (v url.Values, err error)
URLQuery serializes HouseholdListIndividualsParams's query parameters as `url.Values`.
type HouseholdListParams ¶
type HouseholdListParams struct {
// Cursor for forward pagination. Returns items after this cursor.
After param.Opt[string] `query:"after,omitzero" json:"-"`
// Cursor for backward pagination. Returns items before this cursor.
Before param.Opt[string] `query:"before,omitzero" json:"-"`
// Filter by external ID (exact match within the caller's tenant)
ExternalID param.Opt[string] `query:"external_id,omitzero" json:"-"`
// Maximum number of items to return
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (HouseholdListParams) URLQuery ¶
func (r HouseholdListParams) URLQuery() (v url.Values, err error)
URLQuery serializes HouseholdListParams's query parameters as `url.Values`.
type HouseholdNewParams ¶
type HouseholdNewParams struct {
// User ID of the primary relationship owner
PrimaryRelationshipOwnerID string `json:"primary_relationship_owner_id" api:"required"`
// Customer-supplied identifier from an external system. Unique within the caller's
// tenant when set.
ExternalID param.Opt[string] `json:"external_id,omitzero"`
// Optional notes about the household
Notes param.Opt[string] `json:"notes,omitzero"`
// Primary client profiles to create for this household (at most 2)
PrimaryIndividuals []HouseholdNewParamsPrimaryIndividual `json:"primary_individuals,omitzero"`
// contains filtered or unexported fields
}
func (HouseholdNewParams) MarshalJSON ¶
func (r HouseholdNewParams) MarshalJSON() (data []byte, err error)
func (*HouseholdNewParams) UnmarshalJSON ¶
func (r *HouseholdNewParams) UnmarshalJSON(data []byte) error
type HouseholdNewParamsPrimaryIndividual ¶
type HouseholdNewParamsPrimaryIndividual struct {
// First name of the individual
FirstName string `json:"first_name" api:"required"`
// Last name of the individual
LastName string `json:"last_name" api:"required"`
// State or province code (2 letter code)
State string `json:"state" api:"required"`
// Street address line 1
AddressLine1 param.Opt[string] `json:"address_line1,omitzero"`
// Street address line 2
AddressLine2 param.Opt[string] `json:"address_line2,omitzero"`
// City
City param.Opt[string] `json:"city,omitzero"`
// Country
Country param.Opt[string] `json:"country,omitzero"`
// Date of birth
DateOfBirth param.Opt[time.Time] `json:"date_of_birth,omitzero" format:"date"`
// Email address
Email param.Opt[string] `json:"email,omitzero" format:"email"`
// Middle name of the individual
MiddleName param.Opt[string] `json:"middle_name,omitzero"`
// Notes about the client profile
Notes param.Opt[string] `json:"notes,omitzero"`
// ZIP or postal code
PostalCode param.Opt[string] `json:"postal_code,omitzero"`
// Name suffix
Suffix param.Opt[string] `json:"suffix,omitzero"`
// Whether this client profile should be an eligible beneficiary for entities and
// gifts
IsBeneficiary param.Opt[bool] `json:"is_beneficiary,omitzero"`
// Whether the individual is deceased
IsDeceased param.Opt[bool] `json:"is_deceased,omitzero"`
// Whether this client profile should be an eligible trustee for entities
IsTrustee param.Opt[bool] `json:"is_trustee,omitzero"`
// contains filtered or unexported fields
}
The properties FirstName, LastName, State are required.
func (HouseholdNewParamsPrimaryIndividual) MarshalJSON ¶
func (r HouseholdNewParamsPrimaryIndividual) MarshalJSON() (data []byte, err error)
func (*HouseholdNewParamsPrimaryIndividual) UnmarshalJSON ¶
func (r *HouseholdNewParamsPrimaryIndividual) UnmarshalJSON(data []byte) error
type HouseholdService ¶
type HouseholdService struct {
Options []option.RequestOption
}
HouseholdService contains methods and other services that help with interacting with the luminary API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewHouseholdService method instead.
func NewHouseholdService ¶
func NewHouseholdService(opts ...option.RequestOption) (r HouseholdService)
NewHouseholdService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*HouseholdService) Delete ¶
func (r *HouseholdService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
Soft delete a household (marks as deleted but preserves data)
func (*HouseholdService) Get ¶
func (r *HouseholdService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Household, err error)
Retrieve detailed information about a specific household
func (*HouseholdService) List ¶
func (r *HouseholdService) List(ctx context.Context, query HouseholdListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[Household], err error)
Retrieve a paginated list of households using cursor-based pagination
func (*HouseholdService) ListAutoPaging ¶
func (r *HouseholdService) ListAutoPaging(ctx context.Context, query HouseholdListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[Household]
Retrieve a paginated list of households using cursor-based pagination
func (*HouseholdService) ListDocuments ¶
func (r *HouseholdService) ListDocuments(ctx context.Context, id string, query HouseholdListDocumentsParams, opts ...option.RequestOption) (res *pagination.CursorPagination[Document], err error)
Retrieve a paginated list of documents belonging to a specific household
func (*HouseholdService) ListDocumentsAutoPaging ¶
func (r *HouseholdService) ListDocumentsAutoPaging(ctx context.Context, id string, query HouseholdListDocumentsParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[Document]
Retrieve a paginated list of documents belonging to a specific household
func (*HouseholdService) ListEntities ¶
func (r *HouseholdService) ListEntities(ctx context.Context, id string, query HouseholdListEntitiesParams, opts ...option.RequestOption) (res *pagination.CursorPagination[Entity], err error)
Retrieve a paginated list of entities belonging to a specific household
func (*HouseholdService) ListEntitiesAutoPaging ¶
func (r *HouseholdService) ListEntitiesAutoPaging(ctx context.Context, id string, query HouseholdListEntitiesParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[Entity]
Retrieve a paginated list of entities belonging to a specific household
func (*HouseholdService) ListIndividuals ¶
func (r *HouseholdService) ListIndividuals(ctx context.Context, id string, query HouseholdListIndividualsParams, opts ...option.RequestOption) (res *pagination.CursorPagination[Individual], err error)
Retrieve a paginated list of client profiles/individuals belonging to a specific household
func (*HouseholdService) ListIndividualsAutoPaging ¶
func (r *HouseholdService) ListIndividualsAutoPaging(ctx context.Context, id string, query HouseholdListIndividualsParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[Individual]
Retrieve a paginated list of client profiles/individuals belonging to a specific household
func (*HouseholdService) New ¶
func (r *HouseholdService) New(ctx context.Context, body HouseholdNewParams, opts ...option.RequestOption) (res *Household, err error)
Create a new household with the provided data
func (*HouseholdService) Update ¶
func (r *HouseholdService) Update(ctx context.Context, id string, body HouseholdUpdateParams, opts ...option.RequestOption) (res *Household, err error)
Update an existing household with new data
type HouseholdUpdateParams ¶
type HouseholdUpdateParams struct {
// Customer-supplied identifier from an external system. Unique within the caller's
// tenant when set. Send null to clear.
ExternalID param.Opt[string] `json:"external_id,omitzero"`
// Notes about the household
Notes param.Opt[string] `json:"notes,omitzero"`
// User ID of the primary relationship owner
PrimaryRelationshipOwnerID param.Opt[string] `json:"primary_relationship_owner_id,omitzero"`
// contains filtered or unexported fields
}
func (HouseholdUpdateParams) MarshalJSON ¶
func (r HouseholdUpdateParams) MarshalJSON() (data []byte, err error)
func (*HouseholdUpdateParams) UnmarshalJSON ¶
func (r *HouseholdUpdateParams) UnmarshalJSON(data []byte) error
type Individual ¶
type Individual struct {
// Unique identifier with client*profile* prefix
ID string `json:"id" api:"required"`
// Timestamp when the individual was created
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
// First name of the individual
FirstName string `json:"first_name" api:"required"`
// Household ID this individual belongs to
HouseholdID string `json:"household_id" api:"required"`
// Whether this client profile should be an eligible beneficiary for entities and
// gifts
IsBeneficiary bool `json:"is_beneficiary" api:"required"`
// Whether this client profile is deceased
IsDeceased bool `json:"is_deceased" api:"required"`
// Whether this client profile should be an eligible grantor/owner/other principal
// for entities
IsGrantor bool `json:"is_grantor" api:"required"`
// Whether this is one of the (at most) two primary clients on this household
IsPrimary bool `json:"is_primary" api:"required"`
// Whether this client profile should be an eligible trustee for entities
IsTrustee bool `json:"is_trustee" api:"required"`
// Last name of the individual
LastName string `json:"last_name" api:"required"`
// Timestamp when the individual was last updated
UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
// Street address line 1 (from address edge)
AddressLine1 string `json:"address_line1" api:"nullable"`
// Street address line 2 (from address edge)
AddressLine2 string `json:"address_line2" api:"nullable"`
// City (from address edge)
City string `json:"city" api:"nullable"`
// Country (from address edge)
Country string `json:"country" api:"nullable"`
// Date of birth (encrypted field)
DateOfBirth time.Time `json:"date_of_birth" api:"nullable" format:"date"`
// Date of death if applicable (encrypted field)
DateOfDeath time.Time `json:"date_of_death" api:"nullable" format:"date"`
// Timestamp when the individual was soft deleted
DeletedAt time.Time `json:"deleted_at" api:"nullable" format:"date-time"`
// Email address
Email string `json:"email" api:"nullable" format:"email"`
// Middle name of the individual
MiddleName string `json:"middle_name" api:"nullable"`
// Notes about the client profile
Notes string `json:"notes" api:"nullable"`
// ZIP or postal code (from address edge)
PostalCode string `json:"postal_code" api:"nullable"`
// State or province (from address edge)
State string `json:"state" api:"nullable"`
// Name suffix (Jr., Sr., III, etc.)
Suffix string `json:"suffix" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
FirstName respjson.Field
HouseholdID respjson.Field
IsBeneficiary respjson.Field
IsDeceased respjson.Field
IsGrantor respjson.Field
IsPrimary respjson.Field
IsTrustee respjson.Field
LastName respjson.Field
UpdatedAt respjson.Field
AddressLine1 respjson.Field
AddressLine2 respjson.Field
City respjson.Field
Country respjson.Field
DateOfBirth respjson.Field
DateOfDeath respjson.Field
DeletedAt respjson.Field
Email respjson.Field
MiddleName respjson.Field
Notes respjson.Field
PostalCode respjson.Field
State respjson.Field
Suffix respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (Individual) RawJSON ¶
func (r Individual) RawJSON() string
Returns the unmodified JSON received from the API
func (*Individual) UnmarshalJSON ¶
func (r *Individual) UnmarshalJSON(data []byte) error
type IndividualList ¶
type IndividualList struct {
Data []Individual `json:"data" api:"required"`
PageInfo PageInfo `json:"page_info" api:"required"`
// Total number of items matching the query (across all pages)
TotalCount int64 `json:"total_count" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Data respjson.Field
PageInfo respjson.Field
TotalCount respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (IndividualList) RawJSON ¶
func (r IndividualList) RawJSON() string
Returns the unmodified JSON received from the API
func (*IndividualList) UnmarshalJSON ¶
func (r *IndividualList) UnmarshalJSON(data []byte) error
type IndividualListParams ¶
type IndividualListParams struct {
// Cursor for forward pagination. Returns items after this cursor.
After param.Opt[string] `query:"after,omitzero" json:"-"`
// Cursor for backward pagination. Returns items before this cursor.
Before param.Opt[string] `query:"before,omitzero" json:"-"`
// Filter individuals by household ID
HouseholdID param.Opt[string] `query:"household_id,omitzero" json:"-"`
// Filter by primary client status
IsPrimary param.Opt[bool] `query:"is_primary,omitzero" json:"-"`
// Maximum number of items to return
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (IndividualListParams) URLQuery ¶
func (r IndividualListParams) URLQuery() (v url.Values, err error)
URLQuery serializes IndividualListParams's query parameters as `url.Values`.
type IndividualNewParams ¶
type IndividualNewParams struct {
// First name of the individual
FirstName string `json:"first_name" api:"required"`
// Household ID this individual belongs to
HouseholdID string `json:"household_id" api:"required"`
// Last name of the individual
LastName string `json:"last_name" api:"required"`
// Street address line 1
AddressLine1 param.Opt[string] `json:"address_line1,omitzero"`
// Street address line 2
AddressLine2 param.Opt[string] `json:"address_line2,omitzero"`
// City
City param.Opt[string] `json:"city,omitzero"`
// Country
Country param.Opt[string] `json:"country,omitzero"`
// Date of birth
DateOfBirth param.Opt[time.Time] `json:"date_of_birth,omitzero" format:"date"`
// Email address
Email param.Opt[string] `json:"email,omitzero" format:"email"`
// Middle name of the individual
MiddleName param.Opt[string] `json:"middle_name,omitzero"`
// Notes about the client profile
Notes param.Opt[string] `json:"notes,omitzero"`
// ZIP or postal code
PostalCode param.Opt[string] `json:"postal_code,omitzero"`
// State or province code (2 letter code)
State param.Opt[string] `json:"state,omitzero"`
// Name suffix
Suffix param.Opt[string] `json:"suffix,omitzero"`
// Whether this client profile should be an eligible beneficiary for entities and
// gifts
IsBeneficiary param.Opt[bool] `json:"is_beneficiary,omitzero"`
// Whether the individual is deceased
IsDeceased param.Opt[bool] `json:"is_deceased,omitzero"`
// Whether this client profile should be an eligible grantor/owner/other principal
// for entities
IsGrantor param.Opt[bool] `json:"is_grantor,omitzero"`
// Whether this is a primary client of the household (at most 2 per household)
IsPrimary param.Opt[bool] `json:"is_primary,omitzero"`
// Whether this client profile should be an eligible trustee for entities
IsTrustee param.Opt[bool] `json:"is_trustee,omitzero"`
// contains filtered or unexported fields
}
func (IndividualNewParams) MarshalJSON ¶
func (r IndividualNewParams) MarshalJSON() (data []byte, err error)
func (*IndividualNewParams) UnmarshalJSON ¶
func (r *IndividualNewParams) UnmarshalJSON(data []byte) error
type IndividualService ¶
type IndividualService struct {
Options []option.RequestOption
}
IndividualService contains methods and other services that help with interacting with the luminary API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewIndividualService method instead.
func NewIndividualService ¶
func NewIndividualService(opts ...option.RequestOption) (r IndividualService)
NewIndividualService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*IndividualService) Delete ¶
func (r *IndividualService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
Soft delete a client profile (marks as deleted but preserves data)
func (*IndividualService) Get ¶
func (r *IndividualService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Individual, err error)
Retrieve detailed information about a specific client profile
func (*IndividualService) List ¶
func (r *IndividualService) List(ctx context.Context, query IndividualListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[Individual], err error)
Retrieve a paginated list of client profiles/individuals using cursor-based pagination
func (*IndividualService) ListAutoPaging ¶
func (r *IndividualService) ListAutoPaging(ctx context.Context, query IndividualListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[Individual]
Retrieve a paginated list of client profiles/individuals using cursor-based pagination
func (*IndividualService) New ¶
func (r *IndividualService) New(ctx context.Context, body IndividualNewParams, opts ...option.RequestOption) (res *Individual, err error)
Create a new client profile/individual with the provided data
func (*IndividualService) Update ¶
func (r *IndividualService) Update(ctx context.Context, id string, body IndividualUpdateParams, opts ...option.RequestOption) (res *Individual, err error)
Update an existing client profile with new data
type IndividualUpdateParams ¶
type IndividualUpdateParams struct {
// Street address line 1
AddressLine1 param.Opt[string] `json:"address_line1,omitzero"`
// Street address line 2
AddressLine2 param.Opt[string] `json:"address_line2,omitzero"`
// City
City param.Opt[string] `json:"city,omitzero"`
// Country
Country param.Opt[string] `json:"country,omitzero"`
// Date of birth
DateOfBirth param.Opt[time.Time] `json:"date_of_birth,omitzero" format:"date"`
// Date of death if applicable
DateOfDeath param.Opt[time.Time] `json:"date_of_death,omitzero" format:"date"`
// Email address
Email param.Opt[string] `json:"email,omitzero" format:"email"`
// Middle name of the individual
MiddleName param.Opt[string] `json:"middle_name,omitzero"`
// Notes about the client profile
Notes param.Opt[string] `json:"notes,omitzero"`
// ZIP or postal code
PostalCode param.Opt[string] `json:"postal_code,omitzero"`
// State or province code (2 letter code)
State param.Opt[string] `json:"state,omitzero"`
// Name suffix
Suffix param.Opt[string] `json:"suffix,omitzero"`
// First name of the individual
FirstName param.Opt[string] `json:"first_name,omitzero"`
// Whether this client profile should be an eligible beneficiary for entities and
// gifts
IsBeneficiary param.Opt[bool] `json:"is_beneficiary,omitzero"`
// Whether the individual is deceased
IsDeceased param.Opt[bool] `json:"is_deceased,omitzero"`
// Whether this client profile should be an eligible grantor/owner/other principal
// for entities
IsGrantor param.Opt[bool] `json:"is_grantor,omitzero"`
// Whether this is a primary client of the household (at most 2 per household)
IsPrimary param.Opt[bool] `json:"is_primary,omitzero"`
// Whether this client profile should be an eligible trustee for entities
IsTrustee param.Opt[bool] `json:"is_trustee,omitzero"`
// Last name of the individual
LastName param.Opt[string] `json:"last_name,omitzero"`
// contains filtered or unexported fields
}
func (IndividualUpdateParams) MarshalJSON ¶
func (r IndividualUpdateParams) MarshalJSON() (data []byte, err error)
func (*IndividualUpdateParams) UnmarshalJSON ¶
func (r *IndividualUpdateParams) UnmarshalJSON(data []byte) error
type PageInfo ¶
type PageInfo struct {
// When paginating forwards, are there more items?
HasNextPage bool `json:"has_next_page" api:"required"`
// When paginating backwards, are there more items?
HasPreviousPage bool `json:"has_previous_page" api:"required"`
// Cursor pointing to the last item in the current page
EndCursor string `json:"end_cursor" api:"nullable"`
// Cursor pointing to the first item in the current page
StartCursor string `json:"start_cursor" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
HasNextPage respjson.Field
HasPreviousPage respjson.Field
EndCursor respjson.Field
StartCursor respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (*PageInfo) UnmarshalJSON ¶
type User ¶
type User struct {
// Unique identifier with user\_ prefix
ID string `json:"id" api:"required"`
// Timestamp when the user was created
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
// Email address of the user
Email string `json:"email" api:"required" format:"email"`
// First name of the user
FirstName string `json:"first_name" api:"required"`
// Last name of the user
LastName string `json:"last_name" api:"required"`
// Timestamp when the user was last updated
UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
Email respjson.Field
FirstName respjson.Field
LastName respjson.Field
UpdatedAt respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (*User) UnmarshalJSON ¶
type UserListParams ¶
type UserListParams struct {
// Cursor for forward pagination. Returns items after this cursor.
After param.Opt[string] `query:"after,omitzero" json:"-"`
// Cursor for backward pagination. Returns items before this cursor.
Before param.Opt[string] `query:"before,omitzero" json:"-"`
// Maximum number of items to return
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// contains filtered or unexported fields
}
func (UserListParams) URLQuery ¶
func (r UserListParams) URLQuery() (v url.Values, err error)
URLQuery serializes UserListParams's query parameters as `url.Values`.
type UserService ¶
type UserService struct {
Options []option.RequestOption
}
UserService contains methods and other services that help with interacting with the luminary API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewUserService method instead.
func NewUserService ¶
func NewUserService(opts ...option.RequestOption) (r UserService)
NewUserService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*UserService) Get ¶
func (r *UserService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *User, err error)
Retrieve detailed information about a specific user
func (*UserService) List ¶
func (r *UserService) List(ctx context.Context, query UserListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[User], err error)
Retrieve a paginated list of users using cursor-based pagination
func (*UserService) ListAutoPaging ¶
func (r *UserService) ListAutoPaging(ctx context.Context, query UserListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[User]
Retrieve a paginated list of users using cursor-based pagination
type Valuation ¶
type Valuation struct {
// Unique identifier with valuationv2\_ prefix
ID string `json:"id" api:"required"`
// Timestamp when the valuation was created
CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
// Total value of all directly held assets in USD
DirectlyHeldAssetValue float64 `json:"directly_held_asset_value" api:"required"`
// List of individual assets in this valuation
DirectlyHeldAssets []ValuationDirectlyHeldAsset `json:"directly_held_assets" api:"required"`
// The date this valuation is effective
EffectiveDate time.Time `json:"effective_date" api:"required" format:"date"`
// Entity ID this valuation belongs to
EntityID string `json:"entity_id" api:"required"`
// Total value of all assets minus liabilities in USD
TotalValue float64 `json:"total_value" api:"required"`
// Timestamp when the valuation was last updated
UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
// Free-form notes about this valuation
Description string `json:"description" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
CreatedAt respjson.Field
DirectlyHeldAssetValue respjson.Field
DirectlyHeldAssets respjson.Field
EffectiveDate respjson.Field
EntityID respjson.Field
TotalValue respjson.Field
UpdatedAt respjson.Field
Description respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (*Valuation) UnmarshalJSON ¶
type ValuationDirectlyHeldAsset ¶
type ValuationDirectlyHeldAsset struct {
// Asset ID
ID string `json:"id" api:"required"`
AssetClass ValuationDirectlyHeldAssetAssetClass `json:"asset_class" api:"required"`
// Display name of the asset
DisplayName string `json:"display_name" api:"required"`
// Value of this asset in USD
Value float64 `json:"value" api:"required"`
// External ID from the static asset (if available)
ExternalID string `json:"external_id" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
AssetClass respjson.Field
DisplayName respjson.Field
Value respjson.Field
ExternalID respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ValuationDirectlyHeldAsset) RawJSON ¶
func (r ValuationDirectlyHeldAsset) RawJSON() string
Returns the unmodified JSON received from the API
func (*ValuationDirectlyHeldAsset) UnmarshalJSON ¶
func (r *ValuationDirectlyHeldAsset) UnmarshalJSON(data []byte) error
type ValuationDirectlyHeldAssetAssetClass ¶
type ValuationDirectlyHeldAssetAssetClass struct {
// Asset class ID
ID string `json:"id" api:"required"`
// Display name of the asset class
DisplayName string `json:"display_name" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ID respjson.Field
DisplayName respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (ValuationDirectlyHeldAssetAssetClass) RawJSON ¶
func (r ValuationDirectlyHeldAssetAssetClass) RawJSON() string
Returns the unmodified JSON received from the API
func (*ValuationDirectlyHeldAssetAssetClass) UnmarshalJSON ¶
func (r *ValuationDirectlyHeldAssetAssetClass) UnmarshalJSON(data []byte) error
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
encoding/json
Package json implements encoding and decoding of JSON as defined in RFC 7159.
|
Package json implements encoding and decoding of JSON as defined in RFC 7159. |
|
encoding/json/shims
This package provides shims over Go 1.2{2,3} APIs which are missing from Go 1.22, and used by the Go 1.24 encoding/json package.
|
This package provides shims over Go 1.2{2,3} APIs which are missing from Go 1.22, and used by the Go 1.24 encoding/json package. |
|
packages
|
|
|
shared
|
|