Skip to content

Commit 8cedd64

Browse files
committed
apply prettier formatting to TS/JS files
1 parent 68191da commit 8cedd64

File tree

6 files changed

+488
-1825
lines changed

6 files changed

+488
-1825
lines changed

examples/stripe-openapi2.ts

+9-59
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ export interface definitions {
1717
/**
1818
* The business type.
1919
*/
20-
business_type?:
21-
| "company"
22-
| "government_entity"
23-
| "individual"
24-
| "non_profit";
20+
business_type?: "company" | "government_entity" | "individual" | "non_profit";
2521
capabilities?: definitions["account_capabilities"];
2622
/**
2723
* Whether the account can create live charges.
@@ -1805,11 +1801,7 @@ export interface definitions {
18051801
/**
18061802
* Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`
18071803
*/
1808-
reason?:
1809-
| "duplicate"
1810-
| "fraudulent"
1811-
| "order_change"
1812-
| "product_unsatisfactory";
1804+
reason?: "duplicate" | "fraudulent" | "order_change" | "product_unsatisfactory";
18131805
/**
18141806
* Refund related to this credit note.
18151807
*/
@@ -3691,12 +3683,7 @@ export interface definitions {
36913683
/**
36923684
* How the card details were provided.
36933685
*/
3694-
authorization_method:
3695-
| "chip"
3696-
| "contactless"
3697-
| "keyed_in"
3698-
| "online"
3699-
| "swipe";
3686+
authorization_method: "chip" | "contactless" | "keyed_in" | "online" | "swipe";
37003687
/**
37013688
* List of balance transactions associated with this authorization.
37023689
*/
@@ -4774,13 +4761,7 @@ export interface definitions {
47744761
/**
47754762
* The delivery status of the card.
47764763
*/
4777-
status?:
4778-
| "canceled"
4779-
| "delivered"
4780-
| "failure"
4781-
| "pending"
4782-
| "returned"
4783-
| "shipped";
4764+
status?: "canceled" | "delivered" | "failure" | "pending" | "returned" | "shipped";
47844765
/**
47854766
* A tracking number for a card shipment.
47864767
*/
@@ -5095,13 +5076,7 @@ export interface definitions {
50955076
/**
50965077
* The time interval or event with which to apply this spending limit towards.
50975078
*/
5098-
interval:
5099-
| "all_time"
5100-
| "daily"
5101-
| "monthly"
5102-
| "per_authorization"
5103-
| "weekly"
5104-
| "yearly";
5079+
interval: "all_time" | "daily" | "monthly" | "per_authorization" | "weekly" | "yearly";
51055080
};
51065081
issuing_cardholder_address: { address: definitions["address"] };
51075082
issuing_cardholder_authorization_controls: {
@@ -6061,13 +6036,7 @@ export interface definitions {
60616036
/**
60626037
* The time interval or event with which to apply this spending limit towards.
60636038
*/
6064-
interval:
6065-
| "all_time"
6066-
| "daily"
6067-
| "monthly"
6068-
| "per_authorization"
6069-
| "weekly"
6070-
| "yearly";
6039+
interval: "all_time" | "daily" | "monthly" | "per_authorization" | "weekly" | "yearly";
60716040
};
60726041
issuing_cardholder_verification: {
60736042
document?: definitions["issuing_cardholder_id_document"];
@@ -6967,13 +6936,7 @@ export interface definitions {
69676936
/**
69686937
* The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, or `visa_checkout`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
69696938
*/
6970-
type:
6971-
| "amex_express_checkout"
6972-
| "apple_pay"
6973-
| "google_pay"
6974-
| "masterpass"
6975-
| "samsung_pay"
6976-
| "visa_checkout";
6939+
type: "amex_express_checkout" | "apple_pay" | "google_pay" | "masterpass" | "samsung_pay" | "visa_checkout";
69776940
visa_checkout?: definitions["payment_method_card_wallet_visa_checkout"];
69786941
};
69796942
payment_method_card_wallet_amex_express_checkout: { [key: string]: any };
@@ -7289,13 +7252,7 @@ export interface definitions {
72897252
/**
72907253
* The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, or `visa_checkout`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
72917254
*/
7292-
type:
7293-
| "amex_express_checkout"
7294-
| "apple_pay"
7295-
| "google_pay"
7296-
| "masterpass"
7297-
| "samsung_pay"
7298-
| "visa_checkout";
7255+
type: "amex_express_checkout" | "apple_pay" | "google_pay" | "masterpass" | "samsung_pay" | "visa_checkout";
72997256
visa_checkout?: definitions["payment_method_details_card_wallet_visa_checkout"];
73007257
};
73017258
payment_method_details_card_wallet_amex_express_checkout: {
@@ -9858,14 +9815,7 @@ export interface definitions {
98589815
*
98599816
* If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
98609817
*/
9861-
status:
9862-
| "active"
9863-
| "canceled"
9864-
| "incomplete"
9865-
| "incomplete_expired"
9866-
| "past_due"
9867-
| "trialing"
9868-
| "unpaid";
9818+
status: "active" | "canceled" | "incomplete" | "incomplete_expired" | "past_due" | "trialing" | "unpaid";
98699819
/**
98709820
* If provided, each invoice created by this subscription will apply the tax rate, increasing the amount billed to the customer.
98719821
*/

0 commit comments

Comments
 (0)