-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_update_customer_custom_attribute_definition_request.go
19 lines (17 loc) · 1.64 KB
/
model_update_customer_custom_attribute_definition_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
* Square Connect API
*
* Client library for accessing the Square Connect APIs
*
* API version: 2.0
* Contact: developers@squareup.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
// Represents an [UpdateCustomerCustomAttributeDefinition](https://developer.squareup.com/reference/square_2023-12-13/customer-custom-attributes-api/update-customer-custom-attribute-definition) request.
type UpdateCustomerCustomAttributeDefinitionRequest struct {
// The custom attribute definition that contains the fields to update. This endpoint supports sparse updates, so only new or changed fields need to be included in the request. Only the following fields can be updated: - `name` - `description` - `visibility` - `schema` for a `Selection` data type. Only changes to the named options or the maximum number of allowed selections are supported. For more information, see [Updatable definition fields](https://developer.squareup.com/docs/customer-custom-attributes-api/custom-attribute-definitions#updatable-definition-fields). To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control, include the optional `version` field and specify the current version of the custom attribute definition.
CustomAttributeDefinition *CustomAttributeDefinition `json:"custom_attribute_definition"`
// A unique identifier for this request, used to ensure idempotency. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
IdempotencyKey string `json:"idempotency_key,omitempty"`
}