Skip to content

Commit

Permalink
Change request params
Browse files Browse the repository at this point in the history
  • Loading branch information
dulithsenanayake committed Sep 27, 2023
1 parent 6042a68 commit 227a2fa
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ class APIProduct extends Resource {
return promiseMonetization.then(response => response.body);
}

configureMonetizationToApiProduct(id, body) {
configureMonetizationToApiProduct(apiId, body) {
const promised_status = this.client.then(client => {
return client.apis['API Monetization'].addAPIMonetization({
apiId: id,
body,
});
return client.apis['API Monetization'].addAPIMonetization(
{ apiId },
{ requestBody: body },
);
});
return promised_status;
}
Expand Down

0 comments on commit 227a2fa

Please sign in to comment.