Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(blocks): fix blocks #804

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions docs/charge/how-to-create-charge-using-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ Retornarmeros a seguinte resposta de exemplo:

### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl 'https://api.openpix.com.br/api/v1/charge' -X POST \
Expand All @@ -79,10 +77,8 @@ Retornarmeros a seguinte resposta de exemplo:
--data-binary '{"correlationID":"c782e0ac-833d-4a89-9e73-9b60b2b41d3a","value":1500}'
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="JavaScript + Fetch" default>
```

```js
fetch('https://api.openpix.com.br/api/v1/charge', {
Expand All @@ -98,7 +94,5 @@ fetch('https://api.openpix.com.br/api/v1/charge', {
}).then((res) => res.json());
```

```mdx-code-block
</TabItem>
</Tabs>
```
6 changes: 0 additions & 6 deletions docs/charge/how-to-create-charge-with-split-using-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ Após efetuar a requisição, se tudo ocorreu bem, o _status code_ da requisiç

### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl 'https://api.openpix.com.br/api/v1/charge' -X POST \
Expand All @@ -74,10 +72,8 @@ Após efetuar a requisição, se tudo ocorreu bem, o _status code_ da requisiç
--data-binary '{"correlationID":"c782e0ac-833d-4a89-9e73-9b60b2b41d3a","value":100, "splits": [{ "pixKey": "destinatario@openpix.com.br", "value": 15 }, { "pixKey": "2a33747b-1715-4f57-8b9d-4cb73c15b19b", "value": 30 }]}'
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="JavaScript + Fetch" default>
```

```js
fetch('https://api.openpix.com.br/api/v1/charge', {
Expand All @@ -97,7 +93,5 @@ fetch('https://api.openpix.com.br/api/v1/charge', {
}).then((res) => res.json());
```

```mdx-code-block
</TabItem>
</Tabs>
```
6 changes: 0 additions & 6 deletions docs/charge/how-to-create-charge-woovi-parcelado.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ Siga os steps abaixo:

### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl 'https://api.openpix.com.br/api/v1/charge' -X POST \
Expand All @@ -107,10 +105,8 @@ Siga os steps abaixo:
--data-binary '{"correlationID":"63c533c0-3bb2-4847-a568-e2270e99aad8","value":1500,"comment":"OpenPix Parcelado","type":"PIX_CREDIT","customer":{"name":"Dan ","taxID":"12345678900","phone":"+5519912345678","email":"test@openpix.com","address":{"zipcode":"13142514","street":"Rua OpenPix","number":"2019","neighborhood":"Casa","city":"Sao Paulo","state":"SP","complement":"Brooklin"}}}'
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="JavaScript + Fetch" default>
```

```js
fetch('https://api.openpix.com.br/api/v1/charge', {
Expand Down Expand Up @@ -142,7 +138,5 @@ fetch('https://api.openpix.com.br/api/v1/charge', {
}).then((res) => res.json());
```

```mdx-code-block
</TabItem>
</Tabs>
```
6 changes: 0 additions & 6 deletions docs/charge/how-to-create-cobv-using-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ Retornarmeros a seguinte resposta de exemplo:

### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl 'https://api.openpix.com.br/api/v1/charge' -X POST \
Expand All @@ -108,10 +106,8 @@ Retornarmeros a seguinte resposta de exemplo:
--data-binary '{"correlationID":"c782e0ac-833d-4a89-9e73-9b60b2b41d3a","value":1500, "type": "OVERDUE","customer": {"taxID": "607.681.970-74"}}'
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="JavaScript + Fetch" default>
```

```js
fetch('https://api.openpix.com.br/api/v1/charge', {
Expand All @@ -131,7 +127,5 @@ fetch('https://api.openpix.com.br/api/v1/charge', {
}).then((res) => res.json());
```

```mdx-code-block
</TabItem>
</Tabs>
```
6 changes: 0 additions & 6 deletions docs/charge/refund/charge-refund-create-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ Retornarmeros a seguinte resposta de exemplo:

### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl --request POST \
Expand All @@ -68,10 +66,8 @@ Retornarmeros a seguinte resposta de exemplo:
--data '{"correlationID": "aafee9f5-94b3-4e3d-ab6a-416d0a1218cb","value": 100,"comment": "Comentário do reembolso"}'
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="JavaScript + Fetch" default>
```

```js
fetch('https://api.openpix.com.br/api/v1/charge/{correlationID}/refund', {
Expand All @@ -88,7 +84,5 @@ fetch('https://api.openpix.com.br/api/v1/charge/{correlationID}/refund', {
}).then((res) => res.json());
```

```mdx-code-block
</TabItem>
</Tabs>
```
6 changes: 0 additions & 6 deletions docs/charge/refund/charge-refund-get-all-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,17 @@ Retornarmeros a seguinte resposta de exemplo:

### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl --request GET \
--url https://api.openpix.com.br/api/v1/charge/{correlationID}/refund \
--header 'Authorization: AUTHORIZATION'
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="JavaScript + Fetch" default>
```

```js
fetch('https://api.openpix.com.br/api/v1/charge/{correlationID}/refund', {
Expand All @@ -67,7 +63,5 @@ fetch('https://api.openpix.com.br/api/v1/charge/{correlationID}/refund', {
}).then((res) => res.json());
```

```mdx-code-block
</TabItem>
</Tabs>
```
12 changes: 0 additions & 12 deletions docs/customer/how-to-create-customer-using-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ Retornarmeros a seguinte resposta de exemplo:

#### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl 'https://api.openpix.com.br/api/v1/customer' -X POST \
Expand All @@ -84,10 +82,8 @@ Retornarmeros a seguinte resposta de exemplo:
--data-binary '{ "name": "Dan", "email": "dan@gmail.com" }'
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="JavaScript + Fetch" default>
```

```js
fetch('https://api.openpix.com.br/api/v1/customer', {
Expand All @@ -100,10 +96,8 @@ fetch('https://api.openpix.com.br/api/v1/customer', {
}).then((res) => res.json());
```

```mdx-code-block
</TabItem>
</Tabs>
```

## Como usar a API para criar um cliente com endereço?

Expand Down Expand Up @@ -168,10 +162,8 @@ Retornarmeros a seguinte resposta de exemplo:

#### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl 'https://api.openpix.com.br/api/v1/customer' -X POST \
Expand All @@ -184,10 +176,8 @@ Retornarmeros a seguinte resposta de exemplo:
"complement": "Casa" } }'
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="JavaScript + Fetch" default>
```

```js
fetch('https://api.openpix.com.br/api/v1/customer', {
Expand All @@ -212,7 +202,5 @@ fetch('https://api.openpix.com.br/api/v1/customer', {
}).then((res) => res.json());
```

```mdx-code-block
</TabItem>
</Tabs>
```
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ Retornarmeros a seguinte resposta de exemplo:

### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl --request POST \
Expand All @@ -103,10 +101,8 @@ curl --request POST \
--data '{"name":"string","correlationID":"string","value":0,"comment":"string","identifier":"string"}'
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="NodeJs + Fetch" default>
```

```js
const http = require("https");
Expand Down Expand Up @@ -145,7 +141,5 @@ req.write(JSON.stringify({
req.end();
```

```mdx-code-block
</TabItem>
</Tabs>
```
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ Após efetuar a requisição, se tudo ocorreu bem, o _status code_ da requisiç

### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl 'https://api.openpix.com.br/api/v1/charge' -X POST \
Expand All @@ -76,10 +74,8 @@ Após efetuar a requisição, se tudo ocorreu bem, o _status code_ da requisiç
--data-binary '{"correlationID":"c782e0ac-833d-4a89-9e73-9b60b2b41d3a","value":100, "splits": [{ "pixKey": "destinatario@openpix.com.br", "value": 15, splitType:"SPLIT_SUB_ACCOUNT" }]}'
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="JavaScript + Fetch" default>
```

```js
fetch('https://api.openpix.com.br/api/v1/charge', {
Expand All @@ -102,7 +98,5 @@ fetch('https://api.openpix.com.br/api/v1/charge', {
}).then((res) => res.json());
```

```mdx-code-block
</TabItem>
</Tabs>
```
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ Após efetuar a requisição, se tudo ocorreu bem, o _status code_ da requisiç

### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl 'https://api.openpix.com.br/api/v1/subaccount/chave-pix-subconta -X GET \
Expand All @@ -38,10 +36,8 @@ Após efetuar a requisição, se tudo ocorreu bem, o _status code_ da requisiç
-H "Authorization": "app_id"
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="JavaScript + Fetch" default>
```

```js
fetch('https://api.openpix.com.br/api/v1/subaccount/chave-pix-subconta', {
Expand All @@ -53,10 +49,8 @@ fetch('https://api.openpix.com.br/api/v1/subaccount/chave-pix-subconta', {
}).then((res) => res.json());
```

```mdx-code-block
</TabItem>
</Tabs>
```

### Exemplos de resposta

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ além de detalhes de paginação:

### Exemplos em código

```mdx-code-block
<Tabs>
<TabItem value="shell-curl" label="Shell + cURL" default>
```

```sh
curl 'https://api.openpix.com.br/api/v1/subaccount' -X GET \
Expand All @@ -40,10 +38,8 @@ além de detalhes de paginação:
-H "Authorization": "app_id"
```

```mdx-code-block
</TabItem>
<TabItem value="javascript" label="JavaScript + Fetch" default>
```

```js
fetch('https://api.openpix.com.br/api/v1/subaccount', {
Expand All @@ -55,10 +51,8 @@ fetch('https://api.openpix.com.br/api/v1/subaccount', {
}).then((res) => res.json());
```

```mdx-code-block
</TabItem>
</Tabs>
```

### Exemplos de resposta

Expand Down
Loading