diff --git a/.gitignore b/.gitignore index 0dc1b1f5..c03e2170 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.env +.env.local **/.speakeasy/temp/ **/.speakeasy/logs/ .terraform diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 37d6ab60..a0b619ac 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 1300c9c0-985d-410d-a64e-d96ec26c685a management: - docChecksum: 59be0fe0a51738df370eb15499a21d57 + docChecksum: a91037ff017a3bdaf54eb6532140870e docVersion: 2.0.0 - speakeasyVersion: 1.611.0 - generationVersion: 2.694.1 - releaseVersion: 0.17.0 - configChecksum: aed2406898cfd95fbddd4d2c9aefc5d1 + speakeasyVersion: 1.642.2 + generationVersion: 2.731.6 + releaseVersion: 0.18.0 + configChecksum: 94846ee0cb40dcbf15aa7c20605ce4c8 repoURL: https://github.com/epilot-dev/terraform-provider-epilot-schema.git repoSubDirectory: . published: true @@ -14,20 +14,19 @@ features: terraform: additionalDependencies: 0.1.0 additionalProperties: 0.1.2 - constsAndDefaults: 0.2.1 - core: 3.44.1 + constsAndDefaults: 0.3.0 + core: 3.46.3 deprecations: 2.82.0 - globalSecurity: 2.82.0 + globalSecurity: 2.82.1 globalServerURLs: 2.83.0 inputOutputModels: 2.83.0 nullables: 0.0.0 retries: 2.81.4 typeOverrides: 2.81.1 - unions: 2.81.17 + unions: 2.82.2 generatedFiles: - .gitattributes - USAGE.md - - examples/README.md - examples/data-sources/epilot-schema_schema/data-source.tf - examples/data-sources/epilot-schema_schema_attribute/data-source.tf - examples/data-sources/epilot-schema_schema_capability/data-source.tf @@ -368,6 +367,8 @@ generatedFiles: - internal/sdk/models/shared/textattribute.go - internal/sdk/models/shared/toomanyrequestserror.go - internal/sdk/models/shared/userrelationattribute.go + - internal/sdk/optionalnullable/optionalnullable.go + - internal/sdk/optionalnullable/optionalnullable_test.go - internal/sdk/relations.go - internal/sdk/retry/config.go - internal/sdk/savedviews.go @@ -377,7 +378,6 @@ generatedFiles: - internal/sdk/types/bigint.go - internal/sdk/types/date.go - internal/sdk/types/datetime.go - - internal/sdk/types/decimal.go - internal/sdk/types/pointers.go - internal/validators/DateValidator.go - internal/validators/ExactlyOneChild.go @@ -413,7 +413,7 @@ examples: slug: "contact" responses: "200": - application/json: {"slug": "contact", "feature_flag": "FF_MY_FEATURE_FLAG", "enable_setting": ["360_features"], "name": "Contact", "plural": "Contacts", "description": "Example description", "docs_url": "https://docs.epilot.io/docs/pricing/entities", "category": "customer_relations", "published": false, "draft": false, "icon": "person", "title_template": "{{first_name}} {{last_name}}", "ui_config": {"table_view": {}, "create_view": {}, "edit_view": {"summary_attributes": ["email"]}, "single_view": {}, "list_item": {"summary_attributes": ["email"], "quick_actions": [{"action": "preview_file", "label": "Preview File", "icon": "visibility", "permission": "entity:edit"}]}, "sharing": {"show_sharing_button": true}}, "explicit_search_mappings": {"image": {"index": false, "type": "keyword"}}, "attributes": "", "capabilities": ""} + application/json: {"slug": "contact", "feature_flag": "FF_MY_FEATURE_FLAG", "enable_setting": ["360_features"], "name": "Contact", "plural": "Contacts", "description": "Example description", "docs_url": "https://docs.epilot.io/docs/pricing/entities", "category": "customer_relations", "published": false, "draft": false, "icon": "person", "title_template": "{{first_name}} {{last_name}}", "ui_config": {"table_view": {"enable_thumbnails": false}, "create_view": {}, "edit_view": {"summary_attributes": ["email"]}, "single_view": {}, "list_item": {"summary_attributes": ["email"], "quick_actions": [{"action": "preview_file", "label": "Preview File", "icon": "visibility", "permission": "entity:edit"}]}, "sharing": {"show_sharing_button": true}}, "explicit_search_mappings": {"image": {"index": false, "type": "keyword"}}, "attributes": "", "capabilities": ""} "404": application/json: {"status": 404, "error": "Not Found"} putSchema: @@ -424,10 +424,10 @@ examples: query: draft: false requestBody: - application/json: {"slug": "contact", "feature_flag": "FF_MY_FEATURE_FLAG", "enable_setting": ["360_features"], "name": "Contact", "plural": "Contacts", "description": "Example description", "docs_url": "https://docs.epilot.io/docs/pricing/entities", "category": "customer_relations", "published": false, "draft": false, "icon": "person", "title_template": "{{first_name}} {{last_name}}", "ui_config": {"table_view": {}, "create_view": {}, "edit_view": {"summary_attributes": ["email"]}, "single_view": {"route": "/app/pricing-hub/product/:entityId"}, "list_item": {"summary_attributes": ["email"], "quick_actions": [{"action": "preview_file", "label": "Preview File", "icon": "visibility", "permission": "entity:edit"}]}, "sharing": {"show_sharing_button": true}}, "explicit_search_mappings": {"image": {"index": false, "type": "keyword"}}, "attributes": "", "capabilities": ""} + application/json: {"slug": "contact", "feature_flag": "FF_MY_FEATURE_FLAG", "enable_setting": ["360_features"], "name": "Contact", "plural": "Contacts", "description": "Example description", "docs_url": "https://docs.epilot.io/docs/pricing/entities", "category": "customer_relations", "published": false, "draft": false, "icon": "person", "title_template": "{{first_name}} {{last_name}}", "ui_config": {"table_view": {"enable_thumbnails": false}, "create_view": {}, "edit_view": {"summary_attributes": ["email"]}, "single_view": {"route": "/app/pricing-hub/product/:entityId"}, "list_item": {"summary_attributes": ["email"], "quick_actions": [{"action": "preview_file", "label": "Preview File", "icon": "visibility", "permission": "entity:edit"}]}, "sharing": {"show_sharing_button": true}}, "explicit_search_mappings": {"image": {"index": false, "type": "keyword"}}, "attributes": "", "capabilities": ""} responses: "200": - application/json: {"slug": "contact", "feature_flag": "FF_MY_FEATURE_FLAG", "enable_setting": ["360_features"], "name": "Contact", "plural": "Contacts", "description": "Example description", "docs_url": "https://docs.epilot.io/docs/pricing/entities", "category": "customer_relations", "published": false, "draft": false, "icon": "person", "title_template": "{{first_name}} {{last_name}}", "ui_config": {"table_view": {}, "create_view": {}, "edit_view": {"summary_attributes": ["email"]}, "single_view": {"route": "/app/pricing-hub/product/:entityId"}, "list_item": {"summary_attributes": ["email"], "quick_actions": [{"action": "preview_file", "label": "Preview File", "icon": "visibility", "permission": "entity:edit"}]}, "sharing": {"show_sharing_button": true}}, "explicit_search_mappings": {"image": {"index": false, "type": "keyword"}}, "attributes": "", "capabilities": ""} + application/json: {"slug": "contact", "feature_flag": "FF_MY_FEATURE_FLAG", "enable_setting": ["360_features"], "name": "Contact", "plural": "Contacts", "description": "Example description", "docs_url": "https://docs.epilot.io/docs/pricing/entities", "category": "customer_relations", "published": false, "draft": false, "icon": "person", "title_template": "{{first_name}} {{last_name}}", "ui_config": {"table_view": {"enable_thumbnails": false}, "create_view": {}, "edit_view": {"summary_attributes": ["email"]}, "single_view": {"route": "/app/pricing-hub/product/:entityId"}, "list_item": {"summary_attributes": ["email"], "quick_actions": [{"action": "preview_file", "label": "Preview File", "icon": "visibility", "permission": "entity:edit"}]}, "sharing": {"show_sharing_button": true}}, "explicit_search_mappings": {"image": {"index": false, "type": "keyword"}}, "attributes": "", "capabilities": ""} "429": application/json: {"status": 429, "error": "Too many requests. Try again later."} deleteSchema: @@ -1135,9 +1135,11 @@ examples: query: async: false activity_id: "01F130Q52Q6MWSNS8N2AVXV4JN" + requestBody: + application/json: [{"entity_id": "8d0b632f-ab19-478c-9029-c2cdb5fecef9", "_schema": "contact", "attribute": ""}] responses: "200": - application/json: {"entity_id": "6a1be029-0cba-4747-a5a4-ebf329bcdf66", "attribute": ""} + application/json: {"entity_id": "6a1be029-0cba-4747-a5a4-ebf329bcdf66", "_schema": "contact", "attribute": ""} "404": application/json: {"status": 404, "error": "Not Found"} removeRelations: @@ -1149,6 +1151,8 @@ examples: query: async: false activity_id: "01F130Q52Q6MWSNS8N2AVXV4JN" + requestBody: + application/json: [{"entity_id": "6b1bdcc1-90f4-4568-90a1-2d9b2b06e501", "_schema": "contact", "attribute": ""}] responses: "404": application/json: {"status": 404, "error": "Not Found"} @@ -1216,7 +1220,7 @@ examples: activity_id: "01F130Q52Q6MWSNS8N2AVXV4JN" responses: "200": - application/json: {"entity_id": "de35c212-5ddb-416b-8d5c-54e587d08282", "attribute": ""} + application/json: {"entity_id": "de35c212-5ddb-416b-8d5c-54e587d08282", "_schema": "contact", "attribute": ""} "404": application/json: {"status": 404, "error": "Not Found"} deleteRelation: @@ -1495,3 +1499,4 @@ examples: application/json: {"status": 429, "error": "Too many requests. Try again later."} examplesVersion: 1.0.2 generatedTests: {} +releaseNotes: "## Terraform SDK Changes Detected:\n* `SDK.Entities.deleteEntity()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Schemas.deleteSchemaGroupHeadline()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Taxonomy.bulkDeleteClassifications()`: `response` **Changed** **Breaking** :warning:\n* `SDK.Taxonomy.bulkMergeClassifications()`: `response` **Changed** **Breaking** :warning:\n* `SDK.Schemas.putSchema()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Schemas.deleteSchema()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Taxonomy.bulkMoveClassifications()`: `response` **Changed** **Breaking** :warning:\n* `SDK.Schemas.getSchemaExample()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Taxonomy.getTaxonomyBulkActionJobById()`: `response` **Changed** **Breaking** :warning:\n* `SDK.Taxonomy.getTaxonomyBulkActionJobs()`: \n * `request` **Changed** **Breaking** :warning:\n * `response.[]` **Changed** **Breaking** :warning:\n* `SDK.Schemas.createSchemaAttribute()`: \n * `request` **Changed** **Breaking** :warning:\n * `response` **Changed** **Breaking** :warning:\n* `SDK.Schemas.getSchemaAttribute()`: `response` **Changed** **Breaking** :warning:\n* `SDK.Schemas.putSchemaAttribute()`: \n * `request.AttributeWithCompositeID` **Changed** **Breaking** :warning:\n * `response` **Changed** **Breaking** :warning:\n* `SDK.Schemas.deleteSchemaAttribute()`: `response` **Changed** **Breaking** :warning:\n* `SDK.Schemas.createSchemaCapability()`: \n * `request` **Changed** **Breaking** :warning:\n * `response` **Changed** **Breaking** :warning:\n* `SDK.Schemas.getSchemaCapability()`: `response` **Changed** **Breaking** :warning:\n* `SDK.Schemas.putSchemaCapability()`: \n * `request.EntityCapabilityWithCompositeID` **Changed** **Breaking** :warning:\n * `response` **Changed** **Breaking** :warning:\n* `SDK.Schemas.deleteSchemaCapability()`: `response` **Changed** **Breaking** :warning:\n* `SDK.Schemas.createSchemaGroup()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Schemas.deleteSchemaGroup()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Schemas.createSchemaGroupHeadline()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Saved Views.createSavedView()`: \n * `request.created_by` **Changed**\n * `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Entities.searchEntities()`: \n * `request` **Changed**\n * `response` **Changed** **Breaking** :warning:\n* `SDK.Entities.listEntities()`: \n * `request` **Changed**\n * `response` **Changed** **Breaking** :warning:\n* `SDK.Entities.createEntity()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Entities.validateEntity()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Entities.validateEntityV2()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Entities.upsertEntity()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Entities.restoreEntity()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Activity.attachActivity()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Taxonomy.taxonomiesClassificationsSearch()`: \n * `request.RequestBody.classificationIds.[]` **Changed** **Breaking** :warning:\n * `response` **Changed** **Breaking** :warning:\n* `SDK.Taxonomy.deleteTaxonomyClassification()`: `response` **Changed** **Breaking** :warning:\n* `SDK.Entities.reindexEntity()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Taxonomy.updateTaxonomyClassification()`: \n * `request.TaxonomyClassification` **Changed** **Breaking** :warning:\n * `response` **Changed**\n* `SDK.Taxonomy.updateClassificationsForTaxonomy()`: \n * `request.ClassificationsUpdate.create.[]` **Changed** **Breaking** :warning:\n * `response` **Changed** **Breaking** :warning:\n* `SDK.Activity.createActivity()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Relations.removeRelations()`: \n * `request.RequestBody.[]._schema` **Added**\n * `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Taxonomy.deleteTaxonomy()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Taxonomy.createTaxonomy()`: \n * `request.type` **Added**\n * `response` **Changed** **Breaking** :warning:\n* `SDK.Saved Views.deleteSavedView()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Relations.deleteRelation()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Import-Export.exportEntities()`: \n * `request.EntitySearchParams` **Changed**\n * `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Import-Export.importEntities()`: `response.status[429]` **Added** **Breaking** :warning:\n* `SDK.Entities.wipeAllEntities()`: **Added**\n* `SDK.Relations.updateRelation()`: `response._schema` **Added**\n* `SDK.Taxonomy.listTaxonomies()`: \n * `request.type` **Added**\n * `response.results.[].type` **Added**\n* `SDK.Relations.getRelationsV3()`: `response.relations.[].[RelationItem]._schema` **Added**\n* `SDK.Taxonomy.getTaxonomy()`: `response.type` **Added**\n* `SDK.Taxonomy.updateTaxonomy()`: \n * `request.Taxonomy.type` **Added**\n * `response.type` **Added**\n* `SDK.Relations.getRelationsV2()`: `response.relations.[].[RelationEntity].$relation._schema` **Added**\n* `SDK.Relations.getRelations()`: `response.[].[RelationItem]._schema` **Added**\n* `SDK.Taxonomy.getTaxonomyClassification()`: `response` **Changed**\n* `SDK.Activity.getEntityActivityFeed()`: `request` **Changed**\n* `SDK.Relations.addRelations()`: \n * `request.RequestBody.[]._schema` **Added**\n * `response._schema` **Added**\n* `SDK.Taxonomy.taxonomyAutocomplete()`: `response.results.[]` **Changed**\n* `SDK.Schemas.listAvailableCapabilities()`: **Added**\n* `SDK.Schemas.listTaxonomyClassificationsForSchema()`: `response.results.[]` **Changed**\n* `SDK.Schemas.getSchemaVersions()`: \n * `request` **Changed**\n * `response` **Changed**\n* `SDK.Schemas.getJsonSchema()`: \n * `request.dereference` **Added**\n* `SDK.Taxonomy.cancelBulkAction()`: **Added**\n* `SDK.Taxonomy.createTaxonomyClassification()`: **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index b5184bb0..b53aca52 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -16,12 +16,15 @@ generation: auth: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false + hoistGlobalSecurity: true + schemas: + allOfMergeStrategy: shallowMerge tests: generateTests: true generateNewTests: false skipResponseBodyAssertions: false terraform: - version: 0.17.0 + version: 0.18.0 additionalDataSources: [] additionalDependencies: {} additionalEphemeralResources: [] @@ -36,3 +39,4 @@ terraform: enableTypeDeduplication: true environmentVariables: [] packageName: epilot-schema + unionDeserializationStrategy: populated-fields diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 7ea43433..71e371c9 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,19 +1,19 @@ -speakeasyVersion: 1.529.1 +speakeasyVersion: 1.642.2 sources: schema: sourceNamespace: schema - sourceRevisionDigest: sha256:16b44f3b8bc7302a4a1e5618095fbdabf3db0c71a50c178e6ff4e88e71b1b48e - sourceBlobDigest: sha256:25adef9067fb0ce8dfdb4db1555b2a22d8c6f8ef9253f658d3be940be481788b + sourceRevisionDigest: sha256:c972764cbbd3ab37e667bba22a7eaaf5f9944c427196698b6c2beab172ddacee + sourceBlobDigest: sha256:e6497a91cb9bf0cf1f5fad7ad71680844deaffe76d2f18037712de22e17735fd tags: - latest - - speakeasy-sdk-regen-1743753975 - - 1.0.0 + - speakeasy-sdk-regen-1758759665 + - 2.0.0 targets: terraform: source: schema sourceNamespace: schema - sourceRevisionDigest: sha256:16b44f3b8bc7302a4a1e5618095fbdabf3db0c71a50c178e6ff4e88e71b1b48e - sourceBlobDigest: sha256:25adef9067fb0ce8dfdb4db1555b2a22d8c6f8ef9253f658d3be940be481788b + sourceRevisionDigest: sha256:c972764cbbd3ab37e667bba22a7eaaf5f9944c427196698b6c2beab172ddacee + sourceBlobDigest: sha256:e6497a91cb9bf0cf1f5fad7ad71680844deaffe76d2f18037712de22e17735fd workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index d340b4ac..c554d162 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ terraform { required_providers { epilot-schema = { source = "epilot/epilot-schema" - version = "0.17.0" + version = "0.18.0" } } } diff --git a/RELEASES.md b/RELEASES.md index cdc1d82e..70cc75b2 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -26,4 +26,14 @@ Based on: ### Generated - [terraform v0.16.0] . ### Releases -- [Terraform v0.16.0] https://registry.terraform.io/providers/epilot/epilot-schema/0.16.0 - . \ No newline at end of file +- [Terraform v0.16.0] https://registry.terraform.io/providers/epilot/epilot-schema/0.16.0 - . + +## 2025-10-30 00:22:19 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.642.2 (2.731.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [terraform v0.18.0] . +### Releases +- [Terraform v0.18.0] https://registry.terraform.io/providers/epilot/epilot-schema/0.18.0 - . \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 9315e57f..a8a516b7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -22,7 +22,7 @@ terraform { required_providers { epilot-schema = { source = "epilot/epilot-schema" - version = "0.17.0" + version = "0.18.0" } } } diff --git a/docs/resources/schema_attribute.md b/docs/resources/schema_attribute.md index 4c0c7ff4..ae856162 100644 --- a/docs/resources/schema_attribute.md +++ b/docs/resources/schema_attribute.md @@ -14,209 +14,6 @@ SchemaAttribute Resource ```terraform resource "epilot-schema_schema_attribute" "my_schemaattribute" { - address_attribute = { - constraints = { - # ... - } - default_address_fields = [ - "..." - ] - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "address" - value_formatter = "...my_value_formatter..." - } - address_relation_attribute = { - constraints = { - # ... - } - default_address_fields = [ - "..." - ] - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "relation_address" - value_formatter = "...my_value_formatter..." - } - automation_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "automation" - value_formatter = "...my_value_formatter..." - } - boolean_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - display_type = "checkbox" - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "boolean" - value_formatter = "...my_value_formatter..." - } computed_attribute = { amount_field = "...my_amount_field..." computed = true @@ -269,1525 +66,6 @@ resource "epilot-schema_schema_attribute" "my_schemaattribute" { type = "computed" value_formatter = "{{formatCurrencyAttribute entity attribute locale}}" } - consent_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - identifiers = [ - "..." - ] - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - topic = "...my_topic..." - type = "consent" - value_formatter = "...my_value_formatter..." - } - country_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "country" - value_formatter = "...my_value_formatter..." - } - currency_attribute = { - constraints = { - # ... - } - currency = [ - { - one = { - code = "...my_code..." - description = "...my_description..." - flag = "...my_flag..." - symbol = "...my_symbol..." - } - } - ] - currency_selector_only = false - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "currency" - value_formatter = "...my_value_formatter..." - } - date_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "date" - value_formatter = "...my_value_formatter..." - } - email_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "email" - value_formatter = "...my_value_formatter..." - } - file_attribute = { - allowed_extensions = [ - "csv" - ] - constraints = { - # ... - } - default_access_control = "private" - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - display_images_landscaped = true - enable_description = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - multiple = true - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "file" - value_formatter = "...my_value_formatter..." - } - internal_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "internal" - value_formatter = "...my_value_formatter..." - } - internal_user_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = false - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "internal_user" - value_formatter = "...my_value_formatter..." - } - invitation_email_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "invitation_email" - value_formatter = "...my_value_formatter..." - } - link_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "link" - value_formatter = "...my_value_formatter..." - } - message_email_address_attribute = { - address = "...my_address..." - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - email_type = "...my_email_type..." - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - send_status = "...my_send_status..." - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "message_email_address" - value_formatter = "...my_value_formatter..." - } - multi_select_attribute = { - allow_any = true - allow_extra_options = true - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - disable_case_sensitive = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - options = [ - { - str = "...my_str..." - } - ] - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "checkbox" - value_formatter = "...my_value_formatter..." - } - number_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - format = "...my_format..." - group = "...my_group..." - has_primary = false - hidden = false - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - show_separator = true - sortable = true - type = "number" - value_formatter = "...my_value_formatter..." - } - ordered_list_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "ordered_list" - value_formatter = "...my_value_formatter..." - } - partner_organisation_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = false - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "partner_organisation" - value_formatter = "...my_value_formatter..." - } - partner_status_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = false - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "partner_status" - value_formatter = "...my_value_formatter..." - } - payment_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "payment" - value_formatter = "...my_value_formatter..." - } - payment_method_relation_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "relation_payment_method" - value_formatter = "...my_value_formatter..." - } - phone_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "phone" - value_formatter = "...my_value_formatter..." - } - portal_access_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = false - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "portal_access" - value_formatter = "...my_value_formatter..." - } - price_component_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "price_component" - value_formatter = "...my_value_formatter..." - } - purpose_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "purpose" - value_formatter = "...my_value_formatter..." - } - relation_attribute = { - actions = [ - { - action_type = "create_new" - default = false - feature_flag = "...my_feature_flag..." - label = "...my_label..." - new_entity_item = "{ \"see\": \"documentation\" }" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - } - ] - add_button_label = "...my_add_button_label..." - allowed_schemas = [ - "contact" - ] - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - details_view_mode_enabled = true - drawer_size = "large" - edit_mode = "list-view" - enable_relation_picker = false - enable_relation_tags = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - relation_affinity_mode = "strong" - relation_picker_filter = { - q = "NOT is_composite_price:true" - } - relation_type = "has_one" - render_condition = "...my_render_condition..." - repeatable = true - required = false - reverse_attributes = { - key = "value" - } - schema = "contact" - search_placeholder = "...my_search_placeholder..." - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - summary_fields = [ - { - summary_field = { - display_as = "...my_display_as..." - field = "...my_field..." - } - } - ] - type = "relation" - value_formatter = "...my_value_formatter..." - } - select_attribute = { - allow_any = false - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - options = "{ \"see\": \"documentation\" }" - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "radio" - value_formatter = "...my_value_formatter..." - } - sequence_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - prefix = "OR-" - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - start_number = 3 - type = "sequence" - value_formatter = "...my_value_formatter..." - } - status_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - options = [ - { - two = { - title = "...my_title..." - value = "...my_value..." - } - } - ] - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "status" - value_formatter = "...my_value_formatter..." - } - tags_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - options = [ - "..." - ] - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - suggestions = [ - "..." - ] - type = "tags" - value_formatter = "...my_value_formatter..." - } - text_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - multiline = true - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = false - rich_text = true - rows = "{ \"see\": \"documentation\" }" - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "string" - value_formatter = "...my_value_formatter..." - } - user_relation_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - multiple = true - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = false - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "relation_user" - value_formatter = "...my_value_formatter..." - } } ``` diff --git a/examples/README.md b/examples/README.md deleted file mode 100644 index f87f5c14..00000000 --- a/examples/README.md +++ /dev/null @@ -1 +0,0 @@ -# TODO \ No newline at end of file diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index f8ecf5ec..f300e43f 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { epilot-schema = { source = "epilot/epilot-schema" - version = "0.17.0" + version = "0.18.0" } } } diff --git a/examples/resources/epilot-schema_schema_attribute/resource.tf b/examples/resources/epilot-schema_schema_attribute/resource.tf index 633a8c2e..41e3e300 100644 --- a/examples/resources/epilot-schema_schema_attribute/resource.tf +++ b/examples/resources/epilot-schema_schema_attribute/resource.tf @@ -1,207 +1,4 @@ resource "epilot-schema_schema_attribute" "my_schemaattribute" { - address_attribute = { - constraints = { - # ... - } - default_address_fields = [ - "..." - ] - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "address" - value_formatter = "...my_value_formatter..." - } - address_relation_attribute = { - constraints = { - # ... - } - default_address_fields = [ - "..." - ] - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "relation_address" - value_formatter = "...my_value_formatter..." - } - automation_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "automation" - value_formatter = "...my_value_formatter..." - } - boolean_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - display_type = "checkbox" - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "boolean" - value_formatter = "...my_value_formatter..." - } computed_attribute = { amount_field = "...my_amount_field..." computed = true @@ -254,1523 +51,4 @@ resource "epilot-schema_schema_attribute" "my_schemaattribute" { type = "computed" value_formatter = "{{formatCurrencyAttribute entity attribute locale}}" } - consent_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - identifiers = [ - "..." - ] - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - topic = "...my_topic..." - type = "consent" - value_formatter = "...my_value_formatter..." - } - country_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "country" - value_formatter = "...my_value_formatter..." - } - currency_attribute = { - constraints = { - # ... - } - currency = [ - { - one = { - code = "...my_code..." - description = "...my_description..." - flag = "...my_flag..." - symbol = "...my_symbol..." - } - } - ] - currency_selector_only = false - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "currency" - value_formatter = "...my_value_formatter..." - } - date_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "date" - value_formatter = "...my_value_formatter..." - } - email_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "email" - value_formatter = "...my_value_formatter..." - } - file_attribute = { - allowed_extensions = [ - "csv" - ] - constraints = { - # ... - } - default_access_control = "private" - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - display_images_landscaped = true - enable_description = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - multiple = true - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "file" - value_formatter = "...my_value_formatter..." - } - internal_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "internal" - value_formatter = "...my_value_formatter..." - } - internal_user_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = false - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "internal_user" - value_formatter = "...my_value_formatter..." - } - invitation_email_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "invitation_email" - value_formatter = "...my_value_formatter..." - } - link_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "link" - value_formatter = "...my_value_formatter..." - } - message_email_address_attribute = { - address = "...my_address..." - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - email_type = "...my_email_type..." - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - send_status = "...my_send_status..." - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "message_email_address" - value_formatter = "...my_value_formatter..." - } - multi_select_attribute = { - allow_any = true - allow_extra_options = true - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - disable_case_sensitive = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - options = [ - { - str = "...my_str..." - } - ] - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "checkbox" - value_formatter = "...my_value_formatter..." - } - number_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - format = "...my_format..." - group = "...my_group..." - has_primary = false - hidden = false - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - show_separator = true - sortable = true - type = "number" - value_formatter = "...my_value_formatter..." - } - ordered_list_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "ordered_list" - value_formatter = "...my_value_formatter..." - } - partner_organisation_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = false - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "partner_organisation" - value_formatter = "...my_value_formatter..." - } - partner_status_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = false - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "partner_status" - value_formatter = "...my_value_formatter..." - } - payment_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "payment" - value_formatter = "...my_value_formatter..." - } - payment_method_relation_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "relation_payment_method" - value_formatter = "...my_value_formatter..." - } - phone_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "phone" - value_formatter = "...my_value_formatter..." - } - portal_access_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = false - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - type = "portal_access" - value_formatter = "...my_value_formatter..." - } - price_component_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "price_component" - value_formatter = "...my_value_formatter..." - } - purpose_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - type = "purpose" - value_formatter = "...my_value_formatter..." - } - relation_attribute = { - actions = [ - { - action_type = "create_new" - default = false - feature_flag = "...my_feature_flag..." - label = "...my_label..." - new_entity_item = "{ \"see\": \"documentation\" }" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - } - ] - add_button_label = "...my_add_button_label..." - allowed_schemas = [ - "contact" - ] - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - details_view_mode_enabled = true - drawer_size = "large" - edit_mode = "list-view" - enable_relation_picker = false - enable_relation_tags = true - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - relation_affinity_mode = "strong" - relation_picker_filter = { - q = "NOT is_composite_price:true" - } - relation_type = "has_one" - render_condition = "...my_render_condition..." - repeatable = true - required = false - reverse_attributes = { - key = "value" - } - schema = "contact" - search_placeholder = "...my_search_placeholder..." - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = false - summary_fields = [ - { - summary_field = { - display_as = "...my_display_as..." - field = "...my_field..." - } - } - ] - type = "relation" - value_formatter = "...my_value_formatter..." - } - select_attribute = { - allow_any = false - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - options = "{ \"see\": \"documentation\" }" - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "radio" - value_formatter = "...my_value_formatter..." - } - sequence_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = false - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - prefix = "OR-" - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - start_number = 3 - type = "sequence" - value_formatter = "...my_value_formatter..." - } - status_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - options = [ - { - two = { - title = "...my_title..." - value = "...my_value..." - } - } - ] - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = true - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "status" - value_formatter = "...my_value_formatter..." - } - tags_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - name = "...my_name..." - options = [ - "..." - ] - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = false - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = true - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = true - suggestions = [ - "..." - ] - type = "tags" - value_formatter = "...my_value_formatter..." - } - text_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = false - entity_builder_disable_edit = true - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = false - hidden = true - hide_label = false - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - multiline = true - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = false - render_condition = "...my_render_condition..." - repeatable = true - required = false - rich_text = true - rows = "{ \"see\": \"documentation\" }" - schema = "contact" - settings_flag = [ - { - enabled = true - name = "...my_name..." - } - ] - show_in_table = true - sortable = false - type = "string" - value_formatter = "...my_value_formatter..." - } - user_relation_attribute = { - constraints = { - # ... - } - default_value = "{ \"see\": \"documentation\" }" - deprecated = true - entity_builder_disable_edit = false - feature_flag = "FF_MY_FEATURE_FLAG" - group = "...my_group..." - has_primary = true - hidden = true - hide_label = true - icon = "...my_icon..." - id = "d5839b94-ba20-4225-a78e-76951d352bd6" - info_helpers = { - hint_custom_component = "...my_hint_custom_component..." - hint_text = "...my_hint_text..." - hint_text_key = "...my_hint_text_key..." - hint_tooltip_placement = "top" - } - label = "...my_label..." - layout = "full_width" - manifest = [ - "123e4567-e89b-12d3-a456-426614174000" - ] - multiple = true - name = "...my_name..." - order = 0 - placeholder = "...my_placeholder..." - preview_value_formatter = "...my_preview_value_formatter..." - protected = true - purpose = [ - "taxonomy-slug:classification-slug" - ] - readonly = true - render_condition = "...my_render_condition..." - repeatable = false - required = false - schema = "contact" - settings_flag = [ - { - enabled = false - name = "...my_name..." - } - ] - show_in_table = false - sortable = true - type = "relation_user" - value_formatter = "...my_value_formatter..." - } } \ No newline at end of file diff --git a/go.mod b/go.mod index 268d14cb..d3ae4c3d 100644 --- a/go.mod +++ b/go.mod @@ -3,14 +3,14 @@ module github.com/epilot/terraform-provider-epilot-schema go 1.23.7 require ( - github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 github.com/hashicorp/go-uuid v1.0.3 github.com/hashicorp/terraform-plugin-docs v0.22.0 - github.com/hashicorp/terraform-plugin-framework v1.15.0 + github.com/hashicorp/terraform-plugin-framework v1.15.1 github.com/hashicorp/terraform-plugin-framework-jsontypes v0.2.0 - github.com/hashicorp/terraform-plugin-framework-validators v0.17.0 + github.com/hashicorp/terraform-plugin-framework-validators v0.18.0 github.com/hashicorp/terraform-plugin-go v0.28.0 github.com/hashicorp/terraform-plugin-log v0.9.0 + github.com/stretchr/testify v1.8.3 ) require ( @@ -25,6 +25,7 @@ require ( github.com/bgentry/speakeasy v0.1.0 // indirect github.com/bmatcuk/doublestar/v4 v4.8.1 // indirect github.com/cloudflare/circl v1.6.1 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect github.com/fatih/color v1.16.0 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/uuid v1.6.0 // indirect @@ -52,6 +53,7 @@ require ( github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/oklog/run v1.0.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect github.com/posener/complete v1.2.3 // indirect github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.5.0 // indirect diff --git a/go.sum b/go.sum index 039f01f7..0bd0bd8c 100644 --- a/go.sum +++ b/go.sum @@ -33,8 +33,6 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= -github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 h1:S92OBrGuLLZsyM5ybUzgc/mPjIYk2AZqufieooe98uw= -github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= @@ -91,12 +89,12 @@ github.com/hashicorp/terraform-json v0.25.0 h1:rmNqc/CIfcWawGiwXmRuiXJKEiJu1ntGo github.com/hashicorp/terraform-json v0.25.0/go.mod h1:sMKS8fiRDX4rVlR6EJUMudg1WcanxCMoWwTLkgZP/vc= github.com/hashicorp/terraform-plugin-docs v0.22.0 h1:fwIDStbFel1PPNkM+mDPnpB4efHZBdGoMz/zt5FbTDw= github.com/hashicorp/terraform-plugin-docs v0.22.0/go.mod h1:55DJVyZ7BNK4t/lANcQ1YpemRuS6KsvIO1BbGA+xzGE= -github.com/hashicorp/terraform-plugin-framework v1.15.0 h1:LQ2rsOfmDLxcn5EeIwdXFtr03FVsNktbbBci8cOKdb4= -github.com/hashicorp/terraform-plugin-framework v1.15.0/go.mod h1:hxrNI/GY32KPISpWqlCoTLM9JZsGH3CyYlir09bD/fI= +github.com/hashicorp/terraform-plugin-framework v1.15.1 h1:2mKDkwb8rlx/tvJTlIcpw0ykcmvdWv+4gY3SIgk8Pq8= +github.com/hashicorp/terraform-plugin-framework v1.15.1/go.mod h1:hxrNI/GY32KPISpWqlCoTLM9JZsGH3CyYlir09bD/fI= github.com/hashicorp/terraform-plugin-framework-jsontypes v0.2.0 h1:SJXL5FfJJm17554Kpt9jFXngdM6fXbnUnZ6iT2IeiYA= github.com/hashicorp/terraform-plugin-framework-jsontypes v0.2.0/go.mod h1:p0phD0IYhsu9bR4+6OetVvvH59I6LwjXGnTVEr8ox6E= -github.com/hashicorp/terraform-plugin-framework-validators v0.17.0 h1:0uYQcqqgW3BMyyve07WJgpKorXST3zkpzvrOnf3mpbg= -github.com/hashicorp/terraform-plugin-framework-validators v0.17.0/go.mod h1:VwdfgE/5Zxm43flraNa0VjcvKQOGVrcO4X8peIri0T0= +github.com/hashicorp/terraform-plugin-framework-validators v0.18.0 h1:OQnlOt98ua//rCw+QhBbSqfW3QbwtVrcdWeQN5gI3Hw= +github.com/hashicorp/terraform-plugin-framework-validators v0.18.0/go.mod h1:lZvZvagw5hsJwuY7mAY6KUz45/U6fiDR0CzQAwWD0CA= github.com/hashicorp/terraform-plugin-go v0.28.0 h1:zJmu2UDwhVN0J+J20RE5huiF3XXlTYVIleaevHZgKPA= github.com/hashicorp/terraform-plugin-go v0.28.0/go.mod h1:FDa2Bb3uumkTGSkTFpWSOwWJDwA7bf3vdP3ltLDTH6o= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= diff --git a/internal/provider/schema_resource_sdk.go b/internal/provider/schema_resource_sdk.go index 1aacdda2..f6caadd4 100644 --- a/internal/provider/schema_resource_sdk.go +++ b/internal/provider/schema_resource_sdk.go @@ -674,21 +674,21 @@ func (r *SchemaResourceModel) ToSharedEntitySchemaItem(ctx context.Context) (*sh } var redirectEntityView *shared.RedirectEntityView if r.UIConfig.TableView.RedirectEntityView != nil { - viewType1 := new(shared.RedirectEntityViewViewType) - if !r.UIConfig.TableView.RedirectEntityView.ViewType.IsUnknown() && !r.UIConfig.TableView.RedirectEntityView.ViewType.IsNull() { - *viewType1 = shared.RedirectEntityViewViewType(r.UIConfig.TableView.RedirectEntityView.ViewType.ValueString()) - } else { - viewType1 = nil - } route := new(string) if !r.UIConfig.TableView.RedirectEntityView.Route.IsUnknown() && !r.UIConfig.TableView.RedirectEntityView.Route.IsNull() { *route = r.UIConfig.TableView.RedirectEntityView.Route.ValueString() } else { route = nil } + viewType1 := new(shared.RedirectEntityViewViewType) + if !r.UIConfig.TableView.RedirectEntityView.ViewType.IsUnknown() && !r.UIConfig.TableView.RedirectEntityView.ViewType.IsNull() { + *viewType1 = shared.RedirectEntityViewViewType(r.UIConfig.TableView.RedirectEntityView.ViewType.ValueString()) + } else { + viewType1 = nil + } redirectEntityView = &shared.RedirectEntityView{ - ViewType: viewType1, Route: route, + ViewType: viewType1, } } if redirectEntityView != nil { @@ -743,21 +743,21 @@ func (r *SchemaResourceModel) ToSharedEntitySchemaItem(ctx context.Context) (*sh } var redirectEntityView1 *shared.RedirectEntityView if r.UIConfig.CreateView.RedirectEntityView != nil { - viewType4 := new(shared.RedirectEntityViewViewType) - if !r.UIConfig.CreateView.RedirectEntityView.ViewType.IsUnknown() && !r.UIConfig.CreateView.RedirectEntityView.ViewType.IsNull() { - *viewType4 = shared.RedirectEntityViewViewType(r.UIConfig.CreateView.RedirectEntityView.ViewType.ValueString()) - } else { - viewType4 = nil - } route1 := new(string) if !r.UIConfig.CreateView.RedirectEntityView.Route.IsUnknown() && !r.UIConfig.CreateView.RedirectEntityView.Route.IsNull() { *route1 = r.UIConfig.CreateView.RedirectEntityView.Route.ValueString() } else { route1 = nil } + viewType4 := new(shared.RedirectEntityViewViewType) + if !r.UIConfig.CreateView.RedirectEntityView.ViewType.IsUnknown() && !r.UIConfig.CreateView.RedirectEntityView.ViewType.IsNull() { + *viewType4 = shared.RedirectEntityViewViewType(r.UIConfig.CreateView.RedirectEntityView.ViewType.ValueString()) + } else { + viewType4 = nil + } redirectEntityView1 = &shared.RedirectEntityView{ - ViewType: viewType4, Route: route1, + ViewType: viewType4, } } if redirectEntityView1 != nil { @@ -787,12 +787,6 @@ func (r *SchemaResourceModel) ToSharedEntitySchemaItem(ctx context.Context) (*sh if r.UIConfig.EditView != nil { var entityDefaultEdit *shared.EntityDefaultEdit if r.UIConfig.EditView.EntityDefaultEdit != nil { - viewType6 := new(shared.EntityDefaultEditViewType) - if !r.UIConfig.EditView.EntityDefaultEdit.ViewType.IsUnknown() && !r.UIConfig.EditView.EntityDefaultEdit.ViewType.IsNull() { - *viewType6 = shared.EntityDefaultEditViewType(r.UIConfig.EditView.EntityDefaultEdit.ViewType.ValueString()) - } else { - viewType6 = nil - } searchParams1 := make(map[string]string) for searchParamsKey1, searchParamsValue1 := range r.UIConfig.EditView.EntityDefaultEdit.SearchParams { var searchParamsInst1 string @@ -804,10 +798,16 @@ func (r *SchemaResourceModel) ToSharedEntitySchemaItem(ctx context.Context) (*sh for _, summaryAttributesItem := range r.UIConfig.EditView.EntityDefaultEdit.SummaryAttributes { summaryAttributes = append(summaryAttributes, summaryAttributesItem.ValueString()) } + viewType6 := new(shared.EntityDefaultEditViewType) + if !r.UIConfig.EditView.EntityDefaultEdit.ViewType.IsUnknown() && !r.UIConfig.EditView.EntityDefaultEdit.ViewType.IsNull() { + *viewType6 = shared.EntityDefaultEditViewType(r.UIConfig.EditView.EntityDefaultEdit.ViewType.ValueString()) + } else { + viewType6 = nil + } entityDefaultEdit = &shared.EntityDefaultEdit{ - ViewType: viewType6, SearchParams: searchParams1, SummaryAttributes: summaryAttributes, + ViewType: viewType6, } } if entityDefaultEdit != nil { @@ -817,21 +817,21 @@ func (r *SchemaResourceModel) ToSharedEntitySchemaItem(ctx context.Context) (*sh } var redirectEntityView2 *shared.RedirectEntityView if r.UIConfig.EditView.RedirectEntityView != nil { - viewType7 := new(shared.RedirectEntityViewViewType) - if !r.UIConfig.EditView.RedirectEntityView.ViewType.IsUnknown() && !r.UIConfig.EditView.RedirectEntityView.ViewType.IsNull() { - *viewType7 = shared.RedirectEntityViewViewType(r.UIConfig.EditView.RedirectEntityView.ViewType.ValueString()) - } else { - viewType7 = nil - } route2 := new(string) if !r.UIConfig.EditView.RedirectEntityView.Route.IsUnknown() && !r.UIConfig.EditView.RedirectEntityView.Route.IsNull() { *route2 = r.UIConfig.EditView.RedirectEntityView.Route.ValueString() } else { route2 = nil } + viewType7 := new(shared.RedirectEntityViewViewType) + if !r.UIConfig.EditView.RedirectEntityView.ViewType.IsUnknown() && !r.UIConfig.EditView.RedirectEntityView.ViewType.IsNull() { + *viewType7 = shared.RedirectEntityViewViewType(r.UIConfig.EditView.RedirectEntityView.ViewType.ValueString()) + } else { + viewType7 = nil + } redirectEntityView2 = &shared.RedirectEntityView{ - ViewType: viewType7, Route: route2, + ViewType: viewType7, } } if redirectEntityView2 != nil { @@ -861,12 +861,6 @@ func (r *SchemaResourceModel) ToSharedEntitySchemaItem(ctx context.Context) (*sh if r.UIConfig.SingleView != nil { var entityDefaultEdit1 *shared.EntityDefaultEdit if r.UIConfig.SingleView.EntityDefaultEdit != nil { - viewType9 := new(shared.EntityDefaultEditViewType) - if !r.UIConfig.SingleView.EntityDefaultEdit.ViewType.IsUnknown() && !r.UIConfig.SingleView.EntityDefaultEdit.ViewType.IsNull() { - *viewType9 = shared.EntityDefaultEditViewType(r.UIConfig.SingleView.EntityDefaultEdit.ViewType.ValueString()) - } else { - viewType9 = nil - } searchParams2 := make(map[string]string) for searchParamsKey2, searchParamsValue2 := range r.UIConfig.SingleView.EntityDefaultEdit.SearchParams { var searchParamsInst2 string @@ -878,10 +872,16 @@ func (r *SchemaResourceModel) ToSharedEntitySchemaItem(ctx context.Context) (*sh for _, summaryAttributesItem1 := range r.UIConfig.SingleView.EntityDefaultEdit.SummaryAttributes { summaryAttributes1 = append(summaryAttributes1, summaryAttributesItem1.ValueString()) } + viewType9 := new(shared.EntityDefaultEditViewType) + if !r.UIConfig.SingleView.EntityDefaultEdit.ViewType.IsUnknown() && !r.UIConfig.SingleView.EntityDefaultEdit.ViewType.IsNull() { + *viewType9 = shared.EntityDefaultEditViewType(r.UIConfig.SingleView.EntityDefaultEdit.ViewType.ValueString()) + } else { + viewType9 = nil + } entityDefaultEdit1 = &shared.EntityDefaultEdit{ - ViewType: viewType9, SearchParams: searchParams2, SummaryAttributes: summaryAttributes1, + ViewType: viewType9, } } if entityDefaultEdit1 != nil { @@ -889,45 +889,45 @@ func (r *SchemaResourceModel) ToSharedEntitySchemaItem(ctx context.Context) (*sh EntityDefaultEdit: entityDefaultEdit1, } } - var redirectEntityView3 *shared.RedirectEntityView - if r.UIConfig.SingleView.RedirectEntityView != nil { - viewType10 := new(shared.RedirectEntityViewViewType) - if !r.UIConfig.SingleView.RedirectEntityView.ViewType.IsUnknown() && !r.UIConfig.SingleView.RedirectEntityView.ViewType.IsNull() { - *viewType10 = shared.RedirectEntityViewViewType(r.UIConfig.SingleView.RedirectEntityView.ViewType.ValueString()) + var entityViewDisabled3 *shared.EntityViewDisabled + if r.UIConfig.SingleView.EntityViewDisabled != nil { + viewType10 := new(shared.EntityViewDisabledViewType) + if !r.UIConfig.SingleView.EntityViewDisabled.ViewType.IsUnknown() && !r.UIConfig.SingleView.EntityViewDisabled.ViewType.IsNull() { + *viewType10 = shared.EntityViewDisabledViewType(r.UIConfig.SingleView.EntityViewDisabled.ViewType.ValueString()) } else { viewType10 = nil } - route3 := new(string) - if !r.UIConfig.SingleView.RedirectEntityView.Route.IsUnknown() && !r.UIConfig.SingleView.RedirectEntityView.Route.IsNull() { - *route3 = r.UIConfig.SingleView.RedirectEntityView.Route.ValueString() - } else { - route3 = nil - } - redirectEntityView3 = &shared.RedirectEntityView{ + entityViewDisabled3 = &shared.EntityViewDisabled{ ViewType: viewType10, - Route: route3, } } - if redirectEntityView3 != nil { + if entityViewDisabled3 != nil { singleView = &shared.SingleView{ - RedirectEntityView: redirectEntityView3, + EntityViewDisabled: entityViewDisabled3, } } - var entityViewDisabled3 *shared.EntityViewDisabled - if r.UIConfig.SingleView.EntityViewDisabled != nil { - viewType11 := new(shared.EntityViewDisabledViewType) - if !r.UIConfig.SingleView.EntityViewDisabled.ViewType.IsUnknown() && !r.UIConfig.SingleView.EntityViewDisabled.ViewType.IsNull() { - *viewType11 = shared.EntityViewDisabledViewType(r.UIConfig.SingleView.EntityViewDisabled.ViewType.ValueString()) + var redirectEntityView3 *shared.RedirectEntityView + if r.UIConfig.SingleView.RedirectEntityView != nil { + route3 := new(string) + if !r.UIConfig.SingleView.RedirectEntityView.Route.IsUnknown() && !r.UIConfig.SingleView.RedirectEntityView.Route.IsNull() { + *route3 = r.UIConfig.SingleView.RedirectEntityView.Route.ValueString() + } else { + route3 = nil + } + viewType11 := new(shared.RedirectEntityViewViewType) + if !r.UIConfig.SingleView.RedirectEntityView.ViewType.IsUnknown() && !r.UIConfig.SingleView.RedirectEntityView.ViewType.IsNull() { + *viewType11 = shared.RedirectEntityViewViewType(r.UIConfig.SingleView.RedirectEntityView.ViewType.ValueString()) } else { viewType11 = nil } - entityViewDisabled3 = &shared.EntityViewDisabled{ + redirectEntityView3 = &shared.RedirectEntityView{ + Route: route3, ViewType: viewType11, } } - if entityViewDisabled3 != nil { + if redirectEntityView3 != nil { singleView = &shared.SingleView{ - EntityViewDisabled: entityViewDisabled3, + RedirectEntityView: redirectEntityView3, } } } diff --git a/internal/sdk/.gitignore b/internal/sdk/.gitignore index a59a2b4f..91567019 100644 --- a/internal/sdk/.gitignore +++ b/internal/sdk/.gitignore @@ -1,3 +1,5 @@ +.env +.env.local .DS_Store **/.speakeasy/temp/ **/.speakeasy/logs/ diff --git a/internal/sdk/activity.go b/internal/sdk/activity.go index 3c230b72..8d8a6dfe 100644 --- a/internal/sdk/activity.go +++ b/internal/sdk/activity.go @@ -67,7 +67,7 @@ func (s *Activity) CreateActivity(ctx context.Context, request operations.Create BaseURL: baseURL, Context: ctx, OperationID: "createActivity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Activity", "json", `request:"mediaType=application/json"`) @@ -300,7 +300,7 @@ func (s *Activity) GetActivity(ctx context.Context, request operations.GetActivi BaseURL: baseURL, Context: ctx, OperationID: "getActivity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -524,7 +524,7 @@ func (s *Activity) AttachActivity(ctx context.Context, request operations.Attach BaseURL: baseURL, Context: ctx, OperationID: "attachActivity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -771,7 +771,7 @@ func (s *Activity) GetEntityActivityFeed(ctx context.Context, request operations BaseURL: baseURL, Context: ctx, OperationID: "getEntityActivityFeed", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } diff --git a/internal/sdk/entities.go b/internal/sdk/entities.go index 5118c675..588ed2c6 100644 --- a/internal/sdk/entities.go +++ b/internal/sdk/entities.go @@ -133,7 +133,7 @@ func (s *Entities) SearchEntities(ctx context.Context, request *shared.EntitySea BaseURL: baseURL, Context: ctx, OperationID: "searchEntities", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -378,7 +378,7 @@ func (s *Entities) ListEntities(ctx context.Context, request *shared.EntityListP BaseURL: baseURL, Context: ctx, OperationID: "listEntities", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -646,7 +646,7 @@ func (s *Entities) CreateEntity(ctx context.Context, request operations.CreateEn BaseURL: baseURL, Context: ctx, OperationID: "createEntity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Entity", "json", `request:"mediaType=application/json"`) @@ -900,7 +900,7 @@ func (s *Entities) ValidateEntity(ctx context.Context, request operations.Valida BaseURL: baseURL, Context: ctx, OperationID: "validateEntity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Entity", "json", `request:"mediaType=application/json"`) @@ -1150,7 +1150,7 @@ func (s *Entities) ValidateEntityV2(ctx context.Context, request operations.Vali BaseURL: baseURL, Context: ctx, OperationID: "validateEntityV2", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Entity", "json", `request:"mediaType=application/json"`) @@ -1407,7 +1407,7 @@ func (s *Entities) UpsertEntity(ctx context.Context, request operations.UpsertEn BaseURL: baseURL, Context: ctx, OperationID: "upsertEntity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`) @@ -1668,7 +1668,7 @@ func (s *Entities) GetEntityV2(ctx context.Context, request operations.GetEntity BaseURL: baseURL, Context: ctx, OperationID: "getEntityV2", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1896,7 +1896,7 @@ func (s *Entities) RestoreEntity(ctx context.Context, request operations.Restore BaseURL: baseURL, Context: ctx, OperationID: "restoreEntity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`) @@ -2132,7 +2132,7 @@ func (s *Entities) ReindexEntity(ctx context.Context, request operations.Reindex BaseURL: baseURL, Context: ctx, OperationID: "reindexEntity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`) @@ -2429,7 +2429,7 @@ func (s *Entities) GetEntity(ctx context.Context, request operations.GetEntityRe BaseURL: baseURL, Context: ctx, OperationID: "getEntity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2679,7 +2679,7 @@ func (s *Entities) UpdateEntity(ctx context.Context, request operations.UpdateEn BaseURL: baseURL, Context: ctx, OperationID: "updateEntity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Entity", "json", `request:"mediaType=application/json"`) @@ -2938,7 +2938,7 @@ func (s *Entities) PatchEntity(ctx context.Context, request operations.PatchEnti BaseURL: baseURL, Context: ctx, OperationID: "patchEntity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Entity", "json", `request:"mediaType=application/json"`) @@ -3178,7 +3178,7 @@ func (s *Entities) DeleteEntity(ctx context.Context, request operations.DeleteEn BaseURL: baseURL, Context: ctx, OperationID: "deleteEntity", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -3384,7 +3384,7 @@ func (s *Entities) Autocomplete(ctx context.Context, request operations.Autocomp BaseURL: baseURL, Context: ctx, OperationID: "autocomplete", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -3587,7 +3587,7 @@ func (s *Entities) WipeAllEntities(ctx context.Context, request *operations.Wipe BaseURL: baseURL, Context: ctx, OperationID: "wipeAllEntities", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/internal/sdk/importexport.go b/internal/sdk/importexport.go index e99887f9..da442228 100644 --- a/internal/sdk/importexport.go +++ b/internal/sdk/importexport.go @@ -67,7 +67,7 @@ func (s *ImportExport) ExportEntities(ctx context.Context, request operations.Ex BaseURL: baseURL, Context: ctx, OperationID: "exportEntities", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "EntitySearchParams", "json", `request:"mediaType=application/json"`) @@ -282,7 +282,7 @@ func (s *ImportExport) ImportEntities(ctx context.Context, request operations.Im BaseURL: baseURL, Context: ctx, OperationID: "importEntities", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "EntityImportParams", "json", `request:"mediaType=application/json"`) diff --git a/internal/sdk/internal/utils/form.go b/internal/sdk/internal/utils/form.go index d40c11a4..45af2c0a 100644 --- a/internal/sdk/internal/utils/form.go +++ b/internal/sdk/internal/utils/form.go @@ -10,8 +10,7 @@ import ( "strings" "time" - "github.com/ericlagergren/decimal" - + "github.com/epilot/terraform-provider-epilot-schema/internal/sdk/optionalnullable" "github.com/epilot/terraform-provider-epilot-schema/internal/sdk/types" ) @@ -41,8 +40,6 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue formValues.Add(paramName, valToString(objValue.Interface())) case big.Int: formValues.Add(paramName, valToString(objValue.Interface())) - case decimal.Big: - formValues.Add(paramName, valToString(objValue.Interface())) default: var items []string @@ -64,7 +61,13 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue } if explode { - formValues.Add(fieldName, valToString(valType.Interface())) + if valType.Kind() == reflect.Slice || valType.Kind() == reflect.Array { + for i := 0; i < valType.Len(); i++ { + formValues.Add(fieldName, valToString(valType.Index(i).Interface())) + } + } else { + formValues.Add(fieldName, valToString(valType.Interface())) + } } else { items = append(items, fmt.Sprintf("%s%s%s", fieldName, delimiter, valToString(valType.Interface()))) } @@ -75,6 +78,16 @@ func populateForm(paramName string, explode bool, objType reflect.Type, objValue } } case reflect.Map: + // check if optionalnullable.OptionalNullable[T] + if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok { + // Handle optionalnullable.OptionalNullable[T] using GetUntyped method + if value, isSet := nullableValue.GetUntyped(); isSet && value != nil { + formValues.Add(paramName, valToString(value)) + } + // If not set or explicitly null, skip adding to form + return formValues + } + items := []string{} iter := objValue.MapRange() diff --git a/internal/sdk/internal/utils/headers.go b/internal/sdk/internal/utils/headers.go index a07608bd..4bc438e4 100644 --- a/internal/sdk/internal/utils/headers.go +++ b/internal/sdk/internal/utils/headers.go @@ -8,6 +8,8 @@ import ( "net/http" "reflect" "strings" + + "github.com/epilot/terraform-provider-epilot-schema/internal/sdk/optionalnullable" ) func PopulateHeaders(_ context.Context, req *http.Request, headers interface{}, globals interface{}) { @@ -98,6 +100,16 @@ func serializeHeader(objType reflect.Type, objValue reflect.Value, explode bool) return strings.Join(items, ",") case reflect.Map: + // check if optionalnullable.OptionalNullable[T] + if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok { + // Handle optionalnullable.OptionalNullable[T] using GetUntyped method + if value, isSet := nullableValue.GetUntyped(); isSet && value != nil { + return valToString(value) + } + // If not set or explicitly null, return empty string + return "" + } + items := []string{} iter := objValue.MapRange() diff --git a/internal/sdk/internal/utils/json.go b/internal/sdk/internal/utils/json.go index 84d17405..ede92d1d 100644 --- a/internal/sdk/internal/utils/json.go +++ b/internal/sdk/internal/utils/json.go @@ -15,8 +15,6 @@ import ( "unsafe" "github.com/epilot/terraform-provider-epilot-schema/internal/sdk/types" - - "github.com/ericlagergren/decimal" ) func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, error) { @@ -287,6 +285,11 @@ func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error) return []byte("null"), nil } + // Check if the map implements json.Marshaler (like optionalnullable.OptionalNullable[T]) + if marshaler, ok := val.Interface().(json.Marshaler); ok { + return marshaler.MarshalJSON() + } + out := map[string]json.RawMessage{} for _, key := range val.MapKeys() { @@ -340,17 +343,6 @@ func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error) b := val.Interface().(big.Int) return []byte(fmt.Sprintf(`"%s"`, (&b).String())), nil } - case reflect.TypeOf(decimal.Big{}): - format := tag.Get("decimal") - if format == "number" { - b := val.Interface().(decimal.Big) - f, ok := (&b).Float64() - if ok { - return []byte(b.String()), nil - } - - return []byte(fmt.Sprintf(`%f`, f)), nil - } } } @@ -381,11 +373,6 @@ func handleDefaultConstValue(tagValue string, val interface{}, tag reflect.Struc if format == "string" { return []byte(fmt.Sprintf(`"%s"`, tagValue)) } - case reflect.TypeOf(decimal.Big{}): - decimalTag := tag.Get("decimal") - if decimalTag != "number" { - return []byte(fmt.Sprintf(`"%s"`, tagValue)) - } case reflect.TypeOf(types.Date{}): return []byte(fmt.Sprintf(`"%s"`, tagValue)) default: @@ -566,27 +553,6 @@ func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTa v.Set(reflect.ValueOf(b)) return nil - case reflect.TypeOf(decimal.Big{}): - var d *decimal.Big - format := tag.Get("decimal") - if format == "number" { - var ok bool - d, ok = new(decimal.Big).SetString(string(value)) - if !ok { - return fmt.Errorf("failed to parse number as decimal.Big") - } - } else { - if err := json.Unmarshal(value, &d); err != nil { - return err - } - } - - if v.Kind() == reflect.Ptr && v.Elem().Kind() == reflect.Ptr { - v = v.Elem() - } - - v.Set(reflect.ValueOf(d)) - return nil case reflect.TypeOf(types.Date{}): var s string @@ -651,8 +617,6 @@ func isComplexValueType(typ reflect.Type) bool { fallthrough case reflect.TypeOf(big.Int{}): fallthrough - case reflect.TypeOf(decimal.Big{}): - fallthrough case reflect.TypeOf(types.Date{}): return true } @@ -672,3 +636,215 @@ func isModelType(typ reflect.Type) bool { return false } + +// CalculateJSONSize returns the byte size of the JSON representation of a value. +// This is used to determine which union type variant has the most data. +func CalculateJSONSize(v interface{}) int { + data, err := json.Marshal(v) + if err != nil { + return 0 + } + return len(data) +} + +// UnionCandidate represents a candidate type during union deserialization +type UnionCandidate struct { + FieldCount int + Size int + Type any // The union type enum value + Value any // The unmarshaled value +} + +// CountFields recursively counts the number of valid (non-nil, non-zero) fields set in a value. +// This is used as the primary discriminator for union types, with JSON size as a tiebreaker. +func CountFields(v interface{}) int { + if v == nil { + return 0 + } + + typ := reflect.TypeOf(v) + val := reflect.ValueOf(v) + + // Dereference pointers + for typ.Kind() == reflect.Ptr { + if val.IsNil() { + return 0 + } + typ = typ.Elem() + val = val.Elem() + } + + return countFieldsRecursive(typ, val) +} + +// PickBestCandidate selects the best union type candidate using a multi-stage filtering approach: +// 1. If multiple candidates, filter by field count (keep only those with max field count) +// 2. If still multiple, filter by JSON size (keep only those with max size) +// 3. Return the first remaining candidate +func PickBestCandidate(candidates []UnionCandidate) *UnionCandidate { + if len(candidates) == 0 { + return nil + } + + if len(candidates) == 1 { + return &candidates[0] + } + + // Filter by field count if we have multiple candidates + if len(candidates) > 1 { + maxFieldCount := -1 + for i := range candidates { + candidates[i].FieldCount = CountFields(candidates[i].Value) + if candidates[i].FieldCount > maxFieldCount { + maxFieldCount = candidates[i].FieldCount + } + } + + // Keep only candidates with maximum field count + filtered := make([]UnionCandidate, 0, len(candidates)) + for _, c := range candidates { + if c.FieldCount == maxFieldCount { + filtered = append(filtered, c) + } + } + candidates = filtered + } + + if len(candidates) == 1 { + return &candidates[0] + } + + // Filter by JSON size if we still have multiple candidates + if len(candidates) > 1 { + maxSize := -1 + for i := range candidates { + candidates[i].Size = CalculateJSONSize(candidates[i].Value) + if candidates[i].Size > maxSize { + maxSize = candidates[i].Size + } + } + + // Keep only candidates with maximum size + filtered := make([]UnionCandidate, 0, len(candidates)) + for _, c := range candidates { + if c.Size == maxSize { + filtered = append(filtered, c) + } + } + candidates = filtered + } + + // Pick the first remaining candidate + return &candidates[0] +} + +func countFieldsRecursive(typ reflect.Type, val reflect.Value) int { + count := 0 + + switch typ.Kind() { + case reflect.Struct: + // Handle special types + switch typ { + case reflect.TypeOf(time.Time{}): + if !val.Interface().(time.Time).IsZero() { + return 1 + } + return 0 + case reflect.TypeOf(big.Int{}): + b := val.Interface().(big.Int) + if b.Sign() != 0 { + return 1 + } + return 0 + case reflect.TypeOf(types.Date{}): + // Date is always counted if it exists + return 1 + } + + // For regular structs, count non-zero fields + for i := 0; i < typ.NumField(); i++ { + field := typ.Field(i) + fieldVal := val.Field(i) + + // Skip unexported fields and const fields + if !field.IsExported() || field.Tag.Get("const") != "" { + continue + } + + // Skip fields tagged with json:"-" + jsonTag := field.Tag.Get("json") + if jsonTag == "-" { + continue + } + + fieldTyp := field.Type + // Dereference pointer types for the field + for fieldTyp.Kind() == reflect.Ptr { + if fieldVal.IsNil() { + break + } + fieldTyp = fieldTyp.Elem() + fieldVal = fieldVal.Elem() + } + + if !isNil(field.Type, val.Field(i)) { + count += countFieldsRecursive(fieldTyp, fieldVal) + } + } + + case reflect.Slice, reflect.Array: + if val.IsNil() || val.Len() == 0 { + return 0 + } + // Count each array/slice element + for i := 0; i < val.Len(); i++ { + itemVal := val.Index(i) + itemTyp := itemVal.Type() + + // Dereference pointer types + for itemTyp.Kind() == reflect.Ptr { + if itemVal.IsNil() { + break + } + itemTyp = itemTyp.Elem() + itemVal = itemVal.Elem() + } + + if !isNil(itemTyp, itemVal) { + count += countFieldsRecursive(itemTyp, itemVal) + } + } + + case reflect.String: + if val.String() != "" { + count = 1 + } + + case reflect.Bool: + // Bools always count as a field (even if false) + count = 1 + + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + if val.Int() != 0 { + count = 1 + } + + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: + if val.Uint() != 0 { + count = 1 + } + + case reflect.Float32, reflect.Float64: + if val.Float() != 0 { + count = 1 + } + + default: + // For any other type, if it's not zero, count it as 1 + if !val.IsZero() { + count = 1 + } + } + + return count +} diff --git a/internal/sdk/internal/utils/pathparams.go b/internal/sdk/internal/utils/pathparams.go index 952e04da..55ace0d6 100644 --- a/internal/sdk/internal/utils/pathparams.go +++ b/internal/sdk/internal/utils/pathparams.go @@ -11,8 +11,7 @@ import ( "strings" "time" - "github.com/ericlagergren/decimal" - + "github.com/epilot/terraform-provider-epilot-schema/internal/sdk/optionalnullable" "github.com/epilot/terraform-provider-epilot-schema/internal/sdk/types" ) @@ -114,6 +113,16 @@ func getSimplePathParams(parentName string, objType reflect.Type, objValue refle } pathParams[parentName] = strings.Join(ppVals, ",") case reflect.Map: + // check if optionalnullable.OptionalNullable[T] + if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok { + // Handle optionalnullable.OptionalNullable[T] using GetUntyped method + if value, isSet := nullableValue.GetUntyped(); isSet && value != nil { + pathParams[parentName] = valToString(value) + } + // If not set or explicitly null, return nil (skip parameter) + return pathParams + } + if objValue.Len() == 0 { return nil } @@ -135,8 +144,6 @@ func getSimplePathParams(parentName string, objType reflect.Type, objValue refle pathParams[parentName] = valToString(objValue.Interface()) case big.Int: pathParams[parentName] = valToString(objValue.Interface()) - case decimal.Big: - pathParams[parentName] = valToString(objValue.Interface()) default: var ppVals []string for i := 0; i < objType.NumField(); i++ { diff --git a/internal/sdk/internal/utils/queryparams.go b/internal/sdk/internal/utils/queryparams.go index d2bfe33f..42e2131f 100644 --- a/internal/sdk/internal/utils/queryparams.go +++ b/internal/sdk/internal/utils/queryparams.go @@ -12,8 +12,7 @@ import ( "reflect" "time" - "github.com/ericlagergren/decimal" - + "github.com/epilot/terraform-provider-epilot-schema/internal/sdk/optionalnullable" "github.com/epilot/terraform-provider-epilot-schema/internal/sdk/types" ) @@ -157,6 +156,16 @@ func populateDeepObjectParams(tag *paramTag, objType reflect.Type, objValue refl switch objValue.Kind() { case reflect.Map: + // check if optionalnullable.OptionalNullable[T] + if nullableValue, ok := optionalnullable.AsOptionalNullable(objValue); ok { + // Handle optionalnullable.OptionalNullable[T] using GetUntyped method + if value, isSet := nullableValue.GetUntyped(); isSet && value != nil { + values.Add(tag.ParamName, valToString(value)) + } + // If not set or explicitly null, skip adding to values + return values + } + populateDeepObjectParamsMap(values, tag.ParamName, objValue) case reflect.Struct: populateDeepObjectParamsStruct(values, tag.ParamName, objValue) @@ -235,7 +244,7 @@ func populateDeepObjectParamsStruct(qsValues url.Values, priorScope string, stru populateDeepObjectParamsMap(qsValues, scope, fieldValue) case reflect.Struct: switch fieldValue.Type() { - case reflect.TypeOf(big.Int{}), reflect.TypeOf(decimal.Big{}), reflect.TypeOf(time.Time{}), reflect.TypeOf(types.Date{}): + case reflect.TypeOf(big.Int{}), reflect.TypeOf(time.Time{}), reflect.TypeOf(types.Date{}): qsValues.Add(scope, valToString(fieldValue.Interface())) continue diff --git a/internal/sdk/internal/utils/requestbody.go b/internal/sdk/internal/utils/requestbody.go index 8622ec58..942b6976 100644 --- a/internal/sdk/internal/utils/requestbody.go +++ b/internal/sdk/internal/utils/requestbody.go @@ -14,6 +14,8 @@ import ( "path/filepath" "reflect" "regexp" + + "github.com/epilot/terraform-provider-epilot-schema/internal/sdk/optionalnullable" ) const ( @@ -340,6 +342,17 @@ func encodeFormData(fieldName string, w io.Writer, data interface{}) error { } } case reflect.Map: + // check if optionalnullable.OptionalNullable[T] + if nullableValue, ok := optionalnullable.AsOptionalNullable(requestValType); ok { + // Handle optionalnullable.OptionalNullable[T] using GetUntyped method + if value, isSet := nullableValue.GetUntyped(); isSet && value != nil { + dataValues.Set(fieldName, valToString(value)) + } + // If not set or explicitly null, skip adding to form + break + } + + // Handle regular map for _, k := range requestValType.MapKeys() { v := requestValType.MapIndex(k) dataValues.Set(fmt.Sprintf("%v", k.Interface()), valToString(v.Interface())) diff --git a/internal/sdk/internal/utils/utils.go b/internal/sdk/internal/utils/utils.go index ea624e75..76cbe940 100644 --- a/internal/sdk/internal/utils/utils.go +++ b/internal/sdk/internal/utils/utils.go @@ -14,8 +14,6 @@ import ( "strconv" "strings" "time" - - "github.com/ericlagergren/decimal" ) const ( @@ -183,8 +181,6 @@ func valToString(val interface{}) string { return v.Format(time.RFC3339Nano) case big.Int: return v.String() - case decimal.Big: - return v.String() default: return fmt.Sprintf("%v", v) } diff --git a/internal/sdk/models/operations/addrelations.go b/internal/sdk/models/operations/addrelations.go index 5e6df9d7..44960f24 100644 --- a/internal/sdk/models/operations/addrelations.go +++ b/internal/sdk/models/operations/addrelations.go @@ -31,39 +31,39 @@ func (a *AddRelationsRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *AddRelationsRequest) GetSlug() string { - if o == nil { +func (a *AddRelationsRequest) GetSlug() string { + if a == nil { return "" } - return o.Slug + return a.Slug } -func (o *AddRelationsRequest) GetID() string { - if o == nil { +func (a *AddRelationsRequest) GetID() string { + if a == nil { return "" } - return o.ID + return a.ID } -func (o *AddRelationsRequest) GetAsync() *bool { - if o == nil { +func (a *AddRelationsRequest) GetAsync() *bool { + if a == nil { return nil } - return o.Async + return a.Async } -func (o *AddRelationsRequest) GetActivityID() *shared.ActivityIDQueryParam { - if o == nil { +func (a *AddRelationsRequest) GetActivityID() *shared.ActivityIDQueryParam { + if a == nil { return nil } - return o.ActivityID + return a.ActivityID } -func (o *AddRelationsRequest) GetRequestBody() []shared.RelationItem { - if o == nil { +func (a *AddRelationsRequest) GetRequestBody() []shared.RelationItem { + if a == nil { return nil } - return o.RequestBody + return a.RequestBody } type AddRelationsResponse struct { @@ -79,37 +79,37 @@ type AddRelationsResponse struct { NotFoundError *shared.NotFoundError } -func (o *AddRelationsResponse) GetContentType() string { - if o == nil { +func (a *AddRelationsResponse) GetContentType() string { + if a == nil { return "" } - return o.ContentType + return a.ContentType } -func (o *AddRelationsResponse) GetStatusCode() int { - if o == nil { +func (a *AddRelationsResponse) GetStatusCode() int { + if a == nil { return 0 } - return o.StatusCode + return a.StatusCode } -func (o *AddRelationsResponse) GetRawResponse() *http.Response { - if o == nil { +func (a *AddRelationsResponse) GetRawResponse() *http.Response { + if a == nil { return nil } - return o.RawResponse + return a.RawResponse } -func (o *AddRelationsResponse) GetRelationItem() *shared.RelationItem { - if o == nil { +func (a *AddRelationsResponse) GetRelationItem() *shared.RelationItem { + if a == nil { return nil } - return o.RelationItem + return a.RelationItem } -func (o *AddRelationsResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (a *AddRelationsResponse) GetNotFoundError() *shared.NotFoundError { + if a == nil { return nil } - return o.NotFoundError + return a.NotFoundError } diff --git a/internal/sdk/models/operations/attachactivity.go b/internal/sdk/models/operations/attachactivity.go index c9df6024..e384b41b 100644 --- a/internal/sdk/models/operations/attachactivity.go +++ b/internal/sdk/models/operations/attachactivity.go @@ -14,18 +14,18 @@ type AttachActivityRequest struct { Entities []string `queryParam:"style=form,explode=false,name=entities"` } -func (o *AttachActivityRequest) GetID() string { - if o == nil { +func (a *AttachActivityRequest) GetID() string { + if a == nil { return "" } - return o.ID + return a.ID } -func (o *AttachActivityRequest) GetEntities() []string { - if o == nil { +func (a *AttachActivityRequest) GetEntities() []string { + if a == nil { return nil } - return o.Entities + return a.Entities } type AttachActivityResponse struct { @@ -44,51 +44,51 @@ type AttachActivityResponse struct { Headers map[string][]string } -func (o *AttachActivityResponse) GetContentType() string { - if o == nil { +func (a *AttachActivityResponse) GetContentType() string { + if a == nil { return "" } - return o.ContentType + return a.ContentType } -func (o *AttachActivityResponse) GetStatusCode() int { - if o == nil { +func (a *AttachActivityResponse) GetStatusCode() int { + if a == nil { return 0 } - return o.StatusCode + return a.StatusCode } -func (o *AttachActivityResponse) GetRawResponse() *http.Response { - if o == nil { +func (a *AttachActivityResponse) GetRawResponse() *http.Response { + if a == nil { return nil } - return o.RawResponse + return a.RawResponse } -func (o *AttachActivityResponse) GetBaseActivityItem() *shared.BaseActivityItem { - if o == nil { +func (a *AttachActivityResponse) GetBaseActivityItem() *shared.BaseActivityItem { + if a == nil { return nil } - return o.BaseActivityItem + return a.BaseActivityItem } -func (o *AttachActivityResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (a *AttachActivityResponse) GetNotFoundError() *shared.NotFoundError { + if a == nil { return nil } - return o.NotFoundError + return a.NotFoundError } -func (o *AttachActivityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (a *AttachActivityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if a == nil { return nil } - return o.TooManyRequestsError + return a.TooManyRequestsError } -func (o *AttachActivityResponse) GetHeaders() map[string][]string { - if o == nil { +func (a *AttachActivityResponse) GetHeaders() map[string][]string { + if a == nil { return map[string][]string{} } - return o.Headers + return a.Headers } diff --git a/internal/sdk/models/operations/autocomplete.go b/internal/sdk/models/operations/autocomplete.go index 7c10a554..302ab5cb 100644 --- a/internal/sdk/models/operations/autocomplete.go +++ b/internal/sdk/models/operations/autocomplete.go @@ -31,32 +31,32 @@ func (a *AutocompleteRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *AutocompleteRequest) GetInput() *string { - if o == nil { +func (a *AutocompleteRequest) GetInput() *string { + if a == nil { return nil } - return o.Input + return a.Input } -func (o *AutocompleteRequest) GetAttribute() string { - if o == nil { +func (a *AutocompleteRequest) GetAttribute() string { + if a == nil { return "" } - return o.Attribute + return a.Attribute } -func (o *AutocompleteRequest) GetSlug() *string { - if o == nil { +func (a *AutocompleteRequest) GetSlug() *string { + if a == nil { return nil } - return o.Slug + return a.Slug } -func (o *AutocompleteRequest) GetSize() *int64 { - if o == nil { +func (a *AutocompleteRequest) GetSize() *int64 { + if a == nil { return nil } - return o.Size + return a.Size } type ResultsType string @@ -68,9 +68,9 @@ const ( ) type Results struct { - Str *string `queryParam:"inline" name:"results"` - Boolean *bool `queryParam:"inline" name:"results"` - MapOfAny map[string]any `queryParam:"inline" name:"results"` + Str *string `queryParam:"inline,name=results"` + Boolean *bool `queryParam:"inline,name=results"` + MapOfAny map[string]any `queryParam:"inline,name=results"` Type ResultsType } @@ -104,24 +104,54 @@ func CreateResultsMapOfAny(mapOfAny map[string]any) Results { func (u *Results) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = ResultsTypeStr - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: ResultsTypeStr, + Value: &str, + }) } var boolean bool = false if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { - u.Boolean = &boolean - u.Type = ResultsTypeBoolean - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: ResultsTypeBoolean, + Value: &boolean, + }) } var mapOfAny map[string]any = map[string]any{} if err := utils.UnmarshalJSON(data, &mapOfAny, "", true, nil); err == nil { - u.MapOfAny = mapOfAny - u.Type = ResultsTypeMapOfAny + candidates = append(candidates, utils.UnionCandidate{ + Type: ResultsTypeMapOfAny, + Value: mapOfAny, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Results", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Results", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(ResultsType) + switch best.Type { + case ResultsTypeStr: + u.Str = best.Value.(*string) + return nil + case ResultsTypeBoolean: + u.Boolean = best.Value.(*bool) + return nil + case ResultsTypeMapOfAny: + u.MapOfAny = best.Value.(map[string]any) return nil } @@ -150,18 +180,18 @@ type AutocompleteResponseBody struct { Results []Results `json:"results,omitempty"` } -func (o *AutocompleteResponseBody) GetHits() *float64 { - if o == nil { +func (a *AutocompleteResponseBody) GetHits() *float64 { + if a == nil { return nil } - return o.Hits + return a.Hits } -func (o *AutocompleteResponseBody) GetResults() []Results { - if o == nil { +func (a *AutocompleteResponseBody) GetResults() []Results { + if a == nil { return nil } - return o.Results + return a.Results } type AutocompleteResponse struct { @@ -175,30 +205,30 @@ type AutocompleteResponse struct { Object *AutocompleteResponseBody } -func (o *AutocompleteResponse) GetContentType() string { - if o == nil { +func (a *AutocompleteResponse) GetContentType() string { + if a == nil { return "" } - return o.ContentType + return a.ContentType } -func (o *AutocompleteResponse) GetStatusCode() int { - if o == nil { +func (a *AutocompleteResponse) GetStatusCode() int { + if a == nil { return 0 } - return o.StatusCode + return a.StatusCode } -func (o *AutocompleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (a *AutocompleteResponse) GetRawResponse() *http.Response { + if a == nil { return nil } - return o.RawResponse + return a.RawResponse } -func (o *AutocompleteResponse) GetObject() *AutocompleteResponseBody { - if o == nil { +func (a *AutocompleteResponse) GetObject() *AutocompleteResponseBody { + if a == nil { return nil } - return o.Object + return a.Object } diff --git a/internal/sdk/models/operations/bulkdeleteclassifications.go b/internal/sdk/models/operations/bulkdeleteclassifications.go index eef1c461..2c813c60 100644 --- a/internal/sdk/models/operations/bulkdeleteclassifications.go +++ b/internal/sdk/models/operations/bulkdeleteclassifications.go @@ -13,18 +13,18 @@ type BulkDeleteClassificationsRequestBody struct { ClassificationIds []string `json:"classification_ids,omitempty"` } -func (o *BulkDeleteClassificationsRequestBody) GetJobID() *string { - if o == nil { +func (b *BulkDeleteClassificationsRequestBody) GetJobID() *string { + if b == nil { return nil } - return o.JobID + return b.JobID } -func (o *BulkDeleteClassificationsRequestBody) GetClassificationIds() []string { - if o == nil { +func (b *BulkDeleteClassificationsRequestBody) GetClassificationIds() []string { + if b == nil { return nil } - return o.ClassificationIds + return b.ClassificationIds } type BulkDeleteClassificationsResponse struct { @@ -41,44 +41,44 @@ type BulkDeleteClassificationsResponse struct { Headers map[string][]string } -func (o *BulkDeleteClassificationsResponse) GetContentType() string { - if o == nil { +func (b *BulkDeleteClassificationsResponse) GetContentType() string { + if b == nil { return "" } - return o.ContentType + return b.ContentType } -func (o *BulkDeleteClassificationsResponse) GetStatusCode() int { - if o == nil { +func (b *BulkDeleteClassificationsResponse) GetStatusCode() int { + if b == nil { return 0 } - return o.StatusCode + return b.StatusCode } -func (o *BulkDeleteClassificationsResponse) GetRawResponse() *http.Response { - if o == nil { +func (b *BulkDeleteClassificationsResponse) GetRawResponse() *http.Response { + if b == nil { return nil } - return o.RawResponse + return b.RawResponse } -func (o *BulkDeleteClassificationsResponse) GetTaxonomyBulkJobTriggerResponse() *shared.TaxonomyBulkJobTriggerResponse { - if o == nil { +func (b *BulkDeleteClassificationsResponse) GetTaxonomyBulkJobTriggerResponse() *shared.TaxonomyBulkJobTriggerResponse { + if b == nil { return nil } - return o.TaxonomyBulkJobTriggerResponse + return b.TaxonomyBulkJobTriggerResponse } -func (o *BulkDeleteClassificationsResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (b *BulkDeleteClassificationsResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if b == nil { return nil } - return o.TooManyRequestsError + return b.TooManyRequestsError } -func (o *BulkDeleteClassificationsResponse) GetHeaders() map[string][]string { - if o == nil { +func (b *BulkDeleteClassificationsResponse) GetHeaders() map[string][]string { + if b == nil { return map[string][]string{} } - return o.Headers + return b.Headers } diff --git a/internal/sdk/models/operations/bulkmergeclassifications.go b/internal/sdk/models/operations/bulkmergeclassifications.go index 789bfe75..82b22c98 100644 --- a/internal/sdk/models/operations/bulkmergeclassifications.go +++ b/internal/sdk/models/operations/bulkmergeclassifications.go @@ -14,25 +14,25 @@ type BulkMergeClassificationsRequestBody struct { ClassificationIds []string `json:"classification_ids,omitempty"` } -func (o *BulkMergeClassificationsRequestBody) GetJobID() *string { - if o == nil { +func (b *BulkMergeClassificationsRequestBody) GetJobID() *string { + if b == nil { return nil } - return o.JobID + return b.JobID } -func (o *BulkMergeClassificationsRequestBody) GetTargetClassification() *string { - if o == nil { +func (b *BulkMergeClassificationsRequestBody) GetTargetClassification() *string { + if b == nil { return nil } - return o.TargetClassification + return b.TargetClassification } -func (o *BulkMergeClassificationsRequestBody) GetClassificationIds() []string { - if o == nil { +func (b *BulkMergeClassificationsRequestBody) GetClassificationIds() []string { + if b == nil { return nil } - return o.ClassificationIds + return b.ClassificationIds } type BulkMergeClassificationsResponse struct { @@ -49,44 +49,44 @@ type BulkMergeClassificationsResponse struct { Headers map[string][]string } -func (o *BulkMergeClassificationsResponse) GetContentType() string { - if o == nil { +func (b *BulkMergeClassificationsResponse) GetContentType() string { + if b == nil { return "" } - return o.ContentType + return b.ContentType } -func (o *BulkMergeClassificationsResponse) GetStatusCode() int { - if o == nil { +func (b *BulkMergeClassificationsResponse) GetStatusCode() int { + if b == nil { return 0 } - return o.StatusCode + return b.StatusCode } -func (o *BulkMergeClassificationsResponse) GetRawResponse() *http.Response { - if o == nil { +func (b *BulkMergeClassificationsResponse) GetRawResponse() *http.Response { + if b == nil { return nil } - return o.RawResponse + return b.RawResponse } -func (o *BulkMergeClassificationsResponse) GetTaxonomyBulkJobTriggerResponse() *shared.TaxonomyBulkJobTriggerResponse { - if o == nil { +func (b *BulkMergeClassificationsResponse) GetTaxonomyBulkJobTriggerResponse() *shared.TaxonomyBulkJobTriggerResponse { + if b == nil { return nil } - return o.TaxonomyBulkJobTriggerResponse + return b.TaxonomyBulkJobTriggerResponse } -func (o *BulkMergeClassificationsResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (b *BulkMergeClassificationsResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if b == nil { return nil } - return o.TooManyRequestsError + return b.TooManyRequestsError } -func (o *BulkMergeClassificationsResponse) GetHeaders() map[string][]string { - if o == nil { +func (b *BulkMergeClassificationsResponse) GetHeaders() map[string][]string { + if b == nil { return map[string][]string{} } - return o.Headers + return b.Headers } diff --git a/internal/sdk/models/operations/bulkmoveclassifications.go b/internal/sdk/models/operations/bulkmoveclassifications.go index 6afa2dde..371dd0d3 100644 --- a/internal/sdk/models/operations/bulkmoveclassifications.go +++ b/internal/sdk/models/operations/bulkmoveclassifications.go @@ -14,25 +14,25 @@ type BulkMoveClassificationsRequestBody struct { ClassificationIds []string `json:"classification_ids,omitempty"` } -func (o *BulkMoveClassificationsRequestBody) GetJobID() *string { - if o == nil { +func (b *BulkMoveClassificationsRequestBody) GetJobID() *string { + if b == nil { return nil } - return o.JobID + return b.JobID } -func (o *BulkMoveClassificationsRequestBody) GetTargetTaxonomy() *string { - if o == nil { +func (b *BulkMoveClassificationsRequestBody) GetTargetTaxonomy() *string { + if b == nil { return nil } - return o.TargetTaxonomy + return b.TargetTaxonomy } -func (o *BulkMoveClassificationsRequestBody) GetClassificationIds() []string { - if o == nil { +func (b *BulkMoveClassificationsRequestBody) GetClassificationIds() []string { + if b == nil { return nil } - return o.ClassificationIds + return b.ClassificationIds } type BulkMoveClassificationsResponse struct { @@ -49,44 +49,44 @@ type BulkMoveClassificationsResponse struct { Headers map[string][]string } -func (o *BulkMoveClassificationsResponse) GetContentType() string { - if o == nil { +func (b *BulkMoveClassificationsResponse) GetContentType() string { + if b == nil { return "" } - return o.ContentType + return b.ContentType } -func (o *BulkMoveClassificationsResponse) GetStatusCode() int { - if o == nil { +func (b *BulkMoveClassificationsResponse) GetStatusCode() int { + if b == nil { return 0 } - return o.StatusCode + return b.StatusCode } -func (o *BulkMoveClassificationsResponse) GetRawResponse() *http.Response { - if o == nil { +func (b *BulkMoveClassificationsResponse) GetRawResponse() *http.Response { + if b == nil { return nil } - return o.RawResponse + return b.RawResponse } -func (o *BulkMoveClassificationsResponse) GetTaxonomyBulkJobTriggerResponse() *shared.TaxonomyBulkJobTriggerResponse { - if o == nil { +func (b *BulkMoveClassificationsResponse) GetTaxonomyBulkJobTriggerResponse() *shared.TaxonomyBulkJobTriggerResponse { + if b == nil { return nil } - return o.TaxonomyBulkJobTriggerResponse + return b.TaxonomyBulkJobTriggerResponse } -func (o *BulkMoveClassificationsResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (b *BulkMoveClassificationsResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if b == nil { return nil } - return o.TooManyRequestsError + return b.TooManyRequestsError } -func (o *BulkMoveClassificationsResponse) GetHeaders() map[string][]string { - if o == nil { +func (b *BulkMoveClassificationsResponse) GetHeaders() map[string][]string { + if b == nil { return map[string][]string{} } - return o.Headers + return b.Headers } diff --git a/internal/sdk/models/operations/cancelbulkaction.go b/internal/sdk/models/operations/cancelbulkaction.go index 35b48841..810759cc 100644 --- a/internal/sdk/models/operations/cancelbulkaction.go +++ b/internal/sdk/models/operations/cancelbulkaction.go @@ -12,11 +12,11 @@ type CancelBulkActionRequest struct { JobID string `pathParam:"style=simple,explode=false,name=job_id"` } -func (o *CancelBulkActionRequest) GetJobID() string { - if o == nil { +func (c *CancelBulkActionRequest) GetJobID() string { + if c == nil { return "" } - return o.JobID + return c.JobID } type CancelBulkActionResponse struct { @@ -33,44 +33,44 @@ type CancelBulkActionResponse struct { Headers map[string][]string } -func (o *CancelBulkActionResponse) GetContentType() string { - if o == nil { +func (c *CancelBulkActionResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CancelBulkActionResponse) GetStatusCode() int { - if o == nil { +func (c *CancelBulkActionResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CancelBulkActionResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CancelBulkActionResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *CancelBulkActionResponse) GetTaxonomyBulkJob() *shared.TaxonomyBulkJob { - if o == nil { +func (c *CancelBulkActionResponse) GetTaxonomyBulkJob() *shared.TaxonomyBulkJob { + if c == nil { return nil } - return o.TaxonomyBulkJob + return c.TaxonomyBulkJob } -func (o *CancelBulkActionResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (c *CancelBulkActionResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if c == nil { return nil } - return o.TooManyRequestsError + return c.TooManyRequestsError } -func (o *CancelBulkActionResponse) GetHeaders() map[string][]string { - if o == nil { +func (c *CancelBulkActionResponse) GetHeaders() map[string][]string { + if c == nil { return map[string][]string{} } - return o.Headers + return c.Headers } diff --git a/internal/sdk/models/operations/createactivity.go b/internal/sdk/models/operations/createactivity.go index a89ee1d0..e7ad1ee7 100644 --- a/internal/sdk/models/operations/createactivity.go +++ b/internal/sdk/models/operations/createactivity.go @@ -13,18 +13,18 @@ type CreateActivityRequest struct { Activity *shared.Activity `request:"mediaType=application/json"` } -func (o *CreateActivityRequest) GetEntities() []string { - if o == nil { +func (c *CreateActivityRequest) GetEntities() []string { + if c == nil { return nil } - return o.Entities + return c.Entities } -func (o *CreateActivityRequest) GetActivity() *shared.Activity { - if o == nil { +func (c *CreateActivityRequest) GetActivity() *shared.Activity { + if c == nil { return nil } - return o.Activity + return c.Activity } type CreateActivityResponse struct { @@ -41,44 +41,44 @@ type CreateActivityResponse struct { Headers map[string][]string } -func (o *CreateActivityResponse) GetContentType() string { - if o == nil { +func (c *CreateActivityResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CreateActivityResponse) GetStatusCode() int { - if o == nil { +func (c *CreateActivityResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CreateActivityResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CreateActivityResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *CreateActivityResponse) GetBaseActivityItem() *shared.BaseActivityItem { - if o == nil { +func (c *CreateActivityResponse) GetBaseActivityItem() *shared.BaseActivityItem { + if c == nil { return nil } - return o.BaseActivityItem + return c.BaseActivityItem } -func (o *CreateActivityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (c *CreateActivityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if c == nil { return nil } - return o.TooManyRequestsError + return c.TooManyRequestsError } -func (o *CreateActivityResponse) GetHeaders() map[string][]string { - if o == nil { +func (c *CreateActivityResponse) GetHeaders() map[string][]string { + if c == nil { return map[string][]string{} } - return o.Headers + return c.Headers } diff --git a/internal/sdk/models/operations/createentity.go b/internal/sdk/models/operations/createentity.go index a25ac3dd..a1a49730 100644 --- a/internal/sdk/models/operations/createentity.go +++ b/internal/sdk/models/operations/createentity.go @@ -35,46 +35,46 @@ func (c *CreateEntityRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *CreateEntityRequest) GetSlug() string { - if o == nil { +func (c *CreateEntityRequest) GetSlug() string { + if c == nil { return "" } - return o.Slug + return c.Slug } -func (o *CreateEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { - if o == nil { +func (c *CreateEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { + if c == nil { return nil } - return o.ActivityID + return c.ActivityID } -func (o *CreateEntityRequest) GetFillActivity() *bool { - if o == nil { +func (c *CreateEntityRequest) GetFillActivity() *bool { + if c == nil { return nil } - return o.FillActivity + return c.FillActivity } -func (o *CreateEntityRequest) GetAsync() *bool { - if o == nil { +func (c *CreateEntityRequest) GetAsync() *bool { + if c == nil { return nil } - return o.Async + return c.Async } -func (o *CreateEntityRequest) GetValidate() *bool { - if o == nil { +func (c *CreateEntityRequest) GetValidate() *bool { + if c == nil { return nil } - return o.Validate + return c.Validate } -func (o *CreateEntityRequest) GetEntity() *shared.EntityInput { - if o == nil { +func (c *CreateEntityRequest) GetEntity() *shared.EntityInput { + if c == nil { return nil } - return o.Entity + return c.Entity } type CreateEntityResponse struct { @@ -93,51 +93,51 @@ type CreateEntityResponse struct { Headers map[string][]string } -func (o *CreateEntityResponse) GetContentType() string { - if o == nil { +func (c *CreateEntityResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CreateEntityResponse) GetStatusCode() int { - if o == nil { +func (c *CreateEntityResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CreateEntityResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CreateEntityResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *CreateEntityResponse) GetEntityItem() *shared.EntityItem { - if o == nil { +func (c *CreateEntityResponse) GetEntityItem() *shared.EntityItem { + if c == nil { return nil } - return o.EntityItem + return c.EntityItem } -func (o *CreateEntityResponse) GetEntityValidationV2ResultError() *shared.EntityValidationV2ResultError { - if o == nil { +func (c *CreateEntityResponse) GetEntityValidationV2ResultError() *shared.EntityValidationV2ResultError { + if c == nil { return nil } - return o.EntityValidationV2ResultError + return c.EntityValidationV2ResultError } -func (o *CreateEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (c *CreateEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if c == nil { return nil } - return o.TooManyRequestsError + return c.TooManyRequestsError } -func (o *CreateEntityResponse) GetHeaders() map[string][]string { - if o == nil { +func (c *CreateEntityResponse) GetHeaders() map[string][]string { + if c == nil { return map[string][]string{} } - return o.Headers + return c.Headers } diff --git a/internal/sdk/models/operations/createsavedview.go b/internal/sdk/models/operations/createsavedview.go index 2c44cfed..f5cfe8e5 100644 --- a/internal/sdk/models/operations/createsavedview.go +++ b/internal/sdk/models/operations/createsavedview.go @@ -15,25 +15,25 @@ type CreateSavedViewResponseBody struct { UpdatedAt *string `json:"updated_at,omitempty"` } -func (o *CreateSavedViewResponseBody) GetID() *string { - if o == nil { +func (c *CreateSavedViewResponseBody) GetID() *string { + if c == nil { return nil } - return o.ID + return c.ID } -func (o *CreateSavedViewResponseBody) GetCreatedAt() *string { - if o == nil { +func (c *CreateSavedViewResponseBody) GetCreatedAt() *string { + if c == nil { return nil } - return o.CreatedAt + return c.CreatedAt } -func (o *CreateSavedViewResponseBody) GetUpdatedAt() *string { - if o == nil { +func (c *CreateSavedViewResponseBody) GetUpdatedAt() *string { + if c == nil { return nil } - return o.UpdatedAt + return c.UpdatedAt } type CreateSavedViewResponse struct { @@ -50,44 +50,44 @@ type CreateSavedViewResponse struct { Headers map[string][]string } -func (o *CreateSavedViewResponse) GetContentType() string { - if o == nil { +func (c *CreateSavedViewResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CreateSavedViewResponse) GetStatusCode() int { - if o == nil { +func (c *CreateSavedViewResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CreateSavedViewResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CreateSavedViewResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *CreateSavedViewResponse) GetObject() *CreateSavedViewResponseBody { - if o == nil { +func (c *CreateSavedViewResponse) GetObject() *CreateSavedViewResponseBody { + if c == nil { return nil } - return o.Object + return c.Object } -func (o *CreateSavedViewResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (c *CreateSavedViewResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if c == nil { return nil } - return o.TooManyRequestsError + return c.TooManyRequestsError } -func (o *CreateSavedViewResponse) GetHeaders() map[string][]string { - if o == nil { +func (c *CreateSavedViewResponse) GetHeaders() map[string][]string { + if c == nil { return map[string][]string{} } - return o.Headers + return c.Headers } diff --git a/internal/sdk/models/operations/createschemaattribute.go b/internal/sdk/models/operations/createschemaattribute.go index 83e20305..3b63f253 100644 --- a/internal/sdk/models/operations/createschemaattribute.go +++ b/internal/sdk/models/operations/createschemaattribute.go @@ -21,44 +21,44 @@ type CreateSchemaAttributeResponse struct { Headers map[string][]string } -func (o *CreateSchemaAttributeResponse) GetContentType() string { - if o == nil { +func (c *CreateSchemaAttributeResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CreateSchemaAttributeResponse) GetStatusCode() int { - if o == nil { +func (c *CreateSchemaAttributeResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CreateSchemaAttributeResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CreateSchemaAttributeResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *CreateSchemaAttributeResponse) GetAttributeWithCompositeID() *shared.AttributeWithCompositeID { - if o == nil { +func (c *CreateSchemaAttributeResponse) GetAttributeWithCompositeID() *shared.AttributeWithCompositeID { + if c == nil { return nil } - return o.AttributeWithCompositeID + return c.AttributeWithCompositeID } -func (o *CreateSchemaAttributeResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (c *CreateSchemaAttributeResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if c == nil { return nil } - return o.TooManyRequestsError + return c.TooManyRequestsError } -func (o *CreateSchemaAttributeResponse) GetHeaders() map[string][]string { - if o == nil { +func (c *CreateSchemaAttributeResponse) GetHeaders() map[string][]string { + if c == nil { return map[string][]string{} } - return o.Headers + return c.Headers } diff --git a/internal/sdk/models/operations/createschemacapability.go b/internal/sdk/models/operations/createschemacapability.go index 4da78fea..e8348b6b 100644 --- a/internal/sdk/models/operations/createschemacapability.go +++ b/internal/sdk/models/operations/createschemacapability.go @@ -21,44 +21,44 @@ type CreateSchemaCapabilityResponse struct { Headers map[string][]string } -func (o *CreateSchemaCapabilityResponse) GetContentType() string { - if o == nil { +func (c *CreateSchemaCapabilityResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CreateSchemaCapabilityResponse) GetStatusCode() int { - if o == nil { +func (c *CreateSchemaCapabilityResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CreateSchemaCapabilityResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CreateSchemaCapabilityResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *CreateSchemaCapabilityResponse) GetEntityCapabilityWithCompositeID() *shared.EntityCapabilityWithCompositeID { - if o == nil { +func (c *CreateSchemaCapabilityResponse) GetEntityCapabilityWithCompositeID() *shared.EntityCapabilityWithCompositeID { + if c == nil { return nil } - return o.EntityCapabilityWithCompositeID + return c.EntityCapabilityWithCompositeID } -func (o *CreateSchemaCapabilityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (c *CreateSchemaCapabilityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if c == nil { return nil } - return o.TooManyRequestsError + return c.TooManyRequestsError } -func (o *CreateSchemaCapabilityResponse) GetHeaders() map[string][]string { - if o == nil { +func (c *CreateSchemaCapabilityResponse) GetHeaders() map[string][]string { + if c == nil { return map[string][]string{} } - return o.Headers + return c.Headers } diff --git a/internal/sdk/models/operations/createschemagroup.go b/internal/sdk/models/operations/createschemagroup.go index dbc5f258..3d06d4be 100644 --- a/internal/sdk/models/operations/createschemagroup.go +++ b/internal/sdk/models/operations/createschemagroup.go @@ -21,44 +21,44 @@ type CreateSchemaGroupResponse struct { Headers map[string][]string } -func (o *CreateSchemaGroupResponse) GetContentType() string { - if o == nil { +func (c *CreateSchemaGroupResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CreateSchemaGroupResponse) GetStatusCode() int { - if o == nil { +func (c *CreateSchemaGroupResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CreateSchemaGroupResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CreateSchemaGroupResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *CreateSchemaGroupResponse) GetEntitySchemaGroupWithCompositeID() *shared.EntitySchemaGroupWithCompositeID { - if o == nil { +func (c *CreateSchemaGroupResponse) GetEntitySchemaGroupWithCompositeID() *shared.EntitySchemaGroupWithCompositeID { + if c == nil { return nil } - return o.EntitySchemaGroupWithCompositeID + return c.EntitySchemaGroupWithCompositeID } -func (o *CreateSchemaGroupResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (c *CreateSchemaGroupResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if c == nil { return nil } - return o.TooManyRequestsError + return c.TooManyRequestsError } -func (o *CreateSchemaGroupResponse) GetHeaders() map[string][]string { - if o == nil { +func (c *CreateSchemaGroupResponse) GetHeaders() map[string][]string { + if c == nil { return map[string][]string{} } - return o.Headers + return c.Headers } diff --git a/internal/sdk/models/operations/createschemagroupheadline.go b/internal/sdk/models/operations/createschemagroupheadline.go index 8ce098ee..21fb65d7 100644 --- a/internal/sdk/models/operations/createschemagroupheadline.go +++ b/internal/sdk/models/operations/createschemagroupheadline.go @@ -21,44 +21,44 @@ type CreateSchemaGroupHeadlineResponse struct { Headers map[string][]string } -func (o *CreateSchemaGroupHeadlineResponse) GetContentType() string { - if o == nil { +func (c *CreateSchemaGroupHeadlineResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CreateSchemaGroupHeadlineResponse) GetStatusCode() int { - if o == nil { +func (c *CreateSchemaGroupHeadlineResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CreateSchemaGroupHeadlineResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CreateSchemaGroupHeadlineResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *CreateSchemaGroupHeadlineResponse) GetGroupHeadlineWithCompositeID() *shared.GroupHeadlineWithCompositeID { - if o == nil { +func (c *CreateSchemaGroupHeadlineResponse) GetGroupHeadlineWithCompositeID() *shared.GroupHeadlineWithCompositeID { + if c == nil { return nil } - return o.GroupHeadlineWithCompositeID + return c.GroupHeadlineWithCompositeID } -func (o *CreateSchemaGroupHeadlineResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (c *CreateSchemaGroupHeadlineResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if c == nil { return nil } - return o.TooManyRequestsError + return c.TooManyRequestsError } -func (o *CreateSchemaGroupHeadlineResponse) GetHeaders() map[string][]string { - if o == nil { +func (c *CreateSchemaGroupHeadlineResponse) GetHeaders() map[string][]string { + if c == nil { return map[string][]string{} } - return o.Headers + return c.Headers } diff --git a/internal/sdk/models/operations/createtaxonomy.go b/internal/sdk/models/operations/createtaxonomy.go index 930acc55..b8edc721 100644 --- a/internal/sdk/models/operations/createtaxonomy.go +++ b/internal/sdk/models/operations/createtaxonomy.go @@ -21,44 +21,44 @@ type CreateTaxonomyResponse struct { Headers map[string][]string } -func (o *CreateTaxonomyResponse) GetContentType() string { - if o == nil { +func (c *CreateTaxonomyResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CreateTaxonomyResponse) GetStatusCode() int { - if o == nil { +func (c *CreateTaxonomyResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CreateTaxonomyResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CreateTaxonomyResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *CreateTaxonomyResponse) GetTaxonomy() *shared.Taxonomy { - if o == nil { +func (c *CreateTaxonomyResponse) GetTaxonomy() *shared.Taxonomy { + if c == nil { return nil } - return o.Taxonomy + return c.Taxonomy } -func (o *CreateTaxonomyResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (c *CreateTaxonomyResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if c == nil { return nil } - return o.TooManyRequestsError + return c.TooManyRequestsError } -func (o *CreateTaxonomyResponse) GetHeaders() map[string][]string { - if o == nil { +func (c *CreateTaxonomyResponse) GetHeaders() map[string][]string { + if c == nil { return map[string][]string{} } - return o.Headers + return c.Headers } diff --git a/internal/sdk/models/operations/createtaxonomyclassification.go b/internal/sdk/models/operations/createtaxonomyclassification.go index f2d4e9f3..06489f4d 100644 --- a/internal/sdk/models/operations/createtaxonomyclassification.go +++ b/internal/sdk/models/operations/createtaxonomyclassification.go @@ -21,44 +21,44 @@ type CreateTaxonomyClassificationResponse struct { Headers map[string][]string } -func (o *CreateTaxonomyClassificationResponse) GetContentType() string { - if o == nil { +func (c *CreateTaxonomyClassificationResponse) GetContentType() string { + if c == nil { return "" } - return o.ContentType + return c.ContentType } -func (o *CreateTaxonomyClassificationResponse) GetStatusCode() int { - if o == nil { +func (c *CreateTaxonomyClassificationResponse) GetStatusCode() int { + if c == nil { return 0 } - return o.StatusCode + return c.StatusCode } -func (o *CreateTaxonomyClassificationResponse) GetRawResponse() *http.Response { - if o == nil { +func (c *CreateTaxonomyClassificationResponse) GetRawResponse() *http.Response { + if c == nil { return nil } - return o.RawResponse + return c.RawResponse } -func (o *CreateTaxonomyClassificationResponse) GetTaxonomyClassification() *shared.TaxonomyClassification { - if o == nil { +func (c *CreateTaxonomyClassificationResponse) GetTaxonomyClassification() *shared.TaxonomyClassification { + if c == nil { return nil } - return o.TaxonomyClassification + return c.TaxonomyClassification } -func (o *CreateTaxonomyClassificationResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (c *CreateTaxonomyClassificationResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if c == nil { return nil } - return o.TooManyRequestsError + return c.TooManyRequestsError } -func (o *CreateTaxonomyClassificationResponse) GetHeaders() map[string][]string { - if o == nil { +func (c *CreateTaxonomyClassificationResponse) GetHeaders() map[string][]string { + if c == nil { return map[string][]string{} } - return o.Headers + return c.Headers } diff --git a/internal/sdk/models/operations/deleteentity.go b/internal/sdk/models/operations/deleteentity.go index d1106ab0..aca2db00 100644 --- a/internal/sdk/models/operations/deleteentity.go +++ b/internal/sdk/models/operations/deleteentity.go @@ -30,32 +30,32 @@ func (d *DeleteEntityRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *DeleteEntityRequest) GetSlug() string { - if o == nil { +func (d *DeleteEntityRequest) GetSlug() string { + if d == nil { return "" } - return o.Slug + return d.Slug } -func (o *DeleteEntityRequest) GetID() string { - if o == nil { +func (d *DeleteEntityRequest) GetID() string { + if d == nil { return "" } - return o.ID + return d.ID } -func (o *DeleteEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { - if o == nil { +func (d *DeleteEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { + if d == nil { return nil } - return o.ActivityID + return d.ActivityID } -func (o *DeleteEntityRequest) GetPurge() *bool { - if o == nil { +func (d *DeleteEntityRequest) GetPurge() *bool { + if d == nil { return nil } - return o.Purge + return d.Purge } type DeleteEntityResponse struct { @@ -70,37 +70,37 @@ type DeleteEntityResponse struct { Headers map[string][]string } -func (o *DeleteEntityResponse) GetContentType() string { - if o == nil { +func (d *DeleteEntityResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeleteEntityResponse) GetStatusCode() int { - if o == nil { +func (d *DeleteEntityResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeleteEntityResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeleteEntityResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } -func (o *DeleteEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (d *DeleteEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if d == nil { return nil } - return o.TooManyRequestsError + return d.TooManyRequestsError } -func (o *DeleteEntityResponse) GetHeaders() map[string][]string { - if o == nil { +func (d *DeleteEntityResponse) GetHeaders() map[string][]string { + if d == nil { return map[string][]string{} } - return o.Headers + return d.Headers } diff --git a/internal/sdk/models/operations/deleterelation.go b/internal/sdk/models/operations/deleterelation.go index 9b29cda1..e199288f 100644 --- a/internal/sdk/models/operations/deleterelation.go +++ b/internal/sdk/models/operations/deleterelation.go @@ -34,46 +34,46 @@ func (d *DeleteRelationRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *DeleteRelationRequest) GetSlug() string { - if o == nil { +func (d *DeleteRelationRequest) GetSlug() string { + if d == nil { return "" } - return o.Slug + return d.Slug } -func (o *DeleteRelationRequest) GetID() string { - if o == nil { +func (d *DeleteRelationRequest) GetID() string { + if d == nil { return "" } - return o.ID + return d.ID } -func (o *DeleteRelationRequest) GetAttribute() string { - if o == nil { +func (d *DeleteRelationRequest) GetAttribute() string { + if d == nil { return "" } - return o.Attribute + return d.Attribute } -func (o *DeleteRelationRequest) GetEntityID() string { - if o == nil { +func (d *DeleteRelationRequest) GetEntityID() string { + if d == nil { return "" } - return o.EntityID + return d.EntityID } -func (o *DeleteRelationRequest) GetAsync() *bool { - if o == nil { +func (d *DeleteRelationRequest) GetAsync() *bool { + if d == nil { return nil } - return o.Async + return d.Async } -func (o *DeleteRelationRequest) GetActivityID() *shared.ActivityIDQueryParam { - if o == nil { +func (d *DeleteRelationRequest) GetActivityID() *shared.ActivityIDQueryParam { + if d == nil { return nil } - return o.ActivityID + return d.ActivityID } type DeleteRelationResponse struct { @@ -90,44 +90,44 @@ type DeleteRelationResponse struct { Headers map[string][]string } -func (o *DeleteRelationResponse) GetContentType() string { - if o == nil { +func (d *DeleteRelationResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeleteRelationResponse) GetStatusCode() int { - if o == nil { +func (d *DeleteRelationResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeleteRelationResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeleteRelationResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } -func (o *DeleteRelationResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (d *DeleteRelationResponse) GetNotFoundError() *shared.NotFoundError { + if d == nil { return nil } - return o.NotFoundError + return d.NotFoundError } -func (o *DeleteRelationResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (d *DeleteRelationResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if d == nil { return nil } - return o.TooManyRequestsError + return d.TooManyRequestsError } -func (o *DeleteRelationResponse) GetHeaders() map[string][]string { - if o == nil { +func (d *DeleteRelationResponse) GetHeaders() map[string][]string { + if d == nil { return map[string][]string{} } - return o.Headers + return d.Headers } diff --git a/internal/sdk/models/operations/deletesavedview.go b/internal/sdk/models/operations/deletesavedview.go index a9f85b40..b4c5f21d 100644 --- a/internal/sdk/models/operations/deletesavedview.go +++ b/internal/sdk/models/operations/deletesavedview.go @@ -12,11 +12,11 @@ type DeleteSavedViewRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *DeleteSavedViewRequest) GetID() string { - if o == nil { +func (d *DeleteSavedViewRequest) GetID() string { + if d == nil { return "" } - return o.ID + return d.ID } type DeleteSavedViewResponse struct { @@ -31,37 +31,37 @@ type DeleteSavedViewResponse struct { Headers map[string][]string } -func (o *DeleteSavedViewResponse) GetContentType() string { - if o == nil { +func (d *DeleteSavedViewResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeleteSavedViewResponse) GetStatusCode() int { - if o == nil { +func (d *DeleteSavedViewResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeleteSavedViewResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeleteSavedViewResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } -func (o *DeleteSavedViewResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (d *DeleteSavedViewResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if d == nil { return nil } - return o.TooManyRequestsError + return d.TooManyRequestsError } -func (o *DeleteSavedViewResponse) GetHeaders() map[string][]string { - if o == nil { +func (d *DeleteSavedViewResponse) GetHeaders() map[string][]string { + if d == nil { return map[string][]string{} } - return o.Headers + return d.Headers } diff --git a/internal/sdk/models/operations/deleteschema.go b/internal/sdk/models/operations/deleteschema.go index 2293c194..ccf08f43 100644 --- a/internal/sdk/models/operations/deleteschema.go +++ b/internal/sdk/models/operations/deleteschema.go @@ -12,11 +12,11 @@ type DeleteSchemaRequest struct { Slug string `pathParam:"style=simple,explode=false,name=slug"` } -func (o *DeleteSchemaRequest) GetSlug() string { - if o == nil { +func (d *DeleteSchemaRequest) GetSlug() string { + if d == nil { return "" } - return o.Slug + return d.Slug } type DeleteSchemaResponse struct { @@ -31,37 +31,37 @@ type DeleteSchemaResponse struct { Headers map[string][]string } -func (o *DeleteSchemaResponse) GetContentType() string { - if o == nil { +func (d *DeleteSchemaResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeleteSchemaResponse) GetStatusCode() int { - if o == nil { +func (d *DeleteSchemaResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeleteSchemaResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeleteSchemaResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } -func (o *DeleteSchemaResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (d *DeleteSchemaResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if d == nil { return nil } - return o.TooManyRequestsError + return d.TooManyRequestsError } -func (o *DeleteSchemaResponse) GetHeaders() map[string][]string { - if o == nil { +func (d *DeleteSchemaResponse) GetHeaders() map[string][]string { + if d == nil { return map[string][]string{} } - return o.Headers + return d.Headers } diff --git a/internal/sdk/models/operations/deleteschemaattribute.go b/internal/sdk/models/operations/deleteschemaattribute.go index fbc97bce..a300797e 100644 --- a/internal/sdk/models/operations/deleteschemaattribute.go +++ b/internal/sdk/models/operations/deleteschemaattribute.go @@ -12,11 +12,11 @@ type DeleteSchemaAttributeRequest struct { CompositeID string `pathParam:"style=simple,explode=false,name=composite_id"` } -func (o *DeleteSchemaAttributeRequest) GetCompositeID() string { - if o == nil { +func (d *DeleteSchemaAttributeRequest) GetCompositeID() string { + if d == nil { return "" } - return o.CompositeID + return d.CompositeID } type DeleteSchemaAttributeResponse struct { @@ -33,44 +33,44 @@ type DeleteSchemaAttributeResponse struct { Headers map[string][]string } -func (o *DeleteSchemaAttributeResponse) GetContentType() string { - if o == nil { +func (d *DeleteSchemaAttributeResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeleteSchemaAttributeResponse) GetStatusCode() int { - if o == nil { +func (d *DeleteSchemaAttributeResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeleteSchemaAttributeResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeleteSchemaAttributeResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } -func (o *DeleteSchemaAttributeResponse) GetAttributeWithCompositeID() *shared.AttributeWithCompositeID { - if o == nil { +func (d *DeleteSchemaAttributeResponse) GetAttributeWithCompositeID() *shared.AttributeWithCompositeID { + if d == nil { return nil } - return o.AttributeWithCompositeID + return d.AttributeWithCompositeID } -func (o *DeleteSchemaAttributeResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (d *DeleteSchemaAttributeResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if d == nil { return nil } - return o.TooManyRequestsError + return d.TooManyRequestsError } -func (o *DeleteSchemaAttributeResponse) GetHeaders() map[string][]string { - if o == nil { +func (d *DeleteSchemaAttributeResponse) GetHeaders() map[string][]string { + if d == nil { return map[string][]string{} } - return o.Headers + return d.Headers } diff --git a/internal/sdk/models/operations/deleteschemacapability.go b/internal/sdk/models/operations/deleteschemacapability.go index e5f74482..b2d09cde 100644 --- a/internal/sdk/models/operations/deleteschemacapability.go +++ b/internal/sdk/models/operations/deleteschemacapability.go @@ -12,11 +12,11 @@ type DeleteSchemaCapabilityRequest struct { CompositeID string `pathParam:"style=simple,explode=false,name=composite_id"` } -func (o *DeleteSchemaCapabilityRequest) GetCompositeID() string { - if o == nil { +func (d *DeleteSchemaCapabilityRequest) GetCompositeID() string { + if d == nil { return "" } - return o.CompositeID + return d.CompositeID } type DeleteSchemaCapabilityResponse struct { @@ -33,44 +33,44 @@ type DeleteSchemaCapabilityResponse struct { Headers map[string][]string } -func (o *DeleteSchemaCapabilityResponse) GetContentType() string { - if o == nil { +func (d *DeleteSchemaCapabilityResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeleteSchemaCapabilityResponse) GetStatusCode() int { - if o == nil { +func (d *DeleteSchemaCapabilityResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeleteSchemaCapabilityResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeleteSchemaCapabilityResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } -func (o *DeleteSchemaCapabilityResponse) GetEntityCapabilityWithCompositeID() *shared.EntityCapabilityWithCompositeID { - if o == nil { +func (d *DeleteSchemaCapabilityResponse) GetEntityCapabilityWithCompositeID() *shared.EntityCapabilityWithCompositeID { + if d == nil { return nil } - return o.EntityCapabilityWithCompositeID + return d.EntityCapabilityWithCompositeID } -func (o *DeleteSchemaCapabilityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (d *DeleteSchemaCapabilityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if d == nil { return nil } - return o.TooManyRequestsError + return d.TooManyRequestsError } -func (o *DeleteSchemaCapabilityResponse) GetHeaders() map[string][]string { - if o == nil { +func (d *DeleteSchemaCapabilityResponse) GetHeaders() map[string][]string { + if d == nil { return map[string][]string{} } - return o.Headers + return d.Headers } diff --git a/internal/sdk/models/operations/deleteschemagroup.go b/internal/sdk/models/operations/deleteschemagroup.go index b59a2a31..2db40411 100644 --- a/internal/sdk/models/operations/deleteschemagroup.go +++ b/internal/sdk/models/operations/deleteschemagroup.go @@ -12,11 +12,11 @@ type DeleteSchemaGroupRequest struct { CompositeID string `pathParam:"style=simple,explode=false,name=composite_id"` } -func (o *DeleteSchemaGroupRequest) GetCompositeID() string { - if o == nil { +func (d *DeleteSchemaGroupRequest) GetCompositeID() string { + if d == nil { return "" } - return o.CompositeID + return d.CompositeID } type DeleteSchemaGroupResponse struct { @@ -33,44 +33,44 @@ type DeleteSchemaGroupResponse struct { Headers map[string][]string } -func (o *DeleteSchemaGroupResponse) GetContentType() string { - if o == nil { +func (d *DeleteSchemaGroupResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeleteSchemaGroupResponse) GetStatusCode() int { - if o == nil { +func (d *DeleteSchemaGroupResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeleteSchemaGroupResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeleteSchemaGroupResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } -func (o *DeleteSchemaGroupResponse) GetEntitySchemaGroupWithCompositeID() *shared.EntitySchemaGroupWithCompositeID { - if o == nil { +func (d *DeleteSchemaGroupResponse) GetEntitySchemaGroupWithCompositeID() *shared.EntitySchemaGroupWithCompositeID { + if d == nil { return nil } - return o.EntitySchemaGroupWithCompositeID + return d.EntitySchemaGroupWithCompositeID } -func (o *DeleteSchemaGroupResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (d *DeleteSchemaGroupResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if d == nil { return nil } - return o.TooManyRequestsError + return d.TooManyRequestsError } -func (o *DeleteSchemaGroupResponse) GetHeaders() map[string][]string { - if o == nil { +func (d *DeleteSchemaGroupResponse) GetHeaders() map[string][]string { + if d == nil { return map[string][]string{} } - return o.Headers + return d.Headers } diff --git a/internal/sdk/models/operations/deleteschemagroupheadline.go b/internal/sdk/models/operations/deleteschemagroupheadline.go index 488f7943..07e51420 100644 --- a/internal/sdk/models/operations/deleteschemagroupheadline.go +++ b/internal/sdk/models/operations/deleteschemagroupheadline.go @@ -12,11 +12,11 @@ type DeleteSchemaGroupHeadlineRequest struct { CompositeID string `pathParam:"style=simple,explode=false,name=composite_id"` } -func (o *DeleteSchemaGroupHeadlineRequest) GetCompositeID() string { - if o == nil { +func (d *DeleteSchemaGroupHeadlineRequest) GetCompositeID() string { + if d == nil { return "" } - return o.CompositeID + return d.CompositeID } type DeleteSchemaGroupHeadlineResponse struct { @@ -33,44 +33,44 @@ type DeleteSchemaGroupHeadlineResponse struct { Headers map[string][]string } -func (o *DeleteSchemaGroupHeadlineResponse) GetContentType() string { - if o == nil { +func (d *DeleteSchemaGroupHeadlineResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeleteSchemaGroupHeadlineResponse) GetStatusCode() int { - if o == nil { +func (d *DeleteSchemaGroupHeadlineResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeleteSchemaGroupHeadlineResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeleteSchemaGroupHeadlineResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } -func (o *DeleteSchemaGroupHeadlineResponse) GetGroupHeadlineWithCompositeID() *shared.GroupHeadlineWithCompositeID { - if o == nil { +func (d *DeleteSchemaGroupHeadlineResponse) GetGroupHeadlineWithCompositeID() *shared.GroupHeadlineWithCompositeID { + if d == nil { return nil } - return o.GroupHeadlineWithCompositeID + return d.GroupHeadlineWithCompositeID } -func (o *DeleteSchemaGroupHeadlineResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (d *DeleteSchemaGroupHeadlineResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if d == nil { return nil } - return o.TooManyRequestsError + return d.TooManyRequestsError } -func (o *DeleteSchemaGroupHeadlineResponse) GetHeaders() map[string][]string { - if o == nil { +func (d *DeleteSchemaGroupHeadlineResponse) GetHeaders() map[string][]string { + if d == nil { return map[string][]string{} } - return o.Headers + return d.Headers } diff --git a/internal/sdk/models/operations/deletetaxonomy.go b/internal/sdk/models/operations/deletetaxonomy.go index be223757..a98d7eca 100644 --- a/internal/sdk/models/operations/deletetaxonomy.go +++ b/internal/sdk/models/operations/deletetaxonomy.go @@ -14,18 +14,18 @@ type DeleteTaxonomyRequest struct { Permanent *bool `queryParam:"style=form,explode=true,name=permanent"` } -func (o *DeleteTaxonomyRequest) GetTaxonomySlug() string { - if o == nil { +func (d *DeleteTaxonomyRequest) GetTaxonomySlug() string { + if d == nil { return "" } - return o.TaxonomySlug + return d.TaxonomySlug } -func (o *DeleteTaxonomyRequest) GetPermanent() *bool { - if o == nil { +func (d *DeleteTaxonomyRequest) GetPermanent() *bool { + if d == nil { return nil } - return o.Permanent + return d.Permanent } type DeleteTaxonomyResponse struct { @@ -40,37 +40,37 @@ type DeleteTaxonomyResponse struct { Headers map[string][]string } -func (o *DeleteTaxonomyResponse) GetContentType() string { - if o == nil { +func (d *DeleteTaxonomyResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeleteTaxonomyResponse) GetStatusCode() int { - if o == nil { +func (d *DeleteTaxonomyResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeleteTaxonomyResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeleteTaxonomyResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } -func (o *DeleteTaxonomyResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (d *DeleteTaxonomyResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if d == nil { return nil } - return o.TooManyRequestsError + return d.TooManyRequestsError } -func (o *DeleteTaxonomyResponse) GetHeaders() map[string][]string { - if o == nil { +func (d *DeleteTaxonomyResponse) GetHeaders() map[string][]string { + if d == nil { return map[string][]string{} } - return o.Headers + return d.Headers } diff --git a/internal/sdk/models/operations/deletetaxonomyclassification.go b/internal/sdk/models/operations/deletetaxonomyclassification.go index f9d04699..10f24037 100644 --- a/internal/sdk/models/operations/deletetaxonomyclassification.go +++ b/internal/sdk/models/operations/deletetaxonomyclassification.go @@ -12,11 +12,11 @@ type DeleteTaxonomyClassificationRequest struct { ClassificationSlug string `pathParam:"style=simple,explode=false,name=classificationSlug"` } -func (o *DeleteTaxonomyClassificationRequest) GetClassificationSlug() string { - if o == nil { +func (d *DeleteTaxonomyClassificationRequest) GetClassificationSlug() string { + if d == nil { return "" } - return o.ClassificationSlug + return d.ClassificationSlug } type DeleteTaxonomyClassificationResponse struct { @@ -33,44 +33,44 @@ type DeleteTaxonomyClassificationResponse struct { Headers map[string][]string } -func (o *DeleteTaxonomyClassificationResponse) GetContentType() string { - if o == nil { +func (d *DeleteTaxonomyClassificationResponse) GetContentType() string { + if d == nil { return "" } - return o.ContentType + return d.ContentType } -func (o *DeleteTaxonomyClassificationResponse) GetStatusCode() int { - if o == nil { +func (d *DeleteTaxonomyClassificationResponse) GetStatusCode() int { + if d == nil { return 0 } - return o.StatusCode + return d.StatusCode } -func (o *DeleteTaxonomyClassificationResponse) GetRawResponse() *http.Response { - if o == nil { +func (d *DeleteTaxonomyClassificationResponse) GetRawResponse() *http.Response { + if d == nil { return nil } - return o.RawResponse + return d.RawResponse } -func (o *DeleteTaxonomyClassificationResponse) GetTaxonomyClassification() *shared.TaxonomyClassification { - if o == nil { +func (d *DeleteTaxonomyClassificationResponse) GetTaxonomyClassification() *shared.TaxonomyClassification { + if d == nil { return nil } - return o.TaxonomyClassification + return d.TaxonomyClassification } -func (o *DeleteTaxonomyClassificationResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (d *DeleteTaxonomyClassificationResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if d == nil { return nil } - return o.TooManyRequestsError + return d.TooManyRequestsError } -func (o *DeleteTaxonomyClassificationResponse) GetHeaders() map[string][]string { - if o == nil { +func (d *DeleteTaxonomyClassificationResponse) GetHeaders() map[string][]string { + if d == nil { return map[string][]string{} } - return o.Headers + return d.Headers } diff --git a/internal/sdk/models/operations/exportentities.go b/internal/sdk/models/operations/exportentities.go index 06ddbbbb..a5bf2333 100644 --- a/internal/sdk/models/operations/exportentities.go +++ b/internal/sdk/models/operations/exportentities.go @@ -17,32 +17,32 @@ type ExportEntitiesRequest struct { EntitySearchParams *shared.EntitySearchParams `request:"mediaType=application/json"` } -func (o *ExportEntitiesRequest) GetJobID() *string { - if o == nil { +func (e *ExportEntitiesRequest) GetJobID() *string { + if e == nil { return nil } - return o.JobID + return e.JobID } -func (o *ExportEntitiesRequest) GetIsTemplate() *bool { - if o == nil { +func (e *ExportEntitiesRequest) GetIsTemplate() *bool { + if e == nil { return nil } - return o.IsTemplate + return e.IsTemplate } -func (o *ExportEntitiesRequest) GetLanguage() *string { - if o == nil { +func (e *ExportEntitiesRequest) GetLanguage() *string { + if e == nil { return nil } - return o.Language + return e.Language } -func (o *ExportEntitiesRequest) GetEntitySearchParams() *shared.EntitySearchParams { - if o == nil { +func (e *ExportEntitiesRequest) GetEntitySearchParams() *shared.EntitySearchParams { + if e == nil { return nil } - return o.EntitySearchParams + return e.EntitySearchParams } type ExportEntitiesResponse struct { @@ -57,37 +57,37 @@ type ExportEntitiesResponse struct { Headers map[string][]string } -func (o *ExportEntitiesResponse) GetContentType() string { - if o == nil { +func (e *ExportEntitiesResponse) GetContentType() string { + if e == nil { return "" } - return o.ContentType + return e.ContentType } -func (o *ExportEntitiesResponse) GetStatusCode() int { - if o == nil { +func (e *ExportEntitiesResponse) GetStatusCode() int { + if e == nil { return 0 } - return o.StatusCode + return e.StatusCode } -func (o *ExportEntitiesResponse) GetRawResponse() *http.Response { - if o == nil { +func (e *ExportEntitiesResponse) GetRawResponse() *http.Response { + if e == nil { return nil } - return o.RawResponse + return e.RawResponse } -func (o *ExportEntitiesResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (e *ExportEntitiesResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if e == nil { return nil } - return o.TooManyRequestsError + return e.TooManyRequestsError } -func (o *ExportEntitiesResponse) GetHeaders() map[string][]string { - if o == nil { +func (e *ExportEntitiesResponse) GetHeaders() map[string][]string { + if e == nil { return map[string][]string{} } - return o.Headers + return e.Headers } diff --git a/internal/sdk/models/operations/getactivity.go b/internal/sdk/models/operations/getactivity.go index f015326d..a38b9484 100644 --- a/internal/sdk/models/operations/getactivity.go +++ b/internal/sdk/models/operations/getactivity.go @@ -30,25 +30,25 @@ func (g *GetActivityRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetActivityRequest) GetID() string { - if o == nil { +func (g *GetActivityRequest) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } -func (o *GetActivityRequest) GetOperationsSize() *int64 { - if o == nil { +func (g *GetActivityRequest) GetOperationsSize() *int64 { + if g == nil { return nil } - return o.OperationsSize + return g.OperationsSize } -func (o *GetActivityRequest) GetOperationsFrom() *int64 { - if o == nil { +func (g *GetActivityRequest) GetOperationsFrom() *int64 { + if g == nil { return nil } - return o.OperationsFrom + return g.OperationsFrom } type GetActivityResponse struct { @@ -64,37 +64,37 @@ type GetActivityResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetActivityResponse) GetContentType() string { - if o == nil { +func (g *GetActivityResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetActivityResponse) GetStatusCode() int { - if o == nil { +func (g *GetActivityResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetActivityResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetActivityResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetActivityResponse) GetActivityItem() *shared.ActivityItem { - if o == nil { +func (g *GetActivityResponse) GetActivityItem() *shared.ActivityItem { + if g == nil { return nil } - return o.ActivityItem + return g.ActivityItem } -func (o *GetActivityResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetActivityResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getentity.go b/internal/sdk/models/operations/getentity.go index f87a3dda..92161d8d 100644 --- a/internal/sdk/models/operations/getentity.go +++ b/internal/sdk/models/operations/getentity.go @@ -28,25 +28,25 @@ func (g *GetEntityRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetEntityRequest) GetID() string { - if o == nil { +func (g *GetEntityRequest) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } -func (o *GetEntityRequest) GetSlug() string { - if o == nil { +func (g *GetEntityRequest) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetEntityRequest) GetHydrate() *bool { - if o == nil { +func (g *GetEntityRequest) GetHydrate() *bool { + if g == nil { return nil } - return o.Hydrate + return g.Hydrate } // GetEntityResponseBody - Success @@ -55,18 +55,18 @@ type GetEntityResponseBody struct { Relations []shared.EntityItem `json:"relations,omitempty"` } -func (o *GetEntityResponseBody) GetEntity() *shared.EntityItem { - if o == nil { +func (g *GetEntityResponseBody) GetEntity() *shared.EntityItem { + if g == nil { return nil } - return o.Entity + return g.Entity } -func (o *GetEntityResponseBody) GetRelations() []shared.EntityItem { - if o == nil { +func (g *GetEntityResponseBody) GetRelations() []shared.EntityItem { + if g == nil { return nil } - return o.Relations + return g.Relations } type GetEntityResponse struct { @@ -82,37 +82,37 @@ type GetEntityResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetEntityResponse) GetContentType() string { - if o == nil { +func (g *GetEntityResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetEntityResponse) GetStatusCode() int { - if o == nil { +func (g *GetEntityResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetEntityResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetEntityResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetEntityResponse) GetObject() *GetEntityResponseBody { - if o == nil { +func (g *GetEntityResponse) GetObject() *GetEntityResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } -func (o *GetEntityResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetEntityResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getentityactivityfeed.go b/internal/sdk/models/operations/getentityactivityfeed.go index 2c01d9a4..8821dc4a 100644 --- a/internal/sdk/models/operations/getentityactivityfeed.go +++ b/internal/sdk/models/operations/getentityactivityfeed.go @@ -79,88 +79,88 @@ func (g *GetEntityActivityFeedRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetEntityActivityFeedRequest) GetSlug() string { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetEntityActivityFeedRequest) GetID() string { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } -func (o *GetEntityActivityFeedRequest) GetAfter() *time.Time { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetAfter() *time.Time { + if g == nil { return nil } - return o.After + return g.After } -func (o *GetEntityActivityFeedRequest) GetBefore() *time.Time { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetBefore() *time.Time { + if g == nil { return nil } - return o.Before + return g.Before } -func (o *GetEntityActivityFeedRequest) GetStartDate() *time.Time { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetStartDate() *time.Time { + if g == nil { return nil } - return o.StartDate + return g.StartDate } -func (o *GetEntityActivityFeedRequest) GetEndDate() *time.Time { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetEndDate() *time.Time { + if g == nil { return nil } - return o.EndDate + return g.EndDate } -func (o *GetEntityActivityFeedRequest) GetPresetRange() *PresetRange { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetPresetRange() *PresetRange { + if g == nil { return nil } - return o.PresetRange + return g.PresetRange } -func (o *GetEntityActivityFeedRequest) GetFrom() *int64 { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetFrom() *int64 { + if g == nil { return nil } - return o.From + return g.From } -func (o *GetEntityActivityFeedRequest) GetSize() *int64 { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetSize() *int64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetEntityActivityFeedRequest) GetType() *string { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetType() *string { + if g == nil { return nil } - return o.Type + return g.Type } -func (o *GetEntityActivityFeedRequest) GetIncludeRelations() *bool { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetIncludeRelations() *bool { + if g == nil { return nil } - return o.IncludeRelations + return g.IncludeRelations } -func (o *GetEntityActivityFeedRequest) GetExcludeActivityGroups() *string { - if o == nil { +func (g *GetEntityActivityFeedRequest) GetExcludeActivityGroups() *string { + if g == nil { return nil } - return o.ExcludeActivityGroups + return g.ExcludeActivityGroups } // GetEntityActivityFeedResponseBody - Success @@ -169,18 +169,18 @@ type GetEntityActivityFeedResponseBody struct { Results []shared.ActivityItem `json:"results,omitempty"` } -func (o *GetEntityActivityFeedResponseBody) GetTotal() *int64 { - if o == nil { +func (g *GetEntityActivityFeedResponseBody) GetTotal() *int64 { + if g == nil { return nil } - return o.Total + return g.Total } -func (o *GetEntityActivityFeedResponseBody) GetResults() []shared.ActivityItem { - if o == nil { +func (g *GetEntityActivityFeedResponseBody) GetResults() []shared.ActivityItem { + if g == nil { return nil } - return o.Results + return g.Results } type GetEntityActivityFeedResponse struct { @@ -196,37 +196,37 @@ type GetEntityActivityFeedResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetEntityActivityFeedResponse) GetContentType() string { - if o == nil { +func (g *GetEntityActivityFeedResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetEntityActivityFeedResponse) GetStatusCode() int { - if o == nil { +func (g *GetEntityActivityFeedResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetEntityActivityFeedResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetEntityActivityFeedResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetEntityActivityFeedResponse) GetObject() *GetEntityActivityFeedResponseBody { - if o == nil { +func (g *GetEntityActivityFeedResponse) GetObject() *GetEntityActivityFeedResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } -func (o *GetEntityActivityFeedResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetEntityActivityFeedResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getentityv2.go b/internal/sdk/models/operations/getentityv2.go index 321d8103..993a7163 100644 --- a/internal/sdk/models/operations/getentityv2.go +++ b/internal/sdk/models/operations/getentityv2.go @@ -30,32 +30,32 @@ func (g *GetEntityV2Request) UnmarshalJSON(data []byte) error { return nil } -func (o *GetEntityV2Request) GetID() string { - if o == nil { +func (g *GetEntityV2Request) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } -func (o *GetEntityV2Request) GetSlug() string { - if o == nil { +func (g *GetEntityV2Request) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetEntityV2Request) GetHydrate() *bool { - if o == nil { +func (g *GetEntityV2Request) GetHydrate() *bool { + if g == nil { return nil } - return o.Hydrate + return g.Hydrate } -func (o *GetEntityV2Request) GetFields() []string { - if o == nil { +func (g *GetEntityV2Request) GetFields() []string { + if g == nil { return nil } - return o.Fields + return g.Fields } type GetEntityV2Response struct { @@ -71,37 +71,37 @@ type GetEntityV2Response struct { NotFoundError *shared.NotFoundError } -func (o *GetEntityV2Response) GetContentType() string { - if o == nil { +func (g *GetEntityV2Response) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetEntityV2Response) GetStatusCode() int { - if o == nil { +func (g *GetEntityV2Response) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetEntityV2Response) GetRawResponse() *http.Response { - if o == nil { +func (g *GetEntityV2Response) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetEntityV2Response) GetEntityItem() *shared.EntityItem { - if o == nil { +func (g *GetEntityV2Response) GetEntityItem() *shared.EntityItem { + if g == nil { return nil } - return o.EntityItem + return g.EntityItem } -func (o *GetEntityV2Response) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetEntityV2Response) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getjsonschema.go b/internal/sdk/models/operations/getjsonschema.go index 5a52bee3..2a982f6d 100644 --- a/internal/sdk/models/operations/getjsonschema.go +++ b/internal/sdk/models/operations/getjsonschema.go @@ -24,18 +24,18 @@ func (g *GetJSONSchemaRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetJSONSchemaRequest) GetSlug() string { - if o == nil { +func (g *GetJSONSchemaRequest) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetJSONSchemaRequest) GetDereference() *bool { - if o == nil { +func (g *GetJSONSchemaRequest) GetDereference() *bool { + if g == nil { return nil } - return o.Dereference + return g.Dereference } // GetJSONSchemaResponseBody - Success @@ -53,30 +53,30 @@ type GetJSONSchemaResponse struct { Object *GetJSONSchemaResponseBody } -func (o *GetJSONSchemaResponse) GetContentType() string { - if o == nil { +func (g *GetJSONSchemaResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetJSONSchemaResponse) GetStatusCode() int { - if o == nil { +func (g *GetJSONSchemaResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetJSONSchemaResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetJSONSchemaResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetJSONSchemaResponse) GetObject() *GetJSONSchemaResponseBody { - if o == nil { +func (g *GetJSONSchemaResponse) GetObject() *GetJSONSchemaResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/internal/sdk/models/operations/getrelatedentitiescount.go b/internal/sdk/models/operations/getrelatedentitiescount.go index 0d45e997..d837d3db 100644 --- a/internal/sdk/models/operations/getrelatedentitiescount.go +++ b/internal/sdk/models/operations/getrelatedentitiescount.go @@ -16,25 +16,25 @@ type GetRelatedEntitiesCountRequest struct { ExcludeSchemas []string `queryParam:"style=form,explode=false,name=exclude_schemas"` } -func (o *GetRelatedEntitiesCountRequest) GetSlug() string { - if o == nil { +func (g *GetRelatedEntitiesCountRequest) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetRelatedEntitiesCountRequest) GetID() string { - if o == nil { +func (g *GetRelatedEntitiesCountRequest) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } -func (o *GetRelatedEntitiesCountRequest) GetExcludeSchemas() []string { - if o == nil { +func (g *GetRelatedEntitiesCountRequest) GetExcludeSchemas() []string { + if g == nil { return nil } - return o.ExcludeSchemas + return g.ExcludeSchemas } type GetRelatedEntitiesCountResponse struct { @@ -50,37 +50,37 @@ type GetRelatedEntitiesCountResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetRelatedEntitiesCountResponse) GetContentType() string { - if o == nil { +func (g *GetRelatedEntitiesCountResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetRelatedEntitiesCountResponse) GetStatusCode() int { - if o == nil { +func (g *GetRelatedEntitiesCountResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetRelatedEntitiesCountResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetRelatedEntitiesCountResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetRelatedEntitiesCountResponse) GetGetRelatedEntitiesCount() *shared.GetRelatedEntitiesCount { - if o == nil { +func (g *GetRelatedEntitiesCountResponse) GetGetRelatedEntitiesCount() *shared.GetRelatedEntitiesCount { + if g == nil { return nil } - return o.GetRelatedEntitiesCount + return g.GetRelatedEntitiesCount } -func (o *GetRelatedEntitiesCountResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetRelatedEntitiesCountResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getrelations.go b/internal/sdk/models/operations/getrelations.go index 3545899f..bc45484a 100644 --- a/internal/sdk/models/operations/getrelations.go +++ b/internal/sdk/models/operations/getrelations.go @@ -38,60 +38,60 @@ func (g *GetRelationsRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetRelationsRequest) GetSlug() string { - if o == nil { +func (g *GetRelationsRequest) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetRelationsRequest) GetID() string { - if o == nil { +func (g *GetRelationsRequest) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } -func (o *GetRelationsRequest) GetHydrate() *bool { - if o == nil { +func (g *GetRelationsRequest) GetHydrate() *bool { + if g == nil { return nil } - return o.Hydrate + return g.Hydrate } -func (o *GetRelationsRequest) GetIncludeReverse() *bool { - if o == nil { +func (g *GetRelationsRequest) GetIncludeReverse() *bool { + if g == nil { return nil } - return o.IncludeReverse + return g.IncludeReverse } -func (o *GetRelationsRequest) GetFrom() *int64 { - if o == nil { +func (g *GetRelationsRequest) GetFrom() *int64 { + if g == nil { return nil } - return o.From + return g.From } -func (o *GetRelationsRequest) GetSize() *int64 { - if o == nil { +func (g *GetRelationsRequest) GetSize() *int64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetRelationsRequest) GetIncludeSchemas() []string { - if o == nil { +func (g *GetRelationsRequest) GetIncludeSchemas() []string { + if g == nil { return nil } - return o.IncludeSchemas + return g.IncludeSchemas } -func (o *GetRelationsRequest) GetExcludeSchemas() []string { - if o == nil { +func (g *GetRelationsRequest) GetExcludeSchemas() []string { + if g == nil { return nil } - return o.ExcludeSchemas + return g.ExcludeSchemas } type GetRelationsResponse struct { @@ -107,37 +107,37 @@ type GetRelationsResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetRelationsResponse) GetContentType() string { - if o == nil { +func (g *GetRelationsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetRelationsResponse) GetStatusCode() int { - if o == nil { +func (g *GetRelationsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetRelationsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetRelationsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetRelationsResponse) GetGetRelationsResp() []shared.GetRelationsResp { - if o == nil { +func (g *GetRelationsResponse) GetGetRelationsResp() []shared.GetRelationsResp { + if g == nil { return nil } - return o.GetRelationsResp + return g.GetRelationsResp } -func (o *GetRelationsResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetRelationsResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getrelationsv2.go b/internal/sdk/models/operations/getrelationsv2.go index f4f8aecd..76d85944 100644 --- a/internal/sdk/models/operations/getrelationsv2.go +++ b/internal/sdk/models/operations/getrelationsv2.go @@ -38,60 +38,60 @@ func (g *GetRelationsV2Request) UnmarshalJSON(data []byte) error { return nil } -func (o *GetRelationsV2Request) GetSlug() string { - if o == nil { +func (g *GetRelationsV2Request) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetRelationsV2Request) GetID() string { - if o == nil { +func (g *GetRelationsV2Request) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } -func (o *GetRelationsV2Request) GetHydrate() *bool { - if o == nil { +func (g *GetRelationsV2Request) GetHydrate() *bool { + if g == nil { return nil } - return o.Hydrate + return g.Hydrate } -func (o *GetRelationsV2Request) GetQuery() *string { - if o == nil { +func (g *GetRelationsV2Request) GetQuery() *string { + if g == nil { return nil } - return o.Query + return g.Query } -func (o *GetRelationsV2Request) GetIncludeReverse() *bool { - if o == nil { +func (g *GetRelationsV2Request) GetIncludeReverse() *bool { + if g == nil { return nil } - return o.IncludeReverse + return g.IncludeReverse } -func (o *GetRelationsV2Request) GetFrom() *int64 { - if o == nil { +func (g *GetRelationsV2Request) GetFrom() *int64 { + if g == nil { return nil } - return o.From + return g.From } -func (o *GetRelationsV2Request) GetSize() *int64 { - if o == nil { +func (g *GetRelationsV2Request) GetSize() *int64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetRelationsV2Request) GetFields() []string { - if o == nil { +func (g *GetRelationsV2Request) GetFields() []string { + if g == nil { return nil } - return o.Fields + return g.Fields } type GetRelationsV2Response struct { @@ -107,37 +107,37 @@ type GetRelationsV2Response struct { NotFoundError *shared.NotFoundError } -func (o *GetRelationsV2Response) GetContentType() string { - if o == nil { +func (g *GetRelationsV2Response) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetRelationsV2Response) GetStatusCode() int { - if o == nil { +func (g *GetRelationsV2Response) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetRelationsV2Response) GetRawResponse() *http.Response { - if o == nil { +func (g *GetRelationsV2Response) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetRelationsV2Response) GetGetRelationsRespWithPagination() *shared.GetRelationsRespWithPagination { - if o == nil { +func (g *GetRelationsV2Response) GetGetRelationsRespWithPagination() *shared.GetRelationsRespWithPagination { + if g == nil { return nil } - return o.GetRelationsRespWithPagination + return g.GetRelationsRespWithPagination } -func (o *GetRelationsV2Response) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetRelationsV2Response) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getrelationsv3.go b/internal/sdk/models/operations/getrelationsv3.go index 4419c522..1b764674 100644 --- a/internal/sdk/models/operations/getrelationsv3.go +++ b/internal/sdk/models/operations/getrelationsv3.go @@ -52,74 +52,74 @@ func (g *GetRelationsV3Request) UnmarshalJSON(data []byte) error { return nil } -func (o *GetRelationsV3Request) GetSlug() string { - if o == nil { +func (g *GetRelationsV3Request) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetRelationsV3Request) GetID() string { - if o == nil { +func (g *GetRelationsV3Request) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } -func (o *GetRelationsV3Request) GetHydrate() *bool { - if o == nil { +func (g *GetRelationsV3Request) GetHydrate() *bool { + if g == nil { return nil } - return o.Hydrate + return g.Hydrate } -func (o *GetRelationsV3Request) GetIncludeReverse() *bool { - if o == nil { +func (g *GetRelationsV3Request) GetIncludeReverse() *bool { + if g == nil { return nil } - return o.IncludeReverse + return g.IncludeReverse } -func (o *GetRelationsV3Request) GetFrom() *int64 { - if o == nil { +func (g *GetRelationsV3Request) GetFrom() *int64 { + if g == nil { return nil } - return o.From + return g.From } -func (o *GetRelationsV3Request) GetSize() *int64 { - if o == nil { +func (g *GetRelationsV3Request) GetSize() *int64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetRelationsV3Request) GetIncludeSchemas() []string { - if o == nil { +func (g *GetRelationsV3Request) GetIncludeSchemas() []string { + if g == nil { return nil } - return o.IncludeSchemas + return g.IncludeSchemas } -func (o *GetRelationsV3Request) GetExcludeSchemas() []string { - if o == nil { +func (g *GetRelationsV3Request) GetExcludeSchemas() []string { + if g == nil { return nil } - return o.ExcludeSchemas + return g.ExcludeSchemas } -func (o *GetRelationsV3Request) GetMode() *shared.EntityRelationsModeQueryParam { - if o == nil { +func (g *GetRelationsV3Request) GetMode() *shared.EntityRelationsModeQueryParam { + if g == nil { return nil } - return o.Mode + return g.Mode } -func (o *GetRelationsV3Request) GetFields() []string { - if o == nil { +func (g *GetRelationsV3Request) GetFields() []string { + if g == nil { return nil } - return o.Fields + return g.Fields } type GetRelationsV3Response struct { @@ -135,37 +135,37 @@ type GetRelationsV3Response struct { NotFoundError *shared.NotFoundError } -func (o *GetRelationsV3Response) GetContentType() string { - if o == nil { +func (g *GetRelationsV3Response) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetRelationsV3Response) GetStatusCode() int { - if o == nil { +func (g *GetRelationsV3Response) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetRelationsV3Response) GetRawResponse() *http.Response { - if o == nil { +func (g *GetRelationsV3Response) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetRelationsV3Response) GetGetRelationsRespWithPagination() *shared.GetRelationsRespWithPagination { - if o == nil { +func (g *GetRelationsV3Response) GetGetRelationsRespWithPagination() *shared.GetRelationsRespWithPagination { + if g == nil { return nil } - return o.GetRelationsRespWithPagination + return g.GetRelationsRespWithPagination } -func (o *GetRelationsV3Response) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetRelationsV3Response) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getsavedview.go b/internal/sdk/models/operations/getsavedview.go index 1010dacd..54c44819 100644 --- a/internal/sdk/models/operations/getsavedview.go +++ b/internal/sdk/models/operations/getsavedview.go @@ -12,11 +12,11 @@ type GetSavedViewRequest struct { ID string `pathParam:"style=simple,explode=false,name=id"` } -func (o *GetSavedViewRequest) GetID() string { - if o == nil { +func (g *GetSavedViewRequest) GetID() string { + if g == nil { return "" } - return o.ID + return g.ID } // GetSavedViewResponseBody - A saved entity view @@ -27,25 +27,25 @@ type GetSavedViewResponseBody struct { UpdatedAt *string `json:"updated_at,omitempty"` } -func (o *GetSavedViewResponseBody) GetID() *string { - if o == nil { +func (g *GetSavedViewResponseBody) GetID() *string { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GetSavedViewResponseBody) GetCreatedAt() *string { - if o == nil { +func (g *GetSavedViewResponseBody) GetCreatedAt() *string { + if g == nil { return nil } - return o.CreatedAt + return g.CreatedAt } -func (o *GetSavedViewResponseBody) GetUpdatedAt() *string { - if o == nil { +func (g *GetSavedViewResponseBody) GetUpdatedAt() *string { + if g == nil { return nil } - return o.UpdatedAt + return g.UpdatedAt } type GetSavedViewResponse struct { @@ -61,37 +61,37 @@ type GetSavedViewResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetSavedViewResponse) GetContentType() string { - if o == nil { +func (g *GetSavedViewResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSavedViewResponse) GetStatusCode() int { - if o == nil { +func (g *GetSavedViewResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSavedViewResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSavedViewResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSavedViewResponse) GetObject() *GetSavedViewResponseBody { - if o == nil { +func (g *GetSavedViewResponse) GetObject() *GetSavedViewResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } -func (o *GetSavedViewResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetSavedViewResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getschema.go b/internal/sdk/models/operations/getschema.go index 716a78d0..288e71e8 100644 --- a/internal/sdk/models/operations/getschema.go +++ b/internal/sdk/models/operations/getschema.go @@ -13,18 +13,18 @@ type GetSchemaRequest struct { ID *string `queryParam:"style=form,explode=true,name=id"` } -func (o *GetSchemaRequest) GetSlug() string { - if o == nil { +func (g *GetSchemaRequest) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetSchemaRequest) GetID() *string { - if o == nil { +func (g *GetSchemaRequest) GetID() *string { + if g == nil { return nil } - return o.ID + return g.ID } type GetSchemaResponse struct { @@ -40,37 +40,37 @@ type GetSchemaResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetSchemaResponse) GetContentType() string { - if o == nil { +func (g *GetSchemaResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSchemaResponse) GetStatusCode() int { - if o == nil { +func (g *GetSchemaResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSchemaResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSchemaResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSchemaResponse) GetEntitySchemaItem() *shared.EntitySchemaItem { - if o == nil { +func (g *GetSchemaResponse) GetEntitySchemaItem() *shared.EntitySchemaItem { + if g == nil { return nil } - return o.EntitySchemaItem + return g.EntitySchemaItem } -func (o *GetSchemaResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetSchemaResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getschemaattribute.go b/internal/sdk/models/operations/getschemaattribute.go index d67c7b5d..35e39f10 100644 --- a/internal/sdk/models/operations/getschemaattribute.go +++ b/internal/sdk/models/operations/getschemaattribute.go @@ -12,11 +12,11 @@ type GetSchemaAttributeRequest struct { CompositeID string `pathParam:"style=simple,explode=false,name=composite_id"` } -func (o *GetSchemaAttributeRequest) GetCompositeID() string { - if o == nil { +func (g *GetSchemaAttributeRequest) GetCompositeID() string { + if g == nil { return "" } - return o.CompositeID + return g.CompositeID } type GetSchemaAttributeResponse struct { @@ -32,37 +32,37 @@ type GetSchemaAttributeResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetSchemaAttributeResponse) GetContentType() string { - if o == nil { +func (g *GetSchemaAttributeResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSchemaAttributeResponse) GetStatusCode() int { - if o == nil { +func (g *GetSchemaAttributeResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSchemaAttributeResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSchemaAttributeResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSchemaAttributeResponse) GetAttributeWithCompositeID() *shared.AttributeWithCompositeID { - if o == nil { +func (g *GetSchemaAttributeResponse) GetAttributeWithCompositeID() *shared.AttributeWithCompositeID { + if g == nil { return nil } - return o.AttributeWithCompositeID + return g.AttributeWithCompositeID } -func (o *GetSchemaAttributeResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetSchemaAttributeResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getschemacapability.go b/internal/sdk/models/operations/getschemacapability.go index 7be4c6e7..60246524 100644 --- a/internal/sdk/models/operations/getschemacapability.go +++ b/internal/sdk/models/operations/getschemacapability.go @@ -12,11 +12,11 @@ type GetSchemaCapabilityRequest struct { CompositeID string `pathParam:"style=simple,explode=false,name=composite_id"` } -func (o *GetSchemaCapabilityRequest) GetCompositeID() string { - if o == nil { +func (g *GetSchemaCapabilityRequest) GetCompositeID() string { + if g == nil { return "" } - return o.CompositeID + return g.CompositeID } type GetSchemaCapabilityResponse struct { @@ -32,37 +32,37 @@ type GetSchemaCapabilityResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetSchemaCapabilityResponse) GetContentType() string { - if o == nil { +func (g *GetSchemaCapabilityResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSchemaCapabilityResponse) GetStatusCode() int { - if o == nil { +func (g *GetSchemaCapabilityResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSchemaCapabilityResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSchemaCapabilityResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSchemaCapabilityResponse) GetEntityCapabilityWithCompositeID() *shared.EntityCapabilityWithCompositeID { - if o == nil { +func (g *GetSchemaCapabilityResponse) GetEntityCapabilityWithCompositeID() *shared.EntityCapabilityWithCompositeID { + if g == nil { return nil } - return o.EntityCapabilityWithCompositeID + return g.EntityCapabilityWithCompositeID } -func (o *GetSchemaCapabilityResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetSchemaCapabilityResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getschemaexample.go b/internal/sdk/models/operations/getschemaexample.go index a47a1b8b..88b48efd 100644 --- a/internal/sdk/models/operations/getschemaexample.go +++ b/internal/sdk/models/operations/getschemaexample.go @@ -12,11 +12,11 @@ type GetSchemaExampleRequest struct { Slug string `pathParam:"style=simple,explode=false,name=slug"` } -func (o *GetSchemaExampleRequest) GetSlug() string { - if o == nil { +func (g *GetSchemaExampleRequest) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } // GetSchemaExampleResponseBody - Success @@ -37,44 +37,44 @@ type GetSchemaExampleResponse struct { Headers map[string][]string } -func (o *GetSchemaExampleResponse) GetContentType() string { - if o == nil { +func (g *GetSchemaExampleResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSchemaExampleResponse) GetStatusCode() int { - if o == nil { +func (g *GetSchemaExampleResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSchemaExampleResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSchemaExampleResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSchemaExampleResponse) GetObject() *GetSchemaExampleResponseBody { - if o == nil { +func (g *GetSchemaExampleResponse) GetObject() *GetSchemaExampleResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } -func (o *GetSchemaExampleResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (g *GetSchemaExampleResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if g == nil { return nil } - return o.TooManyRequestsError + return g.TooManyRequestsError } -func (o *GetSchemaExampleResponse) GetHeaders() map[string][]string { - if o == nil { +func (g *GetSchemaExampleResponse) GetHeaders() map[string][]string { + if g == nil { return map[string][]string{} } - return o.Headers + return g.Headers } diff --git a/internal/sdk/models/operations/getschemagroup.go b/internal/sdk/models/operations/getschemagroup.go index ff8e14ab..1087ad33 100644 --- a/internal/sdk/models/operations/getschemagroup.go +++ b/internal/sdk/models/operations/getschemagroup.go @@ -12,11 +12,11 @@ type GetSchemaGroupRequest struct { CompositeID string `pathParam:"style=simple,explode=false,name=composite_id"` } -func (o *GetSchemaGroupRequest) GetCompositeID() string { - if o == nil { +func (g *GetSchemaGroupRequest) GetCompositeID() string { + if g == nil { return "" } - return o.CompositeID + return g.CompositeID } type GetSchemaGroupResponse struct { @@ -32,37 +32,37 @@ type GetSchemaGroupResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetSchemaGroupResponse) GetContentType() string { - if o == nil { +func (g *GetSchemaGroupResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSchemaGroupResponse) GetStatusCode() int { - if o == nil { +func (g *GetSchemaGroupResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSchemaGroupResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSchemaGroupResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSchemaGroupResponse) GetEntitySchemaGroupWithCompositeID() *shared.EntitySchemaGroupWithCompositeID { - if o == nil { +func (g *GetSchemaGroupResponse) GetEntitySchemaGroupWithCompositeID() *shared.EntitySchemaGroupWithCompositeID { + if g == nil { return nil } - return o.EntitySchemaGroupWithCompositeID + return g.EntitySchemaGroupWithCompositeID } -func (o *GetSchemaGroupResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetSchemaGroupResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getschemagroupheadline.go b/internal/sdk/models/operations/getschemagroupheadline.go index d2455abe..11c0f881 100644 --- a/internal/sdk/models/operations/getschemagroupheadline.go +++ b/internal/sdk/models/operations/getschemagroupheadline.go @@ -12,11 +12,11 @@ type GetSchemaGroupHeadlineRequest struct { CompositeID string `pathParam:"style=simple,explode=false,name=composite_id"` } -func (o *GetSchemaGroupHeadlineRequest) GetCompositeID() string { - if o == nil { +func (g *GetSchemaGroupHeadlineRequest) GetCompositeID() string { + if g == nil { return "" } - return o.CompositeID + return g.CompositeID } type GetSchemaGroupHeadlineResponse struct { @@ -32,37 +32,37 @@ type GetSchemaGroupHeadlineResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetSchemaGroupHeadlineResponse) GetContentType() string { - if o == nil { +func (g *GetSchemaGroupHeadlineResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSchemaGroupHeadlineResponse) GetStatusCode() int { - if o == nil { +func (g *GetSchemaGroupHeadlineResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSchemaGroupHeadlineResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSchemaGroupHeadlineResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSchemaGroupHeadlineResponse) GetGroupHeadlineWithCompositeID() *shared.GroupHeadlineWithCompositeID { - if o == nil { +func (g *GetSchemaGroupHeadlineResponse) GetGroupHeadlineWithCompositeID() *shared.GroupHeadlineWithCompositeID { + if g == nil { return nil } - return o.GroupHeadlineWithCompositeID + return g.GroupHeadlineWithCompositeID } -func (o *GetSchemaGroupHeadlineResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetSchemaGroupHeadlineResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/getschemaversions.go b/internal/sdk/models/operations/getschemaversions.go index 68f9c1d7..e24dfaf5 100644 --- a/internal/sdk/models/operations/getschemaversions.go +++ b/internal/sdk/models/operations/getschemaversions.go @@ -29,46 +29,46 @@ func (g *GetSchemaVersionsRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetSchemaVersionsRequest) GetSlug() string { - if o == nil { +func (g *GetSchemaVersionsRequest) GetSlug() string { + if g == nil { return "" } - return o.Slug + return g.Slug } -func (o *GetSchemaVersionsRequest) GetVersionsFrom() *float64 { - if o == nil { +func (g *GetSchemaVersionsRequest) GetVersionsFrom() *float64 { + if g == nil { return nil } - return o.VersionsFrom + return g.VersionsFrom } -func (o *GetSchemaVersionsRequest) GetVersionsSize() *float64 { - if o == nil { +func (g *GetSchemaVersionsRequest) GetVersionsSize() *float64 { + if g == nil { return nil } - return o.VersionsSize + return g.VersionsSize } -func (o *GetSchemaVersionsRequest) GetDraftsFrom() *float64 { - if o == nil { +func (g *GetSchemaVersionsRequest) GetDraftsFrom() *float64 { + if g == nil { return nil } - return o.DraftsFrom + return g.DraftsFrom } -func (o *GetSchemaVersionsRequest) GetDraftsSize() *float64 { - if o == nil { +func (g *GetSchemaVersionsRequest) GetDraftsSize() *float64 { + if g == nil { return nil } - return o.DraftsSize + return g.DraftsSize } -func (o *GetSchemaVersionsRequest) GetFields() []string { - if o == nil { +func (g *GetSchemaVersionsRequest) GetFields() []string { + if g == nil { return nil } - return o.Fields + return g.Fields } // GetSchemaVersionsResponseBody - Success @@ -81,32 +81,32 @@ type GetSchemaVersionsResponseBody struct { DraftsMore *bool `json:"drafts_more,omitempty"` } -func (o *GetSchemaVersionsResponseBody) GetVersions() []shared.EntitySchemaItem { - if o == nil { +func (g *GetSchemaVersionsResponseBody) GetVersions() []shared.EntitySchemaItem { + if g == nil { return []shared.EntitySchemaItem{} } - return o.Versions + return g.Versions } -func (o *GetSchemaVersionsResponseBody) GetDrafts() []shared.EntitySchemaItem { - if o == nil { +func (g *GetSchemaVersionsResponseBody) GetDrafts() []shared.EntitySchemaItem { + if g == nil { return nil } - return o.Drafts + return g.Drafts } -func (o *GetSchemaVersionsResponseBody) GetVersionsMore() bool { - if o == nil { +func (g *GetSchemaVersionsResponseBody) GetVersionsMore() bool { + if g == nil { return false } - return o.VersionsMore + return g.VersionsMore } -func (o *GetSchemaVersionsResponseBody) GetDraftsMore() *bool { - if o == nil { +func (g *GetSchemaVersionsResponseBody) GetDraftsMore() *bool { + if g == nil { return nil } - return o.DraftsMore + return g.DraftsMore } type GetSchemaVersionsResponse struct { @@ -120,30 +120,30 @@ type GetSchemaVersionsResponse struct { Object *GetSchemaVersionsResponseBody } -func (o *GetSchemaVersionsResponse) GetContentType() string { - if o == nil { +func (g *GetSchemaVersionsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetSchemaVersionsResponse) GetStatusCode() int { - if o == nil { +func (g *GetSchemaVersionsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetSchemaVersionsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetSchemaVersionsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetSchemaVersionsResponse) GetObject() *GetSchemaVersionsResponseBody { - if o == nil { +func (g *GetSchemaVersionsResponse) GetObject() *GetSchemaVersionsResponseBody { + if g == nil { return nil } - return o.Object + return g.Object } diff --git a/internal/sdk/models/operations/gettaxonomy.go b/internal/sdk/models/operations/gettaxonomy.go index 5dca91ad..ef1d6969 100644 --- a/internal/sdk/models/operations/gettaxonomy.go +++ b/internal/sdk/models/operations/gettaxonomy.go @@ -12,11 +12,11 @@ type GetTaxonomyRequest struct { TaxonomySlug string `pathParam:"style=simple,explode=false,name=taxonomySlug"` } -func (o *GetTaxonomyRequest) GetTaxonomySlug() string { - if o == nil { +func (g *GetTaxonomyRequest) GetTaxonomySlug() string { + if g == nil { return "" } - return o.TaxonomySlug + return g.TaxonomySlug } type GetTaxonomyResponse struct { @@ -32,37 +32,37 @@ type GetTaxonomyResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetTaxonomyResponse) GetContentType() string { - if o == nil { +func (g *GetTaxonomyResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetTaxonomyResponse) GetStatusCode() int { - if o == nil { +func (g *GetTaxonomyResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetTaxonomyResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetTaxonomyResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetTaxonomyResponse) GetTaxonomy() *shared.Taxonomy { - if o == nil { +func (g *GetTaxonomyResponse) GetTaxonomy() *shared.Taxonomy { + if g == nil { return nil } - return o.Taxonomy + return g.Taxonomy } -func (o *GetTaxonomyResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetTaxonomyResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/gettaxonomybulkactionjobbyid.go b/internal/sdk/models/operations/gettaxonomybulkactionjobbyid.go index ccbb07ee..e6d9b2fb 100644 --- a/internal/sdk/models/operations/gettaxonomybulkactionjobbyid.go +++ b/internal/sdk/models/operations/gettaxonomybulkactionjobbyid.go @@ -11,11 +11,11 @@ type GetTaxonomyBulkActionJobByIDRequest struct { JobID string `pathParam:"style=simple,explode=false,name=job_id"` } -func (o *GetTaxonomyBulkActionJobByIDRequest) GetJobID() string { - if o == nil { +func (g *GetTaxonomyBulkActionJobByIDRequest) GetJobID() string { + if g == nil { return "" } - return o.JobID + return g.JobID } type GetTaxonomyBulkActionJobByIDResponse struct { @@ -29,30 +29,30 @@ type GetTaxonomyBulkActionJobByIDResponse struct { TaxonomyBulkJob *shared.TaxonomyBulkJob } -func (o *GetTaxonomyBulkActionJobByIDResponse) GetContentType() string { - if o == nil { +func (g *GetTaxonomyBulkActionJobByIDResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetTaxonomyBulkActionJobByIDResponse) GetStatusCode() int { - if o == nil { +func (g *GetTaxonomyBulkActionJobByIDResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetTaxonomyBulkActionJobByIDResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetTaxonomyBulkActionJobByIDResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetTaxonomyBulkActionJobByIDResponse) GetTaxonomyBulkJob() *shared.TaxonomyBulkJob { - if o == nil { +func (g *GetTaxonomyBulkActionJobByIDResponse) GetTaxonomyBulkJob() *shared.TaxonomyBulkJob { + if g == nil { return nil } - return o.TaxonomyBulkJob + return g.TaxonomyBulkJob } diff --git a/internal/sdk/models/operations/gettaxonomybulkactionjobs.go b/internal/sdk/models/operations/gettaxonomybulkactionjobs.go index 1183b3c0..1d6db5a6 100644 --- a/internal/sdk/models/operations/gettaxonomybulkactionjobs.go +++ b/internal/sdk/models/operations/gettaxonomybulkactionjobs.go @@ -59,39 +59,39 @@ func (g *GetTaxonomyBulkActionJobsRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *GetTaxonomyBulkActionJobsRequest) GetStatus() []string { - if o == nil { +func (g *GetTaxonomyBulkActionJobsRequest) GetStatus() []string { + if g == nil { return nil } - return o.Status + return g.Status } -func (o *GetTaxonomyBulkActionJobsRequest) GetSize() *float64 { - if o == nil { +func (g *GetTaxonomyBulkActionJobsRequest) GetSize() *float64 { + if g == nil { return nil } - return o.Size + return g.Size } -func (o *GetTaxonomyBulkActionJobsRequest) GetCreatedAfter() *time.Time { - if o == nil { +func (g *GetTaxonomyBulkActionJobsRequest) GetCreatedAfter() *time.Time { + if g == nil { return nil } - return o.CreatedAfter + return g.CreatedAfter } -func (o *GetTaxonomyBulkActionJobsRequest) GetSortPendingFirst() *bool { - if o == nil { +func (g *GetTaxonomyBulkActionJobsRequest) GetSortPendingFirst() *bool { + if g == nil { return nil } - return o.SortPendingFirst + return g.SortPendingFirst } -func (o *GetTaxonomyBulkActionJobsRequest) GetScope() *Scope { - if o == nil { +func (g *GetTaxonomyBulkActionJobsRequest) GetScope() *Scope { + if g == nil { return nil } - return o.Scope + return g.Scope } type GetTaxonomyBulkActionJobsResponse struct { @@ -105,30 +105,30 @@ type GetTaxonomyBulkActionJobsResponse struct { TaxonomyBulkJobs []shared.TaxonomyBulkJob } -func (o *GetTaxonomyBulkActionJobsResponse) GetContentType() string { - if o == nil { +func (g *GetTaxonomyBulkActionJobsResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetTaxonomyBulkActionJobsResponse) GetStatusCode() int { - if o == nil { +func (g *GetTaxonomyBulkActionJobsResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetTaxonomyBulkActionJobsResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetTaxonomyBulkActionJobsResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetTaxonomyBulkActionJobsResponse) GetTaxonomyBulkJobs() []shared.TaxonomyBulkJob { - if o == nil { +func (g *GetTaxonomyBulkActionJobsResponse) GetTaxonomyBulkJobs() []shared.TaxonomyBulkJob { + if g == nil { return nil } - return o.TaxonomyBulkJobs + return g.TaxonomyBulkJobs } diff --git a/internal/sdk/models/operations/gettaxonomyclassification.go b/internal/sdk/models/operations/gettaxonomyclassification.go index a984bc40..feeb7c46 100644 --- a/internal/sdk/models/operations/gettaxonomyclassification.go +++ b/internal/sdk/models/operations/gettaxonomyclassification.go @@ -12,11 +12,11 @@ type GetTaxonomyClassificationRequest struct { ClassificationSlug string `pathParam:"style=simple,explode=false,name=classificationSlug"` } -func (o *GetTaxonomyClassificationRequest) GetClassificationSlug() string { - if o == nil { +func (g *GetTaxonomyClassificationRequest) GetClassificationSlug() string { + if g == nil { return "" } - return o.ClassificationSlug + return g.ClassificationSlug } type GetTaxonomyClassificationResponse struct { @@ -32,37 +32,37 @@ type GetTaxonomyClassificationResponse struct { NotFoundError *shared.NotFoundError } -func (o *GetTaxonomyClassificationResponse) GetContentType() string { - if o == nil { +func (g *GetTaxonomyClassificationResponse) GetContentType() string { + if g == nil { return "" } - return o.ContentType + return g.ContentType } -func (o *GetTaxonomyClassificationResponse) GetStatusCode() int { - if o == nil { +func (g *GetTaxonomyClassificationResponse) GetStatusCode() int { + if g == nil { return 0 } - return o.StatusCode + return g.StatusCode } -func (o *GetTaxonomyClassificationResponse) GetRawResponse() *http.Response { - if o == nil { +func (g *GetTaxonomyClassificationResponse) GetRawResponse() *http.Response { + if g == nil { return nil } - return o.RawResponse + return g.RawResponse } -func (o *GetTaxonomyClassificationResponse) GetTaxonomyClassification() *shared.TaxonomyClassification { - if o == nil { +func (g *GetTaxonomyClassificationResponse) GetTaxonomyClassification() *shared.TaxonomyClassification { + if g == nil { return nil } - return o.TaxonomyClassification + return g.TaxonomyClassification } -func (o *GetTaxonomyClassificationResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (g *GetTaxonomyClassificationResponse) GetNotFoundError() *shared.NotFoundError { + if g == nil { return nil } - return o.NotFoundError + return g.NotFoundError } diff --git a/internal/sdk/models/operations/importentities.go b/internal/sdk/models/operations/importentities.go index 42481fbf..dbfd814b 100644 --- a/internal/sdk/models/operations/importentities.go +++ b/internal/sdk/models/operations/importentities.go @@ -13,18 +13,18 @@ type ImportEntitiesRequest struct { EntityImportParams *shared.EntityImportParams `request:"mediaType=application/json"` } -func (o *ImportEntitiesRequest) GetJobID() *string { - if o == nil { +func (i *ImportEntitiesRequest) GetJobID() *string { + if i == nil { return nil } - return o.JobID + return i.JobID } -func (o *ImportEntitiesRequest) GetEntityImportParams() *shared.EntityImportParams { - if o == nil { +func (i *ImportEntitiesRequest) GetEntityImportParams() *shared.EntityImportParams { + if i == nil { return nil } - return o.EntityImportParams + return i.EntityImportParams } type ImportEntitiesResponse struct { @@ -39,37 +39,37 @@ type ImportEntitiesResponse struct { Headers map[string][]string } -func (o *ImportEntitiesResponse) GetContentType() string { - if o == nil { +func (i *ImportEntitiesResponse) GetContentType() string { + if i == nil { return "" } - return o.ContentType + return i.ContentType } -func (o *ImportEntitiesResponse) GetStatusCode() int { - if o == nil { +func (i *ImportEntitiesResponse) GetStatusCode() int { + if i == nil { return 0 } - return o.StatusCode + return i.StatusCode } -func (o *ImportEntitiesResponse) GetRawResponse() *http.Response { - if o == nil { +func (i *ImportEntitiesResponse) GetRawResponse() *http.Response { + if i == nil { return nil } - return o.RawResponse + return i.RawResponse } -func (o *ImportEntitiesResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (i *ImportEntitiesResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if i == nil { return nil } - return o.TooManyRequestsError + return i.TooManyRequestsError } -func (o *ImportEntitiesResponse) GetHeaders() map[string][]string { - if o == nil { +func (i *ImportEntitiesResponse) GetHeaders() map[string][]string { + if i == nil { return map[string][]string{} } - return o.Headers + return i.Headers } diff --git a/internal/sdk/models/operations/listavailablecapabilities.go b/internal/sdk/models/operations/listavailablecapabilities.go index f9059724..c0de4703 100644 --- a/internal/sdk/models/operations/listavailablecapabilities.go +++ b/internal/sdk/models/operations/listavailablecapabilities.go @@ -12,11 +12,11 @@ type ListAvailableCapabilitiesRequest struct { Slug string `pathParam:"style=simple,explode=false,name=slug"` } -func (o *ListAvailableCapabilitiesRequest) GetSlug() string { - if o == nil { +func (l *ListAvailableCapabilitiesRequest) GetSlug() string { + if l == nil { return "" } - return o.Slug + return l.Slug } // ListAvailableCapabilitiesResponseBody - Success @@ -24,11 +24,11 @@ type ListAvailableCapabilitiesResponseBody struct { Results []shared.EntityCapability `json:"results,omitempty"` } -func (o *ListAvailableCapabilitiesResponseBody) GetResults() []shared.EntityCapability { - if o == nil { +func (l *ListAvailableCapabilitiesResponseBody) GetResults() []shared.EntityCapability { + if l == nil { return nil } - return o.Results + return l.Results } type ListAvailableCapabilitiesResponse struct { @@ -42,30 +42,30 @@ type ListAvailableCapabilitiesResponse struct { Object *ListAvailableCapabilitiesResponseBody } -func (o *ListAvailableCapabilitiesResponse) GetContentType() string { - if o == nil { +func (l *ListAvailableCapabilitiesResponse) GetContentType() string { + if l == nil { return "" } - return o.ContentType + return l.ContentType } -func (o *ListAvailableCapabilitiesResponse) GetStatusCode() int { - if o == nil { +func (l *ListAvailableCapabilitiesResponse) GetStatusCode() int { + if l == nil { return 0 } - return o.StatusCode + return l.StatusCode } -func (o *ListAvailableCapabilitiesResponse) GetRawResponse() *http.Response { - if o == nil { +func (l *ListAvailableCapabilitiesResponse) GetRawResponse() *http.Response { + if l == nil { return nil } - return o.RawResponse + return l.RawResponse } -func (o *ListAvailableCapabilitiesResponse) GetObject() *ListAvailableCapabilitiesResponseBody { - if o == nil { +func (l *ListAvailableCapabilitiesResponse) GetObject() *ListAvailableCapabilitiesResponseBody { + if l == nil { return nil } - return o.Object + return l.Object } diff --git a/internal/sdk/models/operations/listentities.go b/internal/sdk/models/operations/listentities.go index 8c7888cb..eb9da6c9 100644 --- a/internal/sdk/models/operations/listentities.go +++ b/internal/sdk/models/operations/listentities.go @@ -23,51 +23,51 @@ type ListEntitiesResponse struct { Headers map[string][]string } -func (o *ListEntitiesResponse) GetContentType() string { - if o == nil { +func (l *ListEntitiesResponse) GetContentType() string { + if l == nil { return "" } - return o.ContentType + return l.ContentType } -func (o *ListEntitiesResponse) GetStatusCode() int { - if o == nil { +func (l *ListEntitiesResponse) GetStatusCode() int { + if l == nil { return 0 } - return o.StatusCode + return l.StatusCode } -func (o *ListEntitiesResponse) GetRawResponse() *http.Response { - if o == nil { +func (l *ListEntitiesResponse) GetRawResponse() *http.Response { + if l == nil { return nil } - return o.RawResponse + return l.RawResponse } -func (o *ListEntitiesResponse) GetEntitySearchResults() *shared.EntitySearchResults { - if o == nil { +func (l *ListEntitiesResponse) GetEntitySearchResults() *shared.EntitySearchResults { + if l == nil { return nil } - return o.EntitySearchResults + return l.EntitySearchResults } -func (o *ListEntitiesResponse) GetRes() *string { - if o == nil { +func (l *ListEntitiesResponse) GetRes() *string { + if l == nil { return nil } - return o.Res + return l.Res } -func (o *ListEntitiesResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (l *ListEntitiesResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if l == nil { return nil } - return o.TooManyRequestsError + return l.TooManyRequestsError } -func (o *ListEntitiesResponse) GetHeaders() map[string][]string { - if o == nil { +func (l *ListEntitiesResponse) GetHeaders() map[string][]string { + if l == nil { return map[string][]string{} } - return o.Headers + return l.Headers } diff --git a/internal/sdk/models/operations/listfavoriteviewsforuser.go b/internal/sdk/models/operations/listfavoriteviewsforuser.go index 33a03986..73627b01 100644 --- a/internal/sdk/models/operations/listfavoriteviewsforuser.go +++ b/internal/sdk/models/operations/listfavoriteviewsforuser.go @@ -14,25 +14,25 @@ type ListFavoriteViewsForUserResults struct { UpdatedAt *string `json:"updated_at,omitempty"` } -func (o *ListFavoriteViewsForUserResults) GetID() *string { - if o == nil { +func (l *ListFavoriteViewsForUserResults) GetID() *string { + if l == nil { return nil } - return o.ID + return l.ID } -func (o *ListFavoriteViewsForUserResults) GetCreatedAt() *string { - if o == nil { +func (l *ListFavoriteViewsForUserResults) GetCreatedAt() *string { + if l == nil { return nil } - return o.CreatedAt + return l.CreatedAt } -func (o *ListFavoriteViewsForUserResults) GetUpdatedAt() *string { - if o == nil { +func (l *ListFavoriteViewsForUserResults) GetUpdatedAt() *string { + if l == nil { return nil } - return o.UpdatedAt + return l.UpdatedAt } // ListFavoriteViewsForUserResponseBody - Success @@ -40,11 +40,11 @@ type ListFavoriteViewsForUserResponseBody struct { Results []ListFavoriteViewsForUserResults `json:"results,omitempty"` } -func (o *ListFavoriteViewsForUserResponseBody) GetResults() []ListFavoriteViewsForUserResults { - if o == nil { +func (l *ListFavoriteViewsForUserResponseBody) GetResults() []ListFavoriteViewsForUserResults { + if l == nil { return nil } - return o.Results + return l.Results } type ListFavoriteViewsForUserResponse struct { @@ -58,30 +58,30 @@ type ListFavoriteViewsForUserResponse struct { Object *ListFavoriteViewsForUserResponseBody } -func (o *ListFavoriteViewsForUserResponse) GetContentType() string { - if o == nil { +func (l *ListFavoriteViewsForUserResponse) GetContentType() string { + if l == nil { return "" } - return o.ContentType + return l.ContentType } -func (o *ListFavoriteViewsForUserResponse) GetStatusCode() int { - if o == nil { +func (l *ListFavoriteViewsForUserResponse) GetStatusCode() int { + if l == nil { return 0 } - return o.StatusCode + return l.StatusCode } -func (o *ListFavoriteViewsForUserResponse) GetRawResponse() *http.Response { - if o == nil { +func (l *ListFavoriteViewsForUserResponse) GetRawResponse() *http.Response { + if l == nil { return nil } - return o.RawResponse + return l.RawResponse } -func (o *ListFavoriteViewsForUserResponse) GetObject() *ListFavoriteViewsForUserResponseBody { - if o == nil { +func (l *ListFavoriteViewsForUserResponse) GetObject() *ListFavoriteViewsForUserResponseBody { + if l == nil { return nil } - return o.Object + return l.Object } diff --git a/internal/sdk/models/operations/listsavedviews.go b/internal/sdk/models/operations/listsavedviews.go index 9ccce2f0..8f76847e 100644 --- a/internal/sdk/models/operations/listsavedviews.go +++ b/internal/sdk/models/operations/listsavedviews.go @@ -30,39 +30,39 @@ func (l *ListSavedViewsRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *ListSavedViewsRequest) GetSlug() *string { - if o == nil { +func (l *ListSavedViewsRequest) GetSlug() *string { + if l == nil { return nil } - return o.Slug + return l.Slug } -func (o *ListSavedViewsRequest) GetSort() *string { - if o == nil { +func (l *ListSavedViewsRequest) GetSort() *string { + if l == nil { return nil } - return o.Sort + return l.Sort } -func (o *ListSavedViewsRequest) GetFrom() *int64 { - if o == nil { +func (l *ListSavedViewsRequest) GetFrom() *int64 { + if l == nil { return nil } - return o.From + return l.From } -func (o *ListSavedViewsRequest) GetSize() *int64 { - if o == nil { +func (l *ListSavedViewsRequest) GetSize() *int64 { + if l == nil { return nil } - return o.Size + return l.Size } -func (o *ListSavedViewsRequest) GetFields() []string { - if o == nil { +func (l *ListSavedViewsRequest) GetFields() []string { + if l == nil { return nil } - return o.Fields + return l.Fields } type ListSavedViewsResponse struct { @@ -76,30 +76,30 @@ type ListSavedViewsResponse struct { ListSavedViewsResults *shared.ListSavedViewsResults } -func (o *ListSavedViewsResponse) GetContentType() string { - if o == nil { +func (l *ListSavedViewsResponse) GetContentType() string { + if l == nil { return "" } - return o.ContentType + return l.ContentType } -func (o *ListSavedViewsResponse) GetStatusCode() int { - if o == nil { +func (l *ListSavedViewsResponse) GetStatusCode() int { + if l == nil { return 0 } - return o.StatusCode + return l.StatusCode } -func (o *ListSavedViewsResponse) GetRawResponse() *http.Response { - if o == nil { +func (l *ListSavedViewsResponse) GetRawResponse() *http.Response { + if l == nil { return nil } - return o.RawResponse + return l.RawResponse } -func (o *ListSavedViewsResponse) GetListSavedViewsResults() *shared.ListSavedViewsResults { - if o == nil { +func (l *ListSavedViewsResponse) GetListSavedViewsResults() *shared.ListSavedViewsResults { + if l == nil { return nil } - return o.ListSavedViewsResults + return l.ListSavedViewsResults } diff --git a/internal/sdk/models/operations/listschemablueprints.go b/internal/sdk/models/operations/listschemablueprints.go index f2e431bc..92119e0c 100644 --- a/internal/sdk/models/operations/listschemablueprints.go +++ b/internal/sdk/models/operations/listschemablueprints.go @@ -12,11 +12,11 @@ type ListSchemaBlueprintsResponseBody struct { Results []shared.EntitySchemaItem `json:"results,omitempty"` } -func (o *ListSchemaBlueprintsResponseBody) GetResults() []shared.EntitySchemaItem { - if o == nil { +func (l *ListSchemaBlueprintsResponseBody) GetResults() []shared.EntitySchemaItem { + if l == nil { return nil } - return o.Results + return l.Results } type ListSchemaBlueprintsResponse struct { @@ -30,30 +30,30 @@ type ListSchemaBlueprintsResponse struct { Object *ListSchemaBlueprintsResponseBody } -func (o *ListSchemaBlueprintsResponse) GetContentType() string { - if o == nil { +func (l *ListSchemaBlueprintsResponse) GetContentType() string { + if l == nil { return "" } - return o.ContentType + return l.ContentType } -func (o *ListSchemaBlueprintsResponse) GetStatusCode() int { - if o == nil { +func (l *ListSchemaBlueprintsResponse) GetStatusCode() int { + if l == nil { return 0 } - return o.StatusCode + return l.StatusCode } -func (o *ListSchemaBlueprintsResponse) GetRawResponse() *http.Response { - if o == nil { +func (l *ListSchemaBlueprintsResponse) GetRawResponse() *http.Response { + if l == nil { return nil } - return o.RawResponse + return l.RawResponse } -func (o *ListSchemaBlueprintsResponse) GetObject() *ListSchemaBlueprintsResponseBody { - if o == nil { +func (l *ListSchemaBlueprintsResponse) GetObject() *ListSchemaBlueprintsResponseBody { + if l == nil { return nil } - return o.Object + return l.Object } diff --git a/internal/sdk/models/operations/listschemas.go b/internal/sdk/models/operations/listschemas.go index 86d52e89..63b4975d 100644 --- a/internal/sdk/models/operations/listschemas.go +++ b/internal/sdk/models/operations/listschemas.go @@ -24,11 +24,11 @@ func (l *ListSchemasRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *ListSchemasRequest) GetUnpublished() *bool { - if o == nil { +func (l *ListSchemasRequest) GetUnpublished() *bool { + if l == nil { return nil } - return o.Unpublished + return l.Unpublished } // ListSchemasResponseBody - Success @@ -36,11 +36,11 @@ type ListSchemasResponseBody struct { Results []shared.EntitySchemaItem `json:"results,omitempty"` } -func (o *ListSchemasResponseBody) GetResults() []shared.EntitySchemaItem { - if o == nil { +func (l *ListSchemasResponseBody) GetResults() []shared.EntitySchemaItem { + if l == nil { return nil } - return o.Results + return l.Results } type ListSchemasResponse struct { @@ -54,30 +54,30 @@ type ListSchemasResponse struct { Object *ListSchemasResponseBody } -func (o *ListSchemasResponse) GetContentType() string { - if o == nil { +func (l *ListSchemasResponse) GetContentType() string { + if l == nil { return "" } - return o.ContentType + return l.ContentType } -func (o *ListSchemasResponse) GetStatusCode() int { - if o == nil { +func (l *ListSchemasResponse) GetStatusCode() int { + if l == nil { return 0 } - return o.StatusCode + return l.StatusCode } -func (o *ListSchemasResponse) GetRawResponse() *http.Response { - if o == nil { +func (l *ListSchemasResponse) GetRawResponse() *http.Response { + if l == nil { return nil } - return o.RawResponse + return l.RawResponse } -func (o *ListSchemasResponse) GetObject() *ListSchemasResponseBody { - if o == nil { +func (l *ListSchemasResponse) GetObject() *ListSchemasResponseBody { + if l == nil { return nil } - return o.Object + return l.Object } diff --git a/internal/sdk/models/operations/listtaxonomies.go b/internal/sdk/models/operations/listtaxonomies.go index e2887c00..b71b7263 100644 --- a/internal/sdk/models/operations/listtaxonomies.go +++ b/internal/sdk/models/operations/listtaxonomies.go @@ -55,18 +55,18 @@ func (l *ListTaxonomiesRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *ListTaxonomiesRequest) GetIncludeDisabled() *bool { - if o == nil { +func (l *ListTaxonomiesRequest) GetIncludeDisabled() *bool { + if l == nil { return nil } - return o.IncludeDisabled + return l.IncludeDisabled } -func (o *ListTaxonomiesRequest) GetType() *Type { - if o == nil { +func (l *ListTaxonomiesRequest) GetType() *Type { + if l == nil { return nil } - return o.Type + return l.Type } // ListTaxonomiesResponseBody - Returns list of taxonomies in an organization @@ -74,11 +74,11 @@ type ListTaxonomiesResponseBody struct { Results []shared.Taxonomy `json:"results,omitempty"` } -func (o *ListTaxonomiesResponseBody) GetResults() []shared.Taxonomy { - if o == nil { +func (l *ListTaxonomiesResponseBody) GetResults() []shared.Taxonomy { + if l == nil { return nil } - return o.Results + return l.Results } type ListTaxonomiesResponse struct { @@ -92,30 +92,30 @@ type ListTaxonomiesResponse struct { Object *ListTaxonomiesResponseBody } -func (o *ListTaxonomiesResponse) GetContentType() string { - if o == nil { +func (l *ListTaxonomiesResponse) GetContentType() string { + if l == nil { return "" } - return o.ContentType + return l.ContentType } -func (o *ListTaxonomiesResponse) GetStatusCode() int { - if o == nil { +func (l *ListTaxonomiesResponse) GetStatusCode() int { + if l == nil { return 0 } - return o.StatusCode + return l.StatusCode } -func (o *ListTaxonomiesResponse) GetRawResponse() *http.Response { - if o == nil { +func (l *ListTaxonomiesResponse) GetRawResponse() *http.Response { + if l == nil { return nil } - return o.RawResponse + return l.RawResponse } -func (o *ListTaxonomiesResponse) GetObject() *ListTaxonomiesResponseBody { - if o == nil { +func (l *ListTaxonomiesResponse) GetObject() *ListTaxonomiesResponseBody { + if l == nil { return nil } - return o.Object + return l.Object } diff --git a/internal/sdk/models/operations/listtaxonomyclassificationsforschema.go b/internal/sdk/models/operations/listtaxonomyclassificationsforschema.go index c7b63ef0..2e636493 100644 --- a/internal/sdk/models/operations/listtaxonomyclassificationsforschema.go +++ b/internal/sdk/models/operations/listtaxonomyclassificationsforschema.go @@ -16,32 +16,32 @@ type ListTaxonomyClassificationsForSchemaRequest struct { Size *float64 `queryParam:"style=form,explode=true,name=size"` } -func (o *ListTaxonomyClassificationsForSchemaRequest) GetSlug() string { - if o == nil { +func (l *ListTaxonomyClassificationsForSchemaRequest) GetSlug() string { + if l == nil { return "" } - return o.Slug + return l.Slug } -func (o *ListTaxonomyClassificationsForSchemaRequest) GetTaxonomySlug() string { - if o == nil { +func (l *ListTaxonomyClassificationsForSchemaRequest) GetTaxonomySlug() string { + if l == nil { return "" } - return o.TaxonomySlug + return l.TaxonomySlug } -func (o *ListTaxonomyClassificationsForSchemaRequest) GetQuery() *string { - if o == nil { +func (l *ListTaxonomyClassificationsForSchemaRequest) GetQuery() *string { + if l == nil { return nil } - return o.Query + return l.Query } -func (o *ListTaxonomyClassificationsForSchemaRequest) GetSize() *float64 { - if o == nil { +func (l *ListTaxonomyClassificationsForSchemaRequest) GetSize() *float64 { + if l == nil { return nil } - return o.Size + return l.Size } // ListTaxonomyClassificationsForSchemaResponseBody - List of taxonomy classifications @@ -49,11 +49,11 @@ type ListTaxonomyClassificationsForSchemaResponseBody struct { Results []shared.TaxonomyClassification `json:"results,omitempty"` } -func (o *ListTaxonomyClassificationsForSchemaResponseBody) GetResults() []shared.TaxonomyClassification { - if o == nil { +func (l *ListTaxonomyClassificationsForSchemaResponseBody) GetResults() []shared.TaxonomyClassification { + if l == nil { return nil } - return o.Results + return l.Results } type ListTaxonomyClassificationsForSchemaResponse struct { @@ -67,30 +67,30 @@ type ListTaxonomyClassificationsForSchemaResponse struct { Object *ListTaxonomyClassificationsForSchemaResponseBody } -func (o *ListTaxonomyClassificationsForSchemaResponse) GetContentType() string { - if o == nil { +func (l *ListTaxonomyClassificationsForSchemaResponse) GetContentType() string { + if l == nil { return "" } - return o.ContentType + return l.ContentType } -func (o *ListTaxonomyClassificationsForSchemaResponse) GetStatusCode() int { - if o == nil { +func (l *ListTaxonomyClassificationsForSchemaResponse) GetStatusCode() int { + if l == nil { return 0 } - return o.StatusCode + return l.StatusCode } -func (o *ListTaxonomyClassificationsForSchemaResponse) GetRawResponse() *http.Response { - if o == nil { +func (l *ListTaxonomyClassificationsForSchemaResponse) GetRawResponse() *http.Response { + if l == nil { return nil } - return o.RawResponse + return l.RawResponse } -func (o *ListTaxonomyClassificationsForSchemaResponse) GetObject() *ListTaxonomyClassificationsForSchemaResponseBody { - if o == nil { +func (l *ListTaxonomyClassificationsForSchemaResponse) GetObject() *ListTaxonomyClassificationsForSchemaResponseBody { + if l == nil { return nil } - return o.Object + return l.Object } diff --git a/internal/sdk/models/operations/patchentity.go b/internal/sdk/models/operations/patchentity.go index d64c7449..2ef3ab99 100644 --- a/internal/sdk/models/operations/patchentity.go +++ b/internal/sdk/models/operations/patchentity.go @@ -39,60 +39,60 @@ func (p *PatchEntityRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *PatchEntityRequest) GetSlug() string { - if o == nil { +func (p *PatchEntityRequest) GetSlug() string { + if p == nil { return "" } - return o.Slug + return p.Slug } -func (o *PatchEntityRequest) GetID() string { - if o == nil { +func (p *PatchEntityRequest) GetID() string { + if p == nil { return "" } - return o.ID + return p.ID } -func (o *PatchEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { - if o == nil { +func (p *PatchEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { + if p == nil { return nil } - return o.ActivityID + return p.ActivityID } -func (o *PatchEntityRequest) GetFillActivity() *bool { - if o == nil { +func (p *PatchEntityRequest) GetFillActivity() *bool { + if p == nil { return nil } - return o.FillActivity + return p.FillActivity } -func (o *PatchEntityRequest) GetDryRun() *bool { - if o == nil { +func (p *PatchEntityRequest) GetDryRun() *bool { + if p == nil { return nil } - return o.DryRun + return p.DryRun } -func (o *PatchEntityRequest) GetAsync() *bool { - if o == nil { +func (p *PatchEntityRequest) GetAsync() *bool { + if p == nil { return nil } - return o.Async + return p.Async } -func (o *PatchEntityRequest) GetValidate() *bool { - if o == nil { +func (p *PatchEntityRequest) GetValidate() *bool { + if p == nil { return nil } - return o.Validate + return p.Validate } -func (o *PatchEntityRequest) GetEntity() shared.EntityInput { - if o == nil { +func (p *PatchEntityRequest) GetEntity() shared.EntityInput { + if p == nil { return shared.EntityInput{} } - return o.Entity + return p.Entity } type PatchEntityResponse struct { @@ -108,37 +108,37 @@ type PatchEntityResponse struct { EntityValidationV2ResultError *shared.EntityValidationV2ResultError } -func (o *PatchEntityResponse) GetContentType() string { - if o == nil { +func (p *PatchEntityResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PatchEntityResponse) GetStatusCode() int { - if o == nil { +func (p *PatchEntityResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PatchEntityResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PatchEntityResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } -func (o *PatchEntityResponse) GetEntityItem() *shared.EntityItem { - if o == nil { +func (p *PatchEntityResponse) GetEntityItem() *shared.EntityItem { + if p == nil { return nil } - return o.EntityItem + return p.EntityItem } -func (o *PatchEntityResponse) GetEntityValidationV2ResultError() *shared.EntityValidationV2ResultError { - if o == nil { +func (p *PatchEntityResponse) GetEntityValidationV2ResultError() *shared.EntityValidationV2ResultError { + if p == nil { return nil } - return o.EntityValidationV2ResultError + return p.EntityValidationV2ResultError } diff --git a/internal/sdk/models/operations/patchsavedview.go b/internal/sdk/models/operations/patchsavedview.go index 2658140e..83bf5378 100644 --- a/internal/sdk/models/operations/patchsavedview.go +++ b/internal/sdk/models/operations/patchsavedview.go @@ -13,18 +13,18 @@ type PatchSavedViewRequest struct { SavedViewPartial *shared.SavedViewPartial `request:"mediaType=application/json"` } -func (o *PatchSavedViewRequest) GetID() string { - if o == nil { +func (p *PatchSavedViewRequest) GetID() string { + if p == nil { return "" } - return o.ID + return p.ID } -func (o *PatchSavedViewRequest) GetSavedViewPartial() *shared.SavedViewPartial { - if o == nil { +func (p *PatchSavedViewRequest) GetSavedViewPartial() *shared.SavedViewPartial { + if p == nil { return nil } - return o.SavedViewPartial + return p.SavedViewPartial } // PatchSavedViewResponseBody - A saved entity view @@ -35,25 +35,25 @@ type PatchSavedViewResponseBody struct { UpdatedAt *string `json:"updated_at,omitempty"` } -func (o *PatchSavedViewResponseBody) GetID() *string { - if o == nil { +func (p *PatchSavedViewResponseBody) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PatchSavedViewResponseBody) GetCreatedAt() *string { - if o == nil { +func (p *PatchSavedViewResponseBody) GetCreatedAt() *string { + if p == nil { return nil } - return o.CreatedAt + return p.CreatedAt } -func (o *PatchSavedViewResponseBody) GetUpdatedAt() *string { - if o == nil { +func (p *PatchSavedViewResponseBody) GetUpdatedAt() *string { + if p == nil { return nil } - return o.UpdatedAt + return p.UpdatedAt } type PatchSavedViewResponse struct { @@ -67,30 +67,30 @@ type PatchSavedViewResponse struct { Object *PatchSavedViewResponseBody } -func (o *PatchSavedViewResponse) GetContentType() string { - if o == nil { +func (p *PatchSavedViewResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PatchSavedViewResponse) GetStatusCode() int { - if o == nil { +func (p *PatchSavedViewResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PatchSavedViewResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PatchSavedViewResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } -func (o *PatchSavedViewResponse) GetObject() *PatchSavedViewResponseBody { - if o == nil { +func (p *PatchSavedViewResponse) GetObject() *PatchSavedViewResponseBody { + if p == nil { return nil } - return o.Object + return p.Object } diff --git a/internal/sdk/models/operations/putschema.go b/internal/sdk/models/operations/putschema.go index 222c79ad..84af63be 100644 --- a/internal/sdk/models/operations/putschema.go +++ b/internal/sdk/models/operations/putschema.go @@ -26,25 +26,25 @@ func (p *PutSchemaRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *PutSchemaRequest) GetSlug() string { - if o == nil { +func (p *PutSchemaRequest) GetSlug() string { + if p == nil { return "" } - return o.Slug + return p.Slug } -func (o *PutSchemaRequest) GetDraft() *bool { - if o == nil { +func (p *PutSchemaRequest) GetDraft() *bool { + if p == nil { return nil } - return o.Draft + return p.Draft } -func (o *PutSchemaRequest) GetEntitySchemaItem() *shared.EntitySchemaItem { - if o == nil { +func (p *PutSchemaRequest) GetEntitySchemaItem() *shared.EntitySchemaItem { + if p == nil { return nil } - return o.EntitySchemaItem + return p.EntitySchemaItem } type PutSchemaResponse struct { @@ -61,44 +61,44 @@ type PutSchemaResponse struct { Headers map[string][]string } -func (o *PutSchemaResponse) GetContentType() string { - if o == nil { +func (p *PutSchemaResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PutSchemaResponse) GetStatusCode() int { - if o == nil { +func (p *PutSchemaResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PutSchemaResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PutSchemaResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } -func (o *PutSchemaResponse) GetEntitySchemaItem() *shared.EntitySchemaItem { - if o == nil { +func (p *PutSchemaResponse) GetEntitySchemaItem() *shared.EntitySchemaItem { + if p == nil { return nil } - return o.EntitySchemaItem + return p.EntitySchemaItem } -func (o *PutSchemaResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (p *PutSchemaResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if p == nil { return nil } - return o.TooManyRequestsError + return p.TooManyRequestsError } -func (o *PutSchemaResponse) GetHeaders() map[string][]string { - if o == nil { +func (p *PutSchemaResponse) GetHeaders() map[string][]string { + if p == nil { return map[string][]string{} } - return o.Headers + return p.Headers } diff --git a/internal/sdk/models/operations/putschemaattribute.go b/internal/sdk/models/operations/putschemaattribute.go index a85d0233..488fd7a6 100644 --- a/internal/sdk/models/operations/putschemaattribute.go +++ b/internal/sdk/models/operations/putschemaattribute.go @@ -13,18 +13,18 @@ type PutSchemaAttributeRequest struct { AttributeWithCompositeID *shared.AttributeWithCompositeIDInput `request:"mediaType=application/json"` } -func (o *PutSchemaAttributeRequest) GetCompositeID() string { - if o == nil { +func (p *PutSchemaAttributeRequest) GetCompositeID() string { + if p == nil { return "" } - return o.CompositeID + return p.CompositeID } -func (o *PutSchemaAttributeRequest) GetAttributeWithCompositeID() *shared.AttributeWithCompositeIDInput { - if o == nil { +func (p *PutSchemaAttributeRequest) GetAttributeWithCompositeID() *shared.AttributeWithCompositeIDInput { + if p == nil { return nil } - return o.AttributeWithCompositeID + return p.AttributeWithCompositeID } type PutSchemaAttributeResponse struct { @@ -38,30 +38,30 @@ type PutSchemaAttributeResponse struct { AttributeWithCompositeID *shared.AttributeWithCompositeID } -func (o *PutSchemaAttributeResponse) GetContentType() string { - if o == nil { +func (p *PutSchemaAttributeResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PutSchemaAttributeResponse) GetStatusCode() int { - if o == nil { +func (p *PutSchemaAttributeResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PutSchemaAttributeResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PutSchemaAttributeResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } -func (o *PutSchemaAttributeResponse) GetAttributeWithCompositeID() *shared.AttributeWithCompositeID { - if o == nil { +func (p *PutSchemaAttributeResponse) GetAttributeWithCompositeID() *shared.AttributeWithCompositeID { + if p == nil { return nil } - return o.AttributeWithCompositeID + return p.AttributeWithCompositeID } diff --git a/internal/sdk/models/operations/putschemacapability.go b/internal/sdk/models/operations/putschemacapability.go index e92b6747..0a5fce1c 100644 --- a/internal/sdk/models/operations/putschemacapability.go +++ b/internal/sdk/models/operations/putschemacapability.go @@ -13,18 +13,18 @@ type PutSchemaCapabilityRequest struct { EntityCapabilityWithCompositeID *shared.EntityCapabilityWithCompositeIDInput `request:"mediaType=application/json"` } -func (o *PutSchemaCapabilityRequest) GetCompositeID() string { - if o == nil { +func (p *PutSchemaCapabilityRequest) GetCompositeID() string { + if p == nil { return "" } - return o.CompositeID + return p.CompositeID } -func (o *PutSchemaCapabilityRequest) GetEntityCapabilityWithCompositeID() *shared.EntityCapabilityWithCompositeIDInput { - if o == nil { +func (p *PutSchemaCapabilityRequest) GetEntityCapabilityWithCompositeID() *shared.EntityCapabilityWithCompositeIDInput { + if p == nil { return nil } - return o.EntityCapabilityWithCompositeID + return p.EntityCapabilityWithCompositeID } type PutSchemaCapabilityResponse struct { @@ -38,30 +38,30 @@ type PutSchemaCapabilityResponse struct { EntityCapabilityWithCompositeID *shared.EntityCapabilityWithCompositeID } -func (o *PutSchemaCapabilityResponse) GetContentType() string { - if o == nil { +func (p *PutSchemaCapabilityResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PutSchemaCapabilityResponse) GetStatusCode() int { - if o == nil { +func (p *PutSchemaCapabilityResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PutSchemaCapabilityResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PutSchemaCapabilityResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } -func (o *PutSchemaCapabilityResponse) GetEntityCapabilityWithCompositeID() *shared.EntityCapabilityWithCompositeID { - if o == nil { +func (p *PutSchemaCapabilityResponse) GetEntityCapabilityWithCompositeID() *shared.EntityCapabilityWithCompositeID { + if p == nil { return nil } - return o.EntityCapabilityWithCompositeID + return p.EntityCapabilityWithCompositeID } diff --git a/internal/sdk/models/operations/putschemagroup.go b/internal/sdk/models/operations/putschemagroup.go index 2a69e1ec..4914d6b8 100644 --- a/internal/sdk/models/operations/putschemagroup.go +++ b/internal/sdk/models/operations/putschemagroup.go @@ -13,18 +13,18 @@ type PutSchemaGroupRequest struct { EntitySchemaGroupWithCompositeID *shared.EntitySchemaGroupWithCompositeIDInput `request:"mediaType=application/json"` } -func (o *PutSchemaGroupRequest) GetCompositeID() string { - if o == nil { +func (p *PutSchemaGroupRequest) GetCompositeID() string { + if p == nil { return "" } - return o.CompositeID + return p.CompositeID } -func (o *PutSchemaGroupRequest) GetEntitySchemaGroupWithCompositeID() *shared.EntitySchemaGroupWithCompositeIDInput { - if o == nil { +func (p *PutSchemaGroupRequest) GetEntitySchemaGroupWithCompositeID() *shared.EntitySchemaGroupWithCompositeIDInput { + if p == nil { return nil } - return o.EntitySchemaGroupWithCompositeID + return p.EntitySchemaGroupWithCompositeID } type PutSchemaGroupResponse struct { @@ -38,30 +38,30 @@ type PutSchemaGroupResponse struct { EntitySchemaGroupWithCompositeID *shared.EntitySchemaGroupWithCompositeID } -func (o *PutSchemaGroupResponse) GetContentType() string { - if o == nil { +func (p *PutSchemaGroupResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PutSchemaGroupResponse) GetStatusCode() int { - if o == nil { +func (p *PutSchemaGroupResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PutSchemaGroupResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PutSchemaGroupResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } -func (o *PutSchemaGroupResponse) GetEntitySchemaGroupWithCompositeID() *shared.EntitySchemaGroupWithCompositeID { - if o == nil { +func (p *PutSchemaGroupResponse) GetEntitySchemaGroupWithCompositeID() *shared.EntitySchemaGroupWithCompositeID { + if p == nil { return nil } - return o.EntitySchemaGroupWithCompositeID + return p.EntitySchemaGroupWithCompositeID } diff --git a/internal/sdk/models/operations/putschemagroupheadline.go b/internal/sdk/models/operations/putschemagroupheadline.go index 8b4fe333..e7d2b22c 100644 --- a/internal/sdk/models/operations/putschemagroupheadline.go +++ b/internal/sdk/models/operations/putschemagroupheadline.go @@ -13,18 +13,18 @@ type PutSchemaGroupHeadlineRequest struct { GroupHeadlineWithCompositeID *shared.GroupHeadlineWithCompositeIDInput `request:"mediaType=application/json"` } -func (o *PutSchemaGroupHeadlineRequest) GetCompositeID() string { - if o == nil { +func (p *PutSchemaGroupHeadlineRequest) GetCompositeID() string { + if p == nil { return "" } - return o.CompositeID + return p.CompositeID } -func (o *PutSchemaGroupHeadlineRequest) GetGroupHeadlineWithCompositeID() *shared.GroupHeadlineWithCompositeIDInput { - if o == nil { +func (p *PutSchemaGroupHeadlineRequest) GetGroupHeadlineWithCompositeID() *shared.GroupHeadlineWithCompositeIDInput { + if p == nil { return nil } - return o.GroupHeadlineWithCompositeID + return p.GroupHeadlineWithCompositeID } type PutSchemaGroupHeadlineResponse struct { @@ -38,30 +38,30 @@ type PutSchemaGroupHeadlineResponse struct { GroupHeadlineWithCompositeID *shared.GroupHeadlineWithCompositeID } -func (o *PutSchemaGroupHeadlineResponse) GetContentType() string { - if o == nil { +func (p *PutSchemaGroupHeadlineResponse) GetContentType() string { + if p == nil { return "" } - return o.ContentType + return p.ContentType } -func (o *PutSchemaGroupHeadlineResponse) GetStatusCode() int { - if o == nil { +func (p *PutSchemaGroupHeadlineResponse) GetStatusCode() int { + if p == nil { return 0 } - return o.StatusCode + return p.StatusCode } -func (o *PutSchemaGroupHeadlineResponse) GetRawResponse() *http.Response { - if o == nil { +func (p *PutSchemaGroupHeadlineResponse) GetRawResponse() *http.Response { + if p == nil { return nil } - return o.RawResponse + return p.RawResponse } -func (o *PutSchemaGroupHeadlineResponse) GetGroupHeadlineWithCompositeID() *shared.GroupHeadlineWithCompositeID { - if o == nil { +func (p *PutSchemaGroupHeadlineResponse) GetGroupHeadlineWithCompositeID() *shared.GroupHeadlineWithCompositeID { + if p == nil { return nil } - return o.GroupHeadlineWithCompositeID + return p.GroupHeadlineWithCompositeID } diff --git a/internal/sdk/models/operations/reindexentity.go b/internal/sdk/models/operations/reindexentity.go index c6299d31..935971a4 100644 --- a/internal/sdk/models/operations/reindexentity.go +++ b/internal/sdk/models/operations/reindexentity.go @@ -19,25 +19,25 @@ type ReindexEntityRequest struct { RequestBody *ReindexEntityRequestBody `request:"mediaType=application/json"` } -func (o *ReindexEntityRequest) GetID() string { - if o == nil { +func (r *ReindexEntityRequest) GetID() string { + if r == nil { return "" } - return o.ID + return r.ID } -func (o *ReindexEntityRequest) GetSlug() string { - if o == nil { +func (r *ReindexEntityRequest) GetSlug() string { + if r == nil { return "" } - return o.Slug + return r.Slug } -func (o *ReindexEntityRequest) GetRequestBody() *ReindexEntityRequestBody { - if o == nil { +func (r *ReindexEntityRequest) GetRequestBody() *ReindexEntityRequestBody { + if r == nil { return nil } - return o.RequestBody + return r.RequestBody } type ReindexEntityResponse struct { @@ -54,44 +54,44 @@ type ReindexEntityResponse struct { Headers map[string][]string } -func (o *ReindexEntityResponse) GetContentType() string { - if o == nil { +func (r *ReindexEntityResponse) GetContentType() string { + if r == nil { return "" } - return o.ContentType + return r.ContentType } -func (o *ReindexEntityResponse) GetStatusCode() int { - if o == nil { +func (r *ReindexEntityResponse) GetStatusCode() int { + if r == nil { return 0 } - return o.StatusCode + return r.StatusCode } -func (o *ReindexEntityResponse) GetRawResponse() *http.Response { - if o == nil { +func (r *ReindexEntityResponse) GetRawResponse() *http.Response { + if r == nil { return nil } - return o.RawResponse + return r.RawResponse } -func (o *ReindexEntityResponse) GetEntityItem() *shared.EntityItem { - if o == nil { +func (r *ReindexEntityResponse) GetEntityItem() *shared.EntityItem { + if r == nil { return nil } - return o.EntityItem + return r.EntityItem } -func (o *ReindexEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (r *ReindexEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if r == nil { return nil } - return o.TooManyRequestsError + return r.TooManyRequestsError } -func (o *ReindexEntityResponse) GetHeaders() map[string][]string { - if o == nil { +func (r *ReindexEntityResponse) GetHeaders() map[string][]string { + if r == nil { return map[string][]string{} } - return o.Headers + return r.Headers } diff --git a/internal/sdk/models/operations/removerelations.go b/internal/sdk/models/operations/removerelations.go index cc55ace7..8f0e13fd 100644 --- a/internal/sdk/models/operations/removerelations.go +++ b/internal/sdk/models/operations/removerelations.go @@ -31,39 +31,39 @@ func (r *RemoveRelationsRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *RemoveRelationsRequest) GetSlug() string { - if o == nil { +func (r *RemoveRelationsRequest) GetSlug() string { + if r == nil { return "" } - return o.Slug + return r.Slug } -func (o *RemoveRelationsRequest) GetID() string { - if o == nil { +func (r *RemoveRelationsRequest) GetID() string { + if r == nil { return "" } - return o.ID + return r.ID } -func (o *RemoveRelationsRequest) GetAsync() *bool { - if o == nil { +func (r *RemoveRelationsRequest) GetAsync() *bool { + if r == nil { return nil } - return o.Async + return r.Async } -func (o *RemoveRelationsRequest) GetActivityID() *shared.ActivityIDQueryParam { - if o == nil { +func (r *RemoveRelationsRequest) GetActivityID() *shared.ActivityIDQueryParam { + if r == nil { return nil } - return o.ActivityID + return r.ActivityID } -func (o *RemoveRelationsRequest) GetRequestBody() []shared.RelationItem { - if o == nil { +func (r *RemoveRelationsRequest) GetRequestBody() []shared.RelationItem { + if r == nil { return nil } - return o.RequestBody + return r.RequestBody } type RemoveRelationsResponse struct { @@ -80,44 +80,44 @@ type RemoveRelationsResponse struct { Headers map[string][]string } -func (o *RemoveRelationsResponse) GetContentType() string { - if o == nil { +func (r *RemoveRelationsResponse) GetContentType() string { + if r == nil { return "" } - return o.ContentType + return r.ContentType } -func (o *RemoveRelationsResponse) GetStatusCode() int { - if o == nil { +func (r *RemoveRelationsResponse) GetStatusCode() int { + if r == nil { return 0 } - return o.StatusCode + return r.StatusCode } -func (o *RemoveRelationsResponse) GetRawResponse() *http.Response { - if o == nil { +func (r *RemoveRelationsResponse) GetRawResponse() *http.Response { + if r == nil { return nil } - return o.RawResponse + return r.RawResponse } -func (o *RemoveRelationsResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (r *RemoveRelationsResponse) GetNotFoundError() *shared.NotFoundError { + if r == nil { return nil } - return o.NotFoundError + return r.NotFoundError } -func (o *RemoveRelationsResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (r *RemoveRelationsResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if r == nil { return nil } - return o.TooManyRequestsError + return r.TooManyRequestsError } -func (o *RemoveRelationsResponse) GetHeaders() map[string][]string { - if o == nil { +func (r *RemoveRelationsResponse) GetHeaders() map[string][]string { + if r == nil { return map[string][]string{} } - return o.Headers + return r.Headers } diff --git a/internal/sdk/models/operations/restoreentity.go b/internal/sdk/models/operations/restoreentity.go index 0c8b8ea2..9e5f1ba9 100644 --- a/internal/sdk/models/operations/restoreentity.go +++ b/internal/sdk/models/operations/restoreentity.go @@ -21,32 +21,32 @@ type RestoreEntityRequest struct { RequestBody *RestoreEntityRequestBody `request:"mediaType=application/json"` } -func (o *RestoreEntityRequest) GetID() string { - if o == nil { +func (r *RestoreEntityRequest) GetID() string { + if r == nil { return "" } - return o.ID + return r.ID } -func (o *RestoreEntityRequest) GetSlug() string { - if o == nil { +func (r *RestoreEntityRequest) GetSlug() string { + if r == nil { return "" } - return o.Slug + return r.Slug } -func (o *RestoreEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { - if o == nil { +func (r *RestoreEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { + if r == nil { return nil } - return o.ActivityID + return r.ActivityID } -func (o *RestoreEntityRequest) GetRequestBody() *RestoreEntityRequestBody { - if o == nil { +func (r *RestoreEntityRequest) GetRequestBody() *RestoreEntityRequestBody { + if r == nil { return nil } - return o.RequestBody + return r.RequestBody } type RestoreEntityResponse struct { @@ -63,44 +63,44 @@ type RestoreEntityResponse struct { Headers map[string][]string } -func (o *RestoreEntityResponse) GetContentType() string { - if o == nil { +func (r *RestoreEntityResponse) GetContentType() string { + if r == nil { return "" } - return o.ContentType + return r.ContentType } -func (o *RestoreEntityResponse) GetStatusCode() int { - if o == nil { +func (r *RestoreEntityResponse) GetStatusCode() int { + if r == nil { return 0 } - return o.StatusCode + return r.StatusCode } -func (o *RestoreEntityResponse) GetRawResponse() *http.Response { - if o == nil { +func (r *RestoreEntityResponse) GetRawResponse() *http.Response { + if r == nil { return nil } - return o.RawResponse + return r.RawResponse } -func (o *RestoreEntityResponse) GetEntityItem() *shared.EntityItem { - if o == nil { +func (r *RestoreEntityResponse) GetEntityItem() *shared.EntityItem { + if r == nil { return nil } - return o.EntityItem + return r.EntityItem } -func (o *RestoreEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (r *RestoreEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if r == nil { return nil } - return o.TooManyRequestsError + return r.TooManyRequestsError } -func (o *RestoreEntityResponse) GetHeaders() map[string][]string { - if o == nil { +func (r *RestoreEntityResponse) GetHeaders() map[string][]string { + if r == nil { return map[string][]string{} } - return o.Headers + return r.Headers } diff --git a/internal/sdk/models/operations/searchentities.go b/internal/sdk/models/operations/searchentities.go index 53885abb..c5f37600 100644 --- a/internal/sdk/models/operations/searchentities.go +++ b/internal/sdk/models/operations/searchentities.go @@ -23,51 +23,51 @@ type SearchEntitiesResponse struct { Headers map[string][]string } -func (o *SearchEntitiesResponse) GetContentType() string { - if o == nil { +func (s *SearchEntitiesResponse) GetContentType() string { + if s == nil { return "" } - return o.ContentType + return s.ContentType } -func (o *SearchEntitiesResponse) GetStatusCode() int { - if o == nil { +func (s *SearchEntitiesResponse) GetStatusCode() int { + if s == nil { return 0 } - return o.StatusCode + return s.StatusCode } -func (o *SearchEntitiesResponse) GetRawResponse() *http.Response { - if o == nil { +func (s *SearchEntitiesResponse) GetRawResponse() *http.Response { + if s == nil { return nil } - return o.RawResponse + return s.RawResponse } -func (o *SearchEntitiesResponse) GetEntitySearchResults() *shared.EntitySearchResults { - if o == nil { +func (s *SearchEntitiesResponse) GetEntitySearchResults() *shared.EntitySearchResults { + if s == nil { return nil } - return o.EntitySearchResults + return s.EntitySearchResults } -func (o *SearchEntitiesResponse) GetRes() *string { - if o == nil { +func (s *SearchEntitiesResponse) GetRes() *string { + if s == nil { return nil } - return o.Res + return s.Res } -func (o *SearchEntitiesResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (s *SearchEntitiesResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if s == nil { return nil } - return o.TooManyRequestsError + return s.TooManyRequestsError } -func (o *SearchEntitiesResponse) GetHeaders() map[string][]string { - if o == nil { +func (s *SearchEntitiesResponse) GetHeaders() map[string][]string { + if s == nil { return map[string][]string{} } - return o.Headers + return s.Headers } diff --git a/internal/sdk/models/operations/taxonomiesclassificationssearch.go b/internal/sdk/models/operations/taxonomiesclassificationssearch.go index a5c64136..3ab1fd4f 100644 --- a/internal/sdk/models/operations/taxonomiesclassificationssearch.go +++ b/internal/sdk/models/operations/taxonomiesclassificationssearch.go @@ -19,8 +19,8 @@ const ( // TaxonomySlug - The taxonomy slug(s) to search within. When provided with multiple taxonomy slugs, the search will be performed across all the provided taxonomies. type TaxonomySlug struct { - Str *string `queryParam:"inline" name:"taxonomySlug"` - ArrayOfStr []string `queryParam:"inline" name:"taxonomySlug"` + Str *string `queryParam:"inline,name=taxonomySlug"` + ArrayOfStr []string `queryParam:"inline,name=taxonomySlug"` Type TaxonomySlugType } @@ -45,17 +45,43 @@ func CreateTaxonomySlugArrayOfStr(arrayOfStr []string) TaxonomySlug { func (u *TaxonomySlug) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = TaxonomySlugTypeStr - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: TaxonomySlugTypeStr, + Value: &str, + }) } var arrayOfStr []string = []string{} if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { - u.ArrayOfStr = arrayOfStr - u.Type = TaxonomySlugTypeArrayOfStr + candidates = append(candidates, utils.UnionCandidate{ + Type: TaxonomySlugTypeArrayOfStr, + Value: arrayOfStr, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for TaxonomySlug", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for TaxonomySlug", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(TaxonomySlugType) + switch best.Type { + case TaxonomySlugTypeStr: + u.Str = best.Value.(*string) + return nil + case TaxonomySlugTypeArrayOfStr: + u.ArrayOfStr = best.Value.([]string) return nil } @@ -78,11 +104,11 @@ type TaxonomiesClassificationsSearchRequestBody struct { ClassificationIds []shared.ClassificationIDOrPattern `json:"classificationIds,omitempty"` } -func (o *TaxonomiesClassificationsSearchRequestBody) GetClassificationIds() []shared.ClassificationIDOrPattern { - if o == nil { +func (t *TaxonomiesClassificationsSearchRequestBody) GetClassificationIds() []shared.ClassificationIDOrPattern { + if t == nil { return nil } - return o.ClassificationIds + return t.ClassificationIds } type TaxonomiesClassificationsSearchRequest struct { @@ -117,39 +143,39 @@ func (t *TaxonomiesClassificationsSearchRequest) UnmarshalJSON(data []byte) erro return nil } -func (o *TaxonomiesClassificationsSearchRequest) GetTaxonomySlug() *TaxonomySlug { - if o == nil { +func (t *TaxonomiesClassificationsSearchRequest) GetTaxonomySlug() *TaxonomySlug { + if t == nil { return nil } - return o.TaxonomySlug + return t.TaxonomySlug } -func (o *TaxonomiesClassificationsSearchRequest) GetQuery() *string { - if o == nil { +func (t *TaxonomiesClassificationsSearchRequest) GetQuery() *string { + if t == nil { return nil } - return o.Query + return t.Query } -func (o *TaxonomiesClassificationsSearchRequest) GetArchived() *bool { - if o == nil { +func (t *TaxonomiesClassificationsSearchRequest) GetArchived() *bool { + if t == nil { return nil } - return o.Archived + return t.Archived } -func (o *TaxonomiesClassificationsSearchRequest) GetIncludeArchived() *shared.TaxonomySearchIncludeArchivedParam { - if o == nil { +func (t *TaxonomiesClassificationsSearchRequest) GetIncludeArchived() *shared.TaxonomySearchIncludeArchivedParam { + if t == nil { return nil } - return o.IncludeArchived + return t.IncludeArchived } -func (o *TaxonomiesClassificationsSearchRequest) GetRequestBody() *TaxonomiesClassificationsSearchRequestBody { - if o == nil { +func (t *TaxonomiesClassificationsSearchRequest) GetRequestBody() *TaxonomiesClassificationsSearchRequestBody { + if t == nil { return nil } - return o.RequestBody + return t.RequestBody } // TaxonomiesClassificationsSearchResponseBody - Returns the classifications for the taxonomy slug provided @@ -158,18 +184,18 @@ type TaxonomiesClassificationsSearchResponseBody struct { Hits *int64 `json:"hits,omitempty"` } -func (o *TaxonomiesClassificationsSearchResponseBody) GetResults() []shared.TaxonomyClassification { - if o == nil { +func (t *TaxonomiesClassificationsSearchResponseBody) GetResults() []shared.TaxonomyClassification { + if t == nil { return nil } - return o.Results + return t.Results } -func (o *TaxonomiesClassificationsSearchResponseBody) GetHits() *int64 { - if o == nil { +func (t *TaxonomiesClassificationsSearchResponseBody) GetHits() *int64 { + if t == nil { return nil } - return o.Hits + return t.Hits } type TaxonomiesClassificationsSearchResponse struct { @@ -186,44 +212,44 @@ type TaxonomiesClassificationsSearchResponse struct { Headers map[string][]string } -func (o *TaxonomiesClassificationsSearchResponse) GetContentType() string { - if o == nil { +func (t *TaxonomiesClassificationsSearchResponse) GetContentType() string { + if t == nil { return "" } - return o.ContentType + return t.ContentType } -func (o *TaxonomiesClassificationsSearchResponse) GetStatusCode() int { - if o == nil { +func (t *TaxonomiesClassificationsSearchResponse) GetStatusCode() int { + if t == nil { return 0 } - return o.StatusCode + return t.StatusCode } -func (o *TaxonomiesClassificationsSearchResponse) GetRawResponse() *http.Response { - if o == nil { +func (t *TaxonomiesClassificationsSearchResponse) GetRawResponse() *http.Response { + if t == nil { return nil } - return o.RawResponse + return t.RawResponse } -func (o *TaxonomiesClassificationsSearchResponse) GetObject() *TaxonomiesClassificationsSearchResponseBody { - if o == nil { +func (t *TaxonomiesClassificationsSearchResponse) GetObject() *TaxonomiesClassificationsSearchResponseBody { + if t == nil { return nil } - return o.Object + return t.Object } -func (o *TaxonomiesClassificationsSearchResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (t *TaxonomiesClassificationsSearchResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if t == nil { return nil } - return o.TooManyRequestsError + return t.TooManyRequestsError } -func (o *TaxonomiesClassificationsSearchResponse) GetHeaders() map[string][]string { - if o == nil { +func (t *TaxonomiesClassificationsSearchResponse) GetHeaders() map[string][]string { + if t == nil { return map[string][]string{} } - return o.Headers + return t.Headers } diff --git a/internal/sdk/models/operations/taxonomyautocomplete.go b/internal/sdk/models/operations/taxonomyautocomplete.go index 3d8c0106..30484e8a 100644 --- a/internal/sdk/models/operations/taxonomyautocomplete.go +++ b/internal/sdk/models/operations/taxonomyautocomplete.go @@ -16,25 +16,25 @@ type TaxonomyAutocompleteRequest struct { Size *float64 `queryParam:"style=form,explode=true,name=size"` } -func (o *TaxonomyAutocompleteRequest) GetTaxonomySlug() string { - if o == nil { +func (t *TaxonomyAutocompleteRequest) GetTaxonomySlug() string { + if t == nil { return "" } - return o.TaxonomySlug + return t.TaxonomySlug } -func (o *TaxonomyAutocompleteRequest) GetQuery() *string { - if o == nil { +func (t *TaxonomyAutocompleteRequest) GetQuery() *string { + if t == nil { return nil } - return o.Query + return t.Query } -func (o *TaxonomyAutocompleteRequest) GetSize() *float64 { - if o == nil { +func (t *TaxonomyAutocompleteRequest) GetSize() *float64 { + if t == nil { return nil } - return o.Size + return t.Size } // TaxonomyAutocompleteResponseBody - Taxonomy classifications @@ -42,11 +42,11 @@ type TaxonomyAutocompleteResponseBody struct { Results []shared.TaxonomyClassification `json:"results,omitempty"` } -func (o *TaxonomyAutocompleteResponseBody) GetResults() []shared.TaxonomyClassification { - if o == nil { +func (t *TaxonomyAutocompleteResponseBody) GetResults() []shared.TaxonomyClassification { + if t == nil { return nil } - return o.Results + return t.Results } type TaxonomyAutocompleteResponse struct { @@ -60,30 +60,30 @@ type TaxonomyAutocompleteResponse struct { Object *TaxonomyAutocompleteResponseBody } -func (o *TaxonomyAutocompleteResponse) GetContentType() string { - if o == nil { +func (t *TaxonomyAutocompleteResponse) GetContentType() string { + if t == nil { return "" } - return o.ContentType + return t.ContentType } -func (o *TaxonomyAutocompleteResponse) GetStatusCode() int { - if o == nil { +func (t *TaxonomyAutocompleteResponse) GetStatusCode() int { + if t == nil { return 0 } - return o.StatusCode + return t.StatusCode } -func (o *TaxonomyAutocompleteResponse) GetRawResponse() *http.Response { - if o == nil { +func (t *TaxonomyAutocompleteResponse) GetRawResponse() *http.Response { + if t == nil { return nil } - return o.RawResponse + return t.RawResponse } -func (o *TaxonomyAutocompleteResponse) GetObject() *TaxonomyAutocompleteResponseBody { - if o == nil { +func (t *TaxonomyAutocompleteResponse) GetObject() *TaxonomyAutocompleteResponseBody { + if t == nil { return nil } - return o.Object + return t.Object } diff --git a/internal/sdk/models/operations/updateclassificationsfortaxonomy.go b/internal/sdk/models/operations/updateclassificationsfortaxonomy.go index ae0066d5..cb7fc749 100644 --- a/internal/sdk/models/operations/updateclassificationsfortaxonomy.go +++ b/internal/sdk/models/operations/updateclassificationsfortaxonomy.go @@ -13,18 +13,18 @@ type UpdateClassificationsForTaxonomyRequest struct { ClassificationsUpdate *shared.ClassificationsUpdate `request:"mediaType=application/json"` } -func (o *UpdateClassificationsForTaxonomyRequest) GetTaxonomySlug() string { - if o == nil { +func (u *UpdateClassificationsForTaxonomyRequest) GetTaxonomySlug() string { + if u == nil { return "" } - return o.TaxonomySlug + return u.TaxonomySlug } -func (o *UpdateClassificationsForTaxonomyRequest) GetClassificationsUpdate() *shared.ClassificationsUpdate { - if o == nil { +func (u *UpdateClassificationsForTaxonomyRequest) GetClassificationsUpdate() *shared.ClassificationsUpdate { + if u == nil { return nil } - return o.ClassificationsUpdate + return u.ClassificationsUpdate } type Deleted struct { @@ -37,25 +37,25 @@ type UpdateClassificationsForTaxonomyResponseBody struct { Deleted *Deleted `json:"deleted,omitempty"` } -func (o *UpdateClassificationsForTaxonomyResponseBody) GetCreated() []shared.TaxonomyClassification { - if o == nil { +func (u *UpdateClassificationsForTaxonomyResponseBody) GetCreated() []shared.TaxonomyClassification { + if u == nil { return nil } - return o.Created + return u.Created } -func (o *UpdateClassificationsForTaxonomyResponseBody) GetUpdated() []shared.TaxonomyClassification { - if o == nil { +func (u *UpdateClassificationsForTaxonomyResponseBody) GetUpdated() []shared.TaxonomyClassification { + if u == nil { return nil } - return o.Updated + return u.Updated } -func (o *UpdateClassificationsForTaxonomyResponseBody) GetDeleted() *Deleted { - if o == nil { +func (u *UpdateClassificationsForTaxonomyResponseBody) GetDeleted() *Deleted { + if u == nil { return nil } - return o.Deleted + return u.Deleted } type UpdateClassificationsForTaxonomyResponse struct { @@ -74,51 +74,51 @@ type UpdateClassificationsForTaxonomyResponse struct { Headers map[string][]string } -func (o *UpdateClassificationsForTaxonomyResponse) GetContentType() string { - if o == nil { +func (u *UpdateClassificationsForTaxonomyResponse) GetContentType() string { + if u == nil { return "" } - return o.ContentType + return u.ContentType } -func (o *UpdateClassificationsForTaxonomyResponse) GetStatusCode() int { - if o == nil { +func (u *UpdateClassificationsForTaxonomyResponse) GetStatusCode() int { + if u == nil { return 0 } - return o.StatusCode + return u.StatusCode } -func (o *UpdateClassificationsForTaxonomyResponse) GetRawResponse() *http.Response { - if o == nil { +func (u *UpdateClassificationsForTaxonomyResponse) GetRawResponse() *http.Response { + if u == nil { return nil } - return o.RawResponse + return u.RawResponse } -func (o *UpdateClassificationsForTaxonomyResponse) GetObject() *UpdateClassificationsForTaxonomyResponseBody { - if o == nil { +func (u *UpdateClassificationsForTaxonomyResponse) GetObject() *UpdateClassificationsForTaxonomyResponseBody { + if u == nil { return nil } - return o.Object + return u.Object } -func (o *UpdateClassificationsForTaxonomyResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (u *UpdateClassificationsForTaxonomyResponse) GetNotFoundError() *shared.NotFoundError { + if u == nil { return nil } - return o.NotFoundError + return u.NotFoundError } -func (o *UpdateClassificationsForTaxonomyResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (u *UpdateClassificationsForTaxonomyResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if u == nil { return nil } - return o.TooManyRequestsError + return u.TooManyRequestsError } -func (o *UpdateClassificationsForTaxonomyResponse) GetHeaders() map[string][]string { - if o == nil { +func (u *UpdateClassificationsForTaxonomyResponse) GetHeaders() map[string][]string { + if u == nil { return map[string][]string{} } - return o.Headers + return u.Headers } diff --git a/internal/sdk/models/operations/updateentity.go b/internal/sdk/models/operations/updateentity.go index a3b6878f..a4c9ac50 100644 --- a/internal/sdk/models/operations/updateentity.go +++ b/internal/sdk/models/operations/updateentity.go @@ -37,53 +37,53 @@ func (u *UpdateEntityRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *UpdateEntityRequest) GetSlug() string { - if o == nil { +func (u *UpdateEntityRequest) GetSlug() string { + if u == nil { return "" } - return o.Slug + return u.Slug } -func (o *UpdateEntityRequest) GetID() string { - if o == nil { +func (u *UpdateEntityRequest) GetID() string { + if u == nil { return "" } - return o.ID + return u.ID } -func (o *UpdateEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { - if o == nil { +func (u *UpdateEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { + if u == nil { return nil } - return o.ActivityID + return u.ActivityID } -func (o *UpdateEntityRequest) GetFillActivity() *bool { - if o == nil { +func (u *UpdateEntityRequest) GetFillActivity() *bool { + if u == nil { return nil } - return o.FillActivity + return u.FillActivity } -func (o *UpdateEntityRequest) GetAsync() *bool { - if o == nil { +func (u *UpdateEntityRequest) GetAsync() *bool { + if u == nil { return nil } - return o.Async + return u.Async } -func (o *UpdateEntityRequest) GetValidate() *bool { - if o == nil { +func (u *UpdateEntityRequest) GetValidate() *bool { + if u == nil { return nil } - return o.Validate + return u.Validate } -func (o *UpdateEntityRequest) GetEntity() *shared.EntityInput { - if o == nil { +func (u *UpdateEntityRequest) GetEntity() *shared.EntityInput { + if u == nil { return nil } - return o.Entity + return u.Entity } type UpdateEntityResponse struct { @@ -99,37 +99,37 @@ type UpdateEntityResponse struct { EntityValidationV2ResultError *shared.EntityValidationV2ResultError } -func (o *UpdateEntityResponse) GetContentType() string { - if o == nil { +func (u *UpdateEntityResponse) GetContentType() string { + if u == nil { return "" } - return o.ContentType + return u.ContentType } -func (o *UpdateEntityResponse) GetStatusCode() int { - if o == nil { +func (u *UpdateEntityResponse) GetStatusCode() int { + if u == nil { return 0 } - return o.StatusCode + return u.StatusCode } -func (o *UpdateEntityResponse) GetRawResponse() *http.Response { - if o == nil { +func (u *UpdateEntityResponse) GetRawResponse() *http.Response { + if u == nil { return nil } - return o.RawResponse + return u.RawResponse } -func (o *UpdateEntityResponse) GetEntityItem() *shared.EntityItem { - if o == nil { +func (u *UpdateEntityResponse) GetEntityItem() *shared.EntityItem { + if u == nil { return nil } - return o.EntityItem + return u.EntityItem } -func (o *UpdateEntityResponse) GetEntityValidationV2ResultError() *shared.EntityValidationV2ResultError { - if o == nil { +func (u *UpdateEntityResponse) GetEntityValidationV2ResultError() *shared.EntityValidationV2ResultError { + if u == nil { return nil } - return o.EntityValidationV2ResultError + return u.EntityValidationV2ResultError } diff --git a/internal/sdk/models/operations/updaterelation.go b/internal/sdk/models/operations/updaterelation.go index 2300d819..f5e704e7 100644 --- a/internal/sdk/models/operations/updaterelation.go +++ b/internal/sdk/models/operations/updaterelation.go @@ -12,11 +12,11 @@ type UpdateRelationRequestBody struct { Tags []string `json:"_tags,omitempty"` } -func (o *UpdateRelationRequestBody) GetTags() []string { - if o == nil { +func (u *UpdateRelationRequestBody) GetTags() []string { + if u == nil { return nil } - return o.Tags + return u.Tags } type UpdateRelationRequest struct { @@ -46,53 +46,53 @@ func (u *UpdateRelationRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *UpdateRelationRequest) GetSlug() string { - if o == nil { +func (u *UpdateRelationRequest) GetSlug() string { + if u == nil { return "" } - return o.Slug + return u.Slug } -func (o *UpdateRelationRequest) GetID() string { - if o == nil { +func (u *UpdateRelationRequest) GetID() string { + if u == nil { return "" } - return o.ID + return u.ID } -func (o *UpdateRelationRequest) GetAttribute() string { - if o == nil { +func (u *UpdateRelationRequest) GetAttribute() string { + if u == nil { return "" } - return o.Attribute + return u.Attribute } -func (o *UpdateRelationRequest) GetEntityID() string { - if o == nil { +func (u *UpdateRelationRequest) GetEntityID() string { + if u == nil { return "" } - return o.EntityID + return u.EntityID } -func (o *UpdateRelationRequest) GetAsync() *bool { - if o == nil { +func (u *UpdateRelationRequest) GetAsync() *bool { + if u == nil { return nil } - return o.Async + return u.Async } -func (o *UpdateRelationRequest) GetActivityID() *shared.ActivityIDQueryParam { - if o == nil { +func (u *UpdateRelationRequest) GetActivityID() *shared.ActivityIDQueryParam { + if u == nil { return nil } - return o.ActivityID + return u.ActivityID } -func (o *UpdateRelationRequest) GetRequestBody() *UpdateRelationRequestBody { - if o == nil { +func (u *UpdateRelationRequest) GetRequestBody() *UpdateRelationRequestBody { + if u == nil { return nil } - return o.RequestBody + return u.RequestBody } type UpdateRelationResponse struct { @@ -108,37 +108,37 @@ type UpdateRelationResponse struct { NotFoundError *shared.NotFoundError } -func (o *UpdateRelationResponse) GetContentType() string { - if o == nil { +func (u *UpdateRelationResponse) GetContentType() string { + if u == nil { return "" } - return o.ContentType + return u.ContentType } -func (o *UpdateRelationResponse) GetStatusCode() int { - if o == nil { +func (u *UpdateRelationResponse) GetStatusCode() int { + if u == nil { return 0 } - return o.StatusCode + return u.StatusCode } -func (o *UpdateRelationResponse) GetRawResponse() *http.Response { - if o == nil { +func (u *UpdateRelationResponse) GetRawResponse() *http.Response { + if u == nil { return nil } - return o.RawResponse + return u.RawResponse } -func (o *UpdateRelationResponse) GetRelationItem() *shared.RelationItem { - if o == nil { +func (u *UpdateRelationResponse) GetRelationItem() *shared.RelationItem { + if u == nil { return nil } - return o.RelationItem + return u.RelationItem } -func (o *UpdateRelationResponse) GetNotFoundError() *shared.NotFoundError { - if o == nil { +func (u *UpdateRelationResponse) GetNotFoundError() *shared.NotFoundError { + if u == nil { return nil } - return o.NotFoundError + return u.NotFoundError } diff --git a/internal/sdk/models/operations/updatesavedview.go b/internal/sdk/models/operations/updatesavedview.go index 2b421bc2..40e3dec6 100644 --- a/internal/sdk/models/operations/updatesavedview.go +++ b/internal/sdk/models/operations/updatesavedview.go @@ -14,25 +14,25 @@ type UpdateSavedViewRequestBody struct { UpdatedAt *string `json:"updated_at,omitempty"` } -func (o *UpdateSavedViewRequestBody) GetID() *string { - if o == nil { +func (u *UpdateSavedViewRequestBody) GetID() *string { + if u == nil { return nil } - return o.ID + return u.ID } -func (o *UpdateSavedViewRequestBody) GetCreatedAt() *string { - if o == nil { +func (u *UpdateSavedViewRequestBody) GetCreatedAt() *string { + if u == nil { return nil } - return o.CreatedAt + return u.CreatedAt } -func (o *UpdateSavedViewRequestBody) GetUpdatedAt() *string { - if o == nil { +func (u *UpdateSavedViewRequestBody) GetUpdatedAt() *string { + if u == nil { return nil } - return o.UpdatedAt + return u.UpdatedAt } type UpdateSavedViewRequest struct { @@ -41,18 +41,18 @@ type UpdateSavedViewRequest struct { RequestBody *UpdateSavedViewRequestBody `request:"mediaType=application/json"` } -func (o *UpdateSavedViewRequest) GetID() string { - if o == nil { +func (u *UpdateSavedViewRequest) GetID() string { + if u == nil { return "" } - return o.ID + return u.ID } -func (o *UpdateSavedViewRequest) GetRequestBody() *UpdateSavedViewRequestBody { - if o == nil { +func (u *UpdateSavedViewRequest) GetRequestBody() *UpdateSavedViewRequestBody { + if u == nil { return nil } - return o.RequestBody + return u.RequestBody } // UpdateSavedViewResponseBody - A saved entity view @@ -63,25 +63,25 @@ type UpdateSavedViewResponseBody struct { UpdatedAt *string `json:"updated_at,omitempty"` } -func (o *UpdateSavedViewResponseBody) GetID() *string { - if o == nil { +func (u *UpdateSavedViewResponseBody) GetID() *string { + if u == nil { return nil } - return o.ID + return u.ID } -func (o *UpdateSavedViewResponseBody) GetCreatedAt() *string { - if o == nil { +func (u *UpdateSavedViewResponseBody) GetCreatedAt() *string { + if u == nil { return nil } - return o.CreatedAt + return u.CreatedAt } -func (o *UpdateSavedViewResponseBody) GetUpdatedAt() *string { - if o == nil { +func (u *UpdateSavedViewResponseBody) GetUpdatedAt() *string { + if u == nil { return nil } - return o.UpdatedAt + return u.UpdatedAt } type UpdateSavedViewResponse struct { @@ -95,30 +95,30 @@ type UpdateSavedViewResponse struct { Object *UpdateSavedViewResponseBody } -func (o *UpdateSavedViewResponse) GetContentType() string { - if o == nil { +func (u *UpdateSavedViewResponse) GetContentType() string { + if u == nil { return "" } - return o.ContentType + return u.ContentType } -func (o *UpdateSavedViewResponse) GetStatusCode() int { - if o == nil { +func (u *UpdateSavedViewResponse) GetStatusCode() int { + if u == nil { return 0 } - return o.StatusCode + return u.StatusCode } -func (o *UpdateSavedViewResponse) GetRawResponse() *http.Response { - if o == nil { +func (u *UpdateSavedViewResponse) GetRawResponse() *http.Response { + if u == nil { return nil } - return o.RawResponse + return u.RawResponse } -func (o *UpdateSavedViewResponse) GetObject() *UpdateSavedViewResponseBody { - if o == nil { +func (u *UpdateSavedViewResponse) GetObject() *UpdateSavedViewResponseBody { + if u == nil { return nil } - return o.Object + return u.Object } diff --git a/internal/sdk/models/operations/updatetaxonomy.go b/internal/sdk/models/operations/updatetaxonomy.go index cdab0aa7..66732ab9 100644 --- a/internal/sdk/models/operations/updatetaxonomy.go +++ b/internal/sdk/models/operations/updatetaxonomy.go @@ -13,18 +13,18 @@ type UpdateTaxonomyRequest struct { Taxonomy *shared.TaxonomyInput `request:"mediaType=application/json"` } -func (o *UpdateTaxonomyRequest) GetTaxonomySlug() string { - if o == nil { +func (u *UpdateTaxonomyRequest) GetTaxonomySlug() string { + if u == nil { return "" } - return o.TaxonomySlug + return u.TaxonomySlug } -func (o *UpdateTaxonomyRequest) GetTaxonomy() *shared.TaxonomyInput { - if o == nil { +func (u *UpdateTaxonomyRequest) GetTaxonomy() *shared.TaxonomyInput { + if u == nil { return nil } - return o.Taxonomy + return u.Taxonomy } type UpdateTaxonomyResponse struct { @@ -38,30 +38,30 @@ type UpdateTaxonomyResponse struct { Taxonomy *shared.Taxonomy } -func (o *UpdateTaxonomyResponse) GetContentType() string { - if o == nil { +func (u *UpdateTaxonomyResponse) GetContentType() string { + if u == nil { return "" } - return o.ContentType + return u.ContentType } -func (o *UpdateTaxonomyResponse) GetStatusCode() int { - if o == nil { +func (u *UpdateTaxonomyResponse) GetStatusCode() int { + if u == nil { return 0 } - return o.StatusCode + return u.StatusCode } -func (o *UpdateTaxonomyResponse) GetRawResponse() *http.Response { - if o == nil { +func (u *UpdateTaxonomyResponse) GetRawResponse() *http.Response { + if u == nil { return nil } - return o.RawResponse + return u.RawResponse } -func (o *UpdateTaxonomyResponse) GetTaxonomy() *shared.Taxonomy { - if o == nil { +func (u *UpdateTaxonomyResponse) GetTaxonomy() *shared.Taxonomy { + if u == nil { return nil } - return o.Taxonomy + return u.Taxonomy } diff --git a/internal/sdk/models/operations/updatetaxonomyclassification.go b/internal/sdk/models/operations/updatetaxonomyclassification.go index 068de14f..ea8c782f 100644 --- a/internal/sdk/models/operations/updatetaxonomyclassification.go +++ b/internal/sdk/models/operations/updatetaxonomyclassification.go @@ -13,18 +13,18 @@ type UpdateTaxonomyClassificationRequest struct { TaxonomyClassification *shared.TaxonomyClassificationInput `request:"mediaType=application/json"` } -func (o *UpdateTaxonomyClassificationRequest) GetClassificationSlug() string { - if o == nil { +func (u *UpdateTaxonomyClassificationRequest) GetClassificationSlug() string { + if u == nil { return "" } - return o.ClassificationSlug + return u.ClassificationSlug } -func (o *UpdateTaxonomyClassificationRequest) GetTaxonomyClassification() *shared.TaxonomyClassificationInput { - if o == nil { +func (u *UpdateTaxonomyClassificationRequest) GetTaxonomyClassification() *shared.TaxonomyClassificationInput { + if u == nil { return nil } - return o.TaxonomyClassification + return u.TaxonomyClassification } type UpdateTaxonomyClassificationResponse struct { @@ -38,30 +38,30 @@ type UpdateTaxonomyClassificationResponse struct { TaxonomyClassification *shared.TaxonomyClassification } -func (o *UpdateTaxonomyClassificationResponse) GetContentType() string { - if o == nil { +func (u *UpdateTaxonomyClassificationResponse) GetContentType() string { + if u == nil { return "" } - return o.ContentType + return u.ContentType } -func (o *UpdateTaxonomyClassificationResponse) GetStatusCode() int { - if o == nil { +func (u *UpdateTaxonomyClassificationResponse) GetStatusCode() int { + if u == nil { return 0 } - return o.StatusCode + return u.StatusCode } -func (o *UpdateTaxonomyClassificationResponse) GetRawResponse() *http.Response { - if o == nil { +func (u *UpdateTaxonomyClassificationResponse) GetRawResponse() *http.Response { + if u == nil { return nil } - return o.RawResponse + return u.RawResponse } -func (o *UpdateTaxonomyClassificationResponse) GetTaxonomyClassification() *shared.TaxonomyClassification { - if o == nil { +func (u *UpdateTaxonomyClassificationResponse) GetTaxonomyClassification() *shared.TaxonomyClassification { + if u == nil { return nil } - return o.TaxonomyClassification + return u.TaxonomyClassification } diff --git a/internal/sdk/models/operations/upsertentity.go b/internal/sdk/models/operations/upsertentity.go index f4d80b36..ecd07eb0 100644 --- a/internal/sdk/models/operations/upsertentity.go +++ b/internal/sdk/models/operations/upsertentity.go @@ -13,18 +13,18 @@ type UpsertEntityRequestBody struct { Entity shared.EntityInput `json:"entity"` } -func (o *UpsertEntityRequestBody) GetUniqueKey() []string { - if o == nil { +func (u *UpsertEntityRequestBody) GetUniqueKey() []string { + if u == nil { return []string{} } - return o.UniqueKey + return u.UniqueKey } -func (o *UpsertEntityRequestBody) GetEntity() shared.EntityInput { - if o == nil { +func (u *UpsertEntityRequestBody) GetEntity() shared.EntityInput { + if u == nil { return shared.EntityInput{} } - return o.Entity + return u.Entity } type UpsertEntityRequest struct { @@ -58,60 +58,60 @@ func (u *UpsertEntityRequest) UnmarshalJSON(data []byte) error { return nil } -func (o *UpsertEntityRequest) GetSlug() string { - if o == nil { +func (u *UpsertEntityRequest) GetSlug() string { + if u == nil { return "" } - return o.Slug + return u.Slug } -func (o *UpsertEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { - if o == nil { +func (u *UpsertEntityRequest) GetActivityID() *shared.ActivityIDQueryParam { + if u == nil { return nil } - return o.ActivityID + return u.ActivityID } -func (o *UpsertEntityRequest) GetFillActivity() *bool { - if o == nil { +func (u *UpsertEntityRequest) GetFillActivity() *bool { + if u == nil { return nil } - return o.FillActivity + return u.FillActivity } -func (o *UpsertEntityRequest) GetDryRun() *bool { - if o == nil { +func (u *UpsertEntityRequest) GetDryRun() *bool { + if u == nil { return nil } - return o.DryRun + return u.DryRun } -func (o *UpsertEntityRequest) GetAsync() *bool { - if o == nil { +func (u *UpsertEntityRequest) GetAsync() *bool { + if u == nil { return nil } - return o.Async + return u.Async } -func (o *UpsertEntityRequest) GetValidate() *bool { - if o == nil { +func (u *UpsertEntityRequest) GetValidate() *bool { + if u == nil { return nil } - return o.Validate + return u.Validate } -func (o *UpsertEntityRequest) GetStrict() *bool { - if o == nil { +func (u *UpsertEntityRequest) GetStrict() *bool { + if u == nil { return nil } - return o.Strict + return u.Strict } -func (o *UpsertEntityRequest) GetRequestBody() *UpsertEntityRequestBody { - if o == nil { +func (u *UpsertEntityRequest) GetRequestBody() *UpsertEntityRequestBody { + if u == nil { return nil } - return o.RequestBody + return u.RequestBody } type UpsertEntityResponse struct { @@ -130,51 +130,51 @@ type UpsertEntityResponse struct { Headers map[string][]string } -func (o *UpsertEntityResponse) GetContentType() string { - if o == nil { +func (u *UpsertEntityResponse) GetContentType() string { + if u == nil { return "" } - return o.ContentType + return u.ContentType } -func (o *UpsertEntityResponse) GetStatusCode() int { - if o == nil { +func (u *UpsertEntityResponse) GetStatusCode() int { + if u == nil { return 0 } - return o.StatusCode + return u.StatusCode } -func (o *UpsertEntityResponse) GetRawResponse() *http.Response { - if o == nil { +func (u *UpsertEntityResponse) GetRawResponse() *http.Response { + if u == nil { return nil } - return o.RawResponse + return u.RawResponse } -func (o *UpsertEntityResponse) GetEntityItem() *shared.EntityItem { - if o == nil { +func (u *UpsertEntityResponse) GetEntityItem() *shared.EntityItem { + if u == nil { return nil } - return o.EntityItem + return u.EntityItem } -func (o *UpsertEntityResponse) GetEntityValidationV2ResultError() *shared.EntityValidationV2ResultError { - if o == nil { +func (u *UpsertEntityResponse) GetEntityValidationV2ResultError() *shared.EntityValidationV2ResultError { + if u == nil { return nil } - return o.EntityValidationV2ResultError + return u.EntityValidationV2ResultError } -func (o *UpsertEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (u *UpsertEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if u == nil { return nil } - return o.TooManyRequestsError + return u.TooManyRequestsError } -func (o *UpsertEntityResponse) GetHeaders() map[string][]string { - if o == nil { +func (u *UpsertEntityResponse) GetHeaders() map[string][]string { + if u == nil { return map[string][]string{} } - return o.Headers + return u.Headers } diff --git a/internal/sdk/models/operations/validateentity.go b/internal/sdk/models/operations/validateentity.go index 15c59808..ced478b5 100644 --- a/internal/sdk/models/operations/validateentity.go +++ b/internal/sdk/models/operations/validateentity.go @@ -13,18 +13,18 @@ type ValidateEntityRequest struct { Entity *shared.EntityInput `request:"mediaType=application/json"` } -func (o *ValidateEntityRequest) GetSlug() string { - if o == nil { +func (v *ValidateEntityRequest) GetSlug() string { + if v == nil { return "" } - return o.Slug + return v.Slug } -func (o *ValidateEntityRequest) GetEntity() *shared.EntityInput { - if o == nil { +func (v *ValidateEntityRequest) GetEntity() *shared.EntityInput { + if v == nil { return nil } - return o.Entity + return v.Entity } type ValidateEntityResponse struct { @@ -43,51 +43,51 @@ type ValidateEntityResponse struct { Headers map[string][]string } -func (o *ValidateEntityResponse) GetContentType() string { - if o == nil { +func (v *ValidateEntityResponse) GetContentType() string { + if v == nil { return "" } - return o.ContentType + return v.ContentType } -func (o *ValidateEntityResponse) GetStatusCode() int { - if o == nil { +func (v *ValidateEntityResponse) GetStatusCode() int { + if v == nil { return 0 } - return o.StatusCode + return v.StatusCode } -func (o *ValidateEntityResponse) GetRawResponse() *http.Response { - if o == nil { +func (v *ValidateEntityResponse) GetRawResponse() *http.Response { + if v == nil { return nil } - return o.RawResponse + return v.RawResponse } -func (o *ValidateEntityResponse) GetEntityValidationResultSuccess() *shared.EntityValidationResultSuccess { - if o == nil { +func (v *ValidateEntityResponse) GetEntityValidationResultSuccess() *shared.EntityValidationResultSuccess { + if v == nil { return nil } - return o.EntityValidationResultSuccess + return v.EntityValidationResultSuccess } -func (o *ValidateEntityResponse) GetEntityValidationResultError() *shared.EntityValidationResultError { - if o == nil { +func (v *ValidateEntityResponse) GetEntityValidationResultError() *shared.EntityValidationResultError { + if v == nil { return nil } - return o.EntityValidationResultError + return v.EntityValidationResultError } -func (o *ValidateEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (v *ValidateEntityResponse) GetTooManyRequestsError() *shared.TooManyRequestsError { + if v == nil { return nil } - return o.TooManyRequestsError + return v.TooManyRequestsError } -func (o *ValidateEntityResponse) GetHeaders() map[string][]string { - if o == nil { +func (v *ValidateEntityResponse) GetHeaders() map[string][]string { + if v == nil { return map[string][]string{} } - return o.Headers + return v.Headers } diff --git a/internal/sdk/models/operations/validateentityv2.go b/internal/sdk/models/operations/validateentityv2.go index faa0c9a9..ee12e206 100644 --- a/internal/sdk/models/operations/validateentityv2.go +++ b/internal/sdk/models/operations/validateentityv2.go @@ -13,18 +13,18 @@ type ValidateEntityV2Request struct { Entity *shared.EntityInput `request:"mediaType=application/json"` } -func (o *ValidateEntityV2Request) GetSlug() string { - if o == nil { +func (v *ValidateEntityV2Request) GetSlug() string { + if v == nil { return "" } - return o.Slug + return v.Slug } -func (o *ValidateEntityV2Request) GetEntity() *shared.EntityInput { - if o == nil { +func (v *ValidateEntityV2Request) GetEntity() *shared.EntityInput { + if v == nil { return nil } - return o.Entity + return v.Entity } type ValidateEntityV2Response struct { @@ -43,51 +43,51 @@ type ValidateEntityV2Response struct { Headers map[string][]string } -func (o *ValidateEntityV2Response) GetContentType() string { - if o == nil { +func (v *ValidateEntityV2Response) GetContentType() string { + if v == nil { return "" } - return o.ContentType + return v.ContentType } -func (o *ValidateEntityV2Response) GetStatusCode() int { - if o == nil { +func (v *ValidateEntityV2Response) GetStatusCode() int { + if v == nil { return 0 } - return o.StatusCode + return v.StatusCode } -func (o *ValidateEntityV2Response) GetRawResponse() *http.Response { - if o == nil { +func (v *ValidateEntityV2Response) GetRawResponse() *http.Response { + if v == nil { return nil } - return o.RawResponse + return v.RawResponse } -func (o *ValidateEntityV2Response) GetEntityValidationV2ResultSuccess() *shared.EntityValidationV2ResultSuccess { - if o == nil { +func (v *ValidateEntityV2Response) GetEntityValidationV2ResultSuccess() *shared.EntityValidationV2ResultSuccess { + if v == nil { return nil } - return o.EntityValidationV2ResultSuccess + return v.EntityValidationV2ResultSuccess } -func (o *ValidateEntityV2Response) GetEntityValidationV2ResultError() *shared.EntityValidationV2ResultError { - if o == nil { +func (v *ValidateEntityV2Response) GetEntityValidationV2ResultError() *shared.EntityValidationV2ResultError { + if v == nil { return nil } - return o.EntityValidationV2ResultError + return v.EntityValidationV2ResultError } -func (o *ValidateEntityV2Response) GetTooManyRequestsError() *shared.TooManyRequestsError { - if o == nil { +func (v *ValidateEntityV2Response) GetTooManyRequestsError() *shared.TooManyRequestsError { + if v == nil { return nil } - return o.TooManyRequestsError + return v.TooManyRequestsError } -func (o *ValidateEntityV2Response) GetHeaders() map[string][]string { - if o == nil { +func (v *ValidateEntityV2Response) GetHeaders() map[string][]string { + if v == nil { return map[string][]string{} } - return o.Headers + return v.Headers } diff --git a/internal/sdk/models/operations/wipeallentities.go b/internal/sdk/models/operations/wipeallentities.go index 63389ccc..b66d2067 100644 --- a/internal/sdk/models/operations/wipeallentities.go +++ b/internal/sdk/models/operations/wipeallentities.go @@ -10,11 +10,11 @@ type WipeAllEntitiesRequestBody struct { Schemas []string `json:"schemas,omitempty"` } -func (o *WipeAllEntitiesRequestBody) GetSchemas() []string { - if o == nil { +func (w *WipeAllEntitiesRequestBody) GetSchemas() []string { + if w == nil { return nil } - return o.Schemas + return w.Schemas } type WipeAllEntitiesResponse struct { @@ -26,23 +26,23 @@ type WipeAllEntitiesResponse struct { RawResponse *http.Response } -func (o *WipeAllEntitiesResponse) GetContentType() string { - if o == nil { +func (w *WipeAllEntitiesResponse) GetContentType() string { + if w == nil { return "" } - return o.ContentType + return w.ContentType } -func (o *WipeAllEntitiesResponse) GetStatusCode() int { - if o == nil { +func (w *WipeAllEntitiesResponse) GetStatusCode() int { + if w == nil { return 0 } - return o.StatusCode + return w.StatusCode } -func (o *WipeAllEntitiesResponse) GetRawResponse() *http.Response { - if o == nil { +func (w *WipeAllEntitiesResponse) GetRawResponse() *http.Response { + if w == nil { return nil } - return o.RawResponse + return w.RawResponse } diff --git a/internal/sdk/models/shared/activity.go b/internal/sdk/models/shared/activity.go index 86be11f2..af06a6ab 100644 --- a/internal/sdk/models/shared/activity.go +++ b/internal/sdk/models/shared/activity.go @@ -30,37 +30,37 @@ func (a *Activity) UnmarshalJSON(data []byte) error { return nil } -func (o *Activity) GetType() string { - if o == nil { +func (a *Activity) GetType() string { + if a == nil { return "" } - return o.Type + return a.Type } -func (o *Activity) GetTitle() string { - if o == nil { +func (a *Activity) GetTitle() string { + if a == nil { return "" } - return o.Title + return a.Title } -func (o *Activity) GetMessage() string { - if o == nil { +func (a *Activity) GetMessage() string { + if a == nil { return "" } - return o.Message + return a.Message } -func (o *Activity) GetPayload() map[string]any { - if o == nil { +func (a *Activity) GetPayload() map[string]any { + if a == nil { return nil } - return o.Payload + return a.Payload } -func (o *Activity) GetPending() *bool { - if o == nil { +func (a *Activity) GetPending() *bool { + if a == nil { return nil } - return o.Pending + return a.Pending } diff --git a/internal/sdk/models/shared/activitycallercontext.go b/internal/sdk/models/shared/activitycallercontext.go index b69cd915..0347d3c6 100644 --- a/internal/sdk/models/shared/activitycallercontext.go +++ b/internal/sdk/models/shared/activitycallercontext.go @@ -13,43 +13,43 @@ type Token struct { CustomIvyUserID *string `json:"custom:ivy_user_id,omitempty"` } -func (o *Token) GetSub() *string { - if o == nil { +func (t *Token) GetSub() *string { + if t == nil { return nil } - return o.Sub + return t.Sub } -func (o *Token) GetEmail() *string { - if o == nil { +func (t *Token) GetEmail() *string { + if t == nil { return nil } - return o.Email + return t.Email } -func (o *Token) GetCognitoUsername() *string { - if o == nil { +func (t *Token) GetCognitoUsername() *string { + if t == nil { return nil } - return o.CognitoUsername + return t.CognitoUsername } -func (o *Token) GetCustomIvyUserID() *string { - if o == nil { +func (t *Token) GetCustomIvyUserID() *string { + if t == nil { return nil } - return o.CustomIvyUserID + return t.CustomIvyUserID } type EpilotAuth struct { Token *Token `json:"token,omitempty"` } -func (o *EpilotAuth) GetToken() *Token { - if o == nil { +func (e *EpilotAuth) GetToken() *Token { + if e == nil { return nil } - return o.Token + return e.Token } type ActivityCallerContext struct { @@ -68,16 +68,16 @@ func (a *ActivityCallerContext) UnmarshalJSON(data []byte) error { return nil } -func (o *ActivityCallerContext) GetEpilotAuth() *EpilotAuth { - if o == nil { +func (a *ActivityCallerContext) GetEpilotAuth() *EpilotAuth { + if a == nil { return nil } - return o.EpilotAuth + return a.EpilotAuth } -func (o *ActivityCallerContext) GetAdditionalProperties() any { - if o == nil { +func (a *ActivityCallerContext) GetAdditionalProperties() any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } diff --git a/internal/sdk/models/shared/activityidqueryparam.go b/internal/sdk/models/shared/activityidqueryparam.go index b4375c1d..59428f79 100644 --- a/internal/sdk/models/shared/activityidqueryparam.go +++ b/internal/sdk/models/shared/activityidqueryparam.go @@ -40,8 +40,8 @@ const ( ) type ActivityIDQueryParam struct { - Str *string `queryParam:"inline" name:"ActivityIdQueryParam"` - ActivityIDQueryParam2 *ActivityIDQueryParam2 `queryParam:"inline" name:"ActivityIdQueryParam"` + Str *string `queryParam:"inline,name=ActivityIdQueryParam"` + ActivityIDQueryParam2 *ActivityIDQueryParam2 `queryParam:"inline,name=ActivityIdQueryParam"` Type ActivityIDQueryParamType } @@ -66,17 +66,43 @@ func CreateActivityIDQueryParamActivityIDQueryParam2(activityIDQueryParam2 Activ func (u *ActivityIDQueryParam) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = ActivityIDQueryParamTypeStr - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: ActivityIDQueryParamTypeStr, + Value: &str, + }) } var activityIDQueryParam2 ActivityIDQueryParam2 = ActivityIDQueryParam2("") if err := utils.UnmarshalJSON(data, &activityIDQueryParam2, "", true, nil); err == nil { - u.ActivityIDQueryParam2 = &activityIDQueryParam2 - u.Type = ActivityIDQueryParamTypeActivityIDQueryParam2 + candidates = append(candidates, utils.UnionCandidate{ + Type: ActivityIDQueryParamTypeActivityIDQueryParam2, + Value: &activityIDQueryParam2, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for ActivityIDQueryParam", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for ActivityIDQueryParam", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(ActivityIDQueryParamType) + switch best.Type { + case ActivityIDQueryParamTypeStr: + u.Str = best.Value.(*string) + return nil + case ActivityIDQueryParamTypeActivityIDQueryParam2: + u.ActivityIDQueryParam2 = best.Value.(*ActivityIDQueryParam2) return nil } diff --git a/internal/sdk/models/shared/activityitem.go b/internal/sdk/models/shared/activityitem.go index 44776eef..12cc98ff 100644 --- a/internal/sdk/models/shared/activityitem.go +++ b/internal/sdk/models/shared/activityitem.go @@ -38,72 +38,72 @@ func (a *ActivityItem) UnmarshalJSON(data []byte) error { return nil } -func (o *ActivityItem) GetID() *string { - if o == nil { +func (a *ActivityItem) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *ActivityItem) GetTimestamp() *time.Time { - if o == nil { +func (a *ActivityItem) GetTimestamp() *time.Time { + if a == nil { return nil } - return o.Timestamp + return a.Timestamp } -func (o *ActivityItem) GetType() string { - if o == nil { +func (a *ActivityItem) GetType() string { + if a == nil { return "" } - return o.Type + return a.Type } -func (o *ActivityItem) GetTitle() string { - if o == nil { +func (a *ActivityItem) GetTitle() string { + if a == nil { return "" } - return o.Title + return a.Title } -func (o *ActivityItem) GetMessage() string { - if o == nil { +func (a *ActivityItem) GetMessage() string { + if a == nil { return "" } - return o.Message + return a.Message } -func (o *ActivityItem) GetPayload() map[string]any { - if o == nil { +func (a *ActivityItem) GetPayload() map[string]any { + if a == nil { return nil } - return o.Payload + return a.Payload } -func (o *ActivityItem) GetPending() *bool { - if o == nil { +func (a *ActivityItem) GetPending() *bool { + if a == nil { return nil } - return o.Pending + return a.Pending } -func (o *ActivityItem) GetCaller() *ActivityCallerContext { - if o == nil { +func (a *ActivityItem) GetCaller() *ActivityCallerContext { + if a == nil { return nil } - return o.Caller + return a.Caller } -func (o *ActivityItem) GetOperationsTotal() *int64 { - if o == nil { +func (a *ActivityItem) GetOperationsTotal() *int64 { + if a == nil { return nil } - return o.OperationsTotal + return a.OperationsTotal } -func (o *ActivityItem) GetOperations() []EntityOperation { - if o == nil { +func (a *ActivityItem) GetOperations() []EntityOperation { + if a == nil { return nil } - return o.Operations + return a.Operations } diff --git a/internal/sdk/models/shared/addressattribute.go b/internal/sdk/models/shared/addressattribute.go index da9736dc..fb9b6ba4 100644 --- a/internal/sdk/models/shared/addressattribute.go +++ b/internal/sdk/models/shared/addressattribute.go @@ -56,32 +56,32 @@ func (a *AddressAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *AddressAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (a *AddressAttributeInfoHelpers) GetHintText() *string { + if a == nil { return nil } - return o.HintText + return a.HintText } -func (o *AddressAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (a *AddressAttributeInfoHelpers) GetHintTextKey() *string { + if a == nil { return nil } - return o.HintTextKey + return a.HintTextKey } -func (o *AddressAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (a *AddressAttributeInfoHelpers) GetHintCustomComponent() *string { + if a == nil { return nil } - return o.HintCustomComponent + return a.HintCustomComponent } -func (o *AddressAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (a *AddressAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if a == nil { return nil } - return o.HintTooltipPlacement + return a.HintTooltipPlacement } type AddressAttributeType string @@ -198,219 +198,219 @@ func (a *AddressAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *AddressAttribute) GetID() *string { - if o == nil { +func (a *AddressAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AddressAttribute) GetName() string { - if o == nil { +func (a *AddressAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AddressAttribute) GetLabel() string { - if o == nil { +func (a *AddressAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AddressAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AddressAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AddressAttribute) GetHidden() *bool { - if o == nil { +func (a *AddressAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AddressAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AddressAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AddressAttribute) GetSortable() *bool { - if o == nil { +func (a *AddressAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AddressAttribute) GetRequired() *bool { - if o == nil { +func (a *AddressAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AddressAttribute) GetReadonly() *bool { - if o == nil { +func (a *AddressAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AddressAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AddressAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AddressAttribute) GetDefaultValue() any { - if o == nil { +func (a *AddressAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AddressAttribute) GetGroup() *string { - if o == nil { +func (a *AddressAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AddressAttribute) GetOrder() *int64 { - if o == nil { +func (a *AddressAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AddressAttribute) GetLayout() *string { - if o == nil { +func (a *AddressAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AddressAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AddressAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AddressAttribute) GetIcon() *string { - if o == nil { +func (a *AddressAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AddressAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AddressAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AddressAttribute) GetPurpose() []string { - if o == nil { +func (a *AddressAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AddressAttribute) GetManifest() []string { - if o == nil { +func (a *AddressAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AddressAttribute) GetConstraints() *AddressAttributeConstraints { - if o == nil { +func (a *AddressAttribute) GetConstraints() *AddressAttributeConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AddressAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AddressAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AddressAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AddressAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AddressAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AddressAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AddressAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AddressAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AddressAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AddressAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AddressAttribute) GetProtected() *bool { - if o == nil { +func (a *AddressAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AddressAttribute) GetInfoHelpers() *AddressAttributeInfoHelpers { - if o == nil { +func (a *AddressAttribute) GetInfoHelpers() *AddressAttributeInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AddressAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AddressAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AddressAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AddressAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AddressAttribute) GetType() AddressAttributeType { - if o == nil { +func (a *AddressAttribute) GetType() AddressAttributeType { + if a == nil { return AddressAttributeType("") } - return o.Type + return a.Type } -func (o *AddressAttribute) GetDefaultAddressFields() []string { - if o == nil { +func (a *AddressAttribute) GetDefaultAddressFields() []string { + if a == nil { return nil } - return o.DefaultAddressFields + return a.DefaultAddressFields } diff --git a/internal/sdk/models/shared/addressrelationattribute.go b/internal/sdk/models/shared/addressrelationattribute.go index 664afc7e..9b89bb59 100644 --- a/internal/sdk/models/shared/addressrelationattribute.go +++ b/internal/sdk/models/shared/addressrelationattribute.go @@ -56,32 +56,32 @@ func (a *AddressRelationAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *AddressRelationAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (a *AddressRelationAttributeInfoHelpers) GetHintText() *string { + if a == nil { return nil } - return o.HintText + return a.HintText } -func (o *AddressRelationAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (a *AddressRelationAttributeInfoHelpers) GetHintTextKey() *string { + if a == nil { return nil } - return o.HintTextKey + return a.HintTextKey } -func (o *AddressRelationAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (a *AddressRelationAttributeInfoHelpers) GetHintCustomComponent() *string { + if a == nil { return nil } - return o.HintCustomComponent + return a.HintCustomComponent } -func (o *AddressRelationAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (a *AddressRelationAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if a == nil { return nil } - return o.HintTooltipPlacement + return a.HintTooltipPlacement } type AddressRelationAttributeType string @@ -198,219 +198,219 @@ func (a *AddressRelationAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *AddressRelationAttribute) GetID() *string { - if o == nil { +func (a *AddressRelationAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AddressRelationAttribute) GetName() string { - if o == nil { +func (a *AddressRelationAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AddressRelationAttribute) GetLabel() string { - if o == nil { +func (a *AddressRelationAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AddressRelationAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AddressRelationAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AddressRelationAttribute) GetHidden() *bool { - if o == nil { +func (a *AddressRelationAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AddressRelationAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AddressRelationAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AddressRelationAttribute) GetSortable() *bool { - if o == nil { +func (a *AddressRelationAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AddressRelationAttribute) GetRequired() *bool { - if o == nil { +func (a *AddressRelationAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AddressRelationAttribute) GetReadonly() *bool { - if o == nil { +func (a *AddressRelationAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AddressRelationAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AddressRelationAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AddressRelationAttribute) GetDefaultValue() any { - if o == nil { +func (a *AddressRelationAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AddressRelationAttribute) GetGroup() *string { - if o == nil { +func (a *AddressRelationAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AddressRelationAttribute) GetOrder() *int64 { - if o == nil { +func (a *AddressRelationAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AddressRelationAttribute) GetLayout() *string { - if o == nil { +func (a *AddressRelationAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AddressRelationAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AddressRelationAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AddressRelationAttribute) GetIcon() *string { - if o == nil { +func (a *AddressRelationAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AddressRelationAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AddressRelationAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AddressRelationAttribute) GetPurpose() []string { - if o == nil { +func (a *AddressRelationAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AddressRelationAttribute) GetManifest() []string { - if o == nil { +func (a *AddressRelationAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AddressRelationAttribute) GetConstraints() *AddressRelationAttributeConstraints { - if o == nil { +func (a *AddressRelationAttribute) GetConstraints() *AddressRelationAttributeConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AddressRelationAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AddressRelationAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AddressRelationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AddressRelationAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AddressRelationAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AddressRelationAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AddressRelationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AddressRelationAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AddressRelationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AddressRelationAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AddressRelationAttribute) GetProtected() *bool { - if o == nil { +func (a *AddressRelationAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AddressRelationAttribute) GetInfoHelpers() *AddressRelationAttributeInfoHelpers { - if o == nil { +func (a *AddressRelationAttribute) GetInfoHelpers() *AddressRelationAttributeInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AddressRelationAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AddressRelationAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AddressRelationAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AddressRelationAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AddressRelationAttribute) GetType() AddressRelationAttributeType { - if o == nil { +func (a *AddressRelationAttribute) GetType() AddressRelationAttributeType { + if a == nil { return AddressRelationAttributeType("") } - return o.Type + return a.Type } -func (o *AddressRelationAttribute) GetDefaultAddressFields() []string { - if o == nil { +func (a *AddressRelationAttribute) GetDefaultAddressFields() []string { + if a == nil { return nil } - return o.DefaultAddressFields + return a.DefaultAddressFields } diff --git a/internal/sdk/models/shared/attribute.go b/internal/sdk/models/shared/attribute.go index 9df487db..c52ce5f4 100644 --- a/internal/sdk/models/shared/attribute.go +++ b/internal/sdk/models/shared/attribute.go @@ -48,40 +48,40 @@ const ( ) type Attribute struct { - TextAttribute *TextAttribute `queryParam:"inline" name:"Attribute"` - LinkAttribute *LinkAttribute `queryParam:"inline" name:"Attribute"` - DateAttribute *DateAttribute `queryParam:"inline" name:"Attribute"` - CountryAttribute *CountryAttribute `queryParam:"inline" name:"Attribute"` - BooleanAttribute *BooleanAttribute `queryParam:"inline" name:"Attribute"` - SelectAttribute *SelectAttribute `queryParam:"inline" name:"Attribute"` - MultiSelectAttribute *MultiSelectAttribute `queryParam:"inline" name:"Attribute"` - StatusAttribute *StatusAttribute `queryParam:"inline" name:"Attribute"` - SequenceAttribute *SequenceAttribute `queryParam:"inline" name:"Attribute"` - RelationAttribute *RelationAttribute `queryParam:"inline" name:"Attribute"` - UserRelationAttribute *UserRelationAttribute `queryParam:"inline" name:"Attribute"` - AddressAttribute *AddressAttribute `queryParam:"inline" name:"Attribute"` - AddressRelationAttribute *AddressRelationAttribute `queryParam:"inline" name:"Attribute"` - PaymentMethodRelationAttribute *PaymentMethodRelationAttribute `queryParam:"inline" name:"Attribute"` - CurrencyAttribute *CurrencyAttribute `queryParam:"inline" name:"Attribute"` - TagsAttribute *TagsAttribute `queryParam:"inline" name:"Attribute"` - MessageEmailAddressAttribute *MessageEmailAddressAttribute `queryParam:"inline" name:"Attribute"` - NumberAttribute *NumberAttribute `queryParam:"inline" name:"Attribute"` - ConsentAttribute *ConsentAttribute `queryParam:"inline" name:"Attribute"` - InternalAttribute *InternalAttribute `queryParam:"inline" name:"Attribute"` - OrderedListAttribute *OrderedListAttribute `queryParam:"inline" name:"Attribute"` - FileAttribute *FileAttribute `queryParam:"inline" name:"Attribute"` - ComputedAttribute *ComputedAttribute `queryParam:"inline" name:"Attribute"` - PartnerStatusAttribute *PartnerStatusAttribute `queryParam:"inline" name:"Attribute"` - InvitationEmailAttribute *InvitationEmailAttribute `queryParam:"inline" name:"Attribute"` - AutomationAttribute *AutomationAttribute `queryParam:"inline" name:"Attribute"` - InternalUserAttribute *InternalUserAttribute `queryParam:"inline" name:"Attribute"` - PurposeAttribute *PurposeAttribute `queryParam:"inline" name:"Attribute"` - PartnerOrganisationAttribute *PartnerOrganisationAttribute `queryParam:"inline" name:"Attribute"` - PortalAccessAttribute *PortalAccessAttribute `queryParam:"inline" name:"Attribute"` - PhoneAttribute *PhoneAttribute `queryParam:"inline" name:"Attribute"` - EmailAttribute *EmailAttribute `queryParam:"inline" name:"Attribute"` - PaymentAttribute *PaymentAttribute `queryParam:"inline" name:"Attribute"` - PriceComponentAttribute *PriceComponentAttribute `queryParam:"inline" name:"Attribute"` + TextAttribute *TextAttribute `queryParam:"inline,name=Attribute"` + LinkAttribute *LinkAttribute `queryParam:"inline,name=Attribute"` + DateAttribute *DateAttribute `queryParam:"inline,name=Attribute"` + CountryAttribute *CountryAttribute `queryParam:"inline,name=Attribute"` + BooleanAttribute *BooleanAttribute `queryParam:"inline,name=Attribute"` + SelectAttribute *SelectAttribute `queryParam:"inline,name=Attribute"` + MultiSelectAttribute *MultiSelectAttribute `queryParam:"inline,name=Attribute"` + StatusAttribute *StatusAttribute `queryParam:"inline,name=Attribute"` + SequenceAttribute *SequenceAttribute `queryParam:"inline,name=Attribute"` + RelationAttribute *RelationAttribute `queryParam:"inline,name=Attribute"` + UserRelationAttribute *UserRelationAttribute `queryParam:"inline,name=Attribute"` + AddressAttribute *AddressAttribute `queryParam:"inline,name=Attribute"` + AddressRelationAttribute *AddressRelationAttribute `queryParam:"inline,name=Attribute"` + PaymentMethodRelationAttribute *PaymentMethodRelationAttribute `queryParam:"inline,name=Attribute"` + CurrencyAttribute *CurrencyAttribute `queryParam:"inline,name=Attribute"` + TagsAttribute *TagsAttribute `queryParam:"inline,name=Attribute"` + MessageEmailAddressAttribute *MessageEmailAddressAttribute `queryParam:"inline,name=Attribute"` + NumberAttribute *NumberAttribute `queryParam:"inline,name=Attribute"` + ConsentAttribute *ConsentAttribute `queryParam:"inline,name=Attribute"` + InternalAttribute *InternalAttribute `queryParam:"inline,name=Attribute"` + OrderedListAttribute *OrderedListAttribute `queryParam:"inline,name=Attribute"` + FileAttribute *FileAttribute `queryParam:"inline,name=Attribute"` + ComputedAttribute *ComputedAttribute `queryParam:"inline,name=Attribute"` + PartnerStatusAttribute *PartnerStatusAttribute `queryParam:"inline,name=Attribute"` + InvitationEmailAttribute *InvitationEmailAttribute `queryParam:"inline,name=Attribute"` + AutomationAttribute *AutomationAttribute `queryParam:"inline,name=Attribute"` + InternalUserAttribute *InternalUserAttribute `queryParam:"inline,name=Attribute"` + PurposeAttribute *PurposeAttribute `queryParam:"inline,name=Attribute"` + PartnerOrganisationAttribute *PartnerOrganisationAttribute `queryParam:"inline,name=Attribute"` + PortalAccessAttribute *PortalAccessAttribute `queryParam:"inline,name=Attribute"` + PhoneAttribute *PhoneAttribute `queryParam:"inline,name=Attribute"` + EmailAttribute *EmailAttribute `queryParam:"inline,name=Attribute"` + PaymentAttribute *PaymentAttribute `queryParam:"inline,name=Attribute"` + PriceComponentAttribute *PriceComponentAttribute `queryParam:"inline,name=Attribute"` Type AttributeType } @@ -394,241 +394,395 @@ func CreateAttributePriceComponentAttribute(priceComponentAttribute PriceCompone func (u *Attribute) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var currencyAttribute CurrencyAttribute = CurrencyAttribute{} if err := utils.UnmarshalJSON(data, ¤cyAttribute, "", true, nil); err == nil { - u.CurrencyAttribute = ¤cyAttribute - u.Type = AttributeTypeCurrencyAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeCurrencyAttribute, + Value: ¤cyAttribute, + }) } var consentAttribute ConsentAttribute = ConsentAttribute{} if err := utils.UnmarshalJSON(data, &consentAttribute, "", true, nil); err == nil { - u.ConsentAttribute = &consentAttribute - u.Type = AttributeTypeConsentAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeConsentAttribute, + Value: &consentAttribute, + }) } var computedAttribute ComputedAttribute = ComputedAttribute{} if err := utils.UnmarshalJSON(data, &computedAttribute, "", true, nil); err == nil { - u.ComputedAttribute = &computedAttribute - u.Type = AttributeTypeComputedAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeComputedAttribute, + Value: &computedAttribute, + }) } var textAttribute TextAttribute = TextAttribute{} if err := utils.UnmarshalJSON(data, &textAttribute, "", true, nil); err == nil { - u.TextAttribute = &textAttribute - u.Type = AttributeTypeTextAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeTextAttribute, + Value: &textAttribute, + }) } var linkAttribute LinkAttribute = LinkAttribute{} if err := utils.UnmarshalJSON(data, &linkAttribute, "", true, nil); err == nil { - u.LinkAttribute = &linkAttribute - u.Type = AttributeTypeLinkAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeLinkAttribute, + Value: &linkAttribute, + }) } var dateAttribute DateAttribute = DateAttribute{} if err := utils.UnmarshalJSON(data, &dateAttribute, "", true, nil); err == nil { - u.DateAttribute = &dateAttribute - u.Type = AttributeTypeDateAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeDateAttribute, + Value: &dateAttribute, + }) } var countryAttribute CountryAttribute = CountryAttribute{} if err := utils.UnmarshalJSON(data, &countryAttribute, "", true, nil); err == nil { - u.CountryAttribute = &countryAttribute - u.Type = AttributeTypeCountryAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeCountryAttribute, + Value: &countryAttribute, + }) } var booleanAttribute BooleanAttribute = BooleanAttribute{} if err := utils.UnmarshalJSON(data, &booleanAttribute, "", true, nil); err == nil { - u.BooleanAttribute = &booleanAttribute - u.Type = AttributeTypeBooleanAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeBooleanAttribute, + Value: &booleanAttribute, + }) } var selectAttribute SelectAttribute = SelectAttribute{} if err := utils.UnmarshalJSON(data, &selectAttribute, "", true, nil); err == nil { - u.SelectAttribute = &selectAttribute - u.Type = AttributeTypeSelectAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeSelectAttribute, + Value: &selectAttribute, + }) } var multiSelectAttribute MultiSelectAttribute = MultiSelectAttribute{} if err := utils.UnmarshalJSON(data, &multiSelectAttribute, "", true, nil); err == nil { - u.MultiSelectAttribute = &multiSelectAttribute - u.Type = AttributeTypeMultiSelectAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeMultiSelectAttribute, + Value: &multiSelectAttribute, + }) } var statusAttribute StatusAttribute = StatusAttribute{} if err := utils.UnmarshalJSON(data, &statusAttribute, "", true, nil); err == nil { - u.StatusAttribute = &statusAttribute - u.Type = AttributeTypeStatusAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeStatusAttribute, + Value: &statusAttribute, + }) } var sequenceAttribute SequenceAttribute = SequenceAttribute{} if err := utils.UnmarshalJSON(data, &sequenceAttribute, "", true, nil); err == nil { - u.SequenceAttribute = &sequenceAttribute - u.Type = AttributeTypeSequenceAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeSequenceAttribute, + Value: &sequenceAttribute, + }) } var relationAttribute RelationAttribute = RelationAttribute{} if err := utils.UnmarshalJSON(data, &relationAttribute, "", true, nil); err == nil { - u.RelationAttribute = &relationAttribute - u.Type = AttributeTypeRelationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeRelationAttribute, + Value: &relationAttribute, + }) } var userRelationAttribute UserRelationAttribute = UserRelationAttribute{} if err := utils.UnmarshalJSON(data, &userRelationAttribute, "", true, nil); err == nil { - u.UserRelationAttribute = &userRelationAttribute - u.Type = AttributeTypeUserRelationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeUserRelationAttribute, + Value: &userRelationAttribute, + }) } var addressAttribute AddressAttribute = AddressAttribute{} if err := utils.UnmarshalJSON(data, &addressAttribute, "", true, nil); err == nil { - u.AddressAttribute = &addressAttribute - u.Type = AttributeTypeAddressAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeAddressAttribute, + Value: &addressAttribute, + }) } var addressRelationAttribute AddressRelationAttribute = AddressRelationAttribute{} if err := utils.UnmarshalJSON(data, &addressRelationAttribute, "", true, nil); err == nil { - u.AddressRelationAttribute = &addressRelationAttribute - u.Type = AttributeTypeAddressRelationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeAddressRelationAttribute, + Value: &addressRelationAttribute, + }) } var paymentMethodRelationAttribute PaymentMethodRelationAttribute = PaymentMethodRelationAttribute{} if err := utils.UnmarshalJSON(data, &paymentMethodRelationAttribute, "", true, nil); err == nil { - u.PaymentMethodRelationAttribute = &paymentMethodRelationAttribute - u.Type = AttributeTypePaymentMethodRelationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypePaymentMethodRelationAttribute, + Value: &paymentMethodRelationAttribute, + }) } var tagsAttribute TagsAttribute = TagsAttribute{} if err := utils.UnmarshalJSON(data, &tagsAttribute, "", true, nil); err == nil { - u.TagsAttribute = &tagsAttribute - u.Type = AttributeTypeTagsAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeTagsAttribute, + Value: &tagsAttribute, + }) } var messageEmailAddressAttribute MessageEmailAddressAttribute = MessageEmailAddressAttribute{} if err := utils.UnmarshalJSON(data, &messageEmailAddressAttribute, "", true, nil); err == nil { - u.MessageEmailAddressAttribute = &messageEmailAddressAttribute - u.Type = AttributeTypeMessageEmailAddressAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeMessageEmailAddressAttribute, + Value: &messageEmailAddressAttribute, + }) } var numberAttribute NumberAttribute = NumberAttribute{} if err := utils.UnmarshalJSON(data, &numberAttribute, "", true, nil); err == nil { - u.NumberAttribute = &numberAttribute - u.Type = AttributeTypeNumberAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeNumberAttribute, + Value: &numberAttribute, + }) } var internalAttribute InternalAttribute = InternalAttribute{} if err := utils.UnmarshalJSON(data, &internalAttribute, "", true, nil); err == nil { - u.InternalAttribute = &internalAttribute - u.Type = AttributeTypeInternalAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeInternalAttribute, + Value: &internalAttribute, + }) } var orderedListAttribute OrderedListAttribute = OrderedListAttribute{} if err := utils.UnmarshalJSON(data, &orderedListAttribute, "", true, nil); err == nil { - u.OrderedListAttribute = &orderedListAttribute - u.Type = AttributeTypeOrderedListAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeOrderedListAttribute, + Value: &orderedListAttribute, + }) } var fileAttribute FileAttribute = FileAttribute{} if err := utils.UnmarshalJSON(data, &fileAttribute, "", true, nil); err == nil { - u.FileAttribute = &fileAttribute - u.Type = AttributeTypeFileAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeFileAttribute, + Value: &fileAttribute, + }) } var partnerStatusAttribute PartnerStatusAttribute = PartnerStatusAttribute{} if err := utils.UnmarshalJSON(data, &partnerStatusAttribute, "", true, nil); err == nil { - u.PartnerStatusAttribute = &partnerStatusAttribute - u.Type = AttributeTypePartnerStatusAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypePartnerStatusAttribute, + Value: &partnerStatusAttribute, + }) } var invitationEmailAttribute InvitationEmailAttribute = InvitationEmailAttribute{} if err := utils.UnmarshalJSON(data, &invitationEmailAttribute, "", true, nil); err == nil { - u.InvitationEmailAttribute = &invitationEmailAttribute - u.Type = AttributeTypeInvitationEmailAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeInvitationEmailAttribute, + Value: &invitationEmailAttribute, + }) } var automationAttribute AutomationAttribute = AutomationAttribute{} if err := utils.UnmarshalJSON(data, &automationAttribute, "", true, nil); err == nil { - u.AutomationAttribute = &automationAttribute - u.Type = AttributeTypeAutomationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeAutomationAttribute, + Value: &automationAttribute, + }) } var internalUserAttribute InternalUserAttribute = InternalUserAttribute{} if err := utils.UnmarshalJSON(data, &internalUserAttribute, "", true, nil); err == nil { - u.InternalUserAttribute = &internalUserAttribute - u.Type = AttributeTypeInternalUserAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeInternalUserAttribute, + Value: &internalUserAttribute, + }) } var purposeAttribute PurposeAttribute = PurposeAttribute{} if err := utils.UnmarshalJSON(data, &purposeAttribute, "", true, nil); err == nil { - u.PurposeAttribute = &purposeAttribute - u.Type = AttributeTypePurposeAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypePurposeAttribute, + Value: &purposeAttribute, + }) } var partnerOrganisationAttribute PartnerOrganisationAttribute = PartnerOrganisationAttribute{} if err := utils.UnmarshalJSON(data, &partnerOrganisationAttribute, "", true, nil); err == nil { - u.PartnerOrganisationAttribute = &partnerOrganisationAttribute - u.Type = AttributeTypePartnerOrganisationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypePartnerOrganisationAttribute, + Value: &partnerOrganisationAttribute, + }) } var portalAccessAttribute PortalAccessAttribute = PortalAccessAttribute{} if err := utils.UnmarshalJSON(data, &portalAccessAttribute, "", true, nil); err == nil { - u.PortalAccessAttribute = &portalAccessAttribute - u.Type = AttributeTypePortalAccessAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypePortalAccessAttribute, + Value: &portalAccessAttribute, + }) } var phoneAttribute PhoneAttribute = PhoneAttribute{} if err := utils.UnmarshalJSON(data, &phoneAttribute, "", true, nil); err == nil { - u.PhoneAttribute = &phoneAttribute - u.Type = AttributeTypePhoneAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypePhoneAttribute, + Value: &phoneAttribute, + }) } var emailAttribute EmailAttribute = EmailAttribute{} if err := utils.UnmarshalJSON(data, &emailAttribute, "", true, nil); err == nil { - u.EmailAttribute = &emailAttribute - u.Type = AttributeTypeEmailAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypeEmailAttribute, + Value: &emailAttribute, + }) } var paymentAttribute PaymentAttribute = PaymentAttribute{} if err := utils.UnmarshalJSON(data, &paymentAttribute, "", true, nil); err == nil { - u.PaymentAttribute = &paymentAttribute - u.Type = AttributeTypePaymentAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypePaymentAttribute, + Value: &paymentAttribute, + }) } var priceComponentAttribute PriceComponentAttribute = PriceComponentAttribute{} if err := utils.UnmarshalJSON(data, &priceComponentAttribute, "", true, nil); err == nil { - u.PriceComponentAttribute = &priceComponentAttribute - u.Type = AttributeTypePriceComponentAttribute + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeTypePriceComponentAttribute, + Value: &priceComponentAttribute, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Attribute", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Attribute", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(AttributeType) + switch best.Type { + case AttributeTypeCurrencyAttribute: + u.CurrencyAttribute = best.Value.(*CurrencyAttribute) + return nil + case AttributeTypeConsentAttribute: + u.ConsentAttribute = best.Value.(*ConsentAttribute) + return nil + case AttributeTypeComputedAttribute: + u.ComputedAttribute = best.Value.(*ComputedAttribute) + return nil + case AttributeTypeTextAttribute: + u.TextAttribute = best.Value.(*TextAttribute) + return nil + case AttributeTypeLinkAttribute: + u.LinkAttribute = best.Value.(*LinkAttribute) + return nil + case AttributeTypeDateAttribute: + u.DateAttribute = best.Value.(*DateAttribute) + return nil + case AttributeTypeCountryAttribute: + u.CountryAttribute = best.Value.(*CountryAttribute) + return nil + case AttributeTypeBooleanAttribute: + u.BooleanAttribute = best.Value.(*BooleanAttribute) + return nil + case AttributeTypeSelectAttribute: + u.SelectAttribute = best.Value.(*SelectAttribute) + return nil + case AttributeTypeMultiSelectAttribute: + u.MultiSelectAttribute = best.Value.(*MultiSelectAttribute) + return nil + case AttributeTypeStatusAttribute: + u.StatusAttribute = best.Value.(*StatusAttribute) + return nil + case AttributeTypeSequenceAttribute: + u.SequenceAttribute = best.Value.(*SequenceAttribute) + return nil + case AttributeTypeRelationAttribute: + u.RelationAttribute = best.Value.(*RelationAttribute) + return nil + case AttributeTypeUserRelationAttribute: + u.UserRelationAttribute = best.Value.(*UserRelationAttribute) + return nil + case AttributeTypeAddressAttribute: + u.AddressAttribute = best.Value.(*AddressAttribute) + return nil + case AttributeTypeAddressRelationAttribute: + u.AddressRelationAttribute = best.Value.(*AddressRelationAttribute) + return nil + case AttributeTypePaymentMethodRelationAttribute: + u.PaymentMethodRelationAttribute = best.Value.(*PaymentMethodRelationAttribute) + return nil + case AttributeTypeTagsAttribute: + u.TagsAttribute = best.Value.(*TagsAttribute) + return nil + case AttributeTypeMessageEmailAddressAttribute: + u.MessageEmailAddressAttribute = best.Value.(*MessageEmailAddressAttribute) + return nil + case AttributeTypeNumberAttribute: + u.NumberAttribute = best.Value.(*NumberAttribute) + return nil + case AttributeTypeInternalAttribute: + u.InternalAttribute = best.Value.(*InternalAttribute) + return nil + case AttributeTypeOrderedListAttribute: + u.OrderedListAttribute = best.Value.(*OrderedListAttribute) + return nil + case AttributeTypeFileAttribute: + u.FileAttribute = best.Value.(*FileAttribute) + return nil + case AttributeTypePartnerStatusAttribute: + u.PartnerStatusAttribute = best.Value.(*PartnerStatusAttribute) + return nil + case AttributeTypeInvitationEmailAttribute: + u.InvitationEmailAttribute = best.Value.(*InvitationEmailAttribute) + return nil + case AttributeTypeAutomationAttribute: + u.AutomationAttribute = best.Value.(*AutomationAttribute) + return nil + case AttributeTypeInternalUserAttribute: + u.InternalUserAttribute = best.Value.(*InternalUserAttribute) + return nil + case AttributeTypePurposeAttribute: + u.PurposeAttribute = best.Value.(*PurposeAttribute) + return nil + case AttributeTypePartnerOrganisationAttribute: + u.PartnerOrganisationAttribute = best.Value.(*PartnerOrganisationAttribute) + return nil + case AttributeTypePortalAccessAttribute: + u.PortalAccessAttribute = best.Value.(*PortalAccessAttribute) + return nil + case AttributeTypePhoneAttribute: + u.PhoneAttribute = best.Value.(*PhoneAttribute) + return nil + case AttributeTypeEmailAttribute: + u.EmailAttribute = best.Value.(*EmailAttribute) + return nil + case AttributeTypePaymentAttribute: + u.PaymentAttribute = best.Value.(*PaymentAttribute) + return nil + case AttributeTypePriceComponentAttribute: + u.PriceComponentAttribute = best.Value.(*PriceComponentAttribute) return nil } diff --git a/internal/sdk/models/shared/attributewithcompositeid.go b/internal/sdk/models/shared/attributewithcompositeid.go index 3ed58f43..1d5005cc 100644 --- a/internal/sdk/models/shared/attributewithcompositeid.go +++ b/internal/sdk/models/shared/attributewithcompositeid.go @@ -57,32 +57,32 @@ func (p *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJS return nil } -func (o *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PriceComponentAttributeAttributeWithCompositeIDType string @@ -180,228 +180,228 @@ func (a *AttributeWithCompositeIDPriceComponentAttribute) UnmarshalJSON(data []b return nil } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetConstraints() *PriceComponentAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetConstraints() *PriceComponentAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetInfoHelpers() *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetInfoHelpers() *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetType() PriceComponentAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetType() PriceComponentAttributeAttributeWithCompositeIDType { + if a == nil { return PriceComponentAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDPriceComponentAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // PaymentAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -452,32 +452,32 @@ func (p *PaymentAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data return nil } -func (o *PaymentAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PaymentAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PaymentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PaymentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PaymentAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PaymentAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PaymentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PaymentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PaymentAttributeAttributeWithCompositeIDType string @@ -575,228 +575,228 @@ func (a *AttributeWithCompositeIDPaymentAttribute) UnmarshalJSON(data []byte) er return nil } -func (o *AttributeWithCompositeIDPaymentAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPaymentAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPaymentAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPaymentAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPaymentAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPaymentAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPaymentAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPaymentAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPaymentAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPaymentAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPaymentAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPaymentAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPaymentAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPaymentAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPaymentAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPaymentAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPaymentAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPaymentAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPaymentAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPaymentAttribute) GetConstraints() *PaymentAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetConstraints() *PaymentAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPaymentAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPaymentAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPaymentAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPaymentAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPaymentAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPaymentAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPaymentAttribute) GetInfoHelpers() *PaymentAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetInfoHelpers() *PaymentAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPaymentAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPaymentAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPaymentAttribute) GetType() PaymentAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetType() PaymentAttributeAttributeWithCompositeIDType { + if a == nil { return PaymentAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPaymentAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDPaymentAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // EmailAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -847,32 +847,32 @@ func (e *EmailAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data [ return nil } -func (o *EmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (e *EmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if e == nil { return nil } - return o.HintText + return e.HintText } -func (o *EmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (e *EmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if e == nil { return nil } - return o.HintTextKey + return e.HintTextKey } -func (o *EmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (e *EmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if e == nil { return nil } - return o.HintCustomComponent + return e.HintCustomComponent } -func (o *EmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (e *EmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if e == nil { return nil } - return o.HintTooltipPlacement + return e.HintTooltipPlacement } type EmailAttributeAttributeWithCompositeIDType string @@ -970,228 +970,228 @@ func (a *AttributeWithCompositeIDEmailAttribute) UnmarshalJSON(data []byte) erro return nil } -func (o *AttributeWithCompositeIDEmailAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDEmailAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDEmailAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDEmailAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDEmailAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDEmailAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDEmailAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDEmailAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDEmailAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDEmailAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDEmailAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDEmailAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDEmailAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDEmailAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDEmailAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDEmailAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDEmailAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDEmailAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDEmailAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDEmailAttribute) GetConstraints() *EmailAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetConstraints() *EmailAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDEmailAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDEmailAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDEmailAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDEmailAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDEmailAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDEmailAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDEmailAttribute) GetInfoHelpers() *EmailAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetInfoHelpers() *EmailAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDEmailAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDEmailAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDEmailAttribute) GetType() EmailAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetType() EmailAttributeAttributeWithCompositeIDType { + if a == nil { return EmailAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDEmailAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDEmailAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // PhoneAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -1242,32 +1242,32 @@ func (p *PhoneAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data [ return nil } -func (o *PhoneAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PhoneAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PhoneAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PhoneAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PhoneAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PhoneAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PhoneAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PhoneAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PhoneAttributeAttributeWithCompositeIDType string @@ -1365,228 +1365,228 @@ func (a *AttributeWithCompositeIDPhoneAttribute) UnmarshalJSON(data []byte) erro return nil } -func (o *AttributeWithCompositeIDPhoneAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPhoneAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPhoneAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPhoneAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPhoneAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPhoneAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPhoneAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPhoneAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPhoneAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPhoneAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPhoneAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPhoneAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPhoneAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPhoneAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPhoneAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPhoneAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPhoneAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPhoneAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPhoneAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPhoneAttribute) GetConstraints() *PhoneAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetConstraints() *PhoneAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPhoneAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPhoneAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPhoneAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPhoneAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPhoneAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPhoneAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPhoneAttribute) GetInfoHelpers() *PhoneAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetInfoHelpers() *PhoneAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPhoneAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPhoneAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPhoneAttribute) GetType() PhoneAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetType() PhoneAttributeAttributeWithCompositeIDType { + if a == nil { return PhoneAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPhoneAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDPhoneAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // PortalAccessAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -1637,32 +1637,32 @@ func (p *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON return nil } -func (o *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PortalAccessAttributeAttributeWithCompositeIDType string @@ -1760,228 +1760,228 @@ func (a *AttributeWithCompositeIDPortalAccessAttribute) UnmarshalJSON(data []byt return nil } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetConstraints() *PortalAccessAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetConstraints() *PortalAccessAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetInfoHelpers() *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetInfoHelpers() *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetType() PortalAccessAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetType() PortalAccessAttributeAttributeWithCompositeIDType { + if a == nil { return PortalAccessAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDPortalAccessAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // PartnerOrganisationAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -2032,32 +2032,32 @@ func (p *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers) Unmars return nil } -func (o *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PartnerOrganisationAttributeAttributeWithCompositeIDType string @@ -2155,228 +2155,228 @@ func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) UnmarshalJSON(dat return nil } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetConstraints() *PartnerOrganisationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetConstraints() *PartnerOrganisationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetInfoHelpers() *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetInfoHelpers() *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetType() PartnerOrganisationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetType() PartnerOrganisationAttributeAttributeWithCompositeIDType { + if a == nil { return PartnerOrganisationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDPartnerOrganisationAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // PurposeAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -2427,32 +2427,32 @@ func (p *PurposeAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data return nil } -func (o *PurposeAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PurposeAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PurposeAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PurposeAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PurposeAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PurposeAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PurposeAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PurposeAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PurposeAttributeAttributeWithCompositeIDType string @@ -2550,228 +2550,228 @@ func (a *AttributeWithCompositeIDPurposeAttribute) UnmarshalJSON(data []byte) er return nil } -func (o *AttributeWithCompositeIDPurposeAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPurposeAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPurposeAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPurposeAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPurposeAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPurposeAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPurposeAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPurposeAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPurposeAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPurposeAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPurposeAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPurposeAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPurposeAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPurposeAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPurposeAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPurposeAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPurposeAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPurposeAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPurposeAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPurposeAttribute) GetConstraints() *PurposeAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetConstraints() *PurposeAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPurposeAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPurposeAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPurposeAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPurposeAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPurposeAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPurposeAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPurposeAttribute) GetInfoHelpers() *PurposeAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetInfoHelpers() *PurposeAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPurposeAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPurposeAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPurposeAttribute) GetType() PurposeAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetType() PurposeAttributeAttributeWithCompositeIDType { + if a == nil { return PurposeAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPurposeAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDPurposeAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // InternalUserAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -2822,32 +2822,32 @@ func (i *InternalUserAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON return nil } -func (o *InternalUserAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (i *InternalUserAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if i == nil { return nil } - return o.HintText + return i.HintText } -func (o *InternalUserAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (i *InternalUserAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if i == nil { return nil } - return o.HintTextKey + return i.HintTextKey } -func (o *InternalUserAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (i *InternalUserAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if i == nil { return nil } - return o.HintCustomComponent + return i.HintCustomComponent } -func (o *InternalUserAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (i *InternalUserAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if i == nil { return nil } - return o.HintTooltipPlacement + return i.HintTooltipPlacement } type InternalUserAttributeAttributeWithCompositeIDType string @@ -2945,228 +2945,228 @@ func (a *AttributeWithCompositeIDInternalUserAttribute) UnmarshalJSON(data []byt return nil } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetConstraints() *InternalUserAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetConstraints() *InternalUserAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetInfoHelpers() *InternalUserAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetInfoHelpers() *InternalUserAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetType() InternalUserAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetType() InternalUserAttributeAttributeWithCompositeIDType { + if a == nil { return InternalUserAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDInternalUserAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AutomationAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -3217,32 +3217,32 @@ func (a *AutomationAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(d return nil } -func (o *AutomationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (a *AutomationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if a == nil { return nil } - return o.HintText + return a.HintText } -func (o *AutomationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (a *AutomationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if a == nil { return nil } - return o.HintTextKey + return a.HintTextKey } -func (o *AutomationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (a *AutomationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if a == nil { return nil } - return o.HintCustomComponent + return a.HintCustomComponent } -func (o *AutomationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (a *AutomationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if a == nil { return nil } - return o.HintTooltipPlacement + return a.HintTooltipPlacement } type AutomationAttributeAttributeWithCompositeIDType string @@ -3340,228 +3340,228 @@ func (a *AttributeWithCompositeIDAutomationAttribute) UnmarshalJSON(data []byte) return nil } -func (o *AttributeWithCompositeIDAutomationAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDAutomationAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDAutomationAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDAutomationAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDAutomationAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDAutomationAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDAutomationAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDAutomationAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDAutomationAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDAutomationAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDAutomationAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDAutomationAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDAutomationAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDAutomationAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDAutomationAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDAutomationAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDAutomationAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDAutomationAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDAutomationAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDAutomationAttribute) GetConstraints() *AutomationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetConstraints() *AutomationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDAutomationAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDAutomationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDAutomationAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDAutomationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDAutomationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDAutomationAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDAutomationAttribute) GetInfoHelpers() *AutomationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetInfoHelpers() *AutomationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDAutomationAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDAutomationAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDAutomationAttribute) GetType() AutomationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetType() AutomationAttributeAttributeWithCompositeIDType { + if a == nil { return AutomationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDAutomationAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDAutomationAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // InvitationEmailAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -3612,32 +3612,32 @@ func (i *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJ return nil } -func (o *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (i *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if i == nil { return nil } - return o.HintText + return i.HintText } -func (o *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (i *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if i == nil { return nil } - return o.HintTextKey + return i.HintTextKey } -func (o *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (i *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if i == nil { return nil } - return o.HintCustomComponent + return i.HintCustomComponent } -func (o *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (i *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if i == nil { return nil } - return o.HintTooltipPlacement + return i.HintTooltipPlacement } type InvitationEmailAttributeAttributeWithCompositeIDType string @@ -3735,228 +3735,228 @@ func (a *AttributeWithCompositeIDInvitationEmailAttribute) UnmarshalJSON(data [] return nil } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetConstraints() *InvitationEmailAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetConstraints() *InvitationEmailAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetInfoHelpers() *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetInfoHelpers() *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetType() InvitationEmailAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetType() InvitationEmailAttributeAttributeWithCompositeIDType { + if a == nil { return InvitationEmailAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDInvitationEmailAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // PartnerStatusAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -4007,32 +4007,32 @@ func (p *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSO return nil } -func (o *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PartnerStatusAttributeAttributeWithCompositeIDType string @@ -4130,228 +4130,228 @@ func (a *AttributeWithCompositeIDPartnerStatusAttribute) UnmarshalJSON(data []by return nil } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetConstraints() *PartnerStatusAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetConstraints() *PartnerStatusAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetInfoHelpers() *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetInfoHelpers() *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetType() PartnerStatusAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetType() PartnerStatusAttributeAttributeWithCompositeIDType { + if a == nil { return PartnerStatusAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDPartnerStatusAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // ComputedAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -4402,32 +4402,32 @@ func (c *ComputedAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(dat return nil } -func (o *ComputedAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (c *ComputedAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if c == nil { return nil } - return o.HintText + return c.HintText } -func (o *ComputedAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (c *ComputedAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if c == nil { return nil } - return o.HintTextKey + return c.HintTextKey } -func (o *ComputedAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (c *ComputedAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if c == nil { return nil } - return o.HintCustomComponent + return c.HintCustomComponent } -func (o *ComputedAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (c *ComputedAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if c == nil { return nil } - return o.HintTooltipPlacement + return c.HintTooltipPlacement } type ComputedAttributeAttributeWithCompositeIDType string @@ -4532,249 +4532,249 @@ func (a *AttributeWithCompositeIDComputedAttribute) UnmarshalJSON(data []byte) e return nil } -func (o *AttributeWithCompositeIDComputedAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDComputedAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDComputedAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDComputedAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDComputedAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDComputedAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDComputedAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDComputedAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDComputedAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDComputedAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDComputedAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDComputedAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDComputedAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDComputedAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDComputedAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDComputedAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDComputedAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDComputedAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDComputedAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDComputedAttribute) GetConstraints() *ComputedAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetConstraints() *ComputedAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDComputedAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDComputedAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDComputedAttribute) GetValueFormatter() string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetValueFormatter() string { + if a == nil { return "" } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDComputedAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDComputedAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDComputedAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDComputedAttribute) GetInfoHelpers() *ComputedAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetInfoHelpers() *ComputedAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDComputedAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDComputedAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDComputedAttribute) GetType() ComputedAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetType() ComputedAttributeAttributeWithCompositeIDType { + if a == nil { return ComputedAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDComputedAttribute) GetComputed() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetComputed() *bool { + if a == nil { return nil } - return o.Computed + return a.Computed } -func (o *AttributeWithCompositeIDComputedAttribute) GetAmountField() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetAmountField() *string { + if a == nil { return nil } - return o.AmountField + return a.AmountField } -func (o *AttributeWithCompositeIDComputedAttribute) GetCurrencyField() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetCurrencyField() *string { + if a == nil { return nil } - return o.CurrencyField + return a.CurrencyField } -func (o *AttributeWithCompositeIDComputedAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDComputedAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // FileAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -4825,32 +4825,32 @@ func (f *FileAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data [] return nil } -func (o *FileAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (f *FileAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if f == nil { return nil } - return o.HintText + return f.HintText } -func (o *FileAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (f *FileAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if f == nil { return nil } - return o.HintTextKey + return f.HintTextKey } -func (o *FileAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (f *FileAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if f == nil { return nil } - return o.HintCustomComponent + return f.HintCustomComponent } -func (o *FileAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (f *FileAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if f == nil { return nil } - return o.HintTooltipPlacement + return f.HintTooltipPlacement } type FileAttributeAttributeWithCompositeIDType string @@ -4987,263 +4987,263 @@ func (a *AttributeWithCompositeIDFileAttribute) UnmarshalJSON(data []byte) error return nil } -func (o *AttributeWithCompositeIDFileAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDFileAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDFileAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDFileAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDFileAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDFileAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDFileAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDFileAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDFileAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDFileAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDFileAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDFileAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDFileAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDFileAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDFileAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDFileAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDFileAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDFileAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDFileAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDFileAttribute) GetConstraints() *FileAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetConstraints() *FileAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDFileAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDFileAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDFileAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDFileAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDFileAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDFileAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDFileAttribute) GetInfoHelpers() *FileAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetInfoHelpers() *FileAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDFileAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDFileAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDFileAttribute) GetType() FileAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetType() FileAttributeAttributeWithCompositeIDType { + if a == nil { return FileAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDFileAttribute) GetMultiple() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetMultiple() *bool { + if a == nil { return nil } - return o.Multiple + return a.Multiple } -func (o *AttributeWithCompositeIDFileAttribute) GetAllowedExtensions() []string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetAllowedExtensions() []string { + if a == nil { return nil } - return o.AllowedExtensions + return a.AllowedExtensions } -func (o *AttributeWithCompositeIDFileAttribute) GetDisplayImagesLandscaped() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetDisplayImagesLandscaped() *bool { + if a == nil { return nil } - return o.DisplayImagesLandscaped + return a.DisplayImagesLandscaped } -func (o *AttributeWithCompositeIDFileAttribute) GetEnableDescription() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetEnableDescription() *bool { + if a == nil { return nil } - return o.EnableDescription + return a.EnableDescription } -func (o *AttributeWithCompositeIDFileAttribute) GetDefaultAccessControl() *FileAttributeDefaultAccessControl { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetDefaultAccessControl() *FileAttributeDefaultAccessControl { + if a == nil { return nil } - return o.DefaultAccessControl + return a.DefaultAccessControl } -func (o *AttributeWithCompositeIDFileAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDFileAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // OrderedListAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -5417,228 +5417,228 @@ func (a *AttributeWithCompositeIDOrderedListAttribute) UnmarshalJSON(data []byte return nil } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetConstraints() *OrderedListAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetConstraints() *OrderedListAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetInfoHelpers() *OrderedListAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetInfoHelpers() *OrderedListAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetType() OrderedListAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetType() OrderedListAttributeAttributeWithCompositeIDType { + if a == nil { return OrderedListAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDOrderedListAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // InternalAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -5689,32 +5689,32 @@ func (i *InternalAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(dat return nil } -func (o *InternalAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (i *InternalAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if i == nil { return nil } - return o.HintText + return i.HintText } -func (o *InternalAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (i *InternalAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if i == nil { return nil } - return o.HintTextKey + return i.HintTextKey } -func (o *InternalAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (i *InternalAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if i == nil { return nil } - return o.HintCustomComponent + return i.HintCustomComponent } -func (o *InternalAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (i *InternalAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if i == nil { return nil } - return o.HintTooltipPlacement + return i.HintTooltipPlacement } type InternalAttributeAttributeWithCompositeIDType string @@ -5812,228 +5812,228 @@ func (a *AttributeWithCompositeIDInternalAttribute) UnmarshalJSON(data []byte) e return nil } -func (o *AttributeWithCompositeIDInternalAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDInternalAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDInternalAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDInternalAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDInternalAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDInternalAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDInternalAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDInternalAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDInternalAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDInternalAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDInternalAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDInternalAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDInternalAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDInternalAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDInternalAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDInternalAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDInternalAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDInternalAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDInternalAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDInternalAttribute) GetConstraints() *InternalAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetConstraints() *InternalAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDInternalAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDInternalAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDInternalAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDInternalAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDInternalAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDInternalAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDInternalAttribute) GetInfoHelpers() *InternalAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetInfoHelpers() *InternalAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDInternalAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDInternalAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDInternalAttribute) GetType() InternalAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetType() InternalAttributeAttributeWithCompositeIDType { + if a == nil { return InternalAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDInternalAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDInternalAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // ConsentAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -6084,32 +6084,32 @@ func (c *ConsentAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data return nil } -func (o *ConsentAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (c *ConsentAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if c == nil { return nil } - return o.HintText + return c.HintText } -func (o *ConsentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (c *ConsentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if c == nil { return nil } - return o.HintTextKey + return c.HintTextKey } -func (o *ConsentAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (c *ConsentAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if c == nil { return nil } - return o.HintCustomComponent + return c.HintCustomComponent } -func (o *ConsentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (c *ConsentAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if c == nil { return nil } - return o.HintTooltipPlacement + return c.HintTooltipPlacement } type ConsentAttributeAttributeWithCompositeIDType string @@ -6209,242 +6209,242 @@ func (a *AttributeWithCompositeIDConsentAttribute) UnmarshalJSON(data []byte) er return nil } -func (o *AttributeWithCompositeIDConsentAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDConsentAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDConsentAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDConsentAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDConsentAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDConsentAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDConsentAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDConsentAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDConsentAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDConsentAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDConsentAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDConsentAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDConsentAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDConsentAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDConsentAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDConsentAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDConsentAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDConsentAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDConsentAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDConsentAttribute) GetConstraints() *ConsentAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetConstraints() *ConsentAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDConsentAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDConsentAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDConsentAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDConsentAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDConsentAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDConsentAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDConsentAttribute) GetInfoHelpers() *ConsentAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetInfoHelpers() *ConsentAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDConsentAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDConsentAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDConsentAttribute) GetType() ConsentAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetType() ConsentAttributeAttributeWithCompositeIDType { + if a == nil { return ConsentAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDConsentAttribute) GetTopic() string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetTopic() string { + if a == nil { return "" } - return o.Topic + return a.Topic } -func (o *AttributeWithCompositeIDConsentAttribute) GetIdentifiers() []string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetIdentifiers() []string { + if a == nil { return nil } - return o.Identifiers + return a.Identifiers } -func (o *AttributeWithCompositeIDConsentAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDConsentAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // NumberAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -6495,32 +6495,32 @@ func (n *NumberAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data return nil } -func (o *NumberAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (n *NumberAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if n == nil { return nil } - return o.HintText + return n.HintText } -func (o *NumberAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (n *NumberAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if n == nil { return nil } - return o.HintTextKey + return n.HintTextKey } -func (o *NumberAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (n *NumberAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if n == nil { return nil } - return o.HintCustomComponent + return n.HintCustomComponent } -func (o *NumberAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (n *NumberAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if n == nil { return nil } - return o.HintTooltipPlacement + return n.HintTooltipPlacement } type NumberAttributeAttributeWithCompositeIDType string @@ -6621,242 +6621,242 @@ func (a *AttributeWithCompositeIDNumberAttribute) UnmarshalJSON(data []byte) err return nil } -func (o *AttributeWithCompositeIDNumberAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDNumberAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDNumberAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDNumberAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDNumberAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDNumberAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDNumberAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDNumberAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDNumberAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDNumberAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDNumberAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDNumberAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDNumberAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDNumberAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDNumberAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDNumberAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDNumberAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDNumberAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDNumberAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDNumberAttribute) GetConstraints() *NumberAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetConstraints() *NumberAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDNumberAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDNumberAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDNumberAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDNumberAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDNumberAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDNumberAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDNumberAttribute) GetInfoHelpers() *NumberAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetInfoHelpers() *NumberAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDNumberAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDNumberAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDNumberAttribute) GetType() NumberAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetType() NumberAttributeAttributeWithCompositeIDType { + if a == nil { return NumberAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDNumberAttribute) GetFormat() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetFormat() *string { + if a == nil { return nil } - return o.Format + return a.Format } -func (o *AttributeWithCompositeIDNumberAttribute) GetShowSeparator() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetShowSeparator() *bool { + if a == nil { return nil } - return o.ShowSeparator + return a.ShowSeparator } -func (o *AttributeWithCompositeIDNumberAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDNumberAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // MessageEmailAddressAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -6907,32 +6907,32 @@ func (m *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers) Unmars return nil } -func (o *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (m *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if m == nil { return nil } - return o.HintText + return m.HintText } -func (o *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (m *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if m == nil { return nil } - return o.HintTextKey + return m.HintTextKey } -func (o *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (m *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if m == nil { return nil } - return o.HintCustomComponent + return m.HintCustomComponent } -func (o *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (m *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if m == nil { return nil } - return o.HintTooltipPlacement + return m.HintTooltipPlacement } type MessageEmailAddressAttributeAttributeWithCompositeIDType string @@ -7033,249 +7033,249 @@ func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) UnmarshalJSON(dat return nil } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetConstraints() *MessageEmailAddressAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetConstraints() *MessageEmailAddressAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetInfoHelpers() *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetInfoHelpers() *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetType() MessageEmailAddressAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetType() MessageEmailAddressAttributeAttributeWithCompositeIDType { + if a == nil { return MessageEmailAddressAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetAddress() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetAddress() *string { + if a == nil { return nil } - return o.Address + return a.Address } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetSendStatus() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetSendStatus() *string { + if a == nil { return nil } - return o.SendStatus + return a.SendStatus } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetEmailType() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetEmailType() *string { + if a == nil { return nil } - return o.EmailType + return a.EmailType } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDMessageEmailAddressAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // TagsAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -7326,32 +7326,32 @@ func (t *TagsAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data [] return nil } -func (o *TagsAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (t *TagsAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if t == nil { return nil } - return o.HintText + return t.HintText } -func (o *TagsAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (t *TagsAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if t == nil { return nil } - return o.HintTextKey + return t.HintTextKey } -func (o *TagsAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (t *TagsAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if t == nil { return nil } - return o.HintCustomComponent + return t.HintCustomComponent } -func (o *TagsAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (t *TagsAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if t == nil { return nil } - return o.HintTooltipPlacement + return t.HintTooltipPlacement } type TagsAttributeAttributeWithCompositeIDType string @@ -7451,242 +7451,242 @@ func (a *AttributeWithCompositeIDTagsAttribute) UnmarshalJSON(data []byte) error return nil } -func (o *AttributeWithCompositeIDTagsAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDTagsAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDTagsAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDTagsAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDTagsAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDTagsAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDTagsAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDTagsAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDTagsAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDTagsAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDTagsAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDTagsAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDTagsAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDTagsAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDTagsAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDTagsAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDTagsAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDTagsAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDTagsAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDTagsAttribute) GetConstraints() *TagsAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetConstraints() *TagsAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDTagsAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDTagsAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDTagsAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDTagsAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDTagsAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDTagsAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDTagsAttribute) GetInfoHelpers() *TagsAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetInfoHelpers() *TagsAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDTagsAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDTagsAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDTagsAttribute) GetType() TagsAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetType() TagsAttributeAttributeWithCompositeIDType { + if a == nil { return TagsAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDTagsAttribute) GetOptions() []string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetOptions() []string { + if a == nil { return nil } - return o.Options + return a.Options } -func (o *AttributeWithCompositeIDTagsAttribute) GetSuggestions() []string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetSuggestions() []string { + if a == nil { return nil } - return o.Suggestions + return a.Suggestions } -func (o *AttributeWithCompositeIDTagsAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDTagsAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // CurrencyAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -7737,32 +7737,32 @@ func (c *CurrencyAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(dat return nil } -func (o *CurrencyAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (c *CurrencyAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if c == nil { return nil } - return o.HintText + return c.HintText } -func (o *CurrencyAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (c *CurrencyAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if c == nil { return nil } - return o.HintTextKey + return c.HintTextKey } -func (o *CurrencyAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (c *CurrencyAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if c == nil { return nil } - return o.HintCustomComponent + return c.HintCustomComponent } -func (o *CurrencyAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (c *CurrencyAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if c == nil { return nil } - return o.HintTooltipPlacement + return c.HintTooltipPlacement } type CurrencyAttributeAttributeWithCompositeIDType string @@ -7807,32 +7807,32 @@ func (c *Currency1) UnmarshalJSON(data []byte) error { return nil } -func (o *Currency1) GetCode() string { - if o == nil { +func (c *Currency1) GetCode() string { + if c == nil { return "" } - return o.Code + return c.Code } -func (o *Currency1) GetDescription() string { - if o == nil { +func (c *Currency1) GetDescription() string { + if c == nil { return "" } - return o.Description + return c.Description } -func (o *Currency1) GetSymbol() string { - if o == nil { +func (c *Currency1) GetSymbol() string { + if c == nil { return "" } - return o.Symbol + return c.Symbol } -func (o *Currency1) GetFlag() *string { - if o == nil { +func (c *Currency1) GetFlag() *string { + if c == nil { return nil } - return o.Flag + return c.Flag } type CurrencyAttributeCurrencyType string @@ -7842,7 +7842,7 @@ const ( ) type CurrencyAttributeCurrency struct { - Currency1 *Currency1 `queryParam:"inline" name:"currency"` + Currency1 *Currency1 `queryParam:"inline,name=currency"` Type CurrencyAttributeCurrencyType } @@ -7858,10 +7858,32 @@ func CreateCurrencyAttributeCurrencyCurrency1(currency1 Currency1) CurrencyAttri func (u *CurrencyAttributeCurrency) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var currency1 Currency1 = Currency1{} if err := utils.UnmarshalJSON(data, ¤cy1, "", true, nil); err == nil { - u.Currency1 = ¤cy1 - u.Type = CurrencyAttributeCurrencyTypeCurrency1 + candidates = append(candidates, utils.UnionCandidate{ + Type: CurrencyAttributeCurrencyTypeCurrency1, + Value: ¤cy1, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CurrencyAttributeCurrency", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CurrencyAttributeCurrency", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(CurrencyAttributeCurrencyType) + switch best.Type { + case CurrencyAttributeCurrencyTypeCurrency1: + u.Currency1 = best.Value.(*Currency1) return nil } @@ -7951,242 +7973,242 @@ func (a *AttributeWithCompositeIDCurrencyAttribute) UnmarshalJSON(data []byte) e return nil } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetConstraints() *CurrencyAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetConstraints() *CurrencyAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetInfoHelpers() *CurrencyAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetInfoHelpers() *CurrencyAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetType() CurrencyAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetType() CurrencyAttributeAttributeWithCompositeIDType { + if a == nil { return CurrencyAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetCurrencySelectorOnly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetCurrencySelectorOnly() *bool { + if a == nil { return nil } - return o.CurrencySelectorOnly + return a.CurrencySelectorOnly } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetCurrency() []CurrencyAttributeCurrency { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetCurrency() []CurrencyAttributeCurrency { + if a == nil { return []CurrencyAttributeCurrency{} } - return o.Currency + return a.Currency } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDCurrencyAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // PaymentMethodRelationAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -8237,32 +8259,32 @@ func (p *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers) Unma return nil } -func (o *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PaymentMethodRelationAttributeAttributeWithCompositeIDType string @@ -8360,228 +8382,228 @@ func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) UnmarshalJSON(d return nil } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetConstraints() *PaymentMethodRelationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetConstraints() *PaymentMethodRelationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetInfoHelpers() *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetInfoHelpers() *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetType() PaymentMethodRelationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetType() PaymentMethodRelationAttributeAttributeWithCompositeIDType { + if a == nil { return PaymentMethodRelationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AddressRelationAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -8632,32 +8654,32 @@ func (a *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJ return nil } -func (o *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (a *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if a == nil { return nil } - return o.HintText + return a.HintText } -func (o *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (a *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if a == nil { return nil } - return o.HintTextKey + return a.HintTextKey } -func (o *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (a *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if a == nil { return nil } - return o.HintCustomComponent + return a.HintCustomComponent } -func (o *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (a *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if a == nil { return nil } - return o.HintTooltipPlacement + return a.HintTooltipPlacement } type AddressRelationAttributeAttributeWithCompositeIDType string @@ -8777,235 +8799,235 @@ func (a *AttributeWithCompositeIDAddressRelationAttribute) UnmarshalJSON(data [] return nil } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetConstraints() *AddressRelationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetConstraints() *AddressRelationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetInfoHelpers() *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetInfoHelpers() *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetType() AddressRelationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetType() AddressRelationAttributeAttributeWithCompositeIDType { + if a == nil { return AddressRelationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetDefaultAddressFields() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetDefaultAddressFields() []string { + if a == nil { return nil } - return o.DefaultAddressFields + return a.DefaultAddressFields } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDAddressRelationAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AddressAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -9056,32 +9078,32 @@ func (a *AddressAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data return nil } -func (o *AddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (a *AddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if a == nil { return nil } - return o.HintText + return a.HintText } -func (o *AddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (a *AddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if a == nil { return nil } - return o.HintTextKey + return a.HintTextKey } -func (o *AddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (a *AddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if a == nil { return nil } - return o.HintCustomComponent + return a.HintCustomComponent } -func (o *AddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (a *AddressAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if a == nil { return nil } - return o.HintTooltipPlacement + return a.HintTooltipPlacement } type AddressAttributeAttributeWithCompositeIDType string @@ -9201,235 +9223,235 @@ func (a *AttributeWithCompositeIDAddressAttribute) UnmarshalJSON(data []byte) er return nil } -func (o *AttributeWithCompositeIDAddressAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDAddressAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDAddressAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDAddressAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDAddressAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDAddressAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDAddressAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDAddressAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDAddressAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDAddressAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDAddressAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDAddressAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDAddressAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDAddressAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDAddressAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDAddressAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDAddressAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDAddressAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDAddressAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDAddressAttribute) GetConstraints() *AddressAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetConstraints() *AddressAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDAddressAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDAddressAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDAddressAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDAddressAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDAddressAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDAddressAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDAddressAttribute) GetInfoHelpers() *AddressAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetInfoHelpers() *AddressAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDAddressAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDAddressAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDAddressAttribute) GetType() AddressAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetType() AddressAttributeAttributeWithCompositeIDType { + if a == nil { return AddressAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDAddressAttribute) GetDefaultAddressFields() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetDefaultAddressFields() []string { + if a == nil { return nil } - return o.DefaultAddressFields + return a.DefaultAddressFields } -func (o *AttributeWithCompositeIDAddressAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDAddressAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // UserRelationAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -9480,32 +9502,32 @@ func (u *UserRelationAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON return nil } -func (o *UserRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (u *UserRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if u == nil { return nil } - return o.HintText + return u.HintText } -func (o *UserRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (u *UserRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if u == nil { return nil } - return o.HintTextKey + return u.HintTextKey } -func (o *UserRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (u *UserRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if u == nil { return nil } - return o.HintCustomComponent + return u.HintCustomComponent } -func (o *UserRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (u *UserRelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if u == nil { return nil } - return o.HintTooltipPlacement + return u.HintTooltipPlacement } type UserRelationAttributeAttributeWithCompositeIDType string @@ -9604,235 +9626,235 @@ func (a *AttributeWithCompositeIDUserRelationAttribute) UnmarshalJSON(data []byt return nil } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetConstraints() *UserRelationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetConstraints() *UserRelationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetInfoHelpers() *UserRelationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetInfoHelpers() *UserRelationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetType() UserRelationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetType() UserRelationAttributeAttributeWithCompositeIDType { + if a == nil { return UserRelationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetMultiple() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetMultiple() *bool { + if a == nil { return nil } - return o.Multiple + return a.Multiple } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDUserRelationAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // RelationAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -9883,32 +9905,32 @@ func (r *RelationAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(dat return nil } -func (o *RelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (r *RelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if r == nil { return nil } - return o.HintText + return r.HintText } -func (o *RelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (r *RelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if r == nil { return nil } - return o.HintTextKey + return r.HintTextKey } -func (o *RelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (r *RelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if r == nil { return nil } - return o.HintCustomComponent + return r.HintCustomComponent } -func (o *RelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (r *RelationAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if r == nil { return nil } - return o.HintTooltipPlacement + return r.HintTooltipPlacement } type RelationAttributeAttributeWithCompositeIDType string @@ -10020,17 +10042,17 @@ func (r RelationAttributeRelationPickerFilter) MarshalJSON() ([]byte, error) { } func (r *RelationAttributeRelationPickerFilter) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, []string{"q"}); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *RelationAttributeRelationPickerFilter) GetQ() *string { - if o == nil { +func (r *RelationAttributeRelationPickerFilter) GetQ() *string { + if r == nil { return nil } - return o.Q + return r.Q } // RelationAttributeActionType - The action type. Currently supported actions: @@ -10101,46 +10123,46 @@ func (r *RelationAttributeActions) UnmarshalJSON(data []byte) error { return nil } -func (o *RelationAttributeActions) GetActionType() *RelationAttributeActionType { - if o == nil { +func (r *RelationAttributeActions) GetActionType() *RelationAttributeActionType { + if r == nil { return nil } - return o.ActionType + return r.ActionType } -func (o *RelationAttributeActions) GetLabel() *string { - if o == nil { +func (r *RelationAttributeActions) GetLabel() *string { + if r == nil { return nil } - return o.Label + return r.Label } -func (o *RelationAttributeActions) GetDefault() *bool { - if o == nil { +func (r *RelationAttributeActions) GetDefault() *bool { + if r == nil { return nil } - return o.Default + return r.Default } -func (o *RelationAttributeActions) GetFeatureFlag() *string { - if o == nil { +func (r *RelationAttributeActions) GetFeatureFlag() *string { + if r == nil { return nil } - return o.FeatureFlag + return r.FeatureFlag } -func (o *RelationAttributeActions) GetSettingsFlag() []SettingFlag { - if o == nil { +func (r *RelationAttributeActions) GetSettingsFlag() []SettingFlag { + if r == nil { return nil } - return o.SettingsFlag + return r.SettingsFlag } -func (o *RelationAttributeActions) GetNewEntityItem() any { - if o == nil { +func (r *RelationAttributeActions) GetNewEntityItem() any { + if r == nil { return nil } - return o.NewEntityItem + return r.NewEntityItem } type RelationAttributeDrawerSize string @@ -10180,8 +10202,8 @@ const ( ) type RelationAttributeSummaryFields struct { - Str *string `queryParam:"inline" name:"summary_fields"` - SummaryField *SummaryField `queryParam:"inline" name:"summary_fields"` + Str *string `queryParam:"inline,name=summary_fields"` + SummaryField *SummaryField `queryParam:"inline,name=summary_fields"` Type RelationAttributeSummaryFieldsType } @@ -10206,17 +10228,43 @@ func CreateRelationAttributeSummaryFieldsSummaryField(summaryField SummaryField) func (u *RelationAttributeSummaryFields) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { + candidates = append(candidates, utils.UnionCandidate{ + Type: RelationAttributeSummaryFieldsTypeStr, + Value: &str, + }) + } + var summaryField SummaryField = SummaryField{} if err := utils.UnmarshalJSON(data, &summaryField, "", true, nil); err == nil { - u.SummaryField = &summaryField - u.Type = RelationAttributeSummaryFieldsTypeSummaryField - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: RelationAttributeSummaryFieldsTypeSummaryField, + Value: &summaryField, + }) } - var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = RelationAttributeSummaryFieldsTypeStr + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for RelationAttributeSummaryFields", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for RelationAttributeSummaryFields", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(RelationAttributeSummaryFieldsType) + switch best.Type { + case RelationAttributeSummaryFieldsTypeStr: + u.Str = best.Value.(*string) + return nil + case RelationAttributeSummaryFieldsTypeSummaryField: + u.SummaryField = best.Value.(*SummaryField) return nil } @@ -10326,326 +10374,326 @@ func (a *AttributeWithCompositeIDRelationAttribute) UnmarshalJSON(data []byte) e return nil } -func (o *AttributeWithCompositeIDRelationAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDRelationAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDRelationAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDRelationAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDRelationAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDRelationAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDRelationAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDRelationAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDRelationAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDRelationAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDRelationAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDRelationAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDRelationAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDRelationAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDRelationAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDRelationAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDRelationAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDRelationAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDRelationAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDRelationAttribute) GetConstraints() *RelationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetConstraints() *RelationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDRelationAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDRelationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDRelationAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDRelationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDRelationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDRelationAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDRelationAttribute) GetInfoHelpers() *RelationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetInfoHelpers() *RelationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDRelationAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDRelationAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDRelationAttribute) GetType() RelationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetType() RelationAttributeAttributeWithCompositeIDType { + if a == nil { return RelationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDRelationAttribute) GetRelationType() *RelationAttributeRelationType { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetRelationType() *RelationAttributeRelationType { + if a == nil { return nil } - return o.RelationType + return a.RelationType } -func (o *AttributeWithCompositeIDRelationAttribute) GetReverseAttributes() map[string]string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetReverseAttributes() map[string]string { + if a == nil { return nil } - return o.ReverseAttributes + return a.ReverseAttributes } -func (o *AttributeWithCompositeIDRelationAttribute) GetRelationAffinityMode() *RelationAttributeRelationAffinityMode { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetRelationAffinityMode() *RelationAttributeRelationAffinityMode { + if a == nil { return nil } - return o.RelationAffinityMode + return a.RelationAffinityMode } -func (o *AttributeWithCompositeIDRelationAttribute) GetEnableRelationPicker() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetEnableRelationPicker() *bool { + if a == nil { return nil } - return o.EnableRelationPicker + return a.EnableRelationPicker } -func (o *AttributeWithCompositeIDRelationAttribute) GetEditMode() *RelationAttributeEditMode { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetEditMode() *RelationAttributeEditMode { + if a == nil { return nil } - return o.EditMode + return a.EditMode } -func (o *AttributeWithCompositeIDRelationAttribute) GetDetailsViewModeEnabled() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetDetailsViewModeEnabled() *bool { + if a == nil { return nil } - return o.DetailsViewModeEnabled + return a.DetailsViewModeEnabled } -func (o *AttributeWithCompositeIDRelationAttribute) GetRelationPickerFilter() *RelationAttributeRelationPickerFilter { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetRelationPickerFilter() *RelationAttributeRelationPickerFilter { + if a == nil { return nil } - return o.RelationPickerFilter + return a.RelationPickerFilter } -func (o *AttributeWithCompositeIDRelationAttribute) GetActions() []RelationAttributeActions { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetActions() []RelationAttributeActions { + if a == nil { return nil } - return o.Actions + return a.Actions } -func (o *AttributeWithCompositeIDRelationAttribute) GetDrawerSize() *RelationAttributeDrawerSize { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetDrawerSize() *RelationAttributeDrawerSize { + if a == nil { return nil } - return o.DrawerSize + return a.DrawerSize } -func (o *AttributeWithCompositeIDRelationAttribute) GetSummaryFields() []RelationAttributeSummaryFields { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetSummaryFields() []RelationAttributeSummaryFields { + if a == nil { return nil } - return o.SummaryFields + return a.SummaryFields } -func (o *AttributeWithCompositeIDRelationAttribute) GetAllowedSchemas() []string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetAllowedSchemas() []string { + if a == nil { return nil } - return o.AllowedSchemas + return a.AllowedSchemas } -func (o *AttributeWithCompositeIDRelationAttribute) GetEnableRelationTags() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetEnableRelationTags() *bool { + if a == nil { return nil } - return o.EnableRelationTags + return a.EnableRelationTags } -func (o *AttributeWithCompositeIDRelationAttribute) GetAddButtonLabel() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetAddButtonLabel() *string { + if a == nil { return nil } - return o.AddButtonLabel + return a.AddButtonLabel } -func (o *AttributeWithCompositeIDRelationAttribute) GetSearchPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetSearchPlaceholder() *string { + if a == nil { return nil } - return o.SearchPlaceholder + return a.SearchPlaceholder } -func (o *AttributeWithCompositeIDRelationAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDRelationAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // SequenceAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -10696,32 +10744,32 @@ func (s *SequenceAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(dat return nil } -func (o *SequenceAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (s *SequenceAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if s == nil { return nil } - return o.HintText + return s.HintText } -func (o *SequenceAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (s *SequenceAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if s == nil { return nil } - return o.HintTextKey + return s.HintTextKey } -func (o *SequenceAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (s *SequenceAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if s == nil { return nil } - return o.HintCustomComponent + return s.HintCustomComponent } -func (o *SequenceAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (s *SequenceAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if s == nil { return nil } - return o.HintTooltipPlacement + return s.HintTooltipPlacement } type SequenceAttributeAttributeWithCompositeIDType string @@ -10822,242 +10870,242 @@ func (a *AttributeWithCompositeIDSequenceAttribute) UnmarshalJSON(data []byte) e return nil } -func (o *AttributeWithCompositeIDSequenceAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDSequenceAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDSequenceAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDSequenceAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDSequenceAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDSequenceAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDSequenceAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDSequenceAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDSequenceAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDSequenceAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDSequenceAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDSequenceAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDSequenceAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDSequenceAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDSequenceAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDSequenceAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDSequenceAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDSequenceAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDSequenceAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDSequenceAttribute) GetConstraints() *SequenceAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetConstraints() *SequenceAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDSequenceAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDSequenceAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDSequenceAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDSequenceAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDSequenceAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDSequenceAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDSequenceAttribute) GetInfoHelpers() *SequenceAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetInfoHelpers() *SequenceAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDSequenceAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDSequenceAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDSequenceAttribute) GetType() SequenceAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetType() SequenceAttributeAttributeWithCompositeIDType { + if a == nil { return SequenceAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDSequenceAttribute) GetPrefix() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetPrefix() *string { + if a == nil { return nil } - return o.Prefix + return a.Prefix } -func (o *AttributeWithCompositeIDSequenceAttribute) GetStartNumber() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetStartNumber() *int64 { + if a == nil { return nil } - return o.StartNumber + return a.StartNumber } -func (o *AttributeWithCompositeIDSequenceAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDSequenceAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // StatusAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -11108,32 +11156,32 @@ func (s *StatusAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data return nil } -func (o *StatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (s *StatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if s == nil { return nil } - return o.HintText + return s.HintText } -func (o *StatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (s *StatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if s == nil { return nil } - return o.HintTextKey + return s.HintTextKey } -func (o *StatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (s *StatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if s == nil { return nil } - return o.HintCustomComponent + return s.HintCustomComponent } -func (o *StatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (s *StatusAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if s == nil { return nil } - return o.HintTooltipPlacement + return s.HintTooltipPlacement } type StatusAttributeAttributeWithCompositeIDType string @@ -11177,18 +11225,18 @@ func (s *StatusAttributeOptions2) UnmarshalJSON(data []byte) error { return nil } -func (o *StatusAttributeOptions2) GetValue() string { - if o == nil { +func (s *StatusAttributeOptions2) GetValue() string { + if s == nil { return "" } - return o.Value + return s.Value } -func (o *StatusAttributeOptions2) GetTitle() *string { - if o == nil { +func (s *StatusAttributeOptions2) GetTitle() *string { + if s == nil { return nil } - return o.Title + return s.Title } type StatusAttributeAttributeWithCompositeIDOptionsType string @@ -11199,8 +11247,8 @@ const ( ) type StatusAttributeAttributeWithCompositeIDOptions struct { - Str *string `queryParam:"inline" name:"options"` - StatusAttributeOptions2 *StatusAttributeOptions2 `queryParam:"inline" name:"options"` + Str *string `queryParam:"inline,name=options"` + StatusAttributeOptions2 *StatusAttributeOptions2 `queryParam:"inline,name=options"` Type StatusAttributeAttributeWithCompositeIDOptionsType } @@ -11225,17 +11273,43 @@ func CreateStatusAttributeAttributeWithCompositeIDOptionsStatusAttributeOptions2 func (u *StatusAttributeAttributeWithCompositeIDOptions) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var statusAttributeOptions2 StatusAttributeOptions2 = StatusAttributeOptions2{} if err := utils.UnmarshalJSON(data, &statusAttributeOptions2, "", true, nil); err == nil { - u.StatusAttributeOptions2 = &statusAttributeOptions2 - u.Type = StatusAttributeAttributeWithCompositeIDOptionsTypeStatusAttributeOptions2 - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: StatusAttributeAttributeWithCompositeIDOptionsTypeStatusAttributeOptions2, + Value: &statusAttributeOptions2, + }) } var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = StatusAttributeAttributeWithCompositeIDOptionsTypeStr + candidates = append(candidates, utils.UnionCandidate{ + Type: StatusAttributeAttributeWithCompositeIDOptionsTypeStr, + Value: &str, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for StatusAttributeAttributeWithCompositeIDOptions", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for StatusAttributeAttributeWithCompositeIDOptions", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(StatusAttributeAttributeWithCompositeIDOptionsType) + switch best.Type { + case StatusAttributeAttributeWithCompositeIDOptionsTypeStatusAttributeOptions2: + u.StatusAttributeOptions2 = best.Value.(*StatusAttributeOptions2) + return nil + case StatusAttributeAttributeWithCompositeIDOptionsTypeStr: + u.Str = best.Value.(*string) return nil } @@ -11327,235 +11401,235 @@ func (a *AttributeWithCompositeIDStatusAttribute) UnmarshalJSON(data []byte) err return nil } -func (o *AttributeWithCompositeIDStatusAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDStatusAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDStatusAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDStatusAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDStatusAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDStatusAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDStatusAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDStatusAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDStatusAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDStatusAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDStatusAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDStatusAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDStatusAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDStatusAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDStatusAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDStatusAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDStatusAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDStatusAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDStatusAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDStatusAttribute) GetConstraints() *StatusAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetConstraints() *StatusAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDStatusAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDStatusAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDStatusAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDStatusAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDStatusAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDStatusAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDStatusAttribute) GetInfoHelpers() *StatusAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetInfoHelpers() *StatusAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDStatusAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDStatusAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDStatusAttribute) GetType() StatusAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetType() StatusAttributeAttributeWithCompositeIDType { + if a == nil { return StatusAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDStatusAttribute) GetOptions() []*StatusAttributeAttributeWithCompositeIDOptions { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetOptions() []*StatusAttributeAttributeWithCompositeIDOptions { + if a == nil { return nil } - return o.Options + return a.Options } -func (o *AttributeWithCompositeIDStatusAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDStatusAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // MultiSelectAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -11606,32 +11680,32 @@ func (m *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON( return nil } -func (o *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (m *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if m == nil { return nil } - return o.HintText + return m.HintText } -func (o *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (m *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if m == nil { return nil } - return o.HintTextKey + return m.HintTextKey } -func (o *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (m *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if m == nil { return nil } - return o.HintCustomComponent + return m.HintCustomComponent } -func (o *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (m *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if m == nil { return nil } - return o.HintTooltipPlacement + return m.HintTooltipPlacement } type MultiSelectAttributeAttributeWithCompositeIDType string @@ -11676,18 +11750,18 @@ func (m *MultiSelectAttributeOptions2) UnmarshalJSON(data []byte) error { return nil } -func (o *MultiSelectAttributeOptions2) GetValue() string { - if o == nil { +func (m *MultiSelectAttributeOptions2) GetValue() string { + if m == nil { return "" } - return o.Value + return m.Value } -func (o *MultiSelectAttributeOptions2) GetTitle() *string { - if o == nil { +func (m *MultiSelectAttributeOptions2) GetTitle() *string { + if m == nil { return nil } - return o.Title + return m.Title } type MultiSelectAttributeOptionsType string @@ -11698,8 +11772,8 @@ const ( ) type MultiSelectAttributeOptions struct { - Str *string `queryParam:"inline" name:"options"` - MultiSelectAttributeOptions2 *MultiSelectAttributeOptions2 `queryParam:"inline" name:"options"` + Str *string `queryParam:"inline,name=options"` + MultiSelectAttributeOptions2 *MultiSelectAttributeOptions2 `queryParam:"inline,name=options"` Type MultiSelectAttributeOptionsType } @@ -11724,17 +11798,43 @@ func CreateMultiSelectAttributeOptionsMultiSelectAttributeOptions2(multiSelectAt func (u *MultiSelectAttributeOptions) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var multiSelectAttributeOptions2 MultiSelectAttributeOptions2 = MultiSelectAttributeOptions2{} if err := utils.UnmarshalJSON(data, &multiSelectAttributeOptions2, "", true, nil); err == nil { - u.MultiSelectAttributeOptions2 = &multiSelectAttributeOptions2 - u.Type = MultiSelectAttributeOptionsTypeMultiSelectAttributeOptions2 - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: MultiSelectAttributeOptionsTypeMultiSelectAttributeOptions2, + Value: &multiSelectAttributeOptions2, + }) } var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = MultiSelectAttributeOptionsTypeStr + candidates = append(candidates, utils.UnionCandidate{ + Type: MultiSelectAttributeOptionsTypeStr, + Value: &str, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for MultiSelectAttributeOptions", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for MultiSelectAttributeOptions", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(MultiSelectAttributeOptionsType) + switch best.Type { + case MultiSelectAttributeOptionsTypeMultiSelectAttributeOptions2: + u.MultiSelectAttributeOptions2 = best.Value.(*MultiSelectAttributeOptions2) + return nil + case MultiSelectAttributeOptionsTypeStr: + u.Str = best.Value.(*string) return nil } @@ -11832,256 +11932,256 @@ func (a *AttributeWithCompositeIDMultiSelectAttribute) UnmarshalJSON(data []byte return nil } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetConstraints() *MultiSelectAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetConstraints() *MultiSelectAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetInfoHelpers() *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetInfoHelpers() *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetType() MultiSelectAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetType() MultiSelectAttributeAttributeWithCompositeIDType { + if a == nil { return MultiSelectAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetDisableCaseSensitive() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetDisableCaseSensitive() *bool { + if a == nil { return nil } - return o.DisableCaseSensitive + return a.DisableCaseSensitive } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetAllowExtraOptions() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetAllowExtraOptions() *bool { + if a == nil { return nil } - return o.AllowExtraOptions + return a.AllowExtraOptions } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetOptions() []*MultiSelectAttributeOptions { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetOptions() []*MultiSelectAttributeOptions { + if a == nil { return nil } - return o.Options + return a.Options } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetAllowAny() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetAllowAny() *bool { + if a == nil { return nil } - return o.AllowAny + return a.AllowAny } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDMultiSelectAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // SelectAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -12132,32 +12232,32 @@ func (s *SelectAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data return nil } -func (o *SelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (s *SelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if s == nil { return nil } - return o.HintText + return s.HintText } -func (o *SelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (s *SelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if s == nil { return nil } - return o.HintTextKey + return s.HintTextKey } -func (o *SelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (s *SelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if s == nil { return nil } - return o.HintCustomComponent + return s.HintCustomComponent } -func (o *SelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (s *SelectAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if s == nil { return nil } - return o.HintTooltipPlacement + return s.HintTooltipPlacement } type SelectAttributeAttributeWithCompositeIDType string @@ -12261,242 +12361,242 @@ func (a *AttributeWithCompositeIDSelectAttribute) UnmarshalJSON(data []byte) err return nil } -func (o *AttributeWithCompositeIDSelectAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDSelectAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDSelectAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDSelectAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDSelectAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDSelectAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDSelectAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDSelectAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDSelectAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDSelectAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDSelectAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDSelectAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDSelectAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDSelectAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDSelectAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDSelectAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDSelectAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDSelectAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDSelectAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDSelectAttribute) GetConstraints() *SelectAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetConstraints() *SelectAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDSelectAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDSelectAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDSelectAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDSelectAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDSelectAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDSelectAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDSelectAttribute) GetInfoHelpers() *SelectAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetInfoHelpers() *SelectAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDSelectAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDSelectAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDSelectAttribute) GetType() SelectAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetType() SelectAttributeAttributeWithCompositeIDType { + if a == nil { return SelectAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDSelectAttribute) GetOptions() any { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetOptions() any { + if a == nil { return nil } - return o.Options + return a.Options } -func (o *AttributeWithCompositeIDSelectAttribute) GetAllowAny() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetAllowAny() *bool { + if a == nil { return nil } - return o.AllowAny + return a.AllowAny } -func (o *AttributeWithCompositeIDSelectAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDSelectAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // BooleanAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -12547,32 +12647,32 @@ func (b *BooleanAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data return nil } -func (o *BooleanAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (b *BooleanAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if b == nil { return nil } - return o.HintText + return b.HintText } -func (o *BooleanAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (b *BooleanAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if b == nil { return nil } - return o.HintTextKey + return b.HintTextKey } -func (o *BooleanAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (b *BooleanAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if b == nil { return nil } - return o.HintCustomComponent + return b.HintCustomComponent } -func (o *BooleanAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (b *BooleanAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if b == nil { return nil } - return o.HintTooltipPlacement + return b.HintTooltipPlacement } type BooleanAttributeAttributeWithCompositeIDType string @@ -12697,235 +12797,235 @@ func (a *AttributeWithCompositeIDBooleanAttribute) UnmarshalJSON(data []byte) er return nil } -func (o *AttributeWithCompositeIDBooleanAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDBooleanAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDBooleanAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDBooleanAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDBooleanAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDBooleanAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDBooleanAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDBooleanAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDBooleanAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDBooleanAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDBooleanAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDBooleanAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDBooleanAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDBooleanAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDBooleanAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDBooleanAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDBooleanAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDBooleanAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDBooleanAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDBooleanAttribute) GetConstraints() *BooleanAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetConstraints() *BooleanAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDBooleanAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDBooleanAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDBooleanAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDBooleanAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDBooleanAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDBooleanAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDBooleanAttribute) GetInfoHelpers() *BooleanAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetInfoHelpers() *BooleanAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDBooleanAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDBooleanAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDBooleanAttribute) GetType() BooleanAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetType() BooleanAttributeAttributeWithCompositeIDType { + if a == nil { return BooleanAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDBooleanAttribute) GetDisplayType() *BooleanAttributeDisplayType { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetDisplayType() *BooleanAttributeDisplayType { + if a == nil { return nil } - return o.DisplayType + return a.DisplayType } -func (o *AttributeWithCompositeIDBooleanAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDBooleanAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // CountryAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -12976,32 +13076,32 @@ func (c *CountryAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data return nil } -func (o *CountryAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (c *CountryAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if c == nil { return nil } - return o.HintText + return c.HintText } -func (o *CountryAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (c *CountryAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if c == nil { return nil } - return o.HintTextKey + return c.HintTextKey } -func (o *CountryAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (c *CountryAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if c == nil { return nil } - return o.HintCustomComponent + return c.HintCustomComponent } -func (o *CountryAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (c *CountryAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if c == nil { return nil } - return o.HintTooltipPlacement + return c.HintTooltipPlacement } type CountryAttributeAttributeWithCompositeIDType string @@ -13099,228 +13199,228 @@ func (a *AttributeWithCompositeIDCountryAttribute) UnmarshalJSON(data []byte) er return nil } -func (o *AttributeWithCompositeIDCountryAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDCountryAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDCountryAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDCountryAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDCountryAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDCountryAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDCountryAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDCountryAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDCountryAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDCountryAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDCountryAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDCountryAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDCountryAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDCountryAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDCountryAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDCountryAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDCountryAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDCountryAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDCountryAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDCountryAttribute) GetConstraints() *CountryAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetConstraints() *CountryAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDCountryAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDCountryAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDCountryAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDCountryAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDCountryAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDCountryAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDCountryAttribute) GetInfoHelpers() *CountryAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetInfoHelpers() *CountryAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDCountryAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDCountryAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDCountryAttribute) GetType() CountryAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetType() CountryAttributeAttributeWithCompositeIDType { + if a == nil { return CountryAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDCountryAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDCountryAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // DateAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -13371,32 +13471,32 @@ func (d *DateAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data [] return nil } -func (o *DateAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (d *DateAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if d == nil { return nil } - return o.HintText + return d.HintText } -func (o *DateAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (d *DateAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if d == nil { return nil } - return o.HintTextKey + return d.HintTextKey } -func (o *DateAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (d *DateAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if d == nil { return nil } - return o.HintCustomComponent + return d.HintCustomComponent } -func (o *DateAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (d *DateAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if d == nil { return nil } - return o.HintTooltipPlacement + return d.HintTooltipPlacement } type DateAttributeAttributeWithCompositeIDType string @@ -13497,228 +13597,228 @@ func (a *AttributeWithCompositeIDDateAttribute) UnmarshalJSON(data []byte) error return nil } -func (o *AttributeWithCompositeIDDateAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDDateAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDDateAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDDateAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDDateAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDDateAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDDateAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDDateAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDDateAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDDateAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDDateAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDDateAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDDateAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDDateAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDDateAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDDateAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDDateAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDDateAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDDateAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDDateAttribute) GetConstraints() *DateAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetConstraints() *DateAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDDateAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDDateAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDDateAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDDateAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDDateAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDDateAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDDateAttribute) GetInfoHelpers() *DateAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetInfoHelpers() *DateAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDDateAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDDateAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDDateAttribute) GetType() DateAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetType() DateAttributeAttributeWithCompositeIDType { + if a == nil { return DateAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDDateAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDDateAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // LinkAttributeAttributeWithCompositeIDConstraints - A set of constraints applicable to the attribute. @@ -13769,32 +13869,32 @@ func (l *LinkAttributeAttributeWithCompositeIDInfoHelpers) UnmarshalJSON(data [] return nil } -func (o *LinkAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { - if o == nil { +func (l *LinkAttributeAttributeWithCompositeIDInfoHelpers) GetHintText() *string { + if l == nil { return nil } - return o.HintText + return l.HintText } -func (o *LinkAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (l *LinkAttributeAttributeWithCompositeIDInfoHelpers) GetHintTextKey() *string { + if l == nil { return nil } - return o.HintTextKey + return l.HintTextKey } -func (o *LinkAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (l *LinkAttributeAttributeWithCompositeIDInfoHelpers) GetHintCustomComponent() *string { + if l == nil { return nil } - return o.HintCustomComponent + return l.HintCustomComponent } -func (o *LinkAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (l *LinkAttributeAttributeWithCompositeIDInfoHelpers) GetHintTooltipPlacement() *string { + if l == nil { return nil } - return o.HintTooltipPlacement + return l.HintTooltipPlacement } type LinkAttributeAttributeWithCompositeIDType string @@ -13892,228 +13992,228 @@ func (a *AttributeWithCompositeIDLinkAttribute) UnmarshalJSON(data []byte) error return nil } -func (o *AttributeWithCompositeIDLinkAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDLinkAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDLinkAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDLinkAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDLinkAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDLinkAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDLinkAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDLinkAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDLinkAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDLinkAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDLinkAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDLinkAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDLinkAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDLinkAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDLinkAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDLinkAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDLinkAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDLinkAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDLinkAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDLinkAttribute) GetConstraints() *LinkAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetConstraints() *LinkAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDLinkAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDLinkAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDLinkAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDLinkAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDLinkAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDLinkAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDLinkAttribute) GetInfoHelpers() *LinkAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetInfoHelpers() *LinkAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDLinkAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDLinkAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDLinkAttribute) GetType() LinkAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetType() LinkAttributeAttributeWithCompositeIDType { + if a == nil { return LinkAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDLinkAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDLinkAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // TextAttributeConstraints - A set of constraints applicable to the attribute. @@ -14164,32 +14264,32 @@ func (t *TextAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *TextAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (t *TextAttributeInfoHelpers) GetHintText() *string { + if t == nil { return nil } - return o.HintText + return t.HintText } -func (o *TextAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (t *TextAttributeInfoHelpers) GetHintTextKey() *string { + if t == nil { return nil } - return o.HintTextKey + return t.HintTextKey } -func (o *TextAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (t *TextAttributeInfoHelpers) GetHintCustomComponent() *string { + if t == nil { return nil } - return o.HintCustomComponent + return t.HintCustomComponent } -func (o *TextAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (t *TextAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if t == nil { return nil } - return o.HintTooltipPlacement + return t.HintTooltipPlacement } type TextAttributeAttributeWithCompositeIDType string @@ -14290,249 +14390,249 @@ func (a *AttributeWithCompositeIDTextAttribute) UnmarshalJSON(data []byte) error return nil } -func (o *AttributeWithCompositeIDTextAttribute) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDTextAttribute) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDTextAttribute) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDTextAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDTextAttribute) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDTextAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDTextAttribute) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDTextAttribute) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDTextAttribute) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDTextAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDTextAttribute) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDTextAttribute) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDTextAttribute) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDTextAttribute) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDTextAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDTextAttribute) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDTextAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDTextAttribute) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDTextAttribute) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDTextAttribute) GetConstraints() *TextAttributeConstraints { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetConstraints() *TextAttributeConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDTextAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDTextAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDTextAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDTextAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDTextAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDTextAttribute) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDTextAttribute) GetInfoHelpers() *TextAttributeInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetInfoHelpers() *TextAttributeInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDTextAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDTextAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDTextAttribute) GetType() TextAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetType() TextAttributeAttributeWithCompositeIDType { + if a == nil { return TextAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDTextAttribute) GetMultiline() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetMultiline() *bool { + if a == nil { return nil } - return o.Multiline + return a.Multiline } -func (o *AttributeWithCompositeIDTextAttribute) GetRichText() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetRichText() *bool { + if a == nil { return nil } - return o.RichText + return a.RichText } -func (o *AttributeWithCompositeIDTextAttribute) GetRows() any { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetRows() any { + if a == nil { return nil } - return o.Rows + return a.Rows } -func (o *AttributeWithCompositeIDTextAttribute) GetCompositeID() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetCompositeID() *string { + if a == nil { return nil } - return o.CompositeID + return a.CompositeID } -func (o *AttributeWithCompositeIDTextAttribute) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttribute) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } type AttributeWithCompositeIDType string @@ -14576,40 +14676,40 @@ const ( // AttributeWithCompositeID - a readonly computed ID for the attribute including schema slug and the attribute ID type AttributeWithCompositeID struct { - AttributeWithCompositeIDTextAttribute *AttributeWithCompositeIDTextAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDLinkAttribute *AttributeWithCompositeIDLinkAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDDateAttribute *AttributeWithCompositeIDDateAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDCountryAttribute *AttributeWithCompositeIDCountryAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDBooleanAttribute *AttributeWithCompositeIDBooleanAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDSelectAttribute *AttributeWithCompositeIDSelectAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDMultiSelectAttribute *AttributeWithCompositeIDMultiSelectAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDStatusAttribute *AttributeWithCompositeIDStatusAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDSequenceAttribute *AttributeWithCompositeIDSequenceAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDRelationAttribute *AttributeWithCompositeIDRelationAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDUserRelationAttribute *AttributeWithCompositeIDUserRelationAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDAddressAttribute *AttributeWithCompositeIDAddressAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDAddressRelationAttribute *AttributeWithCompositeIDAddressRelationAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPaymentMethodRelationAttribute *AttributeWithCompositeIDPaymentMethodRelationAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDCurrencyAttribute *AttributeWithCompositeIDCurrencyAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDTagsAttribute *AttributeWithCompositeIDTagsAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDMessageEmailAddressAttribute *AttributeWithCompositeIDMessageEmailAddressAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDNumberAttribute *AttributeWithCompositeIDNumberAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDConsentAttribute *AttributeWithCompositeIDConsentAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDInternalAttribute *AttributeWithCompositeIDInternalAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDOrderedListAttribute *AttributeWithCompositeIDOrderedListAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDFileAttribute *AttributeWithCompositeIDFileAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDComputedAttribute *AttributeWithCompositeIDComputedAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPartnerStatusAttribute *AttributeWithCompositeIDPartnerStatusAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDInvitationEmailAttribute *AttributeWithCompositeIDInvitationEmailAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDAutomationAttribute *AttributeWithCompositeIDAutomationAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDInternalUserAttribute *AttributeWithCompositeIDInternalUserAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPurposeAttribute *AttributeWithCompositeIDPurposeAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPartnerOrganisationAttribute *AttributeWithCompositeIDPartnerOrganisationAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPortalAccessAttribute *AttributeWithCompositeIDPortalAccessAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPhoneAttribute *AttributeWithCompositeIDPhoneAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDEmailAttribute *AttributeWithCompositeIDEmailAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPaymentAttribute *AttributeWithCompositeIDPaymentAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPriceComponentAttribute *AttributeWithCompositeIDPriceComponentAttribute `queryParam:"inline" name:"AttributeWithCompositeID"` + AttributeWithCompositeIDTextAttribute *AttributeWithCompositeIDTextAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDLinkAttribute *AttributeWithCompositeIDLinkAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDDateAttribute *AttributeWithCompositeIDDateAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDCountryAttribute *AttributeWithCompositeIDCountryAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDBooleanAttribute *AttributeWithCompositeIDBooleanAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDSelectAttribute *AttributeWithCompositeIDSelectAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDMultiSelectAttribute *AttributeWithCompositeIDMultiSelectAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDStatusAttribute *AttributeWithCompositeIDStatusAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDSequenceAttribute *AttributeWithCompositeIDSequenceAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDRelationAttribute *AttributeWithCompositeIDRelationAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDUserRelationAttribute *AttributeWithCompositeIDUserRelationAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDAddressAttribute *AttributeWithCompositeIDAddressAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDAddressRelationAttribute *AttributeWithCompositeIDAddressRelationAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPaymentMethodRelationAttribute *AttributeWithCompositeIDPaymentMethodRelationAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDCurrencyAttribute *AttributeWithCompositeIDCurrencyAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDTagsAttribute *AttributeWithCompositeIDTagsAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDMessageEmailAddressAttribute *AttributeWithCompositeIDMessageEmailAddressAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDNumberAttribute *AttributeWithCompositeIDNumberAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDConsentAttribute *AttributeWithCompositeIDConsentAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDInternalAttribute *AttributeWithCompositeIDInternalAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDOrderedListAttribute *AttributeWithCompositeIDOrderedListAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDFileAttribute *AttributeWithCompositeIDFileAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDComputedAttribute *AttributeWithCompositeIDComputedAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPartnerStatusAttribute *AttributeWithCompositeIDPartnerStatusAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDInvitationEmailAttribute *AttributeWithCompositeIDInvitationEmailAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDAutomationAttribute *AttributeWithCompositeIDAutomationAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDInternalUserAttribute *AttributeWithCompositeIDInternalUserAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPurposeAttribute *AttributeWithCompositeIDPurposeAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPartnerOrganisationAttribute *AttributeWithCompositeIDPartnerOrganisationAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPortalAccessAttribute *AttributeWithCompositeIDPortalAccessAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPhoneAttribute *AttributeWithCompositeIDPhoneAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDEmailAttribute *AttributeWithCompositeIDEmailAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPaymentAttribute *AttributeWithCompositeIDPaymentAttribute `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPriceComponentAttribute *AttributeWithCompositeIDPriceComponentAttribute `queryParam:"inline,name=AttributeWithCompositeID"` Type AttributeWithCompositeIDType } @@ -14922,241 +15022,395 @@ func CreateAttributeWithCompositeIDAttributeWithCompositeIDPriceComponentAttribu func (u *AttributeWithCompositeID) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var attributeWithCompositeIDCurrencyAttribute AttributeWithCompositeIDCurrencyAttribute = AttributeWithCompositeIDCurrencyAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDCurrencyAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDCurrencyAttribute = &attributeWithCompositeIDCurrencyAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDCurrencyAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDCurrencyAttribute, + Value: &attributeWithCompositeIDCurrencyAttribute, + }) } var attributeWithCompositeIDConsentAttribute AttributeWithCompositeIDConsentAttribute = AttributeWithCompositeIDConsentAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDConsentAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDConsentAttribute = &attributeWithCompositeIDConsentAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDConsentAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDConsentAttribute, + Value: &attributeWithCompositeIDConsentAttribute, + }) } var attributeWithCompositeIDComputedAttribute AttributeWithCompositeIDComputedAttribute = AttributeWithCompositeIDComputedAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDComputedAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDComputedAttribute = &attributeWithCompositeIDComputedAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDComputedAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDComputedAttribute, + Value: &attributeWithCompositeIDComputedAttribute, + }) } var attributeWithCompositeIDTextAttribute AttributeWithCompositeIDTextAttribute = AttributeWithCompositeIDTextAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDTextAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDTextAttribute = &attributeWithCompositeIDTextAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDTextAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDTextAttribute, + Value: &attributeWithCompositeIDTextAttribute, + }) } var attributeWithCompositeIDLinkAttribute AttributeWithCompositeIDLinkAttribute = AttributeWithCompositeIDLinkAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDLinkAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDLinkAttribute = &attributeWithCompositeIDLinkAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDLinkAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDLinkAttribute, + Value: &attributeWithCompositeIDLinkAttribute, + }) } var attributeWithCompositeIDDateAttribute AttributeWithCompositeIDDateAttribute = AttributeWithCompositeIDDateAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDDateAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDDateAttribute = &attributeWithCompositeIDDateAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDDateAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDDateAttribute, + Value: &attributeWithCompositeIDDateAttribute, + }) } var attributeWithCompositeIDCountryAttribute AttributeWithCompositeIDCountryAttribute = AttributeWithCompositeIDCountryAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDCountryAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDCountryAttribute = &attributeWithCompositeIDCountryAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDCountryAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDCountryAttribute, + Value: &attributeWithCompositeIDCountryAttribute, + }) } var attributeWithCompositeIDBooleanAttribute AttributeWithCompositeIDBooleanAttribute = AttributeWithCompositeIDBooleanAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDBooleanAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDBooleanAttribute = &attributeWithCompositeIDBooleanAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDBooleanAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDBooleanAttribute, + Value: &attributeWithCompositeIDBooleanAttribute, + }) } var attributeWithCompositeIDSelectAttribute AttributeWithCompositeIDSelectAttribute = AttributeWithCompositeIDSelectAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDSelectAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDSelectAttribute = &attributeWithCompositeIDSelectAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDSelectAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDSelectAttribute, + Value: &attributeWithCompositeIDSelectAttribute, + }) } var attributeWithCompositeIDMultiSelectAttribute AttributeWithCompositeIDMultiSelectAttribute = AttributeWithCompositeIDMultiSelectAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDMultiSelectAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDMultiSelectAttribute = &attributeWithCompositeIDMultiSelectAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDMultiSelectAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDMultiSelectAttribute, + Value: &attributeWithCompositeIDMultiSelectAttribute, + }) } var attributeWithCompositeIDStatusAttribute AttributeWithCompositeIDStatusAttribute = AttributeWithCompositeIDStatusAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDStatusAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDStatusAttribute = &attributeWithCompositeIDStatusAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDStatusAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDStatusAttribute, + Value: &attributeWithCompositeIDStatusAttribute, + }) } var attributeWithCompositeIDSequenceAttribute AttributeWithCompositeIDSequenceAttribute = AttributeWithCompositeIDSequenceAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDSequenceAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDSequenceAttribute = &attributeWithCompositeIDSequenceAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDSequenceAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDSequenceAttribute, + Value: &attributeWithCompositeIDSequenceAttribute, + }) } var attributeWithCompositeIDRelationAttribute AttributeWithCompositeIDRelationAttribute = AttributeWithCompositeIDRelationAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDRelationAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDRelationAttribute = &attributeWithCompositeIDRelationAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDRelationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDRelationAttribute, + Value: &attributeWithCompositeIDRelationAttribute, + }) } var attributeWithCompositeIDUserRelationAttribute AttributeWithCompositeIDUserRelationAttribute = AttributeWithCompositeIDUserRelationAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDUserRelationAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDUserRelationAttribute = &attributeWithCompositeIDUserRelationAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDUserRelationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDUserRelationAttribute, + Value: &attributeWithCompositeIDUserRelationAttribute, + }) } var attributeWithCompositeIDAddressAttribute AttributeWithCompositeIDAddressAttribute = AttributeWithCompositeIDAddressAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDAddressAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDAddressAttribute = &attributeWithCompositeIDAddressAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDAddressAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDAddressAttribute, + Value: &attributeWithCompositeIDAddressAttribute, + }) } var attributeWithCompositeIDAddressRelationAttribute AttributeWithCompositeIDAddressRelationAttribute = AttributeWithCompositeIDAddressRelationAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDAddressRelationAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDAddressRelationAttribute = &attributeWithCompositeIDAddressRelationAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDAddressRelationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDAddressRelationAttribute, + Value: &attributeWithCompositeIDAddressRelationAttribute, + }) } var attributeWithCompositeIDPaymentMethodRelationAttribute AttributeWithCompositeIDPaymentMethodRelationAttribute = AttributeWithCompositeIDPaymentMethodRelationAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPaymentMethodRelationAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDPaymentMethodRelationAttribute = &attributeWithCompositeIDPaymentMethodRelationAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDPaymentMethodRelationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDPaymentMethodRelationAttribute, + Value: &attributeWithCompositeIDPaymentMethodRelationAttribute, + }) } var attributeWithCompositeIDTagsAttribute AttributeWithCompositeIDTagsAttribute = AttributeWithCompositeIDTagsAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDTagsAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDTagsAttribute = &attributeWithCompositeIDTagsAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDTagsAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDTagsAttribute, + Value: &attributeWithCompositeIDTagsAttribute, + }) } var attributeWithCompositeIDMessageEmailAddressAttribute AttributeWithCompositeIDMessageEmailAddressAttribute = AttributeWithCompositeIDMessageEmailAddressAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDMessageEmailAddressAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDMessageEmailAddressAttribute = &attributeWithCompositeIDMessageEmailAddressAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDMessageEmailAddressAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDMessageEmailAddressAttribute, + Value: &attributeWithCompositeIDMessageEmailAddressAttribute, + }) } var attributeWithCompositeIDNumberAttribute AttributeWithCompositeIDNumberAttribute = AttributeWithCompositeIDNumberAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDNumberAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDNumberAttribute = &attributeWithCompositeIDNumberAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDNumberAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDNumberAttribute, + Value: &attributeWithCompositeIDNumberAttribute, + }) } var attributeWithCompositeIDInternalAttribute AttributeWithCompositeIDInternalAttribute = AttributeWithCompositeIDInternalAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDInternalAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDInternalAttribute = &attributeWithCompositeIDInternalAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDInternalAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDInternalAttribute, + Value: &attributeWithCompositeIDInternalAttribute, + }) } var attributeWithCompositeIDOrderedListAttribute AttributeWithCompositeIDOrderedListAttribute = AttributeWithCompositeIDOrderedListAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDOrderedListAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDOrderedListAttribute = &attributeWithCompositeIDOrderedListAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDOrderedListAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDOrderedListAttribute, + Value: &attributeWithCompositeIDOrderedListAttribute, + }) } var attributeWithCompositeIDFileAttribute AttributeWithCompositeIDFileAttribute = AttributeWithCompositeIDFileAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDFileAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDFileAttribute = &attributeWithCompositeIDFileAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDFileAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDFileAttribute, + Value: &attributeWithCompositeIDFileAttribute, + }) } var attributeWithCompositeIDPartnerStatusAttribute AttributeWithCompositeIDPartnerStatusAttribute = AttributeWithCompositeIDPartnerStatusAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPartnerStatusAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDPartnerStatusAttribute = &attributeWithCompositeIDPartnerStatusAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDPartnerStatusAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDPartnerStatusAttribute, + Value: &attributeWithCompositeIDPartnerStatusAttribute, + }) } var attributeWithCompositeIDInvitationEmailAttribute AttributeWithCompositeIDInvitationEmailAttribute = AttributeWithCompositeIDInvitationEmailAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDInvitationEmailAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDInvitationEmailAttribute = &attributeWithCompositeIDInvitationEmailAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDInvitationEmailAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDInvitationEmailAttribute, + Value: &attributeWithCompositeIDInvitationEmailAttribute, + }) } var attributeWithCompositeIDAutomationAttribute AttributeWithCompositeIDAutomationAttribute = AttributeWithCompositeIDAutomationAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDAutomationAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDAutomationAttribute = &attributeWithCompositeIDAutomationAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDAutomationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDAutomationAttribute, + Value: &attributeWithCompositeIDAutomationAttribute, + }) } var attributeWithCompositeIDInternalUserAttribute AttributeWithCompositeIDInternalUserAttribute = AttributeWithCompositeIDInternalUserAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDInternalUserAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDInternalUserAttribute = &attributeWithCompositeIDInternalUserAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDInternalUserAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDInternalUserAttribute, + Value: &attributeWithCompositeIDInternalUserAttribute, + }) } var attributeWithCompositeIDPurposeAttribute AttributeWithCompositeIDPurposeAttribute = AttributeWithCompositeIDPurposeAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPurposeAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDPurposeAttribute = &attributeWithCompositeIDPurposeAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDPurposeAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDPurposeAttribute, + Value: &attributeWithCompositeIDPurposeAttribute, + }) } var attributeWithCompositeIDPartnerOrganisationAttribute AttributeWithCompositeIDPartnerOrganisationAttribute = AttributeWithCompositeIDPartnerOrganisationAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPartnerOrganisationAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDPartnerOrganisationAttribute = &attributeWithCompositeIDPartnerOrganisationAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDPartnerOrganisationAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDPartnerOrganisationAttribute, + Value: &attributeWithCompositeIDPartnerOrganisationAttribute, + }) } var attributeWithCompositeIDPortalAccessAttribute AttributeWithCompositeIDPortalAccessAttribute = AttributeWithCompositeIDPortalAccessAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPortalAccessAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDPortalAccessAttribute = &attributeWithCompositeIDPortalAccessAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDPortalAccessAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDPortalAccessAttribute, + Value: &attributeWithCompositeIDPortalAccessAttribute, + }) } var attributeWithCompositeIDPhoneAttribute AttributeWithCompositeIDPhoneAttribute = AttributeWithCompositeIDPhoneAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPhoneAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDPhoneAttribute = &attributeWithCompositeIDPhoneAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDPhoneAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDPhoneAttribute, + Value: &attributeWithCompositeIDPhoneAttribute, + }) } var attributeWithCompositeIDEmailAttribute AttributeWithCompositeIDEmailAttribute = AttributeWithCompositeIDEmailAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDEmailAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDEmailAttribute = &attributeWithCompositeIDEmailAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDEmailAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDEmailAttribute, + Value: &attributeWithCompositeIDEmailAttribute, + }) } var attributeWithCompositeIDPaymentAttribute AttributeWithCompositeIDPaymentAttribute = AttributeWithCompositeIDPaymentAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPaymentAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDPaymentAttribute = &attributeWithCompositeIDPaymentAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDPaymentAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDPaymentAttribute, + Value: &attributeWithCompositeIDPaymentAttribute, + }) } var attributeWithCompositeIDPriceComponentAttribute AttributeWithCompositeIDPriceComponentAttribute = AttributeWithCompositeIDPriceComponentAttribute{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPriceComponentAttribute, "", true, nil); err == nil { - u.AttributeWithCompositeIDPriceComponentAttribute = &attributeWithCompositeIDPriceComponentAttribute - u.Type = AttributeWithCompositeIDTypeAttributeWithCompositeIDPriceComponentAttribute + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDTypeAttributeWithCompositeIDPriceComponentAttribute, + Value: &attributeWithCompositeIDPriceComponentAttribute, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for AttributeWithCompositeID", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for AttributeWithCompositeID", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(AttributeWithCompositeIDType) + switch best.Type { + case AttributeWithCompositeIDTypeAttributeWithCompositeIDCurrencyAttribute: + u.AttributeWithCompositeIDCurrencyAttribute = best.Value.(*AttributeWithCompositeIDCurrencyAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDConsentAttribute: + u.AttributeWithCompositeIDConsentAttribute = best.Value.(*AttributeWithCompositeIDConsentAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDComputedAttribute: + u.AttributeWithCompositeIDComputedAttribute = best.Value.(*AttributeWithCompositeIDComputedAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDTextAttribute: + u.AttributeWithCompositeIDTextAttribute = best.Value.(*AttributeWithCompositeIDTextAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDLinkAttribute: + u.AttributeWithCompositeIDLinkAttribute = best.Value.(*AttributeWithCompositeIDLinkAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDDateAttribute: + u.AttributeWithCompositeIDDateAttribute = best.Value.(*AttributeWithCompositeIDDateAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDCountryAttribute: + u.AttributeWithCompositeIDCountryAttribute = best.Value.(*AttributeWithCompositeIDCountryAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDBooleanAttribute: + u.AttributeWithCompositeIDBooleanAttribute = best.Value.(*AttributeWithCompositeIDBooleanAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDSelectAttribute: + u.AttributeWithCompositeIDSelectAttribute = best.Value.(*AttributeWithCompositeIDSelectAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDMultiSelectAttribute: + u.AttributeWithCompositeIDMultiSelectAttribute = best.Value.(*AttributeWithCompositeIDMultiSelectAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDStatusAttribute: + u.AttributeWithCompositeIDStatusAttribute = best.Value.(*AttributeWithCompositeIDStatusAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDSequenceAttribute: + u.AttributeWithCompositeIDSequenceAttribute = best.Value.(*AttributeWithCompositeIDSequenceAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDRelationAttribute: + u.AttributeWithCompositeIDRelationAttribute = best.Value.(*AttributeWithCompositeIDRelationAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDUserRelationAttribute: + u.AttributeWithCompositeIDUserRelationAttribute = best.Value.(*AttributeWithCompositeIDUserRelationAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDAddressAttribute: + u.AttributeWithCompositeIDAddressAttribute = best.Value.(*AttributeWithCompositeIDAddressAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDAddressRelationAttribute: + u.AttributeWithCompositeIDAddressRelationAttribute = best.Value.(*AttributeWithCompositeIDAddressRelationAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDPaymentMethodRelationAttribute: + u.AttributeWithCompositeIDPaymentMethodRelationAttribute = best.Value.(*AttributeWithCompositeIDPaymentMethodRelationAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDTagsAttribute: + u.AttributeWithCompositeIDTagsAttribute = best.Value.(*AttributeWithCompositeIDTagsAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDMessageEmailAddressAttribute: + u.AttributeWithCompositeIDMessageEmailAddressAttribute = best.Value.(*AttributeWithCompositeIDMessageEmailAddressAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDNumberAttribute: + u.AttributeWithCompositeIDNumberAttribute = best.Value.(*AttributeWithCompositeIDNumberAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDInternalAttribute: + u.AttributeWithCompositeIDInternalAttribute = best.Value.(*AttributeWithCompositeIDInternalAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDOrderedListAttribute: + u.AttributeWithCompositeIDOrderedListAttribute = best.Value.(*AttributeWithCompositeIDOrderedListAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDFileAttribute: + u.AttributeWithCompositeIDFileAttribute = best.Value.(*AttributeWithCompositeIDFileAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDPartnerStatusAttribute: + u.AttributeWithCompositeIDPartnerStatusAttribute = best.Value.(*AttributeWithCompositeIDPartnerStatusAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDInvitationEmailAttribute: + u.AttributeWithCompositeIDInvitationEmailAttribute = best.Value.(*AttributeWithCompositeIDInvitationEmailAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDAutomationAttribute: + u.AttributeWithCompositeIDAutomationAttribute = best.Value.(*AttributeWithCompositeIDAutomationAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDInternalUserAttribute: + u.AttributeWithCompositeIDInternalUserAttribute = best.Value.(*AttributeWithCompositeIDInternalUserAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDPurposeAttribute: + u.AttributeWithCompositeIDPurposeAttribute = best.Value.(*AttributeWithCompositeIDPurposeAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDPartnerOrganisationAttribute: + u.AttributeWithCompositeIDPartnerOrganisationAttribute = best.Value.(*AttributeWithCompositeIDPartnerOrganisationAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDPortalAccessAttribute: + u.AttributeWithCompositeIDPortalAccessAttribute = best.Value.(*AttributeWithCompositeIDPortalAccessAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDPhoneAttribute: + u.AttributeWithCompositeIDPhoneAttribute = best.Value.(*AttributeWithCompositeIDPhoneAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDEmailAttribute: + u.AttributeWithCompositeIDEmailAttribute = best.Value.(*AttributeWithCompositeIDEmailAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDPaymentAttribute: + u.AttributeWithCompositeIDPaymentAttribute = best.Value.(*AttributeWithCompositeIDPaymentAttribute) + return nil + case AttributeWithCompositeIDTypeAttributeWithCompositeIDPriceComponentAttribute: + u.AttributeWithCompositeIDPriceComponentAttribute = best.Value.(*AttributeWithCompositeIDPriceComponentAttribute) return nil } @@ -15374,221 +15628,221 @@ func (a *AttributeWithCompositeIDPriceComponentAttributeInput) UnmarshalJSON(dat return nil } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetConstraints() *PriceComponentAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetConstraints() *PriceComponentAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetInfoHelpers() *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetInfoHelpers() *PriceComponentAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetType() PriceComponentAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetType() PriceComponentAttributeAttributeWithCompositeIDType { + if a == nil { return PriceComponentAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPriceComponentAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPriceComponentAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDPaymentAttributeInput - Payment method @@ -15662,221 +15916,221 @@ func (a *AttributeWithCompositeIDPaymentAttributeInput) UnmarshalJSON(data []byt return nil } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetConstraints() *PaymentAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetConstraints() *PaymentAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetInfoHelpers() *PaymentAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetInfoHelpers() *PaymentAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetType() PaymentAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetType() PaymentAttributeAttributeWithCompositeIDType { + if a == nil { return PaymentAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPaymentAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDEmailAttributeInput - Email address @@ -15950,221 +16204,221 @@ func (a *AttributeWithCompositeIDEmailAttributeInput) UnmarshalJSON(data []byte) return nil } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetConstraints() *EmailAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetConstraints() *EmailAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetInfoHelpers() *EmailAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetInfoHelpers() *EmailAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetType() EmailAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetType() EmailAttributeAttributeWithCompositeIDType { + if a == nil { return EmailAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDEmailAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDEmailAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDPhoneAttributeInput - Phone number @@ -16238,221 +16492,221 @@ func (a *AttributeWithCompositeIDPhoneAttributeInput) UnmarshalJSON(data []byte) return nil } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetConstraints() *PhoneAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetConstraints() *PhoneAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetInfoHelpers() *PhoneAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetInfoHelpers() *PhoneAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetType() PhoneAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetType() PhoneAttributeAttributeWithCompositeIDType { + if a == nil { return PhoneAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPhoneAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPhoneAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDPortalAccessAttributeInput - Portal access configuration @@ -16526,221 +16780,221 @@ func (a *AttributeWithCompositeIDPortalAccessAttributeInput) UnmarshalJSON(data return nil } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetConstraints() *PortalAccessAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetConstraints() *PortalAccessAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetInfoHelpers() *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetInfoHelpers() *PortalAccessAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetType() PortalAccessAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetType() PortalAccessAttributeAttributeWithCompositeIDType { + if a == nil { return PortalAccessAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPortalAccessAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPortalAccessAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDPartnerOrganisationAttributeInput - Shared Partner Organisations @@ -16814,221 +17068,221 @@ func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) UnmarshalJSO return nil } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetConstraints() *PartnerOrganisationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetConstraints() *PartnerOrganisationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetInfoHelpers() *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetInfoHelpers() *PartnerOrganisationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetType() PartnerOrganisationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetType() PartnerOrganisationAttributeAttributeWithCompositeIDType { + if a == nil { return PartnerOrganisationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerOrganisationAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDPurposeAttributeInput - Entity Taxonomy @@ -17102,221 +17356,221 @@ func (a *AttributeWithCompositeIDPurposeAttributeInput) UnmarshalJSON(data []byt return nil } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetConstraints() *PurposeAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetConstraints() *PurposeAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetInfoHelpers() *PurposeAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetInfoHelpers() *PurposeAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetType() PurposeAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetType() PurposeAttributeAttributeWithCompositeIDType { + if a == nil { return PurposeAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPurposeAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPurposeAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDInternalUserAttributeInput - Epilot internal user info @@ -17390,221 +17644,221 @@ func (a *AttributeWithCompositeIDInternalUserAttributeInput) UnmarshalJSON(data return nil } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetConstraints() *InternalUserAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetConstraints() *InternalUserAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetInfoHelpers() *InternalUserAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetInfoHelpers() *InternalUserAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetType() InternalUserAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetType() InternalUserAttributeAttributeWithCompositeIDType { + if a == nil { return InternalUserAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDInternalUserAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalUserAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDAutomationAttributeInput - Automation entity @@ -17678,221 +17932,221 @@ func (a *AttributeWithCompositeIDAutomationAttributeInput) UnmarshalJSON(data [] return nil } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetConstraints() *AutomationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetConstraints() *AutomationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetInfoHelpers() *AutomationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetInfoHelpers() *AutomationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetType() AutomationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetType() AutomationAttributeAttributeWithCompositeIDType { + if a == nil { return AutomationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDAutomationAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDAutomationAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDInvitationEmailAttributeInput - Email address for send invitation @@ -17966,221 +18220,221 @@ func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) UnmarshalJSON(da return nil } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetConstraints() *InvitationEmailAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetConstraints() *InvitationEmailAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetInfoHelpers() *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetInfoHelpers() *InvitationEmailAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetType() InvitationEmailAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetType() InvitationEmailAttributeAttributeWithCompositeIDType { + if a == nil { return InvitationEmailAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDInvitationEmailAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDInvitationEmailAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDPartnerStatusAttributeInput - Partner Status @@ -18254,221 +18508,221 @@ func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) UnmarshalJSON(data return nil } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetConstraints() *PartnerStatusAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetConstraints() *PartnerStatusAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetInfoHelpers() *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetInfoHelpers() *PartnerStatusAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetType() PartnerStatusAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetType() PartnerStatusAttributeAttributeWithCompositeIDType { + if a == nil { return PartnerStatusAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPartnerStatusAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPartnerStatusAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDComputedAttributeInput - An attribute that is computed from the entity data. For more details on how to use them, check the docs [here](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/5642977476/How+To+Computed+Schema+Attributes) @@ -18549,242 +18803,242 @@ func (a *AttributeWithCompositeIDComputedAttributeInput) UnmarshalJSON(data []by return nil } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetConstraints() *ComputedAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetConstraints() *ComputedAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetValueFormatter() string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetValueFormatter() string { + if a == nil { return "" } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetInfoHelpers() *ComputedAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetInfoHelpers() *ComputedAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetType() ComputedAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetType() ComputedAttributeAttributeWithCompositeIDType { + if a == nil { return ComputedAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetComputed() *bool { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetComputed() *bool { + if a == nil { return nil } - return o.Computed + return a.Computed } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetAmountField() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetAmountField() *string { + if a == nil { return nil } - return o.AmountField + return a.AmountField } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetCurrencyField() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetCurrencyField() *string { + if a == nil { return nil } - return o.CurrencyField + return a.CurrencyField } -func (o *AttributeWithCompositeIDComputedAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDComputedAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDFileAttributeInput - File or Image Attachment @@ -18868,256 +19122,256 @@ func (a *AttributeWithCompositeIDFileAttributeInput) UnmarshalJSON(data []byte) return nil } -func (o *AttributeWithCompositeIDFileAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDFileAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDFileAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDFileAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDFileAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDFileAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDFileAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDFileAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDFileAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDFileAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDFileAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDFileAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDFileAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDFileAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDFileAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDFileAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDFileAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDFileAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDFileAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDFileAttributeInput) GetConstraints() *FileAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetConstraints() *FileAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDFileAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDFileAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDFileAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDFileAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDFileAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDFileAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDFileAttributeInput) GetInfoHelpers() *FileAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetInfoHelpers() *FileAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDFileAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDFileAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDFileAttributeInput) GetType() FileAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetType() FileAttributeAttributeWithCompositeIDType { + if a == nil { return FileAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDFileAttributeInput) GetMultiple() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetMultiple() *bool { + if a == nil { return nil } - return o.Multiple + return a.Multiple } -func (o *AttributeWithCompositeIDFileAttributeInput) GetAllowedExtensions() []string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetAllowedExtensions() []string { + if a == nil { return nil } - return o.AllowedExtensions + return a.AllowedExtensions } -func (o *AttributeWithCompositeIDFileAttributeInput) GetDisplayImagesLandscaped() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetDisplayImagesLandscaped() *bool { + if a == nil { return nil } - return o.DisplayImagesLandscaped + return a.DisplayImagesLandscaped } -func (o *AttributeWithCompositeIDFileAttributeInput) GetEnableDescription() *bool { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetEnableDescription() *bool { + if a == nil { return nil } - return o.EnableDescription + return a.EnableDescription } -func (o *AttributeWithCompositeIDFileAttributeInput) GetDefaultAccessControl() *FileAttributeDefaultAccessControl { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetDefaultAccessControl() *FileAttributeDefaultAccessControl { + if a == nil { return nil } - return o.DefaultAccessControl + return a.DefaultAccessControl } -func (o *AttributeWithCompositeIDFileAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDFileAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDOrderedListAttributeInput - Type of attribute to render N number of ordered fields @@ -19191,221 +19445,221 @@ func (a *AttributeWithCompositeIDOrderedListAttributeInput) UnmarshalJSON(data [ return nil } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetConstraints() *OrderedListAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetConstraints() *OrderedListAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetInfoHelpers() *OrderedListAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetInfoHelpers() *OrderedListAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetType() OrderedListAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetType() OrderedListAttributeAttributeWithCompositeIDType { + if a == nil { return OrderedListAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDOrderedListAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDOrderedListAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDInternalAttributeInput - No UI representation @@ -19479,221 +19733,221 @@ func (a *AttributeWithCompositeIDInternalAttributeInput) UnmarshalJSON(data []by return nil } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetConstraints() *InternalAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetConstraints() *InternalAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetInfoHelpers() *InternalAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetInfoHelpers() *InternalAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetType() InternalAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetType() InternalAttributeAttributeWithCompositeIDType { + if a == nil { return InternalAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDInternalAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDInternalAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDConsentAttributeInput - Consent Management @@ -19769,235 +20023,235 @@ func (a *AttributeWithCompositeIDConsentAttributeInput) UnmarshalJSON(data []byt return nil } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetConstraints() *ConsentAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetConstraints() *ConsentAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetInfoHelpers() *ConsentAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetInfoHelpers() *ConsentAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetType() ConsentAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetType() ConsentAttributeAttributeWithCompositeIDType { + if a == nil { return ConsentAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetTopic() string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetTopic() string { + if a == nil { return "" } - return o.Topic + return a.Topic } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetIdentifiers() []string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetIdentifiers() []string { + if a == nil { return nil } - return o.Identifiers + return a.Identifiers } -func (o *AttributeWithCompositeIDConsentAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDConsentAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDNumberAttributeInput - Numeric input @@ -20074,235 +20328,235 @@ func (a *AttributeWithCompositeIDNumberAttributeInput) UnmarshalJSON(data []byte return nil } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetConstraints() *NumberAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetConstraints() *NumberAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetInfoHelpers() *NumberAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetInfoHelpers() *NumberAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetType() NumberAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetType() NumberAttributeAttributeWithCompositeIDType { + if a == nil { return NumberAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetFormat() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetFormat() *string { + if a == nil { return nil } - return o.Format + return a.Format } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetShowSeparator() *bool { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetShowSeparator() *bool { + if a == nil { return nil } - return o.ShowSeparator + return a.ShowSeparator } -func (o *AttributeWithCompositeIDNumberAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDNumberAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDMessageEmailAddressAttributeInput - Message emil address @@ -20379,242 +20633,242 @@ func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) UnmarshalJSO return nil } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetConstraints() *MessageEmailAddressAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetConstraints() *MessageEmailAddressAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetInfoHelpers() *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetInfoHelpers() *MessageEmailAddressAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetType() MessageEmailAddressAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetType() MessageEmailAddressAttributeAttributeWithCompositeIDType { + if a == nil { return MessageEmailAddressAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetAddress() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetAddress() *string { + if a == nil { return nil } - return o.Address + return a.Address } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetSendStatus() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetSendStatus() *string { + if a == nil { return nil } - return o.SendStatus + return a.SendStatus } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetEmailType() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetEmailType() *string { + if a == nil { return nil } - return o.EmailType + return a.EmailType } -func (o *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDMessageEmailAddressAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDTagsAttributeInput - Tags @@ -20690,235 +20944,235 @@ func (a *AttributeWithCompositeIDTagsAttributeInput) UnmarshalJSON(data []byte) return nil } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetConstraints() *TagsAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetConstraints() *TagsAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetInfoHelpers() *TagsAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetInfoHelpers() *TagsAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetType() TagsAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetType() TagsAttributeAttributeWithCompositeIDType { + if a == nil { return TagsAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetOptions() []string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetOptions() []string { + if a == nil { return nil } - return o.Options + return a.Options } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetSuggestions() []string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetSuggestions() []string { + if a == nil { return nil } - return o.Suggestions + return a.Suggestions } -func (o *AttributeWithCompositeIDTagsAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDTagsAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDCurrencyAttributeInput - Currency input @@ -20995,235 +21249,235 @@ func (a *AttributeWithCompositeIDCurrencyAttributeInput) UnmarshalJSON(data []by return nil } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetConstraints() *CurrencyAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetConstraints() *CurrencyAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetInfoHelpers() *CurrencyAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetInfoHelpers() *CurrencyAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetType() CurrencyAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetType() CurrencyAttributeAttributeWithCompositeIDType { + if a == nil { return CurrencyAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetCurrencySelectorOnly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetCurrencySelectorOnly() *bool { + if a == nil { return nil } - return o.CurrencySelectorOnly + return a.CurrencySelectorOnly } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetCurrency() []CurrencyAttributeCurrency { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetCurrency() []CurrencyAttributeCurrency { + if a == nil { return []CurrencyAttributeCurrency{} } - return o.Currency + return a.Currency } -func (o *AttributeWithCompositeIDCurrencyAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDCurrencyAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDPaymentMethodRelationAttributeInput - Reference to a payment method attribute of another entity @@ -21297,221 +21551,221 @@ func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) UnmarshalJ return nil } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetConstraints() *PaymentMethodRelationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetConstraints() *PaymentMethodRelationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetInfoHelpers() *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetInfoHelpers() *PaymentMethodRelationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetType() PaymentMethodRelationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetType() PaymentMethodRelationAttributeAttributeWithCompositeIDType { + if a == nil { return PaymentMethodRelationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDPaymentMethodRelationAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDAddressRelationAttributeInput - Reference to an address attribute of another entity @@ -21607,228 +21861,228 @@ func (a *AttributeWithCompositeIDAddressRelationAttributeInput) UnmarshalJSON(da return nil } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetConstraints() *AddressRelationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetConstraints() *AddressRelationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetInfoHelpers() *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetInfoHelpers() *AddressRelationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetType() AddressRelationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetType() AddressRelationAttributeAttributeWithCompositeIDType { + if a == nil { return AddressRelationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetDefaultAddressFields() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetDefaultAddressFields() []string { + if a == nil { return nil } - return o.DefaultAddressFields + return a.DefaultAddressFields } -func (o *AttributeWithCompositeIDAddressRelationAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressRelationAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDAddressAttributeInput - Address attribute @@ -21924,228 +22178,228 @@ func (a *AttributeWithCompositeIDAddressAttributeInput) UnmarshalJSON(data []byt return nil } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetConstraints() *AddressAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetConstraints() *AddressAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetInfoHelpers() *AddressAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetInfoHelpers() *AddressAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetType() AddressAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetType() AddressAttributeAttributeWithCompositeIDType { + if a == nil { return AddressAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetDefaultAddressFields() []string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetDefaultAddressFields() []string { + if a == nil { return nil } - return o.DefaultAddressFields + return a.DefaultAddressFields } -func (o *AttributeWithCompositeIDAddressAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDAddressAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDUserRelationAttributeInput - User Relationship @@ -22220,228 +22474,228 @@ func (a *AttributeWithCompositeIDUserRelationAttributeInput) UnmarshalJSON(data return nil } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetConstraints() *UserRelationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetConstraints() *UserRelationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetInfoHelpers() *UserRelationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetInfoHelpers() *UserRelationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetType() UserRelationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetType() UserRelationAttributeAttributeWithCompositeIDType { + if a == nil { return UserRelationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetMultiple() *bool { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetMultiple() *bool { + if a == nil { return nil } - return o.Multiple + return a.Multiple } -func (o *AttributeWithCompositeIDUserRelationAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDUserRelationAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDRelationAttributeInput - Entity Relationship @@ -22534,319 +22788,319 @@ func (a *AttributeWithCompositeIDRelationAttributeInput) UnmarshalJSON(data []by return nil } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetConstraints() *RelationAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetConstraints() *RelationAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetInfoHelpers() *RelationAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetInfoHelpers() *RelationAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetType() RelationAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetType() RelationAttributeAttributeWithCompositeIDType { + if a == nil { return RelationAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetRelationType() *RelationAttributeRelationType { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetRelationType() *RelationAttributeRelationType { + if a == nil { return nil } - return o.RelationType + return a.RelationType } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetReverseAttributes() map[string]string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetReverseAttributes() map[string]string { + if a == nil { return nil } - return o.ReverseAttributes + return a.ReverseAttributes } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetRelationAffinityMode() *RelationAttributeRelationAffinityMode { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetRelationAffinityMode() *RelationAttributeRelationAffinityMode { + if a == nil { return nil } - return o.RelationAffinityMode + return a.RelationAffinityMode } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetEnableRelationPicker() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetEnableRelationPicker() *bool { + if a == nil { return nil } - return o.EnableRelationPicker + return a.EnableRelationPicker } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetEditMode() *RelationAttributeEditMode { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetEditMode() *RelationAttributeEditMode { + if a == nil { return nil } - return o.EditMode + return a.EditMode } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetDetailsViewModeEnabled() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetDetailsViewModeEnabled() *bool { + if a == nil { return nil } - return o.DetailsViewModeEnabled + return a.DetailsViewModeEnabled } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetRelationPickerFilter() *RelationAttributeRelationPickerFilter { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetRelationPickerFilter() *RelationAttributeRelationPickerFilter { + if a == nil { return nil } - return o.RelationPickerFilter + return a.RelationPickerFilter } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetActions() []RelationAttributeActions { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetActions() []RelationAttributeActions { + if a == nil { return nil } - return o.Actions + return a.Actions } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetDrawerSize() *RelationAttributeDrawerSize { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetDrawerSize() *RelationAttributeDrawerSize { + if a == nil { return nil } - return o.DrawerSize + return a.DrawerSize } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetSummaryFields() []RelationAttributeSummaryFields { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetSummaryFields() []RelationAttributeSummaryFields { + if a == nil { return nil } - return o.SummaryFields + return a.SummaryFields } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetAllowedSchemas() []string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetAllowedSchemas() []string { + if a == nil { return nil } - return o.AllowedSchemas + return a.AllowedSchemas } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetEnableRelationTags() *bool { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetEnableRelationTags() *bool { + if a == nil { return nil } - return o.EnableRelationTags + return a.EnableRelationTags } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetAddButtonLabel() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetAddButtonLabel() *string { + if a == nil { return nil } - return o.AddButtonLabel + return a.AddButtonLabel } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetSearchPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetSearchPlaceholder() *string { + if a == nil { return nil } - return o.SearchPlaceholder + return a.SearchPlaceholder } -func (o *AttributeWithCompositeIDRelationAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDRelationAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDSequenceAttributeInput - Sequence of unique identifiers @@ -22923,235 +23177,235 @@ func (a *AttributeWithCompositeIDSequenceAttributeInput) UnmarshalJSON(data []by return nil } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetConstraints() *SequenceAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetConstraints() *SequenceAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetInfoHelpers() *SequenceAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetInfoHelpers() *SequenceAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetType() SequenceAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetType() SequenceAttributeAttributeWithCompositeIDType { + if a == nil { return SequenceAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetPrefix() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetPrefix() *string { + if a == nil { return nil } - return o.Prefix + return a.Prefix } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetStartNumber() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetStartNumber() *int64 { + if a == nil { return nil } - return o.StartNumber + return a.StartNumber } -func (o *AttributeWithCompositeIDSequenceAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDSequenceAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDStatusAttributeInput - Status select @@ -23226,228 +23480,228 @@ func (a *AttributeWithCompositeIDStatusAttributeInput) UnmarshalJSON(data []byte return nil } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetConstraints() *StatusAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetConstraints() *StatusAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetInfoHelpers() *StatusAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetInfoHelpers() *StatusAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetType() StatusAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetType() StatusAttributeAttributeWithCompositeIDType { + if a == nil { return StatusAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetOptions() []*StatusAttributeAttributeWithCompositeIDOptions { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetOptions() []*StatusAttributeAttributeWithCompositeIDOptions { + if a == nil { return nil } - return o.Options + return a.Options } -func (o *AttributeWithCompositeIDStatusAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDStatusAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDMultiSelectAttributeInput - Multi Choice Selection @@ -23528,249 +23782,249 @@ func (a *AttributeWithCompositeIDMultiSelectAttributeInput) UnmarshalJSON(data [ return nil } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetConstraints() *MultiSelectAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetConstraints() *MultiSelectAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetInfoHelpers() *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetInfoHelpers() *MultiSelectAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetType() MultiSelectAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetType() MultiSelectAttributeAttributeWithCompositeIDType { + if a == nil { return MultiSelectAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetDisableCaseSensitive() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetDisableCaseSensitive() *bool { + if a == nil { return nil } - return o.DisableCaseSensitive + return a.DisableCaseSensitive } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetAllowExtraOptions() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetAllowExtraOptions() *bool { + if a == nil { return nil } - return o.AllowExtraOptions + return a.AllowExtraOptions } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetOptions() []*MultiSelectAttributeOptions { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetOptions() []*MultiSelectAttributeOptions { + if a == nil { return nil } - return o.Options + return a.Options } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetAllowAny() *bool { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetAllowAny() *bool { + if a == nil { return nil } - return o.AllowAny + return a.AllowAny } -func (o *AttributeWithCompositeIDMultiSelectAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDMultiSelectAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDSelectAttributeInput - Dropdown select @@ -23847,235 +24101,235 @@ func (a *AttributeWithCompositeIDSelectAttributeInput) UnmarshalJSON(data []byte return nil } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetConstraints() *SelectAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetConstraints() *SelectAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetInfoHelpers() *SelectAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetInfoHelpers() *SelectAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetType() SelectAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetType() SelectAttributeAttributeWithCompositeIDType { + if a == nil { return SelectAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetOptions() any { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetOptions() any { + if a == nil { return nil } - return o.Options + return a.Options } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetAllowAny() *bool { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetAllowAny() *bool { + if a == nil { return nil } - return o.AllowAny + return a.AllowAny } -func (o *AttributeWithCompositeIDSelectAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDSelectAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDBooleanAttributeInput - Yes / No Toggle @@ -24150,228 +24404,228 @@ func (a *AttributeWithCompositeIDBooleanAttributeInput) UnmarshalJSON(data []byt return nil } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetConstraints() *BooleanAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetConstraints() *BooleanAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetInfoHelpers() *BooleanAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetInfoHelpers() *BooleanAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetType() BooleanAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetType() BooleanAttributeAttributeWithCompositeIDType { + if a == nil { return BooleanAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetDisplayType() *BooleanAttributeDisplayType { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetDisplayType() *BooleanAttributeDisplayType { + if a == nil { return nil } - return o.DisplayType + return a.DisplayType } -func (o *AttributeWithCompositeIDBooleanAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDBooleanAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDCountryAttributeInput - Country picker @@ -24445,221 +24699,221 @@ func (a *AttributeWithCompositeIDCountryAttributeInput) UnmarshalJSON(data []byt return nil } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetConstraints() *CountryAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetConstraints() *CountryAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetInfoHelpers() *CountryAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetInfoHelpers() *CountryAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetType() CountryAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetType() CountryAttributeAttributeWithCompositeIDType { + if a == nil { return CountryAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDCountryAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDCountryAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDDateAttributeInput - Date or Datetime picker @@ -24733,221 +24987,221 @@ func (a *AttributeWithCompositeIDDateAttributeInput) UnmarshalJSON(data []byte) return nil } -func (o *AttributeWithCompositeIDDateAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDDateAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDDateAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDDateAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDDateAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDDateAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDDateAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDDateAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDDateAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDDateAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDDateAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDDateAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDDateAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDDateAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDDateAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDDateAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDDateAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDDateAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDDateAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDDateAttributeInput) GetConstraints() *DateAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetConstraints() *DateAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDDateAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDDateAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDDateAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDDateAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDDateAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDDateAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDDateAttributeInput) GetInfoHelpers() *DateAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetInfoHelpers() *DateAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDDateAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDDateAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDDateAttributeInput) GetType() DateAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetType() DateAttributeAttributeWithCompositeIDType { + if a == nil { return DateAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDDateAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDDateAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDLinkAttributeInput - Link with title and href @@ -25021,221 +25275,221 @@ func (a *AttributeWithCompositeIDLinkAttributeInput) UnmarshalJSON(data []byte) return nil } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetConstraints() *LinkAttributeAttributeWithCompositeIDConstraints { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetConstraints() *LinkAttributeAttributeWithCompositeIDConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetInfoHelpers() *LinkAttributeAttributeWithCompositeIDInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetInfoHelpers() *LinkAttributeAttributeWithCompositeIDInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetType() LinkAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetType() LinkAttributeAttributeWithCompositeIDType { + if a == nil { return LinkAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDLinkAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDLinkAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } // AttributeWithCompositeIDTextAttributeInput - Textarea or text input @@ -25312,242 +25566,242 @@ func (a *AttributeWithCompositeIDTextAttributeInput) UnmarshalJSON(data []byte) return nil } -func (o *AttributeWithCompositeIDTextAttributeInput) GetID() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AttributeWithCompositeIDTextAttributeInput) GetName() string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AttributeWithCompositeIDTextAttributeInput) GetLabel() string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AttributeWithCompositeIDTextAttributeInput) GetPlaceholder() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AttributeWithCompositeIDTextAttributeInput) GetHidden() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AttributeWithCompositeIDTextAttributeInput) GetShowInTable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AttributeWithCompositeIDTextAttributeInput) GetSortable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AttributeWithCompositeIDTextAttributeInput) GetRequired() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AttributeWithCompositeIDTextAttributeInput) GetReadonly() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AttributeWithCompositeIDTextAttributeInput) GetDeprecated() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AttributeWithCompositeIDTextAttributeInput) GetDefaultValue() any { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AttributeWithCompositeIDTextAttributeInput) GetGroup() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AttributeWithCompositeIDTextAttributeInput) GetOrder() *int64 { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AttributeWithCompositeIDTextAttributeInput) GetLayout() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AttributeWithCompositeIDTextAttributeInput) GetHideLabel() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AttributeWithCompositeIDTextAttributeInput) GetIcon() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AttributeWithCompositeIDTextAttributeInput) GetRenderCondition() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AttributeWithCompositeIDTextAttributeInput) GetPurpose() []string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AttributeWithCompositeIDTextAttributeInput) GetManifest() []string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AttributeWithCompositeIDTextAttributeInput) GetConstraints() *TextAttributeConstraints { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetConstraints() *TextAttributeConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AttributeWithCompositeIDTextAttributeInput) GetFeatureFlag() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AttributeWithCompositeIDTextAttributeInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AttributeWithCompositeIDTextAttributeInput) GetValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AttributeWithCompositeIDTextAttributeInput) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AttributeWithCompositeIDTextAttributeInput) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AttributeWithCompositeIDTextAttributeInput) GetProtected() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AttributeWithCompositeIDTextAttributeInput) GetInfoHelpers() *TextAttributeInfoHelpers { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetInfoHelpers() *TextAttributeInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AttributeWithCompositeIDTextAttributeInput) GetRepeatable() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AttributeWithCompositeIDTextAttributeInput) GetHasPrimary() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AttributeWithCompositeIDTextAttributeInput) GetType() TextAttributeAttributeWithCompositeIDType { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetType() TextAttributeAttributeWithCompositeIDType { + if a == nil { return TextAttributeAttributeWithCompositeIDType("") } - return o.Type + return a.Type } -func (o *AttributeWithCompositeIDTextAttributeInput) GetMultiline() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetMultiline() *bool { + if a == nil { return nil } - return o.Multiline + return a.Multiline } -func (o *AttributeWithCompositeIDTextAttributeInput) GetRichText() *bool { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetRichText() *bool { + if a == nil { return nil } - return o.RichText + return a.RichText } -func (o *AttributeWithCompositeIDTextAttributeInput) GetRows() any { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetRows() any { + if a == nil { return nil } - return o.Rows + return a.Rows } -func (o *AttributeWithCompositeIDTextAttributeInput) GetSchema() *string { - if o == nil { +func (a *AttributeWithCompositeIDTextAttributeInput) GetSchema() *string { + if a == nil { return nil } - return o.Schema + return a.Schema } type AttributeWithCompositeIDInputType string @@ -25591,40 +25845,40 @@ const ( // AttributeWithCompositeIDInput - a readonly computed ID for the attribute including schema slug and the attribute ID type AttributeWithCompositeIDInput struct { - AttributeWithCompositeIDTextAttributeInput *AttributeWithCompositeIDTextAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDLinkAttributeInput *AttributeWithCompositeIDLinkAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDDateAttributeInput *AttributeWithCompositeIDDateAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDCountryAttributeInput *AttributeWithCompositeIDCountryAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDBooleanAttributeInput *AttributeWithCompositeIDBooleanAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDSelectAttributeInput *AttributeWithCompositeIDSelectAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDMultiSelectAttributeInput *AttributeWithCompositeIDMultiSelectAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDStatusAttributeInput *AttributeWithCompositeIDStatusAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDSequenceAttributeInput *AttributeWithCompositeIDSequenceAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDRelationAttributeInput *AttributeWithCompositeIDRelationAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDUserRelationAttributeInput *AttributeWithCompositeIDUserRelationAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDAddressAttributeInput *AttributeWithCompositeIDAddressAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDAddressRelationAttributeInput *AttributeWithCompositeIDAddressRelationAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPaymentMethodRelationAttributeInput *AttributeWithCompositeIDPaymentMethodRelationAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDCurrencyAttributeInput *AttributeWithCompositeIDCurrencyAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDTagsAttributeInput *AttributeWithCompositeIDTagsAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDMessageEmailAddressAttributeInput *AttributeWithCompositeIDMessageEmailAddressAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDNumberAttributeInput *AttributeWithCompositeIDNumberAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDConsentAttributeInput *AttributeWithCompositeIDConsentAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDInternalAttributeInput *AttributeWithCompositeIDInternalAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDOrderedListAttributeInput *AttributeWithCompositeIDOrderedListAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDFileAttributeInput *AttributeWithCompositeIDFileAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDComputedAttributeInput *AttributeWithCompositeIDComputedAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPartnerStatusAttributeInput *AttributeWithCompositeIDPartnerStatusAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDInvitationEmailAttributeInput *AttributeWithCompositeIDInvitationEmailAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDAutomationAttributeInput *AttributeWithCompositeIDAutomationAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDInternalUserAttributeInput *AttributeWithCompositeIDInternalUserAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPurposeAttributeInput *AttributeWithCompositeIDPurposeAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPartnerOrganisationAttributeInput *AttributeWithCompositeIDPartnerOrganisationAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPortalAccessAttributeInput *AttributeWithCompositeIDPortalAccessAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPhoneAttributeInput *AttributeWithCompositeIDPhoneAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDEmailAttributeInput *AttributeWithCompositeIDEmailAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPaymentAttributeInput *AttributeWithCompositeIDPaymentAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` - AttributeWithCompositeIDPriceComponentAttributeInput *AttributeWithCompositeIDPriceComponentAttributeInput `queryParam:"inline" name:"AttributeWithCompositeID"` + AttributeWithCompositeIDTextAttributeInput *AttributeWithCompositeIDTextAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDLinkAttributeInput *AttributeWithCompositeIDLinkAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDDateAttributeInput *AttributeWithCompositeIDDateAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDCountryAttributeInput *AttributeWithCompositeIDCountryAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDBooleanAttributeInput *AttributeWithCompositeIDBooleanAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDSelectAttributeInput *AttributeWithCompositeIDSelectAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDMultiSelectAttributeInput *AttributeWithCompositeIDMultiSelectAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDStatusAttributeInput *AttributeWithCompositeIDStatusAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDSequenceAttributeInput *AttributeWithCompositeIDSequenceAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDRelationAttributeInput *AttributeWithCompositeIDRelationAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDUserRelationAttributeInput *AttributeWithCompositeIDUserRelationAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDAddressAttributeInput *AttributeWithCompositeIDAddressAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDAddressRelationAttributeInput *AttributeWithCompositeIDAddressRelationAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPaymentMethodRelationAttributeInput *AttributeWithCompositeIDPaymentMethodRelationAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDCurrencyAttributeInput *AttributeWithCompositeIDCurrencyAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDTagsAttributeInput *AttributeWithCompositeIDTagsAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDMessageEmailAddressAttributeInput *AttributeWithCompositeIDMessageEmailAddressAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDNumberAttributeInput *AttributeWithCompositeIDNumberAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDConsentAttributeInput *AttributeWithCompositeIDConsentAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDInternalAttributeInput *AttributeWithCompositeIDInternalAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDOrderedListAttributeInput *AttributeWithCompositeIDOrderedListAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDFileAttributeInput *AttributeWithCompositeIDFileAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDComputedAttributeInput *AttributeWithCompositeIDComputedAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPartnerStatusAttributeInput *AttributeWithCompositeIDPartnerStatusAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDInvitationEmailAttributeInput *AttributeWithCompositeIDInvitationEmailAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDAutomationAttributeInput *AttributeWithCompositeIDAutomationAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDInternalUserAttributeInput *AttributeWithCompositeIDInternalUserAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPurposeAttributeInput *AttributeWithCompositeIDPurposeAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPartnerOrganisationAttributeInput *AttributeWithCompositeIDPartnerOrganisationAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPortalAccessAttributeInput *AttributeWithCompositeIDPortalAccessAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPhoneAttributeInput *AttributeWithCompositeIDPhoneAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDEmailAttributeInput *AttributeWithCompositeIDEmailAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPaymentAttributeInput *AttributeWithCompositeIDPaymentAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` + AttributeWithCompositeIDPriceComponentAttributeInput *AttributeWithCompositeIDPriceComponentAttributeInput `queryParam:"inline,name=AttributeWithCompositeID"` Type AttributeWithCompositeIDInputType } @@ -25937,241 +26191,395 @@ func CreateAttributeWithCompositeIDInputAttributeWithCompositeIDPriceComponentAt func (u *AttributeWithCompositeIDInput) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var attributeWithCompositeIDCurrencyAttributeInput AttributeWithCompositeIDCurrencyAttributeInput = AttributeWithCompositeIDCurrencyAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDCurrencyAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDCurrencyAttributeInput = &attributeWithCompositeIDCurrencyAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDCurrencyAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDCurrencyAttributeInput, + Value: &attributeWithCompositeIDCurrencyAttributeInput, + }) } var attributeWithCompositeIDConsentAttributeInput AttributeWithCompositeIDConsentAttributeInput = AttributeWithCompositeIDConsentAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDConsentAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDConsentAttributeInput = &attributeWithCompositeIDConsentAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDConsentAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDConsentAttributeInput, + Value: &attributeWithCompositeIDConsentAttributeInput, + }) } var attributeWithCompositeIDComputedAttributeInput AttributeWithCompositeIDComputedAttributeInput = AttributeWithCompositeIDComputedAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDComputedAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDComputedAttributeInput = &attributeWithCompositeIDComputedAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDComputedAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDComputedAttributeInput, + Value: &attributeWithCompositeIDComputedAttributeInput, + }) } var attributeWithCompositeIDTextAttributeInput AttributeWithCompositeIDTextAttributeInput = AttributeWithCompositeIDTextAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDTextAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDTextAttributeInput = &attributeWithCompositeIDTextAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDTextAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDTextAttributeInput, + Value: &attributeWithCompositeIDTextAttributeInput, + }) } var attributeWithCompositeIDLinkAttributeInput AttributeWithCompositeIDLinkAttributeInput = AttributeWithCompositeIDLinkAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDLinkAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDLinkAttributeInput = &attributeWithCompositeIDLinkAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDLinkAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDLinkAttributeInput, + Value: &attributeWithCompositeIDLinkAttributeInput, + }) } var attributeWithCompositeIDDateAttributeInput AttributeWithCompositeIDDateAttributeInput = AttributeWithCompositeIDDateAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDDateAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDDateAttributeInput = &attributeWithCompositeIDDateAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDDateAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDDateAttributeInput, + Value: &attributeWithCompositeIDDateAttributeInput, + }) } var attributeWithCompositeIDCountryAttributeInput AttributeWithCompositeIDCountryAttributeInput = AttributeWithCompositeIDCountryAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDCountryAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDCountryAttributeInput = &attributeWithCompositeIDCountryAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDCountryAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDCountryAttributeInput, + Value: &attributeWithCompositeIDCountryAttributeInput, + }) } var attributeWithCompositeIDBooleanAttributeInput AttributeWithCompositeIDBooleanAttributeInput = AttributeWithCompositeIDBooleanAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDBooleanAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDBooleanAttributeInput = &attributeWithCompositeIDBooleanAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDBooleanAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDBooleanAttributeInput, + Value: &attributeWithCompositeIDBooleanAttributeInput, + }) } var attributeWithCompositeIDSelectAttributeInput AttributeWithCompositeIDSelectAttributeInput = AttributeWithCompositeIDSelectAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDSelectAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDSelectAttributeInput = &attributeWithCompositeIDSelectAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDSelectAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDSelectAttributeInput, + Value: &attributeWithCompositeIDSelectAttributeInput, + }) } var attributeWithCompositeIDMultiSelectAttributeInput AttributeWithCompositeIDMultiSelectAttributeInput = AttributeWithCompositeIDMultiSelectAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDMultiSelectAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDMultiSelectAttributeInput = &attributeWithCompositeIDMultiSelectAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDMultiSelectAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDMultiSelectAttributeInput, + Value: &attributeWithCompositeIDMultiSelectAttributeInput, + }) } var attributeWithCompositeIDStatusAttributeInput AttributeWithCompositeIDStatusAttributeInput = AttributeWithCompositeIDStatusAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDStatusAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDStatusAttributeInput = &attributeWithCompositeIDStatusAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDStatusAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDStatusAttributeInput, + Value: &attributeWithCompositeIDStatusAttributeInput, + }) } var attributeWithCompositeIDSequenceAttributeInput AttributeWithCompositeIDSequenceAttributeInput = AttributeWithCompositeIDSequenceAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDSequenceAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDSequenceAttributeInput = &attributeWithCompositeIDSequenceAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDSequenceAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDSequenceAttributeInput, + Value: &attributeWithCompositeIDSequenceAttributeInput, + }) } var attributeWithCompositeIDRelationAttributeInput AttributeWithCompositeIDRelationAttributeInput = AttributeWithCompositeIDRelationAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDRelationAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDRelationAttributeInput = &attributeWithCompositeIDRelationAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDRelationAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDRelationAttributeInput, + Value: &attributeWithCompositeIDRelationAttributeInput, + }) } var attributeWithCompositeIDUserRelationAttributeInput AttributeWithCompositeIDUserRelationAttributeInput = AttributeWithCompositeIDUserRelationAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDUserRelationAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDUserRelationAttributeInput = &attributeWithCompositeIDUserRelationAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDUserRelationAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDUserRelationAttributeInput, + Value: &attributeWithCompositeIDUserRelationAttributeInput, + }) } var attributeWithCompositeIDAddressAttributeInput AttributeWithCompositeIDAddressAttributeInput = AttributeWithCompositeIDAddressAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDAddressAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDAddressAttributeInput = &attributeWithCompositeIDAddressAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDAddressAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDAddressAttributeInput, + Value: &attributeWithCompositeIDAddressAttributeInput, + }) } var attributeWithCompositeIDAddressRelationAttributeInput AttributeWithCompositeIDAddressRelationAttributeInput = AttributeWithCompositeIDAddressRelationAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDAddressRelationAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDAddressRelationAttributeInput = &attributeWithCompositeIDAddressRelationAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDAddressRelationAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDAddressRelationAttributeInput, + Value: &attributeWithCompositeIDAddressRelationAttributeInput, + }) } var attributeWithCompositeIDPaymentMethodRelationAttributeInput AttributeWithCompositeIDPaymentMethodRelationAttributeInput = AttributeWithCompositeIDPaymentMethodRelationAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPaymentMethodRelationAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDPaymentMethodRelationAttributeInput = &attributeWithCompositeIDPaymentMethodRelationAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPaymentMethodRelationAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPaymentMethodRelationAttributeInput, + Value: &attributeWithCompositeIDPaymentMethodRelationAttributeInput, + }) } var attributeWithCompositeIDTagsAttributeInput AttributeWithCompositeIDTagsAttributeInput = AttributeWithCompositeIDTagsAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDTagsAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDTagsAttributeInput = &attributeWithCompositeIDTagsAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDTagsAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDTagsAttributeInput, + Value: &attributeWithCompositeIDTagsAttributeInput, + }) } var attributeWithCompositeIDMessageEmailAddressAttributeInput AttributeWithCompositeIDMessageEmailAddressAttributeInput = AttributeWithCompositeIDMessageEmailAddressAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDMessageEmailAddressAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDMessageEmailAddressAttributeInput = &attributeWithCompositeIDMessageEmailAddressAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDMessageEmailAddressAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDMessageEmailAddressAttributeInput, + Value: &attributeWithCompositeIDMessageEmailAddressAttributeInput, + }) } var attributeWithCompositeIDNumberAttributeInput AttributeWithCompositeIDNumberAttributeInput = AttributeWithCompositeIDNumberAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDNumberAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDNumberAttributeInput = &attributeWithCompositeIDNumberAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDNumberAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDNumberAttributeInput, + Value: &attributeWithCompositeIDNumberAttributeInput, + }) } var attributeWithCompositeIDInternalAttributeInput AttributeWithCompositeIDInternalAttributeInput = AttributeWithCompositeIDInternalAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDInternalAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDInternalAttributeInput = &attributeWithCompositeIDInternalAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDInternalAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDInternalAttributeInput, + Value: &attributeWithCompositeIDInternalAttributeInput, + }) } var attributeWithCompositeIDOrderedListAttributeInput AttributeWithCompositeIDOrderedListAttributeInput = AttributeWithCompositeIDOrderedListAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDOrderedListAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDOrderedListAttributeInput = &attributeWithCompositeIDOrderedListAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDOrderedListAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDOrderedListAttributeInput, + Value: &attributeWithCompositeIDOrderedListAttributeInput, + }) } var attributeWithCompositeIDFileAttributeInput AttributeWithCompositeIDFileAttributeInput = AttributeWithCompositeIDFileAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDFileAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDFileAttributeInput = &attributeWithCompositeIDFileAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDFileAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDFileAttributeInput, + Value: &attributeWithCompositeIDFileAttributeInput, + }) } var attributeWithCompositeIDPartnerStatusAttributeInput AttributeWithCompositeIDPartnerStatusAttributeInput = AttributeWithCompositeIDPartnerStatusAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPartnerStatusAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDPartnerStatusAttributeInput = &attributeWithCompositeIDPartnerStatusAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPartnerStatusAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPartnerStatusAttributeInput, + Value: &attributeWithCompositeIDPartnerStatusAttributeInput, + }) } var attributeWithCompositeIDInvitationEmailAttributeInput AttributeWithCompositeIDInvitationEmailAttributeInput = AttributeWithCompositeIDInvitationEmailAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDInvitationEmailAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDInvitationEmailAttributeInput = &attributeWithCompositeIDInvitationEmailAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDInvitationEmailAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDInvitationEmailAttributeInput, + Value: &attributeWithCompositeIDInvitationEmailAttributeInput, + }) } var attributeWithCompositeIDAutomationAttributeInput AttributeWithCompositeIDAutomationAttributeInput = AttributeWithCompositeIDAutomationAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDAutomationAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDAutomationAttributeInput = &attributeWithCompositeIDAutomationAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDAutomationAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDAutomationAttributeInput, + Value: &attributeWithCompositeIDAutomationAttributeInput, + }) } var attributeWithCompositeIDInternalUserAttributeInput AttributeWithCompositeIDInternalUserAttributeInput = AttributeWithCompositeIDInternalUserAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDInternalUserAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDInternalUserAttributeInput = &attributeWithCompositeIDInternalUserAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDInternalUserAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDInternalUserAttributeInput, + Value: &attributeWithCompositeIDInternalUserAttributeInput, + }) } var attributeWithCompositeIDPurposeAttributeInput AttributeWithCompositeIDPurposeAttributeInput = AttributeWithCompositeIDPurposeAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPurposeAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDPurposeAttributeInput = &attributeWithCompositeIDPurposeAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPurposeAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPurposeAttributeInput, + Value: &attributeWithCompositeIDPurposeAttributeInput, + }) } var attributeWithCompositeIDPartnerOrganisationAttributeInput AttributeWithCompositeIDPartnerOrganisationAttributeInput = AttributeWithCompositeIDPartnerOrganisationAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPartnerOrganisationAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDPartnerOrganisationAttributeInput = &attributeWithCompositeIDPartnerOrganisationAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPartnerOrganisationAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPartnerOrganisationAttributeInput, + Value: &attributeWithCompositeIDPartnerOrganisationAttributeInput, + }) } var attributeWithCompositeIDPortalAccessAttributeInput AttributeWithCompositeIDPortalAccessAttributeInput = AttributeWithCompositeIDPortalAccessAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPortalAccessAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDPortalAccessAttributeInput = &attributeWithCompositeIDPortalAccessAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPortalAccessAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPortalAccessAttributeInput, + Value: &attributeWithCompositeIDPortalAccessAttributeInput, + }) } var attributeWithCompositeIDPhoneAttributeInput AttributeWithCompositeIDPhoneAttributeInput = AttributeWithCompositeIDPhoneAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPhoneAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDPhoneAttributeInput = &attributeWithCompositeIDPhoneAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPhoneAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPhoneAttributeInput, + Value: &attributeWithCompositeIDPhoneAttributeInput, + }) } var attributeWithCompositeIDEmailAttributeInput AttributeWithCompositeIDEmailAttributeInput = AttributeWithCompositeIDEmailAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDEmailAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDEmailAttributeInput = &attributeWithCompositeIDEmailAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDEmailAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDEmailAttributeInput, + Value: &attributeWithCompositeIDEmailAttributeInput, + }) } var attributeWithCompositeIDPaymentAttributeInput AttributeWithCompositeIDPaymentAttributeInput = AttributeWithCompositeIDPaymentAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPaymentAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDPaymentAttributeInput = &attributeWithCompositeIDPaymentAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPaymentAttributeInput - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPaymentAttributeInput, + Value: &attributeWithCompositeIDPaymentAttributeInput, + }) } var attributeWithCompositeIDPriceComponentAttributeInput AttributeWithCompositeIDPriceComponentAttributeInput = AttributeWithCompositeIDPriceComponentAttributeInput{} if err := utils.UnmarshalJSON(data, &attributeWithCompositeIDPriceComponentAttributeInput, "", true, nil); err == nil { - u.AttributeWithCompositeIDPriceComponentAttributeInput = &attributeWithCompositeIDPriceComponentAttributeInput - u.Type = AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPriceComponentAttributeInput + candidates = append(candidates, utils.UnionCandidate{ + Type: AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPriceComponentAttributeInput, + Value: &attributeWithCompositeIDPriceComponentAttributeInput, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for AttributeWithCompositeIDInput", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for AttributeWithCompositeIDInput", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(AttributeWithCompositeIDInputType) + switch best.Type { + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDCurrencyAttributeInput: + u.AttributeWithCompositeIDCurrencyAttributeInput = best.Value.(*AttributeWithCompositeIDCurrencyAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDConsentAttributeInput: + u.AttributeWithCompositeIDConsentAttributeInput = best.Value.(*AttributeWithCompositeIDConsentAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDComputedAttributeInput: + u.AttributeWithCompositeIDComputedAttributeInput = best.Value.(*AttributeWithCompositeIDComputedAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDTextAttributeInput: + u.AttributeWithCompositeIDTextAttributeInput = best.Value.(*AttributeWithCompositeIDTextAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDLinkAttributeInput: + u.AttributeWithCompositeIDLinkAttributeInput = best.Value.(*AttributeWithCompositeIDLinkAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDDateAttributeInput: + u.AttributeWithCompositeIDDateAttributeInput = best.Value.(*AttributeWithCompositeIDDateAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDCountryAttributeInput: + u.AttributeWithCompositeIDCountryAttributeInput = best.Value.(*AttributeWithCompositeIDCountryAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDBooleanAttributeInput: + u.AttributeWithCompositeIDBooleanAttributeInput = best.Value.(*AttributeWithCompositeIDBooleanAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDSelectAttributeInput: + u.AttributeWithCompositeIDSelectAttributeInput = best.Value.(*AttributeWithCompositeIDSelectAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDMultiSelectAttributeInput: + u.AttributeWithCompositeIDMultiSelectAttributeInput = best.Value.(*AttributeWithCompositeIDMultiSelectAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDStatusAttributeInput: + u.AttributeWithCompositeIDStatusAttributeInput = best.Value.(*AttributeWithCompositeIDStatusAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDSequenceAttributeInput: + u.AttributeWithCompositeIDSequenceAttributeInput = best.Value.(*AttributeWithCompositeIDSequenceAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDRelationAttributeInput: + u.AttributeWithCompositeIDRelationAttributeInput = best.Value.(*AttributeWithCompositeIDRelationAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDUserRelationAttributeInput: + u.AttributeWithCompositeIDUserRelationAttributeInput = best.Value.(*AttributeWithCompositeIDUserRelationAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDAddressAttributeInput: + u.AttributeWithCompositeIDAddressAttributeInput = best.Value.(*AttributeWithCompositeIDAddressAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDAddressRelationAttributeInput: + u.AttributeWithCompositeIDAddressRelationAttributeInput = best.Value.(*AttributeWithCompositeIDAddressRelationAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPaymentMethodRelationAttributeInput: + u.AttributeWithCompositeIDPaymentMethodRelationAttributeInput = best.Value.(*AttributeWithCompositeIDPaymentMethodRelationAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDTagsAttributeInput: + u.AttributeWithCompositeIDTagsAttributeInput = best.Value.(*AttributeWithCompositeIDTagsAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDMessageEmailAddressAttributeInput: + u.AttributeWithCompositeIDMessageEmailAddressAttributeInput = best.Value.(*AttributeWithCompositeIDMessageEmailAddressAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDNumberAttributeInput: + u.AttributeWithCompositeIDNumberAttributeInput = best.Value.(*AttributeWithCompositeIDNumberAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDInternalAttributeInput: + u.AttributeWithCompositeIDInternalAttributeInput = best.Value.(*AttributeWithCompositeIDInternalAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDOrderedListAttributeInput: + u.AttributeWithCompositeIDOrderedListAttributeInput = best.Value.(*AttributeWithCompositeIDOrderedListAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDFileAttributeInput: + u.AttributeWithCompositeIDFileAttributeInput = best.Value.(*AttributeWithCompositeIDFileAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPartnerStatusAttributeInput: + u.AttributeWithCompositeIDPartnerStatusAttributeInput = best.Value.(*AttributeWithCompositeIDPartnerStatusAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDInvitationEmailAttributeInput: + u.AttributeWithCompositeIDInvitationEmailAttributeInput = best.Value.(*AttributeWithCompositeIDInvitationEmailAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDAutomationAttributeInput: + u.AttributeWithCompositeIDAutomationAttributeInput = best.Value.(*AttributeWithCompositeIDAutomationAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDInternalUserAttributeInput: + u.AttributeWithCompositeIDInternalUserAttributeInput = best.Value.(*AttributeWithCompositeIDInternalUserAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPurposeAttributeInput: + u.AttributeWithCompositeIDPurposeAttributeInput = best.Value.(*AttributeWithCompositeIDPurposeAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPartnerOrganisationAttributeInput: + u.AttributeWithCompositeIDPartnerOrganisationAttributeInput = best.Value.(*AttributeWithCompositeIDPartnerOrganisationAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPortalAccessAttributeInput: + u.AttributeWithCompositeIDPortalAccessAttributeInput = best.Value.(*AttributeWithCompositeIDPortalAccessAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPhoneAttributeInput: + u.AttributeWithCompositeIDPhoneAttributeInput = best.Value.(*AttributeWithCompositeIDPhoneAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDEmailAttributeInput: + u.AttributeWithCompositeIDEmailAttributeInput = best.Value.(*AttributeWithCompositeIDEmailAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPaymentAttributeInput: + u.AttributeWithCompositeIDPaymentAttributeInput = best.Value.(*AttributeWithCompositeIDPaymentAttributeInput) + return nil + case AttributeWithCompositeIDInputTypeAttributeWithCompositeIDPriceComponentAttributeInput: + u.AttributeWithCompositeIDPriceComponentAttributeInput = best.Value.(*AttributeWithCompositeIDPriceComponentAttributeInput) return nil } diff --git a/internal/sdk/models/shared/automationattribute.go b/internal/sdk/models/shared/automationattribute.go index 545a548f..5cfb10c7 100644 --- a/internal/sdk/models/shared/automationattribute.go +++ b/internal/sdk/models/shared/automationattribute.go @@ -56,32 +56,32 @@ func (a *AutomationAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *AutomationAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (a *AutomationAttributeInfoHelpers) GetHintText() *string { + if a == nil { return nil } - return o.HintText + return a.HintText } -func (o *AutomationAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (a *AutomationAttributeInfoHelpers) GetHintTextKey() *string { + if a == nil { return nil } - return o.HintTextKey + return a.HintTextKey } -func (o *AutomationAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (a *AutomationAttributeInfoHelpers) GetHintCustomComponent() *string { + if a == nil { return nil } - return o.HintCustomComponent + return a.HintCustomComponent } -func (o *AutomationAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (a *AutomationAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if a == nil { return nil } - return o.HintTooltipPlacement + return a.HintTooltipPlacement } type AutomationAttributeType string @@ -176,212 +176,212 @@ func (a *AutomationAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *AutomationAttribute) GetID() *string { - if o == nil { +func (a *AutomationAttribute) GetID() *string { + if a == nil { return nil } - return o.ID + return a.ID } -func (o *AutomationAttribute) GetName() string { - if o == nil { +func (a *AutomationAttribute) GetName() string { + if a == nil { return "" } - return o.Name + return a.Name } -func (o *AutomationAttribute) GetLabel() string { - if o == nil { +func (a *AutomationAttribute) GetLabel() string { + if a == nil { return "" } - return o.Label + return a.Label } -func (o *AutomationAttribute) GetPlaceholder() *string { - if o == nil { +func (a *AutomationAttribute) GetPlaceholder() *string { + if a == nil { return nil } - return o.Placeholder + return a.Placeholder } -func (o *AutomationAttribute) GetHidden() *bool { - if o == nil { +func (a *AutomationAttribute) GetHidden() *bool { + if a == nil { return nil } - return o.Hidden + return a.Hidden } -func (o *AutomationAttribute) GetShowInTable() *bool { - if o == nil { +func (a *AutomationAttribute) GetShowInTable() *bool { + if a == nil { return nil } - return o.ShowInTable + return a.ShowInTable } -func (o *AutomationAttribute) GetSortable() *bool { - if o == nil { +func (a *AutomationAttribute) GetSortable() *bool { + if a == nil { return nil } - return o.Sortable + return a.Sortable } -func (o *AutomationAttribute) GetRequired() *bool { - if o == nil { +func (a *AutomationAttribute) GetRequired() *bool { + if a == nil { return nil } - return o.Required + return a.Required } -func (o *AutomationAttribute) GetReadonly() *bool { - if o == nil { +func (a *AutomationAttribute) GetReadonly() *bool { + if a == nil { return nil } - return o.Readonly + return a.Readonly } -func (o *AutomationAttribute) GetDeprecated() *bool { - if o == nil { +func (a *AutomationAttribute) GetDeprecated() *bool { + if a == nil { return nil } - return o.Deprecated + return a.Deprecated } -func (o *AutomationAttribute) GetDefaultValue() any { - if o == nil { +func (a *AutomationAttribute) GetDefaultValue() any { + if a == nil { return nil } - return o.DefaultValue + return a.DefaultValue } -func (o *AutomationAttribute) GetGroup() *string { - if o == nil { +func (a *AutomationAttribute) GetGroup() *string { + if a == nil { return nil } - return o.Group + return a.Group } -func (o *AutomationAttribute) GetOrder() *int64 { - if o == nil { +func (a *AutomationAttribute) GetOrder() *int64 { + if a == nil { return nil } - return o.Order + return a.Order } -func (o *AutomationAttribute) GetLayout() *string { - if o == nil { +func (a *AutomationAttribute) GetLayout() *string { + if a == nil { return nil } - return o.Layout + return a.Layout } -func (o *AutomationAttribute) GetHideLabel() *bool { - if o == nil { +func (a *AutomationAttribute) GetHideLabel() *bool { + if a == nil { return nil } - return o.HideLabel + return a.HideLabel } -func (o *AutomationAttribute) GetIcon() *string { - if o == nil { +func (a *AutomationAttribute) GetIcon() *string { + if a == nil { return nil } - return o.Icon + return a.Icon } -func (o *AutomationAttribute) GetRenderCondition() *string { - if o == nil { +func (a *AutomationAttribute) GetRenderCondition() *string { + if a == nil { return nil } - return o.RenderCondition + return a.RenderCondition } -func (o *AutomationAttribute) GetPurpose() []string { - if o == nil { +func (a *AutomationAttribute) GetPurpose() []string { + if a == nil { return nil } - return o.Purpose + return a.Purpose } -func (o *AutomationAttribute) GetManifest() []string { - if o == nil { +func (a *AutomationAttribute) GetManifest() []string { + if a == nil { return nil } - return o.Manifest + return a.Manifest } -func (o *AutomationAttribute) GetConstraints() *AutomationAttributeConstraints { - if o == nil { +func (a *AutomationAttribute) GetConstraints() *AutomationAttributeConstraints { + if a == nil { return nil } - return o.Constraints + return a.Constraints } -func (o *AutomationAttribute) GetFeatureFlag() *string { - if o == nil { +func (a *AutomationAttribute) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *AutomationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *AutomationAttribute) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *AutomationAttribute) GetValueFormatter() *string { - if o == nil { +func (a *AutomationAttribute) GetValueFormatter() *string { + if a == nil { return nil } - return o.ValueFormatter + return a.ValueFormatter } -func (o *AutomationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (a *AutomationAttribute) GetPreviewValueFormatter() *string { + if a == nil { return nil } - return o.PreviewValueFormatter + return a.PreviewValueFormatter } -func (o *AutomationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (a *AutomationAttribute) GetEntityBuilderDisableEdit() *bool { + if a == nil { return nil } - return o.EntityBuilderDisableEdit + return a.EntityBuilderDisableEdit } -func (o *AutomationAttribute) GetProtected() *bool { - if o == nil { +func (a *AutomationAttribute) GetProtected() *bool { + if a == nil { return nil } - return o.Protected + return a.Protected } -func (o *AutomationAttribute) GetInfoHelpers() *AutomationAttributeInfoHelpers { - if o == nil { +func (a *AutomationAttribute) GetInfoHelpers() *AutomationAttributeInfoHelpers { + if a == nil { return nil } - return o.InfoHelpers + return a.InfoHelpers } -func (o *AutomationAttribute) GetRepeatable() *bool { - if o == nil { +func (a *AutomationAttribute) GetRepeatable() *bool { + if a == nil { return nil } - return o.Repeatable + return a.Repeatable } -func (o *AutomationAttribute) GetHasPrimary() *bool { - if o == nil { +func (a *AutomationAttribute) GetHasPrimary() *bool { + if a == nil { return nil } - return o.HasPrimary + return a.HasPrimary } -func (o *AutomationAttribute) GetType() AutomationAttributeType { - if o == nil { +func (a *AutomationAttribute) GetType() AutomationAttributeType { + if a == nil { return AutomationAttributeType("") } - return o.Type + return a.Type } diff --git a/internal/sdk/models/shared/baseactivityitem.go b/internal/sdk/models/shared/baseactivityitem.go index db5c7192..5a863799 100644 --- a/internal/sdk/models/shared/baseactivityitem.go +++ b/internal/sdk/models/shared/baseactivityitem.go @@ -35,58 +35,58 @@ func (b *BaseActivityItem) UnmarshalJSON(data []byte) error { return nil } -func (o *BaseActivityItem) GetID() *string { - if o == nil { +func (b *BaseActivityItem) GetID() *string { + if b == nil { return nil } - return o.ID + return b.ID } -func (o *BaseActivityItem) GetTimestamp() *time.Time { - if o == nil { +func (b *BaseActivityItem) GetTimestamp() *time.Time { + if b == nil { return nil } - return o.Timestamp + return b.Timestamp } -func (o *BaseActivityItem) GetType() string { - if o == nil { +func (b *BaseActivityItem) GetType() string { + if b == nil { return "" } - return o.Type + return b.Type } -func (o *BaseActivityItem) GetTitle() string { - if o == nil { +func (b *BaseActivityItem) GetTitle() string { + if b == nil { return "" } - return o.Title + return b.Title } -func (o *BaseActivityItem) GetMessage() string { - if o == nil { +func (b *BaseActivityItem) GetMessage() string { + if b == nil { return "" } - return o.Message + return b.Message } -func (o *BaseActivityItem) GetPayload() map[string]any { - if o == nil { +func (b *BaseActivityItem) GetPayload() map[string]any { + if b == nil { return nil } - return o.Payload + return b.Payload } -func (o *BaseActivityItem) GetPending() *bool { - if o == nil { +func (b *BaseActivityItem) GetPending() *bool { + if b == nil { return nil } - return o.Pending + return b.Pending } -func (o *BaseActivityItem) GetCaller() *ActivityCallerContext { - if o == nil { +func (b *BaseActivityItem) GetCaller() *ActivityCallerContext { + if b == nil { return nil } - return o.Caller + return b.Caller } diff --git a/internal/sdk/models/shared/booleanattribute.go b/internal/sdk/models/shared/booleanattribute.go index 1281f65b..fc181e6b 100644 --- a/internal/sdk/models/shared/booleanattribute.go +++ b/internal/sdk/models/shared/booleanattribute.go @@ -56,32 +56,32 @@ func (b *BooleanAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *BooleanAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (b *BooleanAttributeInfoHelpers) GetHintText() *string { + if b == nil { return nil } - return o.HintText + return b.HintText } -func (o *BooleanAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (b *BooleanAttributeInfoHelpers) GetHintTextKey() *string { + if b == nil { return nil } - return o.HintTextKey + return b.HintTextKey } -func (o *BooleanAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (b *BooleanAttributeInfoHelpers) GetHintCustomComponent() *string { + if b == nil { return nil } - return o.HintCustomComponent + return b.HintCustomComponent } -func (o *BooleanAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (b *BooleanAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if b == nil { return nil } - return o.HintTooltipPlacement + return b.HintTooltipPlacement } type BooleanAttributeType string @@ -203,219 +203,219 @@ func (b *BooleanAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *BooleanAttribute) GetID() *string { - if o == nil { +func (b *BooleanAttribute) GetID() *string { + if b == nil { return nil } - return o.ID + return b.ID } -func (o *BooleanAttribute) GetName() string { - if o == nil { +func (b *BooleanAttribute) GetName() string { + if b == nil { return "" } - return o.Name + return b.Name } -func (o *BooleanAttribute) GetLabel() string { - if o == nil { +func (b *BooleanAttribute) GetLabel() string { + if b == nil { return "" } - return o.Label + return b.Label } -func (o *BooleanAttribute) GetPlaceholder() *string { - if o == nil { +func (b *BooleanAttribute) GetPlaceholder() *string { + if b == nil { return nil } - return o.Placeholder + return b.Placeholder } -func (o *BooleanAttribute) GetHidden() *bool { - if o == nil { +func (b *BooleanAttribute) GetHidden() *bool { + if b == nil { return nil } - return o.Hidden + return b.Hidden } -func (o *BooleanAttribute) GetShowInTable() *bool { - if o == nil { +func (b *BooleanAttribute) GetShowInTable() *bool { + if b == nil { return nil } - return o.ShowInTable + return b.ShowInTable } -func (o *BooleanAttribute) GetSortable() *bool { - if o == nil { +func (b *BooleanAttribute) GetSortable() *bool { + if b == nil { return nil } - return o.Sortable + return b.Sortable } -func (o *BooleanAttribute) GetRequired() *bool { - if o == nil { +func (b *BooleanAttribute) GetRequired() *bool { + if b == nil { return nil } - return o.Required + return b.Required } -func (o *BooleanAttribute) GetReadonly() *bool { - if o == nil { +func (b *BooleanAttribute) GetReadonly() *bool { + if b == nil { return nil } - return o.Readonly + return b.Readonly } -func (o *BooleanAttribute) GetDeprecated() *bool { - if o == nil { +func (b *BooleanAttribute) GetDeprecated() *bool { + if b == nil { return nil } - return o.Deprecated + return b.Deprecated } -func (o *BooleanAttribute) GetDefaultValue() any { - if o == nil { +func (b *BooleanAttribute) GetDefaultValue() any { + if b == nil { return nil } - return o.DefaultValue + return b.DefaultValue } -func (o *BooleanAttribute) GetGroup() *string { - if o == nil { +func (b *BooleanAttribute) GetGroup() *string { + if b == nil { return nil } - return o.Group + return b.Group } -func (o *BooleanAttribute) GetOrder() *int64 { - if o == nil { +func (b *BooleanAttribute) GetOrder() *int64 { + if b == nil { return nil } - return o.Order + return b.Order } -func (o *BooleanAttribute) GetLayout() *string { - if o == nil { +func (b *BooleanAttribute) GetLayout() *string { + if b == nil { return nil } - return o.Layout + return b.Layout } -func (o *BooleanAttribute) GetHideLabel() *bool { - if o == nil { +func (b *BooleanAttribute) GetHideLabel() *bool { + if b == nil { return nil } - return o.HideLabel + return b.HideLabel } -func (o *BooleanAttribute) GetIcon() *string { - if o == nil { +func (b *BooleanAttribute) GetIcon() *string { + if b == nil { return nil } - return o.Icon + return b.Icon } -func (o *BooleanAttribute) GetRenderCondition() *string { - if o == nil { +func (b *BooleanAttribute) GetRenderCondition() *string { + if b == nil { return nil } - return o.RenderCondition + return b.RenderCondition } -func (o *BooleanAttribute) GetPurpose() []string { - if o == nil { +func (b *BooleanAttribute) GetPurpose() []string { + if b == nil { return nil } - return o.Purpose + return b.Purpose } -func (o *BooleanAttribute) GetManifest() []string { - if o == nil { +func (b *BooleanAttribute) GetManifest() []string { + if b == nil { return nil } - return o.Manifest + return b.Manifest } -func (o *BooleanAttribute) GetConstraints() *BooleanAttributeConstraints { - if o == nil { +func (b *BooleanAttribute) GetConstraints() *BooleanAttributeConstraints { + if b == nil { return nil } - return o.Constraints + return b.Constraints } -func (o *BooleanAttribute) GetFeatureFlag() *string { - if o == nil { +func (b *BooleanAttribute) GetFeatureFlag() *string { + if b == nil { return nil } - return o.FeatureFlag + return b.FeatureFlag } -func (o *BooleanAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (b *BooleanAttribute) GetSettingsFlag() []SettingFlag { + if b == nil { return nil } - return o.SettingsFlag + return b.SettingsFlag } -func (o *BooleanAttribute) GetValueFormatter() *string { - if o == nil { +func (b *BooleanAttribute) GetValueFormatter() *string { + if b == nil { return nil } - return o.ValueFormatter + return b.ValueFormatter } -func (o *BooleanAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (b *BooleanAttribute) GetPreviewValueFormatter() *string { + if b == nil { return nil } - return o.PreviewValueFormatter + return b.PreviewValueFormatter } -func (o *BooleanAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (b *BooleanAttribute) GetEntityBuilderDisableEdit() *bool { + if b == nil { return nil } - return o.EntityBuilderDisableEdit + return b.EntityBuilderDisableEdit } -func (o *BooleanAttribute) GetProtected() *bool { - if o == nil { +func (b *BooleanAttribute) GetProtected() *bool { + if b == nil { return nil } - return o.Protected + return b.Protected } -func (o *BooleanAttribute) GetInfoHelpers() *BooleanAttributeInfoHelpers { - if o == nil { +func (b *BooleanAttribute) GetInfoHelpers() *BooleanAttributeInfoHelpers { + if b == nil { return nil } - return o.InfoHelpers + return b.InfoHelpers } -func (o *BooleanAttribute) GetRepeatable() *bool { - if o == nil { +func (b *BooleanAttribute) GetRepeatable() *bool { + if b == nil { return nil } - return o.Repeatable + return b.Repeatable } -func (o *BooleanAttribute) GetHasPrimary() *bool { - if o == nil { +func (b *BooleanAttribute) GetHasPrimary() *bool { + if b == nil { return nil } - return o.HasPrimary + return b.HasPrimary } -func (o *BooleanAttribute) GetType() BooleanAttributeType { - if o == nil { +func (b *BooleanAttribute) GetType() BooleanAttributeType { + if b == nil { return BooleanAttributeType("") } - return o.Type + return b.Type } -func (o *BooleanAttribute) GetDisplayType() *DisplayType { - if o == nil { +func (b *BooleanAttribute) GetDisplayType() *DisplayType { + if b == nil { return nil } - return o.DisplayType + return b.DisplayType } diff --git a/internal/sdk/models/shared/classificationidorpattern.go b/internal/sdk/models/shared/classificationidorpattern.go index aad0e45f..a78e17a7 100644 --- a/internal/sdk/models/shared/classificationidorpattern.go +++ b/internal/sdk/models/shared/classificationidorpattern.go @@ -24,11 +24,11 @@ func (c *ClassificationIDOrPattern2) UnmarshalJSON(data []byte) error { return nil } -func (o *ClassificationIDOrPattern2) GetPattern() string { - if o == nil { +func (c *ClassificationIDOrPattern2) GetPattern() string { + if c == nil { return "" } - return o.Pattern + return c.Pattern } type ClassificationIDOrPatternType string @@ -39,8 +39,8 @@ const ( ) type ClassificationIDOrPattern struct { - Str *string `queryParam:"inline" name:"ClassificationIdOrPattern"` - ClassificationIDOrPattern2 *ClassificationIDOrPattern2 `queryParam:"inline" name:"ClassificationIdOrPattern"` + Str *string `queryParam:"inline,name=ClassificationIdOrPattern"` + ClassificationIDOrPattern2 *ClassificationIDOrPattern2 `queryParam:"inline,name=ClassificationIdOrPattern"` Type ClassificationIDOrPatternType } @@ -65,17 +65,43 @@ func CreateClassificationIDOrPatternClassificationIDOrPattern2(classificationIDO func (u *ClassificationIDOrPattern) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var classificationIDOrPattern2 ClassificationIDOrPattern2 = ClassificationIDOrPattern2{} if err := utils.UnmarshalJSON(data, &classificationIDOrPattern2, "", true, nil); err == nil { - u.ClassificationIDOrPattern2 = &classificationIDOrPattern2 - u.Type = ClassificationIDOrPatternTypeClassificationIDOrPattern2 - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: ClassificationIDOrPatternTypeClassificationIDOrPattern2, + Value: &classificationIDOrPattern2, + }) } var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = ClassificationIDOrPatternTypeStr + candidates = append(candidates, utils.UnionCandidate{ + Type: ClassificationIDOrPatternTypeStr, + Value: &str, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for ClassificationIDOrPattern", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for ClassificationIDOrPattern", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(ClassificationIDOrPatternType) + switch best.Type { + case ClassificationIDOrPatternTypeClassificationIDOrPattern2: + u.ClassificationIDOrPattern2 = best.Value.(*ClassificationIDOrPattern2) + return nil + case ClassificationIDOrPatternTypeStr: + u.Str = best.Value.(*string) return nil } diff --git a/internal/sdk/models/shared/classificationsupdate.go b/internal/sdk/models/shared/classificationsupdate.go index 34df6326..bf731bc9 100644 --- a/internal/sdk/models/shared/classificationsupdate.go +++ b/internal/sdk/models/shared/classificationsupdate.go @@ -8,23 +8,23 @@ type ClassificationsUpdate struct { Delete []string `json:"delete,omitempty"` } -func (o *ClassificationsUpdate) GetCreate() []TaxonomyClassificationInput { - if o == nil { +func (c *ClassificationsUpdate) GetCreate() []TaxonomyClassificationInput { + if c == nil { return nil } - return o.Create + return c.Create } -func (o *ClassificationsUpdate) GetUpdate() []TaxonomyClassificationInput { - if o == nil { +func (c *ClassificationsUpdate) GetUpdate() []TaxonomyClassificationInput { + if c == nil { return nil } - return o.Update + return c.Update } -func (o *ClassificationsUpdate) GetDelete() []string { - if o == nil { +func (c *ClassificationsUpdate) GetDelete() []string { + if c == nil { return nil } - return o.Delete + return c.Delete } diff --git a/internal/sdk/models/shared/computedattribute.go b/internal/sdk/models/shared/computedattribute.go index 19e4b064..161eb47b 100644 --- a/internal/sdk/models/shared/computedattribute.go +++ b/internal/sdk/models/shared/computedattribute.go @@ -56,32 +56,32 @@ func (c *ComputedAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *ComputedAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (c *ComputedAttributeInfoHelpers) GetHintText() *string { + if c == nil { return nil } - return o.HintText + return c.HintText } -func (o *ComputedAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (c *ComputedAttributeInfoHelpers) GetHintTextKey() *string { + if c == nil { return nil } - return o.HintTextKey + return c.HintTextKey } -func (o *ComputedAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (c *ComputedAttributeInfoHelpers) GetHintCustomComponent() *string { + if c == nil { return nil } - return o.HintCustomComponent + return c.HintCustomComponent } -func (o *ComputedAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (c *ComputedAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if c == nil { return nil } - return o.HintTooltipPlacement + return c.HintTooltipPlacement } type ComputedAttributeType string @@ -183,233 +183,233 @@ func (c *ComputedAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *ComputedAttribute) GetID() *string { - if o == nil { +func (c *ComputedAttribute) GetID() *string { + if c == nil { return nil } - return o.ID + return c.ID } -func (o *ComputedAttribute) GetName() string { - if o == nil { +func (c *ComputedAttribute) GetName() string { + if c == nil { return "" } - return o.Name + return c.Name } -func (o *ComputedAttribute) GetLabel() string { - if o == nil { +func (c *ComputedAttribute) GetLabel() string { + if c == nil { return "" } - return o.Label + return c.Label } -func (o *ComputedAttribute) GetPlaceholder() *string { - if o == nil { +func (c *ComputedAttribute) GetPlaceholder() *string { + if c == nil { return nil } - return o.Placeholder + return c.Placeholder } -func (o *ComputedAttribute) GetHidden() *bool { - if o == nil { +func (c *ComputedAttribute) GetHidden() *bool { + if c == nil { return nil } - return o.Hidden + return c.Hidden } -func (o *ComputedAttribute) GetShowInTable() *bool { - if o == nil { +func (c *ComputedAttribute) GetShowInTable() *bool { + if c == nil { return nil } - return o.ShowInTable + return c.ShowInTable } -func (o *ComputedAttribute) GetSortable() *bool { - if o == nil { +func (c *ComputedAttribute) GetSortable() *bool { + if c == nil { return nil } - return o.Sortable + return c.Sortable } -func (o *ComputedAttribute) GetRequired() *bool { - if o == nil { +func (c *ComputedAttribute) GetRequired() *bool { + if c == nil { return nil } - return o.Required + return c.Required } -func (o *ComputedAttribute) GetReadonly() *bool { - if o == nil { +func (c *ComputedAttribute) GetReadonly() *bool { + if c == nil { return nil } - return o.Readonly + return c.Readonly } -func (o *ComputedAttribute) GetDeprecated() *bool { - if o == nil { +func (c *ComputedAttribute) GetDeprecated() *bool { + if c == nil { return nil } - return o.Deprecated + return c.Deprecated } -func (o *ComputedAttribute) GetDefaultValue() any { - if o == nil { +func (c *ComputedAttribute) GetDefaultValue() any { + if c == nil { return nil } - return o.DefaultValue + return c.DefaultValue } -func (o *ComputedAttribute) GetGroup() *string { - if o == nil { +func (c *ComputedAttribute) GetGroup() *string { + if c == nil { return nil } - return o.Group + return c.Group } -func (o *ComputedAttribute) GetOrder() *int64 { - if o == nil { +func (c *ComputedAttribute) GetOrder() *int64 { + if c == nil { return nil } - return o.Order + return c.Order } -func (o *ComputedAttribute) GetLayout() *string { - if o == nil { +func (c *ComputedAttribute) GetLayout() *string { + if c == nil { return nil } - return o.Layout + return c.Layout } -func (o *ComputedAttribute) GetHideLabel() *bool { - if o == nil { +func (c *ComputedAttribute) GetHideLabel() *bool { + if c == nil { return nil } - return o.HideLabel + return c.HideLabel } -func (o *ComputedAttribute) GetIcon() *string { - if o == nil { +func (c *ComputedAttribute) GetIcon() *string { + if c == nil { return nil } - return o.Icon + return c.Icon } -func (o *ComputedAttribute) GetRenderCondition() *string { - if o == nil { +func (c *ComputedAttribute) GetRenderCondition() *string { + if c == nil { return nil } - return o.RenderCondition + return c.RenderCondition } -func (o *ComputedAttribute) GetPurpose() []string { - if o == nil { +func (c *ComputedAttribute) GetPurpose() []string { + if c == nil { return nil } - return o.Purpose + return c.Purpose } -func (o *ComputedAttribute) GetManifest() []string { - if o == nil { +func (c *ComputedAttribute) GetManifest() []string { + if c == nil { return nil } - return o.Manifest + return c.Manifest } -func (o *ComputedAttribute) GetConstraints() *ComputedAttributeConstraints { - if o == nil { +func (c *ComputedAttribute) GetConstraints() *ComputedAttributeConstraints { + if c == nil { return nil } - return o.Constraints + return c.Constraints } -func (o *ComputedAttribute) GetFeatureFlag() *string { - if o == nil { +func (c *ComputedAttribute) GetFeatureFlag() *string { + if c == nil { return nil } - return o.FeatureFlag + return c.FeatureFlag } -func (o *ComputedAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (c *ComputedAttribute) GetSettingsFlag() []SettingFlag { + if c == nil { return nil } - return o.SettingsFlag + return c.SettingsFlag } -func (o *ComputedAttribute) GetValueFormatter() string { - if o == nil { +func (c *ComputedAttribute) GetValueFormatter() string { + if c == nil { return "" } - return o.ValueFormatter + return c.ValueFormatter } -func (o *ComputedAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (c *ComputedAttribute) GetPreviewValueFormatter() *string { + if c == nil { return nil } - return o.PreviewValueFormatter + return c.PreviewValueFormatter } -func (o *ComputedAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (c *ComputedAttribute) GetEntityBuilderDisableEdit() *bool { + if c == nil { return nil } - return o.EntityBuilderDisableEdit + return c.EntityBuilderDisableEdit } -func (o *ComputedAttribute) GetProtected() *bool { - if o == nil { +func (c *ComputedAttribute) GetProtected() *bool { + if c == nil { return nil } - return o.Protected + return c.Protected } -func (o *ComputedAttribute) GetInfoHelpers() *ComputedAttributeInfoHelpers { - if o == nil { +func (c *ComputedAttribute) GetInfoHelpers() *ComputedAttributeInfoHelpers { + if c == nil { return nil } - return o.InfoHelpers + return c.InfoHelpers } -func (o *ComputedAttribute) GetRepeatable() *bool { - if o == nil { +func (c *ComputedAttribute) GetRepeatable() *bool { + if c == nil { return nil } - return o.Repeatable + return c.Repeatable } -func (o *ComputedAttribute) GetHasPrimary() *bool { - if o == nil { +func (c *ComputedAttribute) GetHasPrimary() *bool { + if c == nil { return nil } - return o.HasPrimary + return c.HasPrimary } -func (o *ComputedAttribute) GetType() ComputedAttributeType { - if o == nil { +func (c *ComputedAttribute) GetType() ComputedAttributeType { + if c == nil { return ComputedAttributeType("") } - return o.Type + return c.Type } -func (o *ComputedAttribute) GetComputed() *bool { - if o == nil { +func (c *ComputedAttribute) GetComputed() *bool { + if c == nil { return nil } - return o.Computed + return c.Computed } -func (o *ComputedAttribute) GetAmountField() *string { - if o == nil { +func (c *ComputedAttribute) GetAmountField() *string { + if c == nil { return nil } - return o.AmountField + return c.AmountField } -func (o *ComputedAttribute) GetCurrencyField() *string { - if o == nil { +func (c *ComputedAttribute) GetCurrencyField() *string { + if c == nil { return nil } - return o.CurrencyField + return c.CurrencyField } diff --git a/internal/sdk/models/shared/consentattribute.go b/internal/sdk/models/shared/consentattribute.go index 25161d1f..b28a8eaa 100644 --- a/internal/sdk/models/shared/consentattribute.go +++ b/internal/sdk/models/shared/consentattribute.go @@ -56,32 +56,32 @@ func (c *ConsentAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *ConsentAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (c *ConsentAttributeInfoHelpers) GetHintText() *string { + if c == nil { return nil } - return o.HintText + return c.HintText } -func (o *ConsentAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (c *ConsentAttributeInfoHelpers) GetHintTextKey() *string { + if c == nil { return nil } - return o.HintTextKey + return c.HintTextKey } -func (o *ConsentAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (c *ConsentAttributeInfoHelpers) GetHintCustomComponent() *string { + if c == nil { return nil } - return o.HintCustomComponent + return c.HintCustomComponent } -func (o *ConsentAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (c *ConsentAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if c == nil { return nil } - return o.HintTooltipPlacement + return c.HintTooltipPlacement } type ConsentAttributeType string @@ -178,226 +178,226 @@ func (c *ConsentAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *ConsentAttribute) GetID() *string { - if o == nil { +func (c *ConsentAttribute) GetID() *string { + if c == nil { return nil } - return o.ID + return c.ID } -func (o *ConsentAttribute) GetName() string { - if o == nil { +func (c *ConsentAttribute) GetName() string { + if c == nil { return "" } - return o.Name + return c.Name } -func (o *ConsentAttribute) GetLabel() string { - if o == nil { +func (c *ConsentAttribute) GetLabel() string { + if c == nil { return "" } - return o.Label + return c.Label } -func (o *ConsentAttribute) GetPlaceholder() *string { - if o == nil { +func (c *ConsentAttribute) GetPlaceholder() *string { + if c == nil { return nil } - return o.Placeholder + return c.Placeholder } -func (o *ConsentAttribute) GetHidden() *bool { - if o == nil { +func (c *ConsentAttribute) GetHidden() *bool { + if c == nil { return nil } - return o.Hidden + return c.Hidden } -func (o *ConsentAttribute) GetShowInTable() *bool { - if o == nil { +func (c *ConsentAttribute) GetShowInTable() *bool { + if c == nil { return nil } - return o.ShowInTable + return c.ShowInTable } -func (o *ConsentAttribute) GetSortable() *bool { - if o == nil { +func (c *ConsentAttribute) GetSortable() *bool { + if c == nil { return nil } - return o.Sortable + return c.Sortable } -func (o *ConsentAttribute) GetRequired() *bool { - if o == nil { +func (c *ConsentAttribute) GetRequired() *bool { + if c == nil { return nil } - return o.Required + return c.Required } -func (o *ConsentAttribute) GetReadonly() *bool { - if o == nil { +func (c *ConsentAttribute) GetReadonly() *bool { + if c == nil { return nil } - return o.Readonly + return c.Readonly } -func (o *ConsentAttribute) GetDeprecated() *bool { - if o == nil { +func (c *ConsentAttribute) GetDeprecated() *bool { + if c == nil { return nil } - return o.Deprecated + return c.Deprecated } -func (o *ConsentAttribute) GetDefaultValue() any { - if o == nil { +func (c *ConsentAttribute) GetDefaultValue() any { + if c == nil { return nil } - return o.DefaultValue + return c.DefaultValue } -func (o *ConsentAttribute) GetGroup() *string { - if o == nil { +func (c *ConsentAttribute) GetGroup() *string { + if c == nil { return nil } - return o.Group + return c.Group } -func (o *ConsentAttribute) GetOrder() *int64 { - if o == nil { +func (c *ConsentAttribute) GetOrder() *int64 { + if c == nil { return nil } - return o.Order + return c.Order } -func (o *ConsentAttribute) GetLayout() *string { - if o == nil { +func (c *ConsentAttribute) GetLayout() *string { + if c == nil { return nil } - return o.Layout + return c.Layout } -func (o *ConsentAttribute) GetHideLabel() *bool { - if o == nil { +func (c *ConsentAttribute) GetHideLabel() *bool { + if c == nil { return nil } - return o.HideLabel + return c.HideLabel } -func (o *ConsentAttribute) GetIcon() *string { - if o == nil { +func (c *ConsentAttribute) GetIcon() *string { + if c == nil { return nil } - return o.Icon + return c.Icon } -func (o *ConsentAttribute) GetRenderCondition() *string { - if o == nil { +func (c *ConsentAttribute) GetRenderCondition() *string { + if c == nil { return nil } - return o.RenderCondition + return c.RenderCondition } -func (o *ConsentAttribute) GetPurpose() []string { - if o == nil { +func (c *ConsentAttribute) GetPurpose() []string { + if c == nil { return nil } - return o.Purpose + return c.Purpose } -func (o *ConsentAttribute) GetManifest() []string { - if o == nil { +func (c *ConsentAttribute) GetManifest() []string { + if c == nil { return nil } - return o.Manifest + return c.Manifest } -func (o *ConsentAttribute) GetConstraints() *ConsentAttributeConstraints { - if o == nil { +func (c *ConsentAttribute) GetConstraints() *ConsentAttributeConstraints { + if c == nil { return nil } - return o.Constraints + return c.Constraints } -func (o *ConsentAttribute) GetFeatureFlag() *string { - if o == nil { +func (c *ConsentAttribute) GetFeatureFlag() *string { + if c == nil { return nil } - return o.FeatureFlag + return c.FeatureFlag } -func (o *ConsentAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (c *ConsentAttribute) GetSettingsFlag() []SettingFlag { + if c == nil { return nil } - return o.SettingsFlag + return c.SettingsFlag } -func (o *ConsentAttribute) GetValueFormatter() *string { - if o == nil { +func (c *ConsentAttribute) GetValueFormatter() *string { + if c == nil { return nil } - return o.ValueFormatter + return c.ValueFormatter } -func (o *ConsentAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (c *ConsentAttribute) GetPreviewValueFormatter() *string { + if c == nil { return nil } - return o.PreviewValueFormatter + return c.PreviewValueFormatter } -func (o *ConsentAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (c *ConsentAttribute) GetEntityBuilderDisableEdit() *bool { + if c == nil { return nil } - return o.EntityBuilderDisableEdit + return c.EntityBuilderDisableEdit } -func (o *ConsentAttribute) GetProtected() *bool { - if o == nil { +func (c *ConsentAttribute) GetProtected() *bool { + if c == nil { return nil } - return o.Protected + return c.Protected } -func (o *ConsentAttribute) GetInfoHelpers() *ConsentAttributeInfoHelpers { - if o == nil { +func (c *ConsentAttribute) GetInfoHelpers() *ConsentAttributeInfoHelpers { + if c == nil { return nil } - return o.InfoHelpers + return c.InfoHelpers } -func (o *ConsentAttribute) GetRepeatable() *bool { - if o == nil { +func (c *ConsentAttribute) GetRepeatable() *bool { + if c == nil { return nil } - return o.Repeatable + return c.Repeatable } -func (o *ConsentAttribute) GetHasPrimary() *bool { - if o == nil { +func (c *ConsentAttribute) GetHasPrimary() *bool { + if c == nil { return nil } - return o.HasPrimary + return c.HasPrimary } -func (o *ConsentAttribute) GetType() ConsentAttributeType { - if o == nil { +func (c *ConsentAttribute) GetType() ConsentAttributeType { + if c == nil { return ConsentAttributeType("") } - return o.Type + return c.Type } -func (o *ConsentAttribute) GetTopic() string { - if o == nil { +func (c *ConsentAttribute) GetTopic() string { + if c == nil { return "" } - return o.Topic + return c.Topic } -func (o *ConsentAttribute) GetIdentifiers() []string { - if o == nil { +func (c *ConsentAttribute) GetIdentifiers() []string { + if c == nil { return nil } - return o.Identifiers + return c.Identifiers } diff --git a/internal/sdk/models/shared/countryattribute.go b/internal/sdk/models/shared/countryattribute.go index 8f505aaa..4415013d 100644 --- a/internal/sdk/models/shared/countryattribute.go +++ b/internal/sdk/models/shared/countryattribute.go @@ -56,32 +56,32 @@ func (c *CountryAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *CountryAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (c *CountryAttributeInfoHelpers) GetHintText() *string { + if c == nil { return nil } - return o.HintText + return c.HintText } -func (o *CountryAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (c *CountryAttributeInfoHelpers) GetHintTextKey() *string { + if c == nil { return nil } - return o.HintTextKey + return c.HintTextKey } -func (o *CountryAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (c *CountryAttributeInfoHelpers) GetHintCustomComponent() *string { + if c == nil { return nil } - return o.HintCustomComponent + return c.HintCustomComponent } -func (o *CountryAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (c *CountryAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if c == nil { return nil } - return o.HintTooltipPlacement + return c.HintTooltipPlacement } type CountryAttributeType string @@ -176,212 +176,212 @@ func (c *CountryAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *CountryAttribute) GetID() *string { - if o == nil { +func (c *CountryAttribute) GetID() *string { + if c == nil { return nil } - return o.ID + return c.ID } -func (o *CountryAttribute) GetName() string { - if o == nil { +func (c *CountryAttribute) GetName() string { + if c == nil { return "" } - return o.Name + return c.Name } -func (o *CountryAttribute) GetLabel() string { - if o == nil { +func (c *CountryAttribute) GetLabel() string { + if c == nil { return "" } - return o.Label + return c.Label } -func (o *CountryAttribute) GetPlaceholder() *string { - if o == nil { +func (c *CountryAttribute) GetPlaceholder() *string { + if c == nil { return nil } - return o.Placeholder + return c.Placeholder } -func (o *CountryAttribute) GetHidden() *bool { - if o == nil { +func (c *CountryAttribute) GetHidden() *bool { + if c == nil { return nil } - return o.Hidden + return c.Hidden } -func (o *CountryAttribute) GetShowInTable() *bool { - if o == nil { +func (c *CountryAttribute) GetShowInTable() *bool { + if c == nil { return nil } - return o.ShowInTable + return c.ShowInTable } -func (o *CountryAttribute) GetSortable() *bool { - if o == nil { +func (c *CountryAttribute) GetSortable() *bool { + if c == nil { return nil } - return o.Sortable + return c.Sortable } -func (o *CountryAttribute) GetRequired() *bool { - if o == nil { +func (c *CountryAttribute) GetRequired() *bool { + if c == nil { return nil } - return o.Required + return c.Required } -func (o *CountryAttribute) GetReadonly() *bool { - if o == nil { +func (c *CountryAttribute) GetReadonly() *bool { + if c == nil { return nil } - return o.Readonly + return c.Readonly } -func (o *CountryAttribute) GetDeprecated() *bool { - if o == nil { +func (c *CountryAttribute) GetDeprecated() *bool { + if c == nil { return nil } - return o.Deprecated + return c.Deprecated } -func (o *CountryAttribute) GetDefaultValue() any { - if o == nil { +func (c *CountryAttribute) GetDefaultValue() any { + if c == nil { return nil } - return o.DefaultValue + return c.DefaultValue } -func (o *CountryAttribute) GetGroup() *string { - if o == nil { +func (c *CountryAttribute) GetGroup() *string { + if c == nil { return nil } - return o.Group + return c.Group } -func (o *CountryAttribute) GetOrder() *int64 { - if o == nil { +func (c *CountryAttribute) GetOrder() *int64 { + if c == nil { return nil } - return o.Order + return c.Order } -func (o *CountryAttribute) GetLayout() *string { - if o == nil { +func (c *CountryAttribute) GetLayout() *string { + if c == nil { return nil } - return o.Layout + return c.Layout } -func (o *CountryAttribute) GetHideLabel() *bool { - if o == nil { +func (c *CountryAttribute) GetHideLabel() *bool { + if c == nil { return nil } - return o.HideLabel + return c.HideLabel } -func (o *CountryAttribute) GetIcon() *string { - if o == nil { +func (c *CountryAttribute) GetIcon() *string { + if c == nil { return nil } - return o.Icon + return c.Icon } -func (o *CountryAttribute) GetRenderCondition() *string { - if o == nil { +func (c *CountryAttribute) GetRenderCondition() *string { + if c == nil { return nil } - return o.RenderCondition + return c.RenderCondition } -func (o *CountryAttribute) GetPurpose() []string { - if o == nil { +func (c *CountryAttribute) GetPurpose() []string { + if c == nil { return nil } - return o.Purpose + return c.Purpose } -func (o *CountryAttribute) GetManifest() []string { - if o == nil { +func (c *CountryAttribute) GetManifest() []string { + if c == nil { return nil } - return o.Manifest + return c.Manifest } -func (o *CountryAttribute) GetConstraints() *CountryAttributeConstraints { - if o == nil { +func (c *CountryAttribute) GetConstraints() *CountryAttributeConstraints { + if c == nil { return nil } - return o.Constraints + return c.Constraints } -func (o *CountryAttribute) GetFeatureFlag() *string { - if o == nil { +func (c *CountryAttribute) GetFeatureFlag() *string { + if c == nil { return nil } - return o.FeatureFlag + return c.FeatureFlag } -func (o *CountryAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (c *CountryAttribute) GetSettingsFlag() []SettingFlag { + if c == nil { return nil } - return o.SettingsFlag + return c.SettingsFlag } -func (o *CountryAttribute) GetValueFormatter() *string { - if o == nil { +func (c *CountryAttribute) GetValueFormatter() *string { + if c == nil { return nil } - return o.ValueFormatter + return c.ValueFormatter } -func (o *CountryAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (c *CountryAttribute) GetPreviewValueFormatter() *string { + if c == nil { return nil } - return o.PreviewValueFormatter + return c.PreviewValueFormatter } -func (o *CountryAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (c *CountryAttribute) GetEntityBuilderDisableEdit() *bool { + if c == nil { return nil } - return o.EntityBuilderDisableEdit + return c.EntityBuilderDisableEdit } -func (o *CountryAttribute) GetProtected() *bool { - if o == nil { +func (c *CountryAttribute) GetProtected() *bool { + if c == nil { return nil } - return o.Protected + return c.Protected } -func (o *CountryAttribute) GetInfoHelpers() *CountryAttributeInfoHelpers { - if o == nil { +func (c *CountryAttribute) GetInfoHelpers() *CountryAttributeInfoHelpers { + if c == nil { return nil } - return o.InfoHelpers + return c.InfoHelpers } -func (o *CountryAttribute) GetRepeatable() *bool { - if o == nil { +func (c *CountryAttribute) GetRepeatable() *bool { + if c == nil { return nil } - return o.Repeatable + return c.Repeatable } -func (o *CountryAttribute) GetHasPrimary() *bool { - if o == nil { +func (c *CountryAttribute) GetHasPrimary() *bool { + if c == nil { return nil } - return o.HasPrimary + return c.HasPrimary } -func (o *CountryAttribute) GetType() CountryAttributeType { - if o == nil { +func (c *CountryAttribute) GetType() CountryAttributeType { + if c == nil { return CountryAttributeType("") } - return o.Type + return c.Type } diff --git a/internal/sdk/models/shared/currencyattribute.go b/internal/sdk/models/shared/currencyattribute.go index 3269bd75..eca8c483 100644 --- a/internal/sdk/models/shared/currencyattribute.go +++ b/internal/sdk/models/shared/currencyattribute.go @@ -57,32 +57,32 @@ func (c *CurrencyAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *CurrencyAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (c *CurrencyAttributeInfoHelpers) GetHintText() *string { + if c == nil { return nil } - return o.HintText + return c.HintText } -func (o *CurrencyAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (c *CurrencyAttributeInfoHelpers) GetHintTextKey() *string { + if c == nil { return nil } - return o.HintTextKey + return c.HintTextKey } -func (o *CurrencyAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (c *CurrencyAttributeInfoHelpers) GetHintCustomComponent() *string { + if c == nil { return nil } - return o.HintCustomComponent + return c.HintCustomComponent } -func (o *CurrencyAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (c *CurrencyAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if c == nil { return nil } - return o.HintTooltipPlacement + return c.HintTooltipPlacement } type CurrencyAttributeType string @@ -162,7 +162,7 @@ const ( ) type Currency struct { - One *One `queryParam:"inline" name:"currency"` + One *One `queryParam:"inline,name=currency"` Type CurrencyType } @@ -178,10 +178,32 @@ func CreateCurrencyOne(one One) Currency { func (u *Currency) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var one One = One{} if err := utils.UnmarshalJSON(data, &one, "", true, nil); err == nil { - u.One = &one - u.Type = CurrencyTypeOne + candidates = append(candidates, utils.UnionCandidate{ + Type: CurrencyTypeOne, + Value: &one, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Currency", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Currency", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(CurrencyType) + switch best.Type { + case CurrencyTypeOne: + u.One = best.Value.(*One) return nil } @@ -268,226 +290,226 @@ func (c *CurrencyAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *CurrencyAttribute) GetID() *string { - if o == nil { +func (c *CurrencyAttribute) GetID() *string { + if c == nil { return nil } - return o.ID + return c.ID } -func (o *CurrencyAttribute) GetName() string { - if o == nil { +func (c *CurrencyAttribute) GetName() string { + if c == nil { return "" } - return o.Name + return c.Name } -func (o *CurrencyAttribute) GetLabel() string { - if o == nil { +func (c *CurrencyAttribute) GetLabel() string { + if c == nil { return "" } - return o.Label + return c.Label } -func (o *CurrencyAttribute) GetPlaceholder() *string { - if o == nil { +func (c *CurrencyAttribute) GetPlaceholder() *string { + if c == nil { return nil } - return o.Placeholder + return c.Placeholder } -func (o *CurrencyAttribute) GetHidden() *bool { - if o == nil { +func (c *CurrencyAttribute) GetHidden() *bool { + if c == nil { return nil } - return o.Hidden + return c.Hidden } -func (o *CurrencyAttribute) GetShowInTable() *bool { - if o == nil { +func (c *CurrencyAttribute) GetShowInTable() *bool { + if c == nil { return nil } - return o.ShowInTable + return c.ShowInTable } -func (o *CurrencyAttribute) GetSortable() *bool { - if o == nil { +func (c *CurrencyAttribute) GetSortable() *bool { + if c == nil { return nil } - return o.Sortable + return c.Sortable } -func (o *CurrencyAttribute) GetRequired() *bool { - if o == nil { +func (c *CurrencyAttribute) GetRequired() *bool { + if c == nil { return nil } - return o.Required + return c.Required } -func (o *CurrencyAttribute) GetReadonly() *bool { - if o == nil { +func (c *CurrencyAttribute) GetReadonly() *bool { + if c == nil { return nil } - return o.Readonly + return c.Readonly } -func (o *CurrencyAttribute) GetDeprecated() *bool { - if o == nil { +func (c *CurrencyAttribute) GetDeprecated() *bool { + if c == nil { return nil } - return o.Deprecated + return c.Deprecated } -func (o *CurrencyAttribute) GetDefaultValue() any { - if o == nil { +func (c *CurrencyAttribute) GetDefaultValue() any { + if c == nil { return nil } - return o.DefaultValue + return c.DefaultValue } -func (o *CurrencyAttribute) GetGroup() *string { - if o == nil { +func (c *CurrencyAttribute) GetGroup() *string { + if c == nil { return nil } - return o.Group + return c.Group } -func (o *CurrencyAttribute) GetOrder() *int64 { - if o == nil { +func (c *CurrencyAttribute) GetOrder() *int64 { + if c == nil { return nil } - return o.Order + return c.Order } -func (o *CurrencyAttribute) GetLayout() *string { - if o == nil { +func (c *CurrencyAttribute) GetLayout() *string { + if c == nil { return nil } - return o.Layout + return c.Layout } -func (o *CurrencyAttribute) GetHideLabel() *bool { - if o == nil { +func (c *CurrencyAttribute) GetHideLabel() *bool { + if c == nil { return nil } - return o.HideLabel + return c.HideLabel } -func (o *CurrencyAttribute) GetIcon() *string { - if o == nil { +func (c *CurrencyAttribute) GetIcon() *string { + if c == nil { return nil } - return o.Icon + return c.Icon } -func (o *CurrencyAttribute) GetRenderCondition() *string { - if o == nil { +func (c *CurrencyAttribute) GetRenderCondition() *string { + if c == nil { return nil } - return o.RenderCondition + return c.RenderCondition } -func (o *CurrencyAttribute) GetPurpose() []string { - if o == nil { +func (c *CurrencyAttribute) GetPurpose() []string { + if c == nil { return nil } - return o.Purpose + return c.Purpose } -func (o *CurrencyAttribute) GetManifest() []string { - if o == nil { +func (c *CurrencyAttribute) GetManifest() []string { + if c == nil { return nil } - return o.Manifest + return c.Manifest } -func (o *CurrencyAttribute) GetConstraints() *CurrencyAttributeConstraints { - if o == nil { +func (c *CurrencyAttribute) GetConstraints() *CurrencyAttributeConstraints { + if c == nil { return nil } - return o.Constraints + return c.Constraints } -func (o *CurrencyAttribute) GetFeatureFlag() *string { - if o == nil { +func (c *CurrencyAttribute) GetFeatureFlag() *string { + if c == nil { return nil } - return o.FeatureFlag + return c.FeatureFlag } -func (o *CurrencyAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (c *CurrencyAttribute) GetSettingsFlag() []SettingFlag { + if c == nil { return nil } - return o.SettingsFlag + return c.SettingsFlag } -func (o *CurrencyAttribute) GetValueFormatter() *string { - if o == nil { +func (c *CurrencyAttribute) GetValueFormatter() *string { + if c == nil { return nil } - return o.ValueFormatter + return c.ValueFormatter } -func (o *CurrencyAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (c *CurrencyAttribute) GetPreviewValueFormatter() *string { + if c == nil { return nil } - return o.PreviewValueFormatter + return c.PreviewValueFormatter } -func (o *CurrencyAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (c *CurrencyAttribute) GetEntityBuilderDisableEdit() *bool { + if c == nil { return nil } - return o.EntityBuilderDisableEdit + return c.EntityBuilderDisableEdit } -func (o *CurrencyAttribute) GetProtected() *bool { - if o == nil { +func (c *CurrencyAttribute) GetProtected() *bool { + if c == nil { return nil } - return o.Protected + return c.Protected } -func (o *CurrencyAttribute) GetInfoHelpers() *CurrencyAttributeInfoHelpers { - if o == nil { +func (c *CurrencyAttribute) GetInfoHelpers() *CurrencyAttributeInfoHelpers { + if c == nil { return nil } - return o.InfoHelpers + return c.InfoHelpers } -func (o *CurrencyAttribute) GetRepeatable() *bool { - if o == nil { +func (c *CurrencyAttribute) GetRepeatable() *bool { + if c == nil { return nil } - return o.Repeatable + return c.Repeatable } -func (o *CurrencyAttribute) GetHasPrimary() *bool { - if o == nil { +func (c *CurrencyAttribute) GetHasPrimary() *bool { + if c == nil { return nil } - return o.HasPrimary + return c.HasPrimary } -func (o *CurrencyAttribute) GetType() CurrencyAttributeType { - if o == nil { +func (c *CurrencyAttribute) GetType() CurrencyAttributeType { + if c == nil { return CurrencyAttributeType("") } - return o.Type + return c.Type } -func (o *CurrencyAttribute) GetCurrencySelectorOnly() *bool { - if o == nil { +func (c *CurrencyAttribute) GetCurrencySelectorOnly() *bool { + if c == nil { return nil } - return o.CurrencySelectorOnly + return c.CurrencySelectorOnly } -func (o *CurrencyAttribute) GetCurrency() []Currency { - if o == nil { +func (c *CurrencyAttribute) GetCurrency() []Currency { + if c == nil { return []Currency{} } - return o.Currency + return c.Currency } diff --git a/internal/sdk/models/shared/dateattribute.go b/internal/sdk/models/shared/dateattribute.go index 76e96888..c9aa6ef5 100644 --- a/internal/sdk/models/shared/dateattribute.go +++ b/internal/sdk/models/shared/dateattribute.go @@ -56,32 +56,32 @@ func (d *DateAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *DateAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (d *DateAttributeInfoHelpers) GetHintText() *string { + if d == nil { return nil } - return o.HintText + return d.HintText } -func (o *DateAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (d *DateAttributeInfoHelpers) GetHintTextKey() *string { + if d == nil { return nil } - return o.HintTextKey + return d.HintTextKey } -func (o *DateAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (d *DateAttributeInfoHelpers) GetHintCustomComponent() *string { + if d == nil { return nil } - return o.HintCustomComponent + return d.HintCustomComponent } -func (o *DateAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (d *DateAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if d == nil { return nil } - return o.HintTooltipPlacement + return d.HintTooltipPlacement } type DateAttributeType string @@ -179,212 +179,212 @@ func (d *DateAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *DateAttribute) GetID() *string { - if o == nil { +func (d *DateAttribute) GetID() *string { + if d == nil { return nil } - return o.ID + return d.ID } -func (o *DateAttribute) GetName() string { - if o == nil { +func (d *DateAttribute) GetName() string { + if d == nil { return "" } - return o.Name + return d.Name } -func (o *DateAttribute) GetLabel() string { - if o == nil { +func (d *DateAttribute) GetLabel() string { + if d == nil { return "" } - return o.Label + return d.Label } -func (o *DateAttribute) GetPlaceholder() *string { - if o == nil { +func (d *DateAttribute) GetPlaceholder() *string { + if d == nil { return nil } - return o.Placeholder + return d.Placeholder } -func (o *DateAttribute) GetHidden() *bool { - if o == nil { +func (d *DateAttribute) GetHidden() *bool { + if d == nil { return nil } - return o.Hidden + return d.Hidden } -func (o *DateAttribute) GetShowInTable() *bool { - if o == nil { +func (d *DateAttribute) GetShowInTable() *bool { + if d == nil { return nil } - return o.ShowInTable + return d.ShowInTable } -func (o *DateAttribute) GetSortable() *bool { - if o == nil { +func (d *DateAttribute) GetSortable() *bool { + if d == nil { return nil } - return o.Sortable + return d.Sortable } -func (o *DateAttribute) GetRequired() *bool { - if o == nil { +func (d *DateAttribute) GetRequired() *bool { + if d == nil { return nil } - return o.Required + return d.Required } -func (o *DateAttribute) GetReadonly() *bool { - if o == nil { +func (d *DateAttribute) GetReadonly() *bool { + if d == nil { return nil } - return o.Readonly + return d.Readonly } -func (o *DateAttribute) GetDeprecated() *bool { - if o == nil { +func (d *DateAttribute) GetDeprecated() *bool { + if d == nil { return nil } - return o.Deprecated + return d.Deprecated } -func (o *DateAttribute) GetDefaultValue() any { - if o == nil { +func (d *DateAttribute) GetDefaultValue() any { + if d == nil { return nil } - return o.DefaultValue + return d.DefaultValue } -func (o *DateAttribute) GetGroup() *string { - if o == nil { +func (d *DateAttribute) GetGroup() *string { + if d == nil { return nil } - return o.Group + return d.Group } -func (o *DateAttribute) GetOrder() *int64 { - if o == nil { +func (d *DateAttribute) GetOrder() *int64 { + if d == nil { return nil } - return o.Order + return d.Order } -func (o *DateAttribute) GetLayout() *string { - if o == nil { +func (d *DateAttribute) GetLayout() *string { + if d == nil { return nil } - return o.Layout + return d.Layout } -func (o *DateAttribute) GetHideLabel() *bool { - if o == nil { +func (d *DateAttribute) GetHideLabel() *bool { + if d == nil { return nil } - return o.HideLabel + return d.HideLabel } -func (o *DateAttribute) GetIcon() *string { - if o == nil { +func (d *DateAttribute) GetIcon() *string { + if d == nil { return nil } - return o.Icon + return d.Icon } -func (o *DateAttribute) GetRenderCondition() *string { - if o == nil { +func (d *DateAttribute) GetRenderCondition() *string { + if d == nil { return nil } - return o.RenderCondition + return d.RenderCondition } -func (o *DateAttribute) GetPurpose() []string { - if o == nil { +func (d *DateAttribute) GetPurpose() []string { + if d == nil { return nil } - return o.Purpose + return d.Purpose } -func (o *DateAttribute) GetManifest() []string { - if o == nil { +func (d *DateAttribute) GetManifest() []string { + if d == nil { return nil } - return o.Manifest + return d.Manifest } -func (o *DateAttribute) GetConstraints() *DateAttributeConstraints { - if o == nil { +func (d *DateAttribute) GetConstraints() *DateAttributeConstraints { + if d == nil { return nil } - return o.Constraints + return d.Constraints } -func (o *DateAttribute) GetFeatureFlag() *string { - if o == nil { +func (d *DateAttribute) GetFeatureFlag() *string { + if d == nil { return nil } - return o.FeatureFlag + return d.FeatureFlag } -func (o *DateAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (d *DateAttribute) GetSettingsFlag() []SettingFlag { + if d == nil { return nil } - return o.SettingsFlag + return d.SettingsFlag } -func (o *DateAttribute) GetValueFormatter() *string { - if o == nil { +func (d *DateAttribute) GetValueFormatter() *string { + if d == nil { return nil } - return o.ValueFormatter + return d.ValueFormatter } -func (o *DateAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (d *DateAttribute) GetPreviewValueFormatter() *string { + if d == nil { return nil } - return o.PreviewValueFormatter + return d.PreviewValueFormatter } -func (o *DateAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (d *DateAttribute) GetEntityBuilderDisableEdit() *bool { + if d == nil { return nil } - return o.EntityBuilderDisableEdit + return d.EntityBuilderDisableEdit } -func (o *DateAttribute) GetProtected() *bool { - if o == nil { +func (d *DateAttribute) GetProtected() *bool { + if d == nil { return nil } - return o.Protected + return d.Protected } -func (o *DateAttribute) GetInfoHelpers() *DateAttributeInfoHelpers { - if o == nil { +func (d *DateAttribute) GetInfoHelpers() *DateAttributeInfoHelpers { + if d == nil { return nil } - return o.InfoHelpers + return d.InfoHelpers } -func (o *DateAttribute) GetRepeatable() *bool { - if o == nil { +func (d *DateAttribute) GetRepeatable() *bool { + if d == nil { return nil } - return o.Repeatable + return d.Repeatable } -func (o *DateAttribute) GetHasPrimary() *bool { - if o == nil { +func (d *DateAttribute) GetHasPrimary() *bool { + if d == nil { return nil } - return o.HasPrimary + return d.HasPrimary } -func (o *DateAttribute) GetType() DateAttributeType { - if o == nil { +func (d *DateAttribute) GetType() DateAttributeType { + if d == nil { return DateAttributeType("") } - return o.Type + return d.Type } diff --git a/internal/sdk/models/shared/emailattribute.go b/internal/sdk/models/shared/emailattribute.go index 0032d1e8..a2310000 100644 --- a/internal/sdk/models/shared/emailattribute.go +++ b/internal/sdk/models/shared/emailattribute.go @@ -56,32 +56,32 @@ func (e *EmailAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *EmailAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (e *EmailAttributeInfoHelpers) GetHintText() *string { + if e == nil { return nil } - return o.HintText + return e.HintText } -func (o *EmailAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (e *EmailAttributeInfoHelpers) GetHintTextKey() *string { + if e == nil { return nil } - return o.HintTextKey + return e.HintTextKey } -func (o *EmailAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (e *EmailAttributeInfoHelpers) GetHintCustomComponent() *string { + if e == nil { return nil } - return o.HintCustomComponent + return e.HintCustomComponent } -func (o *EmailAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (e *EmailAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if e == nil { return nil } - return o.HintTooltipPlacement + return e.HintTooltipPlacement } type EmailAttributeType string @@ -176,212 +176,212 @@ func (e *EmailAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *EmailAttribute) GetID() *string { - if o == nil { +func (e *EmailAttribute) GetID() *string { + if e == nil { return nil } - return o.ID + return e.ID } -func (o *EmailAttribute) GetName() string { - if o == nil { +func (e *EmailAttribute) GetName() string { + if e == nil { return "" } - return o.Name + return e.Name } -func (o *EmailAttribute) GetLabel() string { - if o == nil { +func (e *EmailAttribute) GetLabel() string { + if e == nil { return "" } - return o.Label + return e.Label } -func (o *EmailAttribute) GetPlaceholder() *string { - if o == nil { +func (e *EmailAttribute) GetPlaceholder() *string { + if e == nil { return nil } - return o.Placeholder + return e.Placeholder } -func (o *EmailAttribute) GetHidden() *bool { - if o == nil { +func (e *EmailAttribute) GetHidden() *bool { + if e == nil { return nil } - return o.Hidden + return e.Hidden } -func (o *EmailAttribute) GetShowInTable() *bool { - if o == nil { +func (e *EmailAttribute) GetShowInTable() *bool { + if e == nil { return nil } - return o.ShowInTable + return e.ShowInTable } -func (o *EmailAttribute) GetSortable() *bool { - if o == nil { +func (e *EmailAttribute) GetSortable() *bool { + if e == nil { return nil } - return o.Sortable + return e.Sortable } -func (o *EmailAttribute) GetRequired() *bool { - if o == nil { +func (e *EmailAttribute) GetRequired() *bool { + if e == nil { return nil } - return o.Required + return e.Required } -func (o *EmailAttribute) GetReadonly() *bool { - if o == nil { +func (e *EmailAttribute) GetReadonly() *bool { + if e == nil { return nil } - return o.Readonly + return e.Readonly } -func (o *EmailAttribute) GetDeprecated() *bool { - if o == nil { +func (e *EmailAttribute) GetDeprecated() *bool { + if e == nil { return nil } - return o.Deprecated + return e.Deprecated } -func (o *EmailAttribute) GetDefaultValue() any { - if o == nil { +func (e *EmailAttribute) GetDefaultValue() any { + if e == nil { return nil } - return o.DefaultValue + return e.DefaultValue } -func (o *EmailAttribute) GetGroup() *string { - if o == nil { +func (e *EmailAttribute) GetGroup() *string { + if e == nil { return nil } - return o.Group + return e.Group } -func (o *EmailAttribute) GetOrder() *int64 { - if o == nil { +func (e *EmailAttribute) GetOrder() *int64 { + if e == nil { return nil } - return o.Order + return e.Order } -func (o *EmailAttribute) GetLayout() *string { - if o == nil { +func (e *EmailAttribute) GetLayout() *string { + if e == nil { return nil } - return o.Layout + return e.Layout } -func (o *EmailAttribute) GetHideLabel() *bool { - if o == nil { +func (e *EmailAttribute) GetHideLabel() *bool { + if e == nil { return nil } - return o.HideLabel + return e.HideLabel } -func (o *EmailAttribute) GetIcon() *string { - if o == nil { +func (e *EmailAttribute) GetIcon() *string { + if e == nil { return nil } - return o.Icon + return e.Icon } -func (o *EmailAttribute) GetRenderCondition() *string { - if o == nil { +func (e *EmailAttribute) GetRenderCondition() *string { + if e == nil { return nil } - return o.RenderCondition + return e.RenderCondition } -func (o *EmailAttribute) GetPurpose() []string { - if o == nil { +func (e *EmailAttribute) GetPurpose() []string { + if e == nil { return nil } - return o.Purpose + return e.Purpose } -func (o *EmailAttribute) GetManifest() []string { - if o == nil { +func (e *EmailAttribute) GetManifest() []string { + if e == nil { return nil } - return o.Manifest + return e.Manifest } -func (o *EmailAttribute) GetConstraints() *EmailAttributeConstraints { - if o == nil { +func (e *EmailAttribute) GetConstraints() *EmailAttributeConstraints { + if e == nil { return nil } - return o.Constraints + return e.Constraints } -func (o *EmailAttribute) GetFeatureFlag() *string { - if o == nil { +func (e *EmailAttribute) GetFeatureFlag() *string { + if e == nil { return nil } - return o.FeatureFlag + return e.FeatureFlag } -func (o *EmailAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (e *EmailAttribute) GetSettingsFlag() []SettingFlag { + if e == nil { return nil } - return o.SettingsFlag + return e.SettingsFlag } -func (o *EmailAttribute) GetValueFormatter() *string { - if o == nil { +func (e *EmailAttribute) GetValueFormatter() *string { + if e == nil { return nil } - return o.ValueFormatter + return e.ValueFormatter } -func (o *EmailAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (e *EmailAttribute) GetPreviewValueFormatter() *string { + if e == nil { return nil } - return o.PreviewValueFormatter + return e.PreviewValueFormatter } -func (o *EmailAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (e *EmailAttribute) GetEntityBuilderDisableEdit() *bool { + if e == nil { return nil } - return o.EntityBuilderDisableEdit + return e.EntityBuilderDisableEdit } -func (o *EmailAttribute) GetProtected() *bool { - if o == nil { +func (e *EmailAttribute) GetProtected() *bool { + if e == nil { return nil } - return o.Protected + return e.Protected } -func (o *EmailAttribute) GetInfoHelpers() *EmailAttributeInfoHelpers { - if o == nil { +func (e *EmailAttribute) GetInfoHelpers() *EmailAttributeInfoHelpers { + if e == nil { return nil } - return o.InfoHelpers + return e.InfoHelpers } -func (o *EmailAttribute) GetRepeatable() *bool { - if o == nil { +func (e *EmailAttribute) GetRepeatable() *bool { + if e == nil { return nil } - return o.Repeatable + return e.Repeatable } -func (o *EmailAttribute) GetHasPrimary() *bool { - if o == nil { +func (e *EmailAttribute) GetHasPrimary() *bool { + if e == nil { return nil } - return o.HasPrimary + return e.HasPrimary } -func (o *EmailAttribute) GetType() EmailAttributeType { - if o == nil { +func (e *EmailAttribute) GetType() EmailAttributeType { + if e == nil { return EmailAttributeType("") } - return o.Type + return e.Type } diff --git a/internal/sdk/models/shared/entityaction.go b/internal/sdk/models/shared/entityaction.go index 18185cd8..11f84911 100644 --- a/internal/sdk/models/shared/entityaction.go +++ b/internal/sdk/models/shared/entityaction.go @@ -29,30 +29,30 @@ func (e *EntityAction) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityAction) GetAction() string { - if o == nil { +func (e *EntityAction) GetAction() string { + if e == nil { return "" } - return o.Action + return e.Action } -func (o *EntityAction) GetLabel() string { - if o == nil { +func (e *EntityAction) GetLabel() string { + if e == nil { return "" } - return o.Label + return e.Label } -func (o *EntityAction) GetIcon() *string { - if o == nil { +func (e *EntityAction) GetIcon() *string { + if e == nil { return nil } - return o.Icon + return e.Icon } -func (o *EntityAction) GetPermission() *string { - if o == nil { +func (e *EntityAction) GetPermission() *string { + if e == nil { return nil } - return o.Permission + return e.Permission } diff --git a/internal/sdk/models/shared/entitycapability.go b/internal/sdk/models/shared/entitycapability.go index 8a5e6e92..f8903ce9 100644 --- a/internal/sdk/models/shared/entitycapability.go +++ b/internal/sdk/models/shared/entitycapability.go @@ -22,11 +22,11 @@ func (e *EntityCapabilityUIConfig) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityCapabilityUIConfig) GetIsFilterable() *bool { - if o == nil { +func (e *EntityCapabilityUIConfig) GetIsFilterable() *bool { + if e == nil { return nil } - return o.IsFilterable + return e.IsFilterable } // RequiredPermission - Require a permission to display UI hook @@ -35,18 +35,18 @@ type RequiredPermission struct { Resource *string `json:"resource,omitempty"` } -func (o *RequiredPermission) GetAction() string { - if o == nil { +func (r *RequiredPermission) GetAction() string { + if r == nil { return "" } - return o.Action + return r.Action } -func (o *RequiredPermission) GetResource() *string { - if o == nil { +func (r *RequiredPermission) GetResource() *string { + if r == nil { return nil } - return o.Resource + return r.Resource } type UIHooks struct { @@ -86,95 +86,95 @@ func (u *UIHooks) UnmarshalJSON(data []byte) error { return nil } -func (o *UIHooks) GetHook() string { - if o == nil { +func (u *UIHooks) GetHook() string { + if u == nil { return "" } - return o.Hook + return u.Hook } -func (o *UIHooks) GetRenderCondition() *string { - if o == nil { +func (u *UIHooks) GetRenderCondition() *string { + if u == nil { return nil } - return o.RenderCondition + return u.RenderCondition } -func (o *UIHooks) GetOrder() *int64 { - if o == nil { +func (u *UIHooks) GetOrder() *int64 { + if u == nil { return nil } - return o.Order + return u.Order } -func (o *UIHooks) GetTitle() *string { - if o == nil { +func (u *UIHooks) GetTitle() *string { + if u == nil { return nil } - return o.Title + return u.Title } -func (o *UIHooks) GetGroupExpanded() *bool { - if o == nil { +func (u *UIHooks) GetGroupExpanded() *bool { + if u == nil { return nil } - return o.GroupExpanded + return u.GroupExpanded } -func (o *UIHooks) GetImport() *string { - if o == nil { +func (u *UIHooks) GetImport() *string { + if u == nil { return nil } - return o.Import + return u.Import } -func (o *UIHooks) GetComponent() *string { - if o == nil { +func (u *UIHooks) GetComponent() *string { + if u == nil { return nil } - return o.Component + return u.Component } -func (o *UIHooks) GetRoute() *string { - if o == nil { +func (u *UIHooks) GetRoute() *string { + if u == nil { return nil } - return o.Route + return u.Route } -func (o *UIHooks) GetIcon() *string { - if o == nil { +func (u *UIHooks) GetIcon() *string { + if u == nil { return nil } - return o.Icon + return u.Icon } -func (o *UIHooks) GetDisabled() *bool { - if o == nil { +func (u *UIHooks) GetDisabled() *bool { + if u == nil { return nil } - return o.Disabled + return u.Disabled } -func (o *UIHooks) GetHeader() *bool { - if o == nil { +func (u *UIHooks) GetHeader() *bool { + if u == nil { return nil } - return o.Header + return u.Header } -func (o *UIHooks) GetRequiredPermission() *RequiredPermission { - if o == nil { +func (u *UIHooks) GetRequiredPermission() *RequiredPermission { + if u == nil { return nil } - return o.RequiredPermission + return u.RequiredPermission } -func (o *UIHooks) GetAdditionalProperties() any { - if o == nil { +func (u *UIHooks) GetAdditionalProperties() any { + if u == nil { return nil } - return o.AdditionalProperties + return u.AdditionalProperties } // EntityCapability - Capabilities the Entity has. Turn features on/off for entities. @@ -199,79 +199,79 @@ type EntityCapability struct { SettingsFlag []SettingFlag `json:"settings_flag,omitempty"` } -func (o *EntityCapability) GetID() *string { - if o == nil { +func (e *EntityCapability) GetID() *string { + if e == nil { return nil } - return o.ID + return e.ID } -func (o *EntityCapability) GetName() string { - if o == nil { +func (e *EntityCapability) GetName() string { + if e == nil { return "" } - return o.Name + return e.Name } -func (o *EntityCapability) GetTitle() *string { - if o == nil { +func (e *EntityCapability) GetTitle() *string { + if e == nil { return nil } - return o.Title + return e.Title } -func (o *EntityCapability) GetAttributes() []Attribute { - if o == nil { +func (e *EntityCapability) GetAttributes() []Attribute { + if e == nil { return nil } - return o.Attributes + return e.Attributes } -func (o *EntityCapability) GetPurpose() []string { - if o == nil { +func (e *EntityCapability) GetPurpose() []string { + if e == nil { return nil } - return o.Purpose + return e.Purpose } -func (o *EntityCapability) GetManifest() []string { - if o == nil { +func (e *EntityCapability) GetManifest() []string { + if e == nil { return nil } - return o.Manifest + return e.Manifest } -func (o *EntityCapability) GetAppID() *string { - if o == nil { +func (e *EntityCapability) GetAppID() *string { + if e == nil { return nil } - return o.AppID + return e.AppID } -func (o *EntityCapability) GetUIConfig() *EntityCapabilityUIConfig { - if o == nil { +func (e *EntityCapability) GetUIConfig() *EntityCapabilityUIConfig { + if e == nil { return nil } - return o.UIConfig + return e.UIConfig } -func (o *EntityCapability) GetUIHooks() []UIHooks { - if o == nil { +func (e *EntityCapability) GetUIHooks() []UIHooks { + if e == nil { return nil } - return o.UIHooks + return e.UIHooks } -func (o *EntityCapability) GetFeatureFlag() *string { - if o == nil { +func (e *EntityCapability) GetFeatureFlag() *string { + if e == nil { return nil } - return o.FeatureFlag + return e.FeatureFlag } -func (o *EntityCapability) GetSettingsFlag() []SettingFlag { - if o == nil { +func (e *EntityCapability) GetSettingsFlag() []SettingFlag { + if e == nil { return nil } - return o.SettingsFlag + return e.SettingsFlag } diff --git a/internal/sdk/models/shared/entitycapabilitywithcompositeid.go b/internal/sdk/models/shared/entitycapabilitywithcompositeid.go index 9d5737d1..7ac2d162 100644 --- a/internal/sdk/models/shared/entitycapabilitywithcompositeid.go +++ b/internal/sdk/models/shared/entitycapabilitywithcompositeid.go @@ -22,11 +22,11 @@ func (e *EntityCapabilityWithCompositeIDUIConfig) UnmarshalJSON(data []byte) err return nil } -func (o *EntityCapabilityWithCompositeIDUIConfig) GetIsFilterable() *bool { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIConfig) GetIsFilterable() *bool { + if e == nil { return nil } - return o.IsFilterable + return e.IsFilterable } // EntityCapabilityWithCompositeIDRequiredPermission - Require a permission to display UI hook @@ -35,18 +35,18 @@ type EntityCapabilityWithCompositeIDRequiredPermission struct { Resource *string `json:"resource,omitempty"` } -func (o *EntityCapabilityWithCompositeIDRequiredPermission) GetAction() string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDRequiredPermission) GetAction() string { + if e == nil { return "" } - return o.Action + return e.Action } -func (o *EntityCapabilityWithCompositeIDRequiredPermission) GetResource() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDRequiredPermission) GetResource() *string { + if e == nil { return nil } - return o.Resource + return e.Resource } type EntityCapabilityWithCompositeIDUIHooks struct { @@ -86,95 +86,95 @@ func (e *EntityCapabilityWithCompositeIDUIHooks) UnmarshalJSON(data []byte) erro return nil } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetHook() string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetHook() string { + if e == nil { return "" } - return o.Hook + return e.Hook } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetRenderCondition() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetRenderCondition() *string { + if e == nil { return nil } - return o.RenderCondition + return e.RenderCondition } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetOrder() *int64 { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetOrder() *int64 { + if e == nil { return nil } - return o.Order + return e.Order } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetTitle() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetTitle() *string { + if e == nil { return nil } - return o.Title + return e.Title } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetGroupExpanded() *bool { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetGroupExpanded() *bool { + if e == nil { return nil } - return o.GroupExpanded + return e.GroupExpanded } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetImport() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetImport() *string { + if e == nil { return nil } - return o.Import + return e.Import } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetComponent() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetComponent() *string { + if e == nil { return nil } - return o.Component + return e.Component } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetRoute() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetRoute() *string { + if e == nil { return nil } - return o.Route + return e.Route } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetIcon() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetIcon() *string { + if e == nil { return nil } - return o.Icon + return e.Icon } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetDisabled() *bool { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetDisabled() *bool { + if e == nil { return nil } - return o.Disabled + return e.Disabled } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetHeader() *bool { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetHeader() *bool { + if e == nil { return nil } - return o.Header + return e.Header } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetRequiredPermission() *EntityCapabilityWithCompositeIDRequiredPermission { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetRequiredPermission() *EntityCapabilityWithCompositeIDRequiredPermission { + if e == nil { return nil } - return o.RequiredPermission + return e.RequiredPermission } -func (o *EntityCapabilityWithCompositeIDUIHooks) GetAdditionalProperties() any { - if o == nil { +func (e *EntityCapabilityWithCompositeIDUIHooks) GetAdditionalProperties() any { + if e == nil { return nil } - return o.AdditionalProperties + return e.AdditionalProperties } // EntityCapabilityWithCompositeID - a readonly computed ID for the entity capability including schema slug and the capability ID @@ -202,95 +202,95 @@ type EntityCapabilityWithCompositeID struct { Schema *string `json:"schema,omitempty"` } -func (o *EntityCapabilityWithCompositeID) GetID() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetID() *string { + if e == nil { return nil } - return o.ID + return e.ID } -func (o *EntityCapabilityWithCompositeID) GetName() string { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetName() string { + if e == nil { return "" } - return o.Name + return e.Name } -func (o *EntityCapabilityWithCompositeID) GetTitle() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetTitle() *string { + if e == nil { return nil } - return o.Title + return e.Title } -func (o *EntityCapabilityWithCompositeID) GetAttributes() []Attribute { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetAttributes() []Attribute { + if e == nil { return nil } - return o.Attributes + return e.Attributes } -func (o *EntityCapabilityWithCompositeID) GetPurpose() []string { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetPurpose() []string { + if e == nil { return nil } - return o.Purpose + return e.Purpose } -func (o *EntityCapabilityWithCompositeID) GetManifest() []string { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetManifest() []string { + if e == nil { return nil } - return o.Manifest + return e.Manifest } -func (o *EntityCapabilityWithCompositeID) GetAppID() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetAppID() *string { + if e == nil { return nil } - return o.AppID + return e.AppID } -func (o *EntityCapabilityWithCompositeID) GetUIConfig() *EntityCapabilityWithCompositeIDUIConfig { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetUIConfig() *EntityCapabilityWithCompositeIDUIConfig { + if e == nil { return nil } - return o.UIConfig + return e.UIConfig } -func (o *EntityCapabilityWithCompositeID) GetUIHooks() []EntityCapabilityWithCompositeIDUIHooks { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetUIHooks() []EntityCapabilityWithCompositeIDUIHooks { + if e == nil { return nil } - return o.UIHooks + return e.UIHooks } -func (o *EntityCapabilityWithCompositeID) GetFeatureFlag() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetFeatureFlag() *string { + if e == nil { return nil } - return o.FeatureFlag + return e.FeatureFlag } -func (o *EntityCapabilityWithCompositeID) GetSettingsFlag() []SettingFlag { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetSettingsFlag() []SettingFlag { + if e == nil { return nil } - return o.SettingsFlag + return e.SettingsFlag } -func (o *EntityCapabilityWithCompositeID) GetCompositeID() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetCompositeID() *string { + if e == nil { return nil } - return o.CompositeID + return e.CompositeID } -func (o *EntityCapabilityWithCompositeID) GetSchema() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeID) GetSchema() *string { + if e == nil { return nil } - return o.Schema + return e.Schema } // EntityCapabilityWithCompositeIDInput - a readonly computed ID for the entity capability including schema slug and the capability ID @@ -317,86 +317,86 @@ type EntityCapabilityWithCompositeIDInput struct { Schema *string `json:"schema,omitempty"` } -func (o *EntityCapabilityWithCompositeIDInput) GetID() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetID() *string { + if e == nil { return nil } - return o.ID + return e.ID } -func (o *EntityCapabilityWithCompositeIDInput) GetName() string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetName() string { + if e == nil { return "" } - return o.Name + return e.Name } -func (o *EntityCapabilityWithCompositeIDInput) GetTitle() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetTitle() *string { + if e == nil { return nil } - return o.Title + return e.Title } -func (o *EntityCapabilityWithCompositeIDInput) GetAttributes() []Attribute { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetAttributes() []Attribute { + if e == nil { return nil } - return o.Attributes + return e.Attributes } -func (o *EntityCapabilityWithCompositeIDInput) GetPurpose() []string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetPurpose() []string { + if e == nil { return nil } - return o.Purpose + return e.Purpose } -func (o *EntityCapabilityWithCompositeIDInput) GetManifest() []string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetManifest() []string { + if e == nil { return nil } - return o.Manifest + return e.Manifest } -func (o *EntityCapabilityWithCompositeIDInput) GetAppID() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetAppID() *string { + if e == nil { return nil } - return o.AppID + return e.AppID } -func (o *EntityCapabilityWithCompositeIDInput) GetUIConfig() *EntityCapabilityWithCompositeIDUIConfig { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetUIConfig() *EntityCapabilityWithCompositeIDUIConfig { + if e == nil { return nil } - return o.UIConfig + return e.UIConfig } -func (o *EntityCapabilityWithCompositeIDInput) GetUIHooks() []EntityCapabilityWithCompositeIDUIHooks { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetUIHooks() []EntityCapabilityWithCompositeIDUIHooks { + if e == nil { return nil } - return o.UIHooks + return e.UIHooks } -func (o *EntityCapabilityWithCompositeIDInput) GetFeatureFlag() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetFeatureFlag() *string { + if e == nil { return nil } - return o.FeatureFlag + return e.FeatureFlag } -func (o *EntityCapabilityWithCompositeIDInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetSettingsFlag() []SettingFlag { + if e == nil { return nil } - return o.SettingsFlag + return e.SettingsFlag } -func (o *EntityCapabilityWithCompositeIDInput) GetSchema() *string { - if o == nil { +func (e *EntityCapabilityWithCompositeIDInput) GetSchema() *string { + if e == nil { return nil } - return o.Schema + return e.Schema } diff --git a/internal/sdk/models/shared/entitydefaultcreate.go b/internal/sdk/models/shared/entitydefaultcreate.go index e99a40bf..0b78c7e4 100644 --- a/internal/sdk/models/shared/entitydefaultcreate.go +++ b/internal/sdk/models/shared/entitydefaultcreate.go @@ -47,16 +47,16 @@ func (e *EntityDefaultCreate) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityDefaultCreate) GetViewType() *EntityDefaultCreateViewType { - if o == nil { +func (e *EntityDefaultCreate) GetViewType() *EntityDefaultCreateViewType { + if e == nil { return nil } - return o.ViewType + return e.ViewType } -func (o *EntityDefaultCreate) GetSearchParams() map[string]string { - if o == nil { +func (e *EntityDefaultCreate) GetSearchParams() map[string]string { + if e == nil { return nil } - return o.SearchParams + return e.SearchParams } diff --git a/internal/sdk/models/shared/entitydefaultedit.go b/internal/sdk/models/shared/entitydefaultedit.go index 341baddb..80dc75bc 100644 --- a/internal/sdk/models/shared/entitydefaultedit.go +++ b/internal/sdk/models/shared/entitydefaultedit.go @@ -32,10 +32,10 @@ func (e *EntityDefaultEditViewType) UnmarshalJSON(data []byte) error { } type EntityDefaultEdit struct { - ViewType *EntityDefaultEditViewType `json:"view_type,omitempty"` - SearchParams map[string]string `json:"search_params,omitempty"` + SearchParams map[string]string `json:"search_params,omitempty"` // List of attribute names that we show in the summary header - SummaryAttributes []string `json:"summary_attributes,omitempty"` + SummaryAttributes []string `json:"summary_attributes,omitempty"` + ViewType *EntityDefaultEditViewType `json:"view_type,omitempty"` } func (e EntityDefaultEdit) MarshalJSON() ([]byte, error) { @@ -49,23 +49,23 @@ func (e *EntityDefaultEdit) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityDefaultEdit) GetViewType() *EntityDefaultEditViewType { - if o == nil { +func (e *EntityDefaultEdit) GetSearchParams() map[string]string { + if e == nil { return nil } - return o.ViewType + return e.SearchParams } -func (o *EntityDefaultEdit) GetSearchParams() map[string]string { - if o == nil { +func (e *EntityDefaultEdit) GetSummaryAttributes() []string { + if e == nil { return nil } - return o.SearchParams + return e.SummaryAttributes } -func (o *EntityDefaultEdit) GetSummaryAttributes() []string { - if o == nil { +func (e *EntityDefaultEdit) GetViewType() *EntityDefaultEditViewType { + if e == nil { return nil } - return o.SummaryAttributes + return e.ViewType } diff --git a/internal/sdk/models/shared/entitydefaulttable.go b/internal/sdk/models/shared/entitydefaulttable.go index 14116d28..1adde635 100644 --- a/internal/sdk/models/shared/entitydefaulttable.go +++ b/internal/sdk/models/shared/entitydefaulttable.go @@ -40,8 +40,8 @@ const ( ) type RowActions struct { - Str *string `queryParam:"inline" name:"row_actions"` - EntityAction *EntityAction `queryParam:"inline" name:"row_actions"` + Str *string `queryParam:"inline,name=row_actions"` + EntityAction *EntityAction `queryParam:"inline,name=row_actions"` Type RowActionsType } @@ -66,17 +66,43 @@ func CreateRowActionsEntityAction(entityAction EntityAction) RowActions { func (u *RowActions) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var entityAction EntityAction = EntityAction{} if err := utils.UnmarshalJSON(data, &entityAction, "", true, nil); err == nil { - u.EntityAction = &entityAction - u.Type = RowActionsTypeEntityAction - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: RowActionsTypeEntityAction, + Value: &entityAction, + }) } var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = RowActionsTypeStr + candidates = append(candidates, utils.UnionCandidate{ + Type: RowActionsTypeStr, + Value: &str, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for RowActions", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for RowActions", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(RowActionsType) + switch best.Type { + case RowActionsTypeEntityAction: + u.EntityAction = best.Value.(*EntityAction) + return nil + case RowActionsTypeStr: + u.Str = best.Value.(*string) return nil } @@ -103,8 +129,8 @@ const ( ) type BulkActions struct { - Str *string `queryParam:"inline" name:"bulk_actions"` - EntityAction *EntityAction `queryParam:"inline" name:"bulk_actions"` + Str *string `queryParam:"inline,name=bulk_actions"` + EntityAction *EntityAction `queryParam:"inline,name=bulk_actions"` Type BulkActionsType } @@ -129,17 +155,43 @@ func CreateBulkActionsEntityAction(entityAction EntityAction) BulkActions { func (u *BulkActions) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var entityAction EntityAction = EntityAction{} if err := utils.UnmarshalJSON(data, &entityAction, "", true, nil); err == nil { - u.EntityAction = &entityAction - u.Type = BulkActionsTypeEntityAction - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: BulkActionsTypeEntityAction, + Value: &entityAction, + }) } var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = BulkActionsTypeStr + candidates = append(candidates, utils.UnionCandidate{ + Type: BulkActionsTypeStr, + Value: &str, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for BulkActions", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for BulkActions", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(BulkActionsType) + switch best.Type { + case BulkActionsTypeEntityAction: + u.EntityAction = best.Value.(*EntityAction) + return nil + case BulkActionsTypeStr: + u.Str = best.Value.(*string) return nil } @@ -188,18 +240,18 @@ func (e *EntityDefaultTableOptions) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityDefaultTableOptions) GetLabel() string { - if o == nil { +func (e *EntityDefaultTableOptions) GetLabel() string { + if e == nil { return "" } - return o.Label + return e.Label } -func (o *EntityDefaultTableOptions) GetParams() *EntityDefaultTableParams { - if o == nil { +func (e *EntityDefaultTableOptions) GetParams() *EntityDefaultTableParams { + if e == nil { return nil } - return o.Params + return e.Params } type NavbarActions struct { @@ -218,18 +270,18 @@ func (n *NavbarActions) UnmarshalJSON(data []byte) error { return nil } -func (o *NavbarActions) GetType() string { - if o == nil { +func (n *NavbarActions) GetType() string { + if n == nil { return "" } - return o.Type + return n.Type } -func (o *NavbarActions) GetOptions() []EntityDefaultTableOptions { - if o == nil { +func (n *NavbarActions) GetOptions() []EntityDefaultTableOptions { + if n == nil { return nil } - return o.Options + return n.Options } type EntityDefaultTable struct { @@ -252,37 +304,37 @@ func (e *EntityDefaultTable) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityDefaultTable) GetViewType() *ViewType { - if o == nil { +func (e *EntityDefaultTable) GetViewType() *ViewType { + if e == nil { return nil } - return o.ViewType + return e.ViewType } -func (o *EntityDefaultTable) GetRowActions() []RowActions { - if o == nil { +func (e *EntityDefaultTable) GetRowActions() []RowActions { + if e == nil { return nil } - return o.RowActions + return e.RowActions } -func (o *EntityDefaultTable) GetBulkActions() []BulkActions { - if o == nil { +func (e *EntityDefaultTable) GetBulkActions() []BulkActions { + if e == nil { return nil } - return o.BulkActions + return e.BulkActions } -func (o *EntityDefaultTable) GetNavbarActions() []NavbarActions { - if o == nil { +func (e *EntityDefaultTable) GetNavbarActions() []NavbarActions { + if e == nil { return nil } - return o.NavbarActions + return e.NavbarActions } -func (o *EntityDefaultTable) GetEnableThumbnails() *bool { - if o == nil { +func (e *EntityDefaultTable) GetEnableThumbnails() *bool { + if e == nil { return nil } - return o.EnableThumbnails + return e.EnableThumbnails } diff --git a/internal/sdk/models/shared/entityimportparams.go b/internal/sdk/models/shared/entityimportparams.go index 0db92841..4e9973cd 100644 --- a/internal/sdk/models/shared/entityimportparams.go +++ b/internal/sdk/models/shared/entityimportparams.go @@ -10,18 +10,18 @@ type S3Reference struct { Key string `json:"key"` } -func (o *S3Reference) GetBucket() string { - if o == nil { +func (s *S3Reference) GetBucket() string { + if s == nil { return "" } - return o.Bucket + return s.Bucket } -func (o *S3Reference) GetKey() string { - if o == nil { +func (s *S3Reference) GetKey() string { + if s == nil { return "" } - return o.Key + return s.Key } // EntityImportParams - The parameters for importing entities. @@ -32,16 +32,16 @@ type EntityImportParams struct { Schema string `json:"schema"` } -func (o *EntityImportParams) GetS3Reference() S3Reference { - if o == nil { +func (e *EntityImportParams) GetS3Reference() S3Reference { + if e == nil { return S3Reference{} } - return o.S3Reference + return e.S3Reference } -func (o *EntityImportParams) GetSchema() string { - if o == nil { +func (e *EntityImportParams) GetSchema() string { + if e == nil { return "" } - return o.Schema + return e.Schema } diff --git a/internal/sdk/models/shared/entityinput.go b/internal/sdk/models/shared/entityinput.go index c2ff45e1..7afe6094 100644 --- a/internal/sdk/models/shared/entityinput.go +++ b/internal/sdk/models/shared/entityinput.go @@ -26,32 +26,32 @@ func (e *EntityACL) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityACL) GetView() []string { - if o == nil { +func (e *EntityACL) GetView() []string { + if e == nil { return nil } - return o.View + return e.View } -func (o *EntityACL) GetEdit() []string { - if o == nil { +func (e *EntityACL) GetEdit() []string { + if e == nil { return nil } - return o.Edit + return e.Edit } -func (o *EntityACL) GetDelete() []string { - if o == nil { +func (e *EntityACL) GetDelete() []string { + if e == nil { return nil } - return o.Delete + return e.Delete } -func (o *EntityACL) GetAdditionalProperties() any { - if o == nil { +func (e *EntityACL) GetAdditionalProperties() any { + if e == nil { return nil } - return o.AdditionalProperties + return e.AdditionalProperties } type EntityInput struct { @@ -79,60 +79,60 @@ func (e *EntityInput) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityInput) GetID() *string { - if o == nil { +func (e *EntityInput) GetID() *string { + if e == nil { return nil } - return o.ID + return e.ID } -func (o *EntityInput) GetSchema() *string { - if o == nil { +func (e *EntityInput) GetSchema() *string { + if e == nil { return nil } - return o.Schema + return e.Schema } -func (o *EntityInput) GetTitle() *string { - if o == nil { +func (e *EntityInput) GetTitle() *string { + if e == nil { return nil } - return o.Title + return e.Title } -func (o *EntityInput) GetTags() []string { - if o == nil { +func (e *EntityInput) GetTags() []string { + if e == nil { return nil } - return o.Tags + return e.Tags } -func (o *EntityInput) GetACL() *EntityACL { - if o == nil { +func (e *EntityInput) GetACL() *EntityACL { + if e == nil { return nil } - return o.ACL + return e.ACL } -func (o *EntityInput) GetPurpose() []string { - if o == nil { +func (e *EntityInput) GetPurpose() []string { + if e == nil { return nil } - return o.Purpose + return e.Purpose } -func (o *EntityInput) GetManifest() []string { - if o == nil { +func (e *EntityInput) GetManifest() []string { + if e == nil { return nil } - return o.Manifest + return e.Manifest } -func (o *EntityInput) GetAdditionalProperties() any { - if o == nil { +func (e *EntityInput) GetAdditionalProperties() any { + if e == nil { return nil } - return o.AdditionalProperties + return e.AdditionalProperties } type Entity struct { @@ -166,93 +166,93 @@ func (e *Entity) UnmarshalJSON(data []byte) error { return nil } -func (o *Entity) GetID() *string { - if o == nil { +func (e *Entity) GetID() *string { + if e == nil { return nil } - return o.ID + return e.ID } -func (o *Entity) GetOrg() *string { - if o == nil { +func (e *Entity) GetOrg() *string { + if e == nil { return nil } - return o.Org + return e.Org } -func (o *Entity) GetOwners() []EntityOwner { - if o == nil { +func (e *Entity) GetOwners() []EntityOwner { + if e == nil { return nil } - return o.Owners + return e.Owners } -func (o *Entity) GetSchema() *string { - if o == nil { +func (e *Entity) GetSchema() *string { + if e == nil { return nil } - return o.Schema + return e.Schema } -func (o *Entity) GetTitle() *string { - if o == nil { +func (e *Entity) GetTitle() *string { + if e == nil { return nil } - return o.Title + return e.Title } -func (o *Entity) GetTags() []string { - if o == nil { +func (e *Entity) GetTags() []string { + if e == nil { return nil } - return o.Tags + return e.Tags } -func (o *Entity) GetCreatedAt() *time.Time { - if o == nil { +func (e *Entity) GetCreatedAt() *time.Time { + if e == nil { return nil } - return o.CreatedAt + return e.CreatedAt } -func (o *Entity) GetUpdatedAt() *time.Time { - if o == nil { +func (e *Entity) GetUpdatedAt() *time.Time { + if e == nil { return nil } - return o.UpdatedAt + return e.UpdatedAt } -func (o *Entity) GetDeletedAt() *time.Time { - if o == nil { +func (e *Entity) GetDeletedAt() *time.Time { + if e == nil { return nil } - return o.DeletedAt + return e.DeletedAt } -func (o *Entity) GetACL() *EntityACL { - if o == nil { +func (e *Entity) GetACL() *EntityACL { + if e == nil { return nil } - return o.ACL + return e.ACL } -func (o *Entity) GetPurpose() []string { - if o == nil { +func (e *Entity) GetPurpose() []string { + if e == nil { return nil } - return o.Purpose + return e.Purpose } -func (o *Entity) GetManifest() []string { - if o == nil { +func (e *Entity) GetManifest() []string { + if e == nil { return nil } - return o.Manifest + return e.Manifest } -func (o *Entity) GetAdditionalProperties() any { - if o == nil { +func (e *Entity) GetAdditionalProperties() any { + if e == nil { return nil } - return o.AdditionalProperties + return e.AdditionalProperties } diff --git a/internal/sdk/models/shared/entityitem.go b/internal/sdk/models/shared/entityitem.go index 1864881d..ce1e64d8 100644 --- a/internal/sdk/models/shared/entityitem.go +++ b/internal/sdk/models/shared/entityitem.go @@ -26,32 +26,32 @@ func (a *ACL) UnmarshalJSON(data []byte) error { return nil } -func (o *ACL) GetView() []string { - if o == nil { +func (a *ACL) GetView() []string { + if a == nil { return nil } - return o.View + return a.View } -func (o *ACL) GetEdit() []string { - if o == nil { +func (a *ACL) GetEdit() []string { + if a == nil { return nil } - return o.Edit + return a.Edit } -func (o *ACL) GetDelete() []string { - if o == nil { +func (a *ACL) GetDelete() []string { + if a == nil { return nil } - return o.Delete + return a.Delete } -func (o *ACL) GetAdditionalProperties() any { - if o == nil { +func (a *ACL) GetAdditionalProperties() any { + if a == nil { return nil } - return o.AdditionalProperties + return a.AdditionalProperties } type EntityItem struct { @@ -79,99 +79,99 @@ func (e EntityItem) MarshalJSON() ([]byte, error) { } func (e *EntityItem) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"_id", "_org", "_schema", "_title", "_created_at", "_updated_at"}); err != nil { + if err := utils.UnmarshalJSON(data, &e, "", false, []string{"_id", "_org", "_schema"}); err != nil { return err } return nil } -func (o *EntityItem) GetID() string { - if o == nil { +func (e *EntityItem) GetID() string { + if e == nil { return "" } - return o.ID + return e.ID } -func (o *EntityItem) GetOrg() string { - if o == nil { +func (e *EntityItem) GetOrg() string { + if e == nil { return "" } - return o.Org + return e.Org } -func (o *EntityItem) GetOwners() []EntityOwner { - if o == nil { +func (e *EntityItem) GetOwners() []EntityOwner { + if e == nil { return nil } - return o.Owners + return e.Owners } -func (o *EntityItem) GetSchema() string { - if o == nil { +func (e *EntityItem) GetSchema() string { + if e == nil { return "" } - return o.Schema + return e.Schema } -func (o *EntityItem) GetTitle() *string { - if o == nil { +func (e *EntityItem) GetTitle() *string { + if e == nil { return nil } - return o.Title + return e.Title } -func (o *EntityItem) GetTags() []string { - if o == nil { +func (e *EntityItem) GetTags() []string { + if e == nil { return nil } - return o.Tags + return e.Tags } -func (o *EntityItem) GetCreatedAt() *time.Time { - if o == nil { +func (e *EntityItem) GetCreatedAt() *time.Time { + if e == nil { return nil } - return o.CreatedAt + return e.CreatedAt } -func (o *EntityItem) GetUpdatedAt() *time.Time { - if o == nil { +func (e *EntityItem) GetUpdatedAt() *time.Time { + if e == nil { return nil } - return o.UpdatedAt + return e.UpdatedAt } -func (o *EntityItem) GetDeletedAt() *time.Time { - if o == nil { +func (e *EntityItem) GetDeletedAt() *time.Time { + if e == nil { return nil } - return o.DeletedAt + return e.DeletedAt } -func (o *EntityItem) GetACL() *ACL { - if o == nil { +func (e *EntityItem) GetACL() *ACL { + if e == nil { return nil } - return o.ACL + return e.ACL } -func (o *EntityItem) GetPurpose() []string { - if o == nil { +func (e *EntityItem) GetPurpose() []string { + if e == nil { return nil } - return o.Purpose + return e.Purpose } -func (o *EntityItem) GetManifest() []string { - if o == nil { +func (e *EntityItem) GetManifest() []string { + if e == nil { return nil } - return o.Manifest + return e.Manifest } -func (o *EntityItem) GetAdditionalProperties() any { - if o == nil { +func (e *EntityItem) GetAdditionalProperties() any { + if e == nil { return nil } - return o.AdditionalProperties + return e.AdditionalProperties } diff --git a/internal/sdk/models/shared/entitylistparams.go b/internal/sdk/models/shared/entitylistparams.go index 68c43bf2..6d033e52 100644 --- a/internal/sdk/models/shared/entitylistparams.go +++ b/internal/sdk/models/shared/entitylistparams.go @@ -59,32 +59,32 @@ func (q *QueryString) UnmarshalJSON(data []byte) error { return nil } -func (o *QueryString) GetQuery() string { - if o == nil { +func (q *QueryString) GetQuery() string { + if q == nil { return "" } - return o.Query + return q.Query } -func (o *QueryString) GetFields() []string { - if o == nil { +func (q *QueryString) GetFields() []string { + if q == nil { return nil } - return o.Fields + return q.Fields } -func (o *QueryString) GetDefaultOperator() *DefaultOperator { - if o == nil { +func (q *QueryString) GetDefaultOperator() *DefaultOperator { + if q == nil { return nil } - return o.DefaultOperator + return q.DefaultOperator } -func (o *QueryString) GetLenient() *bool { - if o == nil { +func (q *QueryString) GetLenient() *bool { + if q == nil { return nil } - return o.Lenient + return q.Lenient } // Query configuration object for searching entities @@ -93,11 +93,11 @@ type Query struct { QueryString QueryString `json:"query_string"` } -func (o *Query) GetQueryString() QueryString { - if o == nil { +func (q *Query) GetQueryString() QueryString { + if q == nil { return QueryString{} } - return o.QueryString + return q.QueryString } type EntityListParamsSortType string @@ -109,8 +109,8 @@ const ( // EntityListParamsSort - You can pass one sort field or an array of sort fields. Each sort field can be a string type EntityListParamsSort struct { - Str *string `queryParam:"inline" name:"sort"` - ArrayOfStr []string `queryParam:"inline" name:"sort"` + Str *string `queryParam:"inline,name=sort"` + ArrayOfStr []string `queryParam:"inline,name=sort"` Type EntityListParamsSortType } @@ -135,17 +135,43 @@ func CreateEntityListParamsSortArrayOfStr(arrayOfStr []string) EntityListParamsS func (u *EntityListParamsSort) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = EntityListParamsSortTypeStr - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: EntityListParamsSortTypeStr, + Value: &str, + }) } var arrayOfStr []string = []string{} if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { - u.ArrayOfStr = arrayOfStr - u.Type = EntityListParamsSortTypeArrayOfStr + candidates = append(candidates, utils.UnionCandidate{ + Type: EntityListParamsSortTypeArrayOfStr, + Value: arrayOfStr, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for EntityListParamsSort", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for EntityListParamsSort", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(EntityListParamsSortType) + switch best.Type { + case EntityListParamsSortTypeStr: + u.Str = best.Value.(*string) + return nil + case EntityListParamsSortTypeArrayOfStr: + u.ArrayOfStr = best.Value.([]string) return nil } @@ -176,8 +202,8 @@ const ( ) type EntityListParamsSearchAfter struct { - Str *string `queryParam:"inline" name:"search_after"` - Number *float64 `queryParam:"inline" name:"search_after"` + Str *string `queryParam:"inline,name=search_after"` + Number *float64 `queryParam:"inline,name=search_after"` Type EntityListParamsSearchAfterType } @@ -202,17 +228,43 @@ func CreateEntityListParamsSearchAfterNumber(number float64) EntityListParamsSea func (u *EntityListParamsSearchAfter) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = EntityListParamsSearchAfterTypeStr - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: EntityListParamsSearchAfterTypeStr, + Value: &str, + }) } var number float64 = float64(0) if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { - u.Number = &number - u.Type = EntityListParamsSearchAfterTypeNumber + candidates = append(candidates, utils.UnionCandidate{ + Type: EntityListParamsSearchAfterTypeNumber, + Value: &number, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for EntityListParamsSearchAfter", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for EntityListParamsSearchAfter", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(EntityListParamsSearchAfterType) + switch best.Type { + case EntityListParamsSearchAfterTypeStr: + u.Str = best.Value.(*string) + return nil + case EntityListParamsSearchAfterTypeNumber: + u.Number = best.Value.(*float64) return nil } @@ -299,107 +351,107 @@ func (e *EntityListParams) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityListParams) GetQuery() *Query { - if o == nil { +func (e *EntityListParams) GetQuery() *Query { + if e == nil { return nil } - return o.Query + return e.Query } -func (o *EntityListParams) GetFilter() []SearchFilter { - if o == nil { +func (e *EntityListParams) GetFilter() []SearchFilter { + if e == nil { return []SearchFilter{} } - return o.Filter + return e.Filter } -func (o *EntityListParams) GetAllowTargetingAllSchemas() *bool { - if o == nil { +func (e *EntityListParams) GetAllowTargetingAllSchemas() *bool { + if e == nil { return nil } - return o.AllowTargetingAllSchemas + return e.AllowTargetingAllSchemas } -func (o *EntityListParams) GetSort() *EntityListParamsSort { - if o == nil { +func (e *EntityListParams) GetSort() *EntityListParamsSort { + if e == nil { return nil } - return o.Sort + return e.Sort } -func (o *EntityListParams) GetFrom() *int64 { - if o == nil { +func (e *EntityListParams) GetFrom() *int64 { + if e == nil { return nil } - return o.From + return e.From } -func (o *EntityListParams) GetSize() *int64 { - if o == nil { +func (e *EntityListParams) GetSize() *int64 { + if e == nil { return nil } - return o.Size + return e.Size } -func (o *EntityListParams) GetHydrate() *bool { - if o == nil { +func (e *EntityListParams) GetHydrate() *bool { + if e == nil { return nil } - return o.Hydrate + return e.Hydrate } -func (o *EntityListParams) GetFields() []string { - if o == nil { +func (e *EntityListParams) GetFields() []string { + if e == nil { return nil } - return o.Fields + return e.Fields } -func (o *EntityListParams) GetAggs() *EntityListParamsAggs { - if o == nil { +func (e *EntityListParams) GetAggs() *EntityListParamsAggs { + if e == nil { return nil } - return o.Aggs + return e.Aggs } -func (o *EntityListParams) GetIncludeDeleted() *EntitySearchIncludeDeletedParam { - if o == nil { +func (e *EntityListParams) GetIncludeDeleted() *EntitySearchIncludeDeletedParam { + if e == nil { return nil } - return o.IncludeDeleted + return e.IncludeDeleted } -func (o *EntityListParams) GetIncludeScores() *bool { - if o == nil { +func (e *EntityListParams) GetIncludeScores() *bool { + if e == nil { return nil } - return o.IncludeScores + return e.IncludeScores } -func (o *EntityListParams) GetHighlight() any { - if o == nil { +func (e *EntityListParams) GetHighlight() any { + if e == nil { return nil } - return o.Highlight + return e.Highlight } -func (o *EntityListParams) GetStableFor() *int64 { - if o == nil { +func (e *EntityListParams) GetStableFor() *int64 { + if e == nil { return nil } - return o.StableFor + return e.StableFor } -func (o *EntityListParams) GetStableQueryID() *string { - if o == nil { +func (e *EntityListParams) GetStableQueryID() *string { + if e == nil { return nil } - return o.StableQueryID + return e.StableQueryID } -func (o *EntityListParams) GetSearchAfter() []*EntityListParamsSearchAfter { - if o == nil { +func (e *EntityListParams) GetSearchAfter() []*EntityListParamsSearchAfter { + if e == nil { return nil } - return o.SearchAfter + return e.SearchAfter } diff --git a/internal/sdk/models/shared/entityoperation.go b/internal/sdk/models/shared/entityoperation.go index c9295dcf..2c8b343a 100644 --- a/internal/sdk/models/shared/entityoperation.go +++ b/internal/sdk/models/shared/entityoperation.go @@ -65,18 +65,18 @@ type EntityOperationParams struct { Slug *string `json:"slug,omitempty"` } -func (o *EntityOperationParams) GetID() *string { - if o == nil { +func (e *EntityOperationParams) GetID() *string { + if e == nil { return nil } - return o.ID + return e.ID } -func (o *EntityOperationParams) GetSlug() *string { - if o == nil { +func (e *EntityOperationParams) GetSlug() *string { + if e == nil { return nil } - return o.Slug + return e.Slug } // EntityOperationACL - Access control list (ACL) for an entity. Defines sharing access to external orgs or users. @@ -98,32 +98,32 @@ func (e *EntityOperationACL) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityOperationACL) GetView() []string { - if o == nil { +func (e *EntityOperationACL) GetView() []string { + if e == nil { return nil } - return o.View + return e.View } -func (o *EntityOperationACL) GetEdit() []string { - if o == nil { +func (e *EntityOperationACL) GetEdit() []string { + if e == nil { return nil } - return o.Edit + return e.Edit } -func (o *EntityOperationACL) GetDelete() []string { - if o == nil { +func (e *EntityOperationACL) GetDelete() []string { + if e == nil { return nil } - return o.Delete + return e.Delete } -func (o *EntityOperationACL) GetAdditionalProperties() any { - if o == nil { +func (e *EntityOperationACL) GetAdditionalProperties() any { + if e == nil { return nil } - return o.AdditionalProperties + return e.AdditionalProperties } type Payload struct { @@ -157,95 +157,95 @@ func (p *Payload) UnmarshalJSON(data []byte) error { return nil } -func (o *Payload) GetID() *string { - if o == nil { +func (p *Payload) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *Payload) GetOrg() *string { - if o == nil { +func (p *Payload) GetOrg() *string { + if p == nil { return nil } - return o.Org + return p.Org } -func (o *Payload) GetOwners() []EntityOwner { - if o == nil { +func (p *Payload) GetOwners() []EntityOwner { + if p == nil { return nil } - return o.Owners + return p.Owners } -func (o *Payload) GetSchema() *string { - if o == nil { +func (p *Payload) GetSchema() *string { + if p == nil { return nil } - return o.Schema + return p.Schema } -func (o *Payload) GetTitle() *string { - if o == nil { +func (p *Payload) GetTitle() *string { + if p == nil { return nil } - return o.Title + return p.Title } -func (o *Payload) GetTags() []string { - if o == nil { +func (p *Payload) GetTags() []string { + if p == nil { return nil } - return o.Tags + return p.Tags } -func (o *Payload) GetCreatedAt() *time.Time { - if o == nil { +func (p *Payload) GetCreatedAt() *time.Time { + if p == nil { return nil } - return o.CreatedAt + return p.CreatedAt } -func (o *Payload) GetUpdatedAt() *time.Time { - if o == nil { +func (p *Payload) GetUpdatedAt() *time.Time { + if p == nil { return nil } - return o.UpdatedAt + return p.UpdatedAt } -func (o *Payload) GetDeletedAt() *time.Time { - if o == nil { +func (p *Payload) GetDeletedAt() *time.Time { + if p == nil { return nil } - return o.DeletedAt + return p.DeletedAt } -func (o *Payload) GetACL() *EntityOperationACL { - if o == nil { +func (p *Payload) GetACL() *EntityOperationACL { + if p == nil { return nil } - return o.ACL + return p.ACL } -func (o *Payload) GetPurpose() []string { - if o == nil { +func (p *Payload) GetPurpose() []string { + if p == nil { return nil } - return o.Purpose + return p.Purpose } -func (o *Payload) GetManifest() []string { - if o == nil { +func (p *Payload) GetManifest() []string { + if p == nil { return nil } - return o.Manifest + return p.Manifest } -func (o *Payload) GetAdditionalProperties() any { - if o == nil { +func (p *Payload) GetAdditionalProperties() any { + if p == nil { return nil } - return o.AdditionalProperties + return p.AdditionalProperties } type Diff struct { @@ -254,25 +254,25 @@ type Diff struct { Deleted *Entity `json:"deleted,omitempty"` } -func (o *Diff) GetAdded() *Entity { - if o == nil { +func (d *Diff) GetAdded() *Entity { + if d == nil { return nil } - return o.Added + return d.Added } -func (o *Diff) GetUpdated() *Entity { - if o == nil { +func (d *Diff) GetUpdated() *Entity { + if d == nil { return nil } - return o.Updated + return d.Updated } -func (o *Diff) GetDeleted() *Entity { - if o == nil { +func (d *Diff) GetDeleted() *Entity { + if d == nil { return nil } - return o.Deleted + return d.Deleted } type EntityOperation struct { @@ -286,51 +286,51 @@ type EntityOperation struct { Diff *Diff `json:"diff,omitempty"` } -func (o *EntityOperation) GetEntity() string { - if o == nil { +func (e *EntityOperation) GetEntity() string { + if e == nil { return "" } - return o.Entity + return e.Entity } -func (o *EntityOperation) GetOrg() string { - if o == nil { +func (e *EntityOperation) GetOrg() string { + if e == nil { return "" } - return o.Org + return e.Org } -func (o *EntityOperation) GetActivityID() *string { - if o == nil { +func (e *EntityOperation) GetActivityID() *string { + if e == nil { return nil } - return o.ActivityID + return e.ActivityID } -func (o *EntityOperation) GetOperation() Operation { - if o == nil { +func (e *EntityOperation) GetOperation() Operation { + if e == nil { return Operation("") } - return o.Operation + return e.Operation } -func (o *EntityOperation) GetParams() *EntityOperationParams { - if o == nil { +func (e *EntityOperation) GetParams() *EntityOperationParams { + if e == nil { return nil } - return o.Params + return e.Params } -func (o *EntityOperation) GetPayload() *Payload { - if o == nil { +func (e *EntityOperation) GetPayload() *Payload { + if e == nil { return nil } - return o.Payload + return e.Payload } -func (o *EntityOperation) GetDiff() *Diff { - if o == nil { +func (e *EntityOperation) GetDiff() *Diff { + if e == nil { return nil } - return o.Diff + return e.Diff } diff --git a/internal/sdk/models/shared/entityowner.go b/internal/sdk/models/shared/entityowner.go index de676aa7..420b5fd5 100644 --- a/internal/sdk/models/shared/entityowner.go +++ b/internal/sdk/models/shared/entityowner.go @@ -25,16 +25,16 @@ func (e *EntityOwner) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityOwner) GetOrgID() string { - if o == nil { +func (e *EntityOwner) GetOrgID() string { + if e == nil { return "" } - return o.OrgID + return e.OrgID } -func (o *EntityOwner) GetUserID() *string { - if o == nil { +func (e *EntityOwner) GetUserID() *string { + if e == nil { return nil } - return o.UserID + return e.UserID } diff --git a/internal/sdk/models/shared/entityschemagroupwithcompositeid.go b/internal/sdk/models/shared/entityschemagroupwithcompositeid.go index 45f271d3..5cb76952 100644 --- a/internal/sdk/models/shared/entityschemagroupwithcompositeid.go +++ b/internal/sdk/models/shared/entityschemagroupwithcompositeid.go @@ -13,18 +13,18 @@ type InfoTooltipTitle struct { Default *string `json:"default,omitempty"` } -func (o *InfoTooltipTitle) GetKey() *string { - if o == nil { +func (i *InfoTooltipTitle) GetKey() *string { + if i == nil { return nil } - return o.Key + return i.Key } -func (o *InfoTooltipTitle) GetDefault() *string { - if o == nil { +func (i *InfoTooltipTitle) GetDefault() *string { + if i == nil { return nil } - return o.Default + return i.Default } // EntitySchemaGroupWithCompositeID - a readonly computed ID for the group including schema slug and the group ID @@ -62,88 +62,88 @@ func (e *EntitySchemaGroupWithCompositeID) UnmarshalJSON(data []byte) error { return nil } -func (o *EntitySchemaGroupWithCompositeID) GetLabel() string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetLabel() string { + if e == nil { return "" } - return o.Label + return e.Label } -func (o *EntitySchemaGroupWithCompositeID) GetID() *string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetID() *string { + if e == nil { return nil } - return o.ID + return e.ID } -func (o *EntitySchemaGroupWithCompositeID) GetOrder() *int64 { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetOrder() *int64 { + if e == nil { return nil } - return o.Order + return e.Order } -func (o *EntitySchemaGroupWithCompositeID) GetExpanded() *bool { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetExpanded() *bool { + if e == nil { return nil } - return o.Expanded + return e.Expanded } -func (o *EntitySchemaGroupWithCompositeID) GetRenderCondition() *string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetRenderCondition() *string { + if e == nil { return nil } - return o.RenderCondition + return e.RenderCondition } -func (o *EntitySchemaGroupWithCompositeID) GetPurpose() []string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetPurpose() []string { + if e == nil { return nil } - return o.Purpose + return e.Purpose } -func (o *EntitySchemaGroupWithCompositeID) GetManifest() []string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetManifest() []string { + if e == nil { return nil } - return o.Manifest + return e.Manifest } -func (o *EntitySchemaGroupWithCompositeID) GetFeatureFlag() *string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetFeatureFlag() *string { + if e == nil { return nil } - return o.FeatureFlag + return e.FeatureFlag } -func (o *EntitySchemaGroupWithCompositeID) GetSettingsFlag() []SettingFlag { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetSettingsFlag() []SettingFlag { + if e == nil { return nil } - return o.SettingsFlag + return e.SettingsFlag } -func (o *EntitySchemaGroupWithCompositeID) GetInfoTooltipTitle() *InfoTooltipTitle { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetInfoTooltipTitle() *InfoTooltipTitle { + if e == nil { return nil } - return o.InfoTooltipTitle + return e.InfoTooltipTitle } -func (o *EntitySchemaGroupWithCompositeID) GetCompositeID() *string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetCompositeID() *string { + if e == nil { return nil } - return o.CompositeID + return e.CompositeID } -func (o *EntitySchemaGroupWithCompositeID) GetSchema() *string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeID) GetSchema() *string { + if e == nil { return nil } - return o.Schema + return e.Schema } // EntitySchemaGroupWithCompositeIDInput - a readonly computed ID for the group including schema slug and the group ID @@ -180,79 +180,79 @@ func (e *EntitySchemaGroupWithCompositeIDInput) UnmarshalJSON(data []byte) error return nil } -func (o *EntitySchemaGroupWithCompositeIDInput) GetLabel() string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeIDInput) GetLabel() string { + if e == nil { return "" } - return o.Label + return e.Label } -func (o *EntitySchemaGroupWithCompositeIDInput) GetID() *string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeIDInput) GetID() *string { + if e == nil { return nil } - return o.ID + return e.ID } -func (o *EntitySchemaGroupWithCompositeIDInput) GetOrder() *int64 { - if o == nil { +func (e *EntitySchemaGroupWithCompositeIDInput) GetOrder() *int64 { + if e == nil { return nil } - return o.Order + return e.Order } -func (o *EntitySchemaGroupWithCompositeIDInput) GetExpanded() *bool { - if o == nil { +func (e *EntitySchemaGroupWithCompositeIDInput) GetExpanded() *bool { + if e == nil { return nil } - return o.Expanded + return e.Expanded } -func (o *EntitySchemaGroupWithCompositeIDInput) GetRenderCondition() *string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeIDInput) GetRenderCondition() *string { + if e == nil { return nil } - return o.RenderCondition + return e.RenderCondition } -func (o *EntitySchemaGroupWithCompositeIDInput) GetPurpose() []string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeIDInput) GetPurpose() []string { + if e == nil { return nil } - return o.Purpose + return e.Purpose } -func (o *EntitySchemaGroupWithCompositeIDInput) GetManifest() []string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeIDInput) GetManifest() []string { + if e == nil { return nil } - return o.Manifest + return e.Manifest } -func (o *EntitySchemaGroupWithCompositeIDInput) GetFeatureFlag() *string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeIDInput) GetFeatureFlag() *string { + if e == nil { return nil } - return o.FeatureFlag + return e.FeatureFlag } -func (o *EntitySchemaGroupWithCompositeIDInput) GetSettingsFlag() []SettingFlag { - if o == nil { +func (e *EntitySchemaGroupWithCompositeIDInput) GetSettingsFlag() []SettingFlag { + if e == nil { return nil } - return o.SettingsFlag + return e.SettingsFlag } -func (o *EntitySchemaGroupWithCompositeIDInput) GetInfoTooltipTitle() *InfoTooltipTitle { - if o == nil { +func (e *EntitySchemaGroupWithCompositeIDInput) GetInfoTooltipTitle() *InfoTooltipTitle { + if e == nil { return nil } - return o.InfoTooltipTitle + return e.InfoTooltipTitle } -func (o *EntitySchemaGroupWithCompositeIDInput) GetSchema() *string { - if o == nil { +func (e *EntitySchemaGroupWithCompositeIDInput) GetSchema() *string { + if e == nil { return nil } - return o.Schema + return e.Schema } diff --git a/internal/sdk/models/shared/entityschemaitem.go b/internal/sdk/models/shared/entityschemaitem.go index 09c4ab7b..3ceb3afb 100644 --- a/internal/sdk/models/shared/entityschemaitem.go +++ b/internal/sdk/models/shared/entityschemaitem.go @@ -18,9 +18,9 @@ const ( ) type TableView struct { - EntityDefaultTable *EntityDefaultTable `queryParam:"inline" name:"table_view"` - RedirectEntityView *RedirectEntityView `queryParam:"inline" name:"table_view"` - EntityViewDisabled *EntityViewDisabled `queryParam:"inline" name:"table_view"` + EntityDefaultTable *EntityDefaultTable `queryParam:"inline,name=table_view"` + RedirectEntityView *RedirectEntityView `queryParam:"inline,name=table_view"` + EntityViewDisabled *EntityViewDisabled `queryParam:"inline,name=table_view"` Type TableViewType } @@ -54,24 +54,54 @@ func CreateTableViewEntityViewDisabled(entityViewDisabled EntityViewDisabled) Ta func (u *TableView) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var entityDefaultTable EntityDefaultTable = EntityDefaultTable{} if err := utils.UnmarshalJSON(data, &entityDefaultTable, "", true, nil); err == nil { - u.EntityDefaultTable = &entityDefaultTable - u.Type = TableViewTypeEntityDefaultTable - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: TableViewTypeEntityDefaultTable, + Value: &entityDefaultTable, + }) } var redirectEntityView RedirectEntityView = RedirectEntityView{} if err := utils.UnmarshalJSON(data, &redirectEntityView, "", true, nil); err == nil { - u.RedirectEntityView = &redirectEntityView - u.Type = TableViewTypeRedirectEntityView - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: TableViewTypeRedirectEntityView, + Value: &redirectEntityView, + }) } var entityViewDisabled EntityViewDisabled = EntityViewDisabled{} if err := utils.UnmarshalJSON(data, &entityViewDisabled, "", true, nil); err == nil { - u.EntityViewDisabled = &entityViewDisabled - u.Type = TableViewTypeEntityViewDisabled + candidates = append(candidates, utils.UnionCandidate{ + Type: TableViewTypeEntityViewDisabled, + Value: &entityViewDisabled, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for TableView", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for TableView", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(TableViewType) + switch best.Type { + case TableViewTypeEntityDefaultTable: + u.EntityDefaultTable = best.Value.(*EntityDefaultTable) + return nil + case TableViewTypeRedirectEntityView: + u.RedirectEntityView = best.Value.(*RedirectEntityView) + return nil + case TableViewTypeEntityViewDisabled: + u.EntityViewDisabled = best.Value.(*EntityViewDisabled) return nil } @@ -103,9 +133,9 @@ const ( ) type CreateView struct { - EntityDefaultCreate *EntityDefaultCreate `queryParam:"inline" name:"create_view"` - RedirectEntityView *RedirectEntityView `queryParam:"inline" name:"create_view"` - EntityViewDisabled *EntityViewDisabled `queryParam:"inline" name:"create_view"` + EntityDefaultCreate *EntityDefaultCreate `queryParam:"inline,name=create_view"` + RedirectEntityView *RedirectEntityView `queryParam:"inline,name=create_view"` + EntityViewDisabled *EntityViewDisabled `queryParam:"inline,name=create_view"` Type CreateViewType } @@ -139,24 +169,54 @@ func CreateCreateViewEntityViewDisabled(entityViewDisabled EntityViewDisabled) C func (u *CreateView) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var entityDefaultCreate EntityDefaultCreate = EntityDefaultCreate{} if err := utils.UnmarshalJSON(data, &entityDefaultCreate, "", true, nil); err == nil { - u.EntityDefaultCreate = &entityDefaultCreate - u.Type = CreateViewTypeEntityDefaultCreate - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: CreateViewTypeEntityDefaultCreate, + Value: &entityDefaultCreate, + }) } var redirectEntityView RedirectEntityView = RedirectEntityView{} if err := utils.UnmarshalJSON(data, &redirectEntityView, "", true, nil); err == nil { - u.RedirectEntityView = &redirectEntityView - u.Type = CreateViewTypeRedirectEntityView - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: CreateViewTypeRedirectEntityView, + Value: &redirectEntityView, + }) } var entityViewDisabled EntityViewDisabled = EntityViewDisabled{} if err := utils.UnmarshalJSON(data, &entityViewDisabled, "", true, nil); err == nil { - u.EntityViewDisabled = &entityViewDisabled - u.Type = CreateViewTypeEntityViewDisabled + candidates = append(candidates, utils.UnionCandidate{ + Type: CreateViewTypeEntityViewDisabled, + Value: &entityViewDisabled, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateView", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreateView", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(CreateViewType) + switch best.Type { + case CreateViewTypeEntityDefaultCreate: + u.EntityDefaultCreate = best.Value.(*EntityDefaultCreate) + return nil + case CreateViewTypeRedirectEntityView: + u.RedirectEntityView = best.Value.(*RedirectEntityView) + return nil + case CreateViewTypeEntityViewDisabled: + u.EntityViewDisabled = best.Value.(*EntityViewDisabled) return nil } @@ -188,9 +248,9 @@ const ( ) type EditView struct { - EntityDefaultEdit *EntityDefaultEdit `queryParam:"inline" name:"edit_view"` - RedirectEntityView *RedirectEntityView `queryParam:"inline" name:"edit_view"` - EntityViewDisabled *EntityViewDisabled `queryParam:"inline" name:"edit_view"` + EntityDefaultEdit *EntityDefaultEdit `queryParam:"inline,name=edit_view"` + RedirectEntityView *RedirectEntityView `queryParam:"inline,name=edit_view"` + EntityViewDisabled *EntityViewDisabled `queryParam:"inline,name=edit_view"` Type EditViewType } @@ -224,24 +284,54 @@ func CreateEditViewEntityViewDisabled(entityViewDisabled EntityViewDisabled) Edi func (u *EditView) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var entityDefaultEdit EntityDefaultEdit = EntityDefaultEdit{} if err := utils.UnmarshalJSON(data, &entityDefaultEdit, "", true, nil); err == nil { - u.EntityDefaultEdit = &entityDefaultEdit - u.Type = EditViewTypeEntityDefaultEdit - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: EditViewTypeEntityDefaultEdit, + Value: &entityDefaultEdit, + }) } var redirectEntityView RedirectEntityView = RedirectEntityView{} if err := utils.UnmarshalJSON(data, &redirectEntityView, "", true, nil); err == nil { - u.RedirectEntityView = &redirectEntityView - u.Type = EditViewTypeRedirectEntityView - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: EditViewTypeRedirectEntityView, + Value: &redirectEntityView, + }) } var entityViewDisabled EntityViewDisabled = EntityViewDisabled{} if err := utils.UnmarshalJSON(data, &entityViewDisabled, "", true, nil); err == nil { - u.EntityViewDisabled = &entityViewDisabled - u.Type = EditViewTypeEntityViewDisabled + candidates = append(candidates, utils.UnionCandidate{ + Type: EditViewTypeEntityViewDisabled, + Value: &entityViewDisabled, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for EditView", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for EditView", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(EditViewType) + switch best.Type { + case EditViewTypeEntityDefaultEdit: + u.EntityDefaultEdit = best.Value.(*EntityDefaultEdit) + return nil + case EditViewTypeRedirectEntityView: + u.RedirectEntityView = best.Value.(*RedirectEntityView) + return nil + case EditViewTypeEntityViewDisabled: + u.EntityViewDisabled = best.Value.(*EntityViewDisabled) return nil } @@ -268,14 +358,14 @@ type SingleViewType string const ( SingleViewTypeEntityDefaultEdit SingleViewType = "EntityDefaultEdit" - SingleViewTypeRedirectEntityView SingleViewType = "RedirectEntityView" SingleViewTypeEntityViewDisabled SingleViewType = "EntityViewDisabled" + SingleViewTypeRedirectEntityView SingleViewType = "RedirectEntityView" ) type SingleView struct { - EntityDefaultEdit *EntityDefaultEdit `queryParam:"inline" name:"single_view"` - RedirectEntityView *RedirectEntityView `queryParam:"inline" name:"single_view"` - EntityViewDisabled *EntityViewDisabled `queryParam:"inline" name:"single_view"` + EntityDefaultEdit *EntityDefaultEdit `queryParam:"inline,name=single_view"` + EntityViewDisabled *EntityViewDisabled `queryParam:"inline,name=single_view"` + RedirectEntityView *RedirectEntityView `queryParam:"inline,name=single_view"` Type SingleViewType } @@ -289,44 +379,74 @@ func CreateSingleViewEntityDefaultEdit(entityDefaultEdit EntityDefaultEdit) Sing } } -func CreateSingleViewRedirectEntityView(redirectEntityView RedirectEntityView) SingleView { - typ := SingleViewTypeRedirectEntityView +func CreateSingleViewEntityViewDisabled(entityViewDisabled EntityViewDisabled) SingleView { + typ := SingleViewTypeEntityViewDisabled return SingleView{ - RedirectEntityView: &redirectEntityView, + EntityViewDisabled: &entityViewDisabled, Type: typ, } } -func CreateSingleViewEntityViewDisabled(entityViewDisabled EntityViewDisabled) SingleView { - typ := SingleViewTypeEntityViewDisabled +func CreateSingleViewRedirectEntityView(redirectEntityView RedirectEntityView) SingleView { + typ := SingleViewTypeRedirectEntityView return SingleView{ - EntityViewDisabled: &entityViewDisabled, + RedirectEntityView: &redirectEntityView, Type: typ, } } func (u *SingleView) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var entityDefaultEdit EntityDefaultEdit = EntityDefaultEdit{} if err := utils.UnmarshalJSON(data, &entityDefaultEdit, "", true, nil); err == nil { - u.EntityDefaultEdit = &entityDefaultEdit - u.Type = SingleViewTypeEntityDefaultEdit - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: SingleViewTypeEntityDefaultEdit, + Value: &entityDefaultEdit, + }) + } + + var entityViewDisabled EntityViewDisabled = EntityViewDisabled{} + if err := utils.UnmarshalJSON(data, &entityViewDisabled, "", true, nil); err == nil { + candidates = append(candidates, utils.UnionCandidate{ + Type: SingleViewTypeEntityViewDisabled, + Value: &entityViewDisabled, + }) } var redirectEntityView RedirectEntityView = RedirectEntityView{} if err := utils.UnmarshalJSON(data, &redirectEntityView, "", true, nil); err == nil { - u.RedirectEntityView = &redirectEntityView - u.Type = SingleViewTypeRedirectEntityView - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: SingleViewTypeRedirectEntityView, + Value: &redirectEntityView, + }) } - var entityViewDisabled EntityViewDisabled = EntityViewDisabled{} - if err := utils.UnmarshalJSON(data, &entityViewDisabled, "", true, nil); err == nil { - u.EntityViewDisabled = &entityViewDisabled - u.Type = SingleViewTypeEntityViewDisabled + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SingleView", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SingleView", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(SingleViewType) + switch best.Type { + case SingleViewTypeEntityDefaultEdit: + u.EntityDefaultEdit = best.Value.(*EntityDefaultEdit) + return nil + case SingleViewTypeEntityViewDisabled: + u.EntityViewDisabled = best.Value.(*EntityViewDisabled) + return nil + case SingleViewTypeRedirectEntityView: + u.RedirectEntityView = best.Value.(*RedirectEntityView) return nil } @@ -338,14 +458,14 @@ func (u SingleView) MarshalJSON() ([]byte, error) { return utils.MarshalJSON(u.EntityDefaultEdit, "", true) } - if u.RedirectEntityView != nil { - return utils.MarshalJSON(u.RedirectEntityView, "", true) - } - if u.EntityViewDisabled != nil { return utils.MarshalJSON(u.EntityViewDisabled, "", true) } + if u.RedirectEntityView != nil { + return utils.MarshalJSON(u.RedirectEntityView, "", true) + } + return nil, errors.New("could not marshal union type SingleView: all fields are null") } @@ -357,8 +477,8 @@ const ( ) type SummaryAttributes struct { - SummaryAttribute *SummaryAttribute `queryParam:"inline" name:"summary_attributes"` - Str *string `queryParam:"inline" name:"summary_attributes"` + SummaryAttribute *SummaryAttribute `queryParam:"inline,name=summary_attributes"` + Str *string `queryParam:"inline,name=summary_attributes"` Type SummaryAttributesType } @@ -383,17 +503,43 @@ func CreateSummaryAttributesStr(str string) SummaryAttributes { func (u *SummaryAttributes) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var summaryAttribute SummaryAttribute = SummaryAttribute{} if err := utils.UnmarshalJSON(data, &summaryAttribute, "", true, nil); err == nil { - u.SummaryAttribute = &summaryAttribute - u.Type = SummaryAttributesTypeSummaryAttribute - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: SummaryAttributesTypeSummaryAttribute, + Value: &summaryAttribute, + }) } var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = SummaryAttributesTypeStr + candidates = append(candidates, utils.UnionCandidate{ + Type: SummaryAttributesTypeStr, + Value: &str, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SummaryAttributes", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SummaryAttributes", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(SummaryAttributesType) + switch best.Type { + case SummaryAttributesTypeSummaryAttribute: + u.SummaryAttribute = best.Value.(*SummaryAttribute) + return nil + case SummaryAttributesTypeStr: + u.Str = best.Value.(*string) return nil } @@ -444,11 +590,11 @@ type EntitySchemaItemUIConfig struct { ContentDirection *ContentDirection `json:"content_direction,omitempty"` } -func (o *EntitySchemaItemUIConfig) GetContentDirection() *ContentDirection { - if o == nil { +func (e *EntitySchemaItemUIConfig) GetContentDirection() *ContentDirection { + if e == nil { return nil } - return o.ContentDirection + return e.ContentDirection } type ListItem struct { @@ -457,25 +603,25 @@ type ListItem struct { UIConfig *EntitySchemaItemUIConfig `json:"ui_config,omitempty"` } -func (o *ListItem) GetSummaryAttributes() []SummaryAttributes { - if o == nil { +func (l *ListItem) GetSummaryAttributes() []SummaryAttributes { + if l == nil { return nil } - return o.SummaryAttributes + return l.SummaryAttributes } -func (o *ListItem) GetQuickActions() []EntityAction { - if o == nil { +func (l *ListItem) GetQuickActions() []EntityAction { + if l == nil { return nil } - return o.QuickActions + return l.QuickActions } -func (o *ListItem) GetUIConfig() *EntitySchemaItemUIConfig { - if o == nil { +func (l *ListItem) GetUIConfig() *EntitySchemaItemUIConfig { + if l == nil { return nil } - return o.UIConfig + return l.UIConfig } type Sharing struct { @@ -483,11 +629,11 @@ type Sharing struct { ShowSharingButton *bool `json:"show_sharing_button,omitempty"` } -func (o *Sharing) GetShowSharingButton() *bool { - if o == nil { +func (s *Sharing) GetShowSharingButton() *bool { + if s == nil { return nil } - return o.ShowSharingButton + return s.ShowSharingButton } type UIConfig struct { @@ -499,46 +645,46 @@ type UIConfig struct { Sharing *Sharing `json:"sharing,omitempty"` } -func (o *UIConfig) GetTableView() *TableView { - if o == nil { +func (u *UIConfig) GetTableView() *TableView { + if u == nil { return nil } - return o.TableView + return u.TableView } -func (o *UIConfig) GetCreateView() *CreateView { - if o == nil { +func (u *UIConfig) GetCreateView() *CreateView { + if u == nil { return nil } - return o.CreateView + return u.CreateView } -func (o *UIConfig) GetEditView() *EditView { - if o == nil { +func (u *UIConfig) GetEditView() *EditView { + if u == nil { return nil } - return o.EditView + return u.EditView } -func (o *UIConfig) GetSingleView() *SingleView { - if o == nil { +func (u *UIConfig) GetSingleView() *SingleView { + if u == nil { return nil } - return o.SingleView + return u.SingleView } -func (o *UIConfig) GetListItem() *ListItem { - if o == nil { +func (u *UIConfig) GetListItem() *ListItem { + if u == nil { return nil } - return o.ListItem + return u.ListItem } -func (o *UIConfig) GetSharing() *Sharing { - if o == nil { +func (u *UIConfig) GetSharing() *Sharing { + if u == nil { return nil } - return o.Sharing + return u.Sharing } // LayoutSettings - Custom grid definitions for the layout. These settings are composed by managed and un-managed properties: @@ -563,25 +709,25 @@ func (l *LayoutSettings) UnmarshalJSON(data []byte) error { return nil } -func (o *LayoutSettings) GetGridGap() *string { - if o == nil { +func (l *LayoutSettings) GetGridGap() *string { + if l == nil { return nil } - return o.GridGap + return l.GridGap } -func (o *LayoutSettings) GetGridTemplateColumns() *string { - if o == nil { +func (l *LayoutSettings) GetGridTemplateColumns() *string { + if l == nil { return nil } - return o.GridTemplateColumns + return l.GridTemplateColumns } -func (o *LayoutSettings) GetAdditionalProperties() any { - if o == nil { +func (l *LayoutSettings) GetAdditionalProperties() any { + if l == nil { return nil } - return o.AdditionalProperties + return l.AdditionalProperties } // EntitySchemaItem - The "type" of an Entity. Describes the shape. Includes Entity Attributes, Relations and Capabilities. @@ -627,184 +773,184 @@ type EntitySchemaItem struct { GroupHeadlines any `json:"group_headlines,omitempty"` } -func (o *EntitySchemaItem) GetID() *string { - if o == nil { +func (e *EntitySchemaItem) GetID() *string { + if e == nil { return nil } - return o.ID + return e.ID } -func (o *EntitySchemaItem) GetCreatedAt() *string { - if o == nil { +func (e *EntitySchemaItem) GetCreatedAt() *string { + if e == nil { return nil } - return o.CreatedAt + return e.CreatedAt } -func (o *EntitySchemaItem) GetUpdatedAt() *string { - if o == nil { +func (e *EntitySchemaItem) GetUpdatedAt() *string { + if e == nil { return nil } - return o.UpdatedAt + return e.UpdatedAt } -func (o *EntitySchemaItem) GetSlug() string { - if o == nil { +func (e *EntitySchemaItem) GetSlug() string { + if e == nil { return "" } - return o.Slug + return e.Slug } -func (o *EntitySchemaItem) GetVersion() *int64 { - if o == nil { +func (e *EntitySchemaItem) GetVersion() *int64 { + if e == nil { return nil } - return o.Version + return e.Version } -func (o *EntitySchemaItem) GetBlueprint() *string { - if o == nil { +func (e *EntitySchemaItem) GetBlueprint() *string { + if e == nil { return nil } - return o.Blueprint + return e.Blueprint } -func (o *EntitySchemaItem) GetFeatureFlag() *string { - if o == nil { +func (e *EntitySchemaItem) GetFeatureFlag() *string { + if e == nil { return nil } - return o.FeatureFlag + return e.FeatureFlag } -func (o *EntitySchemaItem) GetEnableSetting() []string { - if o == nil { +func (e *EntitySchemaItem) GetEnableSetting() []string { + if e == nil { return nil } - return o.EnableSetting + return e.EnableSetting } -func (o *EntitySchemaItem) GetName() string { - if o == nil { +func (e *EntitySchemaItem) GetName() string { + if e == nil { return "" } - return o.Name + return e.Name } -func (o *EntitySchemaItem) GetPlural() string { - if o == nil { +func (e *EntitySchemaItem) GetPlural() string { + if e == nil { return "" } - return o.Plural + return e.Plural } -func (o *EntitySchemaItem) GetDescription() *string { - if o == nil { +func (e *EntitySchemaItem) GetDescription() *string { + if e == nil { return nil } - return o.Description + return e.Description } -func (o *EntitySchemaItem) GetDocsURL() *string { - if o == nil { +func (e *EntitySchemaItem) GetDocsURL() *string { + if e == nil { return nil } - return o.DocsURL + return e.DocsURL } -func (o *EntitySchemaItem) GetCategory() *string { - if o == nil { +func (e *EntitySchemaItem) GetCategory() *string { + if e == nil { return nil } - return o.Category + return e.Category } -func (o *EntitySchemaItem) GetPublished() *bool { - if o == nil { +func (e *EntitySchemaItem) GetPublished() *bool { + if e == nil { return nil } - return o.Published + return e.Published } -func (o *EntitySchemaItem) GetDraft() *bool { - if o == nil { +func (e *EntitySchemaItem) GetDraft() *bool { + if e == nil { return nil } - return o.Draft + return e.Draft } -func (o *EntitySchemaItem) GetIcon() *string { - if o == nil { +func (e *EntitySchemaItem) GetIcon() *string { + if e == nil { return nil } - return o.Icon + return e.Icon } -func (o *EntitySchemaItem) GetTitleTemplate() *string { - if o == nil { +func (e *EntitySchemaItem) GetTitleTemplate() *string { + if e == nil { return nil } - return o.TitleTemplate + return e.TitleTemplate } -func (o *EntitySchemaItem) GetUIConfig() *UIConfig { - if o == nil { +func (e *EntitySchemaItem) GetUIConfig() *UIConfig { + if e == nil { return nil } - return o.UIConfig + return e.UIConfig } -func (o *EntitySchemaItem) GetLayoutSettings() *LayoutSettings { - if o == nil { +func (e *EntitySchemaItem) GetLayoutSettings() *LayoutSettings { + if e == nil { return nil } - return o.LayoutSettings + return e.LayoutSettings } -func (o *EntitySchemaItem) GetDialogConfig() map[string]any { - if o == nil { +func (e *EntitySchemaItem) GetDialogConfig() map[string]any { + if e == nil { return nil } - return o.DialogConfig + return e.DialogConfig } -func (o *EntitySchemaItem) GetPurpose() []string { - if o == nil { +func (e *EntitySchemaItem) GetPurpose() []string { + if e == nil { return nil } - return o.Purpose + return e.Purpose } -func (o *EntitySchemaItem) GetExplicitSearchMappings() map[string]SearchMappings { - if o == nil { +func (e *EntitySchemaItem) GetExplicitSearchMappings() map[string]SearchMappings { + if e == nil { return nil } - return o.ExplicitSearchMappings + return e.ExplicitSearchMappings } -func (o *EntitySchemaItem) GetAttributes() any { - if o == nil { +func (e *EntitySchemaItem) GetAttributes() any { + if e == nil { return nil } - return o.Attributes + return e.Attributes } -func (o *EntitySchemaItem) GetCapabilities() any { - if o == nil { +func (e *EntitySchemaItem) GetCapabilities() any { + if e == nil { return nil } - return o.Capabilities + return e.Capabilities } -func (o *EntitySchemaItem) GetGroupSettings() any { - if o == nil { +func (e *EntitySchemaItem) GetGroupSettings() any { + if e == nil { return nil } - return o.GroupSettings + return e.GroupSettings } -func (o *EntitySchemaItem) GetGroupHeadlines() any { - if o == nil { +func (e *EntitySchemaItem) GetGroupHeadlines() any { + if e == nil { return nil } - return o.GroupHeadlines + return e.GroupHeadlines } diff --git a/internal/sdk/models/shared/entitysearchparams.go b/internal/sdk/models/shared/entitysearchparams.go index 5dc41a43..3c0b58a8 100644 --- a/internal/sdk/models/shared/entitysearchparams.go +++ b/internal/sdk/models/shared/entitysearchparams.go @@ -17,8 +17,8 @@ const ( // Sort - You can pass one sort field or an array of sort fields. Each sort field can be a string type Sort struct { - Str *string `queryParam:"inline" name:"sort"` - ArrayOfStr []string `queryParam:"inline" name:"sort"` + Str *string `queryParam:"inline,name=sort"` + ArrayOfStr []string `queryParam:"inline,name=sort"` Type SortType } @@ -43,17 +43,43 @@ func CreateSortArrayOfStr(arrayOfStr []string) Sort { func (u *Sort) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = SortTypeStr - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: SortTypeStr, + Value: &str, + }) } var arrayOfStr []string = []string{} if err := utils.UnmarshalJSON(data, &arrayOfStr, "", true, nil); err == nil { - u.ArrayOfStr = arrayOfStr - u.Type = SortTypeArrayOfStr + candidates = append(candidates, utils.UnionCandidate{ + Type: SortTypeArrayOfStr, + Value: arrayOfStr, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Sort", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for Sort", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(SortType) + switch best.Type { + case SortTypeStr: + u.Str = best.Value.(*string) + return nil + case SortTypeArrayOfStr: + u.ArrayOfStr = best.Value.([]string) return nil } @@ -84,8 +110,8 @@ const ( ) type SearchAfter struct { - Str *string `queryParam:"inline" name:"search_after"` - Number *float64 `queryParam:"inline" name:"search_after"` + Str *string `queryParam:"inline,name=search_after"` + Number *float64 `queryParam:"inline,name=search_after"` Type SearchAfterType } @@ -110,17 +136,43 @@ func CreateSearchAfterNumber(number float64) SearchAfter { func (u *SearchAfter) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = SearchAfterTypeStr - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: SearchAfterTypeStr, + Value: &str, + }) } var number float64 = float64(0) if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { - u.Number = &number - u.Type = SearchAfterTypeNumber + candidates = append(candidates, utils.UnionCandidate{ + Type: SearchAfterTypeNumber, + Value: &number, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SearchAfter", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SearchAfter", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(SearchAfterType) + switch best.Type { + case SearchAfterTypeStr: + u.Str = best.Value.(*string) + return nil + case SearchAfterTypeNumber: + u.Number = best.Value.(*float64) return nil } @@ -203,93 +255,93 @@ func (e *EntitySearchParams) UnmarshalJSON(data []byte) error { return nil } -func (o *EntitySearchParams) GetQ() string { - if o == nil { +func (e *EntitySearchParams) GetQ() string { + if e == nil { return "" } - return o.Q + return e.Q } -func (o *EntitySearchParams) GetIncludeScores() *bool { - if o == nil { +func (e *EntitySearchParams) GetIncludeScores() *bool { + if e == nil { return nil } - return o.IncludeScores + return e.IncludeScores } -func (o *EntitySearchParams) GetSort() *Sort { - if o == nil { +func (e *EntitySearchParams) GetSort() *Sort { + if e == nil { return nil } - return o.Sort + return e.Sort } -func (o *EntitySearchParams) GetFrom() *int64 { - if o == nil { +func (e *EntitySearchParams) GetFrom() *int64 { + if e == nil { return nil } - return o.From + return e.From } -func (o *EntitySearchParams) GetSize() *int64 { - if o == nil { +func (e *EntitySearchParams) GetSize() *int64 { + if e == nil { return nil } - return o.Size + return e.Size } -func (o *EntitySearchParams) GetHydrate() *bool { - if o == nil { +func (e *EntitySearchParams) GetHydrate() *bool { + if e == nil { return nil } - return o.Hydrate + return e.Hydrate } -func (o *EntitySearchParams) GetFields() []string { - if o == nil { +func (e *EntitySearchParams) GetFields() []string { + if e == nil { return nil } - return o.Fields + return e.Fields } -func (o *EntitySearchParams) GetAggs() *Aggs { - if o == nil { +func (e *EntitySearchParams) GetAggs() *Aggs { + if e == nil { return nil } - return o.Aggs + return e.Aggs } -func (o *EntitySearchParams) GetIncludeDeleted() *EntitySearchIncludeDeletedParam { - if o == nil { +func (e *EntitySearchParams) GetIncludeDeleted() *EntitySearchIncludeDeletedParam { + if e == nil { return nil } - return o.IncludeDeleted + return e.IncludeDeleted } -func (o *EntitySearchParams) GetHighlight() any { - if o == nil { +func (e *EntitySearchParams) GetHighlight() any { + if e == nil { return nil } - return o.Highlight + return e.Highlight } -func (o *EntitySearchParams) GetStableFor() *int64 { - if o == nil { +func (e *EntitySearchParams) GetStableFor() *int64 { + if e == nil { return nil } - return o.StableFor + return e.StableFor } -func (o *EntitySearchParams) GetStableQueryID() *string { - if o == nil { +func (e *EntitySearchParams) GetStableQueryID() *string { + if e == nil { return nil } - return o.StableQueryID + return e.StableQueryID } -func (o *EntitySearchParams) GetSearchAfter() []*SearchAfter { - if o == nil { +func (e *EntitySearchParams) GetSearchAfter() []*SearchAfter { + if e == nil { return nil } - return o.SearchAfter + return e.SearchAfter } diff --git a/internal/sdk/models/shared/entitysearchresults.go b/internal/sdk/models/shared/entitysearchresults.go index 16d8fc70..7ba49ddb 100644 --- a/internal/sdk/models/shared/entitysearchresults.go +++ b/internal/sdk/models/shared/entitysearchresults.go @@ -19,8 +19,8 @@ const ( ) type SortEnd struct { - Str *string `queryParam:"inline" name:"sort_end"` - Number *float64 `queryParam:"inline" name:"sort_end"` + Str *string `queryParam:"inline,name=sort_end"` + Number *float64 `queryParam:"inline,name=sort_end"` Type SortEndType } @@ -45,17 +45,43 @@ func CreateSortEndNumber(number float64) SortEnd { func (u *SortEnd) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = SortEndTypeStr - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: SortEndTypeStr, + Value: &str, + }) } var number float64 = float64(0) if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { - u.Number = &number - u.Type = SortEndTypeNumber + candidates = append(candidates, utils.UnionCandidate{ + Type: SortEndTypeNumber, + Value: &number, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SortEnd", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SortEnd", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(SortEndType) + switch best.Type { + case SortEndTypeStr: + u.Str = best.Value.(*string) + return nil + case SortEndTypeNumber: + u.Number = best.Value.(*float64) return nil } @@ -88,37 +114,37 @@ type EntitySearchResults struct { SortEnd []*SortEnd `json:"sort_end,omitempty"` } -func (o *EntitySearchResults) GetHits() *float64 { - if o == nil { +func (e *EntitySearchResults) GetHits() *float64 { + if e == nil { return nil } - return o.Hits + return e.Hits } -func (o *EntitySearchResults) GetResults() []EntityItem { - if o == nil { +func (e *EntitySearchResults) GetResults() []EntityItem { + if e == nil { return nil } - return o.Results + return e.Results } -func (o *EntitySearchResults) GetAggregations() *Aggregations { - if o == nil { +func (e *EntitySearchResults) GetAggregations() *Aggregations { + if e == nil { return nil } - return o.Aggregations + return e.Aggregations } -func (o *EntitySearchResults) GetStableQueryID() *string { - if o == nil { +func (e *EntitySearchResults) GetStableQueryID() *string { + if e == nil { return nil } - return o.StableQueryID + return e.StableQueryID } -func (o *EntitySearchResults) GetSortEnd() []*SortEnd { - if o == nil { +func (e *EntitySearchResults) GetSortEnd() []*SortEnd { + if e == nil { return nil } - return o.SortEnd + return e.SortEnd } diff --git a/internal/sdk/models/shared/entityvalidationerror.go b/internal/sdk/models/shared/entityvalidationerror.go index 566eb42d..d64d7492 100644 --- a/internal/sdk/models/shared/entityvalidationerror.go +++ b/internal/sdk/models/shared/entityvalidationerror.go @@ -8,11 +8,11 @@ type Params struct { Type *string `json:"type,omitempty"` } -func (o *Params) GetType() *string { - if o == nil { +func (p *Params) GetType() *string { + if p == nil { return nil } - return o.Type + return p.Type } // EntityValidationError - Validation error for an entity attribute @@ -27,30 +27,30 @@ type EntityValidationError struct { Message string `json:"message"` } -func (o *EntityValidationError) GetCode() string { - if o == nil { +func (e *EntityValidationError) GetCode() string { + if e == nil { return "" } - return o.Code + return e.Code } -func (o *EntityValidationError) GetParams() Params { - if o == nil { +func (e *EntityValidationError) GetParams() Params { + if e == nil { return Params{} } - return o.Params + return e.Params } -func (o *EntityValidationError) GetPath() []string { - if o == nil { +func (e *EntityValidationError) GetPath() []string { + if e == nil { return []string{} } - return o.Path + return e.Path } -func (o *EntityValidationError) GetMessage() string { - if o == nil { +func (e *EntityValidationError) GetMessage() string { + if e == nil { return "" } - return o.Message + return e.Message } diff --git a/internal/sdk/models/shared/entityvalidationresulterror.go b/internal/sdk/models/shared/entityvalidationresulterror.go index f3736114..caa4bf99 100644 --- a/internal/sdk/models/shared/entityvalidationresulterror.go +++ b/internal/sdk/models/shared/entityvalidationresulterror.go @@ -36,16 +36,16 @@ type EntityValidationResultError struct { Errors []EntityValidationError `json:"errors"` } -func (o *EntityValidationResultError) GetStatus() EntityValidationResultErrorStatus { - if o == nil { +func (e *EntityValidationResultError) GetStatus() EntityValidationResultErrorStatus { + if e == nil { return EntityValidationResultErrorStatus("") } - return o.Status + return e.Status } -func (o *EntityValidationResultError) GetErrors() []EntityValidationError { - if o == nil { +func (e *EntityValidationResultError) GetErrors() []EntityValidationError { + if e == nil { return []EntityValidationError{} } - return o.Errors + return e.Errors } diff --git a/internal/sdk/models/shared/entityvalidationresultsuccess.go b/internal/sdk/models/shared/entityvalidationresultsuccess.go index 2c12c39e..eebf68b8 100644 --- a/internal/sdk/models/shared/entityvalidationresultsuccess.go +++ b/internal/sdk/models/shared/entityvalidationresultsuccess.go @@ -36,16 +36,16 @@ type EntityValidationResultSuccess struct { Errors []EntityValidationError `json:"errors"` } -func (o *EntityValidationResultSuccess) GetStatus() EntityValidationResultSuccessStatus { - if o == nil { +func (e *EntityValidationResultSuccess) GetStatus() EntityValidationResultSuccessStatus { + if e == nil { return EntityValidationResultSuccessStatus("") } - return o.Status + return e.Status } -func (o *EntityValidationResultSuccess) GetErrors() []EntityValidationError { - if o == nil { +func (e *EntityValidationResultSuccess) GetErrors() []EntityValidationError { + if e == nil { return []EntityValidationError{} } - return o.Errors + return e.Errors } diff --git a/internal/sdk/models/shared/entityvalidationv2error.go b/internal/sdk/models/shared/entityvalidationv2error.go index 688fa8a3..d0881845 100644 --- a/internal/sdk/models/shared/entityvalidationv2error.go +++ b/internal/sdk/models/shared/entityvalidationv2error.go @@ -27,65 +27,65 @@ type EntityValidationV2Error struct { Data map[string]any `json:"data,omitempty"` } -func (o *EntityValidationV2Error) GetKeyword() string { - if o == nil { +func (e *EntityValidationV2Error) GetKeyword() string { + if e == nil { return "" } - return o.Keyword + return e.Keyword } -func (o *EntityValidationV2Error) GetInstancePath() string { - if o == nil { +func (e *EntityValidationV2Error) GetInstancePath() string { + if e == nil { return "" } - return o.InstancePath + return e.InstancePath } -func (o *EntityValidationV2Error) GetSchemaPath() string { - if o == nil { +func (e *EntityValidationV2Error) GetSchemaPath() string { + if e == nil { return "" } - return o.SchemaPath + return e.SchemaPath } -func (o *EntityValidationV2Error) GetParams() map[string]any { - if o == nil { +func (e *EntityValidationV2Error) GetParams() map[string]any { + if e == nil { return map[string]any{} } - return o.Params + return e.Params } -func (o *EntityValidationV2Error) GetPropertyName() *string { - if o == nil { +func (e *EntityValidationV2Error) GetPropertyName() *string { + if e == nil { return nil } - return o.PropertyName + return e.PropertyName } -func (o *EntityValidationV2Error) GetMessage() *string { - if o == nil { +func (e *EntityValidationV2Error) GetMessage() *string { + if e == nil { return nil } - return o.Message + return e.Message } -func (o *EntityValidationV2Error) GetSchema() *Schema { - if o == nil { +func (e *EntityValidationV2Error) GetSchema() *Schema { + if e == nil { return nil } - return o.Schema + return e.Schema } -func (o *EntityValidationV2Error) GetParentSchema() map[string]any { - if o == nil { +func (e *EntityValidationV2Error) GetParentSchema() map[string]any { + if e == nil { return nil } - return o.ParentSchema + return e.ParentSchema } -func (o *EntityValidationV2Error) GetData() map[string]any { - if o == nil { +func (e *EntityValidationV2Error) GetData() map[string]any { + if e == nil { return nil } - return o.Data + return e.Data } diff --git a/internal/sdk/models/shared/entityvalidationv2resulterror.go b/internal/sdk/models/shared/entityvalidationv2resulterror.go index 1e79cad2..f0dc45e1 100644 --- a/internal/sdk/models/shared/entityvalidationv2resulterror.go +++ b/internal/sdk/models/shared/entityvalidationv2resulterror.go @@ -36,16 +36,16 @@ type EntityValidationV2ResultError struct { Errors []EntityValidationV2Error `json:"errors"` } -func (o *EntityValidationV2ResultError) GetStatus() Status { - if o == nil { +func (e *EntityValidationV2ResultError) GetStatus() Status { + if e == nil { return Status("") } - return o.Status + return e.Status } -func (o *EntityValidationV2ResultError) GetErrors() []EntityValidationV2Error { - if o == nil { +func (e *EntityValidationV2ResultError) GetErrors() []EntityValidationV2Error { + if e == nil { return []EntityValidationV2Error{} } - return o.Errors + return e.Errors } diff --git a/internal/sdk/models/shared/entityvalidationv2resultsuccess.go b/internal/sdk/models/shared/entityvalidationv2resultsuccess.go index d737b309..eb44a028 100644 --- a/internal/sdk/models/shared/entityvalidationv2resultsuccess.go +++ b/internal/sdk/models/shared/entityvalidationv2resultsuccess.go @@ -36,16 +36,16 @@ type EntityValidationV2ResultSuccess struct { Errors []EntityValidationV2Error `json:"errors"` } -func (o *EntityValidationV2ResultSuccess) GetStatus() EntityValidationV2ResultSuccessStatus { - if o == nil { +func (e *EntityValidationV2ResultSuccess) GetStatus() EntityValidationV2ResultSuccessStatus { + if e == nil { return EntityValidationV2ResultSuccessStatus("") } - return o.Status + return e.Status } -func (o *EntityValidationV2ResultSuccess) GetErrors() []EntityValidationV2Error { - if o == nil { +func (e *EntityValidationV2ResultSuccess) GetErrors() []EntityValidationV2Error { + if e == nil { return []EntityValidationV2Error{} } - return o.Errors + return e.Errors } diff --git a/internal/sdk/models/shared/entityviewdisabled.go b/internal/sdk/models/shared/entityviewdisabled.go index 7f97f0aa..5f01fc1e 100644 --- a/internal/sdk/models/shared/entityviewdisabled.go +++ b/internal/sdk/models/shared/entityviewdisabled.go @@ -46,9 +46,9 @@ func (e *EntityViewDisabled) UnmarshalJSON(data []byte) error { return nil } -func (o *EntityViewDisabled) GetViewType() *EntityViewDisabledViewType { - if o == nil { +func (e *EntityViewDisabled) GetViewType() *EntityViewDisabledViewType { + if e == nil { return nil } - return o.ViewType + return e.ViewType } diff --git a/internal/sdk/models/shared/fileattribute.go b/internal/sdk/models/shared/fileattribute.go index f9dbca83..a78ded15 100644 --- a/internal/sdk/models/shared/fileattribute.go +++ b/internal/sdk/models/shared/fileattribute.go @@ -56,32 +56,32 @@ func (f *FileAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *FileAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (f *FileAttributeInfoHelpers) GetHintText() *string { + if f == nil { return nil } - return o.HintText + return f.HintText } -func (o *FileAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (f *FileAttributeInfoHelpers) GetHintTextKey() *string { + if f == nil { return nil } - return o.HintTextKey + return f.HintTextKey } -func (o *FileAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (f *FileAttributeInfoHelpers) GetHintCustomComponent() *string { + if f == nil { return nil } - return o.HintCustomComponent + return f.HintCustomComponent } -func (o *FileAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (f *FileAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if f == nil { return nil } - return o.HintTooltipPlacement + return f.HintTooltipPlacement } type FileAttributeType string @@ -215,247 +215,247 @@ func (f *FileAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *FileAttribute) GetID() *string { - if o == nil { +func (f *FileAttribute) GetID() *string { + if f == nil { return nil } - return o.ID + return f.ID } -func (o *FileAttribute) GetName() string { - if o == nil { +func (f *FileAttribute) GetName() string { + if f == nil { return "" } - return o.Name + return f.Name } -func (o *FileAttribute) GetLabel() string { - if o == nil { +func (f *FileAttribute) GetLabel() string { + if f == nil { return "" } - return o.Label + return f.Label } -func (o *FileAttribute) GetPlaceholder() *string { - if o == nil { +func (f *FileAttribute) GetPlaceholder() *string { + if f == nil { return nil } - return o.Placeholder + return f.Placeholder } -func (o *FileAttribute) GetHidden() *bool { - if o == nil { +func (f *FileAttribute) GetHidden() *bool { + if f == nil { return nil } - return o.Hidden + return f.Hidden } -func (o *FileAttribute) GetShowInTable() *bool { - if o == nil { +func (f *FileAttribute) GetShowInTable() *bool { + if f == nil { return nil } - return o.ShowInTable + return f.ShowInTable } -func (o *FileAttribute) GetSortable() *bool { - if o == nil { +func (f *FileAttribute) GetSortable() *bool { + if f == nil { return nil } - return o.Sortable + return f.Sortable } -func (o *FileAttribute) GetRequired() *bool { - if o == nil { +func (f *FileAttribute) GetRequired() *bool { + if f == nil { return nil } - return o.Required + return f.Required } -func (o *FileAttribute) GetReadonly() *bool { - if o == nil { +func (f *FileAttribute) GetReadonly() *bool { + if f == nil { return nil } - return o.Readonly + return f.Readonly } -func (o *FileAttribute) GetDeprecated() *bool { - if o == nil { +func (f *FileAttribute) GetDeprecated() *bool { + if f == nil { return nil } - return o.Deprecated + return f.Deprecated } -func (o *FileAttribute) GetDefaultValue() any { - if o == nil { +func (f *FileAttribute) GetDefaultValue() any { + if f == nil { return nil } - return o.DefaultValue + return f.DefaultValue } -func (o *FileAttribute) GetGroup() *string { - if o == nil { +func (f *FileAttribute) GetGroup() *string { + if f == nil { return nil } - return o.Group + return f.Group } -func (o *FileAttribute) GetOrder() *int64 { - if o == nil { +func (f *FileAttribute) GetOrder() *int64 { + if f == nil { return nil } - return o.Order + return f.Order } -func (o *FileAttribute) GetLayout() *string { - if o == nil { +func (f *FileAttribute) GetLayout() *string { + if f == nil { return nil } - return o.Layout + return f.Layout } -func (o *FileAttribute) GetHideLabel() *bool { - if o == nil { +func (f *FileAttribute) GetHideLabel() *bool { + if f == nil { return nil } - return o.HideLabel + return f.HideLabel } -func (o *FileAttribute) GetIcon() *string { - if o == nil { +func (f *FileAttribute) GetIcon() *string { + if f == nil { return nil } - return o.Icon + return f.Icon } -func (o *FileAttribute) GetRenderCondition() *string { - if o == nil { +func (f *FileAttribute) GetRenderCondition() *string { + if f == nil { return nil } - return o.RenderCondition + return f.RenderCondition } -func (o *FileAttribute) GetPurpose() []string { - if o == nil { +func (f *FileAttribute) GetPurpose() []string { + if f == nil { return nil } - return o.Purpose + return f.Purpose } -func (o *FileAttribute) GetManifest() []string { - if o == nil { +func (f *FileAttribute) GetManifest() []string { + if f == nil { return nil } - return o.Manifest + return f.Manifest } -func (o *FileAttribute) GetConstraints() *FileAttributeConstraints { - if o == nil { +func (f *FileAttribute) GetConstraints() *FileAttributeConstraints { + if f == nil { return nil } - return o.Constraints + return f.Constraints } -func (o *FileAttribute) GetFeatureFlag() *string { - if o == nil { +func (f *FileAttribute) GetFeatureFlag() *string { + if f == nil { return nil } - return o.FeatureFlag + return f.FeatureFlag } -func (o *FileAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (f *FileAttribute) GetSettingsFlag() []SettingFlag { + if f == nil { return nil } - return o.SettingsFlag + return f.SettingsFlag } -func (o *FileAttribute) GetValueFormatter() *string { - if o == nil { +func (f *FileAttribute) GetValueFormatter() *string { + if f == nil { return nil } - return o.ValueFormatter + return f.ValueFormatter } -func (o *FileAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (f *FileAttribute) GetPreviewValueFormatter() *string { + if f == nil { return nil } - return o.PreviewValueFormatter + return f.PreviewValueFormatter } -func (o *FileAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (f *FileAttribute) GetEntityBuilderDisableEdit() *bool { + if f == nil { return nil } - return o.EntityBuilderDisableEdit + return f.EntityBuilderDisableEdit } -func (o *FileAttribute) GetProtected() *bool { - if o == nil { +func (f *FileAttribute) GetProtected() *bool { + if f == nil { return nil } - return o.Protected + return f.Protected } -func (o *FileAttribute) GetInfoHelpers() *FileAttributeInfoHelpers { - if o == nil { +func (f *FileAttribute) GetInfoHelpers() *FileAttributeInfoHelpers { + if f == nil { return nil } - return o.InfoHelpers + return f.InfoHelpers } -func (o *FileAttribute) GetRepeatable() *bool { - if o == nil { +func (f *FileAttribute) GetRepeatable() *bool { + if f == nil { return nil } - return o.Repeatable + return f.Repeatable } -func (o *FileAttribute) GetHasPrimary() *bool { - if o == nil { +func (f *FileAttribute) GetHasPrimary() *bool { + if f == nil { return nil } - return o.HasPrimary + return f.HasPrimary } -func (o *FileAttribute) GetType() FileAttributeType { - if o == nil { +func (f *FileAttribute) GetType() FileAttributeType { + if f == nil { return FileAttributeType("") } - return o.Type + return f.Type } -func (o *FileAttribute) GetMultiple() *bool { - if o == nil { +func (f *FileAttribute) GetMultiple() *bool { + if f == nil { return nil } - return o.Multiple + return f.Multiple } -func (o *FileAttribute) GetAllowedExtensions() []string { - if o == nil { +func (f *FileAttribute) GetAllowedExtensions() []string { + if f == nil { return nil } - return o.AllowedExtensions + return f.AllowedExtensions } -func (o *FileAttribute) GetDisplayImagesLandscaped() *bool { - if o == nil { +func (f *FileAttribute) GetDisplayImagesLandscaped() *bool { + if f == nil { return nil } - return o.DisplayImagesLandscaped + return f.DisplayImagesLandscaped } -func (o *FileAttribute) GetEnableDescription() *bool { - if o == nil { +func (f *FileAttribute) GetEnableDescription() *bool { + if f == nil { return nil } - return o.EnableDescription + return f.EnableDescription } -func (o *FileAttribute) GetDefaultAccessControl() *DefaultAccessControl { - if o == nil { +func (f *FileAttribute) GetDefaultAccessControl() *DefaultAccessControl { + if f == nil { return nil } - return o.DefaultAccessControl + return f.DefaultAccessControl } diff --git a/internal/sdk/models/shared/getrelatedentitiescount.go b/internal/sdk/models/shared/getrelatedentitiescount.go index e89ce92d..bbbb72eb 100644 --- a/internal/sdk/models/shared/getrelatedentitiescount.go +++ b/internal/sdk/models/shared/getrelatedentitiescount.go @@ -6,9 +6,9 @@ type GetRelatedEntitiesCount struct { Hits *int64 `json:"hits,omitempty"` } -func (o *GetRelatedEntitiesCount) GetHits() *int64 { - if o == nil { +func (g *GetRelatedEntitiesCount) GetHits() *int64 { + if g == nil { return nil } - return o.Hits + return g.Hits } diff --git a/internal/sdk/models/shared/getrelationsresp.go b/internal/sdk/models/shared/getrelationsresp.go index 52bf2f40..92ee03f2 100644 --- a/internal/sdk/models/shared/getrelationsresp.go +++ b/internal/sdk/models/shared/getrelationsresp.go @@ -16,8 +16,8 @@ const ( ) type GetRelationsResp struct { - RelationItem *RelationItem `queryParam:"inline" name:"GetRelationsResp"` - RelationEntity *RelationEntity `queryParam:"inline" name:"GetRelationsResp"` + RelationItem *RelationItem `queryParam:"inline,name=GetRelationsResp"` + RelationEntity *RelationEntity `queryParam:"inline,name=GetRelationsResp"` Type GetRelationsRespType } @@ -42,17 +42,43 @@ func CreateGetRelationsRespRelationEntity(relationEntity RelationEntity) GetRela func (u *GetRelationsResp) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var relationEntity RelationEntity = RelationEntity{} if err := utils.UnmarshalJSON(data, &relationEntity, "", true, nil); err == nil { - u.RelationEntity = &relationEntity - u.Type = GetRelationsRespTypeRelationEntity - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: GetRelationsRespTypeRelationEntity, + Value: &relationEntity, + }) } var relationItem RelationItem = RelationItem{} if err := utils.UnmarshalJSON(data, &relationItem, "", true, nil); err == nil { - u.RelationItem = &relationItem - u.Type = GetRelationsRespTypeRelationItem + candidates = append(candidates, utils.UnionCandidate{ + Type: GetRelationsRespTypeRelationItem, + Value: &relationItem, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetRelationsResp", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetRelationsResp", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(GetRelationsRespType) + switch best.Type { + case GetRelationsRespTypeRelationEntity: + u.RelationEntity = best.Value.(*RelationEntity) + return nil + case GetRelationsRespTypeRelationItem: + u.RelationItem = best.Value.(*RelationItem) return nil } diff --git a/internal/sdk/models/shared/getrelationsrespwithpagination.go b/internal/sdk/models/shared/getrelationsrespwithpagination.go index 720ef2c4..d6f61b35 100644 --- a/internal/sdk/models/shared/getrelationsrespwithpagination.go +++ b/internal/sdk/models/shared/getrelationsrespwithpagination.go @@ -7,16 +7,16 @@ type GetRelationsRespWithPagination struct { Relations []GetRelationsResp `json:"relations,omitempty"` } -func (o *GetRelationsRespWithPagination) GetHits() *float64 { - if o == nil { +func (g *GetRelationsRespWithPagination) GetHits() *float64 { + if g == nil { return nil } - return o.Hits + return g.Hits } -func (o *GetRelationsRespWithPagination) GetRelations() []GetRelationsResp { - if o == nil { +func (g *GetRelationsRespWithPagination) GetRelations() []GetRelationsResp { + if g == nil { return nil } - return o.Relations + return g.Relations } diff --git a/internal/sdk/models/shared/groupheadlinewithcompositeid.go b/internal/sdk/models/shared/groupheadlinewithcompositeid.go index dbe3db6e..cbc59aad 100644 --- a/internal/sdk/models/shared/groupheadlinewithcompositeid.go +++ b/internal/sdk/models/shared/groupheadlinewithcompositeid.go @@ -89,95 +89,95 @@ func (g *GroupHeadlineWithCompositeID) UnmarshalJSON(data []byte) error { return nil } -func (o *GroupHeadlineWithCompositeID) GetID() *string { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetID() *string { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GroupHeadlineWithCompositeID) GetName() string { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetName() string { + if g == nil { return "" } - return o.Name + return g.Name } -func (o *GroupHeadlineWithCompositeID) GetLabel() string { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetLabel() string { + if g == nil { return "" } - return o.Label + return g.Label } -func (o *GroupHeadlineWithCompositeID) GetLayout() *string { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetLayout() *string { + if g == nil { return nil } - return o.Layout + return g.Layout } -func (o *GroupHeadlineWithCompositeID) GetGroup() string { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetGroup() string { + if g == nil { return "" } - return o.Group + return g.Group } -func (o *GroupHeadlineWithCompositeID) GetOrder() *int64 { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetOrder() *int64 { + if g == nil { return nil } - return o.Order + return g.Order } -func (o *GroupHeadlineWithCompositeID) GetType() GroupHeadlineWithCompositeIDType { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetType() GroupHeadlineWithCompositeIDType { + if g == nil { return GroupHeadlineWithCompositeIDType("") } - return o.Type + return g.Type } -func (o *GroupHeadlineWithCompositeID) GetEnableDivider() *bool { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetEnableDivider() *bool { + if g == nil { return nil } - return o.EnableDivider + return g.EnableDivider } -func (o *GroupHeadlineWithCompositeID) GetDivider() *Divider { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetDivider() *Divider { + if g == nil { return nil } - return o.Divider + return g.Divider } -func (o *GroupHeadlineWithCompositeID) GetPurpose() []string { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetPurpose() []string { + if g == nil { return nil } - return o.Purpose + return g.Purpose } -func (o *GroupHeadlineWithCompositeID) GetManifest() []string { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetManifest() []string { + if g == nil { return nil } - return o.Manifest + return g.Manifest } -func (o *GroupHeadlineWithCompositeID) GetCompositeID() *string { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetCompositeID() *string { + if g == nil { return nil } - return o.CompositeID + return g.CompositeID } -func (o *GroupHeadlineWithCompositeID) GetSchema() *string { - if o == nil { +func (g *GroupHeadlineWithCompositeID) GetSchema() *string { + if g == nil { return nil } - return o.Schema + return g.Schema } // GroupHeadlineWithCompositeIDInput - a readonly computed ID for the entity group headline including schema slug and the headline ID @@ -211,86 +211,86 @@ func (g *GroupHeadlineWithCompositeIDInput) UnmarshalJSON(data []byte) error { return nil } -func (o *GroupHeadlineWithCompositeIDInput) GetID() *string { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetID() *string { + if g == nil { return nil } - return o.ID + return g.ID } -func (o *GroupHeadlineWithCompositeIDInput) GetName() string { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetName() string { + if g == nil { return "" } - return o.Name + return g.Name } -func (o *GroupHeadlineWithCompositeIDInput) GetLabel() string { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetLabel() string { + if g == nil { return "" } - return o.Label + return g.Label } -func (o *GroupHeadlineWithCompositeIDInput) GetLayout() *string { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetLayout() *string { + if g == nil { return nil } - return o.Layout + return g.Layout } -func (o *GroupHeadlineWithCompositeIDInput) GetGroup() string { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetGroup() string { + if g == nil { return "" } - return o.Group + return g.Group } -func (o *GroupHeadlineWithCompositeIDInput) GetOrder() *int64 { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetOrder() *int64 { + if g == nil { return nil } - return o.Order + return g.Order } -func (o *GroupHeadlineWithCompositeIDInput) GetType() GroupHeadlineWithCompositeIDType { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetType() GroupHeadlineWithCompositeIDType { + if g == nil { return GroupHeadlineWithCompositeIDType("") } - return o.Type + return g.Type } -func (o *GroupHeadlineWithCompositeIDInput) GetEnableDivider() *bool { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetEnableDivider() *bool { + if g == nil { return nil } - return o.EnableDivider + return g.EnableDivider } -func (o *GroupHeadlineWithCompositeIDInput) GetDivider() *Divider { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetDivider() *Divider { + if g == nil { return nil } - return o.Divider + return g.Divider } -func (o *GroupHeadlineWithCompositeIDInput) GetPurpose() []string { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetPurpose() []string { + if g == nil { return nil } - return o.Purpose + return g.Purpose } -func (o *GroupHeadlineWithCompositeIDInput) GetManifest() []string { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetManifest() []string { + if g == nil { return nil } - return o.Manifest + return g.Manifest } -func (o *GroupHeadlineWithCompositeIDInput) GetSchema() *string { - if o == nil { +func (g *GroupHeadlineWithCompositeIDInput) GetSchema() *string { + if g == nil { return nil } - return o.Schema + return g.Schema } diff --git a/internal/sdk/models/shared/internalattribute.go b/internal/sdk/models/shared/internalattribute.go index 2e22cfc1..62ec88c1 100644 --- a/internal/sdk/models/shared/internalattribute.go +++ b/internal/sdk/models/shared/internalattribute.go @@ -56,32 +56,32 @@ func (i *InternalAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *InternalAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (i *InternalAttributeInfoHelpers) GetHintText() *string { + if i == nil { return nil } - return o.HintText + return i.HintText } -func (o *InternalAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (i *InternalAttributeInfoHelpers) GetHintTextKey() *string { + if i == nil { return nil } - return o.HintTextKey + return i.HintTextKey } -func (o *InternalAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (i *InternalAttributeInfoHelpers) GetHintCustomComponent() *string { + if i == nil { return nil } - return o.HintCustomComponent + return i.HintCustomComponent } -func (o *InternalAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (i *InternalAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if i == nil { return nil } - return o.HintTooltipPlacement + return i.HintTooltipPlacement } type InternalAttributeType string @@ -176,212 +176,212 @@ func (i *InternalAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *InternalAttribute) GetID() *string { - if o == nil { +func (i *InternalAttribute) GetID() *string { + if i == nil { return nil } - return o.ID + return i.ID } -func (o *InternalAttribute) GetName() string { - if o == nil { +func (i *InternalAttribute) GetName() string { + if i == nil { return "" } - return o.Name + return i.Name } -func (o *InternalAttribute) GetLabel() string { - if o == nil { +func (i *InternalAttribute) GetLabel() string { + if i == nil { return "" } - return o.Label + return i.Label } -func (o *InternalAttribute) GetPlaceholder() *string { - if o == nil { +func (i *InternalAttribute) GetPlaceholder() *string { + if i == nil { return nil } - return o.Placeholder + return i.Placeholder } -func (o *InternalAttribute) GetHidden() *bool { - if o == nil { +func (i *InternalAttribute) GetHidden() *bool { + if i == nil { return nil } - return o.Hidden + return i.Hidden } -func (o *InternalAttribute) GetShowInTable() *bool { - if o == nil { +func (i *InternalAttribute) GetShowInTable() *bool { + if i == nil { return nil } - return o.ShowInTable + return i.ShowInTable } -func (o *InternalAttribute) GetSortable() *bool { - if o == nil { +func (i *InternalAttribute) GetSortable() *bool { + if i == nil { return nil } - return o.Sortable + return i.Sortable } -func (o *InternalAttribute) GetRequired() *bool { - if o == nil { +func (i *InternalAttribute) GetRequired() *bool { + if i == nil { return nil } - return o.Required + return i.Required } -func (o *InternalAttribute) GetReadonly() *bool { - if o == nil { +func (i *InternalAttribute) GetReadonly() *bool { + if i == nil { return nil } - return o.Readonly + return i.Readonly } -func (o *InternalAttribute) GetDeprecated() *bool { - if o == nil { +func (i *InternalAttribute) GetDeprecated() *bool { + if i == nil { return nil } - return o.Deprecated + return i.Deprecated } -func (o *InternalAttribute) GetDefaultValue() any { - if o == nil { +func (i *InternalAttribute) GetDefaultValue() any { + if i == nil { return nil } - return o.DefaultValue + return i.DefaultValue } -func (o *InternalAttribute) GetGroup() *string { - if o == nil { +func (i *InternalAttribute) GetGroup() *string { + if i == nil { return nil } - return o.Group + return i.Group } -func (o *InternalAttribute) GetOrder() *int64 { - if o == nil { +func (i *InternalAttribute) GetOrder() *int64 { + if i == nil { return nil } - return o.Order + return i.Order } -func (o *InternalAttribute) GetLayout() *string { - if o == nil { +func (i *InternalAttribute) GetLayout() *string { + if i == nil { return nil } - return o.Layout + return i.Layout } -func (o *InternalAttribute) GetHideLabel() *bool { - if o == nil { +func (i *InternalAttribute) GetHideLabel() *bool { + if i == nil { return nil } - return o.HideLabel + return i.HideLabel } -func (o *InternalAttribute) GetIcon() *string { - if o == nil { +func (i *InternalAttribute) GetIcon() *string { + if i == nil { return nil } - return o.Icon + return i.Icon } -func (o *InternalAttribute) GetRenderCondition() *string { - if o == nil { +func (i *InternalAttribute) GetRenderCondition() *string { + if i == nil { return nil } - return o.RenderCondition + return i.RenderCondition } -func (o *InternalAttribute) GetPurpose() []string { - if o == nil { +func (i *InternalAttribute) GetPurpose() []string { + if i == nil { return nil } - return o.Purpose + return i.Purpose } -func (o *InternalAttribute) GetManifest() []string { - if o == nil { +func (i *InternalAttribute) GetManifest() []string { + if i == nil { return nil } - return o.Manifest + return i.Manifest } -func (o *InternalAttribute) GetConstraints() *InternalAttributeConstraints { - if o == nil { +func (i *InternalAttribute) GetConstraints() *InternalAttributeConstraints { + if i == nil { return nil } - return o.Constraints + return i.Constraints } -func (o *InternalAttribute) GetFeatureFlag() *string { - if o == nil { +func (i *InternalAttribute) GetFeatureFlag() *string { + if i == nil { return nil } - return o.FeatureFlag + return i.FeatureFlag } -func (o *InternalAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (i *InternalAttribute) GetSettingsFlag() []SettingFlag { + if i == nil { return nil } - return o.SettingsFlag + return i.SettingsFlag } -func (o *InternalAttribute) GetValueFormatter() *string { - if o == nil { +func (i *InternalAttribute) GetValueFormatter() *string { + if i == nil { return nil } - return o.ValueFormatter + return i.ValueFormatter } -func (o *InternalAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (i *InternalAttribute) GetPreviewValueFormatter() *string { + if i == nil { return nil } - return o.PreviewValueFormatter + return i.PreviewValueFormatter } -func (o *InternalAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (i *InternalAttribute) GetEntityBuilderDisableEdit() *bool { + if i == nil { return nil } - return o.EntityBuilderDisableEdit + return i.EntityBuilderDisableEdit } -func (o *InternalAttribute) GetProtected() *bool { - if o == nil { +func (i *InternalAttribute) GetProtected() *bool { + if i == nil { return nil } - return o.Protected + return i.Protected } -func (o *InternalAttribute) GetInfoHelpers() *InternalAttributeInfoHelpers { - if o == nil { +func (i *InternalAttribute) GetInfoHelpers() *InternalAttributeInfoHelpers { + if i == nil { return nil } - return o.InfoHelpers + return i.InfoHelpers } -func (o *InternalAttribute) GetRepeatable() *bool { - if o == nil { +func (i *InternalAttribute) GetRepeatable() *bool { + if i == nil { return nil } - return o.Repeatable + return i.Repeatable } -func (o *InternalAttribute) GetHasPrimary() *bool { - if o == nil { +func (i *InternalAttribute) GetHasPrimary() *bool { + if i == nil { return nil } - return o.HasPrimary + return i.HasPrimary } -func (o *InternalAttribute) GetType() InternalAttributeType { - if o == nil { +func (i *InternalAttribute) GetType() InternalAttributeType { + if i == nil { return InternalAttributeType("") } - return o.Type + return i.Type } diff --git a/internal/sdk/models/shared/internaluserattribute.go b/internal/sdk/models/shared/internaluserattribute.go index d8526c62..68a64f9a 100644 --- a/internal/sdk/models/shared/internaluserattribute.go +++ b/internal/sdk/models/shared/internaluserattribute.go @@ -56,32 +56,32 @@ func (i *InternalUserAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *InternalUserAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (i *InternalUserAttributeInfoHelpers) GetHintText() *string { + if i == nil { return nil } - return o.HintText + return i.HintText } -func (o *InternalUserAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (i *InternalUserAttributeInfoHelpers) GetHintTextKey() *string { + if i == nil { return nil } - return o.HintTextKey + return i.HintTextKey } -func (o *InternalUserAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (i *InternalUserAttributeInfoHelpers) GetHintCustomComponent() *string { + if i == nil { return nil } - return o.HintCustomComponent + return i.HintCustomComponent } -func (o *InternalUserAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (i *InternalUserAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if i == nil { return nil } - return o.HintTooltipPlacement + return i.HintTooltipPlacement } type InternalUserAttributeType string @@ -176,212 +176,212 @@ func (i *InternalUserAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *InternalUserAttribute) GetID() *string { - if o == nil { +func (i *InternalUserAttribute) GetID() *string { + if i == nil { return nil } - return o.ID + return i.ID } -func (o *InternalUserAttribute) GetName() string { - if o == nil { +func (i *InternalUserAttribute) GetName() string { + if i == nil { return "" } - return o.Name + return i.Name } -func (o *InternalUserAttribute) GetLabel() string { - if o == nil { +func (i *InternalUserAttribute) GetLabel() string { + if i == nil { return "" } - return o.Label + return i.Label } -func (o *InternalUserAttribute) GetPlaceholder() *string { - if o == nil { +func (i *InternalUserAttribute) GetPlaceholder() *string { + if i == nil { return nil } - return o.Placeholder + return i.Placeholder } -func (o *InternalUserAttribute) GetHidden() *bool { - if o == nil { +func (i *InternalUserAttribute) GetHidden() *bool { + if i == nil { return nil } - return o.Hidden + return i.Hidden } -func (o *InternalUserAttribute) GetShowInTable() *bool { - if o == nil { +func (i *InternalUserAttribute) GetShowInTable() *bool { + if i == nil { return nil } - return o.ShowInTable + return i.ShowInTable } -func (o *InternalUserAttribute) GetSortable() *bool { - if o == nil { +func (i *InternalUserAttribute) GetSortable() *bool { + if i == nil { return nil } - return o.Sortable + return i.Sortable } -func (o *InternalUserAttribute) GetRequired() *bool { - if o == nil { +func (i *InternalUserAttribute) GetRequired() *bool { + if i == nil { return nil } - return o.Required + return i.Required } -func (o *InternalUserAttribute) GetReadonly() *bool { - if o == nil { +func (i *InternalUserAttribute) GetReadonly() *bool { + if i == nil { return nil } - return o.Readonly + return i.Readonly } -func (o *InternalUserAttribute) GetDeprecated() *bool { - if o == nil { +func (i *InternalUserAttribute) GetDeprecated() *bool { + if i == nil { return nil } - return o.Deprecated + return i.Deprecated } -func (o *InternalUserAttribute) GetDefaultValue() any { - if o == nil { +func (i *InternalUserAttribute) GetDefaultValue() any { + if i == nil { return nil } - return o.DefaultValue + return i.DefaultValue } -func (o *InternalUserAttribute) GetGroup() *string { - if o == nil { +func (i *InternalUserAttribute) GetGroup() *string { + if i == nil { return nil } - return o.Group + return i.Group } -func (o *InternalUserAttribute) GetOrder() *int64 { - if o == nil { +func (i *InternalUserAttribute) GetOrder() *int64 { + if i == nil { return nil } - return o.Order + return i.Order } -func (o *InternalUserAttribute) GetLayout() *string { - if o == nil { +func (i *InternalUserAttribute) GetLayout() *string { + if i == nil { return nil } - return o.Layout + return i.Layout } -func (o *InternalUserAttribute) GetHideLabel() *bool { - if o == nil { +func (i *InternalUserAttribute) GetHideLabel() *bool { + if i == nil { return nil } - return o.HideLabel + return i.HideLabel } -func (o *InternalUserAttribute) GetIcon() *string { - if o == nil { +func (i *InternalUserAttribute) GetIcon() *string { + if i == nil { return nil } - return o.Icon + return i.Icon } -func (o *InternalUserAttribute) GetRenderCondition() *string { - if o == nil { +func (i *InternalUserAttribute) GetRenderCondition() *string { + if i == nil { return nil } - return o.RenderCondition + return i.RenderCondition } -func (o *InternalUserAttribute) GetPurpose() []string { - if o == nil { +func (i *InternalUserAttribute) GetPurpose() []string { + if i == nil { return nil } - return o.Purpose + return i.Purpose } -func (o *InternalUserAttribute) GetManifest() []string { - if o == nil { +func (i *InternalUserAttribute) GetManifest() []string { + if i == nil { return nil } - return o.Manifest + return i.Manifest } -func (o *InternalUserAttribute) GetConstraints() *InternalUserAttributeConstraints { - if o == nil { +func (i *InternalUserAttribute) GetConstraints() *InternalUserAttributeConstraints { + if i == nil { return nil } - return o.Constraints + return i.Constraints } -func (o *InternalUserAttribute) GetFeatureFlag() *string { - if o == nil { +func (i *InternalUserAttribute) GetFeatureFlag() *string { + if i == nil { return nil } - return o.FeatureFlag + return i.FeatureFlag } -func (o *InternalUserAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (i *InternalUserAttribute) GetSettingsFlag() []SettingFlag { + if i == nil { return nil } - return o.SettingsFlag + return i.SettingsFlag } -func (o *InternalUserAttribute) GetValueFormatter() *string { - if o == nil { +func (i *InternalUserAttribute) GetValueFormatter() *string { + if i == nil { return nil } - return o.ValueFormatter + return i.ValueFormatter } -func (o *InternalUserAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (i *InternalUserAttribute) GetPreviewValueFormatter() *string { + if i == nil { return nil } - return o.PreviewValueFormatter + return i.PreviewValueFormatter } -func (o *InternalUserAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (i *InternalUserAttribute) GetEntityBuilderDisableEdit() *bool { + if i == nil { return nil } - return o.EntityBuilderDisableEdit + return i.EntityBuilderDisableEdit } -func (o *InternalUserAttribute) GetProtected() *bool { - if o == nil { +func (i *InternalUserAttribute) GetProtected() *bool { + if i == nil { return nil } - return o.Protected + return i.Protected } -func (o *InternalUserAttribute) GetInfoHelpers() *InternalUserAttributeInfoHelpers { - if o == nil { +func (i *InternalUserAttribute) GetInfoHelpers() *InternalUserAttributeInfoHelpers { + if i == nil { return nil } - return o.InfoHelpers + return i.InfoHelpers } -func (o *InternalUserAttribute) GetRepeatable() *bool { - if o == nil { +func (i *InternalUserAttribute) GetRepeatable() *bool { + if i == nil { return nil } - return o.Repeatable + return i.Repeatable } -func (o *InternalUserAttribute) GetHasPrimary() *bool { - if o == nil { +func (i *InternalUserAttribute) GetHasPrimary() *bool { + if i == nil { return nil } - return o.HasPrimary + return i.HasPrimary } -func (o *InternalUserAttribute) GetType() InternalUserAttributeType { - if o == nil { +func (i *InternalUserAttribute) GetType() InternalUserAttributeType { + if i == nil { return InternalUserAttributeType("") } - return o.Type + return i.Type } diff --git a/internal/sdk/models/shared/invitationemailattribute.go b/internal/sdk/models/shared/invitationemailattribute.go index 3430dd9c..1da7a6bf 100644 --- a/internal/sdk/models/shared/invitationemailattribute.go +++ b/internal/sdk/models/shared/invitationemailattribute.go @@ -56,32 +56,32 @@ func (i *InvitationEmailAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *InvitationEmailAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (i *InvitationEmailAttributeInfoHelpers) GetHintText() *string { + if i == nil { return nil } - return o.HintText + return i.HintText } -func (o *InvitationEmailAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (i *InvitationEmailAttributeInfoHelpers) GetHintTextKey() *string { + if i == nil { return nil } - return o.HintTextKey + return i.HintTextKey } -func (o *InvitationEmailAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (i *InvitationEmailAttributeInfoHelpers) GetHintCustomComponent() *string { + if i == nil { return nil } - return o.HintCustomComponent + return i.HintCustomComponent } -func (o *InvitationEmailAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (i *InvitationEmailAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if i == nil { return nil } - return o.HintTooltipPlacement + return i.HintTooltipPlacement } type InvitationEmailAttributeType string @@ -176,212 +176,212 @@ func (i *InvitationEmailAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *InvitationEmailAttribute) GetID() *string { - if o == nil { +func (i *InvitationEmailAttribute) GetID() *string { + if i == nil { return nil } - return o.ID + return i.ID } -func (o *InvitationEmailAttribute) GetName() string { - if o == nil { +func (i *InvitationEmailAttribute) GetName() string { + if i == nil { return "" } - return o.Name + return i.Name } -func (o *InvitationEmailAttribute) GetLabel() string { - if o == nil { +func (i *InvitationEmailAttribute) GetLabel() string { + if i == nil { return "" } - return o.Label + return i.Label } -func (o *InvitationEmailAttribute) GetPlaceholder() *string { - if o == nil { +func (i *InvitationEmailAttribute) GetPlaceholder() *string { + if i == nil { return nil } - return o.Placeholder + return i.Placeholder } -func (o *InvitationEmailAttribute) GetHidden() *bool { - if o == nil { +func (i *InvitationEmailAttribute) GetHidden() *bool { + if i == nil { return nil } - return o.Hidden + return i.Hidden } -func (o *InvitationEmailAttribute) GetShowInTable() *bool { - if o == nil { +func (i *InvitationEmailAttribute) GetShowInTable() *bool { + if i == nil { return nil } - return o.ShowInTable + return i.ShowInTable } -func (o *InvitationEmailAttribute) GetSortable() *bool { - if o == nil { +func (i *InvitationEmailAttribute) GetSortable() *bool { + if i == nil { return nil } - return o.Sortable + return i.Sortable } -func (o *InvitationEmailAttribute) GetRequired() *bool { - if o == nil { +func (i *InvitationEmailAttribute) GetRequired() *bool { + if i == nil { return nil } - return o.Required + return i.Required } -func (o *InvitationEmailAttribute) GetReadonly() *bool { - if o == nil { +func (i *InvitationEmailAttribute) GetReadonly() *bool { + if i == nil { return nil } - return o.Readonly + return i.Readonly } -func (o *InvitationEmailAttribute) GetDeprecated() *bool { - if o == nil { +func (i *InvitationEmailAttribute) GetDeprecated() *bool { + if i == nil { return nil } - return o.Deprecated + return i.Deprecated } -func (o *InvitationEmailAttribute) GetDefaultValue() any { - if o == nil { +func (i *InvitationEmailAttribute) GetDefaultValue() any { + if i == nil { return nil } - return o.DefaultValue + return i.DefaultValue } -func (o *InvitationEmailAttribute) GetGroup() *string { - if o == nil { +func (i *InvitationEmailAttribute) GetGroup() *string { + if i == nil { return nil } - return o.Group + return i.Group } -func (o *InvitationEmailAttribute) GetOrder() *int64 { - if o == nil { +func (i *InvitationEmailAttribute) GetOrder() *int64 { + if i == nil { return nil } - return o.Order + return i.Order } -func (o *InvitationEmailAttribute) GetLayout() *string { - if o == nil { +func (i *InvitationEmailAttribute) GetLayout() *string { + if i == nil { return nil } - return o.Layout + return i.Layout } -func (o *InvitationEmailAttribute) GetHideLabel() *bool { - if o == nil { +func (i *InvitationEmailAttribute) GetHideLabel() *bool { + if i == nil { return nil } - return o.HideLabel + return i.HideLabel } -func (o *InvitationEmailAttribute) GetIcon() *string { - if o == nil { +func (i *InvitationEmailAttribute) GetIcon() *string { + if i == nil { return nil } - return o.Icon + return i.Icon } -func (o *InvitationEmailAttribute) GetRenderCondition() *string { - if o == nil { +func (i *InvitationEmailAttribute) GetRenderCondition() *string { + if i == nil { return nil } - return o.RenderCondition + return i.RenderCondition } -func (o *InvitationEmailAttribute) GetPurpose() []string { - if o == nil { +func (i *InvitationEmailAttribute) GetPurpose() []string { + if i == nil { return nil } - return o.Purpose + return i.Purpose } -func (o *InvitationEmailAttribute) GetManifest() []string { - if o == nil { +func (i *InvitationEmailAttribute) GetManifest() []string { + if i == nil { return nil } - return o.Manifest + return i.Manifest } -func (o *InvitationEmailAttribute) GetConstraints() *InvitationEmailAttributeConstraints { - if o == nil { +func (i *InvitationEmailAttribute) GetConstraints() *InvitationEmailAttributeConstraints { + if i == nil { return nil } - return o.Constraints + return i.Constraints } -func (o *InvitationEmailAttribute) GetFeatureFlag() *string { - if o == nil { +func (i *InvitationEmailAttribute) GetFeatureFlag() *string { + if i == nil { return nil } - return o.FeatureFlag + return i.FeatureFlag } -func (o *InvitationEmailAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (i *InvitationEmailAttribute) GetSettingsFlag() []SettingFlag { + if i == nil { return nil } - return o.SettingsFlag + return i.SettingsFlag } -func (o *InvitationEmailAttribute) GetValueFormatter() *string { - if o == nil { +func (i *InvitationEmailAttribute) GetValueFormatter() *string { + if i == nil { return nil } - return o.ValueFormatter + return i.ValueFormatter } -func (o *InvitationEmailAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (i *InvitationEmailAttribute) GetPreviewValueFormatter() *string { + if i == nil { return nil } - return o.PreviewValueFormatter + return i.PreviewValueFormatter } -func (o *InvitationEmailAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (i *InvitationEmailAttribute) GetEntityBuilderDisableEdit() *bool { + if i == nil { return nil } - return o.EntityBuilderDisableEdit + return i.EntityBuilderDisableEdit } -func (o *InvitationEmailAttribute) GetProtected() *bool { - if o == nil { +func (i *InvitationEmailAttribute) GetProtected() *bool { + if i == nil { return nil } - return o.Protected + return i.Protected } -func (o *InvitationEmailAttribute) GetInfoHelpers() *InvitationEmailAttributeInfoHelpers { - if o == nil { +func (i *InvitationEmailAttribute) GetInfoHelpers() *InvitationEmailAttributeInfoHelpers { + if i == nil { return nil } - return o.InfoHelpers + return i.InfoHelpers } -func (o *InvitationEmailAttribute) GetRepeatable() *bool { - if o == nil { +func (i *InvitationEmailAttribute) GetRepeatable() *bool { + if i == nil { return nil } - return o.Repeatable + return i.Repeatable } -func (o *InvitationEmailAttribute) GetHasPrimary() *bool { - if o == nil { +func (i *InvitationEmailAttribute) GetHasPrimary() *bool { + if i == nil { return nil } - return o.HasPrimary + return i.HasPrimary } -func (o *InvitationEmailAttribute) GetType() InvitationEmailAttributeType { - if o == nil { +func (i *InvitationEmailAttribute) GetType() InvitationEmailAttributeType { + if i == nil { return InvitationEmailAttributeType("") } - return o.Type + return i.Type } diff --git a/internal/sdk/models/shared/linkattribute.go b/internal/sdk/models/shared/linkattribute.go index f4562807..f201d768 100644 --- a/internal/sdk/models/shared/linkattribute.go +++ b/internal/sdk/models/shared/linkattribute.go @@ -56,32 +56,32 @@ func (l *LinkAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *LinkAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (l *LinkAttributeInfoHelpers) GetHintText() *string { + if l == nil { return nil } - return o.HintText + return l.HintText } -func (o *LinkAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (l *LinkAttributeInfoHelpers) GetHintTextKey() *string { + if l == nil { return nil } - return o.HintTextKey + return l.HintTextKey } -func (o *LinkAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (l *LinkAttributeInfoHelpers) GetHintCustomComponent() *string { + if l == nil { return nil } - return o.HintCustomComponent + return l.HintCustomComponent } -func (o *LinkAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (l *LinkAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if l == nil { return nil } - return o.HintTooltipPlacement + return l.HintTooltipPlacement } type LinkAttributeType string @@ -176,212 +176,212 @@ func (l *LinkAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *LinkAttribute) GetID() *string { - if o == nil { +func (l *LinkAttribute) GetID() *string { + if l == nil { return nil } - return o.ID + return l.ID } -func (o *LinkAttribute) GetName() string { - if o == nil { +func (l *LinkAttribute) GetName() string { + if l == nil { return "" } - return o.Name + return l.Name } -func (o *LinkAttribute) GetLabel() string { - if o == nil { +func (l *LinkAttribute) GetLabel() string { + if l == nil { return "" } - return o.Label + return l.Label } -func (o *LinkAttribute) GetPlaceholder() *string { - if o == nil { +func (l *LinkAttribute) GetPlaceholder() *string { + if l == nil { return nil } - return o.Placeholder + return l.Placeholder } -func (o *LinkAttribute) GetHidden() *bool { - if o == nil { +func (l *LinkAttribute) GetHidden() *bool { + if l == nil { return nil } - return o.Hidden + return l.Hidden } -func (o *LinkAttribute) GetShowInTable() *bool { - if o == nil { +func (l *LinkAttribute) GetShowInTable() *bool { + if l == nil { return nil } - return o.ShowInTable + return l.ShowInTable } -func (o *LinkAttribute) GetSortable() *bool { - if o == nil { +func (l *LinkAttribute) GetSortable() *bool { + if l == nil { return nil } - return o.Sortable + return l.Sortable } -func (o *LinkAttribute) GetRequired() *bool { - if o == nil { +func (l *LinkAttribute) GetRequired() *bool { + if l == nil { return nil } - return o.Required + return l.Required } -func (o *LinkAttribute) GetReadonly() *bool { - if o == nil { +func (l *LinkAttribute) GetReadonly() *bool { + if l == nil { return nil } - return o.Readonly + return l.Readonly } -func (o *LinkAttribute) GetDeprecated() *bool { - if o == nil { +func (l *LinkAttribute) GetDeprecated() *bool { + if l == nil { return nil } - return o.Deprecated + return l.Deprecated } -func (o *LinkAttribute) GetDefaultValue() any { - if o == nil { +func (l *LinkAttribute) GetDefaultValue() any { + if l == nil { return nil } - return o.DefaultValue + return l.DefaultValue } -func (o *LinkAttribute) GetGroup() *string { - if o == nil { +func (l *LinkAttribute) GetGroup() *string { + if l == nil { return nil } - return o.Group + return l.Group } -func (o *LinkAttribute) GetOrder() *int64 { - if o == nil { +func (l *LinkAttribute) GetOrder() *int64 { + if l == nil { return nil } - return o.Order + return l.Order } -func (o *LinkAttribute) GetLayout() *string { - if o == nil { +func (l *LinkAttribute) GetLayout() *string { + if l == nil { return nil } - return o.Layout + return l.Layout } -func (o *LinkAttribute) GetHideLabel() *bool { - if o == nil { +func (l *LinkAttribute) GetHideLabel() *bool { + if l == nil { return nil } - return o.HideLabel + return l.HideLabel } -func (o *LinkAttribute) GetIcon() *string { - if o == nil { +func (l *LinkAttribute) GetIcon() *string { + if l == nil { return nil } - return o.Icon + return l.Icon } -func (o *LinkAttribute) GetRenderCondition() *string { - if o == nil { +func (l *LinkAttribute) GetRenderCondition() *string { + if l == nil { return nil } - return o.RenderCondition + return l.RenderCondition } -func (o *LinkAttribute) GetPurpose() []string { - if o == nil { +func (l *LinkAttribute) GetPurpose() []string { + if l == nil { return nil } - return o.Purpose + return l.Purpose } -func (o *LinkAttribute) GetManifest() []string { - if o == nil { +func (l *LinkAttribute) GetManifest() []string { + if l == nil { return nil } - return o.Manifest + return l.Manifest } -func (o *LinkAttribute) GetConstraints() *LinkAttributeConstraints { - if o == nil { +func (l *LinkAttribute) GetConstraints() *LinkAttributeConstraints { + if l == nil { return nil } - return o.Constraints + return l.Constraints } -func (o *LinkAttribute) GetFeatureFlag() *string { - if o == nil { +func (l *LinkAttribute) GetFeatureFlag() *string { + if l == nil { return nil } - return o.FeatureFlag + return l.FeatureFlag } -func (o *LinkAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (l *LinkAttribute) GetSettingsFlag() []SettingFlag { + if l == nil { return nil } - return o.SettingsFlag + return l.SettingsFlag } -func (o *LinkAttribute) GetValueFormatter() *string { - if o == nil { +func (l *LinkAttribute) GetValueFormatter() *string { + if l == nil { return nil } - return o.ValueFormatter + return l.ValueFormatter } -func (o *LinkAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (l *LinkAttribute) GetPreviewValueFormatter() *string { + if l == nil { return nil } - return o.PreviewValueFormatter + return l.PreviewValueFormatter } -func (o *LinkAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (l *LinkAttribute) GetEntityBuilderDisableEdit() *bool { + if l == nil { return nil } - return o.EntityBuilderDisableEdit + return l.EntityBuilderDisableEdit } -func (o *LinkAttribute) GetProtected() *bool { - if o == nil { +func (l *LinkAttribute) GetProtected() *bool { + if l == nil { return nil } - return o.Protected + return l.Protected } -func (o *LinkAttribute) GetInfoHelpers() *LinkAttributeInfoHelpers { - if o == nil { +func (l *LinkAttribute) GetInfoHelpers() *LinkAttributeInfoHelpers { + if l == nil { return nil } - return o.InfoHelpers + return l.InfoHelpers } -func (o *LinkAttribute) GetRepeatable() *bool { - if o == nil { +func (l *LinkAttribute) GetRepeatable() *bool { + if l == nil { return nil } - return o.Repeatable + return l.Repeatable } -func (o *LinkAttribute) GetHasPrimary() *bool { - if o == nil { +func (l *LinkAttribute) GetHasPrimary() *bool { + if l == nil { return nil } - return o.HasPrimary + return l.HasPrimary } -func (o *LinkAttribute) GetType() LinkAttributeType { - if o == nil { +func (l *LinkAttribute) GetType() LinkAttributeType { + if l == nil { return LinkAttributeType("") } - return o.Type + return l.Type } diff --git a/internal/sdk/models/shared/listsavedviewsresults.go b/internal/sdk/models/shared/listsavedviewsresults.go index d4603e2f..3e18d628 100644 --- a/internal/sdk/models/shared/listsavedviewsresults.go +++ b/internal/sdk/models/shared/listsavedviewsresults.go @@ -10,25 +10,25 @@ type Results struct { UpdatedAt *string `json:"updated_at,omitempty"` } -func (o *Results) GetID() *string { - if o == nil { +func (r *Results) GetID() *string { + if r == nil { return nil } - return o.ID + return r.ID } -func (o *Results) GetCreatedAt() *string { - if o == nil { +func (r *Results) GetCreatedAt() *string { + if r == nil { return nil } - return o.CreatedAt + return r.CreatedAt } -func (o *Results) GetUpdatedAt() *string { - if o == nil { +func (r *Results) GetUpdatedAt() *string { + if r == nil { return nil } - return o.UpdatedAt + return r.UpdatedAt } type ListSavedViewsResults struct { @@ -36,16 +36,16 @@ type ListSavedViewsResults struct { Results []Results `json:"results,omitempty"` } -func (o *ListSavedViewsResults) GetHits() *float64 { - if o == nil { +func (l *ListSavedViewsResults) GetHits() *float64 { + if l == nil { return nil } - return o.Hits + return l.Hits } -func (o *ListSavedViewsResults) GetResults() []Results { - if o == nil { +func (l *ListSavedViewsResults) GetResults() []Results { + if l == nil { return nil } - return o.Results + return l.Results } diff --git a/internal/sdk/models/shared/messageemailaddressattribute.go b/internal/sdk/models/shared/messageemailaddressattribute.go index 64ff2065..37be7159 100644 --- a/internal/sdk/models/shared/messageemailaddressattribute.go +++ b/internal/sdk/models/shared/messageemailaddressattribute.go @@ -56,32 +56,32 @@ func (m *MessageEmailAddressAttributeInfoHelpers) UnmarshalJSON(data []byte) err return nil } -func (o *MessageEmailAddressAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (m *MessageEmailAddressAttributeInfoHelpers) GetHintText() *string { + if m == nil { return nil } - return o.HintText + return m.HintText } -func (o *MessageEmailAddressAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (m *MessageEmailAddressAttributeInfoHelpers) GetHintTextKey() *string { + if m == nil { return nil } - return o.HintTextKey + return m.HintTextKey } -func (o *MessageEmailAddressAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (m *MessageEmailAddressAttributeInfoHelpers) GetHintCustomComponent() *string { + if m == nil { return nil } - return o.HintCustomComponent + return m.HintCustomComponent } -func (o *MessageEmailAddressAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (m *MessageEmailAddressAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if m == nil { return nil } - return o.HintTooltipPlacement + return m.HintTooltipPlacement } type MessageEmailAddressAttributeType string @@ -179,233 +179,233 @@ func (m *MessageEmailAddressAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *MessageEmailAddressAttribute) GetID() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetID() *string { + if m == nil { return nil } - return o.ID + return m.ID } -func (o *MessageEmailAddressAttribute) GetName() string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetName() string { + if m == nil { return "" } - return o.Name + return m.Name } -func (o *MessageEmailAddressAttribute) GetLabel() string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetLabel() string { + if m == nil { return "" } - return o.Label + return m.Label } -func (o *MessageEmailAddressAttribute) GetPlaceholder() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetPlaceholder() *string { + if m == nil { return nil } - return o.Placeholder + return m.Placeholder } -func (o *MessageEmailAddressAttribute) GetHidden() *bool { - if o == nil { +func (m *MessageEmailAddressAttribute) GetHidden() *bool { + if m == nil { return nil } - return o.Hidden + return m.Hidden } -func (o *MessageEmailAddressAttribute) GetShowInTable() *bool { - if o == nil { +func (m *MessageEmailAddressAttribute) GetShowInTable() *bool { + if m == nil { return nil } - return o.ShowInTable + return m.ShowInTable } -func (o *MessageEmailAddressAttribute) GetSortable() *bool { - if o == nil { +func (m *MessageEmailAddressAttribute) GetSortable() *bool { + if m == nil { return nil } - return o.Sortable + return m.Sortable } -func (o *MessageEmailAddressAttribute) GetRequired() *bool { - if o == nil { +func (m *MessageEmailAddressAttribute) GetRequired() *bool { + if m == nil { return nil } - return o.Required + return m.Required } -func (o *MessageEmailAddressAttribute) GetReadonly() *bool { - if o == nil { +func (m *MessageEmailAddressAttribute) GetReadonly() *bool { + if m == nil { return nil } - return o.Readonly + return m.Readonly } -func (o *MessageEmailAddressAttribute) GetDeprecated() *bool { - if o == nil { +func (m *MessageEmailAddressAttribute) GetDeprecated() *bool { + if m == nil { return nil } - return o.Deprecated + return m.Deprecated } -func (o *MessageEmailAddressAttribute) GetDefaultValue() any { - if o == nil { +func (m *MessageEmailAddressAttribute) GetDefaultValue() any { + if m == nil { return nil } - return o.DefaultValue + return m.DefaultValue } -func (o *MessageEmailAddressAttribute) GetGroup() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetGroup() *string { + if m == nil { return nil } - return o.Group + return m.Group } -func (o *MessageEmailAddressAttribute) GetOrder() *int64 { - if o == nil { +func (m *MessageEmailAddressAttribute) GetOrder() *int64 { + if m == nil { return nil } - return o.Order + return m.Order } -func (o *MessageEmailAddressAttribute) GetLayout() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetLayout() *string { + if m == nil { return nil } - return o.Layout + return m.Layout } -func (o *MessageEmailAddressAttribute) GetHideLabel() *bool { - if o == nil { +func (m *MessageEmailAddressAttribute) GetHideLabel() *bool { + if m == nil { return nil } - return o.HideLabel + return m.HideLabel } -func (o *MessageEmailAddressAttribute) GetIcon() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetIcon() *string { + if m == nil { return nil } - return o.Icon + return m.Icon } -func (o *MessageEmailAddressAttribute) GetRenderCondition() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetRenderCondition() *string { + if m == nil { return nil } - return o.RenderCondition + return m.RenderCondition } -func (o *MessageEmailAddressAttribute) GetPurpose() []string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetPurpose() []string { + if m == nil { return nil } - return o.Purpose + return m.Purpose } -func (o *MessageEmailAddressAttribute) GetManifest() []string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetManifest() []string { + if m == nil { return nil } - return o.Manifest + return m.Manifest } -func (o *MessageEmailAddressAttribute) GetConstraints() *MessageEmailAddressAttributeConstraints { - if o == nil { +func (m *MessageEmailAddressAttribute) GetConstraints() *MessageEmailAddressAttributeConstraints { + if m == nil { return nil } - return o.Constraints + return m.Constraints } -func (o *MessageEmailAddressAttribute) GetFeatureFlag() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetFeatureFlag() *string { + if m == nil { return nil } - return o.FeatureFlag + return m.FeatureFlag } -func (o *MessageEmailAddressAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (m *MessageEmailAddressAttribute) GetSettingsFlag() []SettingFlag { + if m == nil { return nil } - return o.SettingsFlag + return m.SettingsFlag } -func (o *MessageEmailAddressAttribute) GetValueFormatter() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetValueFormatter() *string { + if m == nil { return nil } - return o.ValueFormatter + return m.ValueFormatter } -func (o *MessageEmailAddressAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetPreviewValueFormatter() *string { + if m == nil { return nil } - return o.PreviewValueFormatter + return m.PreviewValueFormatter } -func (o *MessageEmailAddressAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (m *MessageEmailAddressAttribute) GetEntityBuilderDisableEdit() *bool { + if m == nil { return nil } - return o.EntityBuilderDisableEdit + return m.EntityBuilderDisableEdit } -func (o *MessageEmailAddressAttribute) GetProtected() *bool { - if o == nil { +func (m *MessageEmailAddressAttribute) GetProtected() *bool { + if m == nil { return nil } - return o.Protected + return m.Protected } -func (o *MessageEmailAddressAttribute) GetInfoHelpers() *MessageEmailAddressAttributeInfoHelpers { - if o == nil { +func (m *MessageEmailAddressAttribute) GetInfoHelpers() *MessageEmailAddressAttributeInfoHelpers { + if m == nil { return nil } - return o.InfoHelpers + return m.InfoHelpers } -func (o *MessageEmailAddressAttribute) GetRepeatable() *bool { - if o == nil { +func (m *MessageEmailAddressAttribute) GetRepeatable() *bool { + if m == nil { return nil } - return o.Repeatable + return m.Repeatable } -func (o *MessageEmailAddressAttribute) GetHasPrimary() *bool { - if o == nil { +func (m *MessageEmailAddressAttribute) GetHasPrimary() *bool { + if m == nil { return nil } - return o.HasPrimary + return m.HasPrimary } -func (o *MessageEmailAddressAttribute) GetType() MessageEmailAddressAttributeType { - if o == nil { +func (m *MessageEmailAddressAttribute) GetType() MessageEmailAddressAttributeType { + if m == nil { return MessageEmailAddressAttributeType("") } - return o.Type + return m.Type } -func (o *MessageEmailAddressAttribute) GetAddress() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetAddress() *string { + if m == nil { return nil } - return o.Address + return m.Address } -func (o *MessageEmailAddressAttribute) GetSendStatus() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetSendStatus() *string { + if m == nil { return nil } - return o.SendStatus + return m.SendStatus } -func (o *MessageEmailAddressAttribute) GetEmailType() *string { - if o == nil { +func (m *MessageEmailAddressAttribute) GetEmailType() *string { + if m == nil { return nil } - return o.EmailType + return m.EmailType } diff --git a/internal/sdk/models/shared/multiselectattribute.go b/internal/sdk/models/shared/multiselectattribute.go index 4e9cdc27..3a4b3c2f 100644 --- a/internal/sdk/models/shared/multiselectattribute.go +++ b/internal/sdk/models/shared/multiselectattribute.go @@ -57,32 +57,32 @@ func (m *MultiSelectAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *MultiSelectAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (m *MultiSelectAttributeInfoHelpers) GetHintText() *string { + if m == nil { return nil } - return o.HintText + return m.HintText } -func (o *MultiSelectAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (m *MultiSelectAttributeInfoHelpers) GetHintTextKey() *string { + if m == nil { return nil } - return o.HintTextKey + return m.HintTextKey } -func (o *MultiSelectAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (m *MultiSelectAttributeInfoHelpers) GetHintCustomComponent() *string { + if m == nil { return nil } - return o.HintCustomComponent + return m.HintCustomComponent } -func (o *MultiSelectAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (m *MultiSelectAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if m == nil { return nil } - return o.HintTooltipPlacement + return m.HintTooltipPlacement } type MultiSelectAttributeType string @@ -127,18 +127,18 @@ func (t *Two) UnmarshalJSON(data []byte) error { return nil } -func (o *Two) GetValue() string { - if o == nil { +func (t *Two) GetValue() string { + if t == nil { return "" } - return o.Value + return t.Value } -func (o *Two) GetTitle() *string { - if o == nil { +func (t *Two) GetTitle() *string { + if t == nil { return nil } - return o.Title + return t.Title } type OptionsObjType string @@ -149,8 +149,8 @@ const ( ) type OptionsObj struct { - Str *string `queryParam:"inline" name:"options"` - Two *Two `queryParam:"inline" name:"options"` + Str *string `queryParam:"inline,name=options"` + Two *Two `queryParam:"inline,name=options"` Type OptionsObjType } @@ -175,17 +175,43 @@ func CreateOptionsObjTwo(two Two) OptionsObj { func (u *OptionsObj) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var two Two = Two{} if err := utils.UnmarshalJSON(data, &two, "", true, nil); err == nil { - u.Two = &two - u.Type = OptionsObjTypeTwo - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: OptionsObjTypeTwo, + Value: &two, + }) } var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = OptionsObjTypeStr + candidates = append(candidates, utils.UnionCandidate{ + Type: OptionsObjTypeStr, + Value: &str, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for OptionsObj", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for OptionsObj", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(OptionsObjType) + switch best.Type { + case OptionsObjTypeTwo: + u.Two = best.Value.(*Two) + return nil + case OptionsObjTypeStr: + u.Str = best.Value.(*string) return nil } @@ -280,240 +306,240 @@ func (m *MultiSelectAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *MultiSelectAttribute) GetID() *string { - if o == nil { +func (m *MultiSelectAttribute) GetID() *string { + if m == nil { return nil } - return o.ID + return m.ID } -func (o *MultiSelectAttribute) GetName() string { - if o == nil { +func (m *MultiSelectAttribute) GetName() string { + if m == nil { return "" } - return o.Name + return m.Name } -func (o *MultiSelectAttribute) GetLabel() string { - if o == nil { +func (m *MultiSelectAttribute) GetLabel() string { + if m == nil { return "" } - return o.Label + return m.Label } -func (o *MultiSelectAttribute) GetPlaceholder() *string { - if o == nil { +func (m *MultiSelectAttribute) GetPlaceholder() *string { + if m == nil { return nil } - return o.Placeholder + return m.Placeholder } -func (o *MultiSelectAttribute) GetHidden() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetHidden() *bool { + if m == nil { return nil } - return o.Hidden + return m.Hidden } -func (o *MultiSelectAttribute) GetShowInTable() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetShowInTable() *bool { + if m == nil { return nil } - return o.ShowInTable + return m.ShowInTable } -func (o *MultiSelectAttribute) GetSortable() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetSortable() *bool { + if m == nil { return nil } - return o.Sortable + return m.Sortable } -func (o *MultiSelectAttribute) GetRequired() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetRequired() *bool { + if m == nil { return nil } - return o.Required + return m.Required } -func (o *MultiSelectAttribute) GetReadonly() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetReadonly() *bool { + if m == nil { return nil } - return o.Readonly + return m.Readonly } -func (o *MultiSelectAttribute) GetDeprecated() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetDeprecated() *bool { + if m == nil { return nil } - return o.Deprecated + return m.Deprecated } -func (o *MultiSelectAttribute) GetDefaultValue() any { - if o == nil { +func (m *MultiSelectAttribute) GetDefaultValue() any { + if m == nil { return nil } - return o.DefaultValue + return m.DefaultValue } -func (o *MultiSelectAttribute) GetGroup() *string { - if o == nil { +func (m *MultiSelectAttribute) GetGroup() *string { + if m == nil { return nil } - return o.Group + return m.Group } -func (o *MultiSelectAttribute) GetOrder() *int64 { - if o == nil { +func (m *MultiSelectAttribute) GetOrder() *int64 { + if m == nil { return nil } - return o.Order + return m.Order } -func (o *MultiSelectAttribute) GetLayout() *string { - if o == nil { +func (m *MultiSelectAttribute) GetLayout() *string { + if m == nil { return nil } - return o.Layout + return m.Layout } -func (o *MultiSelectAttribute) GetHideLabel() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetHideLabel() *bool { + if m == nil { return nil } - return o.HideLabel + return m.HideLabel } -func (o *MultiSelectAttribute) GetIcon() *string { - if o == nil { +func (m *MultiSelectAttribute) GetIcon() *string { + if m == nil { return nil } - return o.Icon + return m.Icon } -func (o *MultiSelectAttribute) GetRenderCondition() *string { - if o == nil { +func (m *MultiSelectAttribute) GetRenderCondition() *string { + if m == nil { return nil } - return o.RenderCondition + return m.RenderCondition } -func (o *MultiSelectAttribute) GetPurpose() []string { - if o == nil { +func (m *MultiSelectAttribute) GetPurpose() []string { + if m == nil { return nil } - return o.Purpose + return m.Purpose } -func (o *MultiSelectAttribute) GetManifest() []string { - if o == nil { +func (m *MultiSelectAttribute) GetManifest() []string { + if m == nil { return nil } - return o.Manifest + return m.Manifest } -func (o *MultiSelectAttribute) GetConstraints() *MultiSelectAttributeConstraints { - if o == nil { +func (m *MultiSelectAttribute) GetConstraints() *MultiSelectAttributeConstraints { + if m == nil { return nil } - return o.Constraints + return m.Constraints } -func (o *MultiSelectAttribute) GetFeatureFlag() *string { - if o == nil { +func (m *MultiSelectAttribute) GetFeatureFlag() *string { + if m == nil { return nil } - return o.FeatureFlag + return m.FeatureFlag } -func (o *MultiSelectAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (m *MultiSelectAttribute) GetSettingsFlag() []SettingFlag { + if m == nil { return nil } - return o.SettingsFlag + return m.SettingsFlag } -func (o *MultiSelectAttribute) GetValueFormatter() *string { - if o == nil { +func (m *MultiSelectAttribute) GetValueFormatter() *string { + if m == nil { return nil } - return o.ValueFormatter + return m.ValueFormatter } -func (o *MultiSelectAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (m *MultiSelectAttribute) GetPreviewValueFormatter() *string { + if m == nil { return nil } - return o.PreviewValueFormatter + return m.PreviewValueFormatter } -func (o *MultiSelectAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetEntityBuilderDisableEdit() *bool { + if m == nil { return nil } - return o.EntityBuilderDisableEdit + return m.EntityBuilderDisableEdit } -func (o *MultiSelectAttribute) GetProtected() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetProtected() *bool { + if m == nil { return nil } - return o.Protected + return m.Protected } -func (o *MultiSelectAttribute) GetInfoHelpers() *MultiSelectAttributeInfoHelpers { - if o == nil { +func (m *MultiSelectAttribute) GetInfoHelpers() *MultiSelectAttributeInfoHelpers { + if m == nil { return nil } - return o.InfoHelpers + return m.InfoHelpers } -func (o *MultiSelectAttribute) GetRepeatable() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetRepeatable() *bool { + if m == nil { return nil } - return o.Repeatable + return m.Repeatable } -func (o *MultiSelectAttribute) GetHasPrimary() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetHasPrimary() *bool { + if m == nil { return nil } - return o.HasPrimary + return m.HasPrimary } -func (o *MultiSelectAttribute) GetType() MultiSelectAttributeType { - if o == nil { +func (m *MultiSelectAttribute) GetType() MultiSelectAttributeType { + if m == nil { return MultiSelectAttributeType("") } - return o.Type + return m.Type } -func (o *MultiSelectAttribute) GetDisableCaseSensitive() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetDisableCaseSensitive() *bool { + if m == nil { return nil } - return o.DisableCaseSensitive + return m.DisableCaseSensitive } -func (o *MultiSelectAttribute) GetAllowExtraOptions() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetAllowExtraOptions() *bool { + if m == nil { return nil } - return o.AllowExtraOptions + return m.AllowExtraOptions } -func (o *MultiSelectAttribute) GetOptions() []*OptionsObj { - if o == nil { +func (m *MultiSelectAttribute) GetOptions() []*OptionsObj { + if m == nil { return nil } - return o.Options + return m.Options } -func (o *MultiSelectAttribute) GetAllowAny() *bool { - if o == nil { +func (m *MultiSelectAttribute) GetAllowAny() *bool { + if m == nil { return nil } - return o.AllowAny + return m.AllowAny } diff --git a/internal/sdk/models/shared/notfounderror.go b/internal/sdk/models/shared/notfounderror.go index d0b58c66..25868ff0 100644 --- a/internal/sdk/models/shared/notfounderror.go +++ b/internal/sdk/models/shared/notfounderror.go @@ -10,16 +10,16 @@ type NotFoundError struct { Error *string `json:"error,omitempty"` } -func (o *NotFoundError) GetStatus() *int64 { - if o == nil { +func (n *NotFoundError) GetStatus() *int64 { + if n == nil { return nil } - return o.Status + return n.Status } -func (o *NotFoundError) GetError() *string { - if o == nil { +func (n *NotFoundError) GetError() *string { + if n == nil { return nil } - return o.Error + return n.Error } diff --git a/internal/sdk/models/shared/numberattribute.go b/internal/sdk/models/shared/numberattribute.go index 7f339bb1..9afa0e39 100644 --- a/internal/sdk/models/shared/numberattribute.go +++ b/internal/sdk/models/shared/numberattribute.go @@ -56,32 +56,32 @@ func (n *NumberAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *NumberAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (n *NumberAttributeInfoHelpers) GetHintText() *string { + if n == nil { return nil } - return o.HintText + return n.HintText } -func (o *NumberAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (n *NumberAttributeInfoHelpers) GetHintTextKey() *string { + if n == nil { return nil } - return o.HintTextKey + return n.HintTextKey } -func (o *NumberAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (n *NumberAttributeInfoHelpers) GetHintCustomComponent() *string { + if n == nil { return nil } - return o.HintCustomComponent + return n.HintCustomComponent } -func (o *NumberAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (n *NumberAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if n == nil { return nil } - return o.HintTooltipPlacement + return n.HintTooltipPlacement } type NumberAttributeType string @@ -179,226 +179,226 @@ func (n *NumberAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *NumberAttribute) GetID() *string { - if o == nil { +func (n *NumberAttribute) GetID() *string { + if n == nil { return nil } - return o.ID + return n.ID } -func (o *NumberAttribute) GetName() string { - if o == nil { +func (n *NumberAttribute) GetName() string { + if n == nil { return "" } - return o.Name + return n.Name } -func (o *NumberAttribute) GetLabel() string { - if o == nil { +func (n *NumberAttribute) GetLabel() string { + if n == nil { return "" } - return o.Label + return n.Label } -func (o *NumberAttribute) GetPlaceholder() *string { - if o == nil { +func (n *NumberAttribute) GetPlaceholder() *string { + if n == nil { return nil } - return o.Placeholder + return n.Placeholder } -func (o *NumberAttribute) GetHidden() *bool { - if o == nil { +func (n *NumberAttribute) GetHidden() *bool { + if n == nil { return nil } - return o.Hidden + return n.Hidden } -func (o *NumberAttribute) GetShowInTable() *bool { - if o == nil { +func (n *NumberAttribute) GetShowInTable() *bool { + if n == nil { return nil } - return o.ShowInTable + return n.ShowInTable } -func (o *NumberAttribute) GetSortable() *bool { - if o == nil { +func (n *NumberAttribute) GetSortable() *bool { + if n == nil { return nil } - return o.Sortable + return n.Sortable } -func (o *NumberAttribute) GetRequired() *bool { - if o == nil { +func (n *NumberAttribute) GetRequired() *bool { + if n == nil { return nil } - return o.Required + return n.Required } -func (o *NumberAttribute) GetReadonly() *bool { - if o == nil { +func (n *NumberAttribute) GetReadonly() *bool { + if n == nil { return nil } - return o.Readonly + return n.Readonly } -func (o *NumberAttribute) GetDeprecated() *bool { - if o == nil { +func (n *NumberAttribute) GetDeprecated() *bool { + if n == nil { return nil } - return o.Deprecated + return n.Deprecated } -func (o *NumberAttribute) GetDefaultValue() any { - if o == nil { +func (n *NumberAttribute) GetDefaultValue() any { + if n == nil { return nil } - return o.DefaultValue + return n.DefaultValue } -func (o *NumberAttribute) GetGroup() *string { - if o == nil { +func (n *NumberAttribute) GetGroup() *string { + if n == nil { return nil } - return o.Group + return n.Group } -func (o *NumberAttribute) GetOrder() *int64 { - if o == nil { +func (n *NumberAttribute) GetOrder() *int64 { + if n == nil { return nil } - return o.Order + return n.Order } -func (o *NumberAttribute) GetLayout() *string { - if o == nil { +func (n *NumberAttribute) GetLayout() *string { + if n == nil { return nil } - return o.Layout + return n.Layout } -func (o *NumberAttribute) GetHideLabel() *bool { - if o == nil { +func (n *NumberAttribute) GetHideLabel() *bool { + if n == nil { return nil } - return o.HideLabel + return n.HideLabel } -func (o *NumberAttribute) GetIcon() *string { - if o == nil { +func (n *NumberAttribute) GetIcon() *string { + if n == nil { return nil } - return o.Icon + return n.Icon } -func (o *NumberAttribute) GetRenderCondition() *string { - if o == nil { +func (n *NumberAttribute) GetRenderCondition() *string { + if n == nil { return nil } - return o.RenderCondition + return n.RenderCondition } -func (o *NumberAttribute) GetPurpose() []string { - if o == nil { +func (n *NumberAttribute) GetPurpose() []string { + if n == nil { return nil } - return o.Purpose + return n.Purpose } -func (o *NumberAttribute) GetManifest() []string { - if o == nil { +func (n *NumberAttribute) GetManifest() []string { + if n == nil { return nil } - return o.Manifest + return n.Manifest } -func (o *NumberAttribute) GetConstraints() *NumberAttributeConstraints { - if o == nil { +func (n *NumberAttribute) GetConstraints() *NumberAttributeConstraints { + if n == nil { return nil } - return o.Constraints + return n.Constraints } -func (o *NumberAttribute) GetFeatureFlag() *string { - if o == nil { +func (n *NumberAttribute) GetFeatureFlag() *string { + if n == nil { return nil } - return o.FeatureFlag + return n.FeatureFlag } -func (o *NumberAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (n *NumberAttribute) GetSettingsFlag() []SettingFlag { + if n == nil { return nil } - return o.SettingsFlag + return n.SettingsFlag } -func (o *NumberAttribute) GetValueFormatter() *string { - if o == nil { +func (n *NumberAttribute) GetValueFormatter() *string { + if n == nil { return nil } - return o.ValueFormatter + return n.ValueFormatter } -func (o *NumberAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (n *NumberAttribute) GetPreviewValueFormatter() *string { + if n == nil { return nil } - return o.PreviewValueFormatter + return n.PreviewValueFormatter } -func (o *NumberAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (n *NumberAttribute) GetEntityBuilderDisableEdit() *bool { + if n == nil { return nil } - return o.EntityBuilderDisableEdit + return n.EntityBuilderDisableEdit } -func (o *NumberAttribute) GetProtected() *bool { - if o == nil { +func (n *NumberAttribute) GetProtected() *bool { + if n == nil { return nil } - return o.Protected + return n.Protected } -func (o *NumberAttribute) GetInfoHelpers() *NumberAttributeInfoHelpers { - if o == nil { +func (n *NumberAttribute) GetInfoHelpers() *NumberAttributeInfoHelpers { + if n == nil { return nil } - return o.InfoHelpers + return n.InfoHelpers } -func (o *NumberAttribute) GetRepeatable() *bool { - if o == nil { +func (n *NumberAttribute) GetRepeatable() *bool { + if n == nil { return nil } - return o.Repeatable + return n.Repeatable } -func (o *NumberAttribute) GetHasPrimary() *bool { - if o == nil { +func (n *NumberAttribute) GetHasPrimary() *bool { + if n == nil { return nil } - return o.HasPrimary + return n.HasPrimary } -func (o *NumberAttribute) GetType() NumberAttributeType { - if o == nil { +func (n *NumberAttribute) GetType() NumberAttributeType { + if n == nil { return NumberAttributeType("") } - return o.Type + return n.Type } -func (o *NumberAttribute) GetFormat() *string { - if o == nil { +func (n *NumberAttribute) GetFormat() *string { + if n == nil { return nil } - return o.Format + return n.Format } -func (o *NumberAttribute) GetShowSeparator() *bool { - if o == nil { +func (n *NumberAttribute) GetShowSeparator() *bool { + if n == nil { return nil } - return o.ShowSeparator + return n.ShowSeparator } diff --git a/internal/sdk/models/shared/partnerorganisationattribute.go b/internal/sdk/models/shared/partnerorganisationattribute.go index d17d4131..63080f36 100644 --- a/internal/sdk/models/shared/partnerorganisationattribute.go +++ b/internal/sdk/models/shared/partnerorganisationattribute.go @@ -56,32 +56,32 @@ func (p *PartnerOrganisationAttributeInfoHelpers) UnmarshalJSON(data []byte) err return nil } -func (o *PartnerOrganisationAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PartnerOrganisationAttributeInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PartnerOrganisationAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PartnerOrganisationAttributeInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PartnerOrganisationAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PartnerOrganisationAttributeInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PartnerOrganisationAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PartnerOrganisationAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PartnerOrganisationAttributeType string @@ -176,212 +176,212 @@ func (p *PartnerOrganisationAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *PartnerOrganisationAttribute) GetID() *string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PartnerOrganisationAttribute) GetName() string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetName() string { + if p == nil { return "" } - return o.Name + return p.Name } -func (o *PartnerOrganisationAttribute) GetLabel() string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetLabel() string { + if p == nil { return "" } - return o.Label + return p.Label } -func (o *PartnerOrganisationAttribute) GetPlaceholder() *string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetPlaceholder() *string { + if p == nil { return nil } - return o.Placeholder + return p.Placeholder } -func (o *PartnerOrganisationAttribute) GetHidden() *bool { - if o == nil { +func (p *PartnerOrganisationAttribute) GetHidden() *bool { + if p == nil { return nil } - return o.Hidden + return p.Hidden } -func (o *PartnerOrganisationAttribute) GetShowInTable() *bool { - if o == nil { +func (p *PartnerOrganisationAttribute) GetShowInTable() *bool { + if p == nil { return nil } - return o.ShowInTable + return p.ShowInTable } -func (o *PartnerOrganisationAttribute) GetSortable() *bool { - if o == nil { +func (p *PartnerOrganisationAttribute) GetSortable() *bool { + if p == nil { return nil } - return o.Sortable + return p.Sortable } -func (o *PartnerOrganisationAttribute) GetRequired() *bool { - if o == nil { +func (p *PartnerOrganisationAttribute) GetRequired() *bool { + if p == nil { return nil } - return o.Required + return p.Required } -func (o *PartnerOrganisationAttribute) GetReadonly() *bool { - if o == nil { +func (p *PartnerOrganisationAttribute) GetReadonly() *bool { + if p == nil { return nil } - return o.Readonly + return p.Readonly } -func (o *PartnerOrganisationAttribute) GetDeprecated() *bool { - if o == nil { +func (p *PartnerOrganisationAttribute) GetDeprecated() *bool { + if p == nil { return nil } - return o.Deprecated + return p.Deprecated } -func (o *PartnerOrganisationAttribute) GetDefaultValue() any { - if o == nil { +func (p *PartnerOrganisationAttribute) GetDefaultValue() any { + if p == nil { return nil } - return o.DefaultValue + return p.DefaultValue } -func (o *PartnerOrganisationAttribute) GetGroup() *string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetGroup() *string { + if p == nil { return nil } - return o.Group + return p.Group } -func (o *PartnerOrganisationAttribute) GetOrder() *int64 { - if o == nil { +func (p *PartnerOrganisationAttribute) GetOrder() *int64 { + if p == nil { return nil } - return o.Order + return p.Order } -func (o *PartnerOrganisationAttribute) GetLayout() *string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetLayout() *string { + if p == nil { return nil } - return o.Layout + return p.Layout } -func (o *PartnerOrganisationAttribute) GetHideLabel() *bool { - if o == nil { +func (p *PartnerOrganisationAttribute) GetHideLabel() *bool { + if p == nil { return nil } - return o.HideLabel + return p.HideLabel } -func (o *PartnerOrganisationAttribute) GetIcon() *string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetIcon() *string { + if p == nil { return nil } - return o.Icon + return p.Icon } -func (o *PartnerOrganisationAttribute) GetRenderCondition() *string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetRenderCondition() *string { + if p == nil { return nil } - return o.RenderCondition + return p.RenderCondition } -func (o *PartnerOrganisationAttribute) GetPurpose() []string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetPurpose() []string { + if p == nil { return nil } - return o.Purpose + return p.Purpose } -func (o *PartnerOrganisationAttribute) GetManifest() []string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetManifest() []string { + if p == nil { return nil } - return o.Manifest + return p.Manifest } -func (o *PartnerOrganisationAttribute) GetConstraints() *PartnerOrganisationAttributeConstraints { - if o == nil { +func (p *PartnerOrganisationAttribute) GetConstraints() *PartnerOrganisationAttributeConstraints { + if p == nil { return nil } - return o.Constraints + return p.Constraints } -func (o *PartnerOrganisationAttribute) GetFeatureFlag() *string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetFeatureFlag() *string { + if p == nil { return nil } - return o.FeatureFlag + return p.FeatureFlag } -func (o *PartnerOrganisationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (p *PartnerOrganisationAttribute) GetSettingsFlag() []SettingFlag { + if p == nil { return nil } - return o.SettingsFlag + return p.SettingsFlag } -func (o *PartnerOrganisationAttribute) GetValueFormatter() *string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetValueFormatter() *string { + if p == nil { return nil } - return o.ValueFormatter + return p.ValueFormatter } -func (o *PartnerOrganisationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (p *PartnerOrganisationAttribute) GetPreviewValueFormatter() *string { + if p == nil { return nil } - return o.PreviewValueFormatter + return p.PreviewValueFormatter } -func (o *PartnerOrganisationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (p *PartnerOrganisationAttribute) GetEntityBuilderDisableEdit() *bool { + if p == nil { return nil } - return o.EntityBuilderDisableEdit + return p.EntityBuilderDisableEdit } -func (o *PartnerOrganisationAttribute) GetProtected() *bool { - if o == nil { +func (p *PartnerOrganisationAttribute) GetProtected() *bool { + if p == nil { return nil } - return o.Protected + return p.Protected } -func (o *PartnerOrganisationAttribute) GetInfoHelpers() *PartnerOrganisationAttributeInfoHelpers { - if o == nil { +func (p *PartnerOrganisationAttribute) GetInfoHelpers() *PartnerOrganisationAttributeInfoHelpers { + if p == nil { return nil } - return o.InfoHelpers + return p.InfoHelpers } -func (o *PartnerOrganisationAttribute) GetRepeatable() *bool { - if o == nil { +func (p *PartnerOrganisationAttribute) GetRepeatable() *bool { + if p == nil { return nil } - return o.Repeatable + return p.Repeatable } -func (o *PartnerOrganisationAttribute) GetHasPrimary() *bool { - if o == nil { +func (p *PartnerOrganisationAttribute) GetHasPrimary() *bool { + if p == nil { return nil } - return o.HasPrimary + return p.HasPrimary } -func (o *PartnerOrganisationAttribute) GetType() PartnerOrganisationAttributeType { - if o == nil { +func (p *PartnerOrganisationAttribute) GetType() PartnerOrganisationAttributeType { + if p == nil { return PartnerOrganisationAttributeType("") } - return o.Type + return p.Type } diff --git a/internal/sdk/models/shared/partnerstatusattribute.go b/internal/sdk/models/shared/partnerstatusattribute.go index 97a264b0..73b38e15 100644 --- a/internal/sdk/models/shared/partnerstatusattribute.go +++ b/internal/sdk/models/shared/partnerstatusattribute.go @@ -56,32 +56,32 @@ func (p *PartnerStatusAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *PartnerStatusAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PartnerStatusAttributeInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PartnerStatusAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PartnerStatusAttributeInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PartnerStatusAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PartnerStatusAttributeInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PartnerStatusAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PartnerStatusAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PartnerStatusAttributeType string @@ -176,212 +176,212 @@ func (p *PartnerStatusAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *PartnerStatusAttribute) GetID() *string { - if o == nil { +func (p *PartnerStatusAttribute) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PartnerStatusAttribute) GetName() string { - if o == nil { +func (p *PartnerStatusAttribute) GetName() string { + if p == nil { return "" } - return o.Name + return p.Name } -func (o *PartnerStatusAttribute) GetLabel() string { - if o == nil { +func (p *PartnerStatusAttribute) GetLabel() string { + if p == nil { return "" } - return o.Label + return p.Label } -func (o *PartnerStatusAttribute) GetPlaceholder() *string { - if o == nil { +func (p *PartnerStatusAttribute) GetPlaceholder() *string { + if p == nil { return nil } - return o.Placeholder + return p.Placeholder } -func (o *PartnerStatusAttribute) GetHidden() *bool { - if o == nil { +func (p *PartnerStatusAttribute) GetHidden() *bool { + if p == nil { return nil } - return o.Hidden + return p.Hidden } -func (o *PartnerStatusAttribute) GetShowInTable() *bool { - if o == nil { +func (p *PartnerStatusAttribute) GetShowInTable() *bool { + if p == nil { return nil } - return o.ShowInTable + return p.ShowInTable } -func (o *PartnerStatusAttribute) GetSortable() *bool { - if o == nil { +func (p *PartnerStatusAttribute) GetSortable() *bool { + if p == nil { return nil } - return o.Sortable + return p.Sortable } -func (o *PartnerStatusAttribute) GetRequired() *bool { - if o == nil { +func (p *PartnerStatusAttribute) GetRequired() *bool { + if p == nil { return nil } - return o.Required + return p.Required } -func (o *PartnerStatusAttribute) GetReadonly() *bool { - if o == nil { +func (p *PartnerStatusAttribute) GetReadonly() *bool { + if p == nil { return nil } - return o.Readonly + return p.Readonly } -func (o *PartnerStatusAttribute) GetDeprecated() *bool { - if o == nil { +func (p *PartnerStatusAttribute) GetDeprecated() *bool { + if p == nil { return nil } - return o.Deprecated + return p.Deprecated } -func (o *PartnerStatusAttribute) GetDefaultValue() any { - if o == nil { +func (p *PartnerStatusAttribute) GetDefaultValue() any { + if p == nil { return nil } - return o.DefaultValue + return p.DefaultValue } -func (o *PartnerStatusAttribute) GetGroup() *string { - if o == nil { +func (p *PartnerStatusAttribute) GetGroup() *string { + if p == nil { return nil } - return o.Group + return p.Group } -func (o *PartnerStatusAttribute) GetOrder() *int64 { - if o == nil { +func (p *PartnerStatusAttribute) GetOrder() *int64 { + if p == nil { return nil } - return o.Order + return p.Order } -func (o *PartnerStatusAttribute) GetLayout() *string { - if o == nil { +func (p *PartnerStatusAttribute) GetLayout() *string { + if p == nil { return nil } - return o.Layout + return p.Layout } -func (o *PartnerStatusAttribute) GetHideLabel() *bool { - if o == nil { +func (p *PartnerStatusAttribute) GetHideLabel() *bool { + if p == nil { return nil } - return o.HideLabel + return p.HideLabel } -func (o *PartnerStatusAttribute) GetIcon() *string { - if o == nil { +func (p *PartnerStatusAttribute) GetIcon() *string { + if p == nil { return nil } - return o.Icon + return p.Icon } -func (o *PartnerStatusAttribute) GetRenderCondition() *string { - if o == nil { +func (p *PartnerStatusAttribute) GetRenderCondition() *string { + if p == nil { return nil } - return o.RenderCondition + return p.RenderCondition } -func (o *PartnerStatusAttribute) GetPurpose() []string { - if o == nil { +func (p *PartnerStatusAttribute) GetPurpose() []string { + if p == nil { return nil } - return o.Purpose + return p.Purpose } -func (o *PartnerStatusAttribute) GetManifest() []string { - if o == nil { +func (p *PartnerStatusAttribute) GetManifest() []string { + if p == nil { return nil } - return o.Manifest + return p.Manifest } -func (o *PartnerStatusAttribute) GetConstraints() *PartnerStatusAttributeConstraints { - if o == nil { +func (p *PartnerStatusAttribute) GetConstraints() *PartnerStatusAttributeConstraints { + if p == nil { return nil } - return o.Constraints + return p.Constraints } -func (o *PartnerStatusAttribute) GetFeatureFlag() *string { - if o == nil { +func (p *PartnerStatusAttribute) GetFeatureFlag() *string { + if p == nil { return nil } - return o.FeatureFlag + return p.FeatureFlag } -func (o *PartnerStatusAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (p *PartnerStatusAttribute) GetSettingsFlag() []SettingFlag { + if p == nil { return nil } - return o.SettingsFlag + return p.SettingsFlag } -func (o *PartnerStatusAttribute) GetValueFormatter() *string { - if o == nil { +func (p *PartnerStatusAttribute) GetValueFormatter() *string { + if p == nil { return nil } - return o.ValueFormatter + return p.ValueFormatter } -func (o *PartnerStatusAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (p *PartnerStatusAttribute) GetPreviewValueFormatter() *string { + if p == nil { return nil } - return o.PreviewValueFormatter + return p.PreviewValueFormatter } -func (o *PartnerStatusAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (p *PartnerStatusAttribute) GetEntityBuilderDisableEdit() *bool { + if p == nil { return nil } - return o.EntityBuilderDisableEdit + return p.EntityBuilderDisableEdit } -func (o *PartnerStatusAttribute) GetProtected() *bool { - if o == nil { +func (p *PartnerStatusAttribute) GetProtected() *bool { + if p == nil { return nil } - return o.Protected + return p.Protected } -func (o *PartnerStatusAttribute) GetInfoHelpers() *PartnerStatusAttributeInfoHelpers { - if o == nil { +func (p *PartnerStatusAttribute) GetInfoHelpers() *PartnerStatusAttributeInfoHelpers { + if p == nil { return nil } - return o.InfoHelpers + return p.InfoHelpers } -func (o *PartnerStatusAttribute) GetRepeatable() *bool { - if o == nil { +func (p *PartnerStatusAttribute) GetRepeatable() *bool { + if p == nil { return nil } - return o.Repeatable + return p.Repeatable } -func (o *PartnerStatusAttribute) GetHasPrimary() *bool { - if o == nil { +func (p *PartnerStatusAttribute) GetHasPrimary() *bool { + if p == nil { return nil } - return o.HasPrimary + return p.HasPrimary } -func (o *PartnerStatusAttribute) GetType() PartnerStatusAttributeType { - if o == nil { +func (p *PartnerStatusAttribute) GetType() PartnerStatusAttributeType { + if p == nil { return PartnerStatusAttributeType("") } - return o.Type + return p.Type } diff --git a/internal/sdk/models/shared/paymentattribute.go b/internal/sdk/models/shared/paymentattribute.go index 449998ac..c4d13c2a 100644 --- a/internal/sdk/models/shared/paymentattribute.go +++ b/internal/sdk/models/shared/paymentattribute.go @@ -56,32 +56,32 @@ func (p *PaymentAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *PaymentAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PaymentAttributeInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PaymentAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PaymentAttributeInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PaymentAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PaymentAttributeInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PaymentAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PaymentAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PaymentAttributeType string @@ -176,212 +176,212 @@ func (p *PaymentAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *PaymentAttribute) GetID() *string { - if o == nil { +func (p *PaymentAttribute) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PaymentAttribute) GetName() string { - if o == nil { +func (p *PaymentAttribute) GetName() string { + if p == nil { return "" } - return o.Name + return p.Name } -func (o *PaymentAttribute) GetLabel() string { - if o == nil { +func (p *PaymentAttribute) GetLabel() string { + if p == nil { return "" } - return o.Label + return p.Label } -func (o *PaymentAttribute) GetPlaceholder() *string { - if o == nil { +func (p *PaymentAttribute) GetPlaceholder() *string { + if p == nil { return nil } - return o.Placeholder + return p.Placeholder } -func (o *PaymentAttribute) GetHidden() *bool { - if o == nil { +func (p *PaymentAttribute) GetHidden() *bool { + if p == nil { return nil } - return o.Hidden + return p.Hidden } -func (o *PaymentAttribute) GetShowInTable() *bool { - if o == nil { +func (p *PaymentAttribute) GetShowInTable() *bool { + if p == nil { return nil } - return o.ShowInTable + return p.ShowInTable } -func (o *PaymentAttribute) GetSortable() *bool { - if o == nil { +func (p *PaymentAttribute) GetSortable() *bool { + if p == nil { return nil } - return o.Sortable + return p.Sortable } -func (o *PaymentAttribute) GetRequired() *bool { - if o == nil { +func (p *PaymentAttribute) GetRequired() *bool { + if p == nil { return nil } - return o.Required + return p.Required } -func (o *PaymentAttribute) GetReadonly() *bool { - if o == nil { +func (p *PaymentAttribute) GetReadonly() *bool { + if p == nil { return nil } - return o.Readonly + return p.Readonly } -func (o *PaymentAttribute) GetDeprecated() *bool { - if o == nil { +func (p *PaymentAttribute) GetDeprecated() *bool { + if p == nil { return nil } - return o.Deprecated + return p.Deprecated } -func (o *PaymentAttribute) GetDefaultValue() any { - if o == nil { +func (p *PaymentAttribute) GetDefaultValue() any { + if p == nil { return nil } - return o.DefaultValue + return p.DefaultValue } -func (o *PaymentAttribute) GetGroup() *string { - if o == nil { +func (p *PaymentAttribute) GetGroup() *string { + if p == nil { return nil } - return o.Group + return p.Group } -func (o *PaymentAttribute) GetOrder() *int64 { - if o == nil { +func (p *PaymentAttribute) GetOrder() *int64 { + if p == nil { return nil } - return o.Order + return p.Order } -func (o *PaymentAttribute) GetLayout() *string { - if o == nil { +func (p *PaymentAttribute) GetLayout() *string { + if p == nil { return nil } - return o.Layout + return p.Layout } -func (o *PaymentAttribute) GetHideLabel() *bool { - if o == nil { +func (p *PaymentAttribute) GetHideLabel() *bool { + if p == nil { return nil } - return o.HideLabel + return p.HideLabel } -func (o *PaymentAttribute) GetIcon() *string { - if o == nil { +func (p *PaymentAttribute) GetIcon() *string { + if p == nil { return nil } - return o.Icon + return p.Icon } -func (o *PaymentAttribute) GetRenderCondition() *string { - if o == nil { +func (p *PaymentAttribute) GetRenderCondition() *string { + if p == nil { return nil } - return o.RenderCondition + return p.RenderCondition } -func (o *PaymentAttribute) GetPurpose() []string { - if o == nil { +func (p *PaymentAttribute) GetPurpose() []string { + if p == nil { return nil } - return o.Purpose + return p.Purpose } -func (o *PaymentAttribute) GetManifest() []string { - if o == nil { +func (p *PaymentAttribute) GetManifest() []string { + if p == nil { return nil } - return o.Manifest + return p.Manifest } -func (o *PaymentAttribute) GetConstraints() *PaymentAttributeConstraints { - if o == nil { +func (p *PaymentAttribute) GetConstraints() *PaymentAttributeConstraints { + if p == nil { return nil } - return o.Constraints + return p.Constraints } -func (o *PaymentAttribute) GetFeatureFlag() *string { - if o == nil { +func (p *PaymentAttribute) GetFeatureFlag() *string { + if p == nil { return nil } - return o.FeatureFlag + return p.FeatureFlag } -func (o *PaymentAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (p *PaymentAttribute) GetSettingsFlag() []SettingFlag { + if p == nil { return nil } - return o.SettingsFlag + return p.SettingsFlag } -func (o *PaymentAttribute) GetValueFormatter() *string { - if o == nil { +func (p *PaymentAttribute) GetValueFormatter() *string { + if p == nil { return nil } - return o.ValueFormatter + return p.ValueFormatter } -func (o *PaymentAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (p *PaymentAttribute) GetPreviewValueFormatter() *string { + if p == nil { return nil } - return o.PreviewValueFormatter + return p.PreviewValueFormatter } -func (o *PaymentAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (p *PaymentAttribute) GetEntityBuilderDisableEdit() *bool { + if p == nil { return nil } - return o.EntityBuilderDisableEdit + return p.EntityBuilderDisableEdit } -func (o *PaymentAttribute) GetProtected() *bool { - if o == nil { +func (p *PaymentAttribute) GetProtected() *bool { + if p == nil { return nil } - return o.Protected + return p.Protected } -func (o *PaymentAttribute) GetInfoHelpers() *PaymentAttributeInfoHelpers { - if o == nil { +func (p *PaymentAttribute) GetInfoHelpers() *PaymentAttributeInfoHelpers { + if p == nil { return nil } - return o.InfoHelpers + return p.InfoHelpers } -func (o *PaymentAttribute) GetRepeatable() *bool { - if o == nil { +func (p *PaymentAttribute) GetRepeatable() *bool { + if p == nil { return nil } - return o.Repeatable + return p.Repeatable } -func (o *PaymentAttribute) GetHasPrimary() *bool { - if o == nil { +func (p *PaymentAttribute) GetHasPrimary() *bool { + if p == nil { return nil } - return o.HasPrimary + return p.HasPrimary } -func (o *PaymentAttribute) GetType() PaymentAttributeType { - if o == nil { +func (p *PaymentAttribute) GetType() PaymentAttributeType { + if p == nil { return PaymentAttributeType("") } - return o.Type + return p.Type } diff --git a/internal/sdk/models/shared/paymentmethodrelationattribute.go b/internal/sdk/models/shared/paymentmethodrelationattribute.go index eec2e6f5..86bbe4ef 100644 --- a/internal/sdk/models/shared/paymentmethodrelationattribute.go +++ b/internal/sdk/models/shared/paymentmethodrelationattribute.go @@ -56,32 +56,32 @@ func (p *PaymentMethodRelationAttributeInfoHelpers) UnmarshalJSON(data []byte) e return nil } -func (o *PaymentMethodRelationAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PaymentMethodRelationAttributeInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PaymentMethodRelationAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PaymentMethodRelationAttributeInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PaymentMethodRelationAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PaymentMethodRelationAttributeInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PaymentMethodRelationAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PaymentMethodRelationAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PaymentMethodRelationAttributeType string @@ -176,212 +176,212 @@ func (p *PaymentMethodRelationAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *PaymentMethodRelationAttribute) GetID() *string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PaymentMethodRelationAttribute) GetName() string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetName() string { + if p == nil { return "" } - return o.Name + return p.Name } -func (o *PaymentMethodRelationAttribute) GetLabel() string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetLabel() string { + if p == nil { return "" } - return o.Label + return p.Label } -func (o *PaymentMethodRelationAttribute) GetPlaceholder() *string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetPlaceholder() *string { + if p == nil { return nil } - return o.Placeholder + return p.Placeholder } -func (o *PaymentMethodRelationAttribute) GetHidden() *bool { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetHidden() *bool { + if p == nil { return nil } - return o.Hidden + return p.Hidden } -func (o *PaymentMethodRelationAttribute) GetShowInTable() *bool { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetShowInTable() *bool { + if p == nil { return nil } - return o.ShowInTable + return p.ShowInTable } -func (o *PaymentMethodRelationAttribute) GetSortable() *bool { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetSortable() *bool { + if p == nil { return nil } - return o.Sortable + return p.Sortable } -func (o *PaymentMethodRelationAttribute) GetRequired() *bool { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetRequired() *bool { + if p == nil { return nil } - return o.Required + return p.Required } -func (o *PaymentMethodRelationAttribute) GetReadonly() *bool { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetReadonly() *bool { + if p == nil { return nil } - return o.Readonly + return p.Readonly } -func (o *PaymentMethodRelationAttribute) GetDeprecated() *bool { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetDeprecated() *bool { + if p == nil { return nil } - return o.Deprecated + return p.Deprecated } -func (o *PaymentMethodRelationAttribute) GetDefaultValue() any { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetDefaultValue() any { + if p == nil { return nil } - return o.DefaultValue + return p.DefaultValue } -func (o *PaymentMethodRelationAttribute) GetGroup() *string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetGroup() *string { + if p == nil { return nil } - return o.Group + return p.Group } -func (o *PaymentMethodRelationAttribute) GetOrder() *int64 { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetOrder() *int64 { + if p == nil { return nil } - return o.Order + return p.Order } -func (o *PaymentMethodRelationAttribute) GetLayout() *string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetLayout() *string { + if p == nil { return nil } - return o.Layout + return p.Layout } -func (o *PaymentMethodRelationAttribute) GetHideLabel() *bool { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetHideLabel() *bool { + if p == nil { return nil } - return o.HideLabel + return p.HideLabel } -func (o *PaymentMethodRelationAttribute) GetIcon() *string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetIcon() *string { + if p == nil { return nil } - return o.Icon + return p.Icon } -func (o *PaymentMethodRelationAttribute) GetRenderCondition() *string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetRenderCondition() *string { + if p == nil { return nil } - return o.RenderCondition + return p.RenderCondition } -func (o *PaymentMethodRelationAttribute) GetPurpose() []string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetPurpose() []string { + if p == nil { return nil } - return o.Purpose + return p.Purpose } -func (o *PaymentMethodRelationAttribute) GetManifest() []string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetManifest() []string { + if p == nil { return nil } - return o.Manifest + return p.Manifest } -func (o *PaymentMethodRelationAttribute) GetConstraints() *PaymentMethodRelationAttributeConstraints { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetConstraints() *PaymentMethodRelationAttributeConstraints { + if p == nil { return nil } - return o.Constraints + return p.Constraints } -func (o *PaymentMethodRelationAttribute) GetFeatureFlag() *string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetFeatureFlag() *string { + if p == nil { return nil } - return o.FeatureFlag + return p.FeatureFlag } -func (o *PaymentMethodRelationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetSettingsFlag() []SettingFlag { + if p == nil { return nil } - return o.SettingsFlag + return p.SettingsFlag } -func (o *PaymentMethodRelationAttribute) GetValueFormatter() *string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetValueFormatter() *string { + if p == nil { return nil } - return o.ValueFormatter + return p.ValueFormatter } -func (o *PaymentMethodRelationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetPreviewValueFormatter() *string { + if p == nil { return nil } - return o.PreviewValueFormatter + return p.PreviewValueFormatter } -func (o *PaymentMethodRelationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetEntityBuilderDisableEdit() *bool { + if p == nil { return nil } - return o.EntityBuilderDisableEdit + return p.EntityBuilderDisableEdit } -func (o *PaymentMethodRelationAttribute) GetProtected() *bool { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetProtected() *bool { + if p == nil { return nil } - return o.Protected + return p.Protected } -func (o *PaymentMethodRelationAttribute) GetInfoHelpers() *PaymentMethodRelationAttributeInfoHelpers { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetInfoHelpers() *PaymentMethodRelationAttributeInfoHelpers { + if p == nil { return nil } - return o.InfoHelpers + return p.InfoHelpers } -func (o *PaymentMethodRelationAttribute) GetRepeatable() *bool { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetRepeatable() *bool { + if p == nil { return nil } - return o.Repeatable + return p.Repeatable } -func (o *PaymentMethodRelationAttribute) GetHasPrimary() *bool { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetHasPrimary() *bool { + if p == nil { return nil } - return o.HasPrimary + return p.HasPrimary } -func (o *PaymentMethodRelationAttribute) GetType() PaymentMethodRelationAttributeType { - if o == nil { +func (p *PaymentMethodRelationAttribute) GetType() PaymentMethodRelationAttributeType { + if p == nil { return PaymentMethodRelationAttributeType("") } - return o.Type + return p.Type } diff --git a/internal/sdk/models/shared/phoneattribute.go b/internal/sdk/models/shared/phoneattribute.go index 460817bf..e73189ee 100644 --- a/internal/sdk/models/shared/phoneattribute.go +++ b/internal/sdk/models/shared/phoneattribute.go @@ -56,32 +56,32 @@ func (p *PhoneAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *PhoneAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PhoneAttributeInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PhoneAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PhoneAttributeInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PhoneAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PhoneAttributeInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PhoneAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PhoneAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PhoneAttributeType string @@ -176,212 +176,212 @@ func (p *PhoneAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *PhoneAttribute) GetID() *string { - if o == nil { +func (p *PhoneAttribute) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PhoneAttribute) GetName() string { - if o == nil { +func (p *PhoneAttribute) GetName() string { + if p == nil { return "" } - return o.Name + return p.Name } -func (o *PhoneAttribute) GetLabel() string { - if o == nil { +func (p *PhoneAttribute) GetLabel() string { + if p == nil { return "" } - return o.Label + return p.Label } -func (o *PhoneAttribute) GetPlaceholder() *string { - if o == nil { +func (p *PhoneAttribute) GetPlaceholder() *string { + if p == nil { return nil } - return o.Placeholder + return p.Placeholder } -func (o *PhoneAttribute) GetHidden() *bool { - if o == nil { +func (p *PhoneAttribute) GetHidden() *bool { + if p == nil { return nil } - return o.Hidden + return p.Hidden } -func (o *PhoneAttribute) GetShowInTable() *bool { - if o == nil { +func (p *PhoneAttribute) GetShowInTable() *bool { + if p == nil { return nil } - return o.ShowInTable + return p.ShowInTable } -func (o *PhoneAttribute) GetSortable() *bool { - if o == nil { +func (p *PhoneAttribute) GetSortable() *bool { + if p == nil { return nil } - return o.Sortable + return p.Sortable } -func (o *PhoneAttribute) GetRequired() *bool { - if o == nil { +func (p *PhoneAttribute) GetRequired() *bool { + if p == nil { return nil } - return o.Required + return p.Required } -func (o *PhoneAttribute) GetReadonly() *bool { - if o == nil { +func (p *PhoneAttribute) GetReadonly() *bool { + if p == nil { return nil } - return o.Readonly + return p.Readonly } -func (o *PhoneAttribute) GetDeprecated() *bool { - if o == nil { +func (p *PhoneAttribute) GetDeprecated() *bool { + if p == nil { return nil } - return o.Deprecated + return p.Deprecated } -func (o *PhoneAttribute) GetDefaultValue() any { - if o == nil { +func (p *PhoneAttribute) GetDefaultValue() any { + if p == nil { return nil } - return o.DefaultValue + return p.DefaultValue } -func (o *PhoneAttribute) GetGroup() *string { - if o == nil { +func (p *PhoneAttribute) GetGroup() *string { + if p == nil { return nil } - return o.Group + return p.Group } -func (o *PhoneAttribute) GetOrder() *int64 { - if o == nil { +func (p *PhoneAttribute) GetOrder() *int64 { + if p == nil { return nil } - return o.Order + return p.Order } -func (o *PhoneAttribute) GetLayout() *string { - if o == nil { +func (p *PhoneAttribute) GetLayout() *string { + if p == nil { return nil } - return o.Layout + return p.Layout } -func (o *PhoneAttribute) GetHideLabel() *bool { - if o == nil { +func (p *PhoneAttribute) GetHideLabel() *bool { + if p == nil { return nil } - return o.HideLabel + return p.HideLabel } -func (o *PhoneAttribute) GetIcon() *string { - if o == nil { +func (p *PhoneAttribute) GetIcon() *string { + if p == nil { return nil } - return o.Icon + return p.Icon } -func (o *PhoneAttribute) GetRenderCondition() *string { - if o == nil { +func (p *PhoneAttribute) GetRenderCondition() *string { + if p == nil { return nil } - return o.RenderCondition + return p.RenderCondition } -func (o *PhoneAttribute) GetPurpose() []string { - if o == nil { +func (p *PhoneAttribute) GetPurpose() []string { + if p == nil { return nil } - return o.Purpose + return p.Purpose } -func (o *PhoneAttribute) GetManifest() []string { - if o == nil { +func (p *PhoneAttribute) GetManifest() []string { + if p == nil { return nil } - return o.Manifest + return p.Manifest } -func (o *PhoneAttribute) GetConstraints() *PhoneAttributeConstraints { - if o == nil { +func (p *PhoneAttribute) GetConstraints() *PhoneAttributeConstraints { + if p == nil { return nil } - return o.Constraints + return p.Constraints } -func (o *PhoneAttribute) GetFeatureFlag() *string { - if o == nil { +func (p *PhoneAttribute) GetFeatureFlag() *string { + if p == nil { return nil } - return o.FeatureFlag + return p.FeatureFlag } -func (o *PhoneAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (p *PhoneAttribute) GetSettingsFlag() []SettingFlag { + if p == nil { return nil } - return o.SettingsFlag + return p.SettingsFlag } -func (o *PhoneAttribute) GetValueFormatter() *string { - if o == nil { +func (p *PhoneAttribute) GetValueFormatter() *string { + if p == nil { return nil } - return o.ValueFormatter + return p.ValueFormatter } -func (o *PhoneAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (p *PhoneAttribute) GetPreviewValueFormatter() *string { + if p == nil { return nil } - return o.PreviewValueFormatter + return p.PreviewValueFormatter } -func (o *PhoneAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (p *PhoneAttribute) GetEntityBuilderDisableEdit() *bool { + if p == nil { return nil } - return o.EntityBuilderDisableEdit + return p.EntityBuilderDisableEdit } -func (o *PhoneAttribute) GetProtected() *bool { - if o == nil { +func (p *PhoneAttribute) GetProtected() *bool { + if p == nil { return nil } - return o.Protected + return p.Protected } -func (o *PhoneAttribute) GetInfoHelpers() *PhoneAttributeInfoHelpers { - if o == nil { +func (p *PhoneAttribute) GetInfoHelpers() *PhoneAttributeInfoHelpers { + if p == nil { return nil } - return o.InfoHelpers + return p.InfoHelpers } -func (o *PhoneAttribute) GetRepeatable() *bool { - if o == nil { +func (p *PhoneAttribute) GetRepeatable() *bool { + if p == nil { return nil } - return o.Repeatable + return p.Repeatable } -func (o *PhoneAttribute) GetHasPrimary() *bool { - if o == nil { +func (p *PhoneAttribute) GetHasPrimary() *bool { + if p == nil { return nil } - return o.HasPrimary + return p.HasPrimary } -func (o *PhoneAttribute) GetType() PhoneAttributeType { - if o == nil { +func (p *PhoneAttribute) GetType() PhoneAttributeType { + if p == nil { return PhoneAttributeType("") } - return o.Type + return p.Type } diff --git a/internal/sdk/models/shared/portalaccessattribute.go b/internal/sdk/models/shared/portalaccessattribute.go index 53c6b00c..3b5f6528 100644 --- a/internal/sdk/models/shared/portalaccessattribute.go +++ b/internal/sdk/models/shared/portalaccessattribute.go @@ -56,32 +56,32 @@ func (p *PortalAccessAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *PortalAccessAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PortalAccessAttributeInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PortalAccessAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PortalAccessAttributeInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PortalAccessAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PortalAccessAttributeInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PortalAccessAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PortalAccessAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PortalAccessAttributeType string @@ -176,212 +176,212 @@ func (p *PortalAccessAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *PortalAccessAttribute) GetID() *string { - if o == nil { +func (p *PortalAccessAttribute) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PortalAccessAttribute) GetName() string { - if o == nil { +func (p *PortalAccessAttribute) GetName() string { + if p == nil { return "" } - return o.Name + return p.Name } -func (o *PortalAccessAttribute) GetLabel() string { - if o == nil { +func (p *PortalAccessAttribute) GetLabel() string { + if p == nil { return "" } - return o.Label + return p.Label } -func (o *PortalAccessAttribute) GetPlaceholder() *string { - if o == nil { +func (p *PortalAccessAttribute) GetPlaceholder() *string { + if p == nil { return nil } - return o.Placeholder + return p.Placeholder } -func (o *PortalAccessAttribute) GetHidden() *bool { - if o == nil { +func (p *PortalAccessAttribute) GetHidden() *bool { + if p == nil { return nil } - return o.Hidden + return p.Hidden } -func (o *PortalAccessAttribute) GetShowInTable() *bool { - if o == nil { +func (p *PortalAccessAttribute) GetShowInTable() *bool { + if p == nil { return nil } - return o.ShowInTable + return p.ShowInTable } -func (o *PortalAccessAttribute) GetSortable() *bool { - if o == nil { +func (p *PortalAccessAttribute) GetSortable() *bool { + if p == nil { return nil } - return o.Sortable + return p.Sortable } -func (o *PortalAccessAttribute) GetRequired() *bool { - if o == nil { +func (p *PortalAccessAttribute) GetRequired() *bool { + if p == nil { return nil } - return o.Required + return p.Required } -func (o *PortalAccessAttribute) GetReadonly() *bool { - if o == nil { +func (p *PortalAccessAttribute) GetReadonly() *bool { + if p == nil { return nil } - return o.Readonly + return p.Readonly } -func (o *PortalAccessAttribute) GetDeprecated() *bool { - if o == nil { +func (p *PortalAccessAttribute) GetDeprecated() *bool { + if p == nil { return nil } - return o.Deprecated + return p.Deprecated } -func (o *PortalAccessAttribute) GetDefaultValue() any { - if o == nil { +func (p *PortalAccessAttribute) GetDefaultValue() any { + if p == nil { return nil } - return o.DefaultValue + return p.DefaultValue } -func (o *PortalAccessAttribute) GetGroup() *string { - if o == nil { +func (p *PortalAccessAttribute) GetGroup() *string { + if p == nil { return nil } - return o.Group + return p.Group } -func (o *PortalAccessAttribute) GetOrder() *int64 { - if o == nil { +func (p *PortalAccessAttribute) GetOrder() *int64 { + if p == nil { return nil } - return o.Order + return p.Order } -func (o *PortalAccessAttribute) GetLayout() *string { - if o == nil { +func (p *PortalAccessAttribute) GetLayout() *string { + if p == nil { return nil } - return o.Layout + return p.Layout } -func (o *PortalAccessAttribute) GetHideLabel() *bool { - if o == nil { +func (p *PortalAccessAttribute) GetHideLabel() *bool { + if p == nil { return nil } - return o.HideLabel + return p.HideLabel } -func (o *PortalAccessAttribute) GetIcon() *string { - if o == nil { +func (p *PortalAccessAttribute) GetIcon() *string { + if p == nil { return nil } - return o.Icon + return p.Icon } -func (o *PortalAccessAttribute) GetRenderCondition() *string { - if o == nil { +func (p *PortalAccessAttribute) GetRenderCondition() *string { + if p == nil { return nil } - return o.RenderCondition + return p.RenderCondition } -func (o *PortalAccessAttribute) GetPurpose() []string { - if o == nil { +func (p *PortalAccessAttribute) GetPurpose() []string { + if p == nil { return nil } - return o.Purpose + return p.Purpose } -func (o *PortalAccessAttribute) GetManifest() []string { - if o == nil { +func (p *PortalAccessAttribute) GetManifest() []string { + if p == nil { return nil } - return o.Manifest + return p.Manifest } -func (o *PortalAccessAttribute) GetConstraints() *PortalAccessAttributeConstraints { - if o == nil { +func (p *PortalAccessAttribute) GetConstraints() *PortalAccessAttributeConstraints { + if p == nil { return nil } - return o.Constraints + return p.Constraints } -func (o *PortalAccessAttribute) GetFeatureFlag() *string { - if o == nil { +func (p *PortalAccessAttribute) GetFeatureFlag() *string { + if p == nil { return nil } - return o.FeatureFlag + return p.FeatureFlag } -func (o *PortalAccessAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (p *PortalAccessAttribute) GetSettingsFlag() []SettingFlag { + if p == nil { return nil } - return o.SettingsFlag + return p.SettingsFlag } -func (o *PortalAccessAttribute) GetValueFormatter() *string { - if o == nil { +func (p *PortalAccessAttribute) GetValueFormatter() *string { + if p == nil { return nil } - return o.ValueFormatter + return p.ValueFormatter } -func (o *PortalAccessAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (p *PortalAccessAttribute) GetPreviewValueFormatter() *string { + if p == nil { return nil } - return o.PreviewValueFormatter + return p.PreviewValueFormatter } -func (o *PortalAccessAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (p *PortalAccessAttribute) GetEntityBuilderDisableEdit() *bool { + if p == nil { return nil } - return o.EntityBuilderDisableEdit + return p.EntityBuilderDisableEdit } -func (o *PortalAccessAttribute) GetProtected() *bool { - if o == nil { +func (p *PortalAccessAttribute) GetProtected() *bool { + if p == nil { return nil } - return o.Protected + return p.Protected } -func (o *PortalAccessAttribute) GetInfoHelpers() *PortalAccessAttributeInfoHelpers { - if o == nil { +func (p *PortalAccessAttribute) GetInfoHelpers() *PortalAccessAttributeInfoHelpers { + if p == nil { return nil } - return o.InfoHelpers + return p.InfoHelpers } -func (o *PortalAccessAttribute) GetRepeatable() *bool { - if o == nil { +func (p *PortalAccessAttribute) GetRepeatable() *bool { + if p == nil { return nil } - return o.Repeatable + return p.Repeatable } -func (o *PortalAccessAttribute) GetHasPrimary() *bool { - if o == nil { +func (p *PortalAccessAttribute) GetHasPrimary() *bool { + if p == nil { return nil } - return o.HasPrimary + return p.HasPrimary } -func (o *PortalAccessAttribute) GetType() PortalAccessAttributeType { - if o == nil { +func (p *PortalAccessAttribute) GetType() PortalAccessAttributeType { + if p == nil { return PortalAccessAttributeType("") } - return o.Type + return p.Type } diff --git a/internal/sdk/models/shared/pricecomponentattribute.go b/internal/sdk/models/shared/pricecomponentattribute.go index 6e328927..aef3b749 100644 --- a/internal/sdk/models/shared/pricecomponentattribute.go +++ b/internal/sdk/models/shared/pricecomponentattribute.go @@ -56,32 +56,32 @@ func (p *PriceComponentAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *PriceComponentAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PriceComponentAttributeInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PriceComponentAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PriceComponentAttributeInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PriceComponentAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PriceComponentAttributeInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PriceComponentAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PriceComponentAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PriceComponentAttributeType string @@ -176,212 +176,212 @@ func (p *PriceComponentAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *PriceComponentAttribute) GetID() *string { - if o == nil { +func (p *PriceComponentAttribute) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PriceComponentAttribute) GetName() string { - if o == nil { +func (p *PriceComponentAttribute) GetName() string { + if p == nil { return "" } - return o.Name + return p.Name } -func (o *PriceComponentAttribute) GetLabel() string { - if o == nil { +func (p *PriceComponentAttribute) GetLabel() string { + if p == nil { return "" } - return o.Label + return p.Label } -func (o *PriceComponentAttribute) GetPlaceholder() *string { - if o == nil { +func (p *PriceComponentAttribute) GetPlaceholder() *string { + if p == nil { return nil } - return o.Placeholder + return p.Placeholder } -func (o *PriceComponentAttribute) GetHidden() *bool { - if o == nil { +func (p *PriceComponentAttribute) GetHidden() *bool { + if p == nil { return nil } - return o.Hidden + return p.Hidden } -func (o *PriceComponentAttribute) GetShowInTable() *bool { - if o == nil { +func (p *PriceComponentAttribute) GetShowInTable() *bool { + if p == nil { return nil } - return o.ShowInTable + return p.ShowInTable } -func (o *PriceComponentAttribute) GetSortable() *bool { - if o == nil { +func (p *PriceComponentAttribute) GetSortable() *bool { + if p == nil { return nil } - return o.Sortable + return p.Sortable } -func (o *PriceComponentAttribute) GetRequired() *bool { - if o == nil { +func (p *PriceComponentAttribute) GetRequired() *bool { + if p == nil { return nil } - return o.Required + return p.Required } -func (o *PriceComponentAttribute) GetReadonly() *bool { - if o == nil { +func (p *PriceComponentAttribute) GetReadonly() *bool { + if p == nil { return nil } - return o.Readonly + return p.Readonly } -func (o *PriceComponentAttribute) GetDeprecated() *bool { - if o == nil { +func (p *PriceComponentAttribute) GetDeprecated() *bool { + if p == nil { return nil } - return o.Deprecated + return p.Deprecated } -func (o *PriceComponentAttribute) GetDefaultValue() any { - if o == nil { +func (p *PriceComponentAttribute) GetDefaultValue() any { + if p == nil { return nil } - return o.DefaultValue + return p.DefaultValue } -func (o *PriceComponentAttribute) GetGroup() *string { - if o == nil { +func (p *PriceComponentAttribute) GetGroup() *string { + if p == nil { return nil } - return o.Group + return p.Group } -func (o *PriceComponentAttribute) GetOrder() *int64 { - if o == nil { +func (p *PriceComponentAttribute) GetOrder() *int64 { + if p == nil { return nil } - return o.Order + return p.Order } -func (o *PriceComponentAttribute) GetLayout() *string { - if o == nil { +func (p *PriceComponentAttribute) GetLayout() *string { + if p == nil { return nil } - return o.Layout + return p.Layout } -func (o *PriceComponentAttribute) GetHideLabel() *bool { - if o == nil { +func (p *PriceComponentAttribute) GetHideLabel() *bool { + if p == nil { return nil } - return o.HideLabel + return p.HideLabel } -func (o *PriceComponentAttribute) GetIcon() *string { - if o == nil { +func (p *PriceComponentAttribute) GetIcon() *string { + if p == nil { return nil } - return o.Icon + return p.Icon } -func (o *PriceComponentAttribute) GetRenderCondition() *string { - if o == nil { +func (p *PriceComponentAttribute) GetRenderCondition() *string { + if p == nil { return nil } - return o.RenderCondition + return p.RenderCondition } -func (o *PriceComponentAttribute) GetPurpose() []string { - if o == nil { +func (p *PriceComponentAttribute) GetPurpose() []string { + if p == nil { return nil } - return o.Purpose + return p.Purpose } -func (o *PriceComponentAttribute) GetManifest() []string { - if o == nil { +func (p *PriceComponentAttribute) GetManifest() []string { + if p == nil { return nil } - return o.Manifest + return p.Manifest } -func (o *PriceComponentAttribute) GetConstraints() *PriceComponentAttributeConstraints { - if o == nil { +func (p *PriceComponentAttribute) GetConstraints() *PriceComponentAttributeConstraints { + if p == nil { return nil } - return o.Constraints + return p.Constraints } -func (o *PriceComponentAttribute) GetFeatureFlag() *string { - if o == nil { +func (p *PriceComponentAttribute) GetFeatureFlag() *string { + if p == nil { return nil } - return o.FeatureFlag + return p.FeatureFlag } -func (o *PriceComponentAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (p *PriceComponentAttribute) GetSettingsFlag() []SettingFlag { + if p == nil { return nil } - return o.SettingsFlag + return p.SettingsFlag } -func (o *PriceComponentAttribute) GetValueFormatter() *string { - if o == nil { +func (p *PriceComponentAttribute) GetValueFormatter() *string { + if p == nil { return nil } - return o.ValueFormatter + return p.ValueFormatter } -func (o *PriceComponentAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (p *PriceComponentAttribute) GetPreviewValueFormatter() *string { + if p == nil { return nil } - return o.PreviewValueFormatter + return p.PreviewValueFormatter } -func (o *PriceComponentAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (p *PriceComponentAttribute) GetEntityBuilderDisableEdit() *bool { + if p == nil { return nil } - return o.EntityBuilderDisableEdit + return p.EntityBuilderDisableEdit } -func (o *PriceComponentAttribute) GetProtected() *bool { - if o == nil { +func (p *PriceComponentAttribute) GetProtected() *bool { + if p == nil { return nil } - return o.Protected + return p.Protected } -func (o *PriceComponentAttribute) GetInfoHelpers() *PriceComponentAttributeInfoHelpers { - if o == nil { +func (p *PriceComponentAttribute) GetInfoHelpers() *PriceComponentAttributeInfoHelpers { + if p == nil { return nil } - return o.InfoHelpers + return p.InfoHelpers } -func (o *PriceComponentAttribute) GetRepeatable() *bool { - if o == nil { +func (p *PriceComponentAttribute) GetRepeatable() *bool { + if p == nil { return nil } - return o.Repeatable + return p.Repeatable } -func (o *PriceComponentAttribute) GetHasPrimary() *bool { - if o == nil { +func (p *PriceComponentAttribute) GetHasPrimary() *bool { + if p == nil { return nil } - return o.HasPrimary + return p.HasPrimary } -func (o *PriceComponentAttribute) GetType() PriceComponentAttributeType { - if o == nil { +func (p *PriceComponentAttribute) GetType() PriceComponentAttributeType { + if p == nil { return PriceComponentAttributeType("") } - return o.Type + return p.Type } diff --git a/internal/sdk/models/shared/purposeattribute.go b/internal/sdk/models/shared/purposeattribute.go index 0f5c906b..e610b11e 100644 --- a/internal/sdk/models/shared/purposeattribute.go +++ b/internal/sdk/models/shared/purposeattribute.go @@ -56,32 +56,32 @@ func (p *PurposeAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *PurposeAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (p *PurposeAttributeInfoHelpers) GetHintText() *string { + if p == nil { return nil } - return o.HintText + return p.HintText } -func (o *PurposeAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (p *PurposeAttributeInfoHelpers) GetHintTextKey() *string { + if p == nil { return nil } - return o.HintTextKey + return p.HintTextKey } -func (o *PurposeAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (p *PurposeAttributeInfoHelpers) GetHintCustomComponent() *string { + if p == nil { return nil } - return o.HintCustomComponent + return p.HintCustomComponent } -func (o *PurposeAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (p *PurposeAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if p == nil { return nil } - return o.HintTooltipPlacement + return p.HintTooltipPlacement } type PurposeAttributeType string @@ -176,212 +176,212 @@ func (p *PurposeAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *PurposeAttribute) GetID() *string { - if o == nil { +func (p *PurposeAttribute) GetID() *string { + if p == nil { return nil } - return o.ID + return p.ID } -func (o *PurposeAttribute) GetName() string { - if o == nil { +func (p *PurposeAttribute) GetName() string { + if p == nil { return "" } - return o.Name + return p.Name } -func (o *PurposeAttribute) GetLabel() string { - if o == nil { +func (p *PurposeAttribute) GetLabel() string { + if p == nil { return "" } - return o.Label + return p.Label } -func (o *PurposeAttribute) GetPlaceholder() *string { - if o == nil { +func (p *PurposeAttribute) GetPlaceholder() *string { + if p == nil { return nil } - return o.Placeholder + return p.Placeholder } -func (o *PurposeAttribute) GetHidden() *bool { - if o == nil { +func (p *PurposeAttribute) GetHidden() *bool { + if p == nil { return nil } - return o.Hidden + return p.Hidden } -func (o *PurposeAttribute) GetShowInTable() *bool { - if o == nil { +func (p *PurposeAttribute) GetShowInTable() *bool { + if p == nil { return nil } - return o.ShowInTable + return p.ShowInTable } -func (o *PurposeAttribute) GetSortable() *bool { - if o == nil { +func (p *PurposeAttribute) GetSortable() *bool { + if p == nil { return nil } - return o.Sortable + return p.Sortable } -func (o *PurposeAttribute) GetRequired() *bool { - if o == nil { +func (p *PurposeAttribute) GetRequired() *bool { + if p == nil { return nil } - return o.Required + return p.Required } -func (o *PurposeAttribute) GetReadonly() *bool { - if o == nil { +func (p *PurposeAttribute) GetReadonly() *bool { + if p == nil { return nil } - return o.Readonly + return p.Readonly } -func (o *PurposeAttribute) GetDeprecated() *bool { - if o == nil { +func (p *PurposeAttribute) GetDeprecated() *bool { + if p == nil { return nil } - return o.Deprecated + return p.Deprecated } -func (o *PurposeAttribute) GetDefaultValue() any { - if o == nil { +func (p *PurposeAttribute) GetDefaultValue() any { + if p == nil { return nil } - return o.DefaultValue + return p.DefaultValue } -func (o *PurposeAttribute) GetGroup() *string { - if o == nil { +func (p *PurposeAttribute) GetGroup() *string { + if p == nil { return nil } - return o.Group + return p.Group } -func (o *PurposeAttribute) GetOrder() *int64 { - if o == nil { +func (p *PurposeAttribute) GetOrder() *int64 { + if p == nil { return nil } - return o.Order + return p.Order } -func (o *PurposeAttribute) GetLayout() *string { - if o == nil { +func (p *PurposeAttribute) GetLayout() *string { + if p == nil { return nil } - return o.Layout + return p.Layout } -func (o *PurposeAttribute) GetHideLabel() *bool { - if o == nil { +func (p *PurposeAttribute) GetHideLabel() *bool { + if p == nil { return nil } - return o.HideLabel + return p.HideLabel } -func (o *PurposeAttribute) GetIcon() *string { - if o == nil { +func (p *PurposeAttribute) GetIcon() *string { + if p == nil { return nil } - return o.Icon + return p.Icon } -func (o *PurposeAttribute) GetRenderCondition() *string { - if o == nil { +func (p *PurposeAttribute) GetRenderCondition() *string { + if p == nil { return nil } - return o.RenderCondition + return p.RenderCondition } -func (o *PurposeAttribute) GetPurpose() []string { - if o == nil { +func (p *PurposeAttribute) GetPurpose() []string { + if p == nil { return nil } - return o.Purpose + return p.Purpose } -func (o *PurposeAttribute) GetManifest() []string { - if o == nil { +func (p *PurposeAttribute) GetManifest() []string { + if p == nil { return nil } - return o.Manifest + return p.Manifest } -func (o *PurposeAttribute) GetConstraints() *PurposeAttributeConstraints { - if o == nil { +func (p *PurposeAttribute) GetConstraints() *PurposeAttributeConstraints { + if p == nil { return nil } - return o.Constraints + return p.Constraints } -func (o *PurposeAttribute) GetFeatureFlag() *string { - if o == nil { +func (p *PurposeAttribute) GetFeatureFlag() *string { + if p == nil { return nil } - return o.FeatureFlag + return p.FeatureFlag } -func (o *PurposeAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (p *PurposeAttribute) GetSettingsFlag() []SettingFlag { + if p == nil { return nil } - return o.SettingsFlag + return p.SettingsFlag } -func (o *PurposeAttribute) GetValueFormatter() *string { - if o == nil { +func (p *PurposeAttribute) GetValueFormatter() *string { + if p == nil { return nil } - return o.ValueFormatter + return p.ValueFormatter } -func (o *PurposeAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (p *PurposeAttribute) GetPreviewValueFormatter() *string { + if p == nil { return nil } - return o.PreviewValueFormatter + return p.PreviewValueFormatter } -func (o *PurposeAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (p *PurposeAttribute) GetEntityBuilderDisableEdit() *bool { + if p == nil { return nil } - return o.EntityBuilderDisableEdit + return p.EntityBuilderDisableEdit } -func (o *PurposeAttribute) GetProtected() *bool { - if o == nil { +func (p *PurposeAttribute) GetProtected() *bool { + if p == nil { return nil } - return o.Protected + return p.Protected } -func (o *PurposeAttribute) GetInfoHelpers() *PurposeAttributeInfoHelpers { - if o == nil { +func (p *PurposeAttribute) GetInfoHelpers() *PurposeAttributeInfoHelpers { + if p == nil { return nil } - return o.InfoHelpers + return p.InfoHelpers } -func (o *PurposeAttribute) GetRepeatable() *bool { - if o == nil { +func (p *PurposeAttribute) GetRepeatable() *bool { + if p == nil { return nil } - return o.Repeatable + return p.Repeatable } -func (o *PurposeAttribute) GetHasPrimary() *bool { - if o == nil { +func (p *PurposeAttribute) GetHasPrimary() *bool { + if p == nil { return nil } - return o.HasPrimary + return p.HasPrimary } -func (o *PurposeAttribute) GetType() PurposeAttributeType { - if o == nil { +func (p *PurposeAttribute) GetType() PurposeAttributeType { + if p == nil { return PurposeAttributeType("") } - return o.Type + return p.Type } diff --git a/internal/sdk/models/shared/redirectentityview.go b/internal/sdk/models/shared/redirectentityview.go index 8984f1a1..3060443b 100644 --- a/internal/sdk/models/shared/redirectentityview.go +++ b/internal/sdk/models/shared/redirectentityview.go @@ -32,8 +32,8 @@ func (e *RedirectEntityViewViewType) UnmarshalJSON(data []byte) error { } type RedirectEntityView struct { - ViewType *RedirectEntityViewViewType `json:"view_type,omitempty"` Route *string `json:"route,omitempty"` + ViewType *RedirectEntityViewViewType `json:"view_type,omitempty"` } func (r RedirectEntityView) MarshalJSON() ([]byte, error) { @@ -47,16 +47,16 @@ func (r *RedirectEntityView) UnmarshalJSON(data []byte) error { return nil } -func (o *RedirectEntityView) GetViewType() *RedirectEntityViewViewType { - if o == nil { +func (r *RedirectEntityView) GetRoute() *string { + if r == nil { return nil } - return o.ViewType + return r.Route } -func (o *RedirectEntityView) GetRoute() *string { - if o == nil { +func (r *RedirectEntityView) GetViewType() *RedirectEntityViewViewType { + if r == nil { return nil } - return o.Route + return r.ViewType } diff --git a/internal/sdk/models/shared/relationattribute.go b/internal/sdk/models/shared/relationattribute.go index d52ff798..6dcf4cfd 100644 --- a/internal/sdk/models/shared/relationattribute.go +++ b/internal/sdk/models/shared/relationattribute.go @@ -57,32 +57,32 @@ func (r *RelationAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *RelationAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (r *RelationAttributeInfoHelpers) GetHintText() *string { + if r == nil { return nil } - return o.HintText + return r.HintText } -func (o *RelationAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (r *RelationAttributeInfoHelpers) GetHintTextKey() *string { + if r == nil { return nil } - return o.HintTextKey + return r.HintTextKey } -func (o *RelationAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (r *RelationAttributeInfoHelpers) GetHintCustomComponent() *string { + if r == nil { return nil } - return o.HintCustomComponent + return r.HintCustomComponent } -func (o *RelationAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (r *RelationAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if r == nil { return nil } - return o.HintTooltipPlacement + return r.HintTooltipPlacement } type RelationAttributeType string @@ -194,17 +194,17 @@ func (r RelationPickerFilter) MarshalJSON() ([]byte, error) { } func (r *RelationPickerFilter) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, []string{"q"}); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { return err } return nil } -func (o *RelationPickerFilter) GetQ() *string { - if o == nil { +func (r *RelationPickerFilter) GetQ() *string { + if r == nil { return nil } - return o.Q + return r.Q } // ActionType - The action type. Currently supported actions: @@ -275,46 +275,46 @@ func (a *Actions) UnmarshalJSON(data []byte) error { return nil } -func (o *Actions) GetActionType() *ActionType { - if o == nil { +func (a *Actions) GetActionType() *ActionType { + if a == nil { return nil } - return o.ActionType + return a.ActionType } -func (o *Actions) GetLabel() *string { - if o == nil { +func (a *Actions) GetLabel() *string { + if a == nil { return nil } - return o.Label + return a.Label } -func (o *Actions) GetDefault() *bool { - if o == nil { +func (a *Actions) GetDefault() *bool { + if a == nil { return nil } - return o.Default + return a.Default } -func (o *Actions) GetFeatureFlag() *string { - if o == nil { +func (a *Actions) GetFeatureFlag() *string { + if a == nil { return nil } - return o.FeatureFlag + return a.FeatureFlag } -func (o *Actions) GetSettingsFlag() []SettingFlag { - if o == nil { +func (a *Actions) GetSettingsFlag() []SettingFlag { + if a == nil { return nil } - return o.SettingsFlag + return a.SettingsFlag } -func (o *Actions) GetNewEntityItem() any { - if o == nil { +func (a *Actions) GetNewEntityItem() any { + if a == nil { return nil } - return o.NewEntityItem + return a.NewEntityItem } type DrawerSize string @@ -354,8 +354,8 @@ const ( ) type SummaryFields struct { - Str *string `queryParam:"inline" name:"summary_fields"` - SummaryField *SummaryField `queryParam:"inline" name:"summary_fields"` + Str *string `queryParam:"inline,name=summary_fields"` + SummaryField *SummaryField `queryParam:"inline,name=summary_fields"` Type SummaryFieldsType } @@ -380,17 +380,43 @@ func CreateSummaryFieldsSummaryField(summaryField SummaryField) SummaryFields { func (u *SummaryFields) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates + var str string = "" + if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { + candidates = append(candidates, utils.UnionCandidate{ + Type: SummaryFieldsTypeStr, + Value: &str, + }) + } + var summaryField SummaryField = SummaryField{} if err := utils.UnmarshalJSON(data, &summaryField, "", true, nil); err == nil { - u.SummaryField = &summaryField - u.Type = SummaryFieldsTypeSummaryField - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: SummaryFieldsTypeSummaryField, + Value: &summaryField, + }) } - var str string = "" - if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = SummaryFieldsTypeStr + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SummaryFields", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SummaryFields", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(SummaryFieldsType) + switch best.Type { + case SummaryFieldsTypeStr: + u.Str = best.Value.(*string) + return nil + case SummaryFieldsTypeSummaryField: + u.SummaryField = best.Value.(*SummaryField) return nil } @@ -497,310 +523,310 @@ func (r *RelationAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *RelationAttribute) GetID() *string { - if o == nil { +func (r *RelationAttribute) GetID() *string { + if r == nil { return nil } - return o.ID + return r.ID } -func (o *RelationAttribute) GetName() string { - if o == nil { +func (r *RelationAttribute) GetName() string { + if r == nil { return "" } - return o.Name + return r.Name } -func (o *RelationAttribute) GetLabel() string { - if o == nil { +func (r *RelationAttribute) GetLabel() string { + if r == nil { return "" } - return o.Label + return r.Label } -func (o *RelationAttribute) GetPlaceholder() *string { - if o == nil { +func (r *RelationAttribute) GetPlaceholder() *string { + if r == nil { return nil } - return o.Placeholder + return r.Placeholder } -func (o *RelationAttribute) GetHidden() *bool { - if o == nil { +func (r *RelationAttribute) GetHidden() *bool { + if r == nil { return nil } - return o.Hidden + return r.Hidden } -func (o *RelationAttribute) GetShowInTable() *bool { - if o == nil { +func (r *RelationAttribute) GetShowInTable() *bool { + if r == nil { return nil } - return o.ShowInTable + return r.ShowInTable } -func (o *RelationAttribute) GetSortable() *bool { - if o == nil { +func (r *RelationAttribute) GetSortable() *bool { + if r == nil { return nil } - return o.Sortable + return r.Sortable } -func (o *RelationAttribute) GetRequired() *bool { - if o == nil { +func (r *RelationAttribute) GetRequired() *bool { + if r == nil { return nil } - return o.Required + return r.Required } -func (o *RelationAttribute) GetReadonly() *bool { - if o == nil { +func (r *RelationAttribute) GetReadonly() *bool { + if r == nil { return nil } - return o.Readonly + return r.Readonly } -func (o *RelationAttribute) GetDeprecated() *bool { - if o == nil { +func (r *RelationAttribute) GetDeprecated() *bool { + if r == nil { return nil } - return o.Deprecated + return r.Deprecated } -func (o *RelationAttribute) GetDefaultValue() any { - if o == nil { +func (r *RelationAttribute) GetDefaultValue() any { + if r == nil { return nil } - return o.DefaultValue + return r.DefaultValue } -func (o *RelationAttribute) GetGroup() *string { - if o == nil { +func (r *RelationAttribute) GetGroup() *string { + if r == nil { return nil } - return o.Group + return r.Group } -func (o *RelationAttribute) GetOrder() *int64 { - if o == nil { +func (r *RelationAttribute) GetOrder() *int64 { + if r == nil { return nil } - return o.Order + return r.Order } -func (o *RelationAttribute) GetLayout() *string { - if o == nil { +func (r *RelationAttribute) GetLayout() *string { + if r == nil { return nil } - return o.Layout + return r.Layout } -func (o *RelationAttribute) GetHideLabel() *bool { - if o == nil { +func (r *RelationAttribute) GetHideLabel() *bool { + if r == nil { return nil } - return o.HideLabel + return r.HideLabel } -func (o *RelationAttribute) GetIcon() *string { - if o == nil { +func (r *RelationAttribute) GetIcon() *string { + if r == nil { return nil } - return o.Icon + return r.Icon } -func (o *RelationAttribute) GetRenderCondition() *string { - if o == nil { +func (r *RelationAttribute) GetRenderCondition() *string { + if r == nil { return nil } - return o.RenderCondition + return r.RenderCondition } -func (o *RelationAttribute) GetPurpose() []string { - if o == nil { +func (r *RelationAttribute) GetPurpose() []string { + if r == nil { return nil } - return o.Purpose + return r.Purpose } -func (o *RelationAttribute) GetManifest() []string { - if o == nil { +func (r *RelationAttribute) GetManifest() []string { + if r == nil { return nil } - return o.Manifest + return r.Manifest } -func (o *RelationAttribute) GetConstraints() *RelationAttributeConstraints { - if o == nil { +func (r *RelationAttribute) GetConstraints() *RelationAttributeConstraints { + if r == nil { return nil } - return o.Constraints + return r.Constraints } -func (o *RelationAttribute) GetFeatureFlag() *string { - if o == nil { +func (r *RelationAttribute) GetFeatureFlag() *string { + if r == nil { return nil } - return o.FeatureFlag + return r.FeatureFlag } -func (o *RelationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (r *RelationAttribute) GetSettingsFlag() []SettingFlag { + if r == nil { return nil } - return o.SettingsFlag + return r.SettingsFlag } -func (o *RelationAttribute) GetValueFormatter() *string { - if o == nil { +func (r *RelationAttribute) GetValueFormatter() *string { + if r == nil { return nil } - return o.ValueFormatter + return r.ValueFormatter } -func (o *RelationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (r *RelationAttribute) GetPreviewValueFormatter() *string { + if r == nil { return nil } - return o.PreviewValueFormatter + return r.PreviewValueFormatter } -func (o *RelationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (r *RelationAttribute) GetEntityBuilderDisableEdit() *bool { + if r == nil { return nil } - return o.EntityBuilderDisableEdit + return r.EntityBuilderDisableEdit } -func (o *RelationAttribute) GetProtected() *bool { - if o == nil { +func (r *RelationAttribute) GetProtected() *bool { + if r == nil { return nil } - return o.Protected + return r.Protected } -func (o *RelationAttribute) GetInfoHelpers() *RelationAttributeInfoHelpers { - if o == nil { +func (r *RelationAttribute) GetInfoHelpers() *RelationAttributeInfoHelpers { + if r == nil { return nil } - return o.InfoHelpers + return r.InfoHelpers } -func (o *RelationAttribute) GetRepeatable() *bool { - if o == nil { +func (r *RelationAttribute) GetRepeatable() *bool { + if r == nil { return nil } - return o.Repeatable + return r.Repeatable } -func (o *RelationAttribute) GetHasPrimary() *bool { - if o == nil { +func (r *RelationAttribute) GetHasPrimary() *bool { + if r == nil { return nil } - return o.HasPrimary + return r.HasPrimary } -func (o *RelationAttribute) GetType() RelationAttributeType { - if o == nil { +func (r *RelationAttribute) GetType() RelationAttributeType { + if r == nil { return RelationAttributeType("") } - return o.Type + return r.Type } -func (o *RelationAttribute) GetRelationType() *RelationType { - if o == nil { +func (r *RelationAttribute) GetRelationType() *RelationType { + if r == nil { return nil } - return o.RelationType + return r.RelationType } -func (o *RelationAttribute) GetReverseAttributes() map[string]string { - if o == nil { +func (r *RelationAttribute) GetReverseAttributes() map[string]string { + if r == nil { return nil } - return o.ReverseAttributes + return r.ReverseAttributes } -func (o *RelationAttribute) GetRelationAffinityMode() *RelationAffinityMode { - if o == nil { +func (r *RelationAttribute) GetRelationAffinityMode() *RelationAffinityMode { + if r == nil { return nil } - return o.RelationAffinityMode + return r.RelationAffinityMode } -func (o *RelationAttribute) GetEnableRelationPicker() *bool { - if o == nil { +func (r *RelationAttribute) GetEnableRelationPicker() *bool { + if r == nil { return nil } - return o.EnableRelationPicker + return r.EnableRelationPicker } -func (o *RelationAttribute) GetEditMode() *EditMode { - if o == nil { +func (r *RelationAttribute) GetEditMode() *EditMode { + if r == nil { return nil } - return o.EditMode + return r.EditMode } -func (o *RelationAttribute) GetDetailsViewModeEnabled() *bool { - if o == nil { +func (r *RelationAttribute) GetDetailsViewModeEnabled() *bool { + if r == nil { return nil } - return o.DetailsViewModeEnabled + return r.DetailsViewModeEnabled } -func (o *RelationAttribute) GetRelationPickerFilter() *RelationPickerFilter { - if o == nil { +func (r *RelationAttribute) GetRelationPickerFilter() *RelationPickerFilter { + if r == nil { return nil } - return o.RelationPickerFilter + return r.RelationPickerFilter } -func (o *RelationAttribute) GetActions() []Actions { - if o == nil { +func (r *RelationAttribute) GetActions() []Actions { + if r == nil { return nil } - return o.Actions + return r.Actions } -func (o *RelationAttribute) GetDrawerSize() *DrawerSize { - if o == nil { +func (r *RelationAttribute) GetDrawerSize() *DrawerSize { + if r == nil { return nil } - return o.DrawerSize + return r.DrawerSize } -func (o *RelationAttribute) GetSummaryFields() []SummaryFields { - if o == nil { +func (r *RelationAttribute) GetSummaryFields() []SummaryFields { + if r == nil { return nil } - return o.SummaryFields + return r.SummaryFields } -func (o *RelationAttribute) GetAllowedSchemas() []string { - if o == nil { +func (r *RelationAttribute) GetAllowedSchemas() []string { + if r == nil { return nil } - return o.AllowedSchemas + return r.AllowedSchemas } -func (o *RelationAttribute) GetEnableRelationTags() *bool { - if o == nil { +func (r *RelationAttribute) GetEnableRelationTags() *bool { + if r == nil { return nil } - return o.EnableRelationTags + return r.EnableRelationTags } -func (o *RelationAttribute) GetAddButtonLabel() *string { - if o == nil { +func (r *RelationAttribute) GetAddButtonLabel() *string { + if r == nil { return nil } - return o.AddButtonLabel + return r.AddButtonLabel } -func (o *RelationAttribute) GetSearchPlaceholder() *string { - if o == nil { +func (r *RelationAttribute) GetSearchPlaceholder() *string { + if r == nil { return nil } - return o.SearchPlaceholder + return r.SearchPlaceholder } diff --git a/internal/sdk/models/shared/relationentity.go b/internal/sdk/models/shared/relationentity.go index 33d51ca2..78123326 100644 --- a/internal/sdk/models/shared/relationentity.go +++ b/internal/sdk/models/shared/relationentity.go @@ -26,32 +26,32 @@ func (r *RelationEntityACL) UnmarshalJSON(data []byte) error { return nil } -func (o *RelationEntityACL) GetView() []string { - if o == nil { +func (r *RelationEntityACL) GetView() []string { + if r == nil { return nil } - return o.View + return r.View } -func (o *RelationEntityACL) GetEdit() []string { - if o == nil { +func (r *RelationEntityACL) GetEdit() []string { + if r == nil { return nil } - return o.Edit + return r.Edit } -func (o *RelationEntityACL) GetDelete() []string { - if o == nil { +func (r *RelationEntityACL) GetDelete() []string { + if r == nil { return nil } - return o.Delete + return r.Delete } -func (o *RelationEntityACL) GetAdditionalProperties() any { - if o == nil { +func (r *RelationEntityACL) GetAdditionalProperties() any { + if r == nil { return nil } - return o.AdditionalProperties + return r.AdditionalProperties } type RelationEntity struct { @@ -80,106 +80,106 @@ func (r RelationEntity) MarshalJSON() ([]byte, error) { } func (r *RelationEntity) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, []string{"_id", "_org", "_schema", "_title", "_created_at", "_updated_at"}); err != nil { + if err := utils.UnmarshalJSON(data, &r, "", false, []string{"_id", "_org", "_schema"}); err != nil { return err } return nil } -func (o *RelationEntity) GetID() string { - if o == nil { +func (r *RelationEntity) GetID() string { + if r == nil { return "" } - return o.ID + return r.ID } -func (o *RelationEntity) GetOrg() string { - if o == nil { +func (r *RelationEntity) GetOrg() string { + if r == nil { return "" } - return o.Org + return r.Org } -func (o *RelationEntity) GetOwners() []EntityOwner { - if o == nil { +func (r *RelationEntity) GetOwners() []EntityOwner { + if r == nil { return nil } - return o.Owners + return r.Owners } -func (o *RelationEntity) GetSchema() string { - if o == nil { +func (r *RelationEntity) GetSchema() string { + if r == nil { return "" } - return o.Schema + return r.Schema } -func (o *RelationEntity) GetTitle() *string { - if o == nil { +func (r *RelationEntity) GetTitle() *string { + if r == nil { return nil } - return o.Title + return r.Title } -func (o *RelationEntity) GetTags() []string { - if o == nil { +func (r *RelationEntity) GetTags() []string { + if r == nil { return nil } - return o.Tags + return r.Tags } -func (o *RelationEntity) GetCreatedAt() *time.Time { - if o == nil { +func (r *RelationEntity) GetCreatedAt() *time.Time { + if r == nil { return nil } - return o.CreatedAt + return r.CreatedAt } -func (o *RelationEntity) GetUpdatedAt() *time.Time { - if o == nil { +func (r *RelationEntity) GetUpdatedAt() *time.Time { + if r == nil { return nil } - return o.UpdatedAt + return r.UpdatedAt } -func (o *RelationEntity) GetDeletedAt() *time.Time { - if o == nil { +func (r *RelationEntity) GetDeletedAt() *time.Time { + if r == nil { return nil } - return o.DeletedAt + return r.DeletedAt } -func (o *RelationEntity) GetACL() *RelationEntityACL { - if o == nil { +func (r *RelationEntity) GetACL() *RelationEntityACL { + if r == nil { return nil } - return o.ACL + return r.ACL } -func (o *RelationEntity) GetPurpose() []string { - if o == nil { +func (r *RelationEntity) GetPurpose() []string { + if r == nil { return nil } - return o.Purpose + return r.Purpose } -func (o *RelationEntity) GetManifest() []string { - if o == nil { +func (r *RelationEntity) GetManifest() []string { + if r == nil { return nil } - return o.Manifest + return r.Manifest } -func (o *RelationEntity) GetDollarRelation() *RelationItem { - if o == nil { +func (r *RelationEntity) GetDollarRelation() *RelationItem { + if r == nil { return nil } - return o.DollarRelation + return r.DollarRelation } -func (o *RelationEntity) GetAdditionalProperties() any { - if o == nil { +func (r *RelationEntity) GetAdditionalProperties() any { + if r == nil { return nil } - return o.AdditionalProperties + return r.AdditionalProperties } diff --git a/internal/sdk/models/shared/relationitem.go b/internal/sdk/models/shared/relationitem.go index 77e44522..23623f0e 100644 --- a/internal/sdk/models/shared/relationitem.go +++ b/internal/sdk/models/shared/relationitem.go @@ -9,7 +9,9 @@ import ( type RelationItem struct { EntityID string `json:"entity_id"` // Organization Id the entity belongs to - OrgID *string `json:"org_id,omitempty"` + OrgID *string `json:"org_id,omitempty"` + // URL-friendly identifier for the entity schema + Schema *string `json:"_schema,omitempty"` Attribute string `json:"attribute"` Tags []string `json:"_tags,omitempty"` // Whether this is a reverse relation @@ -27,37 +29,44 @@ func (r *RelationItem) UnmarshalJSON(data []byte) error { return nil } -func (o *RelationItem) GetEntityID() string { - if o == nil { +func (r *RelationItem) GetEntityID() string { + if r == nil { return "" } - return o.EntityID + return r.EntityID } -func (o *RelationItem) GetOrgID() *string { - if o == nil { +func (r *RelationItem) GetOrgID() *string { + if r == nil { return nil } - return o.OrgID + return r.OrgID } -func (o *RelationItem) GetAttribute() string { - if o == nil { +func (r *RelationItem) GetSchema() *string { + if r == nil { + return nil + } + return r.Schema +} + +func (r *RelationItem) GetAttribute() string { + if r == nil { return "" } - return o.Attribute + return r.Attribute } -func (o *RelationItem) GetTags() []string { - if o == nil { +func (r *RelationItem) GetTags() []string { + if r == nil { return nil } - return o.Tags + return r.Tags } -func (o *RelationItem) GetReverse() *bool { - if o == nil { +func (r *RelationItem) GetReverse() *bool { + if r == nil { return nil } - return o.Reverse + return r.Reverse } diff --git a/internal/sdk/models/shared/savedview.go b/internal/sdk/models/shared/savedview.go index 3b6da80e..e63337bd 100644 --- a/internal/sdk/models/shared/savedview.go +++ b/internal/sdk/models/shared/savedview.go @@ -52,18 +52,18 @@ func (c *CreatedBy2) UnmarshalJSON(data []byte) error { return nil } -func (o *CreatedBy2) GetSource() *Source { - if o == nil { +func (c *CreatedBy2) GetSource() *Source { + if c == nil { return nil } - return o.Source + return c.Source } -func (o *CreatedBy2) GetAdditionalProperties() any { - if o == nil { +func (c *CreatedBy2) GetAdditionalProperties() any { + if c == nil { return nil } - return o.AdditionalProperties + return c.AdditionalProperties } // CreatedBy1 - A user that created the view @@ -82,11 +82,11 @@ func (c *CreatedBy1) UnmarshalJSON(data []byte) error { return nil } -func (o *CreatedBy1) GetUserID() *string { - if o == nil { +func (c *CreatedBy1) GetUserID() *string { + if c == nil { return nil } - return o.UserID + return c.UserID } type CreatedByType string @@ -97,8 +97,8 @@ const ( ) type CreatedBy struct { - CreatedBy1 *CreatedBy1 `queryParam:"inline" name:"created_by"` - CreatedBy2 *CreatedBy2 `queryParam:"inline" name:"created_by"` + CreatedBy1 *CreatedBy1 `queryParam:"inline,name=created_by"` + CreatedBy2 *CreatedBy2 `queryParam:"inline,name=created_by"` Type CreatedByType } @@ -123,17 +123,43 @@ func CreateCreatedByCreatedBy2(createdBy2 CreatedBy2) CreatedBy { func (u *CreatedBy) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var createdBy1 CreatedBy1 = CreatedBy1{} if err := utils.UnmarshalJSON(data, &createdBy1, "", true, nil); err == nil { - u.CreatedBy1 = &createdBy1 - u.Type = CreatedByTypeCreatedBy1 - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: CreatedByTypeCreatedBy1, + Value: &createdBy1, + }) } var createdBy2 CreatedBy2 = CreatedBy2{} if err := utils.UnmarshalJSON(data, &createdBy2, "", true, nil); err == nil { - u.CreatedBy2 = &createdBy2 - u.Type = CreatedByTypeCreatedBy2 + candidates = append(candidates, utils.UnionCandidate{ + Type: CreatedByTypeCreatedBy2, + Value: &createdBy2, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreatedBy", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreatedBy", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(CreatedByType) + switch best.Type { + case CreatedByTypeCreatedBy1: + u.CreatedBy1 = best.Value.(*CreatedBy1) + return nil + case CreatedByTypeCreatedBy2: + u.CreatedBy2 = best.Value.(*CreatedBy2) return nil } @@ -170,58 +196,58 @@ type SavedView struct { SharedWith []string `json:"shared_with,omitempty"` } -func (o *SavedView) GetSlug() []string { - if o == nil { +func (s *SavedView) GetSlug() []string { + if s == nil { return []string{} } - return o.Slug + return s.Slug } -func (o *SavedView) GetName() string { - if o == nil { +func (s *SavedView) GetName() string { + if s == nil { return "" } - return o.Name + return s.Name } -func (o *SavedView) GetOrg() *string { - if o == nil { +func (s *SavedView) GetOrg() *string { + if s == nil { return nil } - return o.Org + return s.Org } -func (o *SavedView) GetShared() *bool { - if o == nil { +func (s *SavedView) GetShared() *bool { + if s == nil { return nil } - return o.Shared + return s.Shared } -func (o *SavedView) GetIsFavoritedBy() []string { - if o == nil { +func (s *SavedView) GetIsFavoritedBy() []string { + if s == nil { return nil } - return o.IsFavoritedBy + return s.IsFavoritedBy } -func (o *SavedView) GetCreatedBy() *CreatedBy { - if o == nil { +func (s *SavedView) GetCreatedBy() *CreatedBy { + if s == nil { return nil } - return o.CreatedBy + return s.CreatedBy } -func (o *SavedView) GetUIConfig() map[string]any { - if o == nil { +func (s *SavedView) GetUIConfig() map[string]any { + if s == nil { return map[string]any{} } - return o.UIConfig + return s.UIConfig } -func (o *SavedView) GetSharedWith() []string { - if o == nil { +func (s *SavedView) GetSharedWith() []string { + if s == nil { return nil } - return o.SharedWith + return s.SharedWith } diff --git a/internal/sdk/models/shared/savedviewpartial.go b/internal/sdk/models/shared/savedviewpartial.go index 89ee2f1f..817e6126 100644 --- a/internal/sdk/models/shared/savedviewpartial.go +++ b/internal/sdk/models/shared/savedviewpartial.go @@ -52,18 +52,18 @@ func (s *SavedViewPartialCreatedBy2) UnmarshalJSON(data []byte) error { return nil } -func (o *SavedViewPartialCreatedBy2) GetSource() *CreatedBySource { - if o == nil { +func (s *SavedViewPartialCreatedBy2) GetSource() *CreatedBySource { + if s == nil { return nil } - return o.Source + return s.Source } -func (o *SavedViewPartialCreatedBy2) GetAdditionalProperties() any { - if o == nil { +func (s *SavedViewPartialCreatedBy2) GetAdditionalProperties() any { + if s == nil { return nil } - return o.AdditionalProperties + return s.AdditionalProperties } // SavedViewPartialCreatedBy1 - A user that created the view @@ -82,11 +82,11 @@ func (s *SavedViewPartialCreatedBy1) UnmarshalJSON(data []byte) error { return nil } -func (o *SavedViewPartialCreatedBy1) GetUserID() *string { - if o == nil { +func (s *SavedViewPartialCreatedBy1) GetUserID() *string { + if s == nil { return nil } - return o.UserID + return s.UserID } type SavedViewPartialCreatedByType string @@ -97,8 +97,8 @@ const ( ) type SavedViewPartialCreatedBy struct { - SavedViewPartialCreatedBy1 *SavedViewPartialCreatedBy1 `queryParam:"inline" name:"created_by"` - SavedViewPartialCreatedBy2 *SavedViewPartialCreatedBy2 `queryParam:"inline" name:"created_by"` + SavedViewPartialCreatedBy1 *SavedViewPartialCreatedBy1 `queryParam:"inline,name=created_by"` + SavedViewPartialCreatedBy2 *SavedViewPartialCreatedBy2 `queryParam:"inline,name=created_by"` Type SavedViewPartialCreatedByType } @@ -123,17 +123,43 @@ func CreateSavedViewPartialCreatedBySavedViewPartialCreatedBy2(savedViewPartialC func (u *SavedViewPartialCreatedBy) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var savedViewPartialCreatedBy1 SavedViewPartialCreatedBy1 = SavedViewPartialCreatedBy1{} if err := utils.UnmarshalJSON(data, &savedViewPartialCreatedBy1, "", true, nil); err == nil { - u.SavedViewPartialCreatedBy1 = &savedViewPartialCreatedBy1 - u.Type = SavedViewPartialCreatedByTypeSavedViewPartialCreatedBy1 - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: SavedViewPartialCreatedByTypeSavedViewPartialCreatedBy1, + Value: &savedViewPartialCreatedBy1, + }) } var savedViewPartialCreatedBy2 SavedViewPartialCreatedBy2 = SavedViewPartialCreatedBy2{} if err := utils.UnmarshalJSON(data, &savedViewPartialCreatedBy2, "", true, nil); err == nil { - u.SavedViewPartialCreatedBy2 = &savedViewPartialCreatedBy2 - u.Type = SavedViewPartialCreatedByTypeSavedViewPartialCreatedBy2 + candidates = append(candidates, utils.UnionCandidate{ + Type: SavedViewPartialCreatedByTypeSavedViewPartialCreatedBy2, + Value: &savedViewPartialCreatedBy2, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SavedViewPartialCreatedBy", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SavedViewPartialCreatedBy", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(SavedViewPartialCreatedByType) + switch best.Type { + case SavedViewPartialCreatedByTypeSavedViewPartialCreatedBy1: + u.SavedViewPartialCreatedBy1 = best.Value.(*SavedViewPartialCreatedBy1) + return nil + case SavedViewPartialCreatedByTypeSavedViewPartialCreatedBy2: + u.SavedViewPartialCreatedBy2 = best.Value.(*SavedViewPartialCreatedBy2) return nil } @@ -170,58 +196,58 @@ type SavedViewPartial struct { SharedWith []string `json:"shared_with,omitempty"` } -func (o *SavedViewPartial) GetSlug() []string { - if o == nil { +func (s *SavedViewPartial) GetSlug() []string { + if s == nil { return nil } - return o.Slug + return s.Slug } -func (o *SavedViewPartial) GetName() *string { - if o == nil { +func (s *SavedViewPartial) GetName() *string { + if s == nil { return nil } - return o.Name + return s.Name } -func (o *SavedViewPartial) GetOrg() *string { - if o == nil { +func (s *SavedViewPartial) GetOrg() *string { + if s == nil { return nil } - return o.Org + return s.Org } -func (o *SavedViewPartial) GetShared() *bool { - if o == nil { +func (s *SavedViewPartial) GetShared() *bool { + if s == nil { return nil } - return o.Shared + return s.Shared } -func (o *SavedViewPartial) GetIsFavoritedBy() []string { - if o == nil { +func (s *SavedViewPartial) GetIsFavoritedBy() []string { + if s == nil { return nil } - return o.IsFavoritedBy + return s.IsFavoritedBy } -func (o *SavedViewPartial) GetCreatedBy() *SavedViewPartialCreatedBy { - if o == nil { +func (s *SavedViewPartial) GetCreatedBy() *SavedViewPartialCreatedBy { + if s == nil { return nil } - return o.CreatedBy + return s.CreatedBy } -func (o *SavedViewPartial) GetUIConfig() map[string]any { - if o == nil { +func (s *SavedViewPartial) GetUIConfig() map[string]any { + if s == nil { return nil } - return o.UIConfig + return s.UIConfig } -func (o *SavedViewPartial) GetSharedWith() []string { - if o == nil { +func (s *SavedViewPartial) GetSharedWith() []string { + if s == nil { return nil } - return o.SharedWith + return s.SharedWith } diff --git a/internal/sdk/models/shared/searchfilter.go b/internal/sdk/models/shared/searchfilter.go index 109e79cc..3ee4353d 100644 --- a/internal/sdk/models/shared/searchfilter.go +++ b/internal/sdk/models/shared/searchfilter.go @@ -14,11 +14,11 @@ type Ids struct { Values []string `json:"values,omitempty"` } -func (o *Ids) GetValues() []string { - if o == nil { +func (i *Ids) GetValues() []string { + if i == nil { return nil } - return o.Values + return i.Values } // Relation - Indicates how the range query matches values for range fields. @@ -68,53 +68,53 @@ type Range struct { TimeZone *string `json:"time_zone,omitempty"` } -func (o *Range) GetGt() *SearchFilterValue { - if o == nil { +func (r *Range) GetGt() *SearchFilterValue { + if r == nil { return nil } - return o.Gt + return r.Gt } -func (o *Range) GetGte() *SearchFilterValue { - if o == nil { +func (r *Range) GetGte() *SearchFilterValue { + if r == nil { return nil } - return o.Gte + return r.Gte } -func (o *Range) GetLt() *SearchFilterValue { - if o == nil { +func (r *Range) GetLt() *SearchFilterValue { + if r == nil { return nil } - return o.Lt + return r.Lt } -func (o *Range) GetLte() *SearchFilterValue { - if o == nil { +func (r *Range) GetLte() *SearchFilterValue { + if r == nil { return nil } - return o.Lte + return r.Lte } -func (o *Range) GetFormat() *string { - if o == nil { +func (r *Range) GetFormat() *string { + if r == nil { return nil } - return o.Format + return r.Format } -func (o *Range) GetRelation() *Relation { - if o == nil { +func (r *Range) GetRelation() *Relation { + if r == nil { return nil } - return o.Relation + return r.Relation } -func (o *Range) GetTimeZone() *string { - if o == nil { +func (r *Range) GetTimeZone() *string { + if r == nil { return nil } - return o.TimeZone + return r.TimeZone } // Exists - Returns documents that have a value in the specified field. @@ -124,11 +124,11 @@ type Exists struct { Field string `json:"field"` } -func (o *Exists) GetField() string { - if o == nil { +func (e *Exists) GetField() string { + if e == nil { return "" } - return o.Field + return e.Field } type SearchFilter struct { @@ -155,58 +155,58 @@ type SearchFilter struct { DollarNot []SearchFilter `json:"$not,omitempty"` } -func (o *SearchFilter) GetTerm() map[string]*SearchFilterValue { - if o == nil { +func (s *SearchFilter) GetTerm() map[string]*SearchFilterValue { + if s == nil { return nil } - return o.Term + return s.Term } -func (o *SearchFilter) GetTerms() map[string][]*SearchFilterValue { - if o == nil { +func (s *SearchFilter) GetTerms() map[string][]*SearchFilterValue { + if s == nil { return nil } - return o.Terms + return s.Terms } -func (o *SearchFilter) GetIds() *Ids { - if o == nil { +func (s *SearchFilter) GetIds() *Ids { + if s == nil { return nil } - return o.Ids + return s.Ids } -func (o *SearchFilter) GetRange() map[string]Range { - if o == nil { +func (s *SearchFilter) GetRange() map[string]Range { + if s == nil { return nil } - return o.Range + return s.Range } -func (o *SearchFilter) GetExists() *Exists { - if o == nil { +func (s *SearchFilter) GetExists() *Exists { + if s == nil { return nil } - return o.Exists + return s.Exists } -func (o *SearchFilter) GetDollarAnd() []SearchFilter { - if o == nil { +func (s *SearchFilter) GetDollarAnd() []SearchFilter { + if s == nil { return nil } - return o.DollarAnd + return s.DollarAnd } -func (o *SearchFilter) GetDollarOr() []SearchFilter { - if o == nil { +func (s *SearchFilter) GetDollarOr() []SearchFilter { + if s == nil { return nil } - return o.DollarOr + return s.DollarOr } -func (o *SearchFilter) GetDollarNot() []SearchFilter { - if o == nil { +func (s *SearchFilter) GetDollarNot() []SearchFilter { + if s == nil { return nil } - return o.DollarNot + return s.DollarNot } diff --git a/internal/sdk/models/shared/searchfiltervalue.go b/internal/sdk/models/shared/searchfiltervalue.go index 89f12f4a..c3e7ccec 100644 --- a/internal/sdk/models/shared/searchfiltervalue.go +++ b/internal/sdk/models/shared/searchfiltervalue.go @@ -18,9 +18,9 @@ const ( // SearchFilterValue - A filter field value. type SearchFilterValue struct { - Str *string `queryParam:"inline" name:"SearchFilterValue"` - Number *float64 `queryParam:"inline" name:"SearchFilterValue"` - Boolean *bool `queryParam:"inline" name:"SearchFilterValue"` + Str *string `queryParam:"inline,name=SearchFilterValue"` + Number *float64 `queryParam:"inline,name=SearchFilterValue"` + Boolean *bool `queryParam:"inline,name=SearchFilterValue"` Type SearchFilterValueType } @@ -54,24 +54,54 @@ func CreateSearchFilterValueBoolean(boolean bool) SearchFilterValue { func (u *SearchFilterValue) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = SearchFilterValueTypeStr - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: SearchFilterValueTypeStr, + Value: &str, + }) } var number float64 = float64(0) if err := utils.UnmarshalJSON(data, &number, "", true, nil); err == nil { - u.Number = &number - u.Type = SearchFilterValueTypeNumber - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: SearchFilterValueTypeNumber, + Value: &number, + }) } var boolean bool = false if err := utils.UnmarshalJSON(data, &boolean, "", true, nil); err == nil { - u.Boolean = &boolean - u.Type = SearchFilterValueTypeBoolean + candidates = append(candidates, utils.UnionCandidate{ + Type: SearchFilterValueTypeBoolean, + Value: &boolean, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SearchFilterValue", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for SearchFilterValue", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(SearchFilterValueType) + switch best.Type { + case SearchFilterValueTypeStr: + u.Str = best.Value.(*string) + return nil + case SearchFilterValueTypeNumber: + u.Number = best.Value.(*float64) + return nil + case SearchFilterValueTypeBoolean: + u.Boolean = best.Value.(*bool) return nil } diff --git a/internal/sdk/models/shared/searchmappings.go b/internal/sdk/models/shared/searchmappings.go index 32ad2f7a..e7dcfbb6 100644 --- a/internal/sdk/models/shared/searchmappings.go +++ b/internal/sdk/models/shared/searchmappings.go @@ -72,23 +72,23 @@ func (s *SearchMappings) UnmarshalJSON(data []byte) error { return nil } -func (o *SearchMappings) GetIndex() *bool { - if o == nil { +func (s *SearchMappings) GetIndex() *bool { + if s == nil { return nil } - return o.Index + return s.Index } -func (o *SearchMappings) GetType() *Type { - if o == nil { +func (s *SearchMappings) GetType() *Type { + if s == nil { return nil } - return o.Type + return s.Type } -func (o *SearchMappings) GetFields() map[string]any { - if o == nil { +func (s *SearchMappings) GetFields() map[string]any { + if s == nil { return nil } - return o.Fields + return s.Fields } diff --git a/internal/sdk/models/shared/security.go b/internal/sdk/models/shared/security.go index 8b4480d9..d393ff12 100644 --- a/internal/sdk/models/shared/security.go +++ b/internal/sdk/models/shared/security.go @@ -7,16 +7,16 @@ type Security struct { EpilotOrg *string `security:"scheme,type=apiKey,subtype=header,name=x-epilot-org-id"` } -func (o *Security) GetEpilotAuth() *string { - if o == nil { +func (s *Security) GetEpilotAuth() *string { + if s == nil { return nil } - return o.EpilotAuth + return s.EpilotAuth } -func (o *Security) GetEpilotOrg() *string { - if o == nil { +func (s *Security) GetEpilotOrg() *string { + if s == nil { return nil } - return o.EpilotOrg + return s.EpilotOrg } diff --git a/internal/sdk/models/shared/selectattribute.go b/internal/sdk/models/shared/selectattribute.go index 5eabc1ff..04dd0d06 100644 --- a/internal/sdk/models/shared/selectattribute.go +++ b/internal/sdk/models/shared/selectattribute.go @@ -56,32 +56,32 @@ func (s *SelectAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *SelectAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (s *SelectAttributeInfoHelpers) GetHintText() *string { + if s == nil { return nil } - return o.HintText + return s.HintText } -func (o *SelectAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (s *SelectAttributeInfoHelpers) GetHintTextKey() *string { + if s == nil { return nil } - return o.HintTextKey + return s.HintTextKey } -func (o *SelectAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (s *SelectAttributeInfoHelpers) GetHintCustomComponent() *string { + if s == nil { return nil } - return o.HintCustomComponent + return s.HintCustomComponent } -func (o *SelectAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (s *SelectAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if s == nil { return nil } - return o.HintTooltipPlacement + return s.HintTooltipPlacement } type SelectAttributeType string @@ -182,226 +182,226 @@ func (s *SelectAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *SelectAttribute) GetID() *string { - if o == nil { +func (s *SelectAttribute) GetID() *string { + if s == nil { return nil } - return o.ID + return s.ID } -func (o *SelectAttribute) GetName() string { - if o == nil { +func (s *SelectAttribute) GetName() string { + if s == nil { return "" } - return o.Name + return s.Name } -func (o *SelectAttribute) GetLabel() string { - if o == nil { +func (s *SelectAttribute) GetLabel() string { + if s == nil { return "" } - return o.Label + return s.Label } -func (o *SelectAttribute) GetPlaceholder() *string { - if o == nil { +func (s *SelectAttribute) GetPlaceholder() *string { + if s == nil { return nil } - return o.Placeholder + return s.Placeholder } -func (o *SelectAttribute) GetHidden() *bool { - if o == nil { +func (s *SelectAttribute) GetHidden() *bool { + if s == nil { return nil } - return o.Hidden + return s.Hidden } -func (o *SelectAttribute) GetShowInTable() *bool { - if o == nil { +func (s *SelectAttribute) GetShowInTable() *bool { + if s == nil { return nil } - return o.ShowInTable + return s.ShowInTable } -func (o *SelectAttribute) GetSortable() *bool { - if o == nil { +func (s *SelectAttribute) GetSortable() *bool { + if s == nil { return nil } - return o.Sortable + return s.Sortable } -func (o *SelectAttribute) GetRequired() *bool { - if o == nil { +func (s *SelectAttribute) GetRequired() *bool { + if s == nil { return nil } - return o.Required + return s.Required } -func (o *SelectAttribute) GetReadonly() *bool { - if o == nil { +func (s *SelectAttribute) GetReadonly() *bool { + if s == nil { return nil } - return o.Readonly + return s.Readonly } -func (o *SelectAttribute) GetDeprecated() *bool { - if o == nil { +func (s *SelectAttribute) GetDeprecated() *bool { + if s == nil { return nil } - return o.Deprecated + return s.Deprecated } -func (o *SelectAttribute) GetDefaultValue() any { - if o == nil { +func (s *SelectAttribute) GetDefaultValue() any { + if s == nil { return nil } - return o.DefaultValue + return s.DefaultValue } -func (o *SelectAttribute) GetGroup() *string { - if o == nil { +func (s *SelectAttribute) GetGroup() *string { + if s == nil { return nil } - return o.Group + return s.Group } -func (o *SelectAttribute) GetOrder() *int64 { - if o == nil { +func (s *SelectAttribute) GetOrder() *int64 { + if s == nil { return nil } - return o.Order + return s.Order } -func (o *SelectAttribute) GetLayout() *string { - if o == nil { +func (s *SelectAttribute) GetLayout() *string { + if s == nil { return nil } - return o.Layout + return s.Layout } -func (o *SelectAttribute) GetHideLabel() *bool { - if o == nil { +func (s *SelectAttribute) GetHideLabel() *bool { + if s == nil { return nil } - return o.HideLabel + return s.HideLabel } -func (o *SelectAttribute) GetIcon() *string { - if o == nil { +func (s *SelectAttribute) GetIcon() *string { + if s == nil { return nil } - return o.Icon + return s.Icon } -func (o *SelectAttribute) GetRenderCondition() *string { - if o == nil { +func (s *SelectAttribute) GetRenderCondition() *string { + if s == nil { return nil } - return o.RenderCondition + return s.RenderCondition } -func (o *SelectAttribute) GetPurpose() []string { - if o == nil { +func (s *SelectAttribute) GetPurpose() []string { + if s == nil { return nil } - return o.Purpose + return s.Purpose } -func (o *SelectAttribute) GetManifest() []string { - if o == nil { +func (s *SelectAttribute) GetManifest() []string { + if s == nil { return nil } - return o.Manifest + return s.Manifest } -func (o *SelectAttribute) GetConstraints() *SelectAttributeConstraints { - if o == nil { +func (s *SelectAttribute) GetConstraints() *SelectAttributeConstraints { + if s == nil { return nil } - return o.Constraints + return s.Constraints } -func (o *SelectAttribute) GetFeatureFlag() *string { - if o == nil { +func (s *SelectAttribute) GetFeatureFlag() *string { + if s == nil { return nil } - return o.FeatureFlag + return s.FeatureFlag } -func (o *SelectAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (s *SelectAttribute) GetSettingsFlag() []SettingFlag { + if s == nil { return nil } - return o.SettingsFlag + return s.SettingsFlag } -func (o *SelectAttribute) GetValueFormatter() *string { - if o == nil { +func (s *SelectAttribute) GetValueFormatter() *string { + if s == nil { return nil } - return o.ValueFormatter + return s.ValueFormatter } -func (o *SelectAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (s *SelectAttribute) GetPreviewValueFormatter() *string { + if s == nil { return nil } - return o.PreviewValueFormatter + return s.PreviewValueFormatter } -func (o *SelectAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (s *SelectAttribute) GetEntityBuilderDisableEdit() *bool { + if s == nil { return nil } - return o.EntityBuilderDisableEdit + return s.EntityBuilderDisableEdit } -func (o *SelectAttribute) GetProtected() *bool { - if o == nil { +func (s *SelectAttribute) GetProtected() *bool { + if s == nil { return nil } - return o.Protected + return s.Protected } -func (o *SelectAttribute) GetInfoHelpers() *SelectAttributeInfoHelpers { - if o == nil { +func (s *SelectAttribute) GetInfoHelpers() *SelectAttributeInfoHelpers { + if s == nil { return nil } - return o.InfoHelpers + return s.InfoHelpers } -func (o *SelectAttribute) GetRepeatable() *bool { - if o == nil { +func (s *SelectAttribute) GetRepeatable() *bool { + if s == nil { return nil } - return o.Repeatable + return s.Repeatable } -func (o *SelectAttribute) GetHasPrimary() *bool { - if o == nil { +func (s *SelectAttribute) GetHasPrimary() *bool { + if s == nil { return nil } - return o.HasPrimary + return s.HasPrimary } -func (o *SelectAttribute) GetType() SelectAttributeType { - if o == nil { +func (s *SelectAttribute) GetType() SelectAttributeType { + if s == nil { return SelectAttributeType("") } - return o.Type + return s.Type } -func (o *SelectAttribute) GetOptions() any { - if o == nil { +func (s *SelectAttribute) GetOptions() any { + if s == nil { return nil } - return o.Options + return s.Options } -func (o *SelectAttribute) GetAllowAny() *bool { - if o == nil { +func (s *SelectAttribute) GetAllowAny() *bool { + if s == nil { return nil } - return o.AllowAny + return s.AllowAny } diff --git a/internal/sdk/models/shared/sequenceattribute.go b/internal/sdk/models/shared/sequenceattribute.go index e8ad6140..5783b3ef 100644 --- a/internal/sdk/models/shared/sequenceattribute.go +++ b/internal/sdk/models/shared/sequenceattribute.go @@ -56,32 +56,32 @@ func (s *SequenceAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *SequenceAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (s *SequenceAttributeInfoHelpers) GetHintText() *string { + if s == nil { return nil } - return o.HintText + return s.HintText } -func (o *SequenceAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (s *SequenceAttributeInfoHelpers) GetHintTextKey() *string { + if s == nil { return nil } - return o.HintTextKey + return s.HintTextKey } -func (o *SequenceAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (s *SequenceAttributeInfoHelpers) GetHintCustomComponent() *string { + if s == nil { return nil } - return o.HintCustomComponent + return s.HintCustomComponent } -func (o *SequenceAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (s *SequenceAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if s == nil { return nil } - return o.HintTooltipPlacement + return s.HintTooltipPlacement } type SequenceAttributeType string @@ -179,226 +179,226 @@ func (s *SequenceAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *SequenceAttribute) GetID() *string { - if o == nil { +func (s *SequenceAttribute) GetID() *string { + if s == nil { return nil } - return o.ID + return s.ID } -func (o *SequenceAttribute) GetName() string { - if o == nil { +func (s *SequenceAttribute) GetName() string { + if s == nil { return "" } - return o.Name + return s.Name } -func (o *SequenceAttribute) GetLabel() string { - if o == nil { +func (s *SequenceAttribute) GetLabel() string { + if s == nil { return "" } - return o.Label + return s.Label } -func (o *SequenceAttribute) GetPlaceholder() *string { - if o == nil { +func (s *SequenceAttribute) GetPlaceholder() *string { + if s == nil { return nil } - return o.Placeholder + return s.Placeholder } -func (o *SequenceAttribute) GetHidden() *bool { - if o == nil { +func (s *SequenceAttribute) GetHidden() *bool { + if s == nil { return nil } - return o.Hidden + return s.Hidden } -func (o *SequenceAttribute) GetShowInTable() *bool { - if o == nil { +func (s *SequenceAttribute) GetShowInTable() *bool { + if s == nil { return nil } - return o.ShowInTable + return s.ShowInTable } -func (o *SequenceAttribute) GetSortable() *bool { - if o == nil { +func (s *SequenceAttribute) GetSortable() *bool { + if s == nil { return nil } - return o.Sortable + return s.Sortable } -func (o *SequenceAttribute) GetRequired() *bool { - if o == nil { +func (s *SequenceAttribute) GetRequired() *bool { + if s == nil { return nil } - return o.Required + return s.Required } -func (o *SequenceAttribute) GetReadonly() *bool { - if o == nil { +func (s *SequenceAttribute) GetReadonly() *bool { + if s == nil { return nil } - return o.Readonly + return s.Readonly } -func (o *SequenceAttribute) GetDeprecated() *bool { - if o == nil { +func (s *SequenceAttribute) GetDeprecated() *bool { + if s == nil { return nil } - return o.Deprecated + return s.Deprecated } -func (o *SequenceAttribute) GetDefaultValue() any { - if o == nil { +func (s *SequenceAttribute) GetDefaultValue() any { + if s == nil { return nil } - return o.DefaultValue + return s.DefaultValue } -func (o *SequenceAttribute) GetGroup() *string { - if o == nil { +func (s *SequenceAttribute) GetGroup() *string { + if s == nil { return nil } - return o.Group + return s.Group } -func (o *SequenceAttribute) GetOrder() *int64 { - if o == nil { +func (s *SequenceAttribute) GetOrder() *int64 { + if s == nil { return nil } - return o.Order + return s.Order } -func (o *SequenceAttribute) GetLayout() *string { - if o == nil { +func (s *SequenceAttribute) GetLayout() *string { + if s == nil { return nil } - return o.Layout + return s.Layout } -func (o *SequenceAttribute) GetHideLabel() *bool { - if o == nil { +func (s *SequenceAttribute) GetHideLabel() *bool { + if s == nil { return nil } - return o.HideLabel + return s.HideLabel } -func (o *SequenceAttribute) GetIcon() *string { - if o == nil { +func (s *SequenceAttribute) GetIcon() *string { + if s == nil { return nil } - return o.Icon + return s.Icon } -func (o *SequenceAttribute) GetRenderCondition() *string { - if o == nil { +func (s *SequenceAttribute) GetRenderCondition() *string { + if s == nil { return nil } - return o.RenderCondition + return s.RenderCondition } -func (o *SequenceAttribute) GetPurpose() []string { - if o == nil { +func (s *SequenceAttribute) GetPurpose() []string { + if s == nil { return nil } - return o.Purpose + return s.Purpose } -func (o *SequenceAttribute) GetManifest() []string { - if o == nil { +func (s *SequenceAttribute) GetManifest() []string { + if s == nil { return nil } - return o.Manifest + return s.Manifest } -func (o *SequenceAttribute) GetConstraints() *SequenceAttributeConstraints { - if o == nil { +func (s *SequenceAttribute) GetConstraints() *SequenceAttributeConstraints { + if s == nil { return nil } - return o.Constraints + return s.Constraints } -func (o *SequenceAttribute) GetFeatureFlag() *string { - if o == nil { +func (s *SequenceAttribute) GetFeatureFlag() *string { + if s == nil { return nil } - return o.FeatureFlag + return s.FeatureFlag } -func (o *SequenceAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (s *SequenceAttribute) GetSettingsFlag() []SettingFlag { + if s == nil { return nil } - return o.SettingsFlag + return s.SettingsFlag } -func (o *SequenceAttribute) GetValueFormatter() *string { - if o == nil { +func (s *SequenceAttribute) GetValueFormatter() *string { + if s == nil { return nil } - return o.ValueFormatter + return s.ValueFormatter } -func (o *SequenceAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (s *SequenceAttribute) GetPreviewValueFormatter() *string { + if s == nil { return nil } - return o.PreviewValueFormatter + return s.PreviewValueFormatter } -func (o *SequenceAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (s *SequenceAttribute) GetEntityBuilderDisableEdit() *bool { + if s == nil { return nil } - return o.EntityBuilderDisableEdit + return s.EntityBuilderDisableEdit } -func (o *SequenceAttribute) GetProtected() *bool { - if o == nil { +func (s *SequenceAttribute) GetProtected() *bool { + if s == nil { return nil } - return o.Protected + return s.Protected } -func (o *SequenceAttribute) GetInfoHelpers() *SequenceAttributeInfoHelpers { - if o == nil { +func (s *SequenceAttribute) GetInfoHelpers() *SequenceAttributeInfoHelpers { + if s == nil { return nil } - return o.InfoHelpers + return s.InfoHelpers } -func (o *SequenceAttribute) GetRepeatable() *bool { - if o == nil { +func (s *SequenceAttribute) GetRepeatable() *bool { + if s == nil { return nil } - return o.Repeatable + return s.Repeatable } -func (o *SequenceAttribute) GetHasPrimary() *bool { - if o == nil { +func (s *SequenceAttribute) GetHasPrimary() *bool { + if s == nil { return nil } - return o.HasPrimary + return s.HasPrimary } -func (o *SequenceAttribute) GetType() SequenceAttributeType { - if o == nil { +func (s *SequenceAttribute) GetType() SequenceAttributeType { + if s == nil { return SequenceAttributeType("") } - return o.Type + return s.Type } -func (o *SequenceAttribute) GetPrefix() *string { - if o == nil { +func (s *SequenceAttribute) GetPrefix() *string { + if s == nil { return nil } - return o.Prefix + return s.Prefix } -func (o *SequenceAttribute) GetStartNumber() *int64 { - if o == nil { +func (s *SequenceAttribute) GetStartNumber() *int64 { + if s == nil { return nil } - return o.StartNumber + return s.StartNumber } diff --git a/internal/sdk/models/shared/settingflag.go b/internal/sdk/models/shared/settingflag.go index abc652d0..bebb0f8f 100644 --- a/internal/sdk/models/shared/settingflag.go +++ b/internal/sdk/models/shared/settingflag.go @@ -24,16 +24,16 @@ func (s *SettingFlag) UnmarshalJSON(data []byte) error { return nil } -func (o *SettingFlag) GetName() *string { - if o == nil { +func (s *SettingFlag) GetName() *string { + if s == nil { return nil } - return o.Name + return s.Name } -func (o *SettingFlag) GetEnabled() *bool { - if o == nil { +func (s *SettingFlag) GetEnabled() *bool { + if s == nil { return nil } - return o.Enabled + return s.Enabled } diff --git a/internal/sdk/models/shared/statusattribute.go b/internal/sdk/models/shared/statusattribute.go index 455cc6a5..ab83ae90 100644 --- a/internal/sdk/models/shared/statusattribute.go +++ b/internal/sdk/models/shared/statusattribute.go @@ -57,32 +57,32 @@ func (s *StatusAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *StatusAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (s *StatusAttributeInfoHelpers) GetHintText() *string { + if s == nil { return nil } - return o.HintText + return s.HintText } -func (o *StatusAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (s *StatusAttributeInfoHelpers) GetHintTextKey() *string { + if s == nil { return nil } - return o.HintTextKey + return s.HintTextKey } -func (o *StatusAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (s *StatusAttributeInfoHelpers) GetHintCustomComponent() *string { + if s == nil { return nil } - return o.HintCustomComponent + return s.HintCustomComponent } -func (o *StatusAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (s *StatusAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if s == nil { return nil } - return o.HintTooltipPlacement + return s.HintTooltipPlacement } type StatusAttributeType string @@ -148,8 +148,8 @@ const ( ) type StatusAttributeOptions struct { - Str *string `queryParam:"inline" name:"options"` - Options2 *Options2 `queryParam:"inline" name:"options"` + Str *string `queryParam:"inline,name=options"` + Options2 *Options2 `queryParam:"inline,name=options"` Type StatusAttributeOptionsType } @@ -174,17 +174,43 @@ func CreateStatusAttributeOptionsOptions2(options2 Options2) StatusAttributeOpti func (u *StatusAttributeOptions) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var options2 Options2 = Options2{} if err := utils.UnmarshalJSON(data, &options2, "", true, nil); err == nil { - u.Options2 = &options2 - u.Type = StatusAttributeOptionsTypeOptions2 - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: StatusAttributeOptionsTypeOptions2, + Value: &options2, + }) } var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = StatusAttributeOptionsTypeStr + candidates = append(candidates, utils.UnionCandidate{ + Type: StatusAttributeOptionsTypeStr, + Value: &str, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for StatusAttributeOptions", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for StatusAttributeOptions", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(StatusAttributeOptionsType) + switch best.Type { + case StatusAttributeOptionsTypeOptions2: + u.Options2 = best.Value.(*Options2) + return nil + case StatusAttributeOptionsTypeStr: + u.Str = best.Value.(*string) return nil } @@ -273,219 +299,219 @@ func (s *StatusAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *StatusAttribute) GetID() *string { - if o == nil { +func (s *StatusAttribute) GetID() *string { + if s == nil { return nil } - return o.ID + return s.ID } -func (o *StatusAttribute) GetName() string { - if o == nil { +func (s *StatusAttribute) GetName() string { + if s == nil { return "" } - return o.Name + return s.Name } -func (o *StatusAttribute) GetLabel() string { - if o == nil { +func (s *StatusAttribute) GetLabel() string { + if s == nil { return "" } - return o.Label + return s.Label } -func (o *StatusAttribute) GetPlaceholder() *string { - if o == nil { +func (s *StatusAttribute) GetPlaceholder() *string { + if s == nil { return nil } - return o.Placeholder + return s.Placeholder } -func (o *StatusAttribute) GetHidden() *bool { - if o == nil { +func (s *StatusAttribute) GetHidden() *bool { + if s == nil { return nil } - return o.Hidden + return s.Hidden } -func (o *StatusAttribute) GetShowInTable() *bool { - if o == nil { +func (s *StatusAttribute) GetShowInTable() *bool { + if s == nil { return nil } - return o.ShowInTable + return s.ShowInTable } -func (o *StatusAttribute) GetSortable() *bool { - if o == nil { +func (s *StatusAttribute) GetSortable() *bool { + if s == nil { return nil } - return o.Sortable + return s.Sortable } -func (o *StatusAttribute) GetRequired() *bool { - if o == nil { +func (s *StatusAttribute) GetRequired() *bool { + if s == nil { return nil } - return o.Required + return s.Required } -func (o *StatusAttribute) GetReadonly() *bool { - if o == nil { +func (s *StatusAttribute) GetReadonly() *bool { + if s == nil { return nil } - return o.Readonly + return s.Readonly } -func (o *StatusAttribute) GetDeprecated() *bool { - if o == nil { +func (s *StatusAttribute) GetDeprecated() *bool { + if s == nil { return nil } - return o.Deprecated + return s.Deprecated } -func (o *StatusAttribute) GetDefaultValue() any { - if o == nil { +func (s *StatusAttribute) GetDefaultValue() any { + if s == nil { return nil } - return o.DefaultValue + return s.DefaultValue } -func (o *StatusAttribute) GetGroup() *string { - if o == nil { +func (s *StatusAttribute) GetGroup() *string { + if s == nil { return nil } - return o.Group + return s.Group } -func (o *StatusAttribute) GetOrder() *int64 { - if o == nil { +func (s *StatusAttribute) GetOrder() *int64 { + if s == nil { return nil } - return o.Order + return s.Order } -func (o *StatusAttribute) GetLayout() *string { - if o == nil { +func (s *StatusAttribute) GetLayout() *string { + if s == nil { return nil } - return o.Layout + return s.Layout } -func (o *StatusAttribute) GetHideLabel() *bool { - if o == nil { +func (s *StatusAttribute) GetHideLabel() *bool { + if s == nil { return nil } - return o.HideLabel + return s.HideLabel } -func (o *StatusAttribute) GetIcon() *string { - if o == nil { +func (s *StatusAttribute) GetIcon() *string { + if s == nil { return nil } - return o.Icon + return s.Icon } -func (o *StatusAttribute) GetRenderCondition() *string { - if o == nil { +func (s *StatusAttribute) GetRenderCondition() *string { + if s == nil { return nil } - return o.RenderCondition + return s.RenderCondition } -func (o *StatusAttribute) GetPurpose() []string { - if o == nil { +func (s *StatusAttribute) GetPurpose() []string { + if s == nil { return nil } - return o.Purpose + return s.Purpose } -func (o *StatusAttribute) GetManifest() []string { - if o == nil { +func (s *StatusAttribute) GetManifest() []string { + if s == nil { return nil } - return o.Manifest + return s.Manifest } -func (o *StatusAttribute) GetConstraints() *StatusAttributeConstraints { - if o == nil { +func (s *StatusAttribute) GetConstraints() *StatusAttributeConstraints { + if s == nil { return nil } - return o.Constraints + return s.Constraints } -func (o *StatusAttribute) GetFeatureFlag() *string { - if o == nil { +func (s *StatusAttribute) GetFeatureFlag() *string { + if s == nil { return nil } - return o.FeatureFlag + return s.FeatureFlag } -func (o *StatusAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (s *StatusAttribute) GetSettingsFlag() []SettingFlag { + if s == nil { return nil } - return o.SettingsFlag + return s.SettingsFlag } -func (o *StatusAttribute) GetValueFormatter() *string { - if o == nil { +func (s *StatusAttribute) GetValueFormatter() *string { + if s == nil { return nil } - return o.ValueFormatter + return s.ValueFormatter } -func (o *StatusAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (s *StatusAttribute) GetPreviewValueFormatter() *string { + if s == nil { return nil } - return o.PreviewValueFormatter + return s.PreviewValueFormatter } -func (o *StatusAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (s *StatusAttribute) GetEntityBuilderDisableEdit() *bool { + if s == nil { return nil } - return o.EntityBuilderDisableEdit + return s.EntityBuilderDisableEdit } -func (o *StatusAttribute) GetProtected() *bool { - if o == nil { +func (s *StatusAttribute) GetProtected() *bool { + if s == nil { return nil } - return o.Protected + return s.Protected } -func (o *StatusAttribute) GetInfoHelpers() *StatusAttributeInfoHelpers { - if o == nil { +func (s *StatusAttribute) GetInfoHelpers() *StatusAttributeInfoHelpers { + if s == nil { return nil } - return o.InfoHelpers + return s.InfoHelpers } -func (o *StatusAttribute) GetRepeatable() *bool { - if o == nil { +func (s *StatusAttribute) GetRepeatable() *bool { + if s == nil { return nil } - return o.Repeatable + return s.Repeatable } -func (o *StatusAttribute) GetHasPrimary() *bool { - if o == nil { +func (s *StatusAttribute) GetHasPrimary() *bool { + if s == nil { return nil } - return o.HasPrimary + return s.HasPrimary } -func (o *StatusAttribute) GetType() StatusAttributeType { - if o == nil { +func (s *StatusAttribute) GetType() StatusAttributeType { + if s == nil { return StatusAttributeType("") } - return o.Type + return s.Type } -func (o *StatusAttribute) GetOptions() []*StatusAttributeOptions { - if o == nil { +func (s *StatusAttribute) GetOptions() []*StatusAttributeOptions { + if s == nil { return nil } - return o.Options + return s.Options } diff --git a/internal/sdk/models/shared/summaryattribute.go b/internal/sdk/models/shared/summaryattribute.go index 1682cf17..8a59044c 100644 --- a/internal/sdk/models/shared/summaryattribute.go +++ b/internal/sdk/models/shared/summaryattribute.go @@ -130,86 +130,86 @@ func (s *SummaryAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *SummaryAttribute) GetLabel() string { - if o == nil { +func (s *SummaryAttribute) GetLabel() string { + if s == nil { return "" } - return o.Label + return s.Label } -func (o *SummaryAttribute) GetValue() string { - if o == nil { +func (s *SummaryAttribute) GetValue() string { + if s == nil { return "" } - return o.Value + return s.Value } -func (o *SummaryAttribute) GetShowAsTag() *bool { - if o == nil { +func (s *SummaryAttribute) GetShowAsTag() *bool { + if s == nil { return nil } - return o.ShowAsTag + return s.ShowAsTag } -func (o *SummaryAttribute) GetTagColor() *string { - if o == nil { +func (s *SummaryAttribute) GetTagColor() *string { + if s == nil { return nil } - return o.TagColor + return s.TagColor } -func (o *SummaryAttribute) GetRenderCondition() *string { - if o == nil { +func (s *SummaryAttribute) GetRenderCondition() *string { + if s == nil { return nil } - return o.RenderCondition + return s.RenderCondition } -func (o *SummaryAttribute) GetFeatureFlag() *string { - if o == nil { +func (s *SummaryAttribute) GetFeatureFlag() *string { + if s == nil { return nil } - return o.FeatureFlag + return s.FeatureFlag } -func (o *SummaryAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (s *SummaryAttribute) GetSettingsFlag() []SettingFlag { + if s == nil { return nil } - return o.SettingsFlag + return s.SettingsFlag } -func (o *SummaryAttribute) GetDisplayMode() *DisplayMode { - if o == nil { +func (s *SummaryAttribute) GetDisplayMode() *DisplayMode { + if s == nil { return nil } - return o.DisplayMode + return s.DisplayMode } -func (o *SummaryAttribute) GetContentLineCap() *float64 { - if o == nil { +func (s *SummaryAttribute) GetContentLineCap() *float64 { + if s == nil { return nil } - return o.ContentLineCap + return s.ContentLineCap } -func (o *SummaryAttribute) GetContentWrap() *ContentWrap { - if o == nil { +func (s *SummaryAttribute) GetContentWrap() *ContentWrap { + if s == nil { return nil } - return o.ContentWrap + return s.ContentWrap } -func (o *SummaryAttribute) GetHideLabel() *bool { - if o == nil { +func (s *SummaryAttribute) GetHideLabel() *bool { + if s == nil { return nil } - return o.HideLabel + return s.HideLabel } -func (o *SummaryAttribute) GetHighlightContainer() *bool { - if o == nil { +func (s *SummaryAttribute) GetHighlightContainer() *bool { + if s == nil { return nil } - return o.HighlightContainer + return s.HighlightContainer } diff --git a/internal/sdk/models/shared/summaryfield.go b/internal/sdk/models/shared/summaryfield.go index b04a5c7f..e7fe5302 100644 --- a/internal/sdk/models/shared/summaryfield.go +++ b/internal/sdk/models/shared/summaryfield.go @@ -25,16 +25,16 @@ func (s *SummaryField) UnmarshalJSON(data []byte) error { return nil } -func (o *SummaryField) GetField() *string { - if o == nil { +func (s *SummaryField) GetField() *string { + if s == nil { return nil } - return o.Field + return s.Field } -func (o *SummaryField) GetDisplayAs() *string { - if o == nil { +func (s *SummaryField) GetDisplayAs() *string { + if s == nil { return nil } - return o.DisplayAs + return s.DisplayAs } diff --git a/internal/sdk/models/shared/tagsattribute.go b/internal/sdk/models/shared/tagsattribute.go index d2b1a7bf..f8961c28 100644 --- a/internal/sdk/models/shared/tagsattribute.go +++ b/internal/sdk/models/shared/tagsattribute.go @@ -56,32 +56,32 @@ func (t *TagsAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *TagsAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (t *TagsAttributeInfoHelpers) GetHintText() *string { + if t == nil { return nil } - return o.HintText + return t.HintText } -func (o *TagsAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (t *TagsAttributeInfoHelpers) GetHintTextKey() *string { + if t == nil { return nil } - return o.HintTextKey + return t.HintTextKey } -func (o *TagsAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (t *TagsAttributeInfoHelpers) GetHintCustomComponent() *string { + if t == nil { return nil } - return o.HintCustomComponent + return t.HintCustomComponent } -func (o *TagsAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (t *TagsAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if t == nil { return nil } - return o.HintTooltipPlacement + return t.HintTooltipPlacement } type TagsAttributeType string @@ -178,226 +178,226 @@ func (t *TagsAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *TagsAttribute) GetID() *string { - if o == nil { +func (t *TagsAttribute) GetID() *string { + if t == nil { return nil } - return o.ID + return t.ID } -func (o *TagsAttribute) GetName() string { - if o == nil { +func (t *TagsAttribute) GetName() string { + if t == nil { return "" } - return o.Name + return t.Name } -func (o *TagsAttribute) GetLabel() string { - if o == nil { +func (t *TagsAttribute) GetLabel() string { + if t == nil { return "" } - return o.Label + return t.Label } -func (o *TagsAttribute) GetPlaceholder() *string { - if o == nil { +func (t *TagsAttribute) GetPlaceholder() *string { + if t == nil { return nil } - return o.Placeholder + return t.Placeholder } -func (o *TagsAttribute) GetHidden() *bool { - if o == nil { +func (t *TagsAttribute) GetHidden() *bool { + if t == nil { return nil } - return o.Hidden + return t.Hidden } -func (o *TagsAttribute) GetShowInTable() *bool { - if o == nil { +func (t *TagsAttribute) GetShowInTable() *bool { + if t == nil { return nil } - return o.ShowInTable + return t.ShowInTable } -func (o *TagsAttribute) GetSortable() *bool { - if o == nil { +func (t *TagsAttribute) GetSortable() *bool { + if t == nil { return nil } - return o.Sortable + return t.Sortable } -func (o *TagsAttribute) GetRequired() *bool { - if o == nil { +func (t *TagsAttribute) GetRequired() *bool { + if t == nil { return nil } - return o.Required + return t.Required } -func (o *TagsAttribute) GetReadonly() *bool { - if o == nil { +func (t *TagsAttribute) GetReadonly() *bool { + if t == nil { return nil } - return o.Readonly + return t.Readonly } -func (o *TagsAttribute) GetDeprecated() *bool { - if o == nil { +func (t *TagsAttribute) GetDeprecated() *bool { + if t == nil { return nil } - return o.Deprecated + return t.Deprecated } -func (o *TagsAttribute) GetDefaultValue() any { - if o == nil { +func (t *TagsAttribute) GetDefaultValue() any { + if t == nil { return nil } - return o.DefaultValue + return t.DefaultValue } -func (o *TagsAttribute) GetGroup() *string { - if o == nil { +func (t *TagsAttribute) GetGroup() *string { + if t == nil { return nil } - return o.Group + return t.Group } -func (o *TagsAttribute) GetOrder() *int64 { - if o == nil { +func (t *TagsAttribute) GetOrder() *int64 { + if t == nil { return nil } - return o.Order + return t.Order } -func (o *TagsAttribute) GetLayout() *string { - if o == nil { +func (t *TagsAttribute) GetLayout() *string { + if t == nil { return nil } - return o.Layout + return t.Layout } -func (o *TagsAttribute) GetHideLabel() *bool { - if o == nil { +func (t *TagsAttribute) GetHideLabel() *bool { + if t == nil { return nil } - return o.HideLabel + return t.HideLabel } -func (o *TagsAttribute) GetIcon() *string { - if o == nil { +func (t *TagsAttribute) GetIcon() *string { + if t == nil { return nil } - return o.Icon + return t.Icon } -func (o *TagsAttribute) GetRenderCondition() *string { - if o == nil { +func (t *TagsAttribute) GetRenderCondition() *string { + if t == nil { return nil } - return o.RenderCondition + return t.RenderCondition } -func (o *TagsAttribute) GetPurpose() []string { - if o == nil { +func (t *TagsAttribute) GetPurpose() []string { + if t == nil { return nil } - return o.Purpose + return t.Purpose } -func (o *TagsAttribute) GetManifest() []string { - if o == nil { +func (t *TagsAttribute) GetManifest() []string { + if t == nil { return nil } - return o.Manifest + return t.Manifest } -func (o *TagsAttribute) GetConstraints() *TagsAttributeConstraints { - if o == nil { +func (t *TagsAttribute) GetConstraints() *TagsAttributeConstraints { + if t == nil { return nil } - return o.Constraints + return t.Constraints } -func (o *TagsAttribute) GetFeatureFlag() *string { - if o == nil { +func (t *TagsAttribute) GetFeatureFlag() *string { + if t == nil { return nil } - return o.FeatureFlag + return t.FeatureFlag } -func (o *TagsAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (t *TagsAttribute) GetSettingsFlag() []SettingFlag { + if t == nil { return nil } - return o.SettingsFlag + return t.SettingsFlag } -func (o *TagsAttribute) GetValueFormatter() *string { - if o == nil { +func (t *TagsAttribute) GetValueFormatter() *string { + if t == nil { return nil } - return o.ValueFormatter + return t.ValueFormatter } -func (o *TagsAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (t *TagsAttribute) GetPreviewValueFormatter() *string { + if t == nil { return nil } - return o.PreviewValueFormatter + return t.PreviewValueFormatter } -func (o *TagsAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (t *TagsAttribute) GetEntityBuilderDisableEdit() *bool { + if t == nil { return nil } - return o.EntityBuilderDisableEdit + return t.EntityBuilderDisableEdit } -func (o *TagsAttribute) GetProtected() *bool { - if o == nil { +func (t *TagsAttribute) GetProtected() *bool { + if t == nil { return nil } - return o.Protected + return t.Protected } -func (o *TagsAttribute) GetInfoHelpers() *TagsAttributeInfoHelpers { - if o == nil { +func (t *TagsAttribute) GetInfoHelpers() *TagsAttributeInfoHelpers { + if t == nil { return nil } - return o.InfoHelpers + return t.InfoHelpers } -func (o *TagsAttribute) GetRepeatable() *bool { - if o == nil { +func (t *TagsAttribute) GetRepeatable() *bool { + if t == nil { return nil } - return o.Repeatable + return t.Repeatable } -func (o *TagsAttribute) GetHasPrimary() *bool { - if o == nil { +func (t *TagsAttribute) GetHasPrimary() *bool { + if t == nil { return nil } - return o.HasPrimary + return t.HasPrimary } -func (o *TagsAttribute) GetType() TagsAttributeType { - if o == nil { +func (t *TagsAttribute) GetType() TagsAttributeType { + if t == nil { return TagsAttributeType("") } - return o.Type + return t.Type } -func (o *TagsAttribute) GetOptions() []string { - if o == nil { +func (t *TagsAttribute) GetOptions() []string { + if t == nil { return nil } - return o.Options + return t.Options } -func (o *TagsAttribute) GetSuggestions() []string { - if o == nil { +func (t *TagsAttribute) GetSuggestions() []string { + if t == nil { return nil } - return o.Suggestions + return t.Suggestions } diff --git a/internal/sdk/models/shared/taxonomy.go b/internal/sdk/models/shared/taxonomy.go index 1048cbcb..96ff7f84 100644 --- a/internal/sdk/models/shared/taxonomy.go +++ b/internal/sdk/models/shared/taxonomy.go @@ -72,8 +72,8 @@ const ( ) type EnabledLocations struct { - TaxonomyLocationID *TaxonomyLocationID `queryParam:"inline" name:"enabled_locations"` - Str *string `queryParam:"inline" name:"enabled_locations"` + TaxonomyLocationID *TaxonomyLocationID `queryParam:"inline,name=enabled_locations"` + Str *string `queryParam:"inline,name=enabled_locations"` Type EnabledLocationsType } @@ -98,17 +98,43 @@ func CreateEnabledLocationsStr(str string) EnabledLocations { func (u *EnabledLocations) UnmarshalJSON(data []byte) error { + var candidates []utils.UnionCandidate + + // Collect all valid candidates var taxonomyLocationID TaxonomyLocationID = TaxonomyLocationID("") if err := utils.UnmarshalJSON(data, &taxonomyLocationID, "", true, nil); err == nil { - u.TaxonomyLocationID = &taxonomyLocationID - u.Type = EnabledLocationsTypeTaxonomyLocationID - return nil + candidates = append(candidates, utils.UnionCandidate{ + Type: EnabledLocationsTypeTaxonomyLocationID, + Value: &taxonomyLocationID, + }) } var str string = "" if err := utils.UnmarshalJSON(data, &str, "", true, nil); err == nil { - u.Str = &str - u.Type = EnabledLocationsTypeStr + candidates = append(candidates, utils.UnionCandidate{ + Type: EnabledLocationsTypeStr, + Value: &str, + }) + } + + if len(candidates) == 0 { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for EnabledLocations", string(data)) + } + + // Pick the best candidate using multi-stage filtering + best := utils.PickBestCandidate(candidates) + if best == nil { + return fmt.Errorf("could not unmarshal `%s` into any supported union types for EnabledLocations", string(data)) + } + + // Set the union type and value based on the best candidate + u.Type = best.Type.(EnabledLocationsType) + switch best.Type { + case EnabledLocationsTypeTaxonomyLocationID: + u.TaxonomyLocationID = best.Value.(*TaxonomyLocationID) + return nil + case EnabledLocationsTypeStr: + u.Str = best.Value.(*string) return nil } @@ -167,102 +193,102 @@ func (t *Taxonomy) UnmarshalJSON(data []byte) error { return nil } -func (o *Taxonomy) GetSlug() *string { - if o == nil { +func (t *Taxonomy) GetSlug() *string { + if t == nil { return nil } - return o.Slug + return t.Slug } -func (o *Taxonomy) GetName() *string { - if o == nil { +func (t *Taxonomy) GetName() *string { + if t == nil { return nil } - return o.Name + return t.Name } -func (o *Taxonomy) GetPlural() *string { - if o == nil { +func (t *Taxonomy) GetPlural() *string { + if t == nil { return nil } - return o.Plural + return t.Plural } -func (o *Taxonomy) GetKind() *Kind { - if o == nil { +func (t *Taxonomy) GetKind() *Kind { + if t == nil { return nil } - return o.Kind + return t.Kind } -func (o *Taxonomy) GetType() *TaxonomyType { - if o == nil { +func (t *Taxonomy) GetType() *TaxonomyType { + if t == nil { return nil } - return o.Type + return t.Type } -func (o *Taxonomy) GetIcon() *string { - if o == nil { +func (t *Taxonomy) GetIcon() *string { + if t == nil { return nil } - return o.Icon + return t.Icon } -func (o *Taxonomy) GetColor() *string { - if o == nil { +func (t *Taxonomy) GetColor() *string { + if t == nil { return nil } - return o.Color + return t.Color } -func (o *Taxonomy) GetCreatedAt() *time.Time { - if o == nil { +func (t *Taxonomy) GetCreatedAt() *time.Time { + if t == nil { return nil } - return o.CreatedAt + return t.CreatedAt } -func (o *Taxonomy) GetUpdatedAt() *time.Time { - if o == nil { +func (t *Taxonomy) GetUpdatedAt() *time.Time { + if t == nil { return nil } - return o.UpdatedAt + return t.UpdatedAt } -func (o *Taxonomy) GetDeletedAt() *time.Time { - if o == nil { +func (t *Taxonomy) GetDeletedAt() *time.Time { + if t == nil { return nil } - return o.DeletedAt + return t.DeletedAt } -func (o *Taxonomy) GetCreatedBy() *string { - if o == nil { +func (t *Taxonomy) GetCreatedBy() *string { + if t == nil { return nil } - return o.CreatedBy + return t.CreatedBy } -func (o *Taxonomy) GetEnabled() *bool { - if o == nil { +func (t *Taxonomy) GetEnabled() *bool { + if t == nil { return nil } - return o.Enabled + return t.Enabled } -func (o *Taxonomy) GetOrder() *float64 { - if o == nil { +func (t *Taxonomy) GetOrder() *float64 { + if t == nil { return nil } - return o.Order + return t.Order } -func (o *Taxonomy) GetEnabledLocations() []EnabledLocations { - if o == nil { +func (t *Taxonomy) GetEnabledLocations() []EnabledLocations { + if t == nil { return nil } - return o.EnabledLocations + return t.EnabledLocations } type TaxonomyInput struct { @@ -297,65 +323,65 @@ func (t *TaxonomyInput) UnmarshalJSON(data []byte) error { return nil } -func (o *TaxonomyInput) GetSlug() *string { - if o == nil { +func (t *TaxonomyInput) GetSlug() *string { + if t == nil { return nil } - return o.Slug + return t.Slug } -func (o *TaxonomyInput) GetName() *string { - if o == nil { +func (t *TaxonomyInput) GetName() *string { + if t == nil { return nil } - return o.Name + return t.Name } -func (o *TaxonomyInput) GetPlural() *string { - if o == nil { +func (t *TaxonomyInput) GetPlural() *string { + if t == nil { return nil } - return o.Plural + return t.Plural } -func (o *TaxonomyInput) GetType() *TaxonomyType { - if o == nil { +func (t *TaxonomyInput) GetType() *TaxonomyType { + if t == nil { return nil } - return o.Type + return t.Type } -func (o *TaxonomyInput) GetIcon() *string { - if o == nil { +func (t *TaxonomyInput) GetIcon() *string { + if t == nil { return nil } - return o.Icon + return t.Icon } -func (o *TaxonomyInput) GetColor() *string { - if o == nil { +func (t *TaxonomyInput) GetColor() *string { + if t == nil { return nil } - return o.Color + return t.Color } -func (o *TaxonomyInput) GetEnabled() *bool { - if o == nil { +func (t *TaxonomyInput) GetEnabled() *bool { + if t == nil { return nil } - return o.Enabled + return t.Enabled } -func (o *TaxonomyInput) GetOrder() *float64 { - if o == nil { +func (t *TaxonomyInput) GetOrder() *float64 { + if t == nil { return nil } - return o.Order + return t.Order } -func (o *TaxonomyInput) GetEnabledLocations() []EnabledLocations { - if o == nil { +func (t *TaxonomyInput) GetEnabledLocations() []EnabledLocations { + if t == nil { return nil } - return o.EnabledLocations + return t.EnabledLocations } diff --git a/internal/sdk/models/shared/taxonomybulkjob.go b/internal/sdk/models/shared/taxonomybulkjob.go index 553f8307..79960136 100644 --- a/internal/sdk/models/shared/taxonomybulkjob.go +++ b/internal/sdk/models/shared/taxonomybulkjob.go @@ -14,25 +14,25 @@ type Request struct { ClassificationIds []string `json:"classification_ids,omitempty"` } -func (o *Request) GetTargetTaxonomy() *string { - if o == nil { +func (r *Request) GetTargetTaxonomy() *string { + if r == nil { return nil } - return o.TargetTaxonomy + return r.TargetTaxonomy } -func (o *Request) GetTargetClassification() *string { - if o == nil { +func (r *Request) GetTargetClassification() *string { + if r == nil { return nil } - return o.TargetClassification + return r.TargetClassification } -func (o *Request) GetClassificationIds() []string { - if o == nil { +func (r *Request) GetClassificationIds() []string { + if r == nil { return nil } - return o.ClassificationIds + return r.ClassificationIds } type Output struct { @@ -95,72 +95,72 @@ func (t *TaxonomyBulkJob) UnmarshalJSON(data []byte) error { return nil } -func (o *TaxonomyBulkJob) GetJobID() *string { - if o == nil { +func (t *TaxonomyBulkJob) GetJobID() *string { + if t == nil { return nil } - return o.JobID + return t.JobID } -func (o *TaxonomyBulkJob) GetJobStatus() *TaxonomyBulkJobStatus { - if o == nil { +func (t *TaxonomyBulkJob) GetJobStatus() *TaxonomyBulkJobStatus { + if t == nil { return nil } - return o.JobStatus + return t.JobStatus } -func (o *TaxonomyBulkJob) GetFailureReason() *string { - if o == nil { +func (t *TaxonomyBulkJob) GetFailureReason() *string { + if t == nil { return nil } - return o.FailureReason + return t.FailureReason } -func (o *TaxonomyBulkJob) GetActionType() *TaxonomyBulkJobActionType { - if o == nil { +func (t *TaxonomyBulkJob) GetActionType() *TaxonomyBulkJobActionType { + if t == nil { return nil } - return o.ActionType + return t.ActionType } -func (o *TaxonomyBulkJob) GetRequest() *Request { - if o == nil { +func (t *TaxonomyBulkJob) GetRequest() *Request { + if t == nil { return nil } - return o.Request + return t.Request } -func (o *TaxonomyBulkJob) GetOutput() *Output { - if o == nil { +func (t *TaxonomyBulkJob) GetOutput() *Output { + if t == nil { return nil } - return o.Output + return t.Output } -func (o *TaxonomyBulkJob) GetCreatedBy() *string { - if o == nil { +func (t *TaxonomyBulkJob) GetCreatedBy() *string { + if t == nil { return nil } - return o.CreatedBy + return t.CreatedBy } -func (o *TaxonomyBulkJob) GetCreatedAt() *time.Time { - if o == nil { +func (t *TaxonomyBulkJob) GetCreatedAt() *time.Time { + if t == nil { return nil } - return o.CreatedAt + return t.CreatedAt } -func (o *TaxonomyBulkJob) GetUpdatedAt() *time.Time { - if o == nil { +func (t *TaxonomyBulkJob) GetUpdatedAt() *time.Time { + if t == nil { return nil } - return o.UpdatedAt + return t.UpdatedAt } -func (o *TaxonomyBulkJob) GetOrg() *string { - if o == nil { +func (t *TaxonomyBulkJob) GetOrg() *string { + if t == nil { return nil } - return o.Org + return t.Org } diff --git a/internal/sdk/models/shared/taxonomybulkjobtriggerresponse.go b/internal/sdk/models/shared/taxonomybulkjobtriggerresponse.go index 37fdef3d..c20a5873 100644 --- a/internal/sdk/models/shared/taxonomybulkjobtriggerresponse.go +++ b/internal/sdk/models/shared/taxonomybulkjobtriggerresponse.go @@ -8,16 +8,16 @@ type TaxonomyBulkJobTriggerResponse struct { Status *TaxonomyBulkJobStatus `json:"status,omitempty"` } -func (o *TaxonomyBulkJobTriggerResponse) GetJobID() *string { - if o == nil { +func (t *TaxonomyBulkJobTriggerResponse) GetJobID() *string { + if t == nil { return nil } - return o.JobID + return t.JobID } -func (o *TaxonomyBulkJobTriggerResponse) GetStatus() *TaxonomyBulkJobStatus { - if o == nil { +func (t *TaxonomyBulkJobTriggerResponse) GetStatus() *TaxonomyBulkJobStatus { + if t == nil { return nil } - return o.Status + return t.Status } diff --git a/internal/sdk/models/shared/taxonomyclassification.go b/internal/sdk/models/shared/taxonomyclassification.go index 7c17871f..5b4e4a16 100644 --- a/internal/sdk/models/shared/taxonomyclassification.go +++ b/internal/sdk/models/shared/taxonomyclassification.go @@ -36,72 +36,72 @@ func (t *TaxonomyClassification) UnmarshalJSON(data []byte) error { return nil } -func (o *TaxonomyClassification) GetID() *string { - if o == nil { +func (t *TaxonomyClassification) GetID() *string { + if t == nil { return nil } - return o.ID + return t.ID } -func (o *TaxonomyClassification) GetSlug() string { - if o == nil { +func (t *TaxonomyClassification) GetSlug() string { + if t == nil { return "" } - return o.Slug + return t.Slug } -func (o *TaxonomyClassification) GetName() string { - if o == nil { +func (t *TaxonomyClassification) GetName() string { + if t == nil { return "" } - return o.Name + return t.Name } -func (o *TaxonomyClassification) GetParents() []string { - if o == nil { +func (t *TaxonomyClassification) GetParents() []string { + if t == nil { return nil } - return o.Parents + return t.Parents } -func (o *TaxonomyClassification) GetColor() *string { - if o == nil { +func (t *TaxonomyClassification) GetColor() *string { + if t == nil { return nil } - return o.Color + return t.Color } -func (o *TaxonomyClassification) GetCreatedAt() *time.Time { - if o == nil { +func (t *TaxonomyClassification) GetCreatedAt() *time.Time { + if t == nil { return nil } - return o.CreatedAt + return t.CreatedAt } -func (o *TaxonomyClassification) GetUpdatedAt() *time.Time { - if o == nil { +func (t *TaxonomyClassification) GetUpdatedAt() *time.Time { + if t == nil { return nil } - return o.UpdatedAt + return t.UpdatedAt } -func (o *TaxonomyClassification) GetArchived() *bool { - if o == nil { +func (t *TaxonomyClassification) GetArchived() *bool { + if t == nil { return nil } - return o.Archived + return t.Archived } -func (o *TaxonomyClassification) GetStarred() *bool { - if o == nil { +func (t *TaxonomyClassification) GetStarred() *bool { + if t == nil { return nil } - return o.Starred + return t.Starred } -func (o *TaxonomyClassification) GetManifest() []string { - if o == nil { +func (t *TaxonomyClassification) GetManifest() []string { + if t == nil { return nil } - return o.Manifest + return t.Manifest } diff --git a/internal/sdk/models/shared/taxonomyclassificationinput.go b/internal/sdk/models/shared/taxonomyclassificationinput.go index 94d8028b..668f31cd 100644 --- a/internal/sdk/models/shared/taxonomyclassificationinput.go +++ b/internal/sdk/models/shared/taxonomyclassificationinput.go @@ -35,65 +35,65 @@ func (t *TaxonomyClassificationInput) UnmarshalJSON(data []byte) error { return nil } -func (o *TaxonomyClassificationInput) GetSlug() string { - if o == nil { +func (t *TaxonomyClassificationInput) GetSlug() string { + if t == nil { return "" } - return o.Slug + return t.Slug } -func (o *TaxonomyClassificationInput) GetName() string { - if o == nil { +func (t *TaxonomyClassificationInput) GetName() string { + if t == nil { return "" } - return o.Name + return t.Name } -func (o *TaxonomyClassificationInput) GetParents() []string { - if o == nil { +func (t *TaxonomyClassificationInput) GetParents() []string { + if t == nil { return nil } - return o.Parents + return t.Parents } -func (o *TaxonomyClassificationInput) GetColor() *string { - if o == nil { +func (t *TaxonomyClassificationInput) GetColor() *string { + if t == nil { return nil } - return o.Color + return t.Color } -func (o *TaxonomyClassificationInput) GetCreatedAt() *time.Time { - if o == nil { +func (t *TaxonomyClassificationInput) GetCreatedAt() *time.Time { + if t == nil { return nil } - return o.CreatedAt + return t.CreatedAt } -func (o *TaxonomyClassificationInput) GetUpdatedAt() *time.Time { - if o == nil { +func (t *TaxonomyClassificationInput) GetUpdatedAt() *time.Time { + if t == nil { return nil } - return o.UpdatedAt + return t.UpdatedAt } -func (o *TaxonomyClassificationInput) GetArchived() *bool { - if o == nil { +func (t *TaxonomyClassificationInput) GetArchived() *bool { + if t == nil { return nil } - return o.Archived + return t.Archived } -func (o *TaxonomyClassificationInput) GetStarred() *bool { - if o == nil { +func (t *TaxonomyClassificationInput) GetStarred() *bool { + if t == nil { return nil } - return o.Starred + return t.Starred } -func (o *TaxonomyClassificationInput) GetManifest() []string { - if o == nil { +func (t *TaxonomyClassificationInput) GetManifest() []string { + if t == nil { return nil } - return o.Manifest + return t.Manifest } diff --git a/internal/sdk/models/shared/textattribute.go b/internal/sdk/models/shared/textattribute.go index cded5de2..00ac1d31 100644 --- a/internal/sdk/models/shared/textattribute.go +++ b/internal/sdk/models/shared/textattribute.go @@ -56,32 +56,32 @@ func (i *InfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *InfoHelpers) GetHintText() *string { - if o == nil { +func (i *InfoHelpers) GetHintText() *string { + if i == nil { return nil } - return o.HintText + return i.HintText } -func (o *InfoHelpers) GetHintTextKey() *string { - if o == nil { +func (i *InfoHelpers) GetHintTextKey() *string { + if i == nil { return nil } - return o.HintTextKey + return i.HintTextKey } -func (o *InfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (i *InfoHelpers) GetHintCustomComponent() *string { + if i == nil { return nil } - return o.HintCustomComponent + return i.HintCustomComponent } -func (o *InfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (i *InfoHelpers) GetHintTooltipPlacement() *string { + if i == nil { return nil } - return o.HintTooltipPlacement + return i.HintTooltipPlacement } type TextAttributeType string @@ -179,233 +179,233 @@ func (t *TextAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *TextAttribute) GetID() *string { - if o == nil { +func (t *TextAttribute) GetID() *string { + if t == nil { return nil } - return o.ID + return t.ID } -func (o *TextAttribute) GetName() string { - if o == nil { +func (t *TextAttribute) GetName() string { + if t == nil { return "" } - return o.Name + return t.Name } -func (o *TextAttribute) GetLabel() string { - if o == nil { +func (t *TextAttribute) GetLabel() string { + if t == nil { return "" } - return o.Label + return t.Label } -func (o *TextAttribute) GetPlaceholder() *string { - if o == nil { +func (t *TextAttribute) GetPlaceholder() *string { + if t == nil { return nil } - return o.Placeholder + return t.Placeholder } -func (o *TextAttribute) GetHidden() *bool { - if o == nil { +func (t *TextAttribute) GetHidden() *bool { + if t == nil { return nil } - return o.Hidden + return t.Hidden } -func (o *TextAttribute) GetShowInTable() *bool { - if o == nil { +func (t *TextAttribute) GetShowInTable() *bool { + if t == nil { return nil } - return o.ShowInTable + return t.ShowInTable } -func (o *TextAttribute) GetSortable() *bool { - if o == nil { +func (t *TextAttribute) GetSortable() *bool { + if t == nil { return nil } - return o.Sortable + return t.Sortable } -func (o *TextAttribute) GetRequired() *bool { - if o == nil { +func (t *TextAttribute) GetRequired() *bool { + if t == nil { return nil } - return o.Required + return t.Required } -func (o *TextAttribute) GetReadonly() *bool { - if o == nil { +func (t *TextAttribute) GetReadonly() *bool { + if t == nil { return nil } - return o.Readonly + return t.Readonly } -func (o *TextAttribute) GetDeprecated() *bool { - if o == nil { +func (t *TextAttribute) GetDeprecated() *bool { + if t == nil { return nil } - return o.Deprecated + return t.Deprecated } -func (o *TextAttribute) GetDefaultValue() any { - if o == nil { +func (t *TextAttribute) GetDefaultValue() any { + if t == nil { return nil } - return o.DefaultValue + return t.DefaultValue } -func (o *TextAttribute) GetGroup() *string { - if o == nil { +func (t *TextAttribute) GetGroup() *string { + if t == nil { return nil } - return o.Group + return t.Group } -func (o *TextAttribute) GetOrder() *int64 { - if o == nil { +func (t *TextAttribute) GetOrder() *int64 { + if t == nil { return nil } - return o.Order + return t.Order } -func (o *TextAttribute) GetLayout() *string { - if o == nil { +func (t *TextAttribute) GetLayout() *string { + if t == nil { return nil } - return o.Layout + return t.Layout } -func (o *TextAttribute) GetHideLabel() *bool { - if o == nil { +func (t *TextAttribute) GetHideLabel() *bool { + if t == nil { return nil } - return o.HideLabel + return t.HideLabel } -func (o *TextAttribute) GetIcon() *string { - if o == nil { +func (t *TextAttribute) GetIcon() *string { + if t == nil { return nil } - return o.Icon + return t.Icon } -func (o *TextAttribute) GetRenderCondition() *string { - if o == nil { +func (t *TextAttribute) GetRenderCondition() *string { + if t == nil { return nil } - return o.RenderCondition + return t.RenderCondition } -func (o *TextAttribute) GetPurpose() []string { - if o == nil { +func (t *TextAttribute) GetPurpose() []string { + if t == nil { return nil } - return o.Purpose + return t.Purpose } -func (o *TextAttribute) GetManifest() []string { - if o == nil { +func (t *TextAttribute) GetManifest() []string { + if t == nil { return nil } - return o.Manifest + return t.Manifest } -func (o *TextAttribute) GetConstraints() *Constraints { - if o == nil { +func (t *TextAttribute) GetConstraints() *Constraints { + if t == nil { return nil } - return o.Constraints + return t.Constraints } -func (o *TextAttribute) GetFeatureFlag() *string { - if o == nil { +func (t *TextAttribute) GetFeatureFlag() *string { + if t == nil { return nil } - return o.FeatureFlag + return t.FeatureFlag } -func (o *TextAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (t *TextAttribute) GetSettingsFlag() []SettingFlag { + if t == nil { return nil } - return o.SettingsFlag + return t.SettingsFlag } -func (o *TextAttribute) GetValueFormatter() *string { - if o == nil { +func (t *TextAttribute) GetValueFormatter() *string { + if t == nil { return nil } - return o.ValueFormatter + return t.ValueFormatter } -func (o *TextAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (t *TextAttribute) GetPreviewValueFormatter() *string { + if t == nil { return nil } - return o.PreviewValueFormatter + return t.PreviewValueFormatter } -func (o *TextAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (t *TextAttribute) GetEntityBuilderDisableEdit() *bool { + if t == nil { return nil } - return o.EntityBuilderDisableEdit + return t.EntityBuilderDisableEdit } -func (o *TextAttribute) GetProtected() *bool { - if o == nil { +func (t *TextAttribute) GetProtected() *bool { + if t == nil { return nil } - return o.Protected + return t.Protected } -func (o *TextAttribute) GetInfoHelpers() *InfoHelpers { - if o == nil { +func (t *TextAttribute) GetInfoHelpers() *InfoHelpers { + if t == nil { return nil } - return o.InfoHelpers + return t.InfoHelpers } -func (o *TextAttribute) GetRepeatable() *bool { - if o == nil { +func (t *TextAttribute) GetRepeatable() *bool { + if t == nil { return nil } - return o.Repeatable + return t.Repeatable } -func (o *TextAttribute) GetHasPrimary() *bool { - if o == nil { +func (t *TextAttribute) GetHasPrimary() *bool { + if t == nil { return nil } - return o.HasPrimary + return t.HasPrimary } -func (o *TextAttribute) GetType() TextAttributeType { - if o == nil { +func (t *TextAttribute) GetType() TextAttributeType { + if t == nil { return TextAttributeType("") } - return o.Type + return t.Type } -func (o *TextAttribute) GetMultiline() *bool { - if o == nil { +func (t *TextAttribute) GetMultiline() *bool { + if t == nil { return nil } - return o.Multiline + return t.Multiline } -func (o *TextAttribute) GetRichText() *bool { - if o == nil { +func (t *TextAttribute) GetRichText() *bool { + if t == nil { return nil } - return o.RichText + return t.RichText } -func (o *TextAttribute) GetRows() any { - if o == nil { +func (t *TextAttribute) GetRows() any { + if t == nil { return nil } - return o.Rows + return t.Rows } diff --git a/internal/sdk/models/shared/toomanyrequestserror.go b/internal/sdk/models/shared/toomanyrequestserror.go index fe0bccf5..4a0e5d93 100644 --- a/internal/sdk/models/shared/toomanyrequestserror.go +++ b/internal/sdk/models/shared/toomanyrequestserror.go @@ -10,16 +10,16 @@ type TooManyRequestsError struct { Error *string `json:"error,omitempty"` } -func (o *TooManyRequestsError) GetStatus() *int64 { - if o == nil { +func (t *TooManyRequestsError) GetStatus() *int64 { + if t == nil { return nil } - return o.Status + return t.Status } -func (o *TooManyRequestsError) GetError() *string { - if o == nil { +func (t *TooManyRequestsError) GetError() *string { + if t == nil { return nil } - return o.Error + return t.Error } diff --git a/internal/sdk/models/shared/userrelationattribute.go b/internal/sdk/models/shared/userrelationattribute.go index 456b6b5e..14267628 100644 --- a/internal/sdk/models/shared/userrelationattribute.go +++ b/internal/sdk/models/shared/userrelationattribute.go @@ -56,32 +56,32 @@ func (u *UserRelationAttributeInfoHelpers) UnmarshalJSON(data []byte) error { return nil } -func (o *UserRelationAttributeInfoHelpers) GetHintText() *string { - if o == nil { +func (u *UserRelationAttributeInfoHelpers) GetHintText() *string { + if u == nil { return nil } - return o.HintText + return u.HintText } -func (o *UserRelationAttributeInfoHelpers) GetHintTextKey() *string { - if o == nil { +func (u *UserRelationAttributeInfoHelpers) GetHintTextKey() *string { + if u == nil { return nil } - return o.HintTextKey + return u.HintTextKey } -func (o *UserRelationAttributeInfoHelpers) GetHintCustomComponent() *string { - if o == nil { +func (u *UserRelationAttributeInfoHelpers) GetHintCustomComponent() *string { + if u == nil { return nil } - return o.HintCustomComponent + return u.HintCustomComponent } -func (o *UserRelationAttributeInfoHelpers) GetHintTooltipPlacement() *string { - if o == nil { +func (u *UserRelationAttributeInfoHelpers) GetHintTooltipPlacement() *string { + if u == nil { return nil } - return o.HintTooltipPlacement + return u.HintTooltipPlacement } type UserRelationAttributeType string @@ -177,219 +177,219 @@ func (u *UserRelationAttribute) UnmarshalJSON(data []byte) error { return nil } -func (o *UserRelationAttribute) GetID() *string { - if o == nil { +func (u *UserRelationAttribute) GetID() *string { + if u == nil { return nil } - return o.ID + return u.ID } -func (o *UserRelationAttribute) GetName() string { - if o == nil { +func (u *UserRelationAttribute) GetName() string { + if u == nil { return "" } - return o.Name + return u.Name } -func (o *UserRelationAttribute) GetLabel() string { - if o == nil { +func (u *UserRelationAttribute) GetLabel() string { + if u == nil { return "" } - return o.Label + return u.Label } -func (o *UserRelationAttribute) GetPlaceholder() *string { - if o == nil { +func (u *UserRelationAttribute) GetPlaceholder() *string { + if u == nil { return nil } - return o.Placeholder + return u.Placeholder } -func (o *UserRelationAttribute) GetHidden() *bool { - if o == nil { +func (u *UserRelationAttribute) GetHidden() *bool { + if u == nil { return nil } - return o.Hidden + return u.Hidden } -func (o *UserRelationAttribute) GetShowInTable() *bool { - if o == nil { +func (u *UserRelationAttribute) GetShowInTable() *bool { + if u == nil { return nil } - return o.ShowInTable + return u.ShowInTable } -func (o *UserRelationAttribute) GetSortable() *bool { - if o == nil { +func (u *UserRelationAttribute) GetSortable() *bool { + if u == nil { return nil } - return o.Sortable + return u.Sortable } -func (o *UserRelationAttribute) GetRequired() *bool { - if o == nil { +func (u *UserRelationAttribute) GetRequired() *bool { + if u == nil { return nil } - return o.Required + return u.Required } -func (o *UserRelationAttribute) GetReadonly() *bool { - if o == nil { +func (u *UserRelationAttribute) GetReadonly() *bool { + if u == nil { return nil } - return o.Readonly + return u.Readonly } -func (o *UserRelationAttribute) GetDeprecated() *bool { - if o == nil { +func (u *UserRelationAttribute) GetDeprecated() *bool { + if u == nil { return nil } - return o.Deprecated + return u.Deprecated } -func (o *UserRelationAttribute) GetDefaultValue() any { - if o == nil { +func (u *UserRelationAttribute) GetDefaultValue() any { + if u == nil { return nil } - return o.DefaultValue + return u.DefaultValue } -func (o *UserRelationAttribute) GetGroup() *string { - if o == nil { +func (u *UserRelationAttribute) GetGroup() *string { + if u == nil { return nil } - return o.Group + return u.Group } -func (o *UserRelationAttribute) GetOrder() *int64 { - if o == nil { +func (u *UserRelationAttribute) GetOrder() *int64 { + if u == nil { return nil } - return o.Order + return u.Order } -func (o *UserRelationAttribute) GetLayout() *string { - if o == nil { +func (u *UserRelationAttribute) GetLayout() *string { + if u == nil { return nil } - return o.Layout + return u.Layout } -func (o *UserRelationAttribute) GetHideLabel() *bool { - if o == nil { +func (u *UserRelationAttribute) GetHideLabel() *bool { + if u == nil { return nil } - return o.HideLabel + return u.HideLabel } -func (o *UserRelationAttribute) GetIcon() *string { - if o == nil { +func (u *UserRelationAttribute) GetIcon() *string { + if u == nil { return nil } - return o.Icon + return u.Icon } -func (o *UserRelationAttribute) GetRenderCondition() *string { - if o == nil { +func (u *UserRelationAttribute) GetRenderCondition() *string { + if u == nil { return nil } - return o.RenderCondition + return u.RenderCondition } -func (o *UserRelationAttribute) GetPurpose() []string { - if o == nil { +func (u *UserRelationAttribute) GetPurpose() []string { + if u == nil { return nil } - return o.Purpose + return u.Purpose } -func (o *UserRelationAttribute) GetManifest() []string { - if o == nil { +func (u *UserRelationAttribute) GetManifest() []string { + if u == nil { return nil } - return o.Manifest + return u.Manifest } -func (o *UserRelationAttribute) GetConstraints() *UserRelationAttributeConstraints { - if o == nil { +func (u *UserRelationAttribute) GetConstraints() *UserRelationAttributeConstraints { + if u == nil { return nil } - return o.Constraints + return u.Constraints } -func (o *UserRelationAttribute) GetFeatureFlag() *string { - if o == nil { +func (u *UserRelationAttribute) GetFeatureFlag() *string { + if u == nil { return nil } - return o.FeatureFlag + return u.FeatureFlag } -func (o *UserRelationAttribute) GetSettingsFlag() []SettingFlag { - if o == nil { +func (u *UserRelationAttribute) GetSettingsFlag() []SettingFlag { + if u == nil { return nil } - return o.SettingsFlag + return u.SettingsFlag } -func (o *UserRelationAttribute) GetValueFormatter() *string { - if o == nil { +func (u *UserRelationAttribute) GetValueFormatter() *string { + if u == nil { return nil } - return o.ValueFormatter + return u.ValueFormatter } -func (o *UserRelationAttribute) GetPreviewValueFormatter() *string { - if o == nil { +func (u *UserRelationAttribute) GetPreviewValueFormatter() *string { + if u == nil { return nil } - return o.PreviewValueFormatter + return u.PreviewValueFormatter } -func (o *UserRelationAttribute) GetEntityBuilderDisableEdit() *bool { - if o == nil { +func (u *UserRelationAttribute) GetEntityBuilderDisableEdit() *bool { + if u == nil { return nil } - return o.EntityBuilderDisableEdit + return u.EntityBuilderDisableEdit } -func (o *UserRelationAttribute) GetProtected() *bool { - if o == nil { +func (u *UserRelationAttribute) GetProtected() *bool { + if u == nil { return nil } - return o.Protected + return u.Protected } -func (o *UserRelationAttribute) GetInfoHelpers() *UserRelationAttributeInfoHelpers { - if o == nil { +func (u *UserRelationAttribute) GetInfoHelpers() *UserRelationAttributeInfoHelpers { + if u == nil { return nil } - return o.InfoHelpers + return u.InfoHelpers } -func (o *UserRelationAttribute) GetRepeatable() *bool { - if o == nil { +func (u *UserRelationAttribute) GetRepeatable() *bool { + if u == nil { return nil } - return o.Repeatable + return u.Repeatable } -func (o *UserRelationAttribute) GetHasPrimary() *bool { - if o == nil { +func (u *UserRelationAttribute) GetHasPrimary() *bool { + if u == nil { return nil } - return o.HasPrimary + return u.HasPrimary } -func (o *UserRelationAttribute) GetType() UserRelationAttributeType { - if o == nil { +func (u *UserRelationAttribute) GetType() UserRelationAttributeType { + if u == nil { return UserRelationAttributeType("") } - return o.Type + return u.Type } -func (o *UserRelationAttribute) GetMultiple() *bool { - if o == nil { +func (u *UserRelationAttribute) GetMultiple() *bool { + if u == nil { return nil } - return o.Multiple + return u.Multiple } diff --git a/internal/sdk/optionalnullable/optionalnullable.go b/internal/sdk/optionalnullable/optionalnullable.go new file mode 100644 index 00000000..c6739be0 --- /dev/null +++ b/internal/sdk/optionalnullable/optionalnullable.go @@ -0,0 +1,233 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package optionalnullable + +import ( + "bytes" + "encoding/json" + "reflect" +) + +// OptionalNullable represents a field that can distinguish between three states: +// 1. Set to a value: field is present with a non-nil value +// 2. Set to nil: field is present but explicitly set to null in JSON +// 3. Unset: field is omitted from JSON entirely +// +// This type is designed to work with JSON marshaling/unmarshaling and supports +// the `omitempty` struct tag to properly omit unset fields from JSON output. +// +// Usage: +// +// type User struct { +// Name OptionalNullable[string] `json:"name,omitempty"` +// Age OptionalNullable[int] `json:"age,omitempty"` +// Tags OptionalNullable[[]string] `json:"tags,omitempty"` +// } +// +// // Set to value +// name := "John" +// user.Name = From(&name) +// +// // Set to nil (will appear as "name": null in JSON) +// user.Name = From[string](nil) +// +// // Leave unset (will be omitted from JSON with omitempty) +// user := User{} +// +// WARNING: Do NOT use *OptionalNullable[T] as a field type. Always use OptionalNullable[T] directly. +// Using *OptionalNullable[T] will break the omitempty behavior and JSON marshaling. +// +// The type is implemented as a map[bool]*T where: +// - nil map represents unset state +// - Map with true key represents set state (value may be nil) +type OptionalNullable[T any] map[bool]*T + +// From creates a new OptionalNullable with the given value. +// Pass nil to create a OptionalNullable that is set to null. +// Pass a pointer to a value to create a OptionalNullable with that value. +// +// Examples: +// +// hello := "hello" +// From(&hello) // set to "hello" +// From[string](nil) // set to null +func From[T any](value *T) OptionalNullable[T] { + return map[bool]*T{ + true: value, + } +} + +// IsNull returns true if the OptionalNullable is explicitly set to nil. +// Returns false if the OptionalNullable is unset or has a value. +// +// Note: This differs from traditional null checks because unset fields +// return false, not true. Use IsSet() to check if a field was provided. +func (n OptionalNullable[T]) IsNull() bool { + v, ok := n[true] + return ok && v == nil +} + +// IsSet returns true if the OptionalNullable has been explicitly set (to either a value or nil). +// Returns false if the OptionalNullable is unset (omitted from JSON). +// +// This is the key method for distinguishing between: +// - Set to nil: IsSet() = true, IsNull() = true +// - Unset: IsSet() = false, IsNull() = false +func (n OptionalNullable[T]) IsSet() bool { + _, ok := n[true] + return ok +} + +// Get returns the internal pointer and whether the field was set. +// +// Return values: +// - (ptr, true): field was set (ptr may be nil if set to null) +// - (nil, false): field was unset/omitted +// +// This method provides direct access to the internal pointer representation. +func (n OptionalNullable[T]) Get() (*T, bool) { + v, ok := n[true] + return v, ok +} + +// GetOrZero returns the value and whether it was set. +// +// Return values: +// - (value, true): field was set to a non-nil value +// - (zero, true): field was explicitly set to nil +// - (zero, false): field was unset/omitted +// +// Examples: +// +// val, ok := nullable.GetOrZero() +// if !ok { +// // Field was unset/omitted +// } else if nullable.IsNull() { +// // Field was explicitly set to null +// } else { +// // Field has a value: val +// } +func (n OptionalNullable[T]) GetOrZero() (T, bool) { + var zero T + + if v, ok := n[true]; ok { + if v == nil { + return zero, true + } + return *v, true + } + return zero, false +} + +// GetUntyped returns the value as interface{} and whether it was set. +// This is useful for reflection-based code that needs to work with the value +// without knowing the specific type T. +// +// Return values: +// - (value, true): field was set to a non-nil value +// - (nil, true): field was explicitly set to nil +// - (nil, false): field was unset/omitted +func (n OptionalNullable[T]) GetUntyped() (interface{}, bool) { + if v, ok := n[true]; ok { + if v == nil { + return nil, true + } + return *v, true + } + return nil, false +} + +// Set sets the OptionalNullable to the given value pointer. +// Pass nil to set the field to null. +// Pass a pointer to a value to set the field to that value. +// +// Examples: +// +// nullable.Set(ptrFrom("hello")) // set to "hello" +// nullable.Set(nil) // set to null +func (n *OptionalNullable[T]) Set(value *T) { + *n = map[bool]*T{ + true: value, + } +} + +// Unset removes the value, making the field unset/omitted. +// After calling Unset(), IsSet() will return false and the field +// will be omitted from JSON output when using omitempty. +func (n *OptionalNullable[T]) Unset() { + *n = map[bool]*T{} +} + +// MarshalJSON implements json.Marshaler. +// +// Behavior: +// - Unset fields: omitted from JSON when struct field has omitempty tag +// - Null fields: serialized as "null" +// - Value fields: serialized as the actual value +// +// The omitempty behavior works because an empty map is considered +// a zero value by Go's JSON package. +func (n OptionalNullable[T]) MarshalJSON() ([]byte, error) { + if n.IsNull() { + return []byte("null"), nil + } + + return json.Marshal(n[true]) +} + +// UnmarshalJSON implements json.Unmarshaler. +// +// Behavior: +// - "null" in JSON: sets the field to null (IsSet=true, IsNull=true) +// - Any other value: sets the field to that value (IsSet=true, IsNull=false) +// - Missing from JSON: field remains unset (IsSet=false, IsNull=false) +func (n *OptionalNullable[T]) UnmarshalJSON(data []byte) error { + if bytes.Equal(data, []byte("null")) { + n.Set(nil) + return nil + } + var v T + if err := json.Unmarshal(data, &v); err != nil { + return err + } + n.Set(&v) + return nil +} + +// NullableInterface defines the interface that all OptionalNullable[T] types implement. +// This interface provides untyped access to optional nullable values for reflection-based code. +type OptionalNullableInterface interface { + GetUntyped() (interface{}, bool) +} + +// AsOptionalNullable attempts to convert a reflect.Value to a OptionalNullableInterface. +// This is a helper function for reflection-based code that needs to check +// if a value implements the optional nullable interface pattern. +// +// Returns: +// - (nullable, true): if the value implements OptionalNullableInterface +// - (nil, false): if the value does not implement OptionalNullableInterface +// +// Example usage: +// +// if nullable, ok := AsOptionalNullable(reflectValue); ok { +// if value, isSet := nullable.GetUntyped(); isSet { +// // Handle the nullable value +// } +// } +func AsOptionalNullable(v reflect.Value) (OptionalNullableInterface, bool) { + // Check if the value can be converted to an interface first + if !v.CanInterface() { + return nil, false + } + + // Check if the underlying value is a nil map (unset nullable) + if v.Kind() == reflect.Map && v.IsNil() { + return nil, false + } + + if nullable, ok := v.Interface().(OptionalNullableInterface); ok { + return nullable, true + } + return nil, false +} diff --git a/internal/sdk/optionalnullable/optionalnullable_test.go b/internal/sdk/optionalnullable/optionalnullable_test.go new file mode 100644 index 00000000..e6e5a01c --- /dev/null +++ b/internal/sdk/optionalnullable/optionalnullable_test.go @@ -0,0 +1,1806 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package optionalnullable + +import ( + "encoding/json" + "reflect" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +// Test helper function to create pointers from values +func ptrFrom[T any](value T) *T { + return &value +} + +// Test helper types for comprehensive testing +type TestStruct struct { + Name string `json:"name"` + Age int `json:"age"` +} + +type TestContainer struct { + StringField OptionalNullable[string] `json:"string_field,omitempty"` + IntField OptionalNullable[int] `json:"int_field,omitempty"` + SliceField OptionalNullable[[]string] `json:"slice_field,omitempty"` + StructField OptionalNullable[TestStruct] `json:"struct_field,omitempty"` +} + +// TestNewNullable tests the From constructor +func TestNewNullable(t *testing.T) { + t.Parallel() + t.Run("with string value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", got) + }) + + t.Run("with nil pointer", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "", got) // zero value for string + }) + + t.Run("with int value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom(42)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 42, got) + }) + + t.Run("with slice value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{"a", "b", "c"})) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b", "c"}, got) + }) + + t.Run("with empty slice", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{})) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{}, got) + }) + + t.Run("with struct value", func(t *testing.T) { + t.Parallel() + val := TestStruct{Name: "John", Age: 30} + nullable := From(&val) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + v, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, val, v) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{Name: "John", Age: 30}, got) + }) +} + +// TestNewNullableUnset tests the NewNullableUnset constructor +func TestNewNullableUnset(t *testing.T) { + t.Parallel() + t.Run("string type", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // Unset is not null + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Equal(t, "", got) // zero value for string + }) + + t.Run("int type", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[int] + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // Unset is not null + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Equal(t, 0, got) // zero value for int + }) + + t.Run("slice type", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[[]string] + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // Unset is not null + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Nil(t, got) // zero value for slice is nil + }) +} + +// TestIsNull tests the IsNull method +func TestIsNull(t *testing.T) { + t.Parallel() + t.Run("with value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + assert.False(t, nullable.IsNull()) + }) + + t.Run("with nil pointer", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + assert.True(t, nullable.IsNull()) + }) + + t.Run("unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + assert.False(t, nullable.IsNull()) + }) +} + +// TestIsSet tests the IsSet method +func TestIsSet(t *testing.T) { + t.Parallel() + t.Run("with value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + assert.True(t, nullable.IsSet()) + }) + + t.Run("with nil pointer", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + assert.True(t, nullable.IsSet()) + }) + + t.Run("unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + assert.False(t, nullable.IsSet()) + }) +} + +// TestGet tests the Get method +func TestGet(t *testing.T) { + t.Parallel() + t.Run("with string value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", got) + }) + + t.Run("with nil pointer", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "", got) // zero value + }) + + t.Run("unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Equal(t, "", got) // zero value + }) + + t.Run("with slice value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{"a", "b"})) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b"}, got) + }) + + t.Run("with nil slice pointer", func(t *testing.T) { + t.Parallel() + nullable := From[[]string](nil) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Nil(t, got) // zero value for slice is nil + }) +} + +// TestPointer tests the Pointer method +func TestPointer(t *testing.T) { + t.Parallel() + t.Run("with value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + + ptr, ok := nullable.Get() + assert.True(t, ok) + assert.NotNil(t, ptr) + assert.Equal(t, "test", *ptr) + }) + + t.Run("with nil pointer", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + + ptr, ok := nullable.Get() + assert.True(t, ok) + assert.Nil(t, ptr) + }) + + t.Run("unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + + ptr, ok := nullable.Get() + assert.False(t, ok) + assert.Nil(t, ptr) + }) +} + +// TestSet tests the Set method +func TestSet(t *testing.T) { + t.Parallel() + t.Run("set string value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + + // Initially unset + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // Unset is not null + + // Set a value + nullable.Set(ptrFrom("test")) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", got) + }) + + t.Run("set int value", func(t *testing.T) { + t.Parallel() + nullable := OptionalNullable[int]{} + + nullable.Set(ptrFrom(42)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 42, got) + }) + + t.Run("set slice value", func(t *testing.T) { + t.Parallel() + nullable := OptionalNullable[[]string]{} + + slice := []string{"a", "b"} + nullable.Set(ptrFrom(slice)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b"}, got) + }) + + t.Run("set empty slice", func(t *testing.T) { + t.Parallel() + nullable := OptionalNullable[[]string]{} + + slice := []string{} + nullable.Set(ptrFrom(slice)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{}, got) + }) + + t.Run("overwrite existing value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("original")) + + // Verify original value + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "original", got) + + // Set new value + nullable.Set(ptrFrom("new")) + + got, ok = nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "new", got) + }) +} + +// TestUnset tests the Unset method +func TestUnset(t *testing.T) { + t.Parallel() + t.Run("unset from value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + + // Initially set + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + // Unset + nullable.Unset() + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // After unset is not null + // Value is now internal to the map implementation + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Equal(t, "", got) // zero value + }) + + t.Run("unset from nil", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + + // Initially set to nil + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) // Set to nil should be null + + // Unset + nullable.Unset() + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // After unset is not null + }) + + t.Run("unset already unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + + // Initially unset + assert.False(t, nullable.IsSet()) + + // Unset again + nullable.Unset() + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) // Empty map is not null + }) +} + +// TestMarshalJSON tests JSON marshaling +func TestMarshalJSON(t *testing.T) { + t.Parallel() + t.Run("marshal string value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `"test"`, string(data)) + }) + + t.Run("marshal int value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom(42)) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `42`, string(data)) + }) + + t.Run("marshal nil value", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `null`, string(data)) + }) + + t.Run("marshal slice value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{"a", "b", "c"})) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `["a","b","c"]`, string(data)) + }) + + t.Run("marshal empty slice", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{})) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `[]`, string(data)) + }) + + t.Run("marshal struct value", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom(TestStruct{Name: "John", Age: 30})) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `{"name":"John","age":30}`, string(data)) + }) + + // Note: Unset values are not tested here because the current implementation + // doesn't handle unset fields in marshaling (see TODO in the code) +} + +// TestUnmarshalJSON tests JSON unmarshaling +func TestUnmarshalJSON(t *testing.T) { + t.Parallel() + t.Run("unmarshal string value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + err := json.Unmarshal([]byte(`"test"`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", got) + }) + + t.Run("unmarshal int value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[int] + err := json.Unmarshal([]byte(`42`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 42, got) + }) + + t.Run("unmarshal null value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + err := json.Unmarshal([]byte(`null`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "", got) // zero value + }) + + t.Run("unmarshal slice value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[[]string] + err := json.Unmarshal([]byte(`["a","b","c"]`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b", "c"}, got) + }) + + t.Run("unmarshal empty slice", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[[]string] + err := json.Unmarshal([]byte(`[]`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{}, got) + }) + + t.Run("unmarshal struct value", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[TestStruct] + err := json.Unmarshal([]byte(`{"name":"John","age":30}`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{Name: "John", Age: 30}, got) + }) + + t.Run("unmarshal invalid JSON", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + err := json.Unmarshal([]byte(`invalid`), &nullable) + assert.Error(t, err) + + // Ensure the nullable remains unset after error + assert.False(t, nullable.IsSet()) + }) + + t.Run("unmarshal invalid JSON for int", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[int] + err := json.Unmarshal([]byte(`"not_a_number"`), &nullable) + assert.Error(t, err) + + // Ensure the nullable remains unset after error + assert.False(t, nullable.IsSet()) + }) + + t.Run("unmarshal malformed JSON", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[TestStruct] + err := json.Unmarshal([]byte(`{invalid json`), &nullable) + assert.Error(t, err) + + // Ensure the nullable remains unset after error + assert.False(t, nullable.IsSet()) + }) +} + +// TestJSONRoundTrip tests marshaling and unmarshaling together +func TestJSONRoundTrip(t *testing.T) { + t.Parallel() + t.Run("string value round trip", func(t *testing.T) { + t.Parallel() + nullable1 := From(ptrFrom("test value")) + + // Marshal + data, err := json.Marshal(nullable1) + require.NoError(t, err) + + // Unmarshal + var nullable2 OptionalNullable[string] + err = json.Unmarshal(data, &nullable2) + require.NoError(t, err) + + // Compare + assert.Equal(t, nullable1.IsSet(), nullable2.IsSet()) + assert.Equal(t, nullable1.IsNull(), nullable2.IsNull()) + + got1, ok1 := nullable1.GetOrZero() + got2, ok2 := nullable2.GetOrZero() + assert.Equal(t, ok1, ok2) + assert.Equal(t, got1, got2) + }) + + t.Run("nil value round trip", func(t *testing.T) { + t.Parallel() + nullable1 := From[string](nil) + + // Marshal + data, err := json.Marshal(nullable1) + require.NoError(t, err) + + // Unmarshal + var nullable2 OptionalNullable[string] + err = json.Unmarshal(data, &nullable2) + require.NoError(t, err) + + // Compare + assert.Equal(t, nullable1.IsSet(), nullable2.IsSet()) + assert.Equal(t, nullable1.IsNull(), nullable2.IsNull()) + + got1, ok1 := nullable1.GetOrZero() + got2, ok2 := nullable2.GetOrZero() + assert.Equal(t, ok1, ok2) + assert.Equal(t, got1, got2) + }) + + t.Run("slice round trip", func(t *testing.T) { + t.Parallel() + nullable1 := From(ptrFrom([]string{"a", "b", "c"})) + + // Marshal + data, err := json.Marshal(nullable1) + require.NoError(t, err) + + // Unmarshal + var nullable2 OptionalNullable[[]string] + err = json.Unmarshal(data, &nullable2) + require.NoError(t, err) + + // Compare + assert.Equal(t, nullable1.IsSet(), nullable2.IsSet()) + assert.Equal(t, nullable1.IsNull(), nullable2.IsNull()) + + got1, ok1 := nullable1.GetOrZero() + got2, ok2 := nullable2.GetOrZero() + assert.Equal(t, ok1, ok2) + assert.Equal(t, got1, got2) + }) +} + +// TestJSONToJSONRoundTrip tests starting with JSON and ensuring we can serialize back to the same JSON +func TestJSONToJSONRoundTrip(t *testing.T) { + t.Parallel() + t.Run("string value JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `"hello world"` + + // Unmarshal from JSON + var nullable OptionalNullable[string] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "hello world", got) + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) + + t.Run("null value JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `null` + + // Unmarshal from JSON + var nullable OptionalNullable[string] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "", got) // zero value + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) + + t.Run("int value JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `42` + + // Unmarshal from JSON + var nullable OptionalNullable[int] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 42, got) + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) + + t.Run("slice value JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `["a","b","c"]` + + // Unmarshal from JSON + var nullable OptionalNullable[[]string] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b", "c"}, got) + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) + + t.Run("empty slice JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `[]` + + // Unmarshal from JSON + var nullable OptionalNullable[[]string] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{}, got) + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) + + t.Run("struct value JSON round trip", func(t *testing.T) { + t.Parallel() + originalJSON := `{"name":"Alice","age":25}` + + // Unmarshal from JSON + var nullable OptionalNullable[TestStruct] + err := json.Unmarshal([]byte(originalJSON), &nullable) + require.NoError(t, err) + + // Verify state + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{Name: "Alice", Age: 25}, got) + + // Marshal back to JSON + resultJSON, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, originalJSON, string(resultJSON)) + }) +} + +// TestContainerStates tests comprehensive state detection and serialization with TestContainer +func TestContainerStates(t *testing.T) { + t.Parallel() + t.Run("all fields set to values", func(t *testing.T) { + t.Parallel() + container := TestContainer{ + StringField: From(ptrFrom("hello")), + IntField: From(ptrFrom(42)), + SliceField: From(ptrFrom([]string{"a", "b"})), + StructField: From(ptrFrom(TestStruct{Name: "John", Age: 30})), + } + + // Verify all fields are set and not null + assert.True(t, container.StringField.IsSet()) + assert.False(t, container.StringField.IsNull()) + assert.True(t, container.IntField.IsSet()) + assert.False(t, container.IntField.IsNull()) + assert.True(t, container.SliceField.IsSet()) + assert.False(t, container.SliceField.IsNull()) + assert.True(t, container.StructField.IsSet()) + assert.False(t, container.StructField.IsNull()) + + // Verify values + stringVal, ok := container.StringField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "hello", stringVal) + + intVal, ok := container.IntField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 42, intVal) + + sliceVal, ok := container.SliceField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b"}, sliceVal) + + structVal, ok := container.StructField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{Name: "John", Age: 30}, structVal) + + // Test JSON serialization + data, err := json.Marshal(container) + require.NoError(t, err) + + var result map[string]interface{} + err = json.Unmarshal(data, &result) + require.NoError(t, err) + + assert.Equal(t, "hello", result["string_field"]) + assert.Equal(t, float64(42), result["int_field"]) // JSON numbers are float64 + assert.Equal(t, []interface{}{"a", "b"}, result["slice_field"]) + structResult := result["struct_field"].(map[string]interface{}) + assert.Equal(t, "John", structResult["name"]) + assert.Equal(t, float64(30), structResult["age"]) + }) + + t.Run("all fields set to nil", func(t *testing.T) { + t.Parallel() + container := TestContainer{ + StringField: From[string](nil), + IntField: From[int](nil), + SliceField: From[[]string](nil), + StructField: From[TestStruct](nil), + } + + // Verify all fields are set but null + assert.True(t, container.StringField.IsSet()) + assert.True(t, container.StringField.IsNull()) + assert.True(t, container.IntField.IsSet()) + assert.True(t, container.IntField.IsNull()) + assert.True(t, container.SliceField.IsSet()) + assert.True(t, container.SliceField.IsNull()) + assert.True(t, container.StructField.IsSet()) + assert.True(t, container.StructField.IsNull()) + + // Verify GetOrZero() behavior for nil values + stringVal, ok := container.StringField.GetOrZero() + assert.True(t, ok) // set to nil still returns true + assert.Equal(t, "", stringVal) // zero value + + intVal, ok := container.IntField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 0, intVal) // zero value + + sliceVal, ok := container.SliceField.GetOrZero() + assert.True(t, ok) + assert.Nil(t, sliceVal) // zero value for slice is nil + + structVal, ok := container.StructField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{}, structVal) // zero value + + // Test JSON serialization - all should be null + data, err := json.Marshal(container) + require.NoError(t, err) + + var result map[string]interface{} + err = json.Unmarshal(data, &result) + require.NoError(t, err) + + assert.Nil(t, result["string_field"]) + assert.Nil(t, result["int_field"]) + assert.Nil(t, result["slice_field"]) + assert.Nil(t, result["struct_field"]) + }) + + t.Run("all fields unset", func(t *testing.T) { + t.Parallel() + container := TestContainer{} + + // Verify all fields are unset + assert.False(t, container.StringField.IsSet()) + assert.False(t, container.StringField.IsNull()) // unset is not null in new implementation + assert.False(t, container.IntField.IsSet()) + assert.False(t, container.IntField.IsNull()) + assert.False(t, container.SliceField.IsSet()) + assert.False(t, container.SliceField.IsNull()) + assert.False(t, container.StructField.IsSet()) + assert.False(t, container.StructField.IsNull()) + + // Verify GetOrZero() behavior for unset values + stringVal, ok := container.StringField.GetOrZero() + assert.False(t, ok) // unset returns false + assert.Equal(t, "", stringVal) // zero value + + intVal, ok := container.IntField.GetOrZero() + assert.False(t, ok) + assert.Equal(t, 0, intVal) // zero value + + sliceVal, ok := container.SliceField.GetOrZero() + assert.False(t, ok) + assert.Nil(t, sliceVal) // zero value + + structVal, ok := container.StructField.GetOrZero() + assert.False(t, ok) + assert.Equal(t, TestStruct{}, structVal) // zero value + + // Test JSON serialization - unset fields should be omitted due to omitempty + data, err := json.Marshal(container) + require.NoError(t, err) + + var result map[string]interface{} + err = json.Unmarshal(data, &result) + require.NoError(t, err) + + // With omitempty, unset fields should not appear in JSON + assert.NotContains(t, result, "string_field") + assert.NotContains(t, result, "int_field") + assert.NotContains(t, result, "slice_field") + assert.NotContains(t, result, "struct_field") + }) + + t.Run("slice field states: nil vs unset vs empty vs set", func(t *testing.T) { + t.Parallel() + // Test all possible slice states + nilSlice := TestContainer{ + SliceField: From[[]string](nil), // explicitly set to nil + } + unsetSlice := TestContainer{} // unset + emptySlice := TestContainer{ + SliceField: From(ptrFrom([]string{})), // empty slice + } + setSlice := TestContainer{ + SliceField: From(ptrFrom([]string{"a", "b"})), // slice with values + } + + // Verify nil slice + assert.True(t, nilSlice.SliceField.IsSet()) + assert.True(t, nilSlice.SliceField.IsNull()) + val, ok := nilSlice.SliceField.GetOrZero() + assert.True(t, ok) + assert.Nil(t, val) + + // Verify unset slice + assert.False(t, unsetSlice.SliceField.IsSet()) + assert.False(t, unsetSlice.SliceField.IsNull()) // Unset is not null + val, ok = unsetSlice.SliceField.GetOrZero() + assert.False(t, ok) + assert.Nil(t, val) + + // Verify empty slice + assert.True(t, emptySlice.SliceField.IsSet()) + assert.False(t, emptySlice.SliceField.IsNull()) + val, ok = emptySlice.SliceField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{}, val) + + // Verify set slice + assert.True(t, setSlice.SliceField.IsSet()) + assert.False(t, setSlice.SliceField.IsNull()) + val, ok = setSlice.SliceField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, []string{"a", "b"}, val) + + // Test JSON serialization for each state + nilData, err := json.Marshal(nilSlice) + require.NoError(t, err) + assert.Contains(t, string(nilData), `"slice_field":null`) + + unsetData, err := json.Marshal(unsetSlice) + require.NoError(t, err) + assert.NotContains(t, string(unsetData), "slice_field") // omitted due to omitempty + + emptyData, err := json.Marshal(emptySlice) + require.NoError(t, err) + assert.Contains(t, string(emptyData), `"slice_field":[]`) + + setData, err := json.Marshal(setSlice) + require.NoError(t, err) + assert.Contains(t, string(setData), `"slice_field":["a","b"]`) + }) + + t.Run("mixed states container", func(t *testing.T) { + t.Parallel() + container := TestContainer{ + StringField: From(ptrFrom("hello")), // set to value + IntField: From[int](nil), // set to nil + StructField: From(ptrFrom(TestStruct{Name: "Alice", Age: 25})), // set to value + } + + // Verify states + assert.True(t, container.StringField.IsSet()) + assert.False(t, container.StringField.IsNull()) + + assert.True(t, container.IntField.IsSet()) + assert.True(t, container.IntField.IsNull()) + + assert.False(t, container.SliceField.IsSet()) + assert.False(t, container.SliceField.IsNull()) // Unset is not null + + assert.True(t, container.StructField.IsSet()) + assert.False(t, container.StructField.IsNull()) + + // Test JSON serialization + data, err := json.Marshal(container) + require.NoError(t, err) + + var result map[string]interface{} + err = json.Unmarshal(data, &result) + require.NoError(t, err) + + assert.Equal(t, "hello", result["string_field"]) + assert.Nil(t, result["int_field"]) + assert.NotContains(t, result, "slice_field") // unset, so omitted + structResult := result["struct_field"].(map[string]interface{}) + assert.Equal(t, "Alice", structResult["name"]) + assert.Equal(t, float64(25), structResult["age"]) + }) + + t.Run("JSON unmarshaling preserves states", func(t *testing.T) { + t.Parallel() + // JSON with some fields missing, some null, some with values + jsonData := `{ + "string_field": "test", + "int_field": null, + "struct_field": {"name": "Bob", "age": 35} + }` + + var container TestContainer + err := json.Unmarshal([]byte(jsonData), &container) + require.NoError(t, err) + + // string_field: present with value + assert.True(t, container.StringField.IsSet()) + assert.False(t, container.StringField.IsNull()) + stringVal, ok := container.StringField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", stringVal) + + // int_field: present but null + assert.True(t, container.IntField.IsSet()) + assert.True(t, container.IntField.IsNull()) + intVal, ok := container.IntField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 0, intVal) // zero value + + // slice_field: missing from JSON, should remain unset + assert.False(t, container.SliceField.IsSet()) + assert.False(t, container.SliceField.IsNull()) // Unset is not null + sliceVal, ok := container.SliceField.GetOrZero() + assert.False(t, ok) + assert.Nil(t, sliceVal) + + // struct_field: present with value + assert.True(t, container.StructField.IsSet()) + assert.False(t, container.StructField.IsNull()) + structVal, ok := container.StructField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, TestStruct{Name: "Bob", Age: 35}, structVal) + }) +} + +// TestNilVsUnsetDistinction tests the key feature of distinguishing nil from unset +func TestNilVsUnsetDistinction(t *testing.T) { + t.Parallel() + t.Run("explicit nil vs unset", func(t *testing.T) { + t.Parallel() + // Explicitly set to nil + explicitNil := From[string](nil) + + // Unset + var unset OptionalNullable[string] + + // Both are null, but only one is set + assert.True(t, explicitNil.IsNull()) + assert.True(t, explicitNil.IsSet()) + + assert.False(t, unset.IsNull()) // Unset is not null + assert.False(t, unset.IsSet()) + + // Get behavior differs + got1, ok1 := explicitNil.GetOrZero() + got2, ok2 := unset.GetOrZero() + + assert.True(t, ok1) // explicitly set to nil returns true + assert.False(t, ok2) // unset returns false + assert.Equal(t, "", got1) // both return zero value + assert.Equal(t, "", got2) + + // Get behavior differs + ptr1, ok1 := explicitNil.Get() + ptr2, ok2 := unset.Get() + + assert.True(t, ok1) // explicitly set to nil returns true + assert.False(t, ok2) // unset returns false + assert.Nil(t, ptr1) // both return nil pointer + assert.Nil(t, ptr2) + }) + + t.Run("empty slice vs nil slice vs unset", func(t *testing.T) { + t.Parallel() + // Empty slice + emptyNullable := From(ptrFrom([]string{})) + + // Nil slice + nilNullable := From[[]string](nil) + + // Unset + var unsetNullable OptionalNullable[[]string] + + // All have different characteristics + assert.True(t, emptyNullable.IsSet()) + assert.False(t, emptyNullable.IsNull()) + + assert.True(t, nilNullable.IsSet()) + assert.True(t, nilNullable.IsNull()) + + assert.False(t, unsetNullable.IsSet()) + assert.False(t, unsetNullable.IsNull()) // Unset is not null + + // Get behavior + got1, ok1 := emptyNullable.GetOrZero() + got2, ok2 := nilNullable.GetOrZero() + got3, ok3 := unsetNullable.GetOrZero() + + assert.True(t, ok1) + assert.Equal(t, []string{}, got1) + + assert.True(t, ok2) + assert.Nil(t, got2) + + assert.False(t, ok3) + assert.Nil(t, got3) + }) +} + +// TestJSONOmitEmpty tests behavior with omitempty tag +func TestJSONOmitEmpty(t *testing.T) { + t.Parallel() + t.Run("marshal with omitempty", func(t *testing.T) { + t.Parallel() + // Test container with various nullable states + container := TestContainer{ + StringField: From(ptrFrom("test")), + IntField: From(ptrFrom(42)), + StructField: From[TestStruct](nil), // explicitly nil + } + + data, err := json.Marshal(container) + require.NoError(t, err) + + // Parse back to verify structure + var result map[string]interface{} + err = json.Unmarshal(data, &result) + require.NoError(t, err) + + // Should contain set fields + assert.Contains(t, result, "string_field") + assert.Contains(t, result, "int_field") + assert.Contains(t, result, "struct_field") + + // Should not contain unset field (due to omitempty) + // Note: This depends on how the marshaling handles unset fields + // The current implementation doesn't handle this case properly (see TODO) + }) + + t.Run("unmarshal missing fields", func(t *testing.T) { + t.Parallel() + // JSON with some fields missing + jsonData := `{"string_field": "test", "int_field": null}` + + var container TestContainer + err := json.Unmarshal([]byte(jsonData), &container) + require.NoError(t, err) + + // Present fields should be set + assert.True(t, container.StringField.IsSet()) + assert.False(t, container.StringField.IsNull()) + got, ok := container.StringField.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "test", got) + + // Null field should be set to nil + assert.True(t, container.IntField.IsSet()) + assert.True(t, container.IntField.IsNull()) + + // Missing fields should remain unset + assert.False(t, container.SliceField.IsSet()) + assert.False(t, container.StructField.IsSet()) + }) +} + +// TestEdgeCases tests various edge cases +func TestEdgeCases(t *testing.T) { + t.Parallel() + t.Run("zero values", func(t *testing.T) { + t.Parallel() + // Test with zero values that are not nil + intNullable := From(ptrFrom(0)) + stringNullable := From(ptrFrom("")) + + assert.True(t, intNullable.IsSet()) + assert.False(t, intNullable.IsNull()) + got, ok := intNullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, 0, got) + + assert.True(t, stringNullable.IsSet()) + assert.False(t, stringNullable.IsNull()) + got2, ok2 := stringNullable.GetOrZero() + assert.True(t, ok2) + assert.Equal(t, "", got2) + }) + + t.Run("pointer to pointer", func(t *testing.T) { + t.Parallel() + // Test with pointer to pointer type + inner := "test" + nullable := From(ptrFrom(&inner)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, &inner, got) + assert.Equal(t, "test", *got) + }) + + t.Run("complex struct", func(t *testing.T) { + t.Parallel() + complexStruct := struct { + Name string + Values []int + Metadata map[string]string + }{ + Name: "complex", + Values: []int{1, 2, 3}, + Metadata: map[string]string{ + "key1": "value1", + "key2": "value2", + }, + } + + nullable := From(ptrFrom(complexStruct)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, complexStruct, got) + }) +} + +// TestDoublePointers tests comprehensive double pointer scenarios +func TestDoublePointers(t *testing.T) { + t.Parallel() + + t.Run("string double pointer with value", func(t *testing.T) { + t.Parallel() + inner := "hello world" + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Equal(t, &inner, got) + assert.Equal(t, "hello world", *got) + }) + + t.Run("int double pointer with value", func(t *testing.T) { + t.Parallel() + inner := 42 + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Equal(t, &inner, got) + assert.Equal(t, 42, *got) + }) + + t.Run("double pointer to nil", func(t *testing.T) { + t.Parallel() + var ptr *string = nil + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Nil(t, got) + }) + + t.Run("nil double pointer", func(t *testing.T) { + t.Parallel() + nullable := From[*string](nil) + + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Nil(t, got) // zero value for **string is nil + }) + + t.Run("unset double pointer", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[*string] + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.False(t, ok) + assert.Nil(t, got) // zero value for **string is nil + }) + + t.Run("double pointer modification", func(t *testing.T) { + t.Parallel() + inner := "original" + ptr := &inner + nullable := From(ptrFrom(ptr)) + + // Verify original value + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "original", *got) + + // Modify through double pointer + *got = "modified" + assert.Equal(t, "modified", inner) + assert.Equal(t, "modified", *got) + }) + + t.Run("double pointer to struct", func(t *testing.T) { + t.Parallel() + inner := TestStruct{Name: "Alice", Age: 30} + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Equal(t, TestStruct{Name: "Alice", Age: 30}, *got) + + // Modify through double pointer + (*got).Name = "Bob" + assert.Equal(t, "Bob", inner.Name) + assert.Equal(t, "Bob", (*got).Name) + }) + + t.Run("double pointer to slice", func(t *testing.T) { + t.Parallel() + inner := []string{"a", "b", "c"} + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Equal(t, []string{"a", "b", "c"}, *got) + + // Modify through double pointer + *got = append(*got, "d") + assert.Equal(t, []string{"a", "b", "c", "d"}, inner) + assert.Equal(t, []string{"a", "b", "c", "d"}, *got) + }) + + t.Run("double pointer to empty slice", func(t *testing.T) { + t.Parallel() + inner := []string{} + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Equal(t, []string{}, *got) + }) + + t.Run("double pointer to nil slice", func(t *testing.T) { + t.Parallel() + var inner []string = nil + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr, got) + assert.Nil(t, *got) + }) + + t.Run("double pointer JSON marshaling", func(t *testing.T) { + t.Parallel() + inner := "json test" + ptr := &inner + nullable := From(ptrFrom(ptr)) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `"json test"`, string(data)) + }) + + t.Run("double pointer JSON unmarshaling", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[*string] + err := json.Unmarshal([]byte(`"json test"`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.NotNil(t, got) + assert.Equal(t, "json test", *got) + }) + + t.Run("double pointer JSON null marshaling", func(t *testing.T) { + t.Parallel() + nullable := From[*string](nil) + + data, err := json.Marshal(nullable) + require.NoError(t, err) + assert.Equal(t, `null`, string(data)) + }) + + t.Run("double pointer JSON null unmarshaling", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[*string] + err := json.Unmarshal([]byte(`null`), &nullable) + require.NoError(t, err) + + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Nil(t, got) + }) + + t.Run("double pointer round trip", func(t *testing.T) { + t.Parallel() + inner := "round trip test" + ptr := &inner + nullable1 := From(ptrFrom(ptr)) + + // Marshal + data, err := json.Marshal(nullable1) + require.NoError(t, err) + + // Unmarshal + var nullable2 OptionalNullable[*string] + err = json.Unmarshal(data, &nullable2) + require.NoError(t, err) + + // Compare states + assert.Equal(t, nullable1.IsSet(), nullable2.IsSet()) + assert.Equal(t, nullable1.IsNull(), nullable2.IsNull()) + + got1, ok1 := nullable1.GetOrZero() + got2, ok2 := nullable2.GetOrZero() + assert.Equal(t, ok1, ok2) + + // Values should be equal + assert.Equal(t, *got1, *got2) + }) + + t.Run("triple pointer", func(t *testing.T) { + t.Parallel() + inner := "triple" + ptr1 := &inner + ptr2 := &ptr1 + nullable := From(ptrFrom(ptr2)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, ptr2, got) + assert.Equal(t, ptr1, *got) + assert.Equal(t, "triple", **got) + }) + + t.Run("double pointer set and unset", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[*string] + + // Initially unset + assert.False(t, nullable.IsSet()) + + // Set to double pointer + inner := "set test" + ptr := &inner + nullable.Set(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "set test", *got) + + // Set to nil + nullable.Set(nil) + + assert.True(t, nullable.IsSet()) + assert.True(t, nullable.IsNull()) + + got, ok = nullable.GetOrZero() + assert.True(t, ok) + assert.Nil(t, got) + + // Unset + nullable.Unset() + + assert.False(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok = nullable.GetOrZero() + assert.False(t, ok) + assert.Nil(t, got) + }) + + t.Run("double pointer Get method", func(t *testing.T) { + t.Parallel() + inner := "get test" + ptr := &inner + nullable := From(ptrFrom(ptr)) + + // Test Get method + gotPtr, ok := nullable.Get() + assert.True(t, ok) + assert.NotNil(t, gotPtr) + assert.Equal(t, ptr, *gotPtr) + assert.Equal(t, "get test", **gotPtr) + + // Test with nil + nilNullable := From[*string](nil) + gotPtr, ok = nilNullable.Get() + assert.True(t, ok) + assert.Nil(t, gotPtr) + + // Test with unset + var unsetNullable OptionalNullable[*string] + gotPtr, ok = unsetNullable.Get() + assert.False(t, ok) + assert.Nil(t, gotPtr) + }) + + t.Run("double pointer zero values", func(t *testing.T) { + t.Parallel() + // Test with zero value string + inner := "" + ptr := &inner + nullable := From(ptrFrom(ptr)) + + assert.True(t, nullable.IsSet()) + assert.False(t, nullable.IsNull()) + + got, ok := nullable.GetOrZero() + assert.True(t, ok) + assert.Equal(t, "", *got) + + // Test with zero value int + innerInt := 0 + ptrInt := &innerInt + nullableInt := From(ptrFrom(ptrInt)) + + assert.True(t, nullableInt.IsSet()) + assert.False(t, nullableInt.IsNull()) + + gotInt, okInt := nullableInt.GetOrZero() + assert.True(t, okInt) + assert.Equal(t, 0, *gotInt) + }) +} + +// TestAsOptionalNullable tests the AsOptionalNullable helper function +func TestAsOptionalNullable(t *testing.T) { + t.Parallel() + + t.Run("with nullable string", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, "test", value) + }) + + t.Run("with nullable int", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom(42)) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, 42, value) + }) + + t.Run("with nullable nil", func(t *testing.T) { + t.Parallel() + nullable := From[string](nil) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Nil(t, value) + }) + + t.Run("with unset nullable", func(t *testing.T) { + t.Parallel() + var nullable OptionalNullable[string] + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.False(t, ok) + assert.Nil(t, result) + }) + + t.Run("with non-nullable string", func(t *testing.T) { + t.Parallel() + regularString := "not nullable" + reflectValue := reflect.ValueOf(regularString) + + result, ok := AsOptionalNullable(reflectValue) + assert.False(t, ok) + assert.Nil(t, result) + }) + + t.Run("with non-nullable int", func(t *testing.T) { + t.Parallel() + regularInt := 42 + reflectValue := reflect.ValueOf(regularInt) + + result, ok := AsOptionalNullable(reflectValue) + assert.False(t, ok) + assert.Nil(t, result) + }) + + t.Run("with non-nullable map", func(t *testing.T) { + t.Parallel() + regularMap := map[string]int{"key": 42} + reflectValue := reflect.ValueOf(regularMap) + + result, ok := AsOptionalNullable(reflectValue) + assert.False(t, ok) + assert.Nil(t, result) + }) + + t.Run("with non-nullable struct", func(t *testing.T) { + t.Parallel() + regularStruct := TestStruct{Name: "test", Age: 30} + reflectValue := reflect.ValueOf(regularStruct) + + result, ok := AsOptionalNullable(reflectValue) + assert.False(t, ok) + assert.Nil(t, result) + }) + + t.Run("with nullable double pointer", func(t *testing.T) { + t.Parallel() + inner := "test" + ptr := &inner + nullable := From(ptrFrom(ptr)) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, ptr, value) + assert.Equal(t, "test", *value.(*string)) + }) + + t.Run("with nullable slice", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom([]string{"a", "b", "c"})) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, []string{"a", "b", "c"}, value) + }) + + t.Run("with nullable struct", func(t *testing.T) { + t.Parallel() + testStruct := TestStruct{Name: "Alice", Age: 25} + nullable := From(ptrFrom(testStruct)) + reflectValue := reflect.ValueOf(nullable) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, testStruct, value) + }) + + t.Run("with pointer to nullable", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + ptrToNullable := &nullable + reflectValue := reflect.ValueOf(ptrToNullable) + + // This should work since the pointer to nullable still contains a nullable + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, "test", value) + }) + + t.Run("with interface containing nullable", func(t *testing.T) { + t.Parallel() + nullable := From(ptrFrom("test")) + var iface interface{} = nullable + reflectValue := reflect.ValueOf(iface) + + result, ok := AsOptionalNullable(reflectValue) + assert.True(t, ok) + assert.NotNil(t, result) + + value, isSet := result.GetUntyped() + assert.True(t, isSet) + assert.Equal(t, "test", value) + }) +} diff --git a/internal/sdk/relations.go b/internal/sdk/relations.go index e30855e5..54ab3dc6 100644 --- a/internal/sdk/relations.go +++ b/internal/sdk/relations.go @@ -67,7 +67,7 @@ func (s *Relations) GetRelations(ctx context.Context, request operations.GetRela BaseURL: baseURL, Context: ctx, OperationID: "getRelations", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -291,7 +291,7 @@ func (s *Relations) AddRelations(ctx context.Context, request operations.AddRela BaseURL: baseURL, Context: ctx, OperationID: "addRelations", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`) @@ -522,7 +522,7 @@ func (s *Relations) RemoveRelations(ctx context.Context, request operations.Remo BaseURL: baseURL, Context: ctx, OperationID: "removeRelations", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`) @@ -760,7 +760,7 @@ func (s *Relations) GetRelationsV2(ctx context.Context, request operations.GetRe BaseURL: baseURL, Context: ctx, OperationID: "getRelationsV2", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -988,7 +988,7 @@ func (s *Relations) GetRelationsV3(ctx context.Context, request operations.GetRe BaseURL: baseURL, Context: ctx, OperationID: "getRelationsV3", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1212,7 +1212,7 @@ func (s *Relations) GetRelatedEntitiesCount(ctx context.Context, request operati BaseURL: baseURL, Context: ctx, OperationID: "getRelatedEntitiesCount", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1436,7 +1436,7 @@ func (s *Relations) UpdateRelation(ctx context.Context, request operations.Updat BaseURL: baseURL, Context: ctx, OperationID: "updateRelation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`) @@ -1667,7 +1667,7 @@ func (s *Relations) DeleteRelation(ctx context.Context, request operations.Delet BaseURL: baseURL, Context: ctx, OperationID: "deleteRelation", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } diff --git a/internal/sdk/savedviews.go b/internal/sdk/savedviews.go index db10559b..71ab2391 100644 --- a/internal/sdk/savedviews.go +++ b/internal/sdk/savedviews.go @@ -64,7 +64,7 @@ func (s *SavedViews) ListSavedViews(ctx context.Context, request operations.List BaseURL: baseURL, Context: ctx, OperationID: "listSavedViews", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -267,7 +267,7 @@ func (s *SavedViews) CreateSavedView(ctx context.Context, request *shared.SavedV BaseURL: baseURL, Context: ctx, OperationID: "createSavedView", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -496,7 +496,7 @@ func (s *SavedViews) GetSavedView(ctx context.Context, request operations.GetSav BaseURL: baseURL, Context: ctx, OperationID: "getSavedView", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -716,7 +716,7 @@ func (s *SavedViews) UpdateSavedView(ctx context.Context, request operations.Upd BaseURL: baseURL, Context: ctx, OperationID: "updateSavedView", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`) @@ -922,7 +922,7 @@ func (s *SavedViews) PatchSavedView(ctx context.Context, request operations.Patc BaseURL: baseURL, Context: ctx, OperationID: "patchSavedView", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "SavedViewPartial", "json", `request:"mediaType=application/json"`) @@ -1128,7 +1128,7 @@ func (s *SavedViews) DeleteSavedView(ctx context.Context, request operations.Del BaseURL: baseURL, Context: ctx, OperationID: "deleteSavedView", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1330,7 +1330,7 @@ func (s *SavedViews) ListFavoriteViewsForUser(ctx context.Context, opts ...opera BaseURL: baseURL, Context: ctx, OperationID: "listFavoriteViewsForUser", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } diff --git a/internal/sdk/schemas.go b/internal/sdk/schemas.go index 62958f2b..4d23f2d5 100644 --- a/internal/sdk/schemas.go +++ b/internal/sdk/schemas.go @@ -64,7 +64,7 @@ func (s *Schemas) ListSchemas(ctx context.Context, request operations.ListSchema BaseURL: baseURL, Context: ctx, OperationID: "listSchemas", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -267,7 +267,7 @@ func (s *Schemas) GetSchema(ctx context.Context, request operations.GetSchemaReq BaseURL: baseURL, Context: ctx, OperationID: "getSchema", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -491,7 +491,7 @@ func (s *Schemas) PutSchema(ctx context.Context, request operations.PutSchemaReq BaseURL: baseURL, Context: ctx, OperationID: "putSchema", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "EntitySchemaItem", "json", `request:"mediaType=application/json"`) @@ -724,7 +724,7 @@ func (s *Schemas) DeleteSchema(ctx context.Context, request operations.DeleteSch BaseURL: baseURL, Context: ctx, OperationID: "deleteSchema", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -926,7 +926,7 @@ func (s *Schemas) GetJSONSchema(ctx context.Context, request operations.GetJSONS BaseURL: baseURL, Context: ctx, OperationID: "getJsonSchema", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1129,7 +1129,7 @@ func (s *Schemas) GetSchemaExample(ctx context.Context, request operations.GetSc BaseURL: baseURL, Context: ctx, OperationID: "getSchemaExample", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1351,7 +1351,7 @@ func (s *Schemas) GetSchemaVersions(ctx context.Context, request operations.GetS BaseURL: baseURL, Context: ctx, OperationID: "getSchemaVersions", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1554,7 +1554,7 @@ func (s *Schemas) ListAvailableCapabilities(ctx context.Context, request operati BaseURL: baseURL, Context: ctx, OperationID: "listAvailableCapabilities", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1753,7 +1753,7 @@ func (s *Schemas) ListSchemaBlueprints(ctx context.Context, opts ...operations.O BaseURL: baseURL, Context: ctx, OperationID: "listSchemaBlueprints", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1952,7 +1952,7 @@ func (s *Schemas) ListTaxonomyClassificationsForSchema(ctx context.Context, requ BaseURL: baseURL, Context: ctx, OperationID: "listTaxonomyClassificationsForSchema", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2155,7 +2155,7 @@ func (s *Schemas) CreateSchemaAttribute(ctx context.Context, request *shared.Att BaseURL: baseURL, Context: ctx, OperationID: "createSchemaAttribute", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -2384,7 +2384,7 @@ func (s *Schemas) GetSchemaAttribute(ctx context.Context, request operations.Get BaseURL: baseURL, Context: ctx, OperationID: "getSchemaAttribute", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2604,7 +2604,7 @@ func (s *Schemas) PutSchemaAttribute(ctx context.Context, request operations.Put BaseURL: baseURL, Context: ctx, OperationID: "putSchemaAttribute", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "AttributeWithCompositeID", "json", `request:"mediaType=application/json"`) @@ -2810,7 +2810,7 @@ func (s *Schemas) DeleteSchemaAttribute(ctx context.Context, request operations. BaseURL: baseURL, Context: ctx, OperationID: "deleteSchemaAttribute", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -3032,7 +3032,7 @@ func (s *Schemas) CreateSchemaCapability(ctx context.Context, request *shared.En BaseURL: baseURL, Context: ctx, OperationID: "createSchemaCapability", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -3261,7 +3261,7 @@ func (s *Schemas) GetSchemaCapability(ctx context.Context, request operations.Ge BaseURL: baseURL, Context: ctx, OperationID: "getSchemaCapability", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -3481,7 +3481,7 @@ func (s *Schemas) PutSchemaCapability(ctx context.Context, request operations.Pu BaseURL: baseURL, Context: ctx, OperationID: "putSchemaCapability", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "EntityCapabilityWithCompositeID", "json", `request:"mediaType=application/json"`) @@ -3687,7 +3687,7 @@ func (s *Schemas) DeleteSchemaCapability(ctx context.Context, request operations BaseURL: baseURL, Context: ctx, OperationID: "deleteSchemaCapability", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -3909,7 +3909,7 @@ func (s *Schemas) CreateSchemaGroup(ctx context.Context, request *shared.EntityS BaseURL: baseURL, Context: ctx, OperationID: "createSchemaGroup", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -4138,7 +4138,7 @@ func (s *Schemas) GetSchemaGroup(ctx context.Context, request operations.GetSche BaseURL: baseURL, Context: ctx, OperationID: "getSchemaGroup", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -4358,7 +4358,7 @@ func (s *Schemas) PutSchemaGroup(ctx context.Context, request operations.PutSche BaseURL: baseURL, Context: ctx, OperationID: "putSchemaGroup", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "EntitySchemaGroupWithCompositeID", "json", `request:"mediaType=application/json"`) @@ -4564,7 +4564,7 @@ func (s *Schemas) DeleteSchemaGroup(ctx context.Context, request operations.Dele BaseURL: baseURL, Context: ctx, OperationID: "deleteSchemaGroup", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -4786,7 +4786,7 @@ func (s *Schemas) CreateSchemaGroupHeadline(ctx context.Context, request *shared BaseURL: baseURL, Context: ctx, OperationID: "createSchemaGroupHeadline", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -5015,7 +5015,7 @@ func (s *Schemas) GetSchemaGroupHeadline(ctx context.Context, request operations BaseURL: baseURL, Context: ctx, OperationID: "getSchemaGroupHeadline", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -5235,7 +5235,7 @@ func (s *Schemas) PutSchemaGroupHeadline(ctx context.Context, request operations BaseURL: baseURL, Context: ctx, OperationID: "putSchemaGroupHeadline", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "GroupHeadlineWithCompositeID", "json", `request:"mediaType=application/json"`) @@ -5441,7 +5441,7 @@ func (s *Schemas) DeleteSchemaGroupHeadline(ctx context.Context, request operati BaseURL: baseURL, Context: ctx, OperationID: "deleteSchemaGroupHeadline", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } diff --git a/internal/sdk/sdk.go b/internal/sdk/sdk.go index 4666d05e..2e34ef1b 100644 --- a/internal/sdk/sdk.go +++ b/internal/sdk/sdk.go @@ -2,7 +2,7 @@ package sdk -// Generated from OpenAPI doc version 2.0.0 and generator version 2.694.1 +// Generated from OpenAPI doc version 2.0.0 and generator version 2.731.6 import ( "context" @@ -143,9 +143,9 @@ func WithTimeout(timeout time.Duration) SDKOption { // New creates a new instance of the SDK with the provided options func New(opts ...SDKOption) *SDK { sdk := &SDK{ - SDKVersion: "0.17.0", + SDKVersion: "0.18.0", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/terraform 0.17.0 2.694.1 2.0.0 github.com/epilot/terraform-provider-epilot-schema/internal/sdk", + UserAgent: "speakeasy-sdk/terraform 0.18.0 2.731.6 2.0.0 github.com/epilot/terraform-provider-epilot-schema/internal/sdk", ServerList: ServerList, }, hooks: hooks.New(), diff --git a/internal/sdk/taxonomy.go b/internal/sdk/taxonomy.go index 7885b062..8ef8ac2a 100644 --- a/internal/sdk/taxonomy.go +++ b/internal/sdk/taxonomy.go @@ -64,7 +64,7 @@ func (s *Taxonomy) ListTaxonomies(ctx context.Context, request operations.ListTa BaseURL: baseURL, Context: ctx, OperationID: "listTaxonomies", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -267,7 +267,7 @@ func (s *Taxonomy) CreateTaxonomy(ctx context.Context, request *shared.TaxonomyI BaseURL: baseURL, Context: ctx, OperationID: "createTaxonomy", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -497,7 +497,7 @@ func (s *Taxonomy) GetTaxonomy(ctx context.Context, request operations.GetTaxono BaseURL: baseURL, Context: ctx, OperationID: "getTaxonomy", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -717,7 +717,7 @@ func (s *Taxonomy) UpdateTaxonomy(ctx context.Context, request operations.Update BaseURL: baseURL, Context: ctx, OperationID: "updateTaxonomy", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Taxonomy", "json", `request:"mediaType=application/json"`) @@ -923,7 +923,7 @@ func (s *Taxonomy) DeleteTaxonomy(ctx context.Context, request operations.Delete BaseURL: baseURL, Context: ctx, OperationID: "deleteTaxonomy", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1129,7 +1129,7 @@ func (s *Taxonomy) UpdateClassificationsForTaxonomy(ctx context.Context, request BaseURL: baseURL, Context: ctx, OperationID: "updateClassificationsForTaxonomy", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "ClassificationsUpdate", "json", `request:"mediaType=application/json"`) @@ -1379,7 +1379,7 @@ func (s *Taxonomy) CreateTaxonomyClassification(ctx context.Context, request *sh BaseURL: baseURL, Context: ctx, OperationID: "createTaxonomyClassification", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -1611,7 +1611,7 @@ func (s *Taxonomy) GetTaxonomyClassification(ctx context.Context, request operat BaseURL: baseURL, Context: ctx, OperationID: "getTaxonomyClassification", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -1831,7 +1831,7 @@ func (s *Taxonomy) UpdateTaxonomyClassification(ctx context.Context, request ope BaseURL: baseURL, Context: ctx, OperationID: "updateTaxonomyClassification", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "TaxonomyClassification", "json", `request:"mediaType=application/json"`) @@ -2038,7 +2038,7 @@ func (s *Taxonomy) DeleteTaxonomyClassification(ctx context.Context, request ope BaseURL: baseURL, Context: ctx, OperationID: "deleteTaxonomyClassification", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2261,7 +2261,7 @@ func (s *Taxonomy) TaxonomyAutocomplete(ctx context.Context, request operations. BaseURL: baseURL, Context: ctx, OperationID: "taxonomyAutocomplete", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2464,7 +2464,7 @@ func (s *Taxonomy) TaxonomiesClassificationsSearch(ctx context.Context, request BaseURL: baseURL, Context: ctx, OperationID: "taxonomiesClassificationsSearch", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "RequestBody", "json", `request:"mediaType=application/json"`) @@ -2701,7 +2701,7 @@ func (s *Taxonomy) GetTaxonomyBulkActionJobs(ctx context.Context, request operat BaseURL: baseURL, Context: ctx, OperationID: "getTaxonomyBulkActionJobs", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -2904,7 +2904,7 @@ func (s *Taxonomy) GetTaxonomyBulkActionJobByID(ctx context.Context, request ope BaseURL: baseURL, Context: ctx, OperationID: "getTaxonomyBulkActionJobById", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -3104,7 +3104,7 @@ func (s *Taxonomy) CancelBulkAction(ctx context.Context, request operations.Canc BaseURL: baseURL, Context: ctx, OperationID: "cancelBulkAction", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } @@ -3333,7 +3333,7 @@ func (s *Taxonomy) BulkMoveClassifications(ctx context.Context, request *operati BaseURL: baseURL, Context: ctx, OperationID: "bulkMoveClassifications", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -3564,7 +3564,7 @@ func (s *Taxonomy) BulkMergeClassifications(ctx context.Context, request *operat BaseURL: baseURL, Context: ctx, OperationID: "bulkMergeClassifications", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) @@ -3796,7 +3796,7 @@ func (s *Taxonomy) BulkDeleteClassifications(ctx context.Context, request *opera BaseURL: baseURL, Context: ctx, OperationID: "bulkDeleteClassifications", - OAuth2Scopes: []string{}, + OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, true, "Request", "json", `request:"mediaType=application/json"`) diff --git a/internal/sdk/types/decimal.go b/internal/sdk/types/decimal.go deleted file mode 100644 index d8429bc6..00000000 --- a/internal/sdk/types/decimal.go +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package types - -import ( - "fmt" - - "github.com/ericlagergren/decimal" -) - -// MustNewDecimalFromString returns an instance of Decimal from a string -// Avoid using this function in production code. -func MustNewDecimalFromString(s string) *decimal.Big { - d, ok := new(decimal.Big).SetString(s) - if !ok { - panic(fmt.Errorf("failed to parse string as decimal.Big")) - } - - return d -}