# gls-channel-finances-plugin

> Este é um plugin para o [framework de e-commerce Vendure](https://www.vendure.io/) está diretamente relacionado ao gerenciamento de contas bancárias e titulares de conta em um contexto de comércio eletrônico. Isso sugere que ele está relacionado à config

Latest version **0.1.3** (published 2024-02-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install gls-channel-finances-plugin
pnpm add gls-channel-finances-plugin
yarn add gls-channel-finances-plugin
bun add gls-channel-finances-plugin
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2024-02-19 |
| First published | 2024-02-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 115.6 KB |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | caiquereis |

## Links

- npm: https://www.npmjs.com/package/gls-channel-finances-plugin
- npm.io page: https://npm.io/package/gls-channel-finances-plugin

## Dependencies (2)

- [@vendure/core](https://npm.io/package/@vendure/core.md) ^2.1.6
- [class-validator](https://npm.io/package/class-validator.md) ^0.14.1

## Recent versions

- 0.1.3 (latest) — 2024-02-19
- 0.1.2 — 2024-02-15
- 0.1.1 — 2024-02-15
- 0.1.0 — 2024-02-15
- 0.0.9 — 2024-02-15
- 0.0.8 — 2024-02-15
- 0.0.7 — 2024-02-15
- 0.0.6 — 2024-02-15
- 0.0.5 — 2024-02-15
- 0.0.4 — 2024-02-14
- 0.0.3 — 2024-02-14
- 0.0.2 — 2024-02-14
- 0.0.1 — 2024-02-14

## README

# Plugin de `Channel Finances` Vendure

Este é um plugin para o [framework de e-commerce Vendure](https://www.vendure.io/)
está diretamente relacionado ao gerenciamento de contas bancárias e titulares de conta em um contexto de comércio eletrônico. Isso sugere que ele está relacionado à configuração e gerenciamento das finanças dos canais de venda. Ele pode permitir que os administradores da plataforma configurem e gerenciem as contas bancárias associadas a cada canal, bem como os titulares dessas contas. Isso é fundamental para o processamento de pagamentos e para o controle financeiro dos canais de venda do projeto [Gseller](https://gseller.com.br/).



Após configurar o seu projeto Vendure, você pode usar este plugin via npm install:

```npm install gls-channel-finances-plugin```

e inclua-o no arquivo vendure-config conforme abaixo:

```

import { FinancesPlugin } from "gls-channel-finances-plugin";
...
export const config: VendureConfig = {
  ...
  plugins: [
    ...,
	FinancesPlugin
  ]
}

```

Os tipos, entradas e mutações atualizadas após a instalação do plugin são:


# Admin Api Main Type

```
type CannotDeleteAccountHolderError {
      errorCode: String!
      message: String!
}

type DocumentNumberConflictError  {
      errorCode: String!
      message: String!
}

type BankAccountNotFoundError {
      errorCode: String!
      message: String!
}

type ChannelNotFoundErrorFinance {
      errorCode: String!
      message: String!
}

type BankAccountList {
  items: [ChannelPaymentAccount!]!
  totalItems: Int!
}

type AccountHolderAlreadyExistsError {
  errorCode: String!
  message: String!
}

type AccountHolderNotFoundError {
  errorCode: String!
  message: String!
}
```

# Admin Api Schema Inputs

```
input ChannelPaymentAccountInput {
  bankCode: String!
  branchNumber: String!
  branchCheckDigit: String
  accountNumber: String!
  accountCheckDigit: String!
  type: String!
}

input UpdateChannelPaymentAccountInput {
  bankCode: String
  branchNumber: String
  branchCheckDigit: String
  accountNumber: String
  accountCheckDigit: String
  type: String
}

input AccountHolderInput {
  documentNumber: String!
  legalName: String
  holderType: String
}

input UpdateAccountHolderInput {
  documentNumber: String!
  legalName: String
}

```



# Admin Schema Unions

```
  union ChannelPaymentAccountResult = ChannelPaymentAccount | DocumentNumberConflictError | ChannelNotFoundErrorFinance | BankAccountNotFoundError | AccountHolderNotFoundError

  union ChannelPaymentAccountDeleteResult = ChannelPaymentAccount | BankAccountNotFoundError | Success | CannotDeleteAccountHolderError

  union ChannelPaymentAccountUpdateResult = ChannelPaymentAccount | BankAccountNotFoundError | ChannelNotFoundErrorFinance

  union CreateAccountHolderResult = AccountHolder | AccountHolderAlreadyExistsError

  union UpdateAccountHolderResult = AccountHolder | DocumentNumberConflictError | AccountHolderNotFoundError
```


# Admin  Mutation and Query

```
  extend type Query {
    channelCurrentPaymentAccount: ChannelPaymentAccountUpdateResult
    getAllBankAccounts: BankAccountList
    channelCurrentAccountHolder: AccountHolder
  }

  extend type Mutation {
      createChannelPaymentAccount(input: ChannelPaymentAccountInput!): ChannelPaymentAccountResult
      updateChannelPaymentAccount(input: UpdateChannelPaymentAccountInput!): ChannelPaymentAccount
      deleteChannelPaymentAccount(id: ID!): ChannelPaymentAccountDeleteResult

      createAccountHolder(input: AccountHolderInput!): CreateAccountHolderResult
      updateAccountHolder(input: UpdateAccountHolderInput!):  UpdateAccountHolderResult
      # deleteAccountHolder(id: ID!): Success
  }
```

---
_Source: https://npm.io/package/gls-channel-finances-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
