Skip to content

Commit

Permalink
Remove tax-provider-specific files
Browse files Browse the repository at this point in the history
  • Loading branch information
leungkinghin-ct committed Nov 15, 2023
1 parent db4d447 commit 12d7e19
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 43 deletions.
9 changes: 1 addition & 8 deletions order-syncer/src/controllers/sync.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,10 @@ import {
HTTP_STATUS_SERVER_ERROR,
HTTP_STATUS_SUCCESS_ACCEPTED,
} from '../constants/http.status.constants.js';
import createTaxTransaction from '../extensions/stripe/clients/client.js';
import CustomError from '../errors/custom.error.js';

async function syncToTaxProvider(orderId, cart) {

Check failure on line 12 in order-syncer/src/controllers/sync.controller.js

View workflow job for this annotation

GitHub Actions / Build the application for order-syncer

'orderId' is defined but never used. Allowed unused args must match /^_/u

Check failure on line 12 in order-syncer/src/controllers/sync.controller.js

View workflow job for this annotation

GitHub Actions / Build the application for order-syncer

'cart' is defined but never used. Allowed unused args must match /^_/u
await createTaxTransaction(orderId, cart).catch((error) => {
throw new CustomError(
HTTP_STATUS_SUCCESS_ACCEPTED,
`Error from extension : ${error.message}`,
error
);
});
// TODO : Invocation of tax-provider API implemented in src/extensions
}

export const syncHandler = async (request, response) => {
Expand Down
26 changes: 0 additions & 26 deletions order-syncer/src/extensions/stripe/clients/client.js

This file was deleted.

9 changes: 0 additions & 9 deletions order-syncer/src/extensions/stripe/configurations/config.js

This file was deleted.

0 comments on commit 12d7e19

Please sign in to comment.