| 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 |
|