You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository **cannot** accept Pull Requests. If you wish to proceed with opening this PR, please understand that your code **will not** be pulled into this repository. Consider opening an issue which lays out the problem instead. Thank you very much for your efforts and highlighting issues!
3
+
4
+
Please direct all technical support questions, feature requests, API-related issues, and general discussions to our Square-supported developer channels. For public support, [join us in our Square Developer Discord server](https://discord.com/invite/squaredev) or [post in our Developer Forums](https://developer.squareup.com/forums). For private support, [contact our Developer Success Engineers](https://squareup.com/help/us/en/contact?panel=BF53A9C8EF68) directly.
|`clientId`|`String`| Template, Required | Your application ID, which is available on the **OAuth** page in the [Developer Dashboard](https://developer.squareup.com/apps). |
57
-
|`body`|[`RenewTokenRequest`](../../doc/models/renew-token-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
Copy file name to clipboardExpand all lines: doc/client.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:
5
5
6
6
| Parameter | Type | Description |
7
7
| --- | --- | --- |
8
-
|`squareVersion`|`String`| Square Connect API versions<br>*Default*: `"2024-03-20"`|
8
+
|`squareVersion`|`String`| Square Connect API versions<br>*Default*: `"2024-04-17"`|
9
9
|`customUrl`|`String`| Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `"https://connect.squareup.com"`|
10
10
|`environment`|`string`| The API environment. <br> **Default: `production`**|
Copy file name to clipboardExpand all lines: doc/models/catalog-custom-attribute-definition.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ to store any sensitive information (personally identifiable information, card de
19
19
|`Name`|`String`| Required | The name of this definition for API and seller-facing UI purposes.<br>The name must be unique within the (merchant, application) pair. Required.<br>May not be empty and may not exceed 255 characters. Can be modified after creation.<br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `255`| String getName() |
20
20
|`Description`|`String`| Optional | Seller-oriented description of the meaning of this Custom Attribute,<br>any constraints that the seller should observe, etc. May be displayed as a tooltip in Square UIs.<br>**Constraints**: *Maximum Length*: `255`| String getDescription() |
21
21
|`SourceApplication`|[`SourceApplication`](../../doc/models/source-application.md)| Optional | Represents information about the application used to generate a change. | SourceApplication getSourceApplication() |
22
-
|`AllowedObjectTypes`|[`List<String>`](../../doc/models/catalog-object-type.md)| Required | The set of `CatalogObject` types that this custom atttribute may be applied to.<br>Currently, only `ITEM`, `ITEM_VARIATION`, and `MODIFIER` are allowed. At least one type must be included.<br>See [CatalogObjectType](#type-catalogobjecttype) for possible values | List<String> getAllowedObjectTypes() |
22
+
|`AllowedObjectTypes`|[`List<String>`](../../doc/models/catalog-object-type.md)| Required | The set of `CatalogObject` types that this custom atttribute may be applied to.<br>Currently, only `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, and `CATEGORY` are allowed. At least one type must be included.<br>See [CatalogObjectType](#type-catalogobjecttype) for possible values | List<String> getAllowedObjectTypes() |
23
23
|`SellerVisibility`|[`String`](../../doc/models/catalog-custom-attribute-definition-seller-visibility.md)| Optional | Defines the visibility of a custom attribute to sellers in Square<br>client applications, Square APIs or in Square UIs (including Square Point<br>of Sale applications and Square Dashboard). | String getSellerVisibility() |
24
24
|`AppVisibility`|[`String`](../../doc/models/catalog-custom-attribute-definition-app-visibility.md)| Optional | Defines the visibility of a custom attribute to applications other than their<br>creating application. | String getAppVisibility() |
25
25
|`StringConfig`|[`CatalogCustomAttributeDefinitionStringConfig`](../../doc/models/catalog-custom-attribute-definition-string-config.md)| Optional | Configuration associated with Custom Attribute Definitions of type `STRING`. | CatalogCustomAttributeDefinitionStringConfig getStringConfig() |
|`Type`|[`String`](../../doc/models/order-line-item-tax-type.md)| Optional | Indicates how the tax is applied to the associated line item or order. | String getType() |
23
-
|`Percentage`|`String`| Optional | The percentage of the tax, as a string representation of a decimal<br>number. For example, a value of `"7.25"` corresponds to a percentage of<br>7.25%.<br><br>Either `percentage` or `amount_money` should be set, but not both.<br>**Constraints**: *Maximum Length*: `10`| String getPercentage() |
23
+
|`Percentage`|`String`| Optional | The percentage of the tax, as a string representation of a decimal<br>number. For example, a value of `"7.25"` corresponds to a percentage of<br>7.25%.<br>**Constraints**: *Maximum Length*: `10`| String getPercentage() |
24
24
| `Metadata` | `Map<String, String>` | Optional | Application-defined data attached to this tax. Metadata fields are intended<br>to store descriptive references or associations with an entity in another system or store brief<br>information about the object. Square does not process this field; it only stores and returns it<br>in relevant API calls. Do not use metadata to store any sensitive information (such as personally<br>identifiable information or card details).<br><br>Keys written by applications must be 60 characters or less and must be in the character set<br>`[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed<br>with a namespace, separated from the key with a ':' character.<br><br>Values have a maximum length of 255 characters.<br><br>An application can have up to 10 entries per metadata field.<br><br>Entries written by applications are private and can only be read or modified by the same<br>application.<br><br>For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). | Map<String, String> getMetadata() |
25
25
|`AppliedMoney`|[`Money`](../../doc/models/money.md)| Optional | Represents an amount of money. `Money` fields can be signed or unsigned.<br>Fields that do not explicitly define whether they are signed or unsigned are<br>considered unsigned and can only hold positive amounts. For signed fields, the<br>sign of the value indicates the purpose of the money transfer. See<br>[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)<br>for more information. | Money getAppliedMoney() |
26
26
|`Scope`|[`String`](../../doc/models/order-line-item-tax-scope.md)| Optional | Indicates whether this is a line-item or order-level tax. | String getScope() |
Copy file name to clipboardExpand all lines: doc/models/order.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,8 @@ itemization data.
33
33
|`Tenders`|[`List<Tender>`](../../doc/models/tender.md)| Optional | The tenders that were used to pay for the order. | List<Tender> getTenders() |
34
34
|`Refunds`|[`List<Refund>`](../../doc/models/refund.md)| Optional | The refunds that are part of this order. | List<Refund> getRefunds() |
35
35
| `Metadata` | `Map<String, String>` | Optional | Application-defined data attached to this order. Metadata fields are intended<br>to store descriptive references or associations with an entity in another system or store brief<br>information about the object. Square does not process this field; it only stores and returns it<br>in relevant API calls. Do not use metadata to store any sensitive information (such as personally<br>identifiable information or card details).<br><br>Keys written by applications must be 60 characters or less and must be in the character set<br>`[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed<br>with a namespace, separated from the key with a ':' character.<br><br>Values have a maximum length of 255 characters.<br><br>An application can have up to 10 entries per metadata field.<br><br>Entries written by applications are private and can only be read or modified by the same<br>application.<br><br>For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). | Map<String, String> getMetadata() |
36
-
|`CreatedAt`|`String`| Optional | The timestamp for when the order was created, in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). | String getCreatedAt() |
37
-
|`UpdatedAt`|`String`| Optional | The timestamp for when the order was last updated, in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). | String getUpdatedAt() |
36
+
|`CreatedAt`|`String`| Optional | The timestamp for when the order was created, at server side, in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). | String getCreatedAt() |
37
+
|`UpdatedAt`|`String`| Optional | The timestamp for when the order was last updated, at server side, in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). | String getUpdatedAt() |
38
38
|`ClosedAt`|`String`| Optional | The timestamp for when the order reached a terminal [state](entity:OrderState), in RFC 3339 format (for example "2016-09-04T23:59:33.123Z"). | String getClosedAt() |
39
39
|`State`|[`String`](../../doc/models/order-state.md)| Optional | The state of the order. | String getState() |
40
40
|`Version`|`Integer`| Optional | The version number, which is incremented each time an update is committed to the order.<br>Orders not created through the API do not include a version number and<br>therefore cannot be updated.<br><br>[Read more about working with versions](https://developer.squareup.com/docs/orders-api/manage-orders/update-orders). | Integer getVersion() |
0 commit comments