admin
7 months ago
common
9 months ago
components
8 months ago
constants
8 months ago
hooks
9 months ago
admin-subscriptions.tsx
1 year ago
types.ts
9 months ago
utils.ts
8 months ago
types.ts
28 lines
| 1 | type Gateway = { |
| 2 | enabled: boolean; |
| 3 | id: string; |
| 4 | label: string; |
| 5 | supportsRefund: boolean; |
| 6 | supportsSubscriptions: boolean; |
| 7 | }; |
| 8 | |
| 9 | /** |
| 10 | * @since 4.8.0 |
| 11 | */ |
| 12 | export type GiveSubscriptionOptions = { |
| 13 | isAdmin: boolean; |
| 14 | adminUrl: string; |
| 15 | pluginUrl: string; |
| 16 | apiRoot: string; |
| 17 | legacyApiRoot: string; |
| 18 | apiNonce: string; |
| 19 | syncSubscriptionNonce: string; |
| 20 | subscriptionsAdminUrl: string; |
| 21 | currency: string; |
| 22 | isRecurringEnabled: boolean; |
| 23 | isFeeRecoveryEnabled: boolean; |
| 24 | subscriptionStatuses: { [statusCode: string]: string }; |
| 25 | mode: 'test' | 'live'; |
| 26 | gateways: Gateway[]; |
| 27 | } |
| 28 |