glitch-javascript-sdk 2.6.9 → 2.7.0

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.
@@ -639,5 +639,22 @@ declare class Communities {
639
639
  amount: number;
640
640
  description: string;
641
641
  }, params?: Record<string, any>): AxiosPromise<Response<T>>;
642
+ /**
643
+ * Get a detailed breakdown of a specific invoice including per-title usage.
644
+ *
645
+ * @param community_id The ID of the community.
646
+ * @param invoice_id The Stripe Invoice ID (e.g., in_123...).
647
+ */
648
+ static getInvoiceDetails<T>(community_id: string, invoice_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
649
+ /**
650
+ * Generate a custom date-range statement for reimbursement.
651
+ *
652
+ * @param community_id The ID of the community.
653
+ * @param params Should include { start_date: 'YYYY-MM-DD', end_date: 'YYYY-MM-DD' }
654
+ */
655
+ static getCustomStatement<T>(community_id: string, params: {
656
+ start_date: string;
657
+ end_date: string;
658
+ }): AxiosPromise<Response<T>>;
642
659
  }
643
660
  export default Communities;
package/dist/esm/index.js CHANGED
@@ -7862,6 +7862,19 @@ var CommunitiesRoute = /** @class */ (function () {
7862
7862
  url: '/communities/{community_id}/invoice-once',
7863
7863
  method: HTTP_METHODS.POST
7864
7864
  },
7865
+ // New Invoicing and Statement Routes
7866
+ listInvoices: {
7867
+ url: '/communities/{community_id}/payment/invoices',
7868
+ method: HTTP_METHODS.GET
7869
+ },
7870
+ getInvoiceDetails: {
7871
+ url: '/communities/{community_id}/payment/invoices/{invoice_id}',
7872
+ method: HTTP_METHODS.GET
7873
+ },
7874
+ getCustomStatement: {
7875
+ url: '/communities/{community_id}/payment/statement',
7876
+ method: HTTP_METHODS.GET
7877
+ },
7865
7878
  };
7866
7879
  return CommunitiesRoute;
7867
7880
  }());
@@ -8652,6 +8665,24 @@ var Communities = /** @class */ (function () {
8652
8665
  Communities.createOneTimeInvoice = function (community_id, data, params) {
8653
8666
  return Requests.processRoute(CommunitiesRoute.routes.createOneTimeInvoice, data, { community_id: community_id }, params);
8654
8667
  };
8668
+ /**
8669
+ * Get a detailed breakdown of a specific invoice including per-title usage.
8670
+ *
8671
+ * @param community_id The ID of the community.
8672
+ * @param invoice_id The Stripe Invoice ID (e.g., in_123...).
8673
+ */
8674
+ Communities.getInvoiceDetails = function (community_id, invoice_id, params) {
8675
+ return Requests.processRoute(CommunitiesRoute.routes.getInvoiceDetails, undefined, { community_id: community_id, invoice_id: invoice_id }, params);
8676
+ };
8677
+ /**
8678
+ * Generate a custom date-range statement for reimbursement.
8679
+ *
8680
+ * @param community_id The ID of the community.
8681
+ * @param params Should include { start_date: 'YYYY-MM-DD', end_date: 'YYYY-MM-DD' }
8682
+ */
8683
+ Communities.getCustomStatement = function (community_id, params) {
8684
+ return Requests.processRoute(CommunitiesRoute.routes.getCustomStatement, undefined, { community_id: community_id }, params);
8685
+ };
8655
8686
  return Communities;
8656
8687
  }());
8657
8688