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.
- package/dist/cjs/index.js +31 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Communities.d.ts +17 -0
- package/dist/esm/index.js +31 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +17 -0
- package/package.json +1 -1
- package/src/api/Communities.ts +24 -5
- package/src/api/Subscriptions.ts +1 -0
- package/src/routes/CommunitiesRoute.ts +17 -4
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,24 @@ 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
|
+
};
|
|
21839
21870
|
return Communities;
|
|
21840
21871
|
}());
|
|
21841
21872
|
|