-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_clone_order_request.go
21 lines (19 loc) · 1.22 KB
/
model_clone_order_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* 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
// Defines the fields that are included in requests to the [CloneOrder](https://developer.squareup.com/reference/square_2023-12-13/orders-api/clone-order) endpoint.
type CloneOrderRequest struct {
// The ID of the order to clone.
OrderId string `json:"order_id"`
// An optional order version for concurrency protection. If a version is provided, it must match the latest stored version of the order to clone. If a version is not provided, the API clones the latest version.
Version int32 `json:"version,omitempty"`
// A value you specify that uniquely identifies this clone request. If you are unsure whether a particular order was cloned successfully, you can reattempt the call with the same idempotency key without worrying about creating duplicate cloned orders. The originally cloned order is returned. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
IdempotencyKey string `json:"idempotency_key,omitempty"`
}