Skip to content

Commit

Permalink
Merge pull request #4 from CrystallizeAPI/get-order-fn
Browse files Browse the repository at this point in the history
feat: add ordermanagementv1 get order function
  • Loading branch information
meetdave3 authored Dec 4, 2020
2 parents 90ebc28 + 96b4e1e commit 8b88fc6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/order-management-v1/orders/orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export interface IOrders {
acknowledge(orderId: string): Promise<IResponse>;
cancel(orderId: string): Promise<IResponse>;
releaseRemainingAuthorization(orderId: string): Promise<IResponse>;
getOrder(orderId: string): Promise<IResponse>;
}

interface IUpdateMerchantReferenceBody {
Expand Down Expand Up @@ -57,4 +58,8 @@ export class Orders extends HttpRequest {
body
);
}

getOrder(orderId: string): Promise<IResponse> {
return this.invoke(`GET`, `/ordermanagement/v1/orders/${orderId}`);
}
}

0 comments on commit 8b88fc6

Please sign in to comment.