Skip to content

Commit

Permalink
Generated PR for Release: 33.0.0.20231115
Browse files Browse the repository at this point in the history
  • Loading branch information
autobot committed Nov 15, 2023
1 parent 773b5b3 commit a226fbc
Show file tree
Hide file tree
Showing 29 changed files with 328 additions and 273 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "square/square",
"description": "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.",
"version": "32.0.0.20231018",
"version": "33.0.0.20231115",
"type": "library",
"keywords": [
"Square",
Expand Down
18 changes: 16 additions & 2 deletions doc/apis/labor.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ This method returns a `Square\Utils\ApiResponse` instance. The `getResult()` met
```php
$body = CreateShiftRequestBuilder::init(
ShiftBuilder::init(
'PAA1RJZZKXBFG',
'2019-01-25T03:11:00-05:00'
)
->locationId('PAA1RJZZKXBFG')
->endAt('2019-01-25T13:11:00-05:00')
->wage(
ShiftWageBuilder::init()
Expand All @@ -384,6 +384,7 @@ $body = CreateShiftRequestBuilder::init(
->currency(Currency::USD)
->build()
)
->tipEligible(true)
->build()
)
->breaks(
Expand All @@ -400,6 +401,12 @@ $body = CreateShiftRequestBuilder::init(
]
)
->teamMemberId('ormj0jJJZ5OZIzxrZYJI')
->declaredCashTipMoney(
MoneyBuilder::init()
->amount(500)
->currency(Currency::USD)
->build()
)
->build()
)
->idempotencyKey('HIDSNG5KS478L')
Expand Down Expand Up @@ -599,9 +606,9 @@ $id = 'id0';

$body = UpdateShiftRequestBuilder::init(
ShiftBuilder::init(
'PAA1RJZZKXBFG',
'2019-01-25T03:11:00-05:00'
)
->locationId('PAA1RJZZKXBFG')
->endAt('2019-01-25T13:11:00-05:00')
->wage(
ShiftWageBuilder::init()
Expand All @@ -612,6 +619,7 @@ $body = UpdateShiftRequestBuilder::init(
->currency(Currency::USD)
->build()
)
->tipEligible(true)
->build()
)
->breaks(
Expand All @@ -630,6 +638,12 @@ $body = UpdateShiftRequestBuilder::init(
)
->version(1)
->teamMemberId('ormj0jJJZ5OZIzxrZYJI')
->declaredCashTipMoney(
MoneyBuilder::init()
->amount(500)
->currency(Currency::USD)
->build()
)
->build()
)->build();

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`** |
| `timeout` | `int` | Timeout for API calls in seconds.<br>*Default*: `60` |
Expand All @@ -26,7 +26,7 @@ The API client can be initialized as follows:
```php
$client = SquareClientBuilder::init()
->accessToken('AccessToken')
->squareVersion('2023-10-18')
->squareVersion('2023-11-15')
->environment('production')
->customUrl('https://connect.squareup.com')
->build();
Expand All @@ -51,7 +51,7 @@ use Square\SquareClientBuilder;

$client = SquareClientBuilder::init()
->accessToken('AccessToken')
->squareVersion('2023-10-18')
->squareVersion('2023-11-15')
->build();

$apiResponse = $client->getLocationsApi()->listLocations();
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 a226fbc

Please sign in to comment.