admin
5 months ago
common
8 months ago
components
8 months ago
constants
8 months ago
hooks
11 months ago
index.tsx
1 year ago
types.ts
8 months ago
utils.ts
9 months ago
types.ts
38 lines
| 1 | import { IntlTelInputSettings } from "@givewp/forms/propTypes"; |
| 2 | |
| 3 | type Gateway = { |
| 4 | enabled: boolean; |
| 5 | id: string; |
| 6 | label: string; |
| 7 | supportsRefund: boolean; |
| 8 | supportsSubscriptions: boolean; |
| 9 | }; |
| 10 | |
| 11 | /** |
| 12 | * @since 4.6.0 |
| 13 | */ |
| 14 | export type GiveDonationOptions = { |
| 15 | isAdmin: boolean; |
| 16 | adminUrl: string; |
| 17 | apiRoot: string; |
| 18 | apiNonce: string; |
| 19 | donationsAdminUrl: string; |
| 20 | currency: string; |
| 21 | currencySymbol: string; |
| 22 | isRecurringEnabled: boolean; |
| 23 | intlTelInputSettings: IntlTelInputSettings; |
| 24 | nameTitlePrefixes: string[]; |
| 25 | countries: {[countryCode: string]: string}; |
| 26 | states: { |
| 27 | list: {[countryCode: string]: {[stateCode: string]: string}}; |
| 28 | labels: {[countryCode: string]: string}; |
| 29 | noStatesCountries: string[]; |
| 30 | statesNotRequiredCountries: string[]; |
| 31 | }; |
| 32 | isFeeRecoveryEnabled: boolean; |
| 33 | eventTicketsEnabled: boolean; |
| 34 | donationStatuses: {[statusCode: string]: string}; |
| 35 | mode: 'test' | 'live'; |
| 36 | gateways: Gateway[]; |
| 37 | } |
| 38 |