Skip to content

Commit 83a7090

Browse files
authored
Merge pull request #150 from square/fern-bot/04-16-2025-0315PM
🌿 Fern Regeneration -- April 16, 2025
2 parents 99193d6 + e69b9d6 commit 83a7090

20 files changed

+821
-69
lines changed

.mock/definition/__package__.yml

Lines changed: 125 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3378,6 +3378,38 @@ types:
33783378
from the `amount_money` and `buyer_supplied_money` fields.
33793379
source:
33803380
openapi: openapi/openapi.json
3381+
CatalogAvailabilityPeriod:
3382+
docs: Represents a time period of availability.
3383+
properties:
3384+
start_local_time:
3385+
type: optional<nullable<string>>
3386+
docs: >-
3387+
The start time of an availability period, specified in local time
3388+
using partial-time
3389+
3390+
RFC 3339 format. For example, `8:30:00` for a period starting at 8:30
3391+
in the morning.
3392+
3393+
Note that the seconds value is always :00, but it is appended for
3394+
conformance to the RFC.
3395+
end_local_time:
3396+
type: optional<nullable<string>>
3397+
docs: >-
3398+
The end time of an availability period, specified in local time using
3399+
partial-time
3400+
3401+
RFC 3339 format. For example, `21:00:00` for a period ending at 9:00
3402+
in the evening.
3403+
3404+
Note that the seconds value is always :00, but it is appended for
3405+
conformance to the RFC.
3406+
day_of_week:
3407+
type: optional<DayOfWeek>
3408+
docs: |-
3409+
The day of the week for this availability period.
3410+
See [DayOfWeek](#type-dayofweek) for possible values
3411+
source:
3412+
openapi: openapi/openapi.json
33813413
CatalogCategory:
33823414
docs: A category to which a `CatalogItem` instance belongs.
33833415
properties:
@@ -4188,6 +4220,16 @@ types:
41884220
variations in a specified order.
41894221

41904222
Maximum: 6 item options.
4223+
ecom_uri:
4224+
type: optional<nullable<string>>
4225+
docs: >-
4226+
Deprecated; see go/ecomUriUseCases. A URI pointing to a published
4227+
e-commerce product page for the Item.
4228+
ecom_image_uris:
4229+
type: optional<nullable<list<string>>>
4230+
docs: >-
4231+
Deprecated; see go/ecomUriUseCases. A comma-separated list of encoded
4232+
URIs pointing to a set of published e-commerce images for the Item.
41914233
image_ids:
41924234
type: optional<nullable<list<string>>>
41934235
docs: |-
@@ -4287,6 +4329,9 @@ types:
42874329
reporting_category:
42884330
type: optional<CatalogObjectCategory>
42894331
docs: The item's reporting category.
4332+
is_alcoholic:
4333+
type: optional<nullable<boolean>>
4334+
docs: Indicates whether this item is alcoholic (`true`) or not (`false`).
42904335
source:
42914336
openapi: openapi/openapi.json
42924337
CatalogItemFoodAndBeverageDetails:
@@ -5129,6 +5174,8 @@ types:
51295174
CHECKOUT_LINK: CatalogObjectCheckoutLink
51305175
ADDRESS: CatalogObjectAddress
51315176
SUBSCRIPTION_PRODUCT: CatalogObjectSubscriptionProduct
5177+
SUBSCRIPTION_PLAN_VARIATION: CatalogObjectSubscriptionPlanVariation
5178+
AVAILABILITY_PERIOD: CatalogObjectAvailabilityPeriod
51325179
source:
51335180
openapi: openapi/openapi.json
51345181
CatalogObjectBatch:
@@ -6156,6 +6203,43 @@ types:
61566203
SubscriptionPlan.
61576204
source:
61586205
openapi: openapi/openapi.json
6206+
CatalogSubscriptionPlanVariation:
6207+
docs: >-
6208+
Describes a subscription plan variation. A subscription plan variation
6209+
represents how the subscription for a product or service is sold.
6210+
6211+
For more information, see [Subscription Plans and
6212+
Variations](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations).
6213+
properties:
6214+
name:
6215+
type: string
6216+
docs: The name of the plan variation.
6217+
phases:
6218+
docs: >-
6219+
A list containing each [SubscriptionPhase](entity:SubscriptionPhase)
6220+
for this plan variation.
6221+
type: list<SubscriptionPhase>
6222+
subscription_plan_id:
6223+
type: optional<nullable<string>>
6224+
docs: The id of the subscription plan, if there is one.
6225+
monthly_billing_anchor_date:
6226+
type: optional<nullable<long>>
6227+
docs: The day of the month the billing period starts.
6228+
can_prorate:
6229+
type: optional<nullable<boolean>>
6230+
docs: Whether bills for this plan variation can be split for proration.
6231+
successor_plan_variation_id:
6232+
type: optional<nullable<string>>
6233+
docs: >-
6234+
The ID of a "successor" plan variation to this one. If the field is
6235+
set, and this object is disabled at all
6236+
6237+
locations, it indicates that this variation is deprecated and the
6238+
object identified by the successor ID be used in
6239+
6240+
its stead.
6241+
source:
6242+
openapi: openapi/openapi.json
61596243
CatalogTax:
61606244
docs: A tax applicable to an item.
61616245
properties:
@@ -13464,12 +13548,20 @@ types:
1346413548
public_url:
1346513549
type: optional<string>
1346613550
docs: >-
13467-
The URL of the Square-hosted invoice page.
13551+
A temporary link to the Square-hosted payment page where the customer
13552+
can pay the
13553+
13554+
invoice. If the link expires, customers can provide the email address
13555+
or phone number
13556+
13557+
associated with the invoice and request a new link directly from the
13558+
expired payment page.
1346813559

13469-
After you publish the invoice using the `PublishInvoice` endpoint,
13470-
Square hosts the invoice
1347113560

13472-
page and returns the page URL in the response.
13561+
This field is added after the invoice is published and reaches the
13562+
scheduled date
13563+
13564+
(if one is defined).
1347313565
access: read-only
1347413566
next_payment_amount_money:
1347513567
type: optional<Money>
@@ -14181,7 +14273,7 @@ types:
1418114273
- CANCELED
1418214274
- FAILED
1418314275
- PAYMENT_PENDING
14184-
docs: Indicates the status of an invoice.
14276+
docs: Indicates the status of an [invoice](entity:Invoice).
1418514277
source:
1418614278
openapi: openapi/openapi.json
1418714279
ItemVariationLocationOverrides:
@@ -20691,9 +20783,10 @@ types:
2069120783
type: optional<nullable<boolean>>
2069220784
docs: >-
2069320785
Indicates whether the `Payment` objects created from this
20694-
`TerminalCheckout` are automatically
20786+
`TerminalCheckout` are
2069520787

20696-
`COMPLETED` or left in an `APPROVED` state for later modification.
20788+
automatically `COMPLETED` or left in an `APPROVED` state for later
20789+
modification.
2069720790

2069820791

2069920792
Default: true
@@ -25001,9 +25094,7 @@ types:
2500125094
docs: The reference to the Square order ID for the checkout request.
2500225095
payment_options:
2500325096
type: optional<PaymentOptions>
25004-
docs: >-
25005-
Payment-specific options for the checkout request. Supported only in
25006-
the US.
25097+
docs: Payment-specific options for the checkout request.
2500725098
device_options:
2500825099
type: DeviceCheckoutOptions
2500925100
docs: >-
@@ -25114,9 +25205,6 @@ types:
2511425205
To set this field, PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS OAuth
2511525206
permission is required. For more information, see
2511625207
[Permissions](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees#permissions).
25117-
25118-
25119-
Supported only in the US.
2512025208
statement_description_identifier:
2512125209
type: optional<nullable<string>>
2512225210
docs: >-
@@ -25126,8 +25214,7 @@ types:
2512625214
part of the statement description. This can be, for example, an
2512725215
invoice number, ticket number,
2512825216

25129-
or short description that uniquely identifies the purchase. Supported
25130-
only in the US.
25217+
or short description that uniquely identifies the purchase.
2513125218
validation:
2513225219
maxLength: 20
2513325220
tip_money:
@@ -25137,9 +25224,7 @@ types:
2513725224
may only be set for a
2513825225

2513925226
checkout that has tipping disabled (`tip_settings.allow_tipping` is
25140-
`false`). Supported only in
25141-
25142-
the US.
25227+
`false`).
2514325228
source:
2514425229
openapi: openapi/openapi.json
2514525230
TerminalCheckoutQuery:
@@ -26939,6 +27024,28 @@ types:
2693927024
- CatalogObjectBase
2694027025
source:
2694127026
openapi: openapi/openapi.json
27027+
CatalogObjectSubscriptionPlanVariation:
27028+
properties:
27029+
subscription_plan_variation_data:
27030+
type: optional<CatalogSubscriptionPlanVariation>
27031+
docs: >-
27032+
Structured data for a `CatalogSubscriptionPlanVariation`, set for
27033+
CatalogObjects of type `SUBSCRIPTION_PLAN_VARIATION`.
27034+
extends:
27035+
- CatalogObjectBase
27036+
source:
27037+
openapi: openapi/openapi.json
27038+
CatalogObjectAvailabilityPeriod:
27039+
properties:
27040+
availability_period_data:
27041+
type: optional<CatalogAvailabilityPeriod>
27042+
docs: >-
27043+
Structured data for a `CatalogAvailabilityPeriod`, set for
27044+
CatalogObjects of type `AVAILABILITY_PERIOD`.
27045+
extends:
27046+
- CatalogObjectBase
27047+
source:
27048+
openapi: openapi/openapi.json
2694227049
CatalogObjectComponent:
2694327050
properties: {}
2694427051
extends:

.mock/definition/api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ headers:
1010
Square-Version:
1111
name: version
1212
env: VERSION
13-
type: literal<"2025-03-19">
13+
type: literal<"2025-04-16">
1414
auth-schemes:
1515
Bearer:
1616
scheme: bearer

.mock/definition/catalog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ service:
4949
body:
5050
properties:
5151
object_ids:
52-
type: optional<nullable<list<string>>>
5352
docs: >-
5453
The IDs of the CatalogObjects to be deleted. When an object is
5554
deleted, other objects
@@ -58,6 +57,7 @@ service:
5857
(for example, deleting a
5958
6059
CatalogItem will delete its CatalogItemVariation.
60+
type: list<string>
6161
content-type: application/json
6262
response:
6363
docs: Success

.mock/definition/catalog/object.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ service:
111111
skip_modifier_screen: true
112112
item_options:
113113
- {}
114+
ecom_uri: ecom_uri
115+
ecom_image_uris:
116+
- ecom_image_uris
114117
image_ids:
115118
- image_ids
116119
sort_name: sort_name
@@ -119,6 +122,7 @@ service:
119122
channels:
120123
- channels
121124
is_archived: true
125+
is_alcoholic: true
122126
type: ITEM
123127
id_mappings:
124128
- client_object_id: '#Cocoa'
@@ -269,6 +273,9 @@ service:
269273
skip_modifier_screen: true
270274
item_options:
271275
- {}
276+
ecom_uri: ecom_uri
277+
ecom_image_uris:
278+
- ecom_image_uris
272279
image_ids:
273280
- image_ids
274281
sort_name: sort_name
@@ -277,6 +284,7 @@ service:
277284
channels:
278285
- channels
279286
is_archived: true
287+
is_alcoholic: true
280288
type: ITEM
281289
related_objects:
282290
- id: id

.mock/definition/invoices.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ service:
160160
title: title
161161
description: description
162162
scheduled_at: scheduled_at
163-
public_url: https://squareup.com/pay-invoice/h9sfsfTGTSnYEhISUDBhEQ
163+
public_url: >-
164+
https://squareup.com/pay-invoice/invtmp:5e22a2c2-47c1-46d6-b061-808764dfe2b9
164165
next_payment_amount_money:
165166
amount: 3000
166167
currency: USD
@@ -508,7 +509,8 @@ service:
508509
title: title
509510
description: description
510511
scheduled_at: scheduled_at
511-
public_url: https://squareup.com/pay-invoice/h9sfsfTGTSnYEhISUDBhEQ
512+
public_url: >-
513+
https://squareup.com/pay-invoice/invtmp:5e22a2c2-47c1-46d6-b061-808764dfe2b9
512514
next_payment_amount_money:
513515
amount: 3000
514516
currency: USD
@@ -1148,7 +1150,7 @@ service:
11481150
description: We appreciate your business!
11491151
scheduled_at: '2030-01-13T10:00:00Z'
11501152
public_url: >-
1151-
https://squareup.com/pay-invoice/inv:0-ChCHu2mZEabLeeHahQnXDjZQECY
1153+
https://squareup.com/pay-invoice/invtmp:5e22a2c2-47c1-46d6-b061-808764dfe2b9
11521154
next_payment_amount_money:
11531155
amount: 1000000
11541156
currency: UNKNOWN_CURRENCY

.mock/fern.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"organization" : "square",
3-
"version" : "0.56.24"
3+
"version" : "0.57.17"
44
}

0 commit comments

Comments
 (0)