Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
feat: expose orders api
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed May 8, 2020
1 parent d340e9e commit 9273157
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export { MWS } from './mws'
export { Sellers } from './sections/sellers'
export { HttpClient } from './http'
export * from './http'
export * from './mws'
export * from './sections/sellers'
export * from './sections/orders'
export * from './error'
export * from '@scaleleap/amazon-marketplaces'
11 changes: 11 additions & 0 deletions src/mws.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { HttpClient } from './http'
import { Orders } from './sections/orders'
import { Sellers } from './sections/sellers'

export class MWS {
private _sellers!: Sellers

private _orders!: Orders

constructor(private httpClient: HttpClient) {}

get sellers() {
Expand All @@ -13,4 +16,12 @@ export class MWS {

return this._sellers
}

get orders() {
if (!this._orders) {
this._orders = new Orders(this.httpClient)
}

return this._orders
}
}

0 comments on commit 9273157

Please sign in to comment.