Skip to content

Commit 3d9457f

Browse files
committed
Add 2025-07 REST resources
1 parent b6b085d commit 3d9457f

File tree

147 files changed

+25934
-2
lines changed

Some content is hidden

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

147 files changed

+25934
-2
lines changed

.changeset/forty-experts-smoke.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+
Add 2025-07 REST Resources

packages/apps/shopify-api/lib/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ export enum ApiVersion {
1818
January25 = '2025-01',
1919
April25 = '2025-04',
2020
July25 = '2025-07',
21+
October25 = '2025-10',
2122
Unstable = 'unstable',
2223
}
2324

2425
export const LIBRARY_NAME = 'Shopify API Library';
25-
export const LATEST_API_VERSION = ApiVersion.April25;
26-
export const RELEASE_CANDIDATE_API_VERSION = ApiVersion.July25;
26+
export const LATEST_API_VERSION = ApiVersion.July25;
27+
export const RELEASE_CANDIDATE_API_VERSION = ApiVersion.October25;
2728

2829
/* eslint-disable @shopify/typescript/prefer-pascal-case-enums */
2930
export enum ShopifyHeader {
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
/***********************************************************************************************************************
2+
* This file is auto-generated. If you have an issue, please create a GitHub issue. *
3+
***********************************************************************************************************************/
4+
5+
import {Base} from '../../base';
6+
import {ResourcePath, ResourceNames} from '../../types';
7+
import {Session} from '../../../lib/session/session';
8+
import {ApiVersion} from '../../../lib/types';
9+
10+
import {Currency} from './currency';
11+
import {Customer} from './customer';
12+
import {DiscountCode} from './discount_code';
13+
14+
interface CheckoutsArgs {
15+
[key: string]: unknown;
16+
session: Session;
17+
since_id?: unknown;
18+
created_at_min?: unknown;
19+
created_at_max?: unknown;
20+
updated_at_min?: unknown;
21+
updated_at_max?: unknown;
22+
status?: unknown;
23+
limit?: unknown;
24+
}
25+
26+
export class AbandonedCheckout extends Base {
27+
public static apiVersion = ApiVersion.July25;
28+
29+
protected static hasOne: {[key: string]: typeof Base} = {
30+
"currency": Currency,
31+
"customer": Customer
32+
};
33+
protected static hasMany: {[key: string]: typeof Base} = {
34+
"discount_codes": DiscountCode
35+
};
36+
protected static paths: ResourcePath[] = [
37+
{"http_method": "get", "operation": "checkouts", "ids": [], "path": "checkouts.json"},
38+
{"http_method": "get", "operation": "checkouts", "ids": [], "path": "checkouts.json"}
39+
];
40+
protected static resourceNames: ResourceNames[] = [
41+
{
42+
"singular": "abandoned_checkout",
43+
"plural": "abandoned_checkouts"
44+
}
45+
];
46+
47+
public static async checkouts(
48+
{
49+
session,
50+
since_id = null,
51+
created_at_min = null,
52+
created_at_max = null,
53+
updated_at_min = null,
54+
updated_at_max = null,
55+
status = null,
56+
limit = null,
57+
...otherArgs
58+
}: CheckoutsArgs
59+
): Promise<unknown> {
60+
const response = await this.request<AbandonedCheckout>({
61+
http_method: "get",
62+
operation: "checkouts",
63+
session: session,
64+
urlIds: {},
65+
params: {"since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "status": status, "limit": limit, ...otherArgs},
66+
body: {},
67+
entity: null,
68+
});
69+
70+
return response ? response.body : null;
71+
}
72+
73+
public abandoned_checkout_url: string | null;
74+
public billing_address: {[key: string]: unknown} | null;
75+
public buyer_accepts_marketing: boolean | null;
76+
public buyer_accepts_sms_marketing: boolean | null;
77+
public cart_token: string | null;
78+
public closed_at: string | null;
79+
public completed_at: string | null;
80+
public created_at: string | null;
81+
public currency: Currency | null | {[key: string]: any};
82+
public customer: Customer | null | {[key: string]: any};
83+
public customer_locale: string | null;
84+
public device_id: number | null;
85+
public discount_codes: DiscountCode[] | null | {[key: string]: any};
86+
public email: string | null;
87+
public gateway: string | null;
88+
public id: number | null;
89+
public landing_site: string | null;
90+
public line_items: {[key: string]: unknown} | null;
91+
public location_id: number | null;
92+
public note: string | null;
93+
public phone: string | null;
94+
public presentment_currency: string | null;
95+
public referring_site: string | null;
96+
public shipping_address: {[key: string]: unknown} | null;
97+
public shipping_lines: {[key: string]: unknown} | null;
98+
public sms_marketing_phone: string | null;
99+
public source_name: string | null;
100+
public subtotal_price: string | null;
101+
public tax_lines: {[key: string]: unknown} | null;
102+
public taxes_included: boolean | null;
103+
public token: string | null;
104+
public total_discounts: string | null;
105+
public total_duties: string | null;
106+
public total_line_items_price: string | null;
107+
public total_price: string | null;
108+
public total_tax: string | null;
109+
public total_weight: number | null;
110+
public updated_at: string | null;
111+
public user_id: number | null;
112+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/***********************************************************************************************************************
2+
* This file is auto-generated. If you have an issue, please create a GitHub issue. *
3+
***********************************************************************************************************************/
4+
5+
import {Base, FindAllResponse} from '../../base';
6+
import {ResourcePath, ResourceNames} from '../../types';
7+
import {Session} from '../../../lib/session/session';
8+
import {ApiVersion} from '../../../lib/types';
9+
10+
interface AllArgs {
11+
[key: string]: unknown;
12+
session: Session;
13+
}
14+
15+
export class AccessScope extends Base {
16+
public static apiVersion = ApiVersion.July25;
17+
18+
protected static hasOne: {[key: string]: typeof Base} = {};
19+
protected static hasMany: {[key: string]: typeof Base} = {};
20+
protected static customPrefix: string | null = "/admin/oauth";
21+
protected static paths: ResourcePath[] = [
22+
{"http_method": "get", "operation": "get", "ids": [], "path": "access_scopes.json"}
23+
];
24+
protected static resourceNames: ResourceNames[] = [
25+
{
26+
"singular": "access_scope",
27+
"plural": "access_scopes"
28+
}
29+
];
30+
31+
public static async all(
32+
{
33+
session,
34+
...otherArgs
35+
}: AllArgs
36+
): Promise<FindAllResponse<AccessScope>> {
37+
const response = await this.baseFind<AccessScope>({
38+
session: session,
39+
urlIds: {},
40+
params: {...otherArgs},
41+
});
42+
43+
return response;
44+
}
45+
46+
public handle: string | null;
47+
public access_scopes: {[key: string]: unknown}[] | null;
48+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/***********************************************************************************************************************
2+
* This file is auto-generated. If you have an issue, please create a GitHub issue. *
3+
***********************************************************************************************************************/
4+
5+
import {Base} from '../../base';
6+
import {ResourcePath, ResourceNames} from '../../types';
7+
import {Session} from '../../../lib/session/session';
8+
import {ApiVersion} from '../../../lib/types';
9+
10+
interface FindArgs {
11+
session: Session;
12+
id: number | string;
13+
}
14+
interface DeleteArgs {
15+
session: Session;
16+
id: number | string;
17+
}
18+
interface CsrArgs {
19+
[key: string]: unknown;
20+
session: Session;
21+
id: number | string;
22+
}
23+
24+
export class ApplePayCertificate extends Base {
25+
public static apiVersion = ApiVersion.July25;
26+
27+
protected static hasOne: {[key: string]: typeof Base} = {};
28+
protected static hasMany: {[key: string]: typeof Base} = {};
29+
protected static paths: ResourcePath[] = [
30+
{"http_method": "delete", "operation": "delete", "ids": ["id"], "path": "apple_pay_certificates/<id>.json"},
31+
{"http_method": "get", "operation": "csr", "ids": ["id"], "path": "apple_pay_certificates/<id>/csr.json"},
32+
{"http_method": "get", "operation": "get", "ids": ["id"], "path": "apple_pay_certificates/<id>.json"},
33+
{"http_method": "post", "operation": "post", "ids": [], "path": "apple_pay_certificates.json"},
34+
{"http_method": "put", "operation": "put", "ids": ["id"], "path": "apple_pay_certificates/<id>.json"}
35+
];
36+
protected static resourceNames: ResourceNames[] = [
37+
{
38+
"singular": "apple_pay_certificate",
39+
"plural": "apple_pay_certificates"
40+
}
41+
];
42+
43+
public static async find(
44+
{
45+
session,
46+
id
47+
}: FindArgs
48+
): Promise<ApplePayCertificate | null> {
49+
const result = await this.baseFind<ApplePayCertificate>({
50+
session: session,
51+
urlIds: {"id": id},
52+
params: {},
53+
});
54+
return result.data ? result.data[0] : null;
55+
}
56+
57+
public static async delete(
58+
{
59+
session,
60+
id
61+
}: DeleteArgs
62+
): Promise<unknown> {
63+
const response = await this.request<ApplePayCertificate>({
64+
http_method: "delete",
65+
operation: "delete",
66+
session: session,
67+
urlIds: {"id": id},
68+
params: {},
69+
});
70+
71+
return response ? response.body : null;
72+
}
73+
74+
public static async csr(
75+
{
76+
session,
77+
id,
78+
...otherArgs
79+
}: CsrArgs
80+
): Promise<unknown> {
81+
const response = await this.request<ApplePayCertificate>({
82+
http_method: "get",
83+
operation: "csr",
84+
session: session,
85+
urlIds: {"id": id},
86+
params: {...otherArgs},
87+
body: {},
88+
entity: null,
89+
});
90+
91+
return response ? response.body : null;
92+
}
93+
94+
public id: number | null;
95+
public merchant_id: string | null;
96+
public status: string | null;
97+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/***********************************************************************************************************************
2+
* This file is auto-generated. If you have an issue, please create a GitHub issue. *
3+
***********************************************************************************************************************/
4+
5+
import {Base, FindAllResponse} from '../../base';
6+
import {ResourcePath, ResourceNames} from '../../types';
7+
import {Session} from '../../../lib/session/session';
8+
import {ApiVersion} from '../../../lib/types';
9+
10+
import {Currency} from './currency';
11+
12+
interface FindArgs {
13+
session: Session;
14+
id: number | string;
15+
fields?: unknown;
16+
}
17+
interface AllArgs {
18+
[key: string]: unknown;
19+
session: Session;
20+
since_id?: unknown;
21+
fields?: unknown;
22+
}
23+
24+
export class ApplicationCharge extends Base {
25+
public static apiVersion = ApiVersion.July25;
26+
27+
protected static hasOne: {[key: string]: typeof Base} = {
28+
"currency": Currency
29+
};
30+
protected static hasMany: {[key: string]: typeof Base} = {};
31+
protected static paths: ResourcePath[] = [
32+
{"http_method": "get", "operation": "get", "ids": [], "path": "application_charges.json"},
33+
{"http_method": "get", "operation": "get", "ids": ["id"], "path": "application_charges/<id>.json"},
34+
{"http_method": "post", "operation": "post", "ids": [], "path": "application_charges.json"}
35+
];
36+
protected static resourceNames: ResourceNames[] = [
37+
{
38+
"singular": "application_charge",
39+
"plural": "application_charges"
40+
}
41+
];
42+
43+
public static async find(
44+
{
45+
session,
46+
id,
47+
fields = null
48+
}: FindArgs
49+
): Promise<ApplicationCharge | null> {
50+
const result = await this.baseFind<ApplicationCharge>({
51+
session: session,
52+
urlIds: {"id": id},
53+
params: {"fields": fields},
54+
});
55+
return result.data ? result.data[0] : null;
56+
}
57+
58+
public static async all(
59+
{
60+
session,
61+
since_id = null,
62+
fields = null,
63+
...otherArgs
64+
}: AllArgs
65+
): Promise<FindAllResponse<ApplicationCharge>> {
66+
const response = await this.baseFind<ApplicationCharge>({
67+
session: session,
68+
urlIds: {},
69+
params: {"since_id": since_id, "fields": fields, ...otherArgs},
70+
});
71+
72+
return response;
73+
}
74+
75+
public confirmation_url: string | null;
76+
public created_at: string | null;
77+
public currency: Currency | null | {[key: string]: any};
78+
public id: number | null;
79+
public name: string | null;
80+
public price: string | number | null;
81+
public return_url: string | null;
82+
public status: string | null;
83+
public test: boolean | null;
84+
public updated_at: string | null;
85+
}

0 commit comments

Comments
 (0)