Skip to content

Commit b6f0c67

Browse files
committed
refactor: standardize TypeScript interface properties with semicolons and removing any types
1 parent 2642d56 commit b6f0c67

File tree

1 file changed

+43
-45
lines changed
  • plugins/braintree-payment/src/providers/payment-braintree/src/types

1 file changed

+43
-45
lines changed

plugins/braintree-payment/src/providers/payment-braintree/src/types/index.ts

Lines changed: 43 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -21,67 +21,65 @@ export interface CustomFields {
2121
customer_id: string;
2222
}
2323

24-
2524
export interface DecodedClientToken {
26-
version: number
27-
authorizationFingerprint: string
28-
configUrl: string
29-
graphQL: GraphQl
30-
clientApiUrl: string
31-
environment: string
32-
merchantId: string
33-
assetsUrl: string
34-
authUrl: string
35-
venmo: string
36-
challenges: any[]
37-
threeDSecureEnabled: boolean
38-
analytics: Analytics
39-
paypalEnabled: boolean
40-
paypal: Paypal
25+
version: number;
26+
authorizationFingerprint: string;
27+
configUrl: string;
28+
graphQL: GraphQl;
29+
clientApiUrl: string;
30+
environment: string;
31+
merchantId: string;
32+
assetsUrl: string;
33+
authUrl: string;
34+
venmo: string;
35+
challenges: string[];
36+
threeDSecureEnabled: boolean;
37+
analytics: Analytics;
38+
paypalEnabled: boolean;
39+
paypal: Paypal;
4140
}
4241

4342
export interface GraphQl {
44-
url: string
45-
date: string
46-
features: string[]
43+
url: string;
44+
date: string;
45+
features: string[];
4746
}
4847

4948
export interface Analytics {
50-
url: string
49+
url: string;
5150
}
5251

5352
export interface Paypal {
54-
billingAgreementsEnabled: boolean
55-
environmentNoNetwork: boolean
56-
unvettedMerchant: boolean
57-
allowHttp: boolean
58-
displayName: string
59-
clientId: any
60-
baseUrl: string
61-
assetsUrl: string
62-
directBaseUrl: any
63-
environment: string
64-
braintreeClientId: string
65-
merchantAccountId: string
66-
currencyIsoCode: string
53+
billingAgreementsEnabled: boolean;
54+
environmentNoNetwork: boolean;
55+
unvettedMerchant: boolean;
56+
allowHttp: boolean;
57+
displayName: string;
58+
clientId: string;
59+
baseUrl: string;
60+
assetsUrl: string;
61+
directBaseUrl: string;
62+
environment: string;
63+
braintreeClientId: string;
64+
merchantAccountId: string;
65+
currencyIsoCode: string;
6766
}
6867

69-
7068
export interface DecodedClientTokenAuthorization {
71-
exp: number
72-
jti: string
73-
sub: string
74-
iss: string
75-
merchant: Merchant
76-
rights: string[]
77-
scope: string[]
78-
options: Options
69+
exp: number;
70+
jti: string;
71+
sub: string;
72+
iss: string;
73+
merchant: Merchant;
74+
rights: string[];
75+
scope: string[];
76+
options: Options;
7977
}
8078

8179
export interface Merchant {
82-
public_id: string
83-
verify_card_by_default: boolean
84-
verify_wallet_by_default: boolean
80+
public_id: string;
81+
verify_card_by_default: boolean;
82+
verify_wallet_by_default: boolean;
8583
}
8684

8785
export interface Options {}

0 commit comments

Comments
 (0)