Skip to content

Commit e782f49

Browse files
Merge pull request #44 from pagarme/CodeGen-NodeJS
6.8.15- IndirectAcceptor
2 parents 280e0dd + 75e830b commit e782f49

File tree

5 files changed

+32
-27
lines changed

5 files changed

+32
-27
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.14/doc/client.md)
74+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.15/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.14/doc/auth/basic-authentication.md) | The credential object for basicAuth |
84+
| `basicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.15/doc/auth/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.14/doc/auth/basic-authentication.md)
124+
* [`httpBasic (Basic Authentication)`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.15/doc/auth/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.14/doc/models/custom-error.md) |
133-
| 401 | Invalid API key | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.14/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.14/doc/models/custom-error.md) |
135-
| 412 | Business validation error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.14/doc/models/custom-error.md) |
136-
| 422 | Contract validation error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.14/doc/models/custom-error.md) |
137-
| 500 | Internal server error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.14/doc/models/custom-error.md) |
132+
| 400 | Invalid request | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.15/doc/models/custom-error.md) |
133+
| 401 | Invalid API key | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.15/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.15/doc/models/custom-error.md) |
135+
| 412 | Business validation error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.15/doc/models/custom-error.md) |
136+
| 422 | Contract validation error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.15/doc/models/custom-error.md) |
137+
| 500 | Internal server error | [`CustomError`](https://www.github.com/pagarme/pagarme-nodejs-sdk/tree/6.8.15/doc/models/custom-error.md) |
138138

139139
## List of APIs
140140

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

154154
## Classes Documentation
155155

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

doc/models/update-subscription-payment-method-request.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Request for updating a subscription's payment method
1616
| `card` | [`CreateCardRequest`](../../doc/models/create-card-request.md) | Required | Card data |
1717
| `cardToken` | `string \| undefined` | Optional | The Card Token |
1818
| `boleto` | [`CreateSubscriptionBoletoRequest \| undefined`](../../doc/models/create-subscription-boleto-request.md) | Optional | Information about fines and interest on the "boleto" used from payment |
19+
| `indirectAcceptor` | `string \| null \| undefined` | Optional | Business model identifier |
1920

2021
## Example (as JSON)
2122

@@ -44,7 +45,8 @@ Request for updating a subscription's payment method
4445
"amount": 212
4546
},
4647
"max_days_to_pay_past_due": 118
47-
}
48+
},
49+
"indirect_acceptor": "indirect_acceptor2"
4850
}
4951
```
5052

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "6.8.14",
2+
"version": "6.8.15",
33
"license": "MIT",
44
"sideEffects": false,
55
"main": "dist/cjs/index.js",

src/client.ts

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

61-
this._userAgent = updateUserAgent('PagarmeApiSDK - TypeScript 6.8.14');
61+
this._userAgent = updateUserAgent('PagarmeApiSDK - TypeScript 6.8.15');
6262
this._requestBuilderFactory = createRequestHandlerFactory(
6363
(server) => getBaseUri(server, this._config),
6464
createAuthProviderFromConfig(clonedConfig),

src/models/updateSubscriptionPaymentMethodRequest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
55
*/
66

7-
import { lazy, object, optional, Schema, string } from '../schema';
7+
import { lazy, nullable, object, optional, Schema, string } from '../schema';
88
import {
99
CreateCardRequest,
1010
createCardRequestSchema,
@@ -26,6 +26,8 @@ export interface UpdateSubscriptionPaymentMethodRequest {
2626
cardToken?: string;
2727
/** Information about fines and interest on the "boleto" used from payment */
2828
boleto?: CreateSubscriptionBoletoRequest;
29+
/** Business model identifier */
30+
indirectAcceptor?: string | null;
2931
}
3032

3133
export const updateSubscriptionPaymentMethodRequestSchema: Schema<UpdateSubscriptionPaymentMethodRequest> = object(
@@ -38,5 +40,6 @@ export const updateSubscriptionPaymentMethodRequestSchema: Schema<UpdateSubscrip
3840
'boleto',
3941
optional(lazy(() => createSubscriptionBoletoRequestSchema)),
4042
],
43+
indirectAcceptor: ['indirect_acceptor', optional(nullable(string()))],
4144
}
4245
);

0 commit comments

Comments
 (0)