Skip to content

Commit

Permalink
Moves out of beta
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexmatthews committed Jul 23, 2024
1 parent 825642a commit 027b11f
Show file tree
Hide file tree
Showing 6 changed files with 316 additions and 191 deletions.
10 changes: 5 additions & 5 deletions src/services/claim_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default (easypostClient) =>
* @returns {Claim} - The created claim.
*/
static async create(params) {
const url = 'beta/claims';
const url = 'claims';

return this._create(url, params);
}
Expand All @@ -25,7 +25,7 @@ export default (easypostClient) =>
* @returns {Object} - An object containing the list of {@link Claim claim} records and pagination information.
*/
static async all(params = {}) {
const url = 'beta/claims';
const url = 'claims';

return this._all(url, params);
}
Expand All @@ -37,7 +37,7 @@ export default (easypostClient) =>
* @returns {EasyPostObject|Promise<never>} The retrieved {@link EasyPostObject}-based class instance, or a `Promise` that rejects with an error.
*/
static async getNextPage(claims, pageSize = null) {
const url = 'beta/claims';
const url = 'claims';
return this._getNextPage(url, 'claims', claims, pageSize);
}

Expand All @@ -48,7 +48,7 @@ export default (easypostClient) =>
* @returns {Claim} - The retrieved claim.
*/
static async retrieve(id) {
const url = `beta/claims/${id}`;
const url = `claims/${id}`;

return this._retrieve(url);
}
Expand All @@ -60,7 +60,7 @@ export default (easypostClient) =>
* @returns {Claim} - The canceled claim.
*/
static async cancel(id) {
const url = `beta/claims/${id}/cancel`;
const url = `claims/${id}/cancel`;
return this._create(url);
}
};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 027b11f

Please sign in to comment.