Skip to content

Commit

Permalink
Remove Orders and subscription_data[items]
Browse files Browse the repository at this point in the history
  • Loading branch information
anniel-stripe committed Oct 12, 2022
1 parent deb7bb5 commit 5cf9eb3
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 3,470 deletions.
1 change: 0 additions & 1 deletion lib/resources.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 0 additions & 41 deletions lib/resources/Orders.js

This file was deleted.

1 change: 0 additions & 1 deletion src/resources.js
Expand Up @@ -28,7 +28,6 @@ module.exports = {
InvoiceItems: require('./resources/InvoiceItems'),
Mandates: require('./resources/Mandates'),
OAuth: require('./resources/OAuth'),
Orders: require('./resources/Orders'),
PaymentIntents: require('./resources/PaymentIntents'),
PaymentLinks: require('./resources/PaymentLinks'),
PaymentMethods: require('./resources/PaymentMethods'),
Expand Down
52 changes: 0 additions & 52 deletions src/resources/Orders.js

This file was deleted.

23 changes: 0 additions & 23 deletions types/2022-08-01/Checkout/Sessions.d.ts
Expand Up @@ -3150,11 +3150,6 @@ declare module 'stripe' {
*/
description?: string;

/**
* This parameter is deprecated. Use the line_items parameter on the Session instead.
*/
items?: Array<SubscriptionData.Item>;

/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
Expand Down Expand Up @@ -3185,24 +3180,6 @@ declare module 'stripe' {
}

namespace SubscriptionData {
interface Item {
/**
* Plan ID for this item.
*/
plan: string;

/**
* The quantity of the subscription item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
*/
quantity?: number;

/**
* The tax rates which apply to this item. When set, the `default_tax_rates`
* on `subscription_data` do not apply to this item.
*/
tax_rates?: Array<string>;
}

interface TransferData {
/**
* A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
Expand Down
5 changes: 5 additions & 0 deletions types/2022-08-01/Invoices.d.ts
Expand Up @@ -619,6 +619,11 @@ declare module 'stripe' {
*/
payment_method_type?: string;

/**
* A URL to the request log entry in your dashboard.
*/
request_log_url?: string;

/**
* A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
* For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
Expand Down
12 changes: 12 additions & 0 deletions types/2022-08-01/Issuing/Authorizations.d.ts
Expand Up @@ -88,6 +88,11 @@ declare module 'stripe' {
*/
metadata: Stripe.Metadata;

/**
* Details about the authorization, such as identifiers, set by the card network.
*/
network_data: Authorization.NetworkData | null;

/**
* The pending authorization request. This field will only be non-null during an `issuing_authorization.request` webhook.
*/
Expand Down Expand Up @@ -178,6 +183,13 @@ declare module 'stripe' {
state: string | null;
}

interface NetworkData {
/**
* ID from the network that identifies the acquiring financial institution. For Visa and Mastercard credit transactions this is as 6 digit code. For Maestro debit transactions this is a 9 digit code. Uncommonly, acquiring institution ID is not provided. When this occurs, the value will be null.
*/
acquiring_institution_id: string | null;
}

interface PendingRequest {
/**
* The additional amount Stripe will hold if the authorization is approved, in the card's [currency](https://stripe.com/docs/api#issuing_authorization_object-pending-request-currency) and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
Expand Down
7 changes: 0 additions & 7 deletions types/2022-08-01/LineItems.d.ts
Expand Up @@ -56,13 +56,6 @@ declare module 'stripe' {
*/
price: Stripe.Price | null;

/**
* The ID of the product for this line item.
*
* This will always be the same as `price.product`.
*/
product?: string | Stripe.Product | Stripe.DeletedProduct;

/**
* The quantity of products being purchased.
*/
Expand Down

0 comments on commit 5cf9eb3

Please sign in to comment.