Skip to content

Commit 866ec62

Browse files
committed
Remove available{Online,ForPickup,Electronically} parameters (removed in 2025-01-23)
1 parent 401799d commit 866ec62

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

tests/integration/helpers.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { randomUUID } from "crypto";
2-
import { Square, SquareClient, SquareEnvironment } from "../../src";
3-
import path from "path";
42
import { readFile } from "fs/promises";
3+
import path from "path";
4+
import { Square, SquareClient, SquareEnvironment } from "../../src";
55

66
export const createClient = (): SquareClient => {
77
const token = process.env.TEST_SQUARE_TOKEN;
@@ -81,9 +81,6 @@ export function createTestCatalogItem(opts: TestCatalogItemOptions = {}): Square
8181
name: opts.name || `Item ${newTestUuid()}`,
8282
description: opts.description || "Test item description",
8383
abbreviation: opts.abbreviation || "TST",
84-
availableOnline: true,
85-
availableForPickup: true,
86-
availableElectronically: false,
8784
variations: [variation],
8885
},
8986
};

tests/integration/inventory.serial.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { createClient, newTestUuid } from "./helpers";
21
import { Square, SquareClient } from "../../src";
2+
import { createClient, newTestUuid } from "./helpers";
33

44
describe("Inventory API", () => {
55
const client: SquareClient = createClient();
@@ -24,9 +24,6 @@ describe("Inventory API", () => {
2424
name: "Coffee",
2525
description: "Strong coffee",
2626
abbreviation: "C",
27-
availableOnline: true,
28-
availableForPickup: true,
29-
availableElectronically: false,
3027
variations: [
3128
{
3229
id: "#colombian-coffee",

0 commit comments

Comments
 (0)