Skip to content

Commit

Permalink
Release 0.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 3, 2024
1 parent 0634647 commit 2aaee77
Show file tree
Hide file tree
Showing 55 changed files with 452 additions and 302 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mercoa/javascript",
"version": "0.5.6",
"version": "0.5.7",
"private": false,
"repository": "https://github.com/mercoa-finance/javascript",
"main": "./index.js",
Expand Down
4 changes: 3 additions & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2584,6 +2584,7 @@ await client.invoice.create({
name: "Product A",
quantity: 1,
unitPrice: 100,
category: Mercoa.InvoiceLineItemCategory.Expense,
serviceStartDate: new Date("2021-01-01T00:00:00.000Z"),
serviceEndDate: new Date("2021-01-31T00:00:00.000Z"),
metadata: {
Expand Down Expand Up @@ -2716,6 +2717,7 @@ await client.invoice.update("inv_8545a84e-a45f-41bf-bdf1-33b42a55812c", {
name: "Product A",
quantity: 1,
unitPrice: 100,
category: Mercoa.InvoiceLineItemCategory.Expense,
serviceStartDate: new Date("2021-01-01T00:00:00.000Z"),
serviceEndDate: new Date("2021-01-31T00:00:00.000Z"),
metadata: {
Expand Down Expand Up @@ -6968,7 +6970,7 @@ await client.entity.representative.update(
<dl>
<dd>

**request:** `Mercoa.RepresentativeRequest`
**request:** `Mercoa.RepresentativeUpdateRequest`

</dd>
</dl>
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/bankLookup/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export class BankLookup {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/calculate/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export class Calculate {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -212,8 +212,8 @@ export class Calculate {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/customPaymentMethodSchema/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export class CustomPaymentMethodSchema {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -264,8 +264,8 @@ export class CustomPaymentMethodSchema {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -474,8 +474,8 @@ export class CustomPaymentMethodSchema {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -619,8 +619,8 @@ export class CustomPaymentMethodSchema {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -761,8 +761,8 @@ export class CustomPaymentMethodSchema {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down
44 changes: 22 additions & 22 deletions src/api/resources/entity/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ export class Entity {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -312,8 +312,8 @@ export class Entity {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -459,8 +459,8 @@ export class Entity {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -631,8 +631,8 @@ export class Entity {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -769,8 +769,8 @@ export class Entity {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -904,8 +904,8 @@ export class Entity {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -1038,8 +1038,8 @@ export class Entity {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -1179,8 +1179,8 @@ export class Entity {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -1330,8 +1330,8 @@ export class Entity {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -1487,8 +1487,8 @@ export class Entity {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -1645,8 +1645,8 @@ export class Entity {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/entity/resources/approvalPolicy/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export class ApprovalPolicy {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -234,8 +234,8 @@ export class ApprovalPolicy {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -379,8 +379,8 @@ export class ApprovalPolicy {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -554,8 +554,8 @@ export class ApprovalPolicy {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down Expand Up @@ -699,8 +699,8 @@ export class ApprovalPolicy {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@mercoa/javascript",
"X-Fern-SDK-Version": "0.5.6",
"User-Agent": "@mercoa/javascript/0.5.6",
"X-Fern-SDK-Version": "0.5.7",
"User-Agent": "@mercoa/javascript/0.5.7",
"X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
Expand Down
Loading

0 comments on commit 2aaee77

Please sign in to comment.