diff --git a/package.json b/package.json index 532556ae..919cdb5b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mercoa/javascript", - "version": "v0.2.3", + "version": "v0.2.4", "private": false, "repository": "https://github.com/mercoa-finance/javascript", "main": "./index.js", diff --git a/src/api/resources/bankLookup/client/Client.ts b/src/api/resources/bankLookup/client/Client.ts index 90c624ca..cbbdbe49 100644 --- a/src/api/resources/bankLookup/client/Client.ts +++ b/src/api/resources/bankLookup/client/Client.ts @@ -40,7 +40,7 @@ export class BankLookup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/entity/client/Client.ts b/src/api/resources/entity/client/Client.ts index f3a113f6..356b808c 100644 --- a/src/api/resources/entity/client/Client.ts +++ b/src/api/resources/entity/client/Client.ts @@ -54,7 +54,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -172,7 +172,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -248,7 +248,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.EntityRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -325,7 +325,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -404,7 +404,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.EntityUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -481,7 +481,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -552,7 +552,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -622,7 +622,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -693,7 +693,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -769,7 +769,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -844,7 +844,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -920,7 +920,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.EntityAddPayeesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/entity/resources/approvalPolicy/client/Client.ts b/src/api/resources/entity/resources/approvalPolicy/client/Client.ts index b7e954e9..407b9518 100644 --- a/src/api/resources/entity/resources/approvalPolicy/client/Client.ts +++ b/src/api/resources/entity/resources/approvalPolicy/client/Client.ts @@ -36,7 +36,7 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -117,7 +117,7 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.ApprovalPolicyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -217,7 +217,7 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -301,7 +301,7 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.ApprovalPolicyUpdateRequest.jsonOrThrow(request, { @@ -400,7 +400,7 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, diff --git a/src/api/resources/entity/resources/counterparty/client/Client.ts b/src/api/resources/entity/resources/counterparty/client/Client.ts index dd12aecb..ba937a28 100644 --- a/src/api/resources/entity/resources/counterparty/client/Client.ts +++ b/src/api/resources/entity/resources/counterparty/client/Client.ts @@ -46,7 +46,7 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/entity/resources/invoice/client/Client.ts b/src/api/resources/entity/resources/invoice/client/Client.ts index 0e5030e5..cddb7739 100644 --- a/src/api/resources/entity/resources/invoice/client/Client.ts +++ b/src/api/resources/entity/resources/invoice/client/Client.ts @@ -80,7 +80,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -193,7 +193,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/entity/resources/notificationPolicy/client/Client.ts b/src/api/resources/entity/resources/notificationPolicy/client/Client.ts index 2aa2b3bb..56e5d4a4 100644 --- a/src/api/resources/entity/resources/notificationPolicy/client/Client.ts +++ b/src/api/resources/entity/resources/notificationPolicy/client/Client.ts @@ -36,7 +36,7 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -117,7 +117,7 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -199,7 +199,7 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.NotificationPolicyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/entity/resources/paymentMethod/client/Client.ts b/src/api/resources/entity/resources/paymentMethod/client/Client.ts index b8236046..ca49685c 100644 --- a/src/api/resources/entity/resources/paymentMethod/client/Client.ts +++ b/src/api/resources/entity/resources/paymentMethod/client/Client.ts @@ -51,7 +51,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -131,7 +131,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.PaymentMethodRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -213,7 +213,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -295,7 +295,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.PaymentMethodUpdateRequest.jsonOrThrow(request, { @@ -376,7 +376,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -452,7 +452,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -529,7 +529,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.entity.CompleteMicroDepositsRequest.jsonOrThrow(request, { diff --git a/src/api/resources/entity/resources/representative/client/Client.ts b/src/api/resources/entity/resources/representative/client/Client.ts index aedbbc96..558f40b7 100644 --- a/src/api/resources/entity/resources/representative/client/Client.ts +++ b/src/api/resources/entity/resources/representative/client/Client.ts @@ -36,7 +36,7 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -115,7 +115,7 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.RepresentativeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -197,7 +197,7 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -275,7 +275,7 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, diff --git a/src/api/resources/entity/resources/user/client/Client.ts b/src/api/resources/entity/resources/user/client/Client.ts index 81872b8a..5c2c9f2a 100644 --- a/src/api/resources/entity/resources/user/client/Client.ts +++ b/src/api/resources/entity/resources/user/client/Client.ts @@ -37,7 +37,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -115,7 +115,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.EntityUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -194,7 +194,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -276,7 +276,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.EntityUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -355,7 +355,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -428,7 +428,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, diff --git a/src/api/resources/entity/resources/user/resources/notifications/client/Client.ts b/src/api/resources/entity/resources/user/resources/notifications/client/Client.ts index d1a5313a..207f7dd7 100644 --- a/src/api/resources/entity/resources/user/resources/notifications/client/Client.ts +++ b/src/api/resources/entity/resources/user/resources/notifications/client/Client.ts @@ -65,7 +65,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -150,7 +150,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, diff --git a/src/api/resources/invoice/client/Client.ts b/src/api/resources/invoice/client/Client.ts index f52d85d8..23ca9630 100644 --- a/src/api/resources/invoice/client/Client.ts +++ b/src/api/resources/invoice/client/Client.ts @@ -91,7 +91,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -168,7 +168,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.InvoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -245,7 +245,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -321,7 +321,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.InvoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -398,7 +398,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -469,7 +469,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, diff --git a/src/api/resources/invoice/resources/approval/client/Client.ts b/src/api/resources/invoice/resources/approval/client/Client.ts index cc345b5a..16afa5e6 100644 --- a/src/api/resources/invoice/resources/approval/client/Client.ts +++ b/src/api/resources/invoice/resources/approval/client/Client.ts @@ -36,7 +36,7 @@ export class Approval { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.ApprovalRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -108,7 +108,7 @@ export class Approval { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.ApprovalRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/invoice/resources/comment/client/Client.ts b/src/api/resources/invoice/resources/comment/client/Client.ts index b4150bae..cfac2d66 100644 --- a/src/api/resources/invoice/resources/comment/client/Client.ts +++ b/src/api/resources/invoice/resources/comment/client/Client.ts @@ -36,7 +36,7 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -112,7 +112,7 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.CommentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -191,7 +191,7 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -273,7 +273,7 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.CommentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -352,7 +352,7 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, diff --git a/src/api/resources/invoice/resources/document/client/Client.ts b/src/api/resources/invoice/resources/document/client/Client.ts index 9ee51d25..c7a9dd37 100644 --- a/src/api/resources/invoice/resources/document/client/Client.ts +++ b/src/api/resources/invoice/resources/document/client/Client.ts @@ -36,7 +36,7 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, diff --git a/src/api/resources/invoiceTypes/types/InvoiceRequest.ts b/src/api/resources/invoiceTypes/types/InvoiceRequest.ts index b78b3323..8fc0b563 100644 --- a/src/api/resources/invoiceTypes/types/InvoiceRequest.ts +++ b/src/api/resources/invoiceTypes/types/InvoiceRequest.ts @@ -21,11 +21,11 @@ export interface InvoiceRequest { serviceStartDate?: Date; serviceEndDate?: Date; payerId?: Mercoa.EntityId; - paymentSourceId?: Mercoa.InvoiceId; + paymentSourceId?: Mercoa.PaymentMethodId; /** Set approvers for this invoice. */ approvers?: Mercoa.AssignedApprover[]; vendorId?: Mercoa.EntityId; - paymentDestinationId?: Mercoa.InvoiceId; + paymentDestinationId?: Mercoa.PaymentMethodId; lineItems?: Mercoa.InvoiceLineItemRequest[]; /** Metadata associated with this invoice. You can specify up to 10 keys, with key names up to 40 characters long and values up to 200 characters long. */ metadata?: Record; diff --git a/src/api/resources/ocr/client/Client.ts b/src/api/resources/ocr/client/Client.ts index 5db156b2..be99c36c 100644 --- a/src/api/resources/ocr/client/Client.ts +++ b/src/api/resources/ocr/client/Client.ts @@ -47,7 +47,7 @@ export class Ocr { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/organization/client/Client.ts b/src/api/resources/organization/client/Client.ts index d5a716a9..b4277d70 100644 --- a/src/api/resources/organization/client/Client.ts +++ b/src/api/resources/organization/client/Client.ts @@ -51,7 +51,7 @@ export class Organization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, @@ -128,7 +128,7 @@ export class Organization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.OrganizationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), @@ -215,7 +215,7 @@ export class Organization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/paymentMethodSchema/client/Client.ts b/src/api/resources/paymentMethodSchema/client/Client.ts index 651b7881..4cdb43ae 100644 --- a/src/api/resources/paymentMethodSchema/client/Client.ts +++ b/src/api/resources/paymentMethodSchema/client/Client.ts @@ -36,7 +36,7 @@ export class PaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -112,7 +112,7 @@ export class PaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", body: await serializers.PaymentMethodSchemaRequest.jsonOrThrow(request, { @@ -191,7 +191,7 @@ export class PaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -267,7 +267,7 @@ export class PaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, diff --git a/src/api/resources/paymentMethodTypes/types/BankAccountBaseRequest.ts b/src/api/resources/paymentMethodTypes/types/BankAccountBaseRequest.ts index 0b09cddb..82ad17b8 100644 --- a/src/api/resources/paymentMethodTypes/types/BankAccountBaseRequest.ts +++ b/src/api/resources/paymentMethodTypes/types/BankAccountBaseRequest.ts @@ -8,7 +8,7 @@ export interface BankAccountBaseRequest { bankName?: string; routingNumber?: string; accountNumber?: string; - /** Public token from Plaid Link */ - plaidPublicToken?: string; accountType?: Mercoa.BankType; + /** If provided, will link a bank account using Plaid Link */ + plaid?: Mercoa.PlaidLinkRequest; } diff --git a/src/api/resources/paymentMethodTypes/types/PlaidLinkRequest.ts b/src/api/resources/paymentMethodTypes/types/PlaidLinkRequest.ts new file mode 100644 index 00000000..8a5afd98 --- /dev/null +++ b/src/api/resources/paymentMethodTypes/types/PlaidLinkRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface PlaidLinkRequest { + /** Account ID from Plaid Link */ + accountId?: string; + /** Public token from Plaid Link */ + publicToken?: string; +} diff --git a/src/api/resources/paymentMethodTypes/types/index.ts b/src/api/resources/paymentMethodTypes/types/index.ts index 76d30236..e7283087 100644 --- a/src/api/resources/paymentMethodTypes/types/index.ts +++ b/src/api/resources/paymentMethodTypes/types/index.ts @@ -3,6 +3,7 @@ export * from "./PaymentMethodSchemaId"; export * from "./PaymentMethodRequest"; export * from "./PaymentMethodUpdateRequest"; export * from "./PaymentMethodResponse"; +export * from "./PlaidLinkRequest"; export * from "./BankAccountBaseRequest"; export * from "./BankAccountRequest"; export * from "./BankAccountBaseResponse"; diff --git a/src/api/resources/transaction/client/Client.ts b/src/api/resources/transaction/client/Client.ts index 8efcea99..eb953078 100644 --- a/src/api/resources/transaction/client/Client.ts +++ b/src/api/resources/transaction/client/Client.ts @@ -36,7 +36,7 @@ export class Transaction { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, @@ -112,7 +112,7 @@ export class Transaction { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "v0.2.3", + "X-Fern-SDK-Version": "v0.2.4", }, contentType: "application/json", timeoutMs: 60000, diff --git a/src/serialization/resources/invoiceTypes/types/InvoiceRequest.ts b/src/serialization/resources/invoiceTypes/types/InvoiceRequest.ts index 18c2d0b4..64a1199a 100644 --- a/src/serialization/resources/invoiceTypes/types/InvoiceRequest.ts +++ b/src/serialization/resources/invoiceTypes/types/InvoiceRequest.ts @@ -20,12 +20,14 @@ export const InvoiceRequest: core.serialization.ObjectSchema (await import("../../..")).EntityId).optional(), - paymentSourceId: core.serialization.lazy(async () => (await import("../../..")).InvoiceId).optional(), + paymentSourceId: core.serialization.lazy(async () => (await import("../../..")).PaymentMethodId).optional(), approvers: core.serialization .list(core.serialization.lazyObject(async () => (await import("../../..")).AssignedApprover)) .optional(), vendorId: core.serialization.lazy(async () => (await import("../../..")).EntityId).optional(), - paymentDestinationId: core.serialization.lazy(async () => (await import("../../..")).InvoiceId).optional(), + paymentDestinationId: core.serialization + .lazy(async () => (await import("../../..")).PaymentMethodId) + .optional(), lineItems: core.serialization .list(core.serialization.lazyObject(async () => (await import("../../..")).InvoiceLineItemRequest)) .optional(), @@ -48,10 +50,10 @@ export declare namespace InvoiceRequest { serviceStartDate?: string | null; serviceEndDate?: string | null; payerId?: serializers.EntityId.Raw | null; - paymentSourceId?: serializers.InvoiceId.Raw | null; + paymentSourceId?: serializers.PaymentMethodId.Raw | null; approvers?: serializers.AssignedApprover.Raw[] | null; vendorId?: serializers.EntityId.Raw | null; - paymentDestinationId?: serializers.InvoiceId.Raw | null; + paymentDestinationId?: serializers.PaymentMethodId.Raw | null; lineItems?: serializers.InvoiceLineItemRequest.Raw[] | null; metadata?: Record | null; uploadedImage?: string | null; diff --git a/src/serialization/resources/paymentMethodTypes/types/BankAccountBaseRequest.ts b/src/serialization/resources/paymentMethodTypes/types/BankAccountBaseRequest.ts index 91466ec7..84f43185 100644 --- a/src/serialization/resources/paymentMethodTypes/types/BankAccountBaseRequest.ts +++ b/src/serialization/resources/paymentMethodTypes/types/BankAccountBaseRequest.ts @@ -13,8 +13,8 @@ export const BankAccountBaseRequest: core.serialization.ObjectSchema< bankName: core.serialization.string().optional(), routingNumber: core.serialization.string().optional(), accountNumber: core.serialization.string().optional(), - plaidPublicToken: core.serialization.string().optional(), accountType: core.serialization.lazy(async () => (await import("../../..")).BankType).optional(), + plaid: core.serialization.lazyObject(async () => (await import("../../..")).PlaidLinkRequest).optional(), }); export declare namespace BankAccountBaseRequest { @@ -22,7 +22,7 @@ export declare namespace BankAccountBaseRequest { bankName?: string | null; routingNumber?: string | null; accountNumber?: string | null; - plaidPublicToken?: string | null; accountType?: serializers.BankType.Raw | null; + plaid?: serializers.PlaidLinkRequest.Raw | null; } } diff --git a/src/serialization/resources/paymentMethodTypes/types/PlaidLinkRequest.ts b/src/serialization/resources/paymentMethodTypes/types/PlaidLinkRequest.ts new file mode 100644 index 00000000..8697523b --- /dev/null +++ b/src/serialization/resources/paymentMethodTypes/types/PlaidLinkRequest.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Mercoa from "../../../../api"; +import * as core from "../../../../core"; + +export const PlaidLinkRequest: core.serialization.ObjectSchema< + serializers.PlaidLinkRequest.Raw, + Mercoa.PlaidLinkRequest +> = core.serialization.object({ + accountId: core.serialization.string().optional(), + publicToken: core.serialization.string().optional(), +}); + +export declare namespace PlaidLinkRequest { + interface Raw { + accountId?: string | null; + publicToken?: string | null; + } +} diff --git a/src/serialization/resources/paymentMethodTypes/types/index.ts b/src/serialization/resources/paymentMethodTypes/types/index.ts index 76d30236..e7283087 100644 --- a/src/serialization/resources/paymentMethodTypes/types/index.ts +++ b/src/serialization/resources/paymentMethodTypes/types/index.ts @@ -3,6 +3,7 @@ export * from "./PaymentMethodSchemaId"; export * from "./PaymentMethodRequest"; export * from "./PaymentMethodUpdateRequest"; export * from "./PaymentMethodResponse"; +export * from "./PlaidLinkRequest"; export * from "./BankAccountBaseRequest"; export * from "./BankAccountRequest"; export * from "./BankAccountBaseResponse";