Skip to content

SudoSOS Back-end API / stripe/terminal-payment / TerminalPaymentController

Class: TerminalPaymentController ​

The BaseController class is responsible for:

  • Storing route definitions.
  • Generating router objects based on the policy.

Extends ​

Constructors ​

Constructor ​

ts
new TerminalPaymentController(options): TerminalPaymentController;

Create a new stripe controller instance

Parameters ​

ParameterTypeDescription
optionsBaseControllerOptions-

Returns ​

TerminalPaymentController

Overrides ​

BaseController.constructor

Properties ​

PropertyModifierTypeDescriptionInherited from
roleManagerprotectedRoleManagerA reference to the role manager passed in the base controller options.BaseController.roleManager
specificationpublicSwaggerSpecificationA reference to the swagger specification passed in the base controller options.BaseController.specification

Methods ​

cancelTerminalPayment() ​

ts
cancelTerminalPayment(req, res): Promise<void>;

DELETE /terminal-payments/

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

200 - Terminal Payment

Operation Id ​

cancelTerminalPayment

Tags ​

terminalPayments - Operations of the Terminal Payment Controller

Security ​

JWT


configureLogger() ​

ts
protected configureLogger(logger): void;

Parameters ​

ParameterType
loggerLogger

Returns ​

void

Inherited from ​

BaseController.configureLogger


createTerminalPayment() ​

ts
createTerminalPayment(req, res): Promise<void>;

POST /terminal-payments

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

200 - Terminal Payment

Operation Id ​

createTerminalPayment

Tags ​

terminalPayments - Operations of the Terminal Payment Controller

Security ​

JWT


getPolicy() ​

ts
getPolicy(): Policy;

Gets the policy defined by child classes. This policy includes all routes that the controller accepts, the authorization middleware, and the final handler function for every route.

Returns ​

Policy

The policy of this controller.

Overrides ​

BaseController.getPolicy


getRouter() ​

ts
getRouter(): Router;

Returns ​

Router

the router used by this controller.

Inherited from ​

BaseController.getRouter


getSingleTerminalPayment() ​

ts
getSingleTerminalPayment(req, res): Promise<void>;

GET /terminal-payments/

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

200 - Terminal Payment

Operation Id ​

getSingleTerminalPayment

Tags ​

terminalPayments - Operations of the Terminal Payment Controller

Security ​

JWT


getStripeTerminals() ​

ts
getStripeTerminals(req, res): Promise<void>;

GET /terminal-payments/terminals

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

200 - Stripe Terminals

Operation Id ​

getStripeTerminals

Tags ​

terminalPayments - Operations of the Terminal Payment Controller

Security ​

JWT


startTerminalPayment() ​

ts
startTerminalPayment(req, res): Promise<void>;

POST /terminal-payments/{id}/process

Parameters ​

ParameterType
reqRequestWithToken
resResponse

Returns ​

Promise<void>

204 - Success

Operation Id ​

startTerminalPayment

Tags ​

terminalPayments - Operations of the Terminal Payment Controller

Security ​

JWT