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

[ITT-556] Refactor classic payment #1175

Merged
merged 4 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ checkout: spec=CheckoutService-v70
dataProtection: spec=DataProtectionService-v1
storedValue: spec=StoredValueService-v46
terminalManagement: spec=TfmAPIService-v1
payments: spec=PaymentService-v68
payment: spec=PaymentService-v68
recurring: spec=RecurringService-v68
payout: spec=PayoutService-v68
management: spec=ManagementService-v1
Expand All @@ -39,8 +39,8 @@ $(services): build/spec $(openapi-generator-jar)
mv build/model src/typings/$@

# Service + Models automation
services:=checkout management legalEntityManagement payout
singleFileServices:=balanceControl recurring terminalManagement
services:=checkout management legalEntityManagement
singleFileServices:=balanceControl payment recurring terminalManagement

$(services): build/spec $(openapi-generator-jar)
rm -rf $(models)/$@ build/model
Expand All @@ -67,6 +67,8 @@ $(singleFileServices): build/spec $(openapi-generator-jar)
rm -rf src/typings/$@ build/model
rm -rf $(models)/$@ build/model
rm -rf src/services/$@
jq -e 'del(.paths[][].tags)' build/spec/json/$(spec).json > build/spec/json/$(spec).tmp
mv build/spec/json/$(spec).tmp build/spec/json/$(spec).json
$(openapi-generator-cli) generate \
-i build/spec/json/$(spec).json \
-g $(generator) \
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/classicIntegration.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import nock from "nock";
import {createClient} from "../__mocks__/base";
import Client from "../client";
import ClassicIntegration from "../services/classicIntegration";
import ClassicIntegration from "../services/paymentApi";
import { payments } from "../typings";

let client: Client;
Expand Down
171 changes: 0 additions & 171 deletions src/services/classicIntegration.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/services/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { default as TerminalLocalAPI } from "./terminalLocalAPI";
export { default as TerminalCloudAPI } from "./terminalCloudAPI";
export { default as CheckoutAPI } from "./checkout";
export { default as ClassicIntegrationAPI } from "./classicIntegration";
export { default as PaymentAPI } from "./paymentApi";
export { default as RecurringAPI } from "./recurringApi";
export { default as BinLookup } from "./binLookup";
export { default as PayoutAPI } from "./payout";
Expand Down
Loading