npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

z-zoop

v1.0.3

Published

## Instalação

Downloads

6

Readme

z-zoop

Instalação

Instale o pacote z-zoop via npm:

$ npm install --save z-zoop

ou via yarn:

$ yarn add z-zoop

Exemplo

const Zoop = require('z-zoop')({
	token: '<ZOOP_TOKEN_ID>',
	marketplaceId: '<MARKETPLACE_ID>',
});

const boleto = await Zoop.newBillet({
    amount: 500, // Valor em centavos (Mínimo de R$ 3,00 (300) )
    sellerId: '<SELLER_ID>', // ID do Seller Recebedor
    customer: {
        name: 'Rodrigo Henrique Sobrinho', // Nome do Cliente
        email: '[email protected]', // E-mail do Cliente
        phoneNumber: '11987654321', // Telefone do Cliente
        taxpayerId: '77693351086', // CPF do Cliente
        birthdate: '1989-12-06', // Data de Nascimento do Cliente
        address: {
            publicPlace: 'Avenida Teste', // Logradouro
            number: 1234, // Número
            city: 'São Paulo', // Cidade
            state: 'SP', // Estado
            postalCode: '01234567', // CEP
        },
    },
    // Opcionais
    reference: 'a1b2c3d4', // Código de Referência do Estabelecimento
    description: 'Venda de Ingresso', // Descrição do Boleto
    statement_descriptor: 'Z-Systems', // Nome do beneficiário que aparece no boleto
    bodyInstructions: [
        'SR. CAIXA, COBRAR MULTA DE 10% APÓS O VENCIMENTO',
		'SR. CAIXA, COBRAR MORA DE R$0,01 AO DIA APÓS O VENCIMENTO',
		'EM CASO DE DÚVIDAS ENTRE EM CONTATO CONOSCO',
		'EMITIDO PELA ZOOP WWW.PAGZOOP.COM',
    ],
    split: [ // Regras de Split
        {
            recipient: '<SELLER_ID_SPLIT>', // ID do Seller que fará split
            // O Split é feito por valor fixo (amount) OU pela porcentagem (percentage)
            amount: 400, // Valor em centavos do split
            percentage: 10, // Porcentagem do Split
            liable: 1, // Recebedor arca com prejuízo em caso de chargeback (1) ou não (0). Default: 1
            charge_processing_fee: 0, // Split em cima do valor bruto (0) ou do valor líquido (1)
        },
        .
        .
        .
    ],
    metadata: {
        teste: 1,
        teste2: 'texto'
    },
    // Multa
    lateFee: {
        mode: 'fixed', // Tipo de multa. Fixa (fixed) ou porcentagem (percentage)
        amount: 100, // Valor em centavos para multa fixa.
        percentage: 10, // Porcentagem da multa.
        startDate: '2019-08-20, // Data para começar a cobrar a multa. Por padrão é o vencimento do boleto.
    }
    // Juros
    interest: {
        mode: 'daily_amount', // Tipo de juros. Valor Fixo Diário (daily_amount), Porcentagem Diária (daily_percentage) e Porcentagem Mensal (monthly_percentage).
        amount: 100, // Valor em centavos para juros fixo.
        percentage: 10, // Porcentagem do juros para Porcentagem Diária e Mensal.
        startDate: '2019-08-20, // Data para começar a cobrar o juros. Por padrão é o vencimento do boleto.
    }
});