PaymentMethodService
PaymentMethodService
Contains methods relating to PaymentMethod entities.
Signature
class PaymentMethodService {
constructor(connection: TransactionalConnection, configService: ConfigService, listQueryBuilder: ListQueryBuilder, eventBus: EventBus, configArgService: ConfigArgService, channelService: ChannelService, customFieldRelationService: CustomFieldRelationService)
findAll(ctx: RequestContext, options?: ListQueryOptions<PaymentMethod>, relations: RelationPaths<PaymentMethod> = []) => Promise<PaginatedList<PaymentMethod>>;
findOne(ctx: RequestContext, paymentMethodId: ID, relations: RelationPaths<PaymentMethod> = []) => Promise<PaymentMethod | undefined>;
async create(ctx: RequestContext, input: CreatePaymentMethodInput) => Promise<PaymentMethod>;
async update(ctx: RequestContext, input: UpdatePaymentMethodInput) => Promise<PaymentMethod>;
async delete(ctx: RequestContext, paymentMethodId: ID, force: boolean = false) => Promise<DeletionResponse>;
getPaymentMethodEligibilityCheckers(ctx: RequestContext) => ConfigurableOperationDefinition[];
getPaymentMethodHandlers(ctx: RequestContext) => ConfigurableOperationDefinition[];
async getEligiblePaymentMethods(ctx: RequestContext, order: Order) => Promise<PaymentMethodQuote[]>;
async getMethodAndOperations(ctx: RequestContext, method: string) => Promise<{
paymentMethod: PaymentMethod;
handler: PaymentMethodHandler;
checker: PaymentMethodEligibilityChecker | null;
}>;
}
Members
constructor
(connection: TransactionalConnection, configService: ConfigService, listQueryBuilder: ListQueryBuilder, eventBus: EventBus, configArgService: ConfigArgService, channelService: ChannelService, customFieldRelationService: CustomFieldRelationService) => PaymentMethodService
findAll
(ctx: RequestContext, options?: ListQueryOptions<PaymentMethod>, relations: RelationPaths<PaymentMethod> = []) => Promise<PaginatedList<PaymentMethod>>
findOne
(ctx: RequestContext, paymentMethodId: ID, relations: RelationPaths<PaymentMethod> = []) => Promise<PaymentMethod | undefined>
create
(ctx: RequestContext, input: CreatePaymentMethodInput) => Promise<PaymentMethod>
update
(ctx: RequestContext, input: UpdatePaymentMethodInput) => Promise<PaymentMethod>
delete
(ctx: RequestContext, paymentMethodId: ID, force: boolean = false) => Promise<DeletionResponse>
getPaymentMethodEligibilityCheckers
(ctx: RequestContext) => ConfigurableOperationDefinition[]
getPaymentMethodHandlers
(ctx: RequestContext) => ConfigurableOperationDefinition[]
getEligiblePaymentMethods
(ctx: RequestContext, order: Order) => Promise<PaymentMethodQuote[]>
getMethodAndOperations
(ctx: RequestContext, method: string) => Promise<{
paymentMethod: PaymentMethod;
handler: PaymentMethodHandler;
checker: PaymentMethodEligibilityChecker | null;
}>