Skip to content

Commit

Permalink
Merge pull request #30 from lmsqueezy/update-parameters
Browse files Browse the repository at this point in the history
Update parameters
  • Loading branch information
gilbitron authored Dec 7, 2023
2 parents bbe89ff + 4106b6e commit 739c13e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
15 changes: 14 additions & 1 deletion src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,13 @@ interface SubscriptionAttributes {
*/
urls: {
/**
* A signed URL for managing payment and billing infanaginormation for the subscription, valid for 24 hours.
* A signed URL for managing payment and billing information for the subscription, valid for 24 hours.
*/
update_payment_method: string;
/**
* A pre-signed URL to the Customer Portal, which allows customers to fully manage their subscriptions and billing information from within your application. The URL is valid for 24 hours from time of request.
*/
customer_portal: string;
};
/**
* Date indicating the end of the current billing cycle, and when the next invoice will be issued (ISO 8601 format).
Expand Down Expand Up @@ -311,6 +315,15 @@ interface CustomerAttributes {
* A human-readable string representing the monthly recurring revenue from the customer (e.g. $9.99).
*/
mrr_formatted: string;
/**
* URLs for the customer to manage subscriptions.
*/
urls: {
/**
* A pre-signed URL to the Customer Portal, which allows customers to fully manage their subscriptions and billing information from within your application. The URL is valid for 24 hours from time of request.
*/
customer_portal: string | null;
};
/**
* Date the customer was created (ISO 8601 format).
*/
Expand Down
12 changes: 6 additions & 6 deletions src/types/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export interface GetCustomersOptions extends PaginatedOptions {
/**
* Filter customers by email address
*/
email?: number;
email?: string;
/**
* List of record types to include
*/
Expand Down Expand Up @@ -380,7 +380,7 @@ export interface UpdateSubscriptionAttributes {
export interface PauseSubscriptionOptions extends BaseUpdateSubscriptionOptions {
/**
* Type of pause
*
*
* @default "void"
*/
mode?: "void" | "free";
Expand All @@ -393,7 +393,7 @@ export interface PauseSubscriptionOptions extends BaseUpdateSubscriptionOptions
export interface PauseSubscriptionAttributes {
/**
* Type of pause
*
*
* @default "void"
*/
mode?: "void" | "free";
Expand Down Expand Up @@ -770,7 +770,7 @@ export interface CreateWebhookOptions {
url: string;
/**
* List of webhook events to receive
*
*
* @see https://docs.lemonsqueezy.com/help/webhooks#event-types
*/
events: Array<WebhookEvent>;
Expand All @@ -791,7 +791,7 @@ export interface UpdateWebhookOptions {
url?: string;
/**
* List of webhook events to receive
*
*
* @see https://docs.lemonsqueezy.com/help/webhooks#event-types
*/
events?: Array<WebhookEvent>;
Expand All @@ -806,4 +806,4 @@ export interface DeleteWebhookOptions {
* ID of the webhook to delete
*/
id: number;
}
}

0 comments on commit 739c13e

Please sign in to comment.