-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_upsert_merchant_custom_attribute_request.go
19 lines (17 loc) · 1.41 KB
/
model_upsert_merchant_custom_attribute_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 [UpsertMerchantCustomAttribute](https://developer.squareup.com/reference/square_2023-12-13/merchant-custom-attributes-api/upsert-merchant-custom-attribute) request.
type UpsertMerchantCustomAttributeRequest struct {
// The custom attribute to create or update, with the following fields: - `value`. This value must conform to the `schema` specified by the definition. For more information, see [Supported data types](https://developer.squareup.com/docs/devtools/customattributes/overview#supported-data-types). - The version field must match the current version of the custom attribute definition to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) If this is not important for your application, version can be set to -1. For any other values, the request fails with a BAD_REQUEST error.
CustomAttribute *CustomAttribute `json:"custom_attribute"`
// 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"`
}