0.1.3 • Published 3 months ago

gls-channel-finances-plugin v0.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

Plugin de Channel Finances Vendure

Este é um plugin para o framework de e-commerce Vendure 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.

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
  }
0.1.3

3 months ago

0.1.0

3 months ago

0.1.2

3 months ago

0.1.1

3 months ago

0.0.9

3 months ago

0.0.8

3 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago