Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 780d410

Browse files
authored
Merge pull request #941 from Shopify/add_2023_07_version
Add 2023 07 version
2 parents 8f3757d + 0810def commit 780d410

474 files changed

Lines changed: 27429 additions & 3033 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/fifty-socks-jog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/shopify-api': minor
3+
---
4+
5+
Adding support for 2023-07 API version

lib/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ export enum ApiVersion {
1111
October22 = '2022-10',
1212
January23 = '2023-01',
1313
April23 = '2023-04',
14+
July23 = '2023-07',
1415
Unstable = 'unstable',
1516
}
1617

1718
export const LIBRARY_NAME = 'Shopify API Library';
18-
export const LATEST_API_VERSION = ApiVersion.April23;
19+
export const LATEST_API_VERSION = ApiVersion.July23;
1920

2021
/* eslint-disable @shopify/typescript/prefer-pascal-case-enums */
2122
export enum ShopifyHeader {

rest/admin/2022-04/fulfillment_order.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ interface CloseArgs {
2727
}
2828
interface HoldArgs {
2929
[key: string]: unknown;
30-
reason?: unknown;
31-
reason_notes?: unknown;
32-
notify_merchant?: unknown;
30+
fulfillment_hold?: unknown;
3331
body?: {[key: string]: unknown} | null;
3432
}
3533
interface MoveArgs {
@@ -140,9 +138,7 @@ export class FulfillmentOrder extends Base {
140138

141139
public async hold(
142140
{
143-
reason = null,
144-
reason_notes = null,
145-
notify_merchant = null,
141+
fulfillment_hold = null,
146142
body = null,
147143
...otherArgs
148144
}: HoldArgs
@@ -152,7 +148,7 @@ export class FulfillmentOrder extends Base {
152148
operation: "hold",
153149
session: this.session,
154150
urlIds: {"id": this.id},
155-
params: {"reason": reason, "reason_notes": reason_notes, "notify_merchant": notify_merchant, ...otherArgs},
151+
params: {"fulfillment_hold": fulfillment_hold, ...otherArgs},
156152
body: body,
157153
entity: this,
158154
});

rest/admin/2022-04/shop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class Shop extends Base {
8989
public shop_owner: string | null;
9090
public source: string | null;
9191
public tax_shipping: string | null;
92-
public taxes_included: string | null;
92+
public taxes_included: boolean | null;
9393
public timezone: string | null;
9494
public transactional_sms_disabled: boolean | null;
9595
public updated_at: string | null;

rest/admin/2022-07/fulfillment_order.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ interface CloseArgs {
2727
}
2828
interface HoldArgs {
2929
[key: string]: unknown;
30-
reason?: unknown;
31-
reason_notes?: unknown;
32-
notify_merchant?: unknown;
30+
fulfillment_hold?: unknown;
3331
body?: {[key: string]: unknown} | null;
3432
}
3533
interface MoveArgs {
@@ -147,9 +145,7 @@ export class FulfillmentOrder extends Base {
147145

148146
public async hold(
149147
{
150-
reason = null,
151-
reason_notes = null,
152-
notify_merchant = null,
148+
fulfillment_hold = null,
153149
body = null,
154150
...otherArgs
155151
}: HoldArgs
@@ -159,7 +155,7 @@ export class FulfillmentOrder extends Base {
159155
operation: "hold",
160156
session: this.session,
161157
urlIds: {"id": this.id},
162-
params: {"reason": reason, "reason_notes": reason_notes, "notify_merchant": notify_merchant, ...otherArgs},
158+
params: {"fulfillment_hold": fulfillment_hold, ...otherArgs},
163159
body: body,
164160
entity: this,
165161
});

rest/admin/2022-07/shop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class Shop extends Base {
8989
public shop_owner: string | null;
9090
public source: string | null;
9191
public tax_shipping: string | null;
92-
public taxes_included: string | null;
92+
public taxes_included: boolean | null;
9393
public timezone: string | null;
9494
public transactional_sms_disabled: boolean | null;
9595
public updated_at: string | null;

rest/admin/2022-10/fulfillment_order.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ interface CloseArgs {
2727
}
2828
interface HoldArgs {
2929
[key: string]: unknown;
30-
reason?: unknown;
31-
reason_notes?: unknown;
32-
notify_merchant?: unknown;
30+
fulfillment_hold?: unknown;
3331
body?: {[key: string]: unknown} | null;
3432
}
3533
interface MoveArgs {
@@ -147,9 +145,7 @@ export class FulfillmentOrder extends Base {
147145

148146
public async hold(
149147
{
150-
reason = null,
151-
reason_notes = null,
152-
notify_merchant = null,
148+
fulfillment_hold = null,
153149
body = null,
154150
...otherArgs
155151
}: HoldArgs
@@ -159,7 +155,7 @@ export class FulfillmentOrder extends Base {
159155
operation: "hold",
160156
session: this.session,
161157
urlIds: {"id": this.id},
162-
params: {"reason": reason, "reason_notes": reason_notes, "notify_merchant": notify_merchant, ...otherArgs},
158+
params: {"fulfillment_hold": fulfillment_hold, ...otherArgs},
163159
body: body,
164160
entity: this,
165161
});

rest/admin/2022-10/shop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class Shop extends Base {
9090
public shop_owner: string | null;
9191
public source: string | null;
9292
public tax_shipping: string | null;
93-
public taxes_included: string | null;
93+
public taxes_included: boolean | null;
9494
public timezone: string | null;
9595
public transactional_sms_disabled: boolean | null;
9696
public updated_at: string | null;

rest/admin/2023-01/fulfillment_order.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ interface CloseArgs {
2727
}
2828
interface HoldArgs {
2929
[key: string]: unknown;
30-
reason?: unknown;
31-
reason_notes?: unknown;
32-
notify_merchant?: unknown;
30+
fulfillment_hold?: unknown;
3331
body?: {[key: string]: unknown} | null;
3432
}
3533
interface MoveArgs {
@@ -147,9 +145,7 @@ export class FulfillmentOrder extends Base {
147145

148146
public async hold(
149147
{
150-
reason = null,
151-
reason_notes = null,
152-
notify_merchant = null,
148+
fulfillment_hold = null,
153149
body = null,
154150
...otherArgs
155151
}: HoldArgs
@@ -159,7 +155,7 @@ export class FulfillmentOrder extends Base {
159155
operation: "hold",
160156
session: this.session,
161157
urlIds: {"id": this.id},
162-
params: {"reason": reason, "reason_notes": reason_notes, "notify_merchant": notify_merchant, ...otherArgs},
158+
params: {"fulfillment_hold": fulfillment_hold, ...otherArgs},
163159
body: body,
164160
entity: this,
165161
});

rest/admin/2023-01/shop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class Shop extends Base {
9090
public shop_owner: string | null;
9191
public source: string | null;
9292
public tax_shipping: string | null;
93-
public taxes_included: string | null;
93+
public taxes_included: boolean | null;
9494
public timezone: string | null;
9595
public transactional_sms_disabled: boolean | null;
9696
public updated_at: string | null;

0 commit comments

Comments
 (0)