This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0945a69
commit edaf222
Showing
1 changed file
with
7 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
import { HttpClient, Resource } from '../http' | ||
import { getServiceStatusByResource } from './shared' | ||
|
||
const SELLERS_API_VERSION = '2018-11-01' | ||
|
||
/** | ||
* The first API version is what's written in the folder name | ||
* but the second one is what's used in the request examples | ||
*/ | ||
// const SHIPMENT_INVOICING_API_VERSION = '2018-11-01' | ||
const SHIPMENT_INVOICING_API_VERSION = '2018-09-01' | ||
export class ShipmentInvoicing { | ||
constructor(private httpClient: HttpClient) {} | ||
|
||
async getServiceStatus() { | ||
return getServiceStatusByResource( | ||
this.httpClient, | ||
Resource.ShipmentInvoicing, | ||
SELLERS_API_VERSION, | ||
SHIPMENT_INVOICING_API_VERSION, | ||
) | ||
} | ||
} |