-
Notifications
You must be signed in to change notification settings - Fork 0
/
28999d43.7c2f3c0b.js
1 lines (1 loc) · 5.2 KB
/
28999d43.7c2f3c0b.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{133:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return i})),n.d(t,"metadata",(function(){return c})),n.d(t,"rightToc",(function(){return s})),n.d(t,"default",(function(){return p}));var a=n(2),r=n(6),o=(n(0),n(250)),i={id:"Carnes",title:"Carn\xeas",hide_title:!0,sidebar_label:"Carn\xeas"},c={id:"ExemplosIntegracao/Carnes",isDocsHomePage:!1,title:"Carn\xeas",description:"Carn\xeas",source:"@site/docs\\ExemplosIntegracao\\Carnes.md",permalink:"/documentation/docs/ExemplosIntegracao/Carnes",sidebar_label:"Carn\xeas"},s=[],l={rightToc:s};function p(e){var t=e.components,n=Object(r.a)(e,["components"]);return Object(o.b)("wrapper",Object(a.a)({},l,n,{components:t,mdxType:"MDXLayout"}),Object(o.b)("h1",{className:"titulo"},"Carn\xeas"),Object(o.b)("div",{className:"subtitulo"},Object(o.b)("p",null,"Neste local, voc\xea encontra um ",Object(o.b)("strong",null,"exemplo pronto de uma integra\xe7\xe3o com a API da Gerencianet")," que demonstra a ",Object(o.b)("strong",null,"emiss\xe3o de carn\xeas"),"."),Object(o.b)("p",null,"Por se tratar de um exemplo meramente ilustrativo e de cunho educativo, \xe9 necess\xe1rio que voc\xea adapte \xe0 sua necessidade. ",Object(o.b)("strong",{parentName:"p"},"N\xe3o nos responsabilizamos pela utiliza\xe7\xe3o deste exemplo sem os ajustes necess\xe1rios para seu ambiente de produ\xe7\xe3o.")),Object(o.b)("div",{className:"admonition admonition-important alert alert--info"},Object(o.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-heading"}),Object(o.b)("h5",{parentName:"div"},Object(o.b)("span",Object(a.a)({parentName:"h5"},{className:"admonition-icon"}),Object(o.b)("svg",Object(a.a)({parentName:"span"},{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"}),Object(o.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(o.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-content"}),Object(o.b)("p",{parentName:"div"},"N\xe3o esque\xe7a de alterar o ",Object(o.b)("inlineCode",{parentName:"p"},"Client_Id")," e ",Object(o.b)("inlineCode",{parentName:"p"},"Client_Secret")," de acordo com o ambiente utilizado (desenvolvimento ou produ\xe7\xe3o), al\xe9m de lembrar que a vari\xe1vel ",Object(o.b)("inlineCode",{parentName:"p"},'"sandbox"')," \xe9 booleana e possui 2 valores poss\xedveis, de acordo com o ambiente, sendo: ",Object(o.b)("inlineCode",{parentName:"p"},"sandbox => true")," equivale ao ambiente de desenvolvimento e ",Object(o.b)("inlineCode",{parentName:"p"},"sandbox => false")," equivale ao ambiente de produ\xe7\xe3o."))),Object(o.b)("ul",null,Object(o.b)("li",{parentName:"ul"},Object(o.b)("a",{href:"https://www.gerencianet.com.br/wp-content/themes/Gerencianet/exemplos-api/carne/",target:"_blank"},"Clique aqui")," para acessar nosso exemplo de emiss\xe3o de carn\xeas."))))}p.isMDXComponent=!0},250:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return d}));var a=n(0),r=n.n(a);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),p=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},b=function(e){var t=p(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},m=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),b=p(n),m=a,d=b["".concat(i,".").concat(m)]||b[m]||u[m]||o;return n?r.a.createElement(d,c(c({ref:t},l),{},{components:n})):r.a.createElement(d,c({ref:t},l))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,i=new Array(o);i[0]=m;var c={};for(var s in t)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c.mdxType="string"==typeof e?e:a,i[1]=c;for(var l=2;l<o;l++)i[l]=n[l];return r.a.createElement.apply(null,i)}return r.a.createElement.apply(null,n)}m.displayName="MDXCreateElement"}}]);