Skip to content

Commit

Permalink
review tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mzanoni committed Nov 10, 2023
1 parent 271f67a commit 8fca5f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/integrations/src/integrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class Integrator extends RelewiseClient {
options);
}

public async productAdministrativeAction(request: ProductAdministrativeAction, options?: RelewiseRequestOptions): Promise<void | undefined> {
public async executeProductAdministrativeAction(request: ProductAdministrativeAction, options?: RelewiseRequestOptions): Promise<void | undefined> {
return this.request<TrackProductAdministrativeActionRequest, void>(
'TrackProductAdministrativeActionRequest',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() => {
Expand Down

0 comments on commit 8fca5f6

Please sign in to comment.