From 8fca5f60ca3a55c9d6b784496e141050cc207fc1 Mon Sep 17 00:00:00 2001 From: Martin Zanoni Date: Fri, 10 Nov 2023 11:37:18 +0100 Subject: [PATCH] review tweaks --- packages/integrations/src/integrator.ts | 2 +- .../integration-tests/products/updates.integration.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/integrations/src/integrator.ts b/packages/integrations/src/integrator.ts index e838d1b..fa4244a 100644 --- a/packages/integrations/src/integrator.ts +++ b/packages/integrations/src/integrator.ts @@ -18,7 +18,7 @@ export class Integrator extends RelewiseClient { options); } - public async productAdministrativeAction(request: ProductAdministrativeAction, options?: RelewiseRequestOptions): Promise { + public async executeProductAdministrativeAction(request: ProductAdministrativeAction, options?: RelewiseRequestOptions): Promise { return this.request( 'TrackProductAdministrativeActionRequest', { diff --git a/packages/integrations/tests/integration-tests/products/updates.integration.test.ts b/packages/integrations/tests/integration-tests/products/updates.integration.test.ts index 4af7d00..c2e0644 100644 --- a/packages/integrations/tests/integration-tests/products/updates.integration.test.ts +++ b/packages/integrations/tests/integration-tests/products/updates.integration.test.ts @@ -55,13 +55,13 @@ test('Create Product', async() => { filters: (f) => f.addProductDataFilter('UnixTimeStamp', c => c.addEqualsCondition(DataValueFactory.number(unixTimeStamp))), productUpdateKind: 'Enable', }); - await integrator.productAdministrativeAction(enable.build()); + await integrator.executeProductAdministrativeAction(enable.build()); const disable = new ProductAdministrativeActionBuilder({ filters: (f) => f.addProductDataFilter('UnixTimeStamp', c => c.addEqualsCondition(DataValueFactory.number(unixTimeStamp), /* negated: */ true)), productUpdateKind: 'Disable', }); - await integrator.productAdministrativeAction(disable.build()); + await integrator.executeProductAdministrativeAction(disable.build()); }); test('Batch create products', async() => {