-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #392 from mailgun/DE-1204-implement-subaccounts-an…
…d-add-on-behalf-of-header feature: Add Subaccounts and 'On-behalf-of' header
- Loading branch information
Showing
31 changed files
with
24,822 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Request from './common/Request'; | ||
import { ISubaccountsClient } from '../Interfaces'; | ||
import { SubaccountListResponseData, SubaccountResponseData, SubaccountsQuery } from '../Types'; | ||
export default class SubaccountsClient implements ISubaccountsClient { | ||
request: Request; | ||
static SUBACCOUNT_HEADER: string; | ||
constructor(request: Request); | ||
list(query?: SubaccountsQuery): Promise<SubaccountListResponseData>; | ||
get(id: string): Promise<SubaccountResponseData>; | ||
create(name: string): Promise<SubaccountResponseData>; | ||
enable(id: string): Promise<SubaccountResponseData>; | ||
disable(id: string): Promise<SubaccountResponseData>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { SubaccountListResponseData, SubaccountResponseData, SubaccountsQuery } from '../../Types'; | ||
export interface ISubaccountsClient { | ||
list(query?: SubaccountsQuery): Promise<SubaccountListResponseData>; | ||
get(id: string): Promise<SubaccountResponseData>; | ||
create(name: string): Promise<SubaccountResponseData>; | ||
disable(id: string): Promise<SubaccountResponseData>; | ||
enable(id: string): Promise<SubaccountResponseData>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './ISubaccountsClient'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.