Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for description on WebhookEndpoint #865

Merged
merged 1 commit into from
Apr 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions types/2020-03-02/Issuing/Authorizations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ declare module 'stripe' {
state: string | null;

/**
* The url an online purchase was made from
* URL provided by the merchant on a 3DS request
*/
url: string | null;
url?: string | null;
}

interface PendingRequest {
Expand Down Expand Up @@ -366,9 +366,9 @@ declare module 'stripe' {
expiry_check: VerificationData.ExpiryCheck;

/**
* 3D Secure details on this authorization.
* 3D Secure details.
*/
three_d_secure: VerificationData.ThreeDSecure | null;
three_d_secure?: VerificationData.ThreeDSecure | null;
}

namespace VerificationData {
Expand Down Expand Up @@ -516,7 +516,7 @@ declare module 'stripe' {
): ApiListPromise<Stripe.Issuing.Authorization>;

/**
* Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
* Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
*/
approve(
id: string,
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Issuing/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ declare module 'stripe' {
/**
* Metadata about the PIN on the card.
*/
pin: Card.Pin | null;
pin?: Card.Pin | null;

/**
* The latest card that replaces this card, if any.
Expand Down
4 changes: 2 additions & 2 deletions types/2020-03-02/Issuing/Transactions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ declare module 'stripe' {
state: string | null;

/**
* The url an online purchase was made from
* URL provided by the merchant on a 3DS request
*/
url: string | null;
url?: string | null;
}

type Type =
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Payouts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ declare module 'stripe' {
statement_descriptor: string | null;

/**
* Current status of the payout (`paid`, `pending`, `in_transit`, `canceled` or `failed`). A payout will be `pending` until it is submitted to the bank, at which point it becomes `in_transit`. It will then change to `paid` if the transaction goes through. If it does not go through successfully, its status will change to `failed` or `canceled`.
* Current status of the payout: `paid`, `pending`, `in_transit`, `canceled` or `failed`. A payout is `pending` until it is submitted to the bank, when it becomes `in_transit`. The status then changes to `paid` if the transaction goes through, or to `failed` or `canceled` (within 5 business days). Some failed payouts may initially show as `paid` but then change to `failed`.
*/
status: string;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/SubscriptionSchedules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ declare module 'stripe' {
/**
* Quantity of the plan to which the customer should be subscribed.
*/
quantity: number | null;
quantity?: number;

/**
* The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
Expand Down
15 changes: 15 additions & 0 deletions types/2020-03-02/WebhookEndpoints.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ declare module 'stripe' {

deleted?: void;

/**
* An optional description of what the wehbook is used for.
*/
description: string | null;

/**
* The list of events to enable for this endpoint. `['*']` indicates that all events are enabled, except those that require explicit selection.
*/
Expand Down Expand Up @@ -103,6 +108,11 @@ declare module 'stripe' {
*/
connect?: boolean;

/**
* An optional description of what the wehbook is used for.
*/
description?: string;

/**
* Specifies which fields in the response should be expanded.
*/
Expand Down Expand Up @@ -376,6 +386,11 @@ declare module 'stripe' {
}

interface WebhookEndpointUpdateParams {
/**
* An optional description of what the wehbook is used for.
*/
description?: string;

/**
* Disable the webhook endpoint if set to true.
*/
Expand Down