glitch-javascript-sdk 2.6.9 → 2.7.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.
package/dist/cjs/index.js CHANGED
@@ -21046,6 +21046,19 @@ var CommunitiesRoute = /** @class */ (function () {
21046
21046
  url: '/communities/{community_id}/invoice-once',
21047
21047
  method: HTTP_METHODS.POST
21048
21048
  },
21049
+ // New Invoicing and Statement Routes
21050
+ listInvoices: {
21051
+ url: '/communities/{community_id}/payment/invoices',
21052
+ method: HTTP_METHODS.GET
21053
+ },
21054
+ getInvoiceDetails: {
21055
+ url: '/communities/{community_id}/payment/invoices/{invoice_id}',
21056
+ method: HTTP_METHODS.GET
21057
+ },
21058
+ getCustomStatement: {
21059
+ url: '/communities/{community_id}/payment/statement',
21060
+ method: HTTP_METHODS.GET
21061
+ },
21049
21062
  };
21050
21063
  return CommunitiesRoute;
21051
21064
  }());
@@ -21836,6 +21849,30 @@ var Communities = /** @class */ (function () {
21836
21849
  Communities.createOneTimeInvoice = function (community_id, data, params) {
21837
21850
  return Requests.processRoute(CommunitiesRoute.routes.createOneTimeInvoice, data, { community_id: community_id }, params);
21838
21851
  };
21852
+ /**
21853
+ * Get a detailed breakdown of a specific invoice including per-title usage.
21854
+ *
21855
+ * @param community_id The ID of the community.
21856
+ * @param invoice_id The Stripe Invoice ID (e.g., in_123...).
21857
+ */
21858
+ Communities.getInvoiceDetails = function (community_id, invoice_id, params) {
21859
+ return Requests.processRoute(CommunitiesRoute.routes.getInvoiceDetails, undefined, { community_id: community_id, invoice_id: invoice_id }, params);
21860
+ };
21861
+ /**
21862
+ * Generate a custom date-range statement for reimbursement.
21863
+ *
21864
+ * @param community_id The ID of the community.
21865
+ * @param params Should include { start_date: 'YYYY-MM-DD', end_date: 'YYYY-MM-DD' }
21866
+ */
21867
+ Communities.getCustomStatement = function (community_id, params) {
21868
+ return Requests.processRoute(CommunitiesRoute.routes.getCustomStatement, undefined, { community_id: community_id }, params);
21869
+ };
21870
+ /**
21871
+ * List all Stripe invoices for the community.
21872
+ */
21873
+ Communities.listInvoices = function (community_id) {
21874
+ return Requests.processRoute(CommunitiesRoute.routes.listInvoices, undefined, { community_id: community_id });
21875
+ };
21839
21876
  return Communities;
21840
21877
  }());
21841
21878