-
Notifications
You must be signed in to change notification settings - Fork 0
/
47358f89.686c370f.js
1 lines (1 loc) · 137 KB
/
47358f89.686c370f.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{144:function(n,e,t){"use strict";t.r(e),t.d(e,"frontMatter",(function(){return i})),t.d(e,"metadata",(function(){return s})),t.d(e,"rightToc",(function(){return b})),t.d(e,"Highlight",(function(){return d})),t.d(e,"default",(function(){return p}));var a=t(2),o=t(6),l=(t(0),t(250)),r=t(257),c=t(258),i={id:"BoletoBalancete",title:"Boleto com Balancete",hide_title:!0,sidebar_label:"Boleto com Balancete"},s={id:"PagamentoBoleto/BoletoBalancete",isDocsHomePage:!1,title:"Boleto com Balancete",description:"Boleto com Balancete",source:"@site/docs\\PagamentoBoleto\\BoletoBalancete.md",permalink:"/documentation/docs/PagamentoBoleto/BoletoBalancete",sidebar_label:"Boleto com Balancete"},b=[{value:"1. Criar transa\xe7\xe3o",id:"1-criar-transa\xe7\xe3o",children:[{value:"a) Estrutura hier\xe1rquica dos atributos do Schema que podem ser utilizados:",id:"a-estrutura-hier\xe1rquica-dos-atributos-do-schema-que-podem-ser-utilizados",children:[]},{value:"b) Atributos que podem ser utilizados:",id:"b-atributos-que-podem-ser-utilizados",children:[]}]},{value:"2. Defina a transa\xe7\xe3o gerada como do tipo boleto balancete",id:"2-defina-a-transa\xe7\xe3o-gerada-como-do-tipo-boleto-balancete",children:[{value:"a) Estrutura hier\xe1rquica dos atributos que podem ser utilizados:",id:"a-estrutura-hier\xe1rquica-dos-atributos-que-podem-ser-utilizados",children:[]},{value:"b) Atributos que podem ser utilizados:",id:"b-atributos-que-podem-ser-utilizados-1",children:[]}]},{value:"3. Associar \xe0 forma de pagamento via boleto",id:"3-associar-\xe0-forma-de-pagamento-via-boleto",children:[{value:"a) Estrutura hier\xe1rquica dos atributos que podem ser utilizados:",id:"a-estrutura-hier\xe1rquica-dos-atributos-que-podem-ser-utilizados-1",children:[]},{value:"b) Atributos que podem ser utilizados:",id:"b-atributos-que-podem-ser-utilizados-2",children:[]}]},{value:"4. Outros endpoints e m\xe9todos",id:"4-outros-endpoints-e-m\xe9todos",children:[]}],d=function(n){var e=n.children;n.color;return Object(l.b)("span",{style:{borderRadius:"2px",color:"#009615",padding:"0.2rem"}},e)},m={rightToc:b,Highlight:d};function p(n){var e=n.components,t=Object(o.a)(n,["components"]);return Object(l.b)("wrapper",Object(a.a)({},m,t,{components:e,mdxType:"MDXLayout"}),Object(l.b)("h1",{className:"titulo"},"Boleto com Balancete"),Object(l.b)("div",{className:"subtitulo"},Object(l.b)("p",null,"Este modelo de boleto \xe9 muito utilizado por condom\xednios e contabilidades e tem como objetivo proporcionar a demonstra\xe7\xe3o pr\xe9via das movimenta\xe7\xf5es financeiras do m\xeas para cond\xf4minos e clientes. S\xe3o disponibilizados dados como receitas, despesas e contas a receber. ",Object(l.b)("a",{href:"../../img/boleto-balancete.jpg",alt:"Exemplo de status new",target:"_blank"},"Veja aqui")," como \xe9 um boleto balancete."),Object(l.b)("p",null,"Para gerar um boleto banc\xe1rio do tipo balancete \xe9 bem simples e requer apenas tr\xeas passos:"),Object(l.b)("ol",null,Object(l.b)("li",{parentName:"ol"},Object(l.b)("a",Object(a.a)({parentName:"li"},{href:"#1-criar-transa%C3%A7%C3%A3o"}),"Crie a transa\xe7\xe3o")),Object(l.b)("li",{parentName:"ol"},Object(l.b)("a",Object(a.a)({parentName:"li"},{href:"#2-defina-a-transa%C3%A7%C3%A3o-gerada-como-do-tipo-boleto-balancete"}),"Defina a transa\xe7\xe3o gerada como do tipo boleto balancete")),Object(l.b)("li",{parentName:"ol"},Object(l.b)("a",Object(a.a)({parentName:"li"},{href:"#3-associar-%C3%A0-forma-de-pagamento-via-boleto"}),"Por fim, associe \xe0 forma de pagamento via boleto"),", informando o ",Object(l.b)("inlineCode",{parentName:"li"},"charge_id")," da transa\xe7\xe3o.")),Object(l.b)("p",null,"O restante desta p\xe1gina apresenta os procedimentos detalhados, mas voc\xea precisa instalar uma de nossas bibliotecas em seu servidor para executar os c\xf3digos de exemplo. ",Object(l.b)("a",Object(a.a)({parentName:"p"},{href:"../Instalacao/introducao"}),"Certifique-se de que a SDK da Gerencianet foi instalada"),"."),Object(l.b)("hr",null),Object(l.b)("br",null),Object(l.b)("h2",{id:"1-criar-transa\xe7\xe3o"},"1. Criar transa\xe7\xe3o"),Object(l.b)("p",null,'Primeiramente, precisamos gerar a transa\xe7\xe3o (tamb\xe9m chamada de "cobran\xe7a"). \xc9 neste momento que ser\xe1 informado o nome do item/produto/servi\xe7o, valor da transa\xe7\xe3o, quantidade, dentre outras informa\xe7\xf5es poss\xedveis.'),Object(l.b)("p",null,"Ap\xf3s cri\xe1-la, ser\xe1 retornado o ",Object(l.b)("code",null,"charge_id"),", que \xe9 o identificador \xfanico da transa\xe7\xe3o e que ser\xe1 utilizado para associar \xe0 forma de pagamento."),Object(l.b)("p",null,"Assim que essa transa\xe7\xe3o \xe9 criada, ela recebe o status ",Object(l.b)("code",null,"new"),", que significa que a cobran\xe7a foi gerada e est\xe1 aguardando defini\xe7\xe3o da forma de pagamento. Essa cobran\xe7a somente ter\xe1 seu status alterado quando o integrador definir sua forma de pagamento."),Object(l.b)("p",null,"Para gerar uma transa\xe7\xe3o, voc\xea deve enviar uma requisi\xe7\xe3o ",Object(l.b)("code",null,"POST")," para a rota ",Object(l.b)("code",null,"/v1/charge"),"."),Object(l.b)("p",null,"Caso queira, pode explorar e conhecer mais sobre este recurso ",Object(l.b)("a",Object(a.a)({parentName:"p"},{href:"../AmbienteTestes/PlaygroundTransacoes"}),"usando nosso Playground"),"."),Object(l.b)("p",null,"O exemplo abaixo mostra como isto pode ser feito, utilizando as SDK's dispon\xedveis:"),Object(l.b)(r.a,{defaultValue:"php",values:[{label:"PHP",value:"php"},{label:"Python",value:"python"},{label:"NodeJS",value:"js"},{label:".NET",value:"c"},{label:"Java",value:"java"},{label:"GO",value:"go"},{label:"Ruby",value:"ruby"},{label:"Delphi",value:"delphi"}],mdxType:"Tabs"},Object(l.b)(c.a,{value:"php",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-php"}),"<?php\n \nrequire __DIR__.'/../../vendor/autoload.php'; // caminho relacionado a SDK\n \nuse Gerencianet\\Exception\\GerencianetException;\nuse Gerencianet\\Gerencianet;\n \n$clientId = 'informe_seu_client_id'; // insira seu Client_Id, conforme o ambiente (Des ou Prod)\n$clientSecret = 'informe_seu_client_secret'; // insira seu Client_Secret, conforme o ambiente (Des ou Prod)\n \n$options = [\n 'client_id' => $clientId,\n 'client_secret' => $clientSecret,\n 'sandbox' => true // altere conforme o ambiente (true = desenvolvimento e false = producao)\n];\n \n$item_1 = [\n 'name' => 'Item 1', // nome do item, produto ou servi\xe7o\n 'amount' => 1, // quantidade\n 'value' => 1000 // valor (1000 = R$ 10,00)\n];\n \n$item_2 = [\n 'name' => 'Item 2', // nome do item, produto ou servi\xe7o\n 'amount' => 2, // quantidade\n 'value' => 2000 // valor (2000 = R$ 20,00)\n];\n \n$items = [\n $item_1,\n $item_2\n];\n\n// Exemplo para receber notifica\xe7\xf5es da altera\xe7\xe3o do status da transa\xe7\xe3o.\n// $metadata = ['notification_url'=>'sua_url_de_notificacao_.com.br']\n\n// Como enviar seu $body com o $metadata\n// $body = [\n// 'items' => $items,\n// 'metadata' => $metadata\n// ];\n\n$body = [\n 'items' => $items\n];\n\ntry {\n $api = new Gerencianet($options);\n $charge = $api->createCharge([], $body);\n \n print_r($charge);\n} catch (GerencianetException $e) {\n print_r($e->code);\n print_r($e->error);\n print_r($e->errorDescription);\n} catch (Exception $e) {\n print_r($e->getMessage());\n}\n"))),Object(l.b)(c.a,{value:"python",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-py"}),"from gerencianet import Gerencianet\n \noptions = {\n 'client_id': 'client_id',\n 'client_secret': 'client_secret',\n 'sandbox': True\n}\n \ngn = Gerencianet(options)\n \nbody = {\n 'items': [{\n 'name': \"Product 1\",\n 'value': 1000,\n 'amount': 2\n }],\n 'shippings': [{\n 'name': \"Default Shipping Cost\",\n 'value': 100\n }]\n}\n \ngn.create_charge(body=body)\n"))),Object(l.b)(c.a,{value:"js",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-js"}),"'use strict';\n \nvar Gerencianet = require('gn-api-sdk-node');\n \nvar clientId = 'informe_seu_client_id';\nvar clientSecret = 'informe_seu_client_secret';\n \nvar options = {\n client_id: clientId,\n client_secret: clientSecret,\n sandbox: true\n}\n \nvar body = {\n items: [{\n name: 'Product 1',\n value: 1000,\n amount: 2\n }],\n shippings: [{\n name: 'Default Shipping Cost',\n value: 100\n }]\n}\n \nvar gerencianet = new Gerencianet(options);\n \ngerencianet\n .createCharge({}, body)\n .then(console.log)\n .catch(console.log)\n .done();\n"))),Object(l.b)(c.a,{value:"c",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-js"}),'dynamic endpoints = new Endpoints("client_id", "client_secret", true);\n \nvar body = new\n{\n items = new[] {\n new {\n name = "Product 1",\n value = 1000,\n amount = 2\n }\n },\n shippings = new[] {\n new {\n name = "Default Shipping Cost",\n value = 100\n }\n }\n};\n \nvar response = endpoints.CreateCharge(null, body);\nConsole.WriteLine(response);\n'))),Object(l.b)(c.a,{value:"java",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-java"}),'/* Para que a SDK Java funcione corretamente, \xe9 necess\xe1rio que a instancia\xe7\xe3o do m\xf3dulo seja feita atrav\xe9s da cria\xe7\xe3o de um objeto do tipo Gerencianet.\n\nSempre que quisermos chamar uma fun\xe7\xe3o da API, basta invocar o m\xe9todo call do objeto Gerencianet, passando como par\xe2metro o nome do m\xe9todo, os par\xe2metros da requisi\xe7\xe3o (sempre ser\xe1 um HashMap<String, String>), e o "body", que consiste nas propriedades a serem passadas como argumento na chamada de um fun\xe7\xe3o da SDK. O "body" pode ser declarado de duas formas: um JSONObject ou um Map<String, Object>.\n\nEsta estrutura \xe9 necess\xe1ria para representar o corpo da requisi\xe7\xe3o http que \xe9 enviada \xe0 um determinado endpoint. Se o "body" for um JSONObject, o retorno do m\xe9todo call ser\xe1 um JSONObject, se for um Map<String, Object>, o retorno do m\xe9todo call ser\xe1 um Map<String, Object>\n\nA seguir, disponibilizamos links de nosso Github mostrando duas formas diferentes de retorno: JSONObject\ne Map<String, Object>\n\n\nJSONObject\n\nhttps://github.com/gerencianet/gn-api-sdk-java-examples/blob/master/src/main/java/br/com/gerencianet/charge/json/CreateCharge.java\n\n\nMap<String, Object>\n\nhttps://github.com/gerencianet/gn-api-sdk-java-examples/blob/master/src/main/java/br/com/gerencianet/charge/map/CreateCharge.java\n\n*/\n'))),Object(l.b)(c.a,{value:"go",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-go"}),'// No c\xf3digo de exemplo de uso da SDK de Go, definimos as credenciais de acesso \xe0 API (Client_Id e Client_Secret) e o ambiente a ser usado (sandbox como \'true\' ou \'false\') dentro de um arquivo espec\xedfico (configs.go), que est\xe1 localizado no diret\xf3rio "_examples/configs". Essas credenciais s\xe3o exportadas atrav\xe9s da vari\xe1vel \'Credentials\'.\n\npackage main\n\nimport (\n "fmt"\n "github.com/gerencianet/gn-api-sdk-go/gerencianet"\n "github.com/gerencianet/gn-api-sdk-go/_examples/configs"\n)\n\nfunc main(){\n \n credentials := configs.Credentials\n gn := gerencianet.NewGerencianet(credentials)\n\n body := map[string]interface{} {\n "items": []map[string]interface{}{\n {\n "name": "Product 1",\n "value": 1000,\n "amount": 2,\n },\n },\n "shippings": []map[string]interface{} {\n {\n "name": "Default Shipping Cost",\n "value": 100,\n },\n },\n }\n\n res, err := gn.CreateCharge(body)\n\n if err != nil {\n fmt.Println(err)\n } else {\n fmt.Println(res)\n }\n}\n'))),Object(l.b)(c.a,{value:"ruby",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-js"}),'require "gerencianet"\n \noptions = {\n client_id: "client_id",\n client_secret: "client_secret",\n sandbox: true\n}\n \nbody = {\n items: [{\n name: "Product 1",\n value: 1000,\n amount: 2\n }],\n shippings: [{\n name: "Default Shipping Cost",\n value: 100\n }]\n}\n \ngerencianet = Gerencianet.new(options)\ngerencianet.create_charge(body: body)\n'))),Object(l.b)(c.a,{value:"delphi",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-json"}),"interface\nfunction CreateCharge: String;\n\nimplementation\nuses uGerenciaClient, uGerenciaNetClientUtilities;\n{... your code ... }\n\nfunction CreateCharge: String;\nvar \nBody : String;\n\nbegin \n EnableService( 'GerenciaNet.dll' ); \n ConfigureService( ToPAnsiChar( 'client_id' ),ToPAnsiChar( 'client_secret' ),'sandbox','config.json',''); \n GerenciaNetAuthorize(); \n\n Body := \n '{'+\n '\"items\":'+\n '['+\n '{'+\n '\"name\":\"test article\",'+\n '\"value\":1900,'+\n '\"amount\":2'+\n '},'+\n '{'+\n '\"name\":\"test article 2\",'+\n '\"value\":3000,'+\n '\"amount\":1'+\n '}'+\n ']'+\n '}';\n\n Result := ExecuteGerenciaNetRequest( 'createCharge','','',Body );\nend;\n")))),Object(l.b)("h3",{id:"a-estrutura-hier\xe1rquica-dos-atributos-do-schema-que-podem-ser-utilizados"},"a) Estrutura hier\xe1rquica dos atributos do Schema que podem ser utilizados:"),Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{}),'"id": "/Charge"\n "items"\n "name"\n "value"\n "amount"\n "marketplace"\n "payee_code"\n "percentage"\n "shippings"\n "name"\n "value"\n "payee_code"\n "metadata"\n "custom_id"\n "notification_url"\n')),Object(l.b)("br",null),Object(l.b)("p",null,"Para verificar mais detalhes, ",Object(l.b)("a",Object(a.a)({parentName:"p"},{href:"../AmbienteTestes/PlaygroundTransacoes"}),"acesse aqui")," e explore em nosso Playground."),Object(l.b)("h3",{id:"b-atributos-que-podem-ser-utilizados"},"b) Atributos que podem ser utilizados:"),Object(l.b)("table",null,Object(l.b)("tbody",null,Object(l.b)("tr",null,Object(l.b)("th",null,"Atributo"),Object(l.b)("th",{align:"center"},"Descri\xe7\xe3o"),Object(l.b)("th",{align:"center"},"Obrigat\xf3rio"),Object(l.b)("th",{align:"center"},"Tipo")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"items")),Object(l.b)("td",{align:"left"},"item que est\xe1 sendo vendido. Uma mesma transa\xe7\xe3o pode possuir ilimitados itens. ",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("em",null,"Atributos de items:"),Object(l.b)("br",null),Object(l.b)("code",null,"name*"),"// Nome do item, produto ou servi\xe7o. ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"M\xednimo de 1 caractere e m\xe1ximo de 255 caracteres (String)."),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"value*"),"// Valor, em centavos. Ex: R$ 10,00 = 1000. ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Integer"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"amount"),"// Quantidade. ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Integer")),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"Array")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"shippings")),Object(l.b)("td",{align:"left"},"Determina o(s) valor(es) de frete(s) de uma transa\xe7\xe3o. Uma mesma transa\xe7\xe3o pode possuir ilimitados valores de frete. ",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("em",null,"Atributos de shippings:"),Object(l.b)("br",null),Object(l.b)("code",null,"name*"),"// R\xf3tulo do frete. ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"M\xe1ximo de 255 caracteres. String."),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"value*"),"// Valor do frete, em centavos (1990 equivale a R$19,90). ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Integer")),Object(l.b)("td",{align:"center"},"N\xe3o"),Object(l.b)("td",{align:"center"},"Array")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"metadata")),Object(l.b)("td",{align:"left"},"Define dados espec\xedficos da transa\xe7\xe3o",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("em",null,"Atributos de metadata:"),Object(l.b)("br",null),Object(l.b)("code",null,"custom_id"),"// Permite associar uma transa\xe7\xe3o Gerencianet a uma ID espec\xedfica de seu sistema ou aplica\xe7\xe3o, permitindo identific\xe1-la caso voc\xea possua uma identifica\xe7\xe3o espec\xedfica e queira mant\xea-la. ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"M\xe1ximo de 255 caracteres. String/null."),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"notification_url"),"// Endere\xe7o de sua URL v\xe1lida que receber\xe1 as notifica\xe7\xf5es de mudan\xe7as de status das transa\xe7\xf5es. ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"M\xe1ximo de 255 caracteres. String/null.")),Object(l.b)("td",{align:"center"},"N\xe3o"),Object(l.b)("td",{align:"center"},"Object")))),Object(l.b)("p",null,Object(l.b)("strong",{parentName:"p"},"Os campos com * representam valores obrigat\xf3rios")),Object(l.b)("br",null),Object(l.b)("hr",null),Object(l.b)("h2",{id:"2-defina-a-transa\xe7\xe3o-gerada-como-do-tipo-boleto-balancete"},"2. Defina a transa\xe7\xe3o gerada como do tipo boleto balancete"),Object(l.b)("p",null,"p\xf3s a cria\xe7\xe3o da transa\xe7\xe3o, ser\xe1 o momento de definirmos que o boleto a ser gerado ser\xe1 do tipo balancete."),Object(l.b)("p",null,"Para isso, voc\xea deve enviar uma requisi\xe7\xe3o ",Object(l.b)("code",null,"POST")," para a rota ",Object(l.b)("code",null,"/v1/charge/:id/balance-sheet"),", onde ",Object(l.b)("code",null,":id")," \xe9 o ",Object(l.b)("code",null,"charge_id")," da transa\xe7\xe3o desejada."),Object(l.b)("p",null,"Caso queira, voc\xea pode explorar e conhecer mais sobre este recurso ",Object(l.b)("a",Object(a.a)({parentName:"p"},{href:"../AmbienteTestes/PlaygroundTransacoes"}),"usando nosso Playground")," e utilizar como base o JSON abaixo:"),Object(l.b)("div",{className:"admonition admonition-note alert alert--secondary"},Object(l.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-heading"}),Object(l.b)("h5",{parentName:"div"},Object(l.b)("span",Object(a.a)({parentName:"h5"},{className:"admonition-icon"}),Object(l.b)("svg",Object(a.a)({parentName:"span"},{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"}),Object(l.b)("path",Object(a.a)({parentName:"svg"},{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})))),"NOTA")),Object(l.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-content"}),Object(l.b)("p",{parentName:"div"},"Cabe frisar que n\xe3o h\xe1 um padr\xe3o nos itens que ser\xe3o exibidos, no sentido que o pr\xf3prio integrador ir\xe1 definir, atrav\xe9s dos atributos devidos, a quantidade de colunas (at\xe9 4), linhas, textos e valores a serem exibidos no boleto do tipo balancete."),Object(l.b)("p",{parentName:"div"},"Em suma, \xe9 como se o integrador estivesse trabalhando com uma tabela constru\xedda em HTML, mas em formato JSON."))),Object(l.b)("p",null,"A seguir, um JSON de exemplo que pode ser utilizado para criar um boleto do tipo balancete:"),Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-json"}),'{\n "title": "Balancete Demonstrativo - Periodo 25/06/2018 a 25/07/2018",\n "body": [{\n "header": "Demonstrativo de Consumo",\n "tables": [{\n "rows": [[{\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "Despesa de condom\xednio:",\n "colspan": 2\n },\n {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "Total lan\xe7ado",\n "colspan": 1\n },\n {\n "align": "right",\n "color": "#000000",\n "style": "bold",\n "text": "Rateio",\n "colspan": 1\n }],\n [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Servi\xe7o de Vigil\xe2ncia Contratado:",\n "colspan": 2\n },\n {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 300,00",\n "colspan": 1\n },\n {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 75,00",\n "colspan": 1\n }], \n [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Servi\xe7o de Zeladoria Contratado:",\n "colspan": 2\n },\n {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 130,00",\n "colspan": 1\n },\n {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 32,00",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Servi\xe7o de Jardinagem:",\n "colspan": 2\n },\n {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 80,00",\n "colspan": 1\n },\n {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 20,00",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Tarifa Banc\xe1ria:",\n "colspan": 2\n },\n {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 10,00",\n "colspan": 1\n },\n {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 2,50",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Despesa condom\xednio:",\n "colspan": 2\n },\n {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 800,00",\n "colspan": 1\n },\n {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 320,00",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Reforma de pr\xe9dio:",\n "colspan": 2\n },\n {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 350,00",\n "colspan": 1\n },\n {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 140,00",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Investimentos:",\n "colspan": 1\n },\n {\n "align": "center",\n "color": "#000000",\n "style": "bold",\n "text": "Total:",\n "colspan": 1\n },\n {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 1320,00",\n "colspan": 1\n },\n {\n "align": "right",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 450,00",\n "colspan": 1\n }], [{\n "align": "center",\n "color": "#000000",\n "style": "bold",\n "text": " ",\n "colspan": 1\n },{\n "align": "center",\n "color": "#000000",\n "style": "bold",\n "text": "Total:",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 350,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 140,00",\n "colspan": 1\n }]]\n },\n {\n "rows": [[{\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "Despesas de Consumo",\n "colspan": 4\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Leitura de g\xe1s:",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "Data: 25/11/2017",\n "colspan": 3\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Anterior",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Atual Consumo",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "g/l",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "Total",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "49,000000",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "63,000000",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "14,000000",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 53,50",\n "colspan": 1\n }]]\n }, \n {\n "rows": [[{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Leitura de \xe1gua:",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "Data: 25/11/2017",\n "colspan": 3\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Anterior",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Atual Consumo",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "m\xb3",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "Total",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "112,500000",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "114,900000",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "2,400000",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 43,00",\n "colspan": 1\n }]]\n }, \n {\n "rows": [[{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Leitura de esgoto:",\n "colspan": 1\n },\n {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "Data: 25/11/2017",\n "colspan": 3\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Anterior",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Atual Consumo",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "m\xb3",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "Total",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "0,000000",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "0,000000",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "0,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 34,40",\n "colspan": 1\n }]] \n }, { \n "rows": [[{\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "Resumo do rateio",\n "colspan": 4\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Despesas de condom\xednio",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 450,00",\n "colspan": 2\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Investimento",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 140,00",\n "colspan": 2\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Fundo de reserva 10%",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 79,59",\n "colspan": 2\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Leitura de g\xe1s",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 53,50",\n "colspan": 2\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Leitura de \xe1gua",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 43,00",\n "colspan": 2\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Leitura de esgoto",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 34,40",\n "colspan": 2\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Garagens",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 5,00",\n "colspan": 2\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Taxa de administradora",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 25,00",\n "colspan": 2\n }], [{\n "align": "right",\n "color": "#DC143C",\n "style": "bold",\n "text": "Total geral:",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#DC143C",\n "style": "bold",\n "text": "R$ 823,49",\n "colspan": 2\n }]]\n }]\n },\n {\n "header": "Balancete Geral",\n "tables": [{\n "rows": [[{\n "align": "left",\n "color": "#DC143C",\n "style": "bold",\n "text": "RECEITAS",\n "colspan": 4\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "RECEITAS DE CONDOM\xcdNIO",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 2.090,12",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "bold",\n "text": "100,00%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Taxa de Condominio",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 1.030,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "49,28%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Investimentos",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 280,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "13,40%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "G\xe1s",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 50,73",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "2,43%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Garagens",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 23,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "1,10%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Reserva T\xe9cnica",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 183,19",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "8,67%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "\xc1gua",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 249,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "11,91%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Esgoto",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 199,20",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "9,53%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Taxa Administradora",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 75,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "3,59%",\n "colspan": 1\n }]] }, {\n "rows": [[{\n "align": "left",\n "color": "#DC143C",\n "style": "bold",\n "text": "DESPESAS",\n "colspan": 4\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "DESPESAS DE CONDOM\xcdNIO",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 1.670,12",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "bold",\n "text": "100,00%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "DESPESAS DE AQUISI\xc7\xd5ES",\n "colspan": 4\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Despesas de condom\xednio",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 800,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "47,90%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Reformas do pr\xe9dio",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 350,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "20,96%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": " ",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 1.150,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "bold",\n "text": "68,86%",\n "colspan": 1\n }]] } , {\n "rows": [[{\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "DESPESAS COM SERVI\xc7OS",\n "colspan": 4\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Servi\xe7o de Vigil\xe2ncia Contratado",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 300,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "17,96%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Servi\xe7o de Zeladoria Contratado",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 130,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "7,78%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Servi\xe7o de Jardinagem",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 80,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "4,79%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": " ",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 510,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "bold",\n "text": "30,54%",\n "colspan": 1\n }]]} , {\n "rows": [[{\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "DESPESAS BANC\xc1RIAS",\n "colspan": 4\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Tarifa Banc\xe1ria",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 10,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "0,60%",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": " ",\n "colspan": 2\n }, {\n "align": "center",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 10,00",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "bold",\n "text": "0,60%",\n "colspan": 1\n }]] } , {\n "rows": [[{\n "align": "left",\n "color": "#DC143C",\n "style": "bold",\n "text": "Resumo de Presta\xe7\xe3o de Contas",\n "colspan": 4\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "RECEITAS",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 2.090,12",\n "colspan": 2\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "DESPESAS",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 1.670,00",\n "colspan": 2\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": " ",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "(Receitas - Despesas)R$ 420,12",\n "colspan": 2\n }]]} , {\n "rows": [[{\n "align": "left",\n "color": "#DC143C",\n "style": "bold",\n "text": "Resumo de Saldos",\n "colspan": 4\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Conta",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Saldo Anterior",\n "colspan": 1\n },{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Entradas Sa\xeddas",\n "colspan": 1\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "Saldo Atual",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "BANCOS",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "21.816,28",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "2.090,12 1670,00",\n "colspan": 2\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "22.236,40",\n "colspan": 2\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Banco do Brasil",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "21.816,28",\n "colspan": 1\n }, {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "2.090,12 1670,00",\n "colspan": 2\n }, {\n "align": "right",\n "color": "#000000",\n "style": "normal",\n "text": "22.236,40",\n "colspan": 2\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": " ",\n "colspan": 2\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "(Bancos + Caixa)R$ 22.236,40",\n "colspan": 2\n }]] } , {\n "rows": [[{\n "align": "left",\n "color": "#DC143C",\n "style": "bold",\n "text": "Contas a Receber",\n "colspan": 4\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Contas a Receber at\xe9 30/09/2017",\n "colspan": 3\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 2.271,27",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Contas a Receber no Per\xedodo de 01/10/17 at\xe9 30/10/2017",\n "colspan": 3\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 549,31",\n "colspan": 1\n }], [{\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Total de Contas a Receber",\n "colspan": 3\n }, {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "R$ 2.820,58",\n "colspan": 1\n }]]\n }]\n }]\n}\n')),Object(l.b)("p",null,"A seguir um exemplo de utiliza\xe7\xe3o, de acordo com as SDKs que disponibilizamos:"),Object(l.b)(r.a,{defaultValue:"php",values:[{label:"PHP",value:"php"},{label:"Python",value:"python"},{label:"NodeJS",value:"js"},{label:".NET",value:"c"},{label:"Java",value:"java"},{label:"GO",value:"go"},{label:"Ruby",value:"ruby"},{label:"Delphi",value:"delphi"}],mdxType:"Tabs"},Object(l.b)(c.a,{value:"php",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-php"}),"<?php\n \nrequire __DIR__.'/../../vendor/autoload.php'; // caminho relacionado a SDK\n \nuse Gerencianet\\Exception\\GerencianetException;\nuse Gerencianet\\Gerencianet;\n \n$clientId = 'informe_seu_client_id'; // insira seu Client_Id, conforme o ambiente (Des ou Prod)\n$clientSecret = 'informe_seu_client_secret'; // insira seu Client_Secret, conforme o ambiente (Des ou Prod)\n \n$options = [\n 'client_id' => $clientId,\n 'client_secret' => $clientSecret,\n 'sandbox' => true // altere conforme o ambiente (true = desenvolvimento e false = producao)\n];\n\n// $charge_id refere-se ao ID da transa\xe7\xe3o gerada anteriormente\n$params = [\n 'id' => $charge_id\n];\n\n$body = [\n 'title' => 'Balancete Demonstrativo',\n 'body' => \n [\n 0 => \n [\n 'header' => 'Demonstrativo de Consumo',\n 'tables' => \n [\n 0 => \n [\n 'rows' => \n [\n 0 => \n [\n 0 => \n [\n 'align' => 'left',\n 'color' => '#000000',\n 'style' => 'bold',\n 'text' => 'Exemplo de despesa',\n 'colspan' => 2,\n ],\n 1 => \n [\n 'align' => 'left',\n 'color' => '#000000',\n 'style' => 'bold',\n 'text' => 'Total lan\xe7ado',\n 'colspan' => 2,\n ],\n ],\n 1 => \n [\n 0 => \n [\n 'align' => 'left',\n 'color' => '#000000',\n 'style' => 'normal',\n 'text' => 'Instala\xe7\xe3o',\n 'colspan' => 2,\n ],\n 1 => \n [\n 'align' => 'left',\n 'color' => '#000000',\n 'style' => 'normal',\n 'text' => 'R$ 100,00',\n 'colspan' => 2,\n ],\n ],\n ],\n ],\n ],\n ],\n 1 => \n [\n 'header' => 'Balancete Geral',\n 'tables' => \n [\n 0 => \n [\n 'rows' => \n [\n 0 => \n [\n 0 => \n [\n 'align' => 'left',\n 'color' => '#000000',\n 'style' => 'normal',\n 'text' => 'Confira na documenta\xe7\xe3o da Gerencianet todas as configura\xe7\xf5es poss\xedveis de um boleto balancete.',\n 'colspan' => 4,\n ],\n ],\n ],\n ],\n ],\n ],\n ],\n];\ntry {\n $api = new Gerencianet($options);\n $response = $api->createChargeBalanceSheet($params, $body);\n print_r($response);\n} catch (GerencianetException $e) {\n print_r($e->code);\n print_r($e->error);\n print_r($e->errorDescription);\n} catch (Exception $e) {\n print_r($e->getMessage());\n}\n"))),Object(l.b)(c.a,{value:"python",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-py"}),"# encoding: utf-8\n\nfrom gerencianet import Gerencianet\nfrom credentials import CREDENTIALS\n\ngn = Gerencianet(CREDENTIALS)\n\nparams = {\n 'id': 1\n}\n\nbody = {\n 'title': 'Balancete Demonstrativo',\n 'body': [\n {\n 'header': 'Demonstrativo de Consumo',\n 'tables': [\n {\n 'rows': [\n [\n {\n 'align': 'left',\n 'color': '#000000',\n 'style': 'bold',\n 'text': 'Exemplo de despesa',\n 'colspan': 2\n },\n {\n 'align': 'left',\n 'color': '#000000',\n 'style': 'bold',\n 'text': 'Total lan\xe7ado',\n 'colspan': 2\n }\n ],\n [\n {\n 'align': 'left',\n 'color': '#000000',\n 'style': 'normal',\n 'text': 'Instala\xe7\xe3o',\n 'colspan': 2\n },\n {\n 'align': 'left',\n 'color': '#000000',\n 'style': 'normal',\n 'text': 'R$ 100,00',\n 'colspan': 2\n }\n ]\n ]\n }\n ]\n },\n {\n 'header': 'Balancete Geral',\n 'tables': [\n {\n 'rows': [\n [\n {\n 'align': 'left',\n 'color': '#000000',\n 'style': 'normal',\n 'text': 'Confira na documenta\xe7\xe3o da Gerencianet todas as configura\xe7\xf5es poss\xedveis.',\n 'colspan': 4\n }\n ]\n ]\n }\n ]\n }\n ]\n}\n\nresponse = gn.create_charge_balance_sheet(params=params, body=body)\nprint(response)\n"))),Object(l.b)(c.a,{value:"js",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-js"}),'\'use strict\';\n\nvar Gerencianet = require(\'gn-api-sdk-node\');\nvar credentials = require(\'./credentials\');\n\nvar options = {\n client_id: credentials.client_id,\n client_secret: credentials.client_secret,\n sandbox: true\n};\n\nvar params = {\n id: 0\n};\n\nvar body = {\n title: "Balancete Demonstrativo",\n body: [\n {\n header: "Demonstrativo de Consumo",\n tables: [\n {\n rows: [\n [\n {\n align: "left",\n color: "#000000",\n style: "bold",\n text: "Exemplo de despesa",\n colspan: 2\n },\n {\n align: "left",\n color: "#000000",\n style: "bold",\n text: "Total lan\xe7ado",\n colspan: 2\n }\n ],\n [\n {\n align: "left",\n color: "#000000",\n style: "normal",\n text: "Instala\xe7\xe3o",\n colspan: 2\n },\n {\n align: "left",\n color: "#000000",\n style: "normal",\n text: "R$ 100,00",\n colspan: 2\n }\n ]\n ]\n }\n ]\n },\n {\n header: "Balancete Geral",\n tables: [\n {\n rows: [\n [\n {\n align: "left",\n color: "#000000",\n style: "normal",\n text: "Confira na documenta\xe7\xe3o da Gerencianet todas as configura\xe7\xf5es poss\xedveis de um boleto balancete.",\n colspan: 4\n }\n ]\n ]\n }\n ]\n }\n ]\n};\n\nvar gerencianet = new Gerencianet(options);\n\ngerencianet\n .createChargeBalanceSheet(params, body)\n .then(console.log)\n .catch(console.log)\n .done();\n'))),Object(l.b)(c.a,{value:"c",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-js"}),"Em atualiza\xe7\xe3o\n"))),Object(l.b)(c.a,{value:"java",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-java"}),'/* Para que a SDK Java funcione corretamente, \xe9 necess\xe1rio que a instancia\xe7\xe3o do m\xf3dulo seja feita atrav\xe9s da cria\xe7\xe3o de um objeto do tipo Gerencianet.\n\nSempre que quisermos chamar uma fun\xe7\xe3o da API, basta invocar o m\xe9todo call do objeto Gerencianet, passando como par\xe2metro o nome do m\xe9todo, os par\xe2metros da requisi\xe7\xe3o (sempre ser\xe1 um HashMap<String, String>), e o "body", que consiste nas propriedades a serem passadas como argumento na chamada de um fun\xe7\xe3o da SDK. O "body" pode ser declarado de duas formas: um JSONObject ou um Map<String, Object>.\n\nEsta estrutura \xe9 necess\xe1ria para representar o corpo da requisi\xe7\xe3o http que \xe9 enviada \xe0 um determinado endpoint. Se o "body" for um JSONObject, o retorno do m\xe9todo call ser\xe1 um JSONObject, se for um Map<String, Object>, o retorno do m\xe9todo call ser\xe1 um Map<String, Object>\n\nA seguir, disponibilizamos links de nosso Github mostrando duas formas diferentes de retorno: JSONObject\ne Map<String, Object>\n\n\nJSONObject\n\nhttps://github.com/gerencianet/gn-api-sdk-java-examples/blob/master/src/main/java/br/com/gerencianet/charge/json/CreateChargeBalanceSheet.java\n\n\nMap<String, Object>\n\nhttps://github.com/gerencianet/gn-api-sdk-java-examples/blob/master/src/main/java/br/com/gerencianet/charge/map/CreateChargeBalanceSheet.java\n\n*/\n'))),Object(l.b)(c.a,{value:"go",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-go"}),'package main\n\nimport (\n "fmt"\n "github.com/gerencianet/gn-api-sdk-go/gerencianet"\n "github.com/gerencianet/gn-api-sdk-go/_examples/configs"\n)\n\nfunc main(){\n \n credentials := configs.Credentials\n gn := gerencianet.NewGerencianet(credentials)\n\n body := map[string]interface{} {\n "title": "Balancete Demonstrativo",\n "body": []map[string]interface{} {\n {\n "header": "Demonstrativo de Consumo",\n "tables": []map[string]interface{} {\n {\n "rows": [][]map[string]interface{} {\n {\n {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "Exemplo de despesa",\n "colspan": 2,\n },\n {\n "align": "left",\n "color": "#000000",\n "style": "bold",\n "text": "Total lan\xe7ado",\n "colspan": 2,\n },\n },\n {\n {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Instala\xe7\xe3o",\n "colspan": 2,\n },\n {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "R$ 100,00",\n "colspan": 2,\n },\n },\n },\n },\n },\n },\n {\n "header": "Balancete Geral",\n "tables": []map[string]interface{} {\n {\n "rows": [][]map[string]interface{} {\n {\n {\n "align": "left",\n "color": "#000000",\n "style": "normal",\n "text": "Confira na documenta\xe7\xe3o da Gerencianet todas as configura\xe7\xf5es poss\xedveis de um boleto balancete.",\n "colspan": 4,\n },\n },\n },\n },\n },\n },\n }, \n }\n\n res, err := gn.CreateChargeBalanceSheet(1, body)\n\n if err != nil {\n fmt.Println(err)\n } else {\n fmt.Println(res)\n }\n}\n'))),Object(l.b)(c.a,{value:"ruby",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-js"}),'require "gerencianet"\nrequire_relative "./credentials"\n\noptions = {\n client_id: CREDENTIALS::CLIENT_ID,\n client_secret: CREDENTIALS::CLIENT_SECRET,\n sandbox: true\n}\n\nparams = {\n id: 1000\n}\n\nbody = {\n title: "Balancete Demonstrativo",\n body: [\n {\n header: "Demonstrativo de Consumo",\n tables: [\n {\n rows: [\n [\n {\n align: "left",\n color: "#000000",\n style: "bold",\n text: "Exemplo de despesa",\n colspan: 2\n },\n {\n align: "left",\n color: "#000000",\n style: "bold",\n text: "Total lan\xe7ado",\n colspan: 2\n }\n ],\n [\n {\n align: "left",\n color: "#000000",\n style: "normal",\n text: "Instala\xe7\xe3o",\n colspan: 2\n },\n {\n align: "left",\n color: "#000000",\n style: "normal",\n text: "R$ 100,00",\n colspan: 2\n }\n ]\n ]\n }\n ]\n },\n {\n header: "Balancete Geral",\n tables: [\n {\n rows: [\n [\n {\n align: "left",\n color: "#000000",\n style: "normal",\n text: "Confira na documenta\xe7\xe3o da Gerencianet todas as configura\xe7\xf5es poss\xedveis de um boleto balancete.",\n colspan: 4\n }\n ]\n ]\n }\n ]\n }\n ]\n}\n\ngerencianet = Gerencianet.new(options)\nputs gerencianet.create_charge_balance_sheet(params: params, body: body)\n'))),Object(l.b)(c.a,{value:"delphi",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-json"}),'function CreateChargeBalanceSheet(Id: String): String;\nvar\n Body: String;\n PaymentParams: String;\nbegin\n Body :=\n \' { \' +\n \' "title": "Balancete Demonstrativo - Periodo 25/06/2018 a 25/07/2018", \' +\n \' "body": [{ \' +\n \' "header": "Demonstrativo de Consumo", \' +\n \' "tables": [{ \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "Despesa de condom\xednio:", \' +\n \' "colspan": 2 \' +\n \' }, \' +\n \' { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "Total lan\xe7ado", \' +\n \' "colspan": 1 \' +\n \' }, \' +\n \' { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "Rateio", \' +\n \' "colspan": 1 \' +\n \' }], \' +\n \' [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Servi\xe7o de Vigil\xe2ncia Contratado:", \' +\n \' "colspan": 2 \' +\n \' }, \' +\n \' { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 300,00", \' +\n \' "colspan": 1 \' +\n \' }, \' +\n \' { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 75,00", \' +\n \' "colspan": 1 \' +\n \' }], \' +\n \' [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Servi\xe7o de Zeladoria Contratado:", \' +\n \' "colspan": 2 \' +\n \' }, \' +\n \' { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 130,00", \' +\n \' "colspan": 1 \' +\n \' }, \' +\n \' { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 32,00", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Servi\xe7o de Jardinagem:", \' +\n \' "colspan": 2 \' +\n \' }, \' +\n \' { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 80,00", \' +\n \' "colspan": 1 \' +\n \' }, \' +\n \' { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 20,00", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Tarifa Banc\xe1ria:", \' +\n \' "colspan": 2 \' +\n \' }, \' +\n \' { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 10,00", \' +\n \' "colspan": 1 \' +\n \' }, \' +\n \' { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 2,50", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Despesa condom\xednio:", \' +\n \' "colspan": 2 \' +\n \' }, \' +\n \' { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 800,00", \' +\n \' "colspan": 1 \' +\n \' }, \' +\n \' { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 320,00", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Reforma de pr\xe9dio:", \' +\n \' "colspan": 2 \' +\n \' }, \' +\n \' { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 350,00", \' +\n \' "colspan": 1 \' +\n \' }, \' +\n \' { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 140,00", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Investimentos:", \' +\n \' "colspan": 1 \' +\n \' }, \' +\n \' { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "Total:", \' +\n \' "colspan": 1 \' +\n \' }, \' +\n \' { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 1320,00", \' +\n \' "colspan": 1 \' +\n \' }, \' +\n \' { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 450,00", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": " ", \' +\n \' "colspan": 1 \' +\n \' },{ \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "Total:", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 350,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 140,00", \' +\n \' "colspan": 1 \' +\n \' }]] \' +\n \' }, \' +\n \' { \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "Despesas de Consumo", \' +\n \' "colspan": 4 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Leitura de g\xe1s:", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "Data: 25/11/2017", \' +\n \' "colspan": 3 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Anterior", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Atual Consumo", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "g/l", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Total", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "49,000000", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "63,000000", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "14,000000", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 53,50", \' +\n \' "colspan": 1 \' +\n \' }]] \' +\n \' }, \' +\n \' { \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Leitura de \xe1gua:", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "Data: 25/11/2017", \' +\n \' "colspan": 3 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Anterior", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Atual Consumo", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "m\xb3", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Total", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "112,500000", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "114,900000", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "2,400000", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 43,00", \' +\n \' "colspan": 1 \' +\n \' }]] \' +\n \' }, \' +\n \' { \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Leitura de esgoto:", \' +\n \' "colspan": 1 \' +\n \' }, \' +\n \' { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "Data: 25/11/2017", \' +\n \' "colspan": 3 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Anterior", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Atual Consumo", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "m\xb3", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Total", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "0,000000", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "0,000000", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "0,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 34,40", \' +\n \' "colspan": 1 \' +\n \' }]] \' +\n \' }, { \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "Resumo do rateio", \' +\n \' "colspan": 4 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Despesas de condom\xednio", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 450,00", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Investimento", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 140,00", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Fundo de reserva 10%", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 79,59", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Leitura de g\xe1s", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 53,50", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Leitura de \xe1gua", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 43,00", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Leitura de esgoto", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 34,40", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Garagens", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 5,00", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Taxa de administradora", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 25,00", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "right", \' +\n \' "color": "#DC143C", \' +\n \' "style": "bold", \' +\n \' "text": "Total geral:", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#DC143C", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 823,49", \' +\n \' "colspan": 2 \' +\n \' }]] \' +\n \' }] \' +\n \' }, \' +\n \' { \' +\n \' "header": "Balancete Geral", \' +\n \' "tables": [{ \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#DC143C", \' +\n \' "style": "bold", \' +\n \' "text": "RECEITAS", \' +\n \' "colspan": 4 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "RECEITAS DE CONDOM\xcdNIO", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 2.090,12", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "100,00%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Taxa de Condominio", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 1.030,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "49,28%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Investimentos", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 280,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "13,40%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "G\xe1s", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 50,73", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "2,43%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Garagens", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 23,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "1,10%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Reserva T\xe9cnica", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 183,19", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "8,67%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "\xc1gua", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 249,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "11,91%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Esgoto", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 199,20", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "9,53%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Taxa Administradora", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 75,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "3,59%", \' +\n \' "colspan": 1 \' +\n \' }]] }, { \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#DC143C", \' +\n \' "style": "bold", \' +\n \' "text": "DESPESAS", \' +\n \' "colspan": 4 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "DESPESAS DE CONDOM\xcdNIO", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 1.670,12", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "100,00%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "DESPESAS DE AQUISI\xc7\xd5ES", \' +\n \' "colspan": 4 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Despesas de condom\xednio", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 800,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "47,90%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Reformas do pr\xe9dio", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 350,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "20,96%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": " ", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 1.150,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "68,86%", \' +\n \' "colspan": 1 \' +\n \' }]] } , { \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "DESPESAS COM SERVI\xc7OS", \' +\n \' "colspan": 4 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Servi\xe7o de Vigil\xe2ncia Contratado", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 300,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "17,96%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Servi\xe7o de Zeladoria Contratado", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 130,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "7,78%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Servi\xe7o de Jardinagem", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 80,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "4,79%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": " ", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 510,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "30,54%", \' +\n \' "colspan": 1 \' +\n \' }]]} , { \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "DESPESAS BANC\xc1RIAS", \' +\n \' "colspan": 4 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Tarifa Banc\xe1ria", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 10,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "0,60%", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": " ", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "center", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 10,00", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "0,60%", \' +\n \' "colspan": 1 \' +\n \' }]] } , { \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#DC143C", \' +\n \' "style": "bold", \' +\n \' "text": "Resumo de Presta\xe7\xe3o de Contas", \' +\n \' "colspan": 4 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "RECEITAS", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 2.090,12", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "DESPESAS", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "R$ 1.670,00", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": " ", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "(Receitas - Despesas)R$ 420,12", \' +\n \' "colspan": 2 \' +\n \' }]]} , { \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#DC143C", \' +\n \' "style": "bold", \' +\n \' "text": "Resumo de Saldos", \' +\n \' "colspan": 4 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Conta", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Saldo Anterior", \' +\n \' "colspan": 1 \' +\n \' },{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Entradas Sa\xeddas", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Saldo Atual", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "BANCOS", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "21.816,28", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "2.090,12 1670,00", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "22.236,40", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Banco do Brasil", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "21.816,28", \' +\n \' "colspan": 1 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "2.090,12 1670,00", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "right", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "22.236,40", \' +\n \' "colspan": 2 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": " ", \' +\n \' "colspan": 2 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "(Bancos + Caixa)R$ 22.236,40", \' +\n \' "colspan": 2 \' +\n \' }]] } , { \' +\n \' "rows": [[{ \' +\n \' "align": "left", \' +\n \' "color": "#DC143C", \' +\n \' "style": "bold", \' +\n \' "text": "Contas a Receber", \' +\n \' "colspan": 4 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Contas a Receber at\xe9 30/09/2017", \' +\n \' "colspan": 3 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 2.271,27", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Contas a Receber no Per\xedodo de 01/10/17 at\xe9 30/10/2017", \' +\n \' "colspan": 3 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 549,31", \' +\n \' "colspan": 1 \' +\n \' }], [{ \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "normal", \' +\n \' "text": "Total de Contas a Receber", \' +\n \' "colspan": 3 \' +\n \' }, { \' +\n \' "align": "left", \' +\n \' "color": "#000000", \' +\n \' "style": "bold", \' +\n \' "text": "R$ 2.820,58", \' +\n \' "colspan": 1 \' +\n \' }]] \' +\n \' }] \' +\n \' }] \' +\n \' } \' ;\n\n PaymentParams := CreateRequestParams( [ \'id=\'+Id ] ).Text;\n Result := ExecuteGerenciaNetRequest( \'createChargeBalanceSheet\',PaymentParams,\'\',Body );\nend;\n')))),Object(l.b)("p",null,"Como resultado do consumo do c\xf3digo do boleto balancete, \xe9 poss\xedvel visualizar um exemplo de layout do boleto do tipo balancete, conforme demonstrado na imagem:"),Object(l.b)("p",null,Object(l.b)("a",Object(a.a)({parentName:"p"},{href:"../../img/balancete.jpg"}),Object(l.b)("img",{src:"../../img/balancete.jpg"}))),Object(l.b)("div",{className:"admonition admonition-important alert alert--info"},Object(l.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-heading"}),Object(l.b)("h5",{parentName:"div"},Object(l.b)("span",Object(a.a)({parentName:"h5"},{className:"admonition-icon"}),Object(l.b)("svg",Object(a.a)({parentName:"span"},{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"}),Object(l.b)("path",Object(a.a)({parentName:"svg"},{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})))),"IMPORTANTE")),Object(l.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-content"}),Object(l.b)("p",{parentName:"div"},"As informa\xe7\xf5es contidas no balancete n\xe3o ser\xe3o utilizadas pela Gerencianet. Recebemos o conte\xfado da requisi\xe7\xe3o de seu sistema/aplica\xe7\xe3o e apenas montamos a cobran\xe7a da forma que o integrador espera receber, conforme layout de exemplo acima."),Object(l.b)("p",{parentName:"div"},"Ou seja, a Gerencianet n\xe3o valida as informa\xe7\xf5es presentes no balancete e nem efetua c\xe1lculos de seu balancete, apenas processa e monta os dados dentro do layout conforme a estrutura do c\xf3digo contido em sua requisi\xe7\xe3o \xe0 rota ",Object(l.b)("inlineCode",{parentName:"p"},"POST /charge/:id/balance-sheet"),"."))),Object(l.b)("br",null),Object(l.b)("br",null),Object(l.b)("div",{className:"admonition admonition-important alert alert--info"},Object(l.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-heading"}),Object(l.b)("h5",{parentName:"div"},Object(l.b)("span",Object(a.a)({parentName:"h5"},{className:"admonition-icon"}),Object(l.b)("svg",Object(a.a)({parentName:"span"},{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"}),Object(l.b)("path",Object(a.a)({parentName:"svg"},{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})))),"IMPORTANTE")),Object(l.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-content"}),Object(l.b)("p",{parentName:"div"},"As requisi\xe7\xf5es para o endpoint de balancete n\xe3o devem exceder 300 KB (body da requisi\xe7\xe3o)."))),Object(l.b)("br",null),Object(l.b)("h3",{id:"a-estrutura-hier\xe1rquica-dos-atributos-que-podem-ser-utilizados"},"a) Estrutura hier\xe1rquica dos atributos que podem ser utilizados:"),Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{}),'"id": "/BalanceSheet"\n "title"\n "body"\n "header"\n "tables"\n "rows"\n "header"\n "tables"\n "rows"\n')),Object(l.b)("br",null),Object(l.b)("h3",{id:"b-atributos-que-podem-ser-utilizados-1"},"b) Atributos que podem ser utilizados:"),Object(l.b)("table",null,Object(l.b)("tbody",null,Object(l.b)("tr",null,Object(l.b)("th",null,"Atributo"),Object(l.b)("th",{align:"center"},"Descri\xe7\xe3o"),Object(l.b)("th",{align:"center"},"Obrigat\xf3rio"),Object(l.b)("th",{align:"center"},"Tipo")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"title")),Object(l.b)("td",{align:"left"},"Define o t\xedtulo no topo do boleto balancete.",Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Tamanho: m\xednimo de 3 caracteres e m\xe1ximo de 255.")),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"String")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"body")),Object(l.b)("td",{align:"left"},"Define o corpo do boleto balancete contendo todas as informa\xe7\xf5es a serem montadas."),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"Array")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"header")),Object(l.b)("td",{align:"left"},"Exibe um texto (t\xedtulo) no cabe\xe7alho. Refere-se ao 1\xba quadrante do boleto.",Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Tamanho: m\xednimo de 3 caracteres e m\xe1ximo de 255. (String).")),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"String")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"rows")),Object(l.b)("td",{align:"left"},"Relacionado \xe0s linhas utilizadas. Refere-se ao 1\xba quadrante do boleto.",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("em",null,"Atributos de rows:"),Object(l.b)("br",null),Object(l.b)("code",null,"align*"),"// alinhamento do texto. Valores poss\xedveis: ",Object(l.b)("code",null,"left"),", ",Object(l.b)("code",null,"center")," ou ",Object(l.b)("code",null,"right"),". ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"number*"),"// N\xfamero ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String/Integer)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"neighborhood*"),"// Bairro ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"zipcode*"),"// CEP (sem pontos ou h\xedfen) ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"city*"),"// Cidade ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"complement"),"// Complemento ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String/null)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"state*"),"// Estado (2 caracteres) ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(Object)")),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"Array")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"header")),Object(l.b)("td",{align:"left"},"Dxibe um texto (t\xedtulo) no cabe\xe7alho. Refere-se ao 2\xba quadrante do boleto.",Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Tamanho: m\xednimo de 3 caracteres e m\xe1ximo de 255. (String).")),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"String")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"tables")),Object(l.b)("td",{align:"left"},"Propriedade que define a cria\xe7\xe3o da tabela. Refere-se ao 2\xba quadrante do boleto."),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"Array")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"rows")),Object(l.b)("td",{align:"left"},"Relacionado \xe0s linhas utilizadas. Refere-se ao 2\xba quadrante do boleto.",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("em",null,"Atributos de rows:"),Object(l.b)("br",null),Object(l.b)("code",null,"align*"),"// alinhamento do texto. Valores poss\xedveis: ",Object(l.b)("code",null,"left"),", ",Object(l.b)("code",null,"center")," ou ",Object(l.b)("code",null,"right"),". ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"number*"),"// N\xfamero ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String/Integer)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"neighborhood*"),"// Bairro ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"zipcode*"),"// CEP (sem pontos ou h\xedfen) ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"city*"),"// Cidade ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"complement"),"// Complemento ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String/null)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"state*"),"// Estado (2 caracteres) ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(Object)")),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"Array")))),Object(l.b)("p",null,Object(l.b)("strong",{parentName:"p"},"Os campos com * representam valores obrigat\xf3rios")),Object(l.b)("br",null),Object(l.b)("hr",null),Object(l.b)("h2",{id:"3-associar-\xe0-forma-de-pagamento-via-boleto"},"3. Associar \xe0 forma de pagamento via boleto"),Object(l.b)("p",null,"Com a transa\xe7\xe3o gerada com sucesso, agora vamos associar com a forma de pagamento desejada - neste caso, ser\xe1 ",Object(l.b)("code",null,"banking_billet")," (boleto banc\xe1rio). Para tal, dever\xe1 ser informado o ",Object(l.b)("code",null,"charge_id")," obtido ao criar a transa\xe7\xe3o."),Object(l.b)("p",null,"Neste momento, ao definir boleto banc\xe1rio como forma de pagamento da transa\xe7\xe3o, seu status ser\xe1 alterado de ",Object(l.b)("code",null,"new")," para ",Object(l.b)("code",null,"waiting"),". Isso significa que a forma de pagamento foi selecionada e est\xe1 aguardando a confirma\xe7\xe3o do pagamento."),Object(l.b)("p",null,"Para associar \xe0 forma de pagamento, voc\xea deve enviar uma requisi\xe7\xe3o ",Object(l.b)("code",null,"POST")," para a rota ",Object(l.b)("code",null,"/v1/charge/:id/pay"),", onde ",Object(l.b)("code",null,":id")," \xe9 o ",Object(l.b)("code",null,"charge_id")," da transa\xe7\xe3o desejada."),Object(l.b)("p",null,"Caso queira, pode explorar e conhecer mais sobre este recurso ",Object(l.b)("a",Object(a.a)({parentName:"p"},{href:"../AmbienteTestes/PlaygroundTransacoes"}),"usando nosso Playground")," "),Object(l.b)("p",null,"O exemplo abaixo mostra como isto pode ser feito, utilizando as SDK's dispon\xedveis:"),Object(l.b)(r.a,{defaultValue:"php",values:[{label:"PHP",value:"php"},{label:"Python",value:"python"},{label:"NodeJS",value:"js"},{label:".NET",value:"c"},{label:"Java",value:"java"},{label:"GO",value:"go"},{label:"Ruby",value:"ruby"},{label:"Delphi",value:"delphi"}],mdxType:"Tabs"},Object(l.b)(c.a,{value:"php",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-php"}),"<?php\n \nrequire __DIR__.'/../../vendor/autoload.php'; // caminho relacionado a SDK\n \nuse Gerencianet\\Exception\\GerencianetException;\nuse Gerencianet\\Gerencianet;\n \n$clientId = 'informe_seu_client_id'; // insira seu Client_Id, conforme o ambiente (Des ou Prod)\n$clientSecret = 'informe_seu_client_secret'; // insira seu Client_Secret, conforme o ambiente (Des ou Prod)\n \n$options = [\n 'client_id' => $clientId,\n 'client_secret' => $clientSecret,\n 'sandbox' => true // altere conforme o ambiente (true = desenvolvimento e false = producao)\n];\n \n// $charge_id refere-se ao ID da transa\xe7\xe3o gerada anteriormente\n$params = [\n 'id' => $charge_id\n];\n \n$customer = [\n 'name' => 'Gorbadoc Oldbuck', // nome do cliente\n 'cpf' => '94271564656' , // cpf v\xe1lido do cliente\n 'phone_number' => '5144916523' // telefone do cliente\n];\n \n$bankingBillet = [\n 'expire_at' => '2018-12-12', // data de vencimento do boleto (formato: YYYY-MM-DD)\n 'customer' => $customer\n];\n \n$payment = [\n 'banking_billet' => $bankingBillet // forma de pagamento (banking_billet = boleto)\n];\n \n$body = [\n 'payment' => $payment\n];\n \ntry {\n $api = new Gerencianet($options);\n $charge = $api->payCharge($params, $body);\n \n print_r($charge);\n} catch (GerencianetException $e) {\n print_r($e->code);\n print_r($e->error);\n print_r($e->errorDescription);\n} catch (Exception $e) {\n print_r($e->getMessage());\n}\n"))),Object(l.b)(c.a,{value:"python",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-py"}),"from gerencianet import Gerencianet\n \noptions = {\n 'client_id': 'client_id',\n 'client_secret': 'client_secret',\n 'sandbox': True\n}\n \ngn = Gerencianet(options)\n \nparams = {\n 'id': 1000\n}\n \nbody = {\n 'payment': {\n 'banking_billet': {\n 'expire_at': '2016-12-12',\n 'customer': {\n 'name': \"Gorbadoc Oldbuck\",\n 'email': \"oldbuck@gerencianet.com.br\",\n 'cpf': \"94271564656\",\n 'birth': \"1977-01-15\",\n 'phone_number': \"5144916523\"\n }\n }\n }\n}\n \ngn.pay_charge(params=params, body=body)\n"))),Object(l.b)(c.a,{value:"js",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-js"}),"'use strict';\n \nvar moment = require('moment');\nvar Gerencianet = require('gn-api-sdk-node');\n \nvar clientId = 'your_client_id';\nvar clientSecret = 'your_client_secret';\n \nvar options = {\n client_id: clientId,\n client_secret: clientSecret,\n sandbox: true\n}\n \nvar params = {\n id: 1000\n}\n \nvar expireAt = '2018-12-12';\n \nvar body = {\n payment: {\n banking_billet: {\n expire_at: expireAt,\n customer: {\n name: 'Gorbadoc Oldbuck',\n cpf: '94271564656',\n phone_number: '5144916523'\n }\n }\n }\n}\n \nvar gerencianet = new Gerencianet(options);\n \ngerencianet\n .payCharge(params, body)\n .then(console.log)\n .catch(console.log)\n .done();\n"))),Object(l.b)(c.a,{value:"c",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-js"}),'dynamic endpoints = new Endpoints("client_id", "client_secret", true);\n \nvar param = new {\n id = 1000\n};\n \nvar body = new {\n payment = new {\n banking_billet = new {\n expire_at = "2016-12-12",\n customer = new {\n name = "Gorbadoc Oldbuck",\n email = "oldbuck@gerencianet.com.br",\n cpf = "94271564656",\n birth = "1977-01-15",\n phone_number = "5144916523"\n }\n }\n }\n};\n \nvar response = endpoints.PayCharge(param, body);\n'))),Object(l.b)(c.a,{value:"java",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-java"}),'/* Para que a SDK Java funcione corretamente, \xe9 necess\xe1rio que a instancia\xe7\xe3o do m\xf3dulo seja feita atrav\xe9s da cria\xe7\xe3o de um objeto do tipo Gerencianet.\n\nSempre que quisermos chamar uma fun\xe7\xe3o da API, basta invocar o m\xe9todo call do objeto Gerencianet, passando como par\xe2metro o nome do m\xe9todo, os par\xe2metros da requisi\xe7\xe3o (sempre ser\xe1 um HashMap<String, String>), e o "body", que consiste nas propriedades a serem passadas como argumento na chamada de um fun\xe7\xe3o da SDK. O "body" pode ser declarado de duas formas: um JSONObject ou um Map<String, Object>.\n\nEsta estrutura \xe9 necess\xe1ria para representar o corpo da requisi\xe7\xe3o http que \xe9 enviada \xe0 um determinado endpoint. Se o "body" for um JSONObject, o retorno do m\xe9todo call ser\xe1 um JSONObject, se for um Map<String, Object>, o retorno do m\xe9todo call ser\xe1 um Map<String, Object>\n\nA seguir, disponibilizamos links de nosso Github mostrando duas formas diferentes de retorno: JSONObject\ne Map<String, Object>\n\n\nJSONObject\n\nhttps://github.com/gerencianet/gn-api-sdk-java-examples/blob/master/src/main/java/br/com/gerencianet/charge/json/Billet.java\n\n\nMap<String, Object>\n\nhttps://github.com/gerencianet/gn-api-sdk-java-examples/blob/master/src/main/java/br/com/gerencianet/charge/map/Billet.java\n\n*/\n'))),Object(l.b)(c.a,{value:"go",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-go"}),'// No c\xf3digo de exemplo de uso da SDK de Go, definimos as credenciais de acesso \xe0 API (Client_Id e Client_Secret) e o ambiente a ser usado (sandbox como \'true\' ou \'false\') dentro de um arquivo espec\xedfico (configs.go), que est\xe1 localizado no diret\xf3rio "_examples/configs". Essas credenciais s\xe3o exportadas atrav\xe9s da vari\xe1vel \'Credentials\'.\n\npackage main\n\nimport (\n "fmt"\n "github.com/gerencianet/gn-api-sdk-go/gerencianet"\n "github.com/gerencianet/gn-api-sdk-go/_examples/configs"\n)\n\nfunc main(){\n \n credentials := configs.Credentials\n gn := gerencianet.NewGerencianet(credentials)\n\n customer := map[string]interface{}{\n "name": "Gorbadoc Oldbuck",\n "cpf": "04267484171",\n "phone_number": "5144916523",\n }\n\n body := map[string]interface{} {\n "payment": map[string]interface{} {\n "banking_billet": map[string]interface{} {\n "expire_at": "2018-12-12",\n "customer": customer,\n },\n },\n }\n\n res, err := gn.PayCharge(1, body) // no lugar do 1 coloque o charge_id certo\n\n if err != nil {\n fmt.Println(err)\n } else {\n fmt.Println(res)\n }\n}\n'))),Object(l.b)(c.a,{value:"ruby",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-js"}),'require "gerencianet"\nrequire "date"\n \noptions = {\n client_id: "client_id",\n client_secret: "client_secret",\n sandbox: true\n}\n \ntomorrow = Date.today + 1\n \nparams = {\n id: 1000\n}\n \nbody = {\n payment: {\n banking_billet: {\n expire_at: tomorrow.strftime,\n customer: {\n name: "Gorbadoc Oldbuck",\n email: "oldbuck@gerencianet.com.br",\n cpf: "94271564656",\n birth: "1977-01-15",\n phone_number: "5144916523"\n }\n }\n }\n}\n \ngerencianet = Gerencianet.new(options)\ngerencianet.pay_charge(params: params, body: body)\n'))),Object(l.b)(c.a,{value:"delphi",mdxType:"TabItem"},Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{className:"language-json"}),"interface\nfunction PayChargeWithBillet(Id: String): String;\n\nimplementation\nuses uGerenciaClient, uGerenciaNetClientUtilities;\n{... your code ... }\n\nfunction PayChargeWithBillet(Id: String): String;\nvar \n Body : String;\n PaymentParams: String;\n \nconst \n BodyText = \n '{'+\n '\"payment\": {'+\n '\"banking_billet\": {'+\n '\"customer\": {'+\n '\"email\": \"email_do_cliente@servidor.com.br\",'+\n '\"phone_number\": \"5144916523\",'+\n '\"birth\": \"1977-07-17\",'+\n '\"address\": {'+\n '\"street\": \"Av. JK\",'+\n '\"number\": 909,'+\n '\"neighborhood\": \"Bauxita\",'+\n '\"complement\": \"\",'+\n '\"city\": \"Ouro Preto\",'+\n '\"state\": \"MG\",'+\n '\"zipcode\": \"35400000\"'+\n '},'+\n '\"name\": \"Gorbadoc Oldbuck\",'+\n '\"cpf\": \"94271564656\"'+\n '},'+\n '\"message\": \"Test\",'+\n '\"expire_at\": \"2019-02-21\"'+\n '}'+\n '}'+\n '}';\n\nbegin\n EnableService( 'GerenciaNet.dll' ); \n ConfigureService( ToPAnsiChar( 'client_id' ),ToPAnsiChar( 'client_secret' ),'sandbox','config.json',''); \n GerenciaNetAuthorize(); \n\n PaymentParams := CreateRequestParams( [ 'id='+Id ] ).Text; // Passa o id da transa\xe7\xe3o\n Body := BodyText;\n\n Result := ExecuteGerenciaNetRequest( 'payCharge',PaymentParams,'',Body );\nend;\n")))),Object(l.b)("br",null),Object(l.b)("h3",{id:"a-estrutura-hier\xe1rquica-dos-atributos-que-podem-ser-utilizados-1"},"a) Estrutura hier\xe1rquica dos atributos que podem ser utilizados:"),Object(l.b)("pre",null,Object(l.b)("code",Object(a.a)({parentName:"pre"},{}),'"id": "/Pay",\n "payment"\n "banking_billet"\n "customer"\n "name"\n "cpf"\n "email"\n "phone_number"\n "birth"\n "address"\n "street"\n "number"\n "neighborhood"\n "zipcode"\n "city"\n "complement"\n "state"\n "juridical_person"\n "corporate_name"\n "cnpj"\n "expire_at"\n "discount"\n "type"\n "percentage",\n "currency"\n "value"\n "conditional_discount"\n "type"\n "percentage",\n "currency"\n "value"\n "until_date"\n "configurations"\n "fine"\n "interest"\n "message"\n')),Object(l.b)("p",null,"Para verificar mais detalhes, ",Object(l.b)("a",Object(a.a)({parentName:"p"},{href:"../AmbienteTestes/PlaygroundTransacoes"}),"acesse aqui")),Object(l.b)("h3",{id:"b-atributos-que-podem-ser-utilizados-2"},"b) Atributos que podem ser utilizados:"),Object(l.b)("table",null,Object(l.b)("tbody",null,Object(l.b)("tr",null,Object(l.b)("th",null,"Atributo"),Object(l.b)("th",{align:"center"},"Descri\xe7\xe3o"),Object(l.b)("th",{align:"center"},"Obrigat\xf3rio"),Object(l.b)("th",{align:"center"},"Tipo")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"payment")),Object(l.b)("td",{align:"left"},"Tag raiz"),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"Objeto ",Object(l.b)("strong",null,"Payment"))))),Object(l.b)("br",null),Object(l.b)("p",null,Object(l.b)("em",{parentName:"p"},"Objeto")," ",Object(l.b)("strong",{parentName:"p"},"Payment")),Object(l.b)("table",null,Object(l.b)("tbody",null,Object(l.b)("tr",null,Object(l.b)("th",null,"Atributo"),Object(l.b)("th",{align:"center"},"Descri\xe7\xe3o"),Object(l.b)("th",{align:"center"},"Obrigat\xf3rio"),Object(l.b)("th",{align:"center"},"Tipo")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"banking_billet")),Object(l.b)("td",{align:"left"},'Forma de pagamento atrav\xe9s de "boleto banc\xe1rio"'),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"Objeto ",Object(l.b)("strong",null,"Banking_Billet"))))),Object(l.b)("br",null),Object(l.b)("p",null,Object(l.b)("em",{parentName:"p"},"Objeto")," ",Object(l.b)("strong",{parentName:"p"},"Banking_Billet")),Object(l.b)("table",null,Object(l.b)("tbody",null,Object(l.b)("tr",null,Object(l.b)("th",null,"Atributo"),Object(l.b)("th",{align:"center"},"Descri\xe7\xe3o"),Object(l.b)("th",{align:"center"},"Obrigat\xf3rio"),Object(l.b)("th",{align:"center"},"Tipo")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"name")),Object(l.b)("td",{align:"left"},"Nome do cliente.",Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"M\xednimo de 1 caractere e m\xe1ximo de 255 caracteres (String).")),Object(l.b)("td",{align:"center"},"Sim ",Object(l.b)("br",null),"Obs: Para Pessoa Jur\xeddica n\xe3o ser\xe3o obrigat\xf3rios o nome e CPF, apenas os demais dados do cliente."),Object(l.b)("td",{align:"center"},"String")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"cpf")),Object(l.b)("td",{align:"left"},"CPF v\xe1lido do cliente (sem pontos, v\xedrgulas ou h\xedfen).",Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Tamanho: 11 caracteres.")),Object(l.b)("td",{align:"center"},"Sim ",Object(l.b)("br",null),"Obs: Para Pessoa Jur\xeddica n\xe3o ser\xe3o obrigat\xf3rios o nome e CPF, apenas os demais dados do cliente."),Object(l.b)("td",{align:"center"},"String")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"email")),Object(l.b)("td",{align:"left"},"Email do cliente.",Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"M\xe1ximo de 255 caracteres. Ex.: email@email.com")),Object(l.b)("td",{align:"center"},"N\xe3o"),Object(l.b)("td",{align:"center"},"String")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"phone_number")),Object(l.b)("td",{align:"left"},"Telefone do cliente.",Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Formato: sem pontos ou v\xedrgulas, com DDD de 2 caracteres (9\xba d\xedgito \xe9 opcional). Ex.: 11988887777")),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"String")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"birth")),Object(l.b)("td",{align:"left"},"Data de nascimento do cliente.",Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Formato: YYYY-MM-DD")),Object(l.b)("td",{align:"center"},"N\xe3o"),Object(l.b)("td",{align:"center"},"String")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"address")),Object(l.b)("td",{align:"left"},"Endere\xe7o do cliente.",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("em",null,"Atributos de address:"),Object(l.b)("br",null),Object(l.b)("code",null,"street*"),"// Nome da rua ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(Object)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"number*"),"// N\xfamero ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String/Integer)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"neighborhood*"),"// Bairro ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"zipcode*"),"// CEP (sem pontos ou h\xedfen) ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"city*"),"// Cidade ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"complement"),"// Complemento ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(String/null)"),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"state*"),"// Estado (2 caracteres) ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"(Object)")),Object(l.b)("td",{align:"center"},"N\xe3o"),Object(l.b)("td",{align:"center"},"Object")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"juridical_person")),Object(l.b)("td",{align:"left"},"Dados de pessoa jur\xeddica.",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("em",null,"Atributos de juridical_person:"),Object(l.b)("br",null),Object(l.b)("br",null),Object(l.b)("code",null,"corporate_name*"),"// Nome da raz\xe3o social. ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"M\xednimo de 1 caractere e m\xe1ximo de 255. String."),Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"cnpj*"),"// CNPJ da empresa. ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Tamanho: 14 caracteres. String.")),Object(l.b)("td",{align:"center"},"N\xe3o"),Object(l.b)("td",{align:"center"},"Object")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"expire_at")),Object(l.b)("td",{align:"left"},"Data de vencimento do boleto.",Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Formato: YYYY-MM-DD")),Object(l.b)("td",{align:"center"},"Sim"),Object(l.b)("td",{align:"center"},"String")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"discount")),Object(l.b)("td",{align:"left"},"Define dados de desconto sobre a cobran\xe7a.",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("em",null,"Atributos de discount:"),Object(l.b)("br",null),Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"type*"),"// Tipo do desconto (String). Valores permitidos: ",Object(l.b)("br",null),Object(l.b)("code",null,"currency"),": o desconto ser\xe1 informado em centavos. ",Object(l.b)("code",null,"percentage"),": o desconto ser\xe1 informado em porcentagem.",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"cnpj*"),"// CNPJ da empresa. ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Tamanho: 14 caracteres. String."),Object(l.b)("br",null),Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"value*"),"// Valor do desconto (Integer). Se o tipo do desconto for ",Object(l.b)("code",null,"currency")," , o valor desta tag dever\xe1 ser informada pelo integrador em centavos (ou seja, 500 equivale a R$ 5,00). Caso o tipo do desconto seja ",Object(l.b)("code",null,"percentage"),", o valor dever\xe1 ser multiplicado por 100 (ou seja, 1500 equivale a 15%). Exemplos: ",Object(l.b)("br",null),"1)",Object(l.b)("code",null,"currency"),"// deve ser informado em centavos, ou seja, se o desconto ser\xe1 de R$ 5,99, o integrador deve informar ",Object(l.b)("code",null,"599"),";",Object(l.b)("br",null)," 2)",Object(l.b)("code",null,"percentage")," // deve ser informado em centavos, ou seja, se o desconto \xe9 de 15%, o integrador deve informar ",Object(l.b)("code",null,"1500"),".",Object(l.b)("br",null),Object(l.b)("br",null)),Object(l.b)("td",{align:"center"},"N\xe3o"),Object(l.b)("td",{align:"center"},"Object")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"conditional_discount")),Object(l.b)("td",{align:"left"},"Define desconto condicional que \xe9 v\xe1lido at\xe9 uma data espec\xedfica. Se o pagamento n\xe3o for efetuado at\xe9 aquela data, o desconto \xe9 invalidado.",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("em",null,"Atributos de conditional_discount:"),Object(l.b)("br",null),Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"type*"),"// Tipo do desconto (String). Valores permitidos: ",Object(l.b)("br",null),Object(l.b)("code",null,"currency"),": o desconto ser\xe1 informado em centavos. ",Object(l.b)("code",null,"percentage"),": o desconto ser\xe1 informado em porcentagem.",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("code",null,"cnpj*"),"// CNPJ da empresa. ",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Tamanho: 14 caracteres. String."),Object(l.b)("br",null),Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"value*"),"// Valor do desconto (Integer). Se o tipo do desconto for ",Object(l.b)("code",null,"currency")," , o valor desta tag dever\xe1 ser informada pelo integrador em centavos (ou seja, 500 equivale a R$ 5,00). Caso o tipo do desconto seja ",Object(l.b)("code",null,"percentage"),", o valor dever\xe1 ser multiplicado por 100 (ou seja, 1500 equivale a 15%). Exemplos: ",Object(l.b)("br",null),"1)",Object(l.b)("code",null,"currency"),"// deve ser informado em centavos, ou seja, se o desconto ser\xe1 de R$ 5,99, o integrador deve informar ",Object(l.b)("code",null,"599"),";",Object(l.b)("br",null)," 2)",Object(l.b)("code",null,"percentage")," // deve ser informado em centavos, ou seja, se o desconto \xe9 de 15%, o integrador deve informar ",Object(l.b)("code",null,"1500"),".",Object(l.b)("br",null),Object(l.b)("br",null)),Object(l.b)("td",{align:"center"},"N\xe3o"),Object(l.b)("td",{align:"center"},"Object")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"configurations")),Object(l.b)("td",{align:"left"},"Permite incluir no boleto multa e juros caso seja pago ap\xf3s o vencimento.",Object(l.b)("br",null),Object(l.b)("br",null)," ",Object(l.b)("em",null,"Atributos de configurations:"),Object(l.b)("br",null),Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"fine"),"// Valor cobrado de multa ap\xf3s o vencimento. Por exemplo: se voc\xea quiser 2%, voc\xea deve informar ",Object(l.b)("code",null,"200"),".",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"M\xednimo de 0 e m\xe1ximo de 1000. Integer."),Object(l.b)("br",null),Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Caso voc\xea possua configura\xe7\xf5es de multa ativada na Gerencianet e queira gerar emiss\xf5es na API sem multa, utilize ",Object(l.b)("code",null,"0"),"como valor do atributo ",Object(l.b)("code",null,"fine")),Object(l.b)("br",null),Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"interest"),"// Valor cobrado de juros por dia ap\xf3s a data de vencimento. Por exemplo: se voc\xea quiser 0,033%, voc\xea deve informar ",Object(l.b)("code",null,"33"),".",Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"M\xednimo de 0 e m\xe1ximo de 330. Integer."),Object(l.b)("br",null),Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"Caso voc\xea possua configura\xe7\xf5es de multa ativada na Gerencianet e queira gerar emiss\xf5es na API sem juros, utilize ",Object(l.b)("code",null,"0")," como valor do atributo ",Object(l.b)("code",null,"interest"))),Object(l.b)("td",{align:"center"},"N\xe3o"),Object(l.b)("td",{align:"center"},"Object")),Object(l.b)("tr",null,Object(l.b)("td",null,Object(l.b)("code",null,"message")),Object(l.b)("td",{align:"left"},'Permite incluir no boleto uma "observa\xe7\xe3o", ou em outras palavras, uma mensagem para o cliente. Essa mensagem poder\xe1 ser vista nos e-mails relacionados \xe0 cobran\xe7a, no boleto ou carn\xea.',Object(l.b)("br",null),Object(l.b)(d,{color:"#009615",mdxType:"Highlight"},"At\xe9 4 linhas contendo 100 caracteres em cada linha. String. ",Object(l.b)("br",null),"O operador ",Object(l.b)("code",null,"\\n"),"\xe9 utilizado para efetuar a quebra de linha.")),Object(l.b)("td",{align:"center"},"N\xe3o"),Object(l.b)("td",{align:"center"},"String")))),Object(l.b)("p",null,Object(l.b)("strong",{parentName:"p"},"Os campos com * representam valores obrigat\xf3rios")),Object(l.b)("br",null),Object(l.b)("hr",null),Object(l.b)("h2",{id:"4-outros-endpoints-e-m\xe9todos"},"4. Outros endpoints e m\xe9todos"),Object(l.b)("p",null,"Existem outros endpoints e m\xe9todos relacionados a pagamento via boleto banc\xe1rio do tipo balancete que est\xe3o dispon\xedveis na API e podem ser explorados pelo integrador. Confira a rela\xe7\xe3o completa:"),Object(l.b)("ul",null,Object(l.b)("li",{parentName:"ul"},Object(l.b)("a",Object(a.a)({parentName:"li"},{href:"../PagamentoBoleto/EndpointsBoletos"}),"Alterar data de vencimento de boleto banc\xe1rio")),Object(l.b)("li",{parentName:"ul"},Object(l.b)("a",Object(a.a)({parentName:"li"},{href:"../PagamentoBoleto/EndpointsBoletos"}),"Cancelar determinada transa\xe7\xe3o")),Object(l.b)("li",{parentName:"ul"},Object(l.b)("a",Object(a.a)({parentName:"li"},{href:"../PagamentoBoleto/EndpointsBoletos"}),"Alterar URL de notifica\xe7\xe3o (notification_url) e/ou custom_id de transa\xe7\xe3o")),Object(l.b)("li",{parentName:"ul"},Object(l.b)("a",Object(a.a)({parentName:"li"},{href:"../PagamentoBoleto/EndpointsBoletos"}),"Reenviar boleto banc\xe1rio por e-mail")),Object(l.b)("li",{parentName:"ul"},Object(l.b)("a",Object(a.a)({parentName:"li"},{href:"../PagamentoBoleto/EndpointsBoletos"}),"Acrescentar informa\xe7\xf5es ao hist\xf3rico da transa\xe7\xe3o")),Object(l.b)("li",{parentName:"ul"},Object(l.b)("a",Object(a.a)({parentName:"li"},{href:"../PagamentoBoleto/EndpointsBoletos"}),"Retornar informa\xe7\xf5es sobre transa\xe7\xe3o")))))}p.isMDXComponent=!0},250:function(n,e,t){"use strict";t.d(e,"a",(function(){return d})),t.d(e,"b",(function(){return u}));var a=t(0),o=t.n(a);function l(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function r(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,a)}return t}function c(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?r(Object(t),!0).forEach((function(e){l(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function i(n,e){if(null==n)return{};var t,a,o=function(n,e){if(null==n)return{};var t,a,o={},l=Object.keys(n);for(a=0;a<l.length;a++)t=l[a],e.indexOf(t)>=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(a=0;a<l.length;a++)t=l[a],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}var s=o.a.createContext({}),b=function(n){var e=o.a.useContext(s),t=e;return n&&(t="function"==typeof n?n(e):c(c({},e),n)),t},d=function(n){var e=b(n.components);return o.a.createElement(s.Provider,{value:e},n.children)},m={inlineCode:"code",wrapper:function(n){var e=n.children;return o.a.createElement(o.a.Fragment,{},e)}},p=o.a.forwardRef((function(n,e){var t=n.components,a=n.mdxType,l=n.originalType,r=n.parentName,s=i(n,["components","mdxType","originalType","parentName"]),d=b(t),p=a,u=d["".concat(r,".").concat(p)]||d[p]||m[p]||l;return t?o.a.createElement(u,c(c({ref:e},s),{},{components:t})):o.a.createElement(u,c({ref:e},s))}));function u(n,e){var t=arguments,a=e&&e.mdxType;if("string"==typeof n||a){var l=t.length,r=new Array(l);r[0]=p;var c={};for(var i in e)hasOwnProperty.call(e,i)&&(c[i]=e[i]);c.originalType=n,c.mdxType="string"==typeof n?n:a,r[1]=c;for(var s=2;s<l;s++)r[s]=t[s];return o.a.createElement.apply(null,r)}return o.a.createElement.apply(null,t)}p.displayName="MDXCreateElement"},254:function(n,e,t){"use strict";function a(n){var e,t,o="";if("string"==typeof n||"number"==typeof n)o+=n;else if("object"==typeof n)if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(t=a(n[e]))&&(o&&(o+=" "),o+=t);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}e.a=function(){for(var n,e,t=0,o="";t<arguments.length;)(n=arguments[t++])&&(e=a(n))&&(o&&(o+=" "),o+=e);return o}},255:function(n,e,t){"use strict";var a=t(0);const o=Object(a.createContext)({tabGroupChoices:{},setTabGroupChoices:()=>{},isAnnouncementBarClosed:!1,closeAnnouncementBar:()=>{}});e.a=o},256:function(n,e,t){"use strict";var a=t(0),o=t(255);e.a=function(){return Object(a.useContext)(o.a)}},257:function(n,e,t){"use strict";var a=t(0),o=t.n(a),l=t(256),r=t(254),c=t(92),i=t.n(c);const s=37,b=39;e.a=function(n){const{block:e,children:t,defaultValue:c,values:d,groupId:m}=n,{tabGroupChoices:p,setTabGroupChoices:u}=Object(l.a)(),[g,j]=Object(a.useState)(c);if(null!=m){const n=p[m];null!=n&&n!==g&&d.some(e=>e.value===n)&&j(n)}const O=n=>{j(n),null!=m&&u(m,n)},y=[];return o.a.createElement("div",null,o.a.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:Object(r.a)("tabs",{"tabs--block":e})},d.map(({value:n,label:e})=>o.a.createElement("li",{role:"tab",tabIndex:"0","aria-selected":g===n,className:Object(r.a)("tabs__item",i.a.tabItem,{"tabs__item--active":g===n}),key:n,ref:n=>y.push(n),onKeyDown:n=>((n,e,t)=>{switch(t.keyCode){case b:((n,e)=>{const t=n.indexOf(e)+1;n[t]?n[t].focus():n[0].focus()})(n,e);break;case s:((n,e)=>{const t=n.indexOf(e)-1;n[t]?n[t].focus():n[n.length-1].focus()})(n,e)}})(y,n.target,n),onFocus:()=>O(n),onClick:()=>O(n)},e))),o.a.createElement("div",{role:"tabpanel",className:"margin-vert--md"},a.Children.toArray(t).filter(n=>n.props.value===g)[0]))}},258:function(n,e,t){"use strict";var a=t(0),o=t.n(a);e.a=function(n){return o.a.createElement("div",null,n.children)}}}]);