Skip to content

Commit a501b67

Browse files
committed
[ts] Add missing signature for Customer.prototype.sendInvite()
Fixes: MONEI#464
1 parent eb0011c commit a501b67

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

index.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ declare class Shopify {
190190
get: (id: number, params?: any) => Promise<Shopify.ICustomer>;
191191
list: (params?: any) => Promise<Shopify.ICustomer[]>;
192192
search: (params: any) => Promise<any>;
193+
sendInvite: (
194+
id: number,
195+
params?: Shopify.ICustomerSendInvite
196+
) => Promise<Shopify.ICustomerSendInvite>;
193197
update: (id: number, params: any) => Promise<Shopify.ICustomer>;
194198
orders: (id: number, params?: any) => Promise<Shopify.IOrder[]>;
195199
};
@@ -1345,6 +1349,14 @@ declare namespace Shopify {
13451349
updated_at: string;
13461350
}
13471351

1352+
interface ICustomerSendInvite {
1353+
to: string;
1354+
from: string;
1355+
bcc: string[];
1356+
subject: string;
1357+
custom_message: string;
1358+
}
1359+
13481360
type AllocationMethod = 'across' | 'each' | 'one';
13491361
type TargetSelection = 'all' | 'entitled' | 'explicit';
13501362
type TargetType = 'line_item' | 'shipping_line';

0 commit comments

Comments
 (0)