admin
11 months ago
components
11 months ago
hooks
11 months ago
entity.ts
11 months ago
index.tsx
1 year ago
types.ts
11 months ago
utils.ts
11 months ago
types.ts
50 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 | campaignsWithForms: { |
| 36 | [campaignId: string]: { |
| 37 | title: string; |
| 38 | defaultFormId: string; |
| 39 | forms: { |
| 40 | [formId: string]: string; |
| 41 | }; |
| 42 | }; |
| 43 | }; |
| 44 | donors: { |
| 45 | [donorId: string]: string; |
| 46 | }; |
| 47 | mode: 'test' | 'live'; |
| 48 | gateways: Gateway[]; |
| 49 | } |
| 50 |