@conflict-hq/ezacto-client 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2004,6 +2004,12 @@ export type BillClientDelivery = {
2004
2004
  export type BillClientDeliveryEnvelope = {
2005
2005
  "data": BillClientDelivery;
2006
2006
  };
2007
+ export type InvoicePaymentLinkEnvelope = {
2008
+ "data": {
2009
+ "invoice_id": number;
2010
+ "url": string;
2011
+ };
2012
+ };
2007
2013
  export type PayoutAccount = {
2008
2014
  "id": number;
2009
2015
  "user_id": number;
@@ -3301,6 +3307,11 @@ export declare class EzactoClient {
3301
3307
  signal?: AbortSignal;
3302
3308
  headers?: HeadersInit;
3303
3309
  }): Promise<void>;
3310
+ getInvoicePaymentLink(args: {
3311
+ "id": number;
3312
+ signal?: AbortSignal;
3313
+ headers?: HeadersInit;
3314
+ }): Promise<InvoicePaymentLinkEnvelope>;
3304
3315
  listPayoutAccounts(args: {
3305
3316
  "id": number;
3306
3317
  signal?: AbortSignal;
package/dist/generated.js CHANGED
@@ -1586,6 +1586,13 @@ export class EzactoClient {
1586
1586
  headers,
1587
1587
  });
1588
1588
  }
1589
+ async getInvoicePaymentLink(args) {
1590
+ const headers = new Headers(args.headers);
1591
+ return this.request("POST", "/api/v1/invoices/:id/payment-link".replace(":id", encodeURIComponent(String(args["id"]))), {
1592
+ signal: args.signal,
1593
+ headers,
1594
+ });
1595
+ }
1589
1596
  async listPayoutAccounts(args) {
1590
1597
  const headers = new Headers(args.headers);
1591
1598
  return this.request("GET", "/api/v1/users/:id/payout-accounts".replace(":id", encodeURIComponent(String(args["id"]))), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conflict-hq/ezacto-client",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Generated TypeScript client for the ezacto native API (v1 contract).",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
package/src/generated.ts CHANGED
@@ -2268,6 +2268,13 @@ export type BillClientDeliveryEnvelope = {
2268
2268
  "data": BillClientDelivery;
2269
2269
  };
2270
2270
 
2271
+ export type InvoicePaymentLinkEnvelope = {
2272
+ "data": {
2273
+ "invoice_id": number;
2274
+ "url": string;
2275
+ };
2276
+ };
2277
+
2271
2278
  export type PayoutAccount = {
2272
2279
  "id": number;
2273
2280
  "user_id": number;
@@ -4264,6 +4271,15 @@ export class EzactoClient {
4264
4271
  });
4265
4272
  }
4266
4273
 
4274
+ async getInvoicePaymentLink(args: { "id": number; signal?: AbortSignal; headers?: HeadersInit }): Promise<InvoicePaymentLinkEnvelope> {
4275
+ const headers = new Headers(args.headers);
4276
+
4277
+ return this.request<InvoicePaymentLinkEnvelope>("POST", "/api/v1/invoices/:id/payment-link".replace(":id", encodeURIComponent(String(args["id"]))), {
4278
+ signal: args.signal,
4279
+ headers,
4280
+ });
4281
+ }
4282
+
4267
4283
  async listPayoutAccounts(args: { "id": number; signal?: AbortSignal; headers?: HeadersInit }): Promise<PayoutAccountListEnvelope> {
4268
4284
  const headers = new Headers(args.headers);
4269
4285