Skip to content

Commit

Permalink
Merge pull request #139 from square/release/33.0.0
Browse files Browse the repository at this point in the history
Generated PR for Release: 33.0.0
  • Loading branch information
jessdelacruzsantos authored Nov 15, 2023
2 parents 9018966 + 0d508ae commit ec0d37e
Show file tree
Hide file tree
Showing 26 changed files with 168 additions and 217 deletions.
14 changes: 12 additions & 2 deletions doc/api/labor.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,15 +427,16 @@ async createShift(
```ts
const body: CreateShiftRequest = {
shift: {
startAt: '2019-01-25T03:11:00-05:00',
locationId: 'PAA1RJZZKXBFG',
startAt: '2019-01-25T03:11:00-05:00',
endAt: '2019-01-25T13:11:00-05:00',
wage: {
title: 'Barista',
hourlyRate: {
amount: BigInt(1100),
currency: 'USD',
},
tipEligible: true,
},
breaks: [
{
Expand All @@ -448,6 +449,10 @@ const body: CreateShiftRequest = {
}
],
teamMemberId: 'ormj0jJJZ5OZIzxrZYJI',
declaredCashTipMoney: {
amount: BigInt(500),
currency: 'USD',
},
},
idempotencyKey: 'HIDSNG5KS478L',
};
Expand Down Expand Up @@ -667,15 +672,16 @@ const id = 'id0';

const body: UpdateShiftRequest = {
shift: {
startAt: '2019-01-25T03:11:00-05:00',
locationId: 'PAA1RJZZKXBFG',
startAt: '2019-01-25T03:11:00-05:00',
endAt: '2019-01-25T13:11:00-05:00',
wage: {
title: 'Bartender',
hourlyRate: {
amount: BigInt(1500),
currency: 'USD',
},
tipEligible: true,
},
breaks: [
{
Expand All @@ -690,6 +696,10 @@ const body: UpdateShiftRequest = {
],
version: 1,
teamMemberId: 'ormj0jJJZ5OZIzxrZYJI',
declaredCashTipMoney: {
amount: BigInt(500),
currency: 'USD',
},
},
};

Expand Down
6 changes: 3 additions & 3 deletions doc/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:

| Parameter | Type | Description |
| --- | --- | --- |
| `squareVersion` | `string` | Square Connect API versions<br>*Default*: `'2023-10-18'` |
| `squareVersion` | `string` | Square Connect API versions<br>*Default*: `'2023-11-15'` |
| `customUrl` | `string` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'` |
| `environment` | `string` | The API environment. <br> **Default: `production`** |
| `additionalHeaders` | `Readonly<Record<string, string>>` | Additional headers to add to each API call<br>*Default*: `{}` |
Expand Down Expand Up @@ -40,7 +40,7 @@ The API client can be initialized as follows:

```ts
const client = new Client({
squareVersion: '2023-10-18',
squareVersion: '2023-11-15',
timeout: 60000,
additionalHeaders: {},
userAgentDetail: '',
Expand All @@ -55,7 +55,7 @@ const client = new Client({
import { ApiError, Client } from 'square';

const client = new Client({
squareVersion: '2023-10-18',
squareVersion: '2023-11-15',
timeout: 60000,
additionalHeaders: {},
userAgentDetail: '',
Expand Down
11 changes: 0 additions & 11 deletions doc/models/catalog-item.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ A [CatalogObject](../../doc/models/catalog-object.md) instance of the `ITEM` typ

```json
{
"object": {
"id": "#Cocoa",
"item_data": {
"abbreviation": "Ch",
"description": "Hot chocolate",
"name": "Cocoa",
"visibility": "PRIVATE"
},
"present_at_all_locations": true,
"type": "ITEM"
},
"name": "name6",
"description": "description6",
"abbreviation": "abbreviation8",
Expand Down
43 changes: 0 additions & 43 deletions doc/models/catalog-modifier-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,49 +26,6 @@ the modifier list are allowed.

```json
{
"id": "#MilkType",
"modifier_list_data": {
"allow_quantities": false,
"modifiers": [
{
"modifier_data": {
"name": "Whole Milk",
"price_money": {
"amount": 0,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Almond Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Soy Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
}
],
"name": "Milk Type",
"selection_type": "SINGLE"
},
"present_at_all_locations": true,
"type": "MODIFIER_LIST",
"name": "name4",
"ordinal": 226,
"selection_type": "SINGLE",
Expand Down
58 changes: 0 additions & 58 deletions doc/models/catalog-object-batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,6 @@ A batch of catalog objects.
{
"type": "PRICING_RULE",
"id": "id6",
"item_data": {
"object": {
"id": "#Cocoa",
"item_data": {
"abbreviation": "Ch",
"description": "Hot chocolate",
"name": "Cocoa",
"visibility": "PRIVATE"
},
"present_at_all_locations": true,
"type": "ITEM"
}
},
"category_data": {
"object": {
"category_data": {
Expand Down Expand Up @@ -73,51 +60,6 @@ A batch of catalog objects.
"type": "DISCOUNT"
}
},
"modifier_list_data": {
"id": "#MilkType",
"modifier_list_data": {
"allow_quantities": false,
"modifiers": [
{
"modifier_data": {
"name": "Whole Milk",
"price_money": {
"amount": 0,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Almond Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Soy Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
}
],
"name": "Milk Type",
"selection_type": "SINGLE"
},
"present_at_all_locations": true,
"type": "MODIFIER_LIST"
},
"modifier_data": {
"object": {
"modifier_data": {
Expand Down
58 changes: 0 additions & 58 deletions doc/models/catalog-object.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,6 @@ For a more detailed discussion of the Catalog data model, please see the
{
"type": "TAX",
"id": "id4",
"item_data": {
"object": {
"id": "#Cocoa",
"item_data": {
"abbreviation": "Ch",
"description": "Hot chocolate",
"name": "Cocoa",
"visibility": "PRIVATE"
},
"present_at_all_locations": true,
"type": "ITEM"
}
},
"category_data": {
"object": {
"category_data": {
Expand Down Expand Up @@ -107,51 +94,6 @@ For a more detailed discussion of the Catalog data model, please see the
"type": "DISCOUNT"
}
},
"modifier_list_data": {
"id": "#MilkType",
"modifier_list_data": {
"allow_quantities": false,
"modifiers": [
{
"modifier_data": {
"name": "Whole Milk",
"price_money": {
"amount": 0,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Almond Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Soy Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
}
],
"name": "Milk Type",
"selection_type": "SINGLE"
},
"present_at_all_locations": true,
"type": "MODIFIER_LIST"
},
"modifier_data": {
"object": {
"modifier_data": {
Expand Down
70 changes: 45 additions & 25 deletions doc/models/change-billing-anchor-date-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,12 @@ Defines output parameters in a request to the

```json
{
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
}
],
"subscription": {
"id": "id4",
"location_id": "location_id8",
"plan_variation_id": "plan_variation_id8",
"customer_id": "customer_id2",
"start_date": "start_date8"
},
"actions": [
{
"id": "id8",
"type": "RESUME",
"effective_date": "effective_date8",
"monthly_billing_anchor_date": 186,
"effective_date": "2023-11-01",
"id": "f0a1dfdc-675b-3a14-a640-99f7ac1cee83",
"monthly_billing_anchor_date": 1,
"type": "CHANGE_BILLING_ANCHOR_DATE",
"phases": [
{
"uid": "uid0",
Expand All @@ -68,6 +47,47 @@ Defines output parameters in a request to the
}
]
}
],
"subscription": {
"created_at": "2023-06-20T21:53:10Z",
"customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G",
"id": "9ba40961-995a-4a3d-8c53-048c40cafc13",
"location_id": "S8GWD5R9QB376",
"monthly_billing_anchor_date": 20,
"phases": [
{
"order_template_id": "E6oBY5WfQ2eN4pkYZwq4ka6n7KeZY",
"ordinal": 0,
"plan_phase_uid": "C66BKH3ASTDYGJJCEZXQQSS7",
"uid": "98d6f53b-40e1-4714-8827-032fd923be25"
}
],
"plan_variation_id": "FQ7CDXXWSLUJRPM3GFJSJGZ7",
"price_override_money": {
"amount": 2000,
"currency": "USD"
},
"source": {
"name": "My Application"
},
"status": "ACTIVE",
"timezone": "America/Los_Angeles",
"version": 3,
"start_date": "start_date8"
},
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
}
]
}
```
Expand Down
Loading

0 comments on commit ec0d37e

Please sign in to comment.