Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How use OrderActions to delete an order? #10

Open
enricoballerini opened this issue Feb 12, 2023 · 0 comments
Open

How use OrderActions to delete an order? #10

enricoballerini opened this issue Feb 12, 2023 · 0 comments

Comments

@enricoballerini
Copy link

enricoballerini commented Feb 12, 2023

Hi @Niurmiguel! Great job!
Can you give me an example of how I can delete an order?
I read your code, but I don't understand how to pass the "DeleteOrders" class to the method: "performOrderAction".

`
const orderService = await adManagerClient.getService('OrderService');
try {
const statement = new StatementBuilder().where('id = 3152946191');

const res = await orderService.performOrderAction(
  /* what do i put here? */,
  statement.toStatement()
);

console.log(res);

} catch (error) {
console.error(error.message);
}
`

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant