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

Commit

Permalink
fix: fix api version
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jul 7, 2020
1 parent 0945a69 commit edaf222
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/sections/shipment-invoicing.ts
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,
)
}
}

0 comments on commit edaf222

Please sign in to comment.