Skip to content

Commit 82dcc74

Browse files
author
andreals
committed
Automated commit message
1 parent df5eb78 commit 82dcc74

File tree

8 files changed

+131
-37
lines changed

8 files changed

+131
-37
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ npm install
7171

7272
## Initialize the API Client
7373

74-
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/client.md)
74+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/client.md)
7575

7676
The following parameters are configurable for the API Client:
7777

@@ -81,7 +81,7 @@ The following parameters are configurable for the API Client:
8181
| `timeout` | `number` | Timeout for API calls.<br>*Default*: `0` |
8282
| `httpClientOptions` | `Partial<HttpClientOptions>` | Stable configurable http client options. |
8383
| `unstableHttpClientOptions` | `any` | Unstable configurable http client options. |
84-
| `basicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/$a/https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/basic-authentication.md) | The credential object for basicAuth |
84+
| `basicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/$a/https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/basic-authentication.md) | The credential object for basicAuth |
8585

8686
### HttpClientOptions
8787

@@ -121,38 +121,38 @@ const client = new Client({
121121

122122
This API uses the following authentication schemes.
123123

124-
* [`httpBasic (Basic Authentication)`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/$a/https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/basic-authentication.md)
124+
* [`httpBasic (Basic Authentication)`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/$a/https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/basic-authentication.md)
125125

126126
## API Errors
127127

128128
Here is the list of errors that the API might throw.
129129

130130
| HTTP Status Code | Error Description | Exception Class |
131131
| --- | --- | --- |
132-
| 400 | Invalid request | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/models/custom-error.md) |
133-
| 401 | Invalid API key | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/models/custom-error.md) |
134-
| 404 | An informed resource was not found | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/models/custom-error.md) |
135-
| 412 | Business validation error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/models/custom-error.md) |
136-
| 422 | Contract validation error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/models/custom-error.md) |
137-
| 500 | Internal server error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/models/custom-error.md) |
132+
| 400 | Invalid request | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/models/custom-error.md) |
133+
| 401 | Invalid API key | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/models/custom-error.md) |
134+
| 404 | An informed resource was not found | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/models/custom-error.md) |
135+
| 412 | Business validation error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/models/custom-error.md) |
136+
| 422 | Contract validation error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/models/custom-error.md) |
137+
| 500 | Internal server error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/models/custom-error.md) |
138138

139139
## List of APIs
140140

141-
* [Subscriptions](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/subscriptions.md)
142-
* [Orders](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/orders.md)
143-
* [Plans](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/plans.md)
144-
* [Invoices](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/invoices.md)
145-
* [Customers](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/customers.md)
146-
* [Charges](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/charges.md)
147-
* [Recipients](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/recipients.md)
148-
* [Tokens](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/tokens.md)
149-
* [Transactions](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/transactions.md)
150-
* [Transfers](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/transfers.md)
151-
* [Payables](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/payables.md)
152-
* [Balance Operations](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/controllers/balance-operations.md)
141+
* [Subscriptions](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/subscriptions.md)
142+
* [Orders](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/orders.md)
143+
* [Plans](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/plans.md)
144+
* [Invoices](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/invoices.md)
145+
* [Customers](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/customers.md)
146+
* [Charges](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/charges.md)
147+
* [Recipients](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/recipients.md)
148+
* [Tokens](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/tokens.md)
149+
* [Transactions](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/transactions.md)
150+
* [Transfers](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/transfers.md)
151+
* [Payables](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/payables.md)
152+
* [Balance Operations](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/controllers/balance-operations.md)
153153

154154
## Classes Documentation
155155

156-
* [ApiResponse](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/api-response.md)
157-
* [ApiError](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.6/doc/api-error.md)
156+
* [ApiResponse](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/api-response.md)
157+
* [ApiError](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.7/doc/api-error.md)
158158

doc/models/get-movement-object-base-response.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ Generic response object for getting a MovementObjectBase.
2828
"status": "status4",
2929
"amount": "amount4",
3030
"created_at": "created_at0",
31-
"source_type": "source_type6",
32-
"source_id": "source_id0",
33-
"target_type": "target_type8",
34-
"target_id": "target_id4",
35-
"fee": "fee8"
31+
"product": "product2",
32+
"brand": "brand6",
33+
"payment_date": "payment_date4",
34+
"recipient_id": "recipient_id2",
35+
"document_type": "document_type0"
3636
}
3737
```
3838

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
# Get Movement Object Settlement Response
3+
4+
Generic response object for getting a MovementObjectSettlement.
5+
6+
## Structure
7+
8+
`GetMovementObjectSettlementResponse`
9+
10+
## Inherits From
11+
12+
[`GetMovementObjectBaseResponse`](../../doc/models/get-movement-object-base-response.md)
13+
14+
## Fields
15+
16+
| Name | Type | Tags | Description |
17+
| --- | --- | --- | --- |
18+
| `product` | `string \| null \| undefined` | Optional | - |
19+
| `brand` | `string \| null \| undefined` | Optional | - |
20+
| `paymentDate` | `string \| null \| undefined` | Optional | - |
21+
| `recipientId` | `string \| null \| undefined` | Optional | - |
22+
| `documentType` | `string \| null \| undefined` | Optional | - |
23+
| `document` | `string \| null \| undefined` | Optional | - |
24+
| `contractObligationId` | `string \| null \| undefined` | Optional | - |
25+
| `liquidationArrangementId` | `string \| null \| undefined` | Optional | - |
26+
| `externalEnginePaymentId` | `string \| null \| undefined` | Optional | - |
27+
28+
## Example (as JSON)
29+
30+
```json
31+
{
32+
"id": "id2",
33+
"status": "status4",
34+
"amount": "amount4",
35+
"created_at": "created_at0",
36+
"product": "product2",
37+
"brand": "brand6",
38+
"payment_date": "payment_date4",
39+
"recipient_id": "recipient_id2",
40+
"document_type": "document_type0"
41+
}
42+
```
43+

package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "6.8.6",
2+
"version": "6.8.7",
33
"license": "MIT",
44
"sideEffects": false,
55
"main": "dist/cjs/index.js",
@@ -25,12 +25,12 @@
2525
"singleQuote": true,
2626
"trailingComma": "es5"
2727
},
28-
"name": "@pagarme/pagarme-nodejs-sdk",
28+
"name": "pagarmeapisdklib",
2929
"description": "Pagarme API",
3030
"author": {
3131
"name": "Pagar.me Pagamentos S/A",
3232
"email": "suporte@pagar.me",
33-
"url": "https://github.com/pagarme/pagarme-nodejs-sdk/issues"
33+
"url": "https://github.com/pagarme/"
3434
},
3535
"devDependencies": {
3636
"@types/jest": "^29.4.0",
@@ -49,11 +49,7 @@
4949
"@apimatic/schema": "^0.7.0"
5050
},
5151
"bugs": {
52-
"url": "https://github.com/pagarme/pagarme-nodejs-sdk/issues",
52+
"url": "https://github.com/pagarme/",
5353
"email": "suporte@pagar.me"
54-
},
55-
"repository": {
56-
"type": "git",
57-
"url": "git://github.com/pagarme/pagarme-nodejs-sdk.git"
5854
}
5955
}

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class Client implements ClientInterface {
5959
}
6060

6161
this._userAgent = updateUserAgent(
62-
'PagarmeApiSDK - TypeScript 6.8.6',
62+
'PagarmeApiSDK - TypeScript 6.8.7',
6363
);
6464
this._requestBuilderFactory = createRequestHandlerFactory(
6565
server => getBaseUri(server, this._config),

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export type { GetMovementObjectBaseResponse } from './models/getMovementObjectBa
162162
export type { GetMovementObjectFeeCollectionResponse } from './models/getMovementObjectFeeCollectionResponse';
163163
export type { GetMovementObjectPayableResponse } from './models/getMovementObjectPayableResponse';
164164
export type { GetMovementObjectRefundResponse } from './models/getMovementObjectRefundResponse';
165+
export type { GetMovementObjectSettlementResponse } from './models/getMovementObjectSettlementResponse';
165166
export type { GetMovementObjectTransferResponse } from './models/getMovementObjectTransferResponse';
166167
export type { GetOrderItemResponse } from './models/getOrderItemResponse';
167168
export type { GetOrderResponse } from './models/getOrderResponse';

src/models/discriminatedSchemas.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ import {
3030
import {
3131
getMovementObjectRefundResponseSchema,
3232
} from './getMovementObjectRefundResponse';
33+
import {
34+
getMovementObjectSettlementResponseSchema,
35+
} from './getMovementObjectSettlementResponse';
3336
import {
3437
getMovementObjectTransferResponseSchema,
3538
} from './getMovementObjectTransferResponse';
@@ -72,6 +75,7 @@ export const discriminatedGetMovementObjectBaseResponseSchema: Schema<any> = dis
7275
'feeCollection': getMovementObjectFeeCollectionResponseSchema,
7376
'payable': getMovementObjectPayableResponseSchema,
7477
'transfer': getMovementObjectTransferResponseSchema,
78+
'settlement': getMovementObjectSettlementResponseSchema,
7579
},
7680
'MovementObject'
7781
);
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/**
2+
* PagarmeApiSDKLib
3+
*
4+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5+
*/
6+
7+
import { literal, nullable, object, optional, Schema, string } from '../schema';
8+
import { GetMovementObjectBaseResponse } from './getMovementObjectBaseResponse';
9+
10+
/** Generic response object for getting a MovementObjectSettlement. */
11+
export interface GetMovementObjectSettlementResponse extends GetMovementObjectBaseResponse {
12+
product?: string | null;
13+
brand?: string | null;
14+
paymentDate?: string | null;
15+
recipientId?: string | null;
16+
documentType?: string | null;
17+
document?: string | null;
18+
contractObligationId?: string | null;
19+
liquidationArrangementId?: string | null;
20+
externalEnginePaymentId?: string | null;
21+
}
22+
23+
export const getMovementObjectSettlementResponseSchema: Schema<any> = object({
24+
product: ['product', optional(nullable(string()))],
25+
brand: ['brand', optional(nullable(string()))],
26+
paymentDate: ['payment_date', optional(nullable(string()))],
27+
recipientId: ['recipient_id', optional(nullable(string()))],
28+
documentType: ['document_type', optional(nullable(string()))],
29+
document: ['document', optional(nullable(string()))],
30+
contractObligationId: [
31+
'contract_obligation_id',
32+
optional(nullable(string())),
33+
],
34+
liquidationArrangementId: [
35+
'liquidation_arrangement_id',
36+
optional(nullable(string())),
37+
],
38+
externalEnginePaymentId: [
39+
'external_engine_payment_id',
40+
optional(nullable(string())),
41+
],
42+
id: ['id', optional(nullable(string()))],
43+
status: ['status', optional(nullable(string()))],
44+
amount: ['amount', optional(nullable(string()))],
45+
createdAt: ['created_at', optional(nullable(string()))],
46+
type: ['type', optional(nullable(string()))],
47+
chargeId: ['charge_id', optional(nullable(string()))],
48+
gatewayId: ['gateway_id', optional(nullable(string()))],
49+
object: ['object', optional(literal('settlement'))],
50+
});

0 commit comments

Comments
 (0)