@freemius/sdk 0.2.0 → 0.3.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/index.d.mts +83 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +83 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.mjs +14 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3404,6 +3404,42 @@ interface paths {
|
|
|
3404
3404
|
patch?: never;
|
|
3405
3405
|
trace?: never;
|
|
3406
3406
|
};
|
|
3407
|
+
'/products/{product_id}/users/{user_id}/payments/{payment_id}/invoice.pdf': {
|
|
3408
|
+
parameters: {
|
|
3409
|
+
query?: never;
|
|
3410
|
+
header?: never;
|
|
3411
|
+
path: {
|
|
3412
|
+
/**
|
|
3413
|
+
* @description The ID of the product.
|
|
3414
|
+
* @example 1234
|
|
3415
|
+
*/
|
|
3416
|
+
product_id: components['parameters']['product_id'];
|
|
3417
|
+
/**
|
|
3418
|
+
* @description The ID of the User.
|
|
3419
|
+
* @example 1234
|
|
3420
|
+
*/
|
|
3421
|
+
user_id: components['parameters']['user_id'];
|
|
3422
|
+
/**
|
|
3423
|
+
* @description The ID of the payment.
|
|
3424
|
+
* @example 1234
|
|
3425
|
+
*/
|
|
3426
|
+
payment_id: components['parameters']['payment_id'];
|
|
3427
|
+
};
|
|
3428
|
+
cookie?: never;
|
|
3429
|
+
};
|
|
3430
|
+
/**
|
|
3431
|
+
* Download invoice
|
|
3432
|
+
* @description Download invoice of a payment of a user. Use this endpoint to securely download the invoice of a payment belonging to a user. This is useful for implementing your own Customer Portal with download links to invoices.
|
|
3433
|
+
*/
|
|
3434
|
+
get: operations['users/download-invoice'];
|
|
3435
|
+
put?: never;
|
|
3436
|
+
post?: never;
|
|
3437
|
+
delete?: never;
|
|
3438
|
+
options?: never;
|
|
3439
|
+
head?: never;
|
|
3440
|
+
patch?: never;
|
|
3441
|
+
trace?: never;
|
|
3442
|
+
};
|
|
3407
3443
|
'/products/{product_id}/users/{user_id}/subscriptions.json': {
|
|
3408
3444
|
parameters: {
|
|
3409
3445
|
query?: never;
|
|
@@ -12621,6 +12657,52 @@ interface operations {
|
|
|
12621
12657
|
404: components['responses']['404'];
|
|
12622
12658
|
};
|
|
12623
12659
|
};
|
|
12660
|
+
'users/download-invoice': {
|
|
12661
|
+
parameters: {
|
|
12662
|
+
query?: {
|
|
12663
|
+
/**
|
|
12664
|
+
* @description Comma separated list of fields to return in the response. If not specified, all fields are returned.
|
|
12665
|
+
* @example id,name,slug
|
|
12666
|
+
*/
|
|
12667
|
+
fields?: components['parameters']['fields'];
|
|
12668
|
+
};
|
|
12669
|
+
header?: never;
|
|
12670
|
+
path: {
|
|
12671
|
+
/**
|
|
12672
|
+
* @description The ID of the product.
|
|
12673
|
+
* @example 1234
|
|
12674
|
+
*/
|
|
12675
|
+
product_id: components['parameters']['product_id'];
|
|
12676
|
+
/**
|
|
12677
|
+
* @description The ID of the User.
|
|
12678
|
+
* @example 1234
|
|
12679
|
+
*/
|
|
12680
|
+
user_id: components['parameters']['user_id'];
|
|
12681
|
+
/**
|
|
12682
|
+
* @description The ID of the payment.
|
|
12683
|
+
* @example 1234
|
|
12684
|
+
*/
|
|
12685
|
+
payment_id: components['parameters']['payment_id'];
|
|
12686
|
+
};
|
|
12687
|
+
cookie?: never;
|
|
12688
|
+
};
|
|
12689
|
+
requestBody?: never;
|
|
12690
|
+
responses: {
|
|
12691
|
+
/** @description PDF invoice */
|
|
12692
|
+
200: {
|
|
12693
|
+
headers: {
|
|
12694
|
+
[name: string]: unknown;
|
|
12695
|
+
};
|
|
12696
|
+
content: {
|
|
12697
|
+
'application/pdf': unknown;
|
|
12698
|
+
};
|
|
12699
|
+
};
|
|
12700
|
+
400: components['responses']['400'];
|
|
12701
|
+
401: components['responses']['401'];
|
|
12702
|
+
402: components['responses']['402'];
|
|
12703
|
+
404: components['responses']['404'];
|
|
12704
|
+
};
|
|
12705
|
+
};
|
|
12624
12706
|
'users/list-subscriptions': {
|
|
12625
12707
|
parameters: {
|
|
12626
12708
|
query?: {
|
|
@@ -13564,6 +13646,7 @@ declare class User extends ApiBase<UserEntity, UserFilterOptions> {
|
|
|
13564
13646
|
updateBilling(userId: FSId, payload: BillingUpdatePayload): Promise<UserBillingEntity | null>;
|
|
13565
13647
|
retrieveHostedCustomerPortal(userId: FSId): Promise<UserCustomerPortalResult | null>;
|
|
13566
13648
|
retrieveHostedCustomerPortalByEmail(email: string): Promise<UserCustomerPortalResult | null>;
|
|
13649
|
+
retrieveInvoice(userId: FSId, paymentId: FSId): Promise<Blob | null>;
|
|
13567
13650
|
}
|
|
13568
13651
|
//#endregion
|
|
13569
13652
|
//#region src/api/Payment.d.ts
|