diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e3d213..a30d27f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ Changelog +## 6.3.0 (2020, March 30) +### Fixes +- [(# 97)](https://github.com/triniwiz/nativescript-stripe/issues/97) IOS Build Failed (Xcode >= 11.3). This was fixed by upgrading to Stripe iOS SDK 19.0.1 (from SDK 16.0.6). No code changes were made. This release does not specifically use any new features of SDK 17, 18, or 19. Note that Stripe SDK 19 requires Apple iOS platform 10 or greater (currently supported by > 95% of all iOS devices). + ## 6.2.1 (2019, November 21) ### Fixes - [(# 87)](https://github.com/triniwiz/nativescript-stripe/issues/87) Can't Resolve tns-core-modules/utils/utils.ios diff --git a/README.md b/README.md index 6452764..e62432c 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Stripe Android [v10.2.1 SDK](https://github.com/stripe/stripe-android/releases/t ## iOS -Stripe [iOS 16.0.6 SDK](https://github.com/stripe/stripe-ios/releases/tag/v16.0.6) (pod) is being used +Stripe [iOS 19.0.1 SDK](https://github.com/stripe/stripe-ios/releases/tag/v19.0.1) (pod) is being used ## Angular To use the Custom Integration's CreditCardView in Angular, diff --git a/src/package.json b/src/package.json index fc15c86..2bef931 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-stripe", - "version": "6.2.1", + "version": "6.3.0", "description": "NativeScript Stripe sdk", "main": "stripe", "typings": "index.d.ts", @@ -50,6 +50,10 @@ "name": "Osei Fortune", "email": "fortune.osei@yahoo.com" }, + "repository": { + "type": "git", + "url": "https://github.com/triniwiz/nativescript-stripe" + }, "bugs": { "url": "https://github.com/triniwiz/nativescript-stripe/issues" }, @@ -62,6 +66,7 @@ "@angular/compiler-cli": "8.0.0", "@angular/core": "8.0.0", "@angular/platform-browser": "8.0.0", + "@angular/platform-browser-dynamic": "8.0.0", "@angular/router": "8.0.0", "nativescript-angular": "8.0.2", "prompt": "^1.0.0", @@ -72,7 +77,7 @@ "tns-platform-declarations": "6.0.1", "typescript": "3.4.5", "tslint": "^5.14.0", - "zone.js": "^0.8.4" + "zone.js": "~0.9.1" }, "bootstrapper": "nativescript-plugin-seed", "dependencies": {} diff --git a/src/platforms/ios/Podfile b/src/platforms/ios/Podfile index 12dc70d..437ee51 100644 --- a/src/platforms/ios/Podfile +++ b/src/platforms/ios/Podfile @@ -1,2 +1,2 @@ -platform :ios, '9.0' -pod 'Stripe', '~> 16.0.6' +platform :ios, '10.0' +pod 'Stripe', '~> 19.0.1' diff --git a/src/standard/standard.ios.ts b/src/standard/standard.ios.ts index ad34dde..daca906 100644 --- a/src/standard/standard.ios.ts +++ b/src/standard/standard.ios.ts @@ -187,16 +187,16 @@ class StripePaymentDelegate extends NSObject implements STPPaymentContextDelegat this.listener.onPaymentDataChanged(data); } - paymentContextDidCreatePaymentResultCompletion(paymentContext: STPPaymentContext, paymentResult: STPPaymentResult, completion: (p1: NSError) => void): void { + paymentContextDidCreatePaymentResultCompletion(paymentContext: STPPaymentContext, paymentResult: STPPaymentResult, completion: ((p1: STPPaymentStatus, p2: NSError) => void)): void { StripeConfig.shared().backendAPI.capturePayment( paymentResult.paymentMethod.stripeId, paymentContext.paymentAmount, createShippingMethod(paymentContext), createAddress(paymentContext.shippingAddress)) .then(() => { - completion(null); + completion(STPPaymentStatus.Success, null); }).catch(e => { - completion(createError("PaymentError", 100, e)); + completion(null, createError("PaymentError", 100, e)); }); } diff --git a/src/typings/objc!Stripe.d.ts b/src/typings/objc!Stripe.d.ts index 0906855..6ea6dc6 100644 --- a/src/typings/objc!Stripe.d.ts +++ b/src/typings/objc!Stripe.d.ts @@ -1,494 +1,515 @@ - -// Generated from Stripe 16.0.6 +// Generated from Stripe 19.0.1 // Using: // cd demo OR cd demo-angular // TNS_TYPESCRIPT_DECLARATIONS_PATH="$(pwd)/typings" tns build ios +declare const enum STDSACSStatusType { + + Unknown = 0, + + Authenticated = 1, + + ChallengeRequired = 2, + + DecoupledAuthentication = 3, + + NotAuthenticated = 4, + + ProofGenerated = 5, + + Error = 6, + + Rejected = 7, + + InformationalOnly = 8 +} declare class STDSAlreadyInitializedException extends STDSException { - static alloc(): STDSAlreadyInitializedException; // inherited from NSObject + static alloc(): STDSAlreadyInitializedException; // inherited from NSObject - static new(): STDSAlreadyInitializedException; // inherited from NSObject + static new(): STDSAlreadyInitializedException; // inherited from NSObject } declare class STDSAuthenticationRequestParameters extends NSObject implements STDSJSONEncodable { - static alloc(): STDSAuthenticationRequestParameters; // inherited from NSObject + static alloc(): STDSAuthenticationRequestParameters; // inherited from NSObject - static new(): STDSAuthenticationRequestParameters; // inherited from NSObject + static new(): STDSAuthenticationRequestParameters; // inherited from NSObject - static propertyNamesToJSONKeysMapping(): NSDictionary; + static propertyNamesToJSONKeysMapping(): NSDictionary; - readonly deviceData: string; + readonly deviceData: string; - readonly messageVersion: string; + readonly messageVersion: string; - readonly sdkAppIdentifier: string; + readonly sdkAppIdentifier: string; - readonly sdkEphemeralPublicKey: string; + readonly sdkEphemeralPublicKey: string; - readonly sdkReferenceNumber: string; + readonly sdkReferenceNumber: string; - readonly sdkTransactionIdentifier: string; + readonly sdkTransactionIdentifier: string; - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - constructor(o: { SDKTransactionIdentifier: string; deviceData: string; sdkEphemeralPublicKey: string; sdkAppIdentifier: string; sdkReferenceNumber: string; messageVersion: string; }); + constructor(o: { SDKTransactionIdentifier: string; deviceData: string; sdkEphemeralPublicKey: string; sdkAppIdentifier: string; sdkReferenceNumber: string; messageVersion: string; }); - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - initWithSDKTransactionIdentifierDeviceDataSdkEphemeralPublicKeySdkAppIdentifierSdkReferenceNumberMessageVersion(sdkTransactionIdentifier: string, deviceData: string, sdkEphemeralPublicKey: string, sdkAppIdentifier: string, sdkReferenceNumber: string, messageVersion: string): this; + initWithSDKTransactionIdentifierDeviceDataSdkEphemeralPublicKeySdkAppIdentifierSdkReferenceNumberMessageVersion(sdkTransactionIdentifier: string, deviceData: string, sdkEphemeralPublicKey: string, sdkAppIdentifier: string, sdkReferenceNumber: string, messageVersion: string): this; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } interface STDSAuthenticationResponse extends NSObjectProtocol { - acsOperatorID: string; + acsOperatorID: string; + + acsReferenceNumber: string; - acsReferenceNumber: string; + acsSignedContent: string; - acsSignedContent: string; + acsTransactionID: string; - acsTransactionID: string; + acsURL: NSURL; - acsURL: NSURL; + cardholderInfo: string; - cardholderInfo: string; + challengeRequired: boolean; - challengeMandated: boolean; + directoryServerReferenceNumber: string; - directoryServerReferenceNumber: string; + directoryServerTransactionID: string; - directoryServerTransactionID: string; + protocolVersion: string; - protocolVersion: string; + sdkTransactionID: string; - sdkTransactionID: string; + status: STDSACSStatusType; - threeDSServerTransactionID: string; + threeDSServerTransactionID: string; - willUseDecoupledAuthentication: boolean; + willUseDecoupledAuthentication: boolean; } declare var STDSAuthenticationResponse: { - prototype: STDSAuthenticationResponse; + prototype: STDSAuthenticationResponse; }; declare function STDSAuthenticationResponseFromJSON(json: NSDictionary): STDSAuthenticationResponse; declare class STDSButtonCustomization extends STDSCustomization { - static alloc(): STDSButtonCustomization; // inherited from NSObject + static alloc(): STDSButtonCustomization; // inherited from NSObject - static defaultSettingsForButtonType(type: STDSUICustomizationButtonType): STDSButtonCustomization; + static defaultSettingsForButtonType(type: STDSUICustomizationButtonType): STDSButtonCustomization; - static new(): STDSButtonCustomization; // inherited from NSObject + static new(): STDSButtonCustomization; // inherited from NSObject - backgroundColor: UIColor; + backgroundColor: UIColor; - cornerRadius: number; + cornerRadius: number; - titleStyle: STDSButtonTitleStyle; + titleStyle: STDSButtonTitleStyle; - constructor(o: { backgroundColor: UIColor; cornerRadius: number; }); + constructor(o: { backgroundColor: UIColor; cornerRadius: number; }); - initWithBackgroundColorCornerRadius(backgroundColor: UIColor, cornerRadius: number): this; + initWithBackgroundColorCornerRadius(backgroundColor: UIColor, cornerRadius: number): this; } declare const enum STDSButtonTitleStyle { - Default = 0, + Default = 0, - Uppercase = 1, + Uppercase = 1, - Lowercase = 2, + Lowercase = 2, - SentenceCapitalized = 3 + SentenceCapitalized = 3 } declare class STDSChallengeParameters extends NSObject { - static alloc(): STDSChallengeParameters; // inherited from NSObject + static alloc(): STDSChallengeParameters; // inherited from NSObject - static new(): STDSChallengeParameters; // inherited from NSObject + static new(): STDSChallengeParameters; // inherited from NSObject - acsReferenceNumber: string; + acsReferenceNumber: string; - acsSignedContent: string; + acsSignedContent: string; - acsTransactionID: string; + acsTransactionID: string; - threeDSRequestorAppURL: string; + threeDSRequestorAppURL: string; - threeDSServerTransactionID: string; + threeDSServerTransactionID: string; - constructor(o: { authenticationResponse: STDSAuthenticationResponse; }); + constructor(o: { authenticationResponse: STDSAuthenticationResponse; }); - initWithAuthenticationResponse(authResponse: STDSAuthenticationResponse): this; + initWithAuthenticationResponse(authResponse: STDSAuthenticationResponse): this; } interface STDSChallengeStatusReceiver extends NSObjectProtocol { - transactionDidCancel(transaction: STDSTransaction): void; + transactionDidCancel(transaction: STDSTransaction): void; - transactionDidCompleteChallengeWithCompletionEvent(transaction: STDSTransaction, completionEvent: STDSCompletionEvent): void; + transactionDidCompleteChallengeWithCompletionEvent(transaction: STDSTransaction, completionEvent: STDSCompletionEvent): void; - transactionDidErrorWithProtocolErrorEvent(transaction: STDSTransaction, protocolErrorEvent: STDSProtocolErrorEvent): void; + transactionDidErrorWithProtocolErrorEvent(transaction: STDSTransaction, protocolErrorEvent: STDSProtocolErrorEvent): void; - transactionDidErrorWithRuntimeErrorEvent(transaction: STDSTransaction, runtimeErrorEvent: STDSRuntimeErrorEvent): void; + transactionDidErrorWithRuntimeErrorEvent(transaction: STDSTransaction, runtimeErrorEvent: STDSRuntimeErrorEvent): void; - transactionDidPresentChallengeScreen?(transaction: STDSTransaction): void; + transactionDidPresentChallengeScreen?(transaction: STDSTransaction): void; - transactionDidTimeOut(transaction: STDSTransaction): void; + transactionDidTimeOut(transaction: STDSTransaction): void; } declare var STDSChallengeStatusReceiver: { - prototype: STDSChallengeStatusReceiver; + prototype: STDSChallengeStatusReceiver; }; declare class STDSCompletionEvent extends NSObject { - static alloc(): STDSCompletionEvent; // inherited from NSObject + static alloc(): STDSCompletionEvent; // inherited from NSObject - static new(): STDSCompletionEvent; // inherited from NSObject + static new(): STDSCompletionEvent; // inherited from NSObject - readonly sdkTransactionIdentifier: string; + readonly sdkTransactionIdentifier: string; - readonly transactionStatus: string; + readonly transactionStatus: string; - constructor(o: { SDKTransactionIdentifier: string; transactionStatus: string; }); + constructor(o: { SDKTransactionIdentifier: string; transactionStatus: string; }); - initWithSDKTransactionIdentifierTransactionStatus(identifier: string, transactionStatus: string): this; + initWithSDKTransactionIdentifierTransactionStatus(identifier: string, transactionStatus: string): this; } declare class STDSConfigParameters extends NSObject { - static alloc(): STDSConfigParameters; // inherited from NSObject + static alloc(): STDSConfigParameters; // inherited from NSObject - static new(): STDSConfigParameters; // inherited from NSObject + static new(): STDSConfigParameters; // inherited from NSObject - constructor(o: { standardParameters: void; }); + constructor(o: { standardParameters: void; }); - addParameterNamedWithValue(paramName: string, paramValue: string): void; + addParameterNamedWithValue(paramName: string, paramValue: string): void; - addParameterNamedWithValueToGroup(paramName: string, paramValue: string, paramGroup: string): void; + addParameterNamedWithValueToGroup(paramName: string, paramValue: string, paramGroup: string): void; - initWithStandardParameters(): this; + initWithStandardParameters(): this; - parameterValue(paramName: string): string; + parameterValue(paramName: string): string; - parameterValueInGroup(paramName: string, paramGroup: string): string; + parameterValueInGroup(paramName: string, paramGroup: string): string; - removeParameterNamed(paramName: string): string; + removeParameterNamed(paramName: string): string; - removeParameterNamedFromGroup(paramName: string, paramGroup: string): string; + removeParameterNamedFromGroup(paramName: string, paramGroup: string): string; } declare class STDSCustomization extends NSObject implements NSCopying { - static alloc(): STDSCustomization; // inherited from NSObject + static alloc(): STDSCustomization; // inherited from NSObject - static new(): STDSCustomization; // inherited from NSObject + static new(): STDSCustomization; // inherited from NSObject - font: UIFont; + font: UIFont; - textColor: UIColor; + textColor: UIColor; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + copyWithZone(zone: interop.Pointer | interop.Reference): any; } declare const enum STDSErrorCode { - AssertionFailed = 204, + AssertionFailed = 204, - JSONFieldInvalid = 203, + JSONFieldInvalid = 203, - JSONFieldMissing = 201, + JSONFieldMissing = 201, - UnrecognizedCriticalMessageExtension = 202, + UnrecognizedCriticalMessageExtension = 202, - DecryptionVerification = 302, + DecryptionVerification = 302, - RuntimeParsing = 400, + RuntimeParsing = 400, - RuntimeEncryption = 401, + RuntimeEncryption = 401, - ReceivedErrorMessage = 1000, + ReceivedErrorMessage = 1000, - UnknownMessageType = 1001, + UnknownMessageType = 1001, - Timeout = 1002, + Timeout = 1002, - UnknownError = 2000 + UnknownError = 2000 } declare class STDSErrorMessage extends NSObject implements STDSJSONDecodable, STDSJSONEncodable { - static alloc(): STDSErrorMessage; // inherited from NSObject + static alloc(): STDSErrorMessage; // inherited from NSObject - static decodedObjectFromJSONError(json: NSDictionary): STDSErrorMessage; + static decodedObjectFromJSONError(json: NSDictionary): STDSErrorMessage; - static new(): STDSErrorMessage; // inherited from NSObject + static new(): STDSErrorMessage; // inherited from NSObject - static propertyNamesToJSONKeysMapping(): NSDictionary; + static propertyNamesToJSONKeysMapping(): NSDictionary; - readonly acsTransactionIdentifier: string; + readonly acsTransactionIdentifier: string; - readonly errorCode: string; + readonly errorCode: string; - readonly errorComponent: string; + readonly errorComponent: string; - readonly errorDescription: string; + readonly errorDescription: string; - readonly errorDetails: string; + readonly errorDetails: string; - readonly errorMessageType: string; + readonly errorMessageType: string; - readonly messageVersion: string; + readonly messageVersion: string; - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - constructor(o: { errorCode: string; errorComponent: string; errorDescription: string; errorDetails: string; messageVersion: string; acsTransactionIdentifier: string; errorMessageType: string; }); + constructor(o: { errorCode: string; errorComponent: string; errorDescription: string; errorDetails: string; messageVersion: string; acsTransactionIdentifier: string; errorMessageType: string; }); - NSErrorValue(): NSError; + NSErrorValue(): NSError; - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - initWithErrorCodeErrorComponentErrorDescriptionErrorDetailsMessageVersionAcsTransactionIdentifierErrorMessageType(errorCode: string, errorComponent: string, errorDescription: string, errorDetails: string, messageVersion: string, acsTransactionIdentifier: string, errorMessageType: string): this; + initWithErrorCodeErrorComponentErrorDescriptionErrorDetailsMessageVersionAcsTransactionIdentifierErrorMessageType(errorCode: string, errorComponent: string, errorDescription: string, errorDetails: string, messageVersion: string, acsTransactionIdentifier: string, errorMessageType: string): this; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare const enum STDSErrorMessageCode { - CodeInvalidMessage = 101, + CodeInvalidMessage = 101, - CodeRequiredDataElementMissing = 201, + CodeRequiredDataElementMissing = 201, - CodeUnrecognizedCriticalMessageExtension = 202, + CodeUnrecognizedCriticalMessageExtension = 202, - ErrorInvalidDataElement = 203, + ErrorInvalidDataElement = 203, - ErrorTransactionIDNotRecognized = 301, + ErrorTransactionIDNotRecognized = 301, - ErrorDataDecryptionFailure = 302, + ErrorDataDecryptionFailure = 302, - ErrorTimeout = 402 + ErrorTimeout = 402 } declare class STDSException extends NSException { - static alloc(): STDSException; // inherited from NSObject + static alloc(): STDSException; // inherited from NSObject - static new(): STDSException; // inherited from NSObject + static new(): STDSException; // inherited from NSObject - readonly message: string; + readonly message: string; } declare class STDSFooterCustomization extends STDSCustomization { - static alloc(): STDSFooterCustomization; // inherited from NSObject + static alloc(): STDSFooterCustomization; // inherited from NSObject - static defaultSettings(): STDSFooterCustomization; + static defaultSettings(): STDSFooterCustomization; - static new(): STDSFooterCustomization; // inherited from NSObject + static new(): STDSFooterCustomization; // inherited from NSObject - backgroundColor: UIColor; + backgroundColor: UIColor; - chevronColor: UIColor; + chevronColor: UIColor; - headingFont: UIFont; + headingFont: UIFont; - headingTextColor: UIColor; + headingTextColor: UIColor; } declare class STDSInvalidInputException extends STDSException { - static alloc(): STDSInvalidInputException; // inherited from NSObject + static alloc(): STDSInvalidInputException; // inherited from NSObject - static new(): STDSInvalidInputException; // inherited from NSObject + static new(): STDSInvalidInputException; // inherited from NSObject } interface STDSJSONDecodable extends NSObjectProtocol { } declare var STDSJSONDecodable: { - prototype: STDSJSONDecodable; + prototype: STDSJSONDecodable; - decodedObjectFromJSONError(json: NSDictionary): STDSJSONDecodable; + decodedObjectFromJSONError(json: NSDictionary): STDSJSONDecodable; }; interface STDSJSONEncodable extends NSObjectProtocol { } declare var STDSJSONEncodable: { - prototype: STDSJSONEncodable; + prototype: STDSJSONEncodable; - propertyNamesToJSONKeysMapping(): NSDictionary; + propertyNamesToJSONKeysMapping(): NSDictionary; }; declare class STDSJSONEncoder extends NSObject { - static alloc(): STDSJSONEncoder; // inherited from NSObject + static alloc(): STDSJSONEncoder; // inherited from NSObject - static dictionaryForObject(object: NSObject): NSDictionary; + static dictionaryForObject(object: NSObject): NSDictionary; - static new(): STDSJSONEncoder; // inherited from NSObject + static new(): STDSJSONEncoder; // inherited from NSObject } declare class STDSLabelCustomization extends STDSCustomization { - static alloc(): STDSLabelCustomization; // inherited from NSObject + static alloc(): STDSLabelCustomization; // inherited from NSObject - static defaultSettings(): STDSLabelCustomization; + static defaultSettings(): STDSLabelCustomization; - static new(): STDSLabelCustomization; // inherited from NSObject + static new(): STDSLabelCustomization; // inherited from NSObject - headingFont: UIFont; + headingFont: UIFont; - headingTextColor: UIColor; + headingTextColor: UIColor; } declare class STDSNavigationBarCustomization extends STDSCustomization { - static alloc(): STDSNavigationBarCustomization; // inherited from NSObject + static alloc(): STDSNavigationBarCustomization; // inherited from NSObject - static defaultSettings(): STDSNavigationBarCustomization; + static defaultSettings(): STDSNavigationBarCustomization; - static new(): STDSNavigationBarCustomization; // inherited from NSObject + static new(): STDSNavigationBarCustomization; // inherited from NSObject - barStyle: UIBarStyle; + barStyle: UIBarStyle; - barTintColor: UIColor; + barTintColor: UIColor; - buttonText: string; + buttonText: string; - headerText: string; + headerText: string; - translucent: boolean; + translucent: boolean; } declare class STDSNotInitializedException extends STDSException { - static alloc(): STDSNotInitializedException; // inherited from NSObject + static alloc(): STDSNotInitializedException; // inherited from NSObject - static new(): STDSNotInitializedException; // inherited from NSObject + static new(): STDSNotInitializedException; // inherited from NSObject } declare class STDSProtocolErrorEvent extends NSObject { - static alloc(): STDSProtocolErrorEvent; // inherited from NSObject + static alloc(): STDSProtocolErrorEvent; // inherited from NSObject - static new(): STDSProtocolErrorEvent; // inherited from NSObject + static new(): STDSProtocolErrorEvent; // inherited from NSObject - readonly errorMessage: STDSErrorMessage; + readonly errorMessage: STDSErrorMessage; - readonly sdkTransactionIdentifier: string; + readonly sdkTransactionIdentifier: string; - constructor(o: { SDKTransactionIdentifier: string; errorMessage: STDSErrorMessage; }); + constructor(o: { SDKTransactionIdentifier: string; errorMessage: STDSErrorMessage; }); - initWithSDKTransactionIdentifierErrorMessage(identifier: string, errorMessage: STDSErrorMessage): this; + initWithSDKTransactionIdentifierErrorMessage(identifier: string, errorMessage: STDSErrorMessage): this; } declare class STDSRuntimeErrorEvent extends NSObject { - static alloc(): STDSRuntimeErrorEvent; // inherited from NSObject + static alloc(): STDSRuntimeErrorEvent; // inherited from NSObject - static new(): STDSRuntimeErrorEvent; // inherited from NSObject + static new(): STDSRuntimeErrorEvent; // inherited from NSObject - readonly errorCode: string; + readonly errorCode: string; - readonly errorMessage: string; + readonly errorMessage: string; - constructor(o: { errorCode: string; errorMessage: string; }); + constructor(o: { errorCode: string; errorMessage: string; }); - NSErrorValue(): NSError; + NSErrorValue(): NSError; - initWithErrorCodeErrorMessage(errorCode: string, errorMessage: string): this; + initWithErrorCodeErrorMessage(errorCode: string, errorMessage: string): this; } declare class STDSRuntimeException extends STDSException { - static alloc(): STDSRuntimeException; // inherited from NSObject + static alloc(): STDSRuntimeException; // inherited from NSObject - static new(): STDSRuntimeException; // inherited from NSObject + static new(): STDSRuntimeException; // inherited from NSObject } declare class STDSSelectionCustomization extends NSObject implements NSCopying { - static alloc(): STDSSelectionCustomization; // inherited from NSObject + static alloc(): STDSSelectionCustomization; // inherited from NSObject - static defaultSettings(): STDSSelectionCustomization; + static defaultSettings(): STDSSelectionCustomization; - static new(): STDSSelectionCustomization; // inherited from NSObject + static new(): STDSSelectionCustomization; // inherited from NSObject - primarySelectedColor: UIColor; + primarySelectedColor: UIColor; - secondarySelectedColor: UIColor; + secondarySelectedColor: UIColor; - unselectedBackgroundColor: UIColor; + unselectedBackgroundColor: UIColor; - unselectedBorderColor: UIColor; + unselectedBorderColor: UIColor; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + copyWithZone(zone: interop.Pointer | interop.Reference): any; } declare var STDSStripe3DS2ErrorDomain: string; @@ -501,705 +522,762 @@ declare var STDSStripe3DS2UnrecognizedCriticalMessageExtensionsKey: string; declare class STDSTextFieldCustomization extends STDSCustomization { - static alloc(): STDSTextFieldCustomization; // inherited from NSObject + static alloc(): STDSTextFieldCustomization; // inherited from NSObject - static defaultSettings(): STDSTextFieldCustomization; + static defaultSettings(): STDSTextFieldCustomization; - static new(): STDSTextFieldCustomization; // inherited from NSObject + static new(): STDSTextFieldCustomization; // inherited from NSObject - borderColor: UIColor; + borderColor: UIColor; - borderWidth: number; + borderWidth: number; - cornerRadius: number; + cornerRadius: number; - keyboardAppearance: UIKeyboardAppearance; + keyboardAppearance: UIKeyboardAppearance; - placeholderTextColor: UIColor; + placeholderTextColor: UIColor; } declare class STDSThreeDS2Service extends NSObject { - static alloc(): STDSThreeDS2Service; // inherited from NSObject + static alloc(): STDSThreeDS2Service; // inherited from NSObject - static new(): STDSThreeDS2Service; // inherited from NSObject + static new(): STDSThreeDS2Service; // inherited from NSObject - readonly warnings: NSArray; + readonly warnings: NSArray; - createTransactionForDirectoryServerServerKeyIDCertificateStringRootCertificateStringsWithProtocolVersion(directoryServerID: string, serverKeyID: string, certificateString: string, rootCertificateStrings: NSArray | string[], protocolVersion: string): STDSTransaction; + createTransactionForDirectoryServerServerKeyIDCertificateStringRootCertificateStringsWithProtocolVersion(directoryServerID: string, serverKeyID: string, certificateString: string, rootCertificateStrings: NSArray | string[], protocolVersion: string): STDSTransaction; - createTransactionForDirectoryServerWithProtocolVersion(directoryServerID: string, protocolVersion: string): STDSTransaction; + createTransactionForDirectoryServerWithProtocolVersion(directoryServerID: string, protocolVersion: string): STDSTransaction; - initializeWithConfigLocaleUiSettings(config: STDSConfigParameters, locale: NSLocale, uiSettings: STDSUICustomization): void; + initializeWithConfigLocaleUiSettings(config: STDSConfigParameters, locale: NSLocale, uiSettings: STDSUICustomization): void; } declare class STDSTransaction extends NSObject { - static alloc(): STDSTransaction; // inherited from NSObject + static alloc(): STDSTransaction; // inherited from NSObject - static new(): STDSTransaction; // inherited from NSObject + static new(): STDSTransaction; // inherited from NSObject - readonly presentedChallengeUIType: string; + readonly presentedChallengeUIType: string; - close(): void; + close(): void; - createAuthenticationRequestParameters(): STDSAuthenticationRequestParameters; + createAuthenticationRequestParameters(): STDSAuthenticationRequestParameters; - createProgressViewControllerWithDidCancel(didCancel: () => void): UIViewController; + createProgressViewControllerWithDidCancel(didCancel: () => void): UIViewController; - doChallengeWithViewControllerChallengeParametersChallengeStatusReceiverTimeout(presentingViewController: UIViewController, challengeParameters: STDSChallengeParameters, challengeStatusReceiver: STDSChallengeStatusReceiver, timeout: number): void; + doChallengeWithViewControllerChallengeParametersChallengeStatusReceiverTimeout(presentingViewController: UIViewController, challengeParameters: STDSChallengeParameters, challengeStatusReceiver: STDSChallengeStatusReceiver, timeout: number): void; - sdkVersion(): string; + sdkVersion(): string; } declare class STDSUICustomization extends NSObject implements NSCopying { - static alloc(): STDSUICustomization; // inherited from NSObject + static alloc(): STDSUICustomization; // inherited from NSObject - static defaultSettings(): STDSUICustomization; + static defaultSettings(): STDSUICustomization; - static new(): STDSUICustomization; // inherited from NSObject + static new(): STDSUICustomization; // inherited from NSObject - activityIndicatorViewStyle: UIActivityIndicatorViewStyle; + activityIndicatorViewStyle: UIActivityIndicatorViewStyle; - backgroundColor: UIColor; + backgroundColor: UIColor; - blurStyle: UIBlurEffectStyle; + blurStyle: UIBlurEffectStyle; - footerCustomization: STDSFooterCustomization; + footerCustomization: STDSFooterCustomization; - labelCustomization: STDSLabelCustomization; + labelCustomization: STDSLabelCustomization; - navigationBarCustomization: STDSNavigationBarCustomization; + navigationBarCustomization: STDSNavigationBarCustomization; - preferredStatusBarStyle: UIStatusBarStyle; + preferredStatusBarStyle: UIStatusBarStyle; - selectionCustomization: STDSSelectionCustomization; + selectionCustomization: STDSSelectionCustomization; - textFieldCustomization: STDSTextFieldCustomization; + textFieldCustomization: STDSTextFieldCustomization; - buttonCustomizationForButtonType(buttonType: STDSUICustomizationButtonType): STDSButtonCustomization; + buttonCustomizationForButtonType(buttonType: STDSUICustomizationButtonType): STDSButtonCustomization; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + copyWithZone(zone: interop.Pointer | interop.Reference): any; - setButtonCustomizationForType(buttonCustomization: STDSButtonCustomization, buttonType: STDSUICustomizationButtonType): void; + setButtonCustomizationForType(buttonCustomization: STDSButtonCustomization, buttonType: STDSUICustomizationButtonType): void; } declare const enum STDSUICustomizationButtonType { - Submit = 0, + Submit = 0, - Continue = 1, + Continue = 1, - Next = 2, + Next = 2, - Cancel = 3, + Cancel = 3, - Resend = 4 + Resend = 4 } declare class STDSWarning extends NSObject { - static alloc(): STDSWarning; // inherited from NSObject + static alloc(): STDSWarning; // inherited from NSObject - static new(): STDSWarning; // inherited from NSObject + static new(): STDSWarning; // inherited from NSObject - readonly identifier: string; + readonly identifier: string; - readonly message: string; + readonly message: string; - readonly severity: STDSWarningSeverity; + readonly severity: STDSWarningSeverity; - constructor(o: { identifier: string; message: string; severity: STDSWarningSeverity; }); + constructor(o: { identifier: string; message: string; severity: STDSWarningSeverity; }); - initWithIdentifierMessageSeverity(identifier: string, message: string, severity: STDSWarningSeverity): this; + initWithIdentifierMessageSeverity(identifier: string, message: string, severity: STDSWarningSeverity): this; } declare const enum STDSWarningSeverity { - Low = 0, + Low = 0, - Medium = 1, + Medium = 1, - High = 2 + High = 2 } declare class STPAPIClient extends NSObject { - static alloc(): STPAPIClient; // inherited from NSObject + static alloc(): STPAPIClient; // inherited from NSObject - static new(): STPAPIClient; // inherited from NSObject + static new(): STPAPIClient; // inherited from NSObject - static sharedClient(): STPAPIClient; + static pkPaymentErrorForStripeError(stripeError: NSError): NSError; - appInfo: STPAppInfo; + static sharedClient(): STPAPIClient; - configuration: STPPaymentConfiguration; + appInfo: STPAppInfo; - publishableKey: string; + configuration: STPPaymentConfiguration; - stripeAccount: string; + publishableKey: string; - constructor(o: { configuration: STPPaymentConfiguration; }); + stripeAccount: string; - constructor(o: { publishableKey: string; }); + constructor(o: { configuration: STPPaymentConfiguration; }); - confirmPaymentIntentWithParamsCompletion(paymentIntentParams: STPPaymentIntentParams, completion: (p1: STPPaymentIntent, p2: NSError) => void): void; + constructor(o: { publishableKey: string; }); - confirmSetupIntentWithParamsCompletion(setupIntentParams: STPSetupIntentConfirmParams, completion: (p1: STPSetupIntent, p2: NSError) => void): void; + confirmPaymentIntentWithParamsCompletion(paymentIntentParams: STPPaymentIntentParams, completion: (p1: STPPaymentIntent, p2: NSError) => void): void; - createPaymentMethodWithParamsCompletion(paymentMethodParams: STPPaymentMethodParams, completion: (p1: STPPaymentMethod, p2: NSError) => void): void; + confirmSetupIntentWithParamsCompletion(setupIntentParams: STPSetupIntentConfirmParams, completion: (p1: STPSetupIntent, p2: NSError) => void): void; - createPaymentMethodWithPaymentCompletion(payment: PKPayment, completion: (p1: STPPaymentMethod, p2: NSError) => void): void; + createPaymentMethodWithParamsCompletion(paymentMethodParams: STPPaymentMethodParams, completion: (p1: STPPaymentMethod, p2: NSError) => void): void; - createSourceWithParamsCompletion(params: STPSourceParams, completion: (p1: STPSource, p2: NSError) => void): void; + createPaymentMethodWithPaymentCompletion(payment: PKPayment, completion: (p1: STPPaymentMethod, p2: NSError) => void): void; - createSourceWithPaymentCompletion(payment: PKPayment, completion: (p1: STPSource, p2: NSError) => void): void; + createSourceWithParamsCompletion(params: STPSourceParams, completion: (p1: STPSource, p2: NSError) => void): void; - createTokenForCVCUpdateCompletion(cvc: string, completion: (p1: STPToken, p2: NSError) => void): void; + createSourceWithPaymentCompletion(payment: PKPayment, completion: (p1: STPSource, p2: NSError) => void): void; - createTokenWithBankAccountCompletion(bankAccount: STPBankAccountParams, completion: (p1: STPToken, p2: NSError) => void): void; + createTokenForCVCUpdateCompletion(cvc: string, completion: (p1: STPToken, p2: NSError) => void): void; - createTokenWithCardCompletion(card: STPCardParams, completion: (p1: STPToken, p2: NSError) => void): void; + createTokenWithBankAccountCompletion(bankAccount: STPBankAccountParams, completion: (p1: STPToken, p2: NSError) => void): void; - createTokenWithConnectAccountCompletion(account: STPConnectAccountParams, completion: (p1: STPToken, p2: NSError) => void): void; + createTokenWithCardCompletion(card: STPCardParams, completion: (p1: STPToken, p2: NSError) => void): void; - createTokenWithPaymentCompletion(payment: PKPayment, completion: (p1: STPToken, p2: NSError) => void): void; + createTokenWithConnectAccountCompletion(account: STPConnectAccountParams, completion: (p1: STPToken, p2: NSError) => void): void; - createTokenWithPersonalIDNumberCompletion(pii: string, completion: (p1: STPToken, p2: NSError) => void): void; + createTokenWithPaymentCompletion(payment: PKPayment, completion: (p1: STPToken, p2: NSError) => void): void; - initWithConfiguration(configuration: STPPaymentConfiguration): this; + createTokenWithPersonalIDNumberCompletion(pii: string, completion: (p1: STPToken, p2: NSError) => void): void; - initWithPublishableKey(publishableKey: string): this; + createTokenWithSSNLast4Completion(ssnLast4: string, completion: (p1: STPToken, p2: NSError) => void): void; - retrievePaymentIntentWithClientSecretCompletion(secret: string, completion: (p1: STPPaymentIntent, p2: NSError) => void): void; + initWithConfiguration(configuration: STPPaymentConfiguration): this; - retrieveSetupIntentWithClientSecretCompletion(secret: string, completion: (p1: STPSetupIntent, p2: NSError) => void): void; + initWithPublishableKey(publishableKey: string): this; - retrieveSourceWithIdClientSecretCompletion(identifier: string, secret: string, completion: (p1: STPSource, p2: NSError) => void): void; + retrievePaymentIntentWithClientSecretCompletion(secret: string, completion: (p1: STPPaymentIntent, p2: NSError) => void): void; - startPollingSourceWithIdClientSecretTimeoutCompletion(identifier: string, secret: string, timeout: number, completion: (p1: STPSource, p2: NSError) => void): void; + retrieveSetupIntentWithClientSecretCompletion(secret: string, completion: (p1: STPSetupIntent, p2: NSError) => void): void; - stopPollingSourceWithId(identifier: string): void; + retrieveSourceWithIdClientSecretCompletion(identifier: string, secret: string, completion: (p1: STPSource, p2: NSError) => void): void; - uploadImagePurposeCompletion(image: UIImage, purpose: STPFilePurpose, completion: (p1: STPFile, p2: NSError) => void): void; + startPollingSourceWithIdClientSecretTimeoutCompletion(identifier: string, secret: string, timeout: number, completion: (p1: STPSource, p2: NSError) => void): void; + + stopPollingSourceWithId(identifier: string): void; + + uploadImagePurposeCompletion(image: UIImage, purpose: STPFilePurpose, completion: (p1: STPFile, p2: NSError) => void): void; } interface STPAPIResponseDecodable extends NSObjectProtocol { - allResponseFields: NSDictionary; + allResponseFields: NSDictionary; } declare var STPAPIResponseDecodable: { - prototype: STPAPIResponseDecodable; + prototype: STPAPIResponseDecodable; - decodedObjectFromAPIResponse(response: NSDictionary): STPAPIResponseDecodable; + decodedObjectFromAPIResponse(response: NSDictionary): STPAPIResponseDecodable; }; declare class STPAddCardViewController extends STPCoreTableViewController { - static alloc(): STPAddCardViewController; // inherited from NSObject + static alloc(): STPAddCardViewController; // inherited from NSObject - static new(): STPAddCardViewController; // inherited from NSObject + static new(): STPAddCardViewController; // inherited from NSObject - customFooterView: UIView; + apiClient: STPAPIClient; - delegate: STPAddCardViewControllerDelegate; + customFooterView: UIView; - prefilledInformation: STPUserInformation; + delegate: STPAddCardViewControllerDelegate; - constructor(o: { configuration: STPPaymentConfiguration; theme: STPTheme; }); + prefilledInformation: STPUserInformation; - initWithConfigurationTheme(configuration: STPPaymentConfiguration, theme: STPTheme): this; + constructor(o: { configuration: STPPaymentConfiguration; theme: STPTheme; }); + + initWithConfigurationTheme(configuration: STPPaymentConfiguration, theme: STPTheme): this; } interface STPAddCardViewControllerDelegate extends NSObjectProtocol { - addCardViewControllerDidCancel(addCardViewController: STPAddCardViewController): void; + addCardViewControllerDidCancel(addCardViewController: STPAddCardViewController): void; + + addCardViewControllerDidCreatePaymentMethodCompletion?(addCardViewController: STPAddCardViewController, paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; - addCardViewControllerDidCreatePaymentMethodCompletion?(addCardViewController: STPAddCardViewController, paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; + addCardViewControllerDidCreateSourceCompletion?(addCardViewController: STPAddCardViewController, source: STPSource, completion: (p1: NSError) => void): void; + + addCardViewControllerDidCreateTokenCompletion?(addCardViewController: STPAddCardViewController, token: STPToken, completion: (p1: NSError) => void): void; } declare var STPAddCardViewControllerDelegate: { - prototype: STPAddCardViewControllerDelegate; + prototype: STPAddCardViewControllerDelegate; }; declare class STPAddress extends NSObject implements NSCopying, STPAPIResponseDecodable, STPFormEncodable { - static alloc(): STPAddress; // inherited from NSObject + static alloc(): STPAddress; // inherited from NSObject + + static applePayAddressFieldsFromBillingAddressFields(billingAddressFields: STPBillingAddressFields): PKAddressField; - static applePayAddressFieldsFromBillingAddressFields(billingAddressFields: STPBillingAddressFields): PKAddressField; + static applePayContactFieldsFromBillingAddressFields(billingAddressFields: STPBillingAddressFields): NSSet; - static decodedObjectFromAPIResponse(response: NSDictionary): STPAddress; + static decodedObjectFromAPIResponse(response: NSDictionary): STPAddress; - static new(): STPAddress; // inherited from NSObject + static new(): STPAddress; // inherited from NSObject - static pkAddressFieldsFromStripeContactFields(contactFields: NSSet): PKAddressField; + static pkAddressFieldsFromStripeContactFields(contactFields: NSSet): PKAddressField; - static pkContactFieldsFromStripeContactFields(contactFields: NSSet): NSSet; + static pkContactFieldsFromStripeContactFields(contactFields: NSSet): NSSet; - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static rootObjectName(): string; + static rootObjectName(): string; - static shippingInfoForChargeWithAddressShippingMethod(address: STPAddress, method: PKShippingMethod): NSDictionary; + static shippingInfoForChargeWithAddressShippingMethod(address: STPAddress, method: PKShippingMethod): NSDictionary; - city: string; + city: string; - country: string; + country: string; - email: string; + email: string; - line1: string; + line1: string; - line2: string; + line2: string; - name: string; + name: string; - phone: string; + phone: string; - postalCode: string; + postalCode: string; - state: string; + state: string; - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - constructor(o: { CNContact: CNContact; }); + constructor(o: { CNContact: CNContact; }); - constructor(o: { PKContact: PKContact; }); + constructor(o: { PKContact: PKContact; }); - constructor(o: { paymentMethodBillingDetails: STPPaymentMethodBillingDetails; }); + constructor(o: { paymentMethodBillingDetails: STPPaymentMethodBillingDetails; }); - PKContactValue(): PKContact; + PKContactValue(): PKContact; - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - containsContentForBillingAddressFields(desiredFields: STPBillingAddressFields): boolean; + containsContentForBillingAddressFields(desiredFields: STPBillingAddressFields): boolean; - containsContentForShippingAddressFields(desiredFields: NSSet): boolean; + containsContentForShippingAddressFields(desiredFields: NSSet): boolean; - containsRequiredFields(requiredFields: STPBillingAddressFields): boolean; + containsRequiredFields(requiredFields: STPBillingAddressFields): boolean; - containsRequiredShippingAddressFields(requiredFields: NSSet): boolean; + containsRequiredShippingAddressFields(requiredFields: NSSet): boolean; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + copyWithZone(zone: interop.Pointer | interop.Reference): any; - initWithCNContact(contact: CNContact): this; + initWithCNContact(contact: CNContact): this; - initWithPKContact(contact: PKContact): this; + initWithPKContact(contact: PKContact): this; - initWithPaymentMethodBillingDetails(billingDetails: STPPaymentMethodBillingDetails): this; + initWithPaymentMethodBillingDetails(billingDetails: STPPaymentMethodBillingDetails): this; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare class STPAppInfo extends NSObject { - static alloc(): STPAppInfo; // inherited from NSObject + static alloc(): STPAppInfo; // inherited from NSObject - static new(): STPAppInfo; // inherited from NSObject + static new(): STPAppInfo; // inherited from NSObject - readonly name: string; + readonly name: string; - readonly partnerId: string; + readonly partnerId: string; - readonly url: string; + readonly url: string; - readonly version: string; + readonly version: string; - constructor(o: { name: string; partnerId: string; version: string; url: string; }); + constructor(o: { name: string; partnerId: string; version: string; url: string; }); - initWithNamePartnerIdVersionUrl(name: string, partnerId: string, version: string, url: string): this; + initWithNamePartnerIdVersionUrl(name: string, partnerId: string, version: string, url: string): this; } declare class STPApplePayPaymentOption extends NSObject implements STPPaymentOption { - static alloc(): STPApplePayPaymentOption; // inherited from NSObject + static alloc(): STPApplePayPaymentOption; // inherited from NSObject - static new(): STPApplePayPaymentOption; // inherited from NSObject + static new(): STPApplePayPaymentOption; // inherited from NSObject - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly image: UIImage; // inherited from STPPaymentOption + readonly image: UIImage; // inherited from STPPaymentOption - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly label: string; // inherited from STPPaymentOption + readonly label: string; // inherited from STPPaymentOption - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly reusable: boolean; // inherited from STPPaymentOption - readonly templateImage: UIImage; // inherited from STPPaymentOption + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly templateImage: UIImage; // inherited from STPPaymentOption - class(): typeof NSObject; + readonly // inherited from NSObjectProtocol - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + class(): typeof NSObject; - isEqual(object: any): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isEqual(object: any): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelectorWithObject(aSelector: string, object: any): any; + performSelector(aSelector: string): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - respondsToSelector(aSelector: string): boolean; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - retainCount(): number; + respondsToSelector(aSelector: string): boolean; - self(): this; + retainCount(): number; + + self(): this; } interface STPAuthenticationContext extends NSObjectProtocol { - authenticationPresentingViewController(): UIViewController; + authenticationContextWillDismissViewController?(viewController: UIViewController): void; + + authenticationPresentingViewController(): UIViewController; - configureSafariViewController?(viewController: SFSafariViewController): void; + configureSafariViewController?(viewController: SFSafariViewController): void; - prepareAuthenticationContextForPresentation?(completion: () => void): void; + prepareAuthenticationContextForPresentation?(completion: () => void): void; } declare var STPAuthenticationContext: { - prototype: STPAuthenticationContext; + prototype: STPAuthenticationContext; }; interface STPBackendAPIAdapter extends NSObjectProtocol { - attachPaymentMethodToCustomerCompletion(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; + attachPaymentMethodToCustomerCompletion(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; - detachPaymentMethodFromCustomerCompletion?(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; + detachPaymentMethodFromCustomerCompletion?(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; - listPaymentMethodsForCustomerWithCompletion(completion: (p1: NSArray, p2: NSError) => void): void; + listPaymentMethodsForCustomerWithCompletion(completion: (p1: NSArray, p2: NSError) => void): void; - retrieveCustomer(completion: (p1: STPCustomer, p2: NSError) => void): void; + retrieveCustomer(completion: (p1: STPCustomer, p2: NSError) => void): void; - updateCustomerWithShippingAddressCompletion?(shipping: STPAddress, completion: (p1: NSError) => void): void; + updateCustomerWithShippingAddressCompletion?(shipping: STPAddress, completion: (p1: NSError) => void): void; } declare var STPBackendAPIAdapter: { - prototype: STPBackendAPIAdapter; + prototype: STPBackendAPIAdapter; }; declare class STPBankAccount extends NSObject implements STPAPIResponseDecodable, STPSourceProtocol { - static alloc(): STPBankAccount; // inherited from NSObject + static alloc(): STPBankAccount; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPBankAccount; + static decodedObjectFromAPIResponse(response: NSDictionary): STPBankAccount; - static new(): STPBankAccount; // inherited from NSObject + static new(): STPBankAccount; // inherited from NSObject - readonly accountHolderName: string; + readonly accountHolderName: string; - readonly accountHolderType: STPBankAccountHolderType; + readonly accountHolderType: STPBankAccountHolderType; - readonly bankAccountId: string; + readonly bankAccountId: string; - readonly bankName: string; + readonly bankName: string; - readonly country: string; + readonly country: string; - readonly currency: string; + readonly currency: string; - readonly fingerprint: string; + readonly fingerprint: string; - readonly last4: string; + readonly last4: string; - readonly metadata: NSDictionary; + readonly metadata: NSDictionary; - readonly routingNumber: string; + readonly routingNumber: string; - readonly status: STPBankAccountStatus; + readonly status: STPBankAccountStatus; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly stripeID: string; // inherited from STPSourceProtocol + readonly stripeID: string; // inherited from STPSourceProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare const enum STPBankAccountHolderType { - Individual = 0, + Individual = 0, - Company = 1 + Company = 1 } declare class STPBankAccountParams extends NSObject implements STPFormEncodable { - static alloc(): STPBankAccountParams; // inherited from NSObject + static alloc(): STPBankAccountParams; // inherited from NSObject - static new(): STPBankAccountParams; // inherited from NSObject + static new(): STPBankAccountParams; // inherited from NSObject - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static rootObjectName(): string; + static rootObjectName(): string; - accountHolderName: string; + accountHolderName: string; - accountHolderType: STPBankAccountHolderType; + accountHolderType: STPBankAccountHolderType; - accountNumber: string; + accountNumber: string; - country: string; + country: string; - currency: string; + currency: string; - readonly last4: string; + readonly last4: string; - routingNumber: string; + routingNumber: string; - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare const enum STPBankAccountStatus { - New = 0, + New = 0, + + Validated = 1, + + Verified = 2, + + VerificationFailed = 3, + + Errored = 4 +} + +declare function STPBankCodeFromFPXBankBrand(brand: STPFPXBankBrand, isBusiness: boolean): string; + +declare const enum STPBankSelectionMethod { + + FPX = 0, + + Unknown = 1 +} + +declare class STPBankSelectionViewController extends STPCoreTableViewController { + + static alloc(): STPBankSelectionViewController; // inherited from NSObject - Validated = 1, + static new(): STPBankSelectionViewController; // inherited from NSObject - Verified = 2, + apiClient: STPAPIClient; - VerificationFailed = 3, + delegate: STPBankSelectionViewControllerDelegate; - Errored = 4 + constructor(o: { bankMethod: STPBankSelectionMethod; }); + + constructor(o: { bankMethod: STPBankSelectionMethod; configuration: STPPaymentConfiguration; theme: STPTheme; }); + + initWithBankMethod(bankMethod: STPBankSelectionMethod): this; + + initWithBankMethodConfigurationTheme(bankMethod: STPBankSelectionMethod, configuration: STPPaymentConfiguration, theme: STPTheme): this; +} + +interface STPBankSelectionViewControllerDelegate extends NSObjectProtocol { + + bankSelectionViewControllerDidCreatePaymentMethodParams(bankViewController: STPBankSelectionViewController, paymentMethodParams: STPPaymentMethodParams): void; } +declare var STPBankSelectionViewControllerDelegate: { + + prototype: STPBankSelectionViewControllerDelegate; +}; declare const enum STPBillingAddressFields { - None = 0, + None = 0, - Zip = 1, + PostalCode = 1, - Full = 2, + Full = 2, - Name = 3 + Name = 3, + + Zip = 1 } declare class STPCard extends NSObject implements STPAPIResponseDecodable, STPPaymentOption, STPSourceProtocol { - static alloc(): STPCard; // inherited from NSObject + static alloc(): STPCard; // inherited from NSObject + + static brandFromString(string: string): STPCardBrand; - static brandFromString(string: string): STPCardBrand; + static decodedObjectFromAPIResponse(response: NSDictionary): STPCard; - static decodedObjectFromAPIResponse(response: NSDictionary): STPCard; + static fundingFromString(string: string): STPCardFundingType; - static fundingFromString(string: string): STPCardFundingType; + static new(): STPCard; // inherited from NSObject - static new(): STPCard; // inherited from NSObject + static stringFromBrand(brand: STPCardBrand): string; - static stringFromBrand(brand: STPCardBrand): string; + readonly address: STPAddress; - readonly address: STPAddress; + readonly addressCity: string; - readonly addressCity: string; + readonly addressCountry: string; - readonly addressCountry: string; + readonly addressLine1: string; - readonly addressLine1: string; + readonly addressLine2: string; - readonly addressLine2: string; + readonly addressState: string; - readonly addressState: string; + readonly addressZip: string; - readonly addressZip: string; + readonly brand: STPCardBrand; - readonly brand: STPCardBrand; + readonly cardId: string; - readonly cardId: string; + readonly country: string; - readonly country: string; + readonly currency: string; - readonly currency: string; + readonly dynamicLast4: string; - readonly dynamicLast4: string; + readonly expMonth: number; - readonly expMonth: number; + readonly expYear: number; - readonly expYear: number; + readonly funding: STPCardFundingType; - readonly funding: STPCardFundingType; + readonly isApplePayCard: boolean; - readonly isApplePayCard: boolean; + readonly last4: string; - readonly last4: string; + readonly metadata: NSDictionary; - readonly metadata: NSDictionary; + readonly name: string; - readonly name: string; + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly image: UIImage; // inherited from STPPaymentOption - readonly image: UIImage; // inherited from STPPaymentOption + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly label: string; // inherited from STPPaymentOption - readonly label: string; // inherited from STPPaymentOption + readonly reusable: boolean; // inherited from STPPaymentOption - readonly stripeID: string; // inherited from STPSourceProtocol + readonly stripeID: string; // inherited from STPSourceProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly templateImage: UIImage; // inherited from STPPaymentOption + readonly templateImage: UIImage; // inherited from STPPaymentOption - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - constructor(o: { ID: string; brand: STPCardBrand; last4: string; expMonth: number; expYear: number; funding: STPCardFundingType; }); + constructor(o: { ID: string; brand: STPCardBrand; last4: string; expMonth: number; expYear: number; funding: STPCardFundingType; }); - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - initWithIDBrandLast4ExpMonthExpYearFunding(cardID: string, brand: STPCardBrand, last4: string, expMonth: number, expYear: number, funding: STPCardFundingType): this; + initWithIDBrandLast4ExpMonthExpYearFunding(cardID: string, brand: STPCardBrand, last4: string, expMonth: number, expYear: number, funding: STPCardFundingType): this; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare const enum STPCardBrand { - Visa = 0, + Visa = 0, - Amex = 1, + Amex = 1, - MasterCard = 2, + MasterCard = 2, - Discover = 3, + Discover = 3, - JCB = 4, + JCB = 4, - DinersClub = 5, + DinersClub = 5, - UnionPay = 6, + UnionPay = 6, - Unknown = 7 + Unknown = 7 } declare var STPCardDeclined: string; @@ -1208,3635 +1286,4853 @@ declare var STPCardErrorCodeKey: string; declare const enum STPCardFundingType { - Debit = 0, + Debit = 0, - Credit = 1, + Credit = 1, - Prepaid = 2, + Prepaid = 2, - Other = 3 + Other = 3 } declare class STPCardParams extends NSObject implements NSCopying, STPFormEncodable { - static alloc(): STPCardParams; // inherited from NSObject + static alloc(): STPCardParams; // inherited from NSObject - static new(): STPCardParams; // inherited from NSObject + static new(): STPCardParams; // inherited from NSObject - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static rootObjectName(): string; + static rootObjectName(): string; - address: STPAddress; + address: STPAddress; - addressCity: string; + addressCity: string; - addressCountry: string; + addressCountry: string; - addressLine1: string; + addressLine1: string; - addressLine2: string; + addressLine2: string; - addressState: string; + addressState: string; - addressZip: string; + addressZip: string; - currency: string; + currency: string; - cvc: string; + cvc: string; - expMonth: number; + expMonth: number; - expYear: number; + expYear: number; - name: string; + name: string; - number: string; + number: string; - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + copyWithZone(zone: interop.Pointer | interop.Reference): any; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - last4(): string; + last4(): string; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare const enum STPCardValidationState { - Valid = 0, + Valid = 0, - Invalid = 1, + Invalid = 1, - Incomplete = 2 + Incomplete = 2 } declare class STPCardValidator extends NSObject { - static alloc(): STPCardValidator; // inherited from NSObject + static alloc(): STPCardValidator; // inherited from NSObject - static brandForNumber(cardNumber: string): STPCardBrand; + static brandForNumber(cardNumber: string): STPCardBrand; - static fragmentLengthForCardBrand(brand: STPCardBrand): number; + static fragmentLengthForCardBrand(brand: STPCardBrand): number; - static lengthsForCardBrand(brand: STPCardBrand): NSSet; + static lengthsForCardBrand(brand: STPCardBrand): NSSet; - static maxCVCLengthForCardBrand(brand: STPCardBrand): number; + static maxCVCLengthForCardBrand(brand: STPCardBrand): number; - static maxLengthForCardBrand(brand: STPCardBrand): number; + static maxLengthForCardBrand(brand: STPCardBrand): number; - static new(): STPCardValidator; // inherited from NSObject + static new(): STPCardValidator; // inherited from NSObject - static sanitizedNumericStringForString(string: string): string; + static sanitizedNumericStringForString(string: string): string; - static stringIsNumeric(string: string): boolean; + static sanitizedPostalStringForString(string: string): string; - static validationStateForCVCCardBrand(cvc: string, brand: STPCardBrand): STPCardValidationState; + static stringIsNumeric(string: string): boolean; - static validationStateForCard(card: STPCardParams): STPCardValidationState; + static validationStateForCVCCardBrand(cvc: string, brand: STPCardBrand): STPCardValidationState; - static validationStateForExpirationMonth(expirationMonth: string): STPCardValidationState; + static validationStateForCard(card: STPCardParams): STPCardValidationState; - static validationStateForExpirationYearInMonth(expirationYear: string, expirationMonth: string): STPCardValidationState; + static validationStateForExpirationMonth(expirationMonth: string): STPCardValidationState; - static validationStateForNumberValidatingCardBrand(cardNumber: string, validatingCardBrand: boolean): STPCardValidationState; + static validationStateForExpirationYearInMonth(expirationYear: string, expirationMonth: string): STPCardValidationState; + + static validationStateForNumberValidatingCardBrand(cardNumber: string, validatingCardBrand: boolean): STPCardValidationState; } -declare class STPConnectAccountParams extends NSObject implements STPFormEncodable { +declare class STPConfirmCardOptions extends NSObject implements STPFormEncodable { - static alloc(): STPConnectAccountParams; // inherited from NSObject + static alloc(): STPConfirmCardOptions; // inherited from NSObject - static new(): STPConnectAccountParams; // inherited from NSObject + static new(): STPConfirmCardOptions; // inherited from NSObject - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static rootObjectName(): string; + static rootObjectName(): string; - readonly legalEntity: STPLegalEntityParams; + cvc: string; - readonly tosShownAndAccepted: number; + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + class(): typeof NSObject; - constructor(o: { legalEntity: STPLegalEntityParams; }); + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - constructor(o: { tosShownAndAccepted: boolean; legalEntity: STPLegalEntityParams; }); + isEqual(object: any): boolean; - class(): typeof NSObject; + isKindOfClass(aClass: typeof NSObject): boolean; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - initWithLegalEntity(legalEntity: STPLegalEntityParams): this; + performSelector(aSelector: string): any; - initWithTosShownAndAcceptedLegalEntity(wasAccepted: boolean, legalEntity: STPLegalEntityParams): this; + performSelectorWithObject(aSelector: string, object: any): any; - isEqual(object: any): boolean; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - isKindOfClass(aClass: typeof NSObject): boolean; + respondsToSelector(aSelector: string): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + retainCount(): number; - performSelector(aSelector: string): any; + self(): this; +} - performSelectorWithObject(aSelector: string, object: any): any; +declare class STPConfirmPaymentMethodOptions extends NSObject implements STPFormEncodable { - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + static alloc(): STPConfirmPaymentMethodOptions; // inherited from NSObject - respondsToSelector(aSelector: string): boolean; + static new(): STPConfirmPaymentMethodOptions; // inherited from NSObject - retainCount(): number; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - self(): this; -} + static rootObjectName(): string; -declare var STPContactFieldEmailAddress: string; + cardOptions: STPConfirmCardOptions; -declare var STPContactFieldName: string; + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable -declare var STPContactFieldPhoneNumber: string; + readonly debugDescription: string; // inherited from NSObjectProtocol -declare var STPContactFieldPostalAddress: string; + readonly description: string; // inherited from NSObjectProtocol -declare class STPCoreScrollViewController extends STPCoreViewController { + readonly hash: number; // inherited from NSObjectProtocol - static alloc(): STPCoreScrollViewController; // inherited from NSObject + readonly isProxy: boolean; // inherited from NSObjectProtocol - static new(): STPCoreScrollViewController; // inherited from NSObject -} + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol -declare class STPCoreTableViewController extends STPCoreScrollViewController { + readonly // inherited from NSObjectProtocol - static alloc(): STPCoreTableViewController; // inherited from NSObject + class(): typeof NSObject; - static new(): STPCoreTableViewController; // inherited from NSObject -} + conformsToProtocol(aProtocol: any /* Protocol */): boolean; -declare class STPCoreViewController extends UIViewController { + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; - static alloc(): STPCoreViewController; // inherited from NSObject + isMemberOfClass(aClass: typeof NSObject): boolean; - static new(): STPCoreViewController; // inherited from NSObject + performSelector(aSelector: string): any; - constructor(o: { theme: STPTheme; }); + performSelectorWithObject(aSelector: string, object: any): any; - initWithTheme(theme: STPTheme): this; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } -declare class STPCustomer extends NSObject implements STPAPIResponseDecodable { +declare class STPConnectAccountAddress extends NSObject implements STPFormEncodable { - static alloc(): STPCustomer; // inherited from NSObject + static alloc(): STPConnectAccountAddress; // inherited from NSObject - static customerWithStripeIDDefaultSourceSources(stripeID: string, defaultSource: STPSourceProtocol, sources: NSArray | STPSourceProtocol[]): STPCustomer; + static new(): STPConnectAccountAddress; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPCustomer; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static new(): STPCustomer; // inherited from NSObject + static rootObjectName(): string; - readonly defaultSource: STPSourceProtocol; + city: string; - readonly shippingAddress: STPAddress; + country: string; - readonly sources: NSArray; + line1: string; - readonly stripeID: string; + line2: string; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + postalCode: string; - readonly debugDescription: string; // inherited from NSObjectProtocol + state: string; - readonly description: string; // inherited from NSObjectProtocol + town: string; - readonly hash: number; // inherited from NSObjectProtocol + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - class(): typeof NSObject; + readonly isProxy: boolean; // inherited from NSObjectProtocol - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - isEqual(object: any): boolean; + readonly // inherited from NSObjectProtocol - isKindOfClass(aClass: typeof NSObject): boolean; + class(): typeof NSObject; - isMemberOfClass(aClass: typeof NSObject): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - performSelector(aSelector: string): any; + isEqual(object: any): boolean; - performSelectorWithObject(aSelector: string, object: any): any; + isKindOfClass(aClass: typeof NSObject): boolean; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + isMemberOfClass(aClass: typeof NSObject): boolean; - respondsToSelector(aSelector: string): boolean; + performSelector(aSelector: string): any; - retainCount(): number; + performSelectorWithObject(aSelector: string, object: any): any; - self(): this; -} + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; -declare class STPCustomerContext extends NSObject implements STPBackendAPIAdapter { + respondsToSelector(aSelector: string): boolean; - static alloc(): STPCustomerContext; // inherited from NSObject + retainCount(): number; + + self(): this; +} - static new(): STPCustomerContext; // inherited from NSObject +declare const enum STPConnectAccountBusinessType { - includeApplePayPaymentMethods: boolean; + Individual = 0, - readonly debugDescription: string; // inherited from NSObjectProtocol + Company = 1 +} - readonly description: string; // inherited from NSObjectProtocol +declare class STPConnectAccountCompanyParams extends NSObject implements STPFormEncodable { - readonly hash: number; // inherited from NSObjectProtocol + static alloc(): STPConnectAccountCompanyParams; // inherited from NSObject - readonly isProxy: boolean; // inherited from NSObjectProtocol + static new(): STPConnectAccountCompanyParams; // inherited from NSObject - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - readonly // inherited from NSObjectProtocol + static rootObjectName(): string; - constructor(o: { keyProvider: STPCustomerEphemeralKeyProvider; }); + address: STPConnectAccountAddress; - attachPaymentMethodToCustomerCompletion(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; + directorsProvided: number; - class(): typeof NSObject; + kanaAddress: STPConnectAccountAddress; - clearCache(): void; + kanaName: string; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + kanjiAddress: STPConnectAccountAddress; - detachPaymentMethodFromCustomerCompletion(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; + kanjiName: string; - initWithKeyProvider(keyProvider: STPCustomerEphemeralKeyProvider): this; + name: string; - isEqual(object: any): boolean; + ownersProvided: number; - isKindOfClass(aClass: typeof NSObject): boolean; + phone: string; - isMemberOfClass(aClass: typeof NSObject): boolean; + taxID: string; - listPaymentMethodsForCustomerWithCompletion(completion: (p1: NSArray, p2: NSError) => void): void; + taxIDRegistrar: string; - performSelector(aSelector: string): any; + vatID: string; - performSelectorWithObject(aSelector: string, object: any): any; + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly debugDescription: string; // inherited from NSObjectProtocol - respondsToSelector(aSelector: string): boolean; + readonly description: string; // inherited from NSObjectProtocol - retainCount(): number; + readonly hash: number; // inherited from NSObjectProtocol - retrieveCustomer(completion: (p1: STPCustomer, p2: NSError) => void): void; + readonly isProxy: boolean; // inherited from NSObjectProtocol - self(): this; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - updateCustomerWithShippingAddressCompletion(shipping: STPAddress, completion: (p1: NSError) => void): void; -} + readonly // inherited from NSObjectProtocol -declare class STPCustomerDeserializer extends NSObject { + class(): typeof NSObject; - static alloc(): STPCustomerDeserializer; // inherited from NSObject + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - static new(): STPCustomerDeserializer; // inherited from NSObject + isEqual(object: any): boolean; - readonly customer: STPCustomer; + isKindOfClass(aClass: typeof NSObject): boolean; - readonly error: NSError; + isMemberOfClass(aClass: typeof NSObject): boolean; - constructor(o: { data: NSData; urlResponse: NSURLResponse; error: NSError; }); + performSelector(aSelector: string): any; - constructor(o: { JSONResponse: any; }); + performSelectorWithObject(aSelector: string, object: any): any; - initWithDataUrlResponseError(data: NSData, urlResponse: NSURLResponse, error: NSError): this; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - initWithJSONResponse(json: any): this; -} + respondsToSelector(aSelector: string): boolean; -interface STPCustomerEphemeralKeyProvider extends NSObjectProtocol { + retainCount(): number; - createCustomerKeyWithAPIVersionCompletion(apiVersion: string, completion: (p1: NSDictionary, p2: NSError) => void): void; + self(): this; } -declare var STPCustomerEphemeralKeyProvider: { - prototype: STPCustomerEphemeralKeyProvider; -}; +declare class STPConnectAccountIndividualParams extends NSObject implements STPFormEncodable { -interface STPEphemeralKeyProvider extends STPCustomerEphemeralKeyProvider { -} -declare var STPEphemeralKeyProvider: { + static alloc(): STPConnectAccountIndividualParams; // inherited from NSObject - prototype: STPEphemeralKeyProvider; -}; + static new(): STPConnectAccountIndividualParams; // inherited from NSObject -declare const enum STPErrorCode { + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - ConnectionError = 40, + static rootObjectName(): string; - InvalidRequestError = 50, + address: STPConnectAccountAddress; - APIError = 60, + dateOfBirth: NSDateComponents; - CardError = 70, + email: string; - CancellationError = 80, + firstName: string; - EphemeralKeyDecodingError = 1000 -} + gender: string; -declare var STPErrorMessageKey: string; + idNumber: string; -declare var STPErrorParameterKey: string; + kanaAddress: STPConnectAccountAddress; -declare var STPExpiredCard: string; + kanaFirstName: string; -declare class STPFile extends NSObject implements STPAPIResponseDecodable { + kanaLastName: string; - static alloc(): STPFile; // inherited from NSObject + kanjiAddress: STPConnectAccountAddress; - static decodedObjectFromAPIResponse(response: NSDictionary): STPFile; + kanjiFirstName: string; - static new(): STPFile; // inherited from NSObject + kanjiLastName: string; - static stringFromPurpose(purpose: STPFilePurpose): string; + lastName: string; - readonly created: Date; + maidenName: string; - readonly fileId: string; + metadata: NSDictionary; - readonly purpose: STPFilePurpose; + phone: string; - readonly size: number; + ssnLast4: string; - readonly type: string; + verification: STPConnectAccountIndividualVerification; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } -declare const enum STPFilePurpose { - - IdentityDocument = 0, +declare class STPConnectAccountIndividualVerification extends NSObject implements STPFormEncodable { - DisputeEvidence = 1, + static alloc(): STPConnectAccountIndividualVerification; // inherited from NSObject - Unknown = 2 -} + static new(): STPConnectAccountIndividualVerification; // inherited from NSObject -interface STPFormEncodable extends NSObjectProtocol { + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - additionalAPIParameters: NSDictionary; -} -declare var STPFormEncodable: { + static rootObjectName(): string; - prototype: STPFormEncodable; + document: STPConnectAccountVerificationDocument; - propertyNamesToFormFieldNamesMapping(): NSDictionary; + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - rootObjectName(): string; -}; + readonly debugDescription: string; // inherited from NSObjectProtocol -declare class STPImageLibrary extends NSObject { + readonly description: string; // inherited from NSObjectProtocol - static alloc(): STPImageLibrary; // inherited from NSObject + readonly hash: number; // inherited from NSObjectProtocol - static amexCardImage(): UIImage; + readonly isProxy: boolean; // inherited from NSObjectProtocol - static applePayCardImage(): UIImage; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - static brandImageForCardBrand(brand: STPCardBrand): UIImage; + readonly // inherited from NSObjectProtocol - static cvcImageForCardBrand(brand: STPCardBrand): UIImage; + class(): typeof NSObject; - static dinersClubCardImage(): UIImage; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - static discoverCardImage(): UIImage; + isEqual(object: any): boolean; - static errorImageForCardBrand(brand: STPCardBrand): UIImage; + isKindOfClass(aClass: typeof NSObject): boolean; - static jcbCardImage(): UIImage; + isMemberOfClass(aClass: typeof NSObject): boolean; - static masterCardCardImage(): UIImage; + performSelector(aSelector: string): any; - static new(): STPImageLibrary; // inherited from NSObject + performSelectorWithObject(aSelector: string, object: any): any; - static templatedBrandImageForCardBrand(brand: STPCardBrand): UIImage; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - static unionPayCardImage(): UIImage; + respondsToSelector(aSelector: string): boolean; - static unknownCardCardImage(): UIImage; + retainCount(): number; - static visaCardImage(): UIImage; + self(): this; } -declare var STPIncorrectCVC: string; - -declare var STPIncorrectNumber: string; +declare class STPConnectAccountParams extends NSObject implements STPFormEncodable { -declare class STPIntentAction extends NSObject implements STPAPIResponseDecodable { + static alloc(): STPConnectAccountParams; // inherited from NSObject - static alloc(): STPIntentAction; // inherited from NSObject + static new(): STPConnectAccountParams; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPIntentAction; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static new(): STPIntentAction; // inherited from NSObject + static rootObjectName(): string; - readonly authorizeWithURL: STPIntentActionRedirectToURL; + readonly businessType: STPConnectAccountBusinessType; - readonly redirectToURL: STPIntentActionRedirectToURL; + readonly company: STPConnectAccountCompanyParams; - readonly type: STPIntentActionType; + readonly individual: STPConnectAccountIndividualParams; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly tosShownAndAccepted: number; - readonly debugDescription: string; // inherited from NSObjectProtocol + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - readonly description: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - class(): typeof NSObject; + readonly // inherited from NSObjectProtocol - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + constructor(o: { company: STPConnectAccountCompanyParams; }); - isEqual(object: any): boolean; + constructor(o: { individual: STPConnectAccountIndividualParams; }); - isKindOfClass(aClass: typeof NSObject): boolean; + constructor(o: { tosShownAndAccepted: boolean; company: STPConnectAccountCompanyParams; }); - isMemberOfClass(aClass: typeof NSObject): boolean; + constructor(o: { tosShownAndAccepted: boolean; individual: STPConnectAccountIndividualParams; }); - performSelector(aSelector: string): any; + class(): typeof NSObject; - performSelectorWithObject(aSelector: string, object: any): any; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + initWithCompany(company: STPConnectAccountCompanyParams): this; - respondsToSelector(aSelector: string): boolean; + initWithIndividual(individual: STPConnectAccountIndividualParams): this; - retainCount(): number; + initWithTosShownAndAcceptedCompany(wasAccepted: boolean, company: STPConnectAccountCompanyParams): this; - self(): this; -} + initWithTosShownAndAcceptedIndividual(wasAccepted: boolean, individual: STPConnectAccountIndividualParams): this; -declare class STPIntentActionRedirectToURL extends NSObject implements STPAPIResponseDecodable { + isEqual(object: any): boolean; - static alloc(): STPIntentActionRedirectToURL; // inherited from NSObject + isKindOfClass(aClass: typeof NSObject): boolean; - static decodedObjectFromAPIResponse(response: NSDictionary): STPIntentActionRedirectToURL; + isMemberOfClass(aClass: typeof NSObject): boolean; - static new(): STPIntentActionRedirectToURL; // inherited from NSObject + performSelector(aSelector: string): any; - readonly returnURL: NSURL; + performSelectorWithObject(aSelector: string, object: any): any; - readonly url: NSURL; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + respondsToSelector(aSelector: string): boolean; - readonly debugDescription: string; // inherited from NSObjectProtocol + retainCount(): number; - readonly description: string; // inherited from NSObjectProtocol + self(): this; +} - readonly hash: number; // inherited from NSObjectProtocol +declare class STPConnectAccountVerificationDocument extends NSObject implements STPFormEncodable { - readonly isProxy: boolean; // inherited from NSObjectProtocol + static alloc(): STPConnectAccountVerificationDocument; // inherited from NSObject - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + static new(): STPConnectAccountVerificationDocument; // inherited from NSObject - readonly // inherited from NSObjectProtocol + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - class(): typeof NSObject; + static rootObjectName(): string; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + back: string; - isEqual(object: any): boolean; + front: string; - isKindOfClass(aClass: typeof NSObject): boolean; + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - isMemberOfClass(aClass: typeof NSObject): boolean; + readonly debugDescription: string; // inherited from NSObjectProtocol - performSelector(aSelector: string): any; + readonly description: string; // inherited from NSObjectProtocol - performSelectorWithObject(aSelector: string, object: any): any; + readonly hash: number; // inherited from NSObjectProtocol - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly isProxy: boolean; // inherited from NSObjectProtocol - respondsToSelector(aSelector: string): boolean; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - retainCount(): number; + readonly // inherited from NSObjectProtocol - self(): this; -} + class(): typeof NSObject; -declare const enum STPIntentActionType { + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - Unknown = 0, + isEqual(object: any): boolean; - RedirectToURL = 1, + isKindOfClass(aClass: typeof NSObject): boolean; - UseStripeSDK = 2 -} + isMemberOfClass(aClass: typeof NSObject): boolean; -declare var STPInvalidCVC: string; + performSelector(aSelector: string): any; -declare var STPInvalidExpMonth: string; + performSelectorWithObject(aSelector: string, object: any): any; -declare var STPInvalidExpYear: string; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; -declare var STPInvalidNumber: string; + respondsToSelector(aSelector: string): boolean; -interface STPIssuingCardEphemeralKeyProvider extends NSObjectProtocol { + retainCount(): number; - createIssuingCardKeyWithAPIVersionCompletion(apiVersion: string, completion: (p1: NSDictionary, p2: NSError) => void): void; + self(): this; } -declare var STPIssuingCardEphemeralKeyProvider: { - prototype: STPIssuingCardEphemeralKeyProvider; -}; +declare var STPContactFieldEmailAddress: string; -declare class STPIssuingCardPin extends NSObject implements STPAPIResponseDecodable { +declare var STPContactFieldName: string; - static alloc(): STPIssuingCardPin; // inherited from NSObject +declare var STPContactFieldPhoneNumber: string; - static decodedObjectFromAPIResponse(response: NSDictionary): STPIssuingCardPin; +declare var STPContactFieldPostalAddress: string; - static new(): STPIssuingCardPin; // inherited from NSObject +declare class STPCoreScrollViewController extends STPCoreViewController { - readonly error: NSDictionary; + static alloc(): STPCoreScrollViewController; // inherited from NSObject - readonly pin: string; + static new(): STPCoreScrollViewController; // inherited from NSObject +} - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable +declare class STPCoreTableViewController extends STPCoreScrollViewController { - readonly debugDescription: string; // inherited from NSObjectProtocol + static alloc(): STPCoreTableViewController; // inherited from NSObject - readonly description: string; // inherited from NSObjectProtocol + static new(): STPCoreTableViewController; // inherited from NSObject +} - readonly hash: number; // inherited from NSObjectProtocol +declare class STPCoreViewController extends UIViewController { - readonly isProxy: boolean; // inherited from NSObjectProtocol + static alloc(): STPCoreViewController; // inherited from NSObject - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + static new(): STPCoreViewController; // inherited from NSObject - readonly // inherited from NSObjectProtocol + constructor(o: { theme: STPTheme; }); - class(): typeof NSObject; + initWithTheme(theme: STPTheme): this; +} - conformsToProtocol(aProtocol: any /* Protocol */): boolean; +declare class STPCustomer extends NSObject implements STPAPIResponseDecodable { - isEqual(object: any): boolean; + static alloc(): STPCustomer; // inherited from NSObject - isKindOfClass(aClass: typeof NSObject): boolean; + static customerWithStripeIDDefaultSourceSources(stripeID: string, defaultSource: STPSourceProtocol, sources: NSArray | STPSourceProtocol[]): STPCustomer; - isMemberOfClass(aClass: typeof NSObject): boolean; + static decodedObjectFromAPIResponse(response: NSDictionary): STPCustomer; - performSelector(aSelector: string): any; + static new(): STPCustomer; // inherited from NSObject - performSelectorWithObject(aSelector: string, object: any): any; + readonly defaultSource: STPSourceProtocol; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly shippingAddress: STPAddress; - respondsToSelector(aSelector: string): boolean; + readonly sources: NSArray; - retainCount(): number; + readonly stripeID: string; - self(): this; -} + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable -declare class STPLegalEntityParams extends STPPersonParams { + readonly debugDescription: string; // inherited from NSObjectProtocol - static alloc(): STPLegalEntityParams; // inherited from NSObject + readonly description: string; // inherited from NSObjectProtocol - static new(): STPLegalEntityParams; // inherited from NSObject + readonly hash: number; // inherited from NSObjectProtocol - additionalOwners: NSArray; + readonly isProxy: boolean; // inherited from NSObjectProtocol - businessName: string; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - businessTaxId: string; + readonly // inherited from NSObjectProtocol - businessVATId: string; + class(): typeof NSObject; - entityTypeString: string; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - genderString: string; + isEqual(object: any): boolean; - personalAddress: STPAddress; + isKindOfClass(aClass: typeof NSObject): boolean; - personalIdNumber: string; + isMemberOfClass(aClass: typeof NSObject): boolean; - phoneNumber: string; + performSelector(aSelector: string): any; - ssnLast4: string; + performSelectorWithObject(aSelector: string, object: any): any; - taxIdRegistrar: string; -} + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; -declare class STPPaymentActivityIndicatorView extends UIView { + respondsToSelector(aSelector: string): boolean; - static alloc(): STPPaymentActivityIndicatorView; // inherited from NSObject + retainCount(): number; - static appearance(): STPPaymentActivityIndicatorView; // inherited from UIAppearance + self(): this; +} - static appearanceForTraitCollection(trait: UITraitCollection): STPPaymentActivityIndicatorView; // inherited from UIAppearance +declare class STPCustomerContext extends NSObject implements STPBackendAPIAdapter { - static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): STPPaymentActivityIndicatorView; // inherited from UIAppearance + static alloc(): STPCustomerContext; // inherited from NSObject - static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): STPPaymentActivityIndicatorView; // inherited from UIAppearance + static new(): STPCustomerContext; // inherited from NSObject - static appearanceWhenContainedIn(ContainerClass: typeof NSObject): STPPaymentActivityIndicatorView; // inherited from UIAppearance + includeApplePayPaymentMethods: boolean; - static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): STPPaymentActivityIndicatorView; // inherited from UIAppearance + readonly debugDescription: string; // inherited from NSObjectProtocol - static new(): STPPaymentActivityIndicatorView; // inherited from NSObject + readonly description: string; // inherited from NSObjectProtocol - animating: boolean; + readonly hash: number; // inherited from NSObjectProtocol - hidesWhenStopped: boolean; + readonly isProxy: boolean; // inherited from NSObjectProtocol - setAnimatingAnimated(animating: boolean, animated: boolean): void; -} + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol -declare class STPPaymentCardTextField extends UIControl implements UIKeyInput { + readonly // inherited from NSObjectProtocol - static alloc(): STPPaymentCardTextField; // inherited from NSObject + constructor(o: { keyProvider: STPCustomerEphemeralKeyProvider; }); - static appearance(): STPPaymentCardTextField; // inherited from UIAppearance + constructor(o: { keyProvider: STPCustomerEphemeralKeyProvider; apiClient: STPAPIClient; }); - static appearanceForTraitCollection(trait: UITraitCollection): STPPaymentCardTextField; // inherited from UIAppearance + attachPaymentMethodToCustomerCompletion(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; - static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): STPPaymentCardTextField; // inherited from UIAppearance + class(): typeof NSObject; - static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): STPPaymentCardTextField; // inherited from UIAppearance + clearCache(): void; - static appearanceWhenContainedIn(ContainerClass: typeof NSObject): STPPaymentCardTextField; // inherited from UIAppearance + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): STPPaymentCardTextField; // inherited from UIAppearance + detachPaymentMethodFromCustomerCompletion(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; - static brandImageForCardBrand(cardBrand: STPCardBrand): UIImage; + initWithKeyProvider(keyProvider: STPCustomerEphemeralKeyProvider): this; - static cvcImageForCardBrand(cardBrand: STPCardBrand): UIImage; + initWithKeyProviderApiClient(keyProvider: STPCustomerEphemeralKeyProvider, apiClient: STPAPIClient): this; - static errorImageForCardBrand(cardBrand: STPCardBrand): UIImage; + isEqual(object: any): boolean; - static new(): STPPaymentCardTextField; // inherited from NSObject + isKindOfClass(aClass: typeof NSObject): boolean; - borderColor: UIColor; + isMemberOfClass(aClass: typeof NSObject): boolean; - borderWidth: number; + listPaymentMethodsForCustomerWithCompletion(completion: (p1: NSArray, p2: NSError) => void): void; - readonly brandImage: UIImage; + performSelector(aSelector: string): any; - readonly cardNumber: string; + performSelectorWithObject(aSelector: string, object: any): any; - cardParams: STPPaymentMethodCardParams; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - cornerRadius: number; + respondsToSelector(aSelector: string): boolean; - countryCode: string; + retainCount(): number; - cursorColor: UIColor; + retrieveCustomer(completion: (p1: STPCustomer, p2: NSError) => void): void; - readonly cvc: string; + self(): this; - cvcPlaceholder: string; + updateCustomerWithShippingAddressCompletion(shipping: STPAddress, completion: (p1: NSError) => void): void; +} - delegate: STPPaymentCardTextFieldDelegate; +declare class STPCustomerDeserializer extends NSObject { - readonly expirationMonth: number; + static alloc(): STPCustomerDeserializer; // inherited from NSObject - expirationPlaceholder: string; + static new(): STPCustomerDeserializer; // inherited from NSObject - readonly expirationYear: number; + readonly customer: STPCustomer; - font: UIFont; + readonly error: NSError; - readonly formattedExpirationMonth: string; + constructor(o: { data: NSData; urlResponse: NSURLResponse; error: NSError; }); - readonly formattedExpirationYear: string; + constructor(o: { JSONResponse: any; }); - inputAccessoryView: UIView; + initWithDataUrlResponseError(data: NSData, urlResponse: NSURLResponse, error: NSError): this; - inputView: UIView; + initWithJSONResponse(json: any): this; +} - readonly isValid: boolean; +interface STPCustomerEphemeralKeyProvider extends NSObjectProtocol { - numberPlaceholder: string; + createCustomerKeyWithAPIVersionCompletion(apiVersion: string, completion: (p1: NSDictionary, p2: NSError) => void): void; +} +declare var STPCustomerEphemeralKeyProvider: { - placeholderColor: UIColor; + prototype: STPCustomerEphemeralKeyProvider; +}; - readonly postalCode: string; +declare class STPDateOfBirth extends NSObject implements STPFormEncodable { - postalCodeEntryEnabled: boolean; + static alloc(): STPDateOfBirth; // inherited from NSObject - postalCodePlaceholder: string; + static new(): STPDateOfBirth; // inherited from NSObject - textColor: UIColor; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - textErrorColor: UIColor; + static rootObjectName(): string; - autocapitalizationType: UITextAutocapitalizationType; // inherited from UITextInputTraits + day: number; - autocorrectionType: UITextAutocorrectionType; // inherited from UITextInputTraits + month: number; - readonly debugDescription: string; // inherited from NSObjectProtocol + year: number; - readonly description: string; // inherited from NSObjectProtocol + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - enablesReturnKeyAutomatically: boolean; // inherited from UITextInputTraits + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly hasText: boolean; // inherited from UIKeyInput + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - keyboardAppearance: UIKeyboardAppearance; // inherited from UITextInputTraits + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - keyboardType: UIKeyboardType; // inherited from UITextInputTraits + readonly // inherited from NSObjectProtocol - passwordRules: UITextInputPasswordRules; // inherited from UITextInputTraits + class(): typeof NSObject; - returnKeyType: UIReturnKeyType; // inherited from UITextInputTraits + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - secureTextEntry: boolean; // inherited from UITextInputTraits + isEqual(object: any): boolean; - smartDashesType: UITextSmartDashesType; // inherited from UITextInputTraits + isKindOfClass(aClass: typeof NSObject): boolean; - smartInsertDeleteType: UITextSmartInsertDeleteType; // inherited from UITextInputTraits + isMemberOfClass(aClass: typeof NSObject): boolean; - smartQuotesType: UITextSmartQuotesType; // inherited from UITextInputTraits + performSelector(aSelector: string): any; - spellCheckingType: UITextSpellCheckingType; // inherited from UITextInputTraits + performSelectorWithObject(aSelector: string, object: any): any; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - textContentType: string; // inherited from UITextInputTraits + respondsToSelector(aSelector: string): boolean; - readonly // inherited from NSObjectProtocol + retainCount(): number; - brandImageRectForBounds(bounds: CGRect): CGRect; + self(): this; +} - class(): typeof NSObject; +interface STPEphemeralKeyProvider extends STPCustomerEphemeralKeyProvider { +} +declare var STPEphemeralKeyProvider: { - clear(): void; + prototype: STPEphemeralKeyProvider; +}; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; +declare const enum STPErrorCode { - deleteBackward(): void; + ConnectionError = 40, - fieldsRectForBounds(bounds: CGRect): CGRect; + InvalidRequestError = 50, - insertText(text: string): void; + APIError = 60, - isEqual(object: any): boolean; + CardError = 70, - isKindOfClass(aClass: typeof NSObject): boolean; + CancellationError = 80, - isMemberOfClass(aClass: typeof NSObject): boolean; + EphemeralKeyDecodingError = 1000 +} - performSelector(aSelector: string): any; +declare var STPErrorMessageKey: string; - performSelectorWithObject(aSelector: string, object: any): any; +declare var STPErrorParameterKey: string; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; +declare var STPExpiredCard: string; - respondsToSelector(aSelector: string): boolean; +declare const enum STPFPXBankBrand { - retainCount(): number; + Maybank2U = 0, - self(): this; -} + CIMB = 1, -interface STPPaymentCardTextFieldDelegate extends NSObjectProtocol { + PublicBank = 2, - paymentCardTextFieldDidBeginEditing?(textField: STPPaymentCardTextField): void; + RHB = 3, - paymentCardTextFieldDidBeginEditingCVC?(textField: STPPaymentCardTextField): void; + HongLeongBank = 4, - paymentCardTextFieldDidBeginEditingExpiration?(textField: STPPaymentCardTextField): void; + Ambank = 5, - paymentCardTextFieldDidBeginEditingNumber?(textField: STPPaymentCardTextField): void; + AffinBank = 6, - paymentCardTextFieldDidBeginEditingPostalCode?(textField: STPPaymentCardTextField): void; + AllianceBank = 7, - paymentCardTextFieldDidChange?(textField: STPPaymentCardTextField): void; + BankIslam = 8, - paymentCardTextFieldDidEndEditing?(textField: STPPaymentCardTextField): void; + BankMuamalat = 9, - paymentCardTextFieldDidEndEditingCVC?(textField: STPPaymentCardTextField): void; + BankRakyat = 10, - paymentCardTextFieldDidEndEditingExpiration?(textField: STPPaymentCardTextField): void; + BSN = 11, - paymentCardTextFieldDidEndEditingNumber?(textField: STPPaymentCardTextField): void; + HSBC = 12, - paymentCardTextFieldDidEndEditingPostalCode?(textField: STPPaymentCardTextField): void; + KFH = 13, - paymentCardTextFieldWillEndEditingForReturn?(textField: STPPaymentCardTextField): void; -} -declare var STPPaymentCardTextFieldDelegate: { + Maybank2E = 14, - prototype: STPPaymentCardTextFieldDelegate; -}; + Ocbc = 15, -declare class STPPaymentConfiguration extends NSObject implements NSCopying { + StandardChartered = 16, - static alloc(): STPPaymentConfiguration; // inherited from NSObject + UOB = 17, - static new(): STPPaymentConfiguration; // inherited from NSObject + Unknown = 18 +} - static sharedConfiguration(): STPPaymentConfiguration; +declare function STPFPXBankBrandFromIdentifier(identifier: string): STPFPXBankBrand; - additionalPaymentOptions: STPPaymentOptionType; +declare class STPFakeAddPaymentPassViewController extends UIViewController { - appleMerchantIdentifier: string; + static alloc(): STPFakeAddPaymentPassViewController; // inherited from NSObject - canDeletePaymentOptions: boolean; + static canAddPaymentPass(): boolean; - companyName: string; + static new(): STPFakeAddPaymentPassViewController; // inherited from NSObject - publishableKey: string; + delegate: PKAddPaymentPassViewControllerDelegate; - requiredBillingAddressFields: STPBillingAddressFields; + constructor(o: { requestConfiguration: PKAddPaymentPassRequestConfiguration; delegate: PKAddPaymentPassViewControllerDelegate; }); - requiredShippingAddressFields: NSSet; + initWithRequestConfigurationDelegate(configuration: PKAddPaymentPassRequestConfiguration, delegate: PKAddPaymentPassViewControllerDelegate): this; +} - shippingType: STPShippingType; +declare class STPFile extends NSObject implements STPAPIResponseDecodable { - stripeAccount: string; + static alloc(): STPFile; // inherited from NSObject - verifyPrefilledShippingAddress: boolean; + static decodedObjectFromAPIResponse(response: NSDictionary): STPFile; - copyWithZone(zone: interop.Pointer | interop.Reference): any; -} + static new(): STPFile; // inherited from NSObject -declare class STPPaymentContext extends NSObject implements STPAuthenticationContext { + static stringFromPurpose(purpose: STPFilePurpose): string; - static alloc(): STPPaymentContext; // inherited from NSObject + readonly created: Date; - static new(): STPPaymentContext; // inherited from NSObject + readonly fileId: string; - addCardViewControllerFooterView: UIView; + readonly purpose: STPFilePurpose; - readonly apiAdapter: STPBackendAPIAdapter; + readonly size: number; - readonly configuration: STPPaymentConfiguration; + readonly type: string; - defaultPaymentMethod: string; + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - delegate: STPPaymentContextDelegate; + readonly debugDescription: string; // inherited from NSObjectProtocol - hostViewController: UIViewController; + readonly description: string; // inherited from NSObjectProtocol - largeTitleDisplayMode: UINavigationItemLargeTitleDisplayMode; + readonly hash: number; // inherited from NSObjectProtocol - readonly loading: boolean; + readonly isProxy: boolean; // inherited from NSObjectProtocol - modalPresentationStyle: UIModalPresentationStyle; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - paymentAmount: number; + readonly // inherited from NSObjectProtocol - paymentCountry: string; + class(): typeof NSObject; - paymentCurrency: string; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - readonly paymentOptions: NSArray; + isEqual(object: any): boolean; - paymentOptionsViewControllerFooterView: UIView; + isKindOfClass(aClass: typeof NSObject): boolean; - paymentSummaryItems: NSArray; + isMemberOfClass(aClass: typeof NSObject): boolean; - prefilledInformation: STPUserInformation; + performSelector(aSelector: string): any; - readonly selectedPaymentOption: STPPaymentOption; + performSelectorWithObject(aSelector: string, object: any): any; - readonly selectedShippingMethod: PKShippingMethod; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - readonly shippingAddress: STPAddress; + respondsToSelector(aSelector: string): boolean; - readonly shippingMethods: NSArray; + retainCount(): number; - readonly theme: STPTheme; + self(): this; +} - readonly debugDescription: string; // inherited from NSObjectProtocol +declare const enum STPFilePurpose { - readonly description: string; // inherited from NSObjectProtocol + IdentityDocument = 0, - readonly hash: number; // inherited from NSObjectProtocol + DisputeEvidence = 1, - readonly isProxy: boolean; // inherited from NSObjectProtocol + Unknown = 2 +} - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol +interface STPFormEncodable extends NSObjectProtocol { - readonly // inherited from NSObjectProtocol + additionalAPIParameters: NSDictionary; +} +declare var STPFormEncodable: { - constructor(o: { APIAdapter: STPBackendAPIAdapter; }); + prototype: STPFormEncodable; - constructor(o: { APIAdapter: STPBackendAPIAdapter; configuration: STPPaymentConfiguration; theme: STPTheme; }); + propertyNamesToFormFieldNamesMapping(): NSDictionary; - constructor(o: { customerContext: STPCustomerContext; }); + rootObjectName(): string; +}; - constructor(o: { customerContext: STPCustomerContext; configuration: STPPaymentConfiguration; theme: STPTheme; }); +declare function STPIdentifierFromFPXBankBrand(brand: STPFPXBankBrand): string; - authenticationPresentingViewController(): UIViewController; +declare class STPImageLibrary extends NSObject { - class(): typeof NSObject; + static alloc(): STPImageLibrary; // inherited from NSObject - configureSafariViewController(viewController: SFSafariViewController): void; + static amexCardImage(): UIImage; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + static applePayCardImage(): UIImage; - initWithAPIAdapter(apiAdapter: STPBackendAPIAdapter): this; + static brandImageForCardBrand(brand: STPCardBrand): UIImage; - initWithAPIAdapterConfigurationTheme(apiAdapter: STPBackendAPIAdapter, configuration: STPPaymentConfiguration, theme: STPTheme): this; + static brandImageForFPXBankBrand(brand: STPFPXBankBrand): UIImage; - initWithCustomerContext(customerContext: STPCustomerContext): this; + static cvcImageForCardBrand(brand: STPCardBrand): UIImage; - initWithCustomerContextConfigurationTheme(customerContext: STPCustomerContext, configuration: STPPaymentConfiguration, theme: STPTheme): this; + static dinersClubCardImage(): UIImage; - isEqual(object: any): boolean; + static discoverCardImage(): UIImage; - isKindOfClass(aClass: typeof NSObject): boolean; + static errorImageForCardBrand(brand: STPCardBrand): UIImage; - isMemberOfClass(aClass: typeof NSObject): boolean; + static fpxLogo(): UIImage; - performSelector(aSelector: string): any; + static jcbCardImage(): UIImage; - performSelectorWithObject(aSelector: string, object: any): any; + static largeFpxLogo(): UIImage; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + static masterCardCardImage(): UIImage; - prepareAuthenticationContextForPresentation(completion: () => void): void; + static new(): STPImageLibrary; // inherited from NSObject - presentPaymentOptionsViewController(): void; + static templatedBrandImageForCardBrand(brand: STPCardBrand): UIImage; - presentShippingViewController(): void; + static unionPayCardImage(): UIImage; - pushPaymentOptionsViewController(): void; + static unknownCardCardImage(): UIImage; - pushShippingViewController(): void; + static visaCardImage(): UIImage; +} - requestPayment(): void; +declare var STPIncorrectCVC: string; - respondsToSelector(aSelector: string): boolean; +declare var STPIncorrectNumber: string; - retainCount(): number; +declare var STPIncorrectZip: string; - retryLoading(): void; +declare class STPIntentAction extends NSObject implements STPAPIResponseDecodable { - self(): this; -} + static alloc(): STPIntentAction; // inherited from NSObject -interface STPPaymentContextDelegate extends NSObjectProtocol { + static decodedObjectFromAPIResponse(response: NSDictionary): STPIntentAction; - paymentContextDidChange(paymentContext: STPPaymentContext): void; + static new(): STPIntentAction; // inherited from NSObject - paymentContextDidCreatePaymentResultCompletion(paymentContext: STPPaymentContext, paymentResult: STPPaymentResult, completion: (p1: NSError) => void): void; + readonly authorizeWithURL: STPIntentActionRedirectToURL; - paymentContextDidFailToLoadWithError(paymentContext: STPPaymentContext, error: NSError): void; + readonly redirectToURL: STPIntentActionRedirectToURL; - paymentContextDidFinishWithStatusError(paymentContext: STPPaymentContext, status: STPPaymentStatus, error: NSError): void; + readonly type: STPIntentActionType; - paymentContextDidUpdateShippingAddressCompletion?(paymentContext: STPPaymentContext, address: STPAddress, completion: (p1: STPShippingStatus, p2: NSError, p3: NSArray, p4: PKShippingMethod) => void): void; -} -declare var STPPaymentContextDelegate: { + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - prototype: STPPaymentContextDelegate; -}; + readonly debugDescription: string; // inherited from NSObjectProtocol -declare class STPPaymentHandler extends NSObject { + readonly description: string; // inherited from NSObjectProtocol - static alloc(): STPPaymentHandler; // inherited from NSObject + readonly hash: number; // inherited from NSObjectProtocol - static new(): STPPaymentHandler; // inherited from NSObject + readonly isProxy: boolean; // inherited from NSObjectProtocol - static sharedHandler(): STPPaymentHandler; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - apiClient: STPAPIClient; + readonly // inherited from NSObjectProtocol - threeDSCustomizationSettings: STPThreeDSCustomizationSettings; + class(): typeof NSObject; - confirmPaymentWithAuthenticationContextCompletion(paymentParams: STPPaymentIntentParams, authenticationContext: STPAuthenticationContext, completion: (p1: STPPaymentHandlerActionStatus, p2: STPPaymentIntent, p3: NSError) => void): void; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - confirmSetupIntentWithAuthenticationContextCompletion(setupIntentConfirmParams: STPSetupIntentConfirmParams, authenticationContext: STPAuthenticationContext, completion: (p1: STPPaymentHandlerActionStatus, p2: STPSetupIntent, p3: NSError) => void): void; + isEqual(object: any): boolean; - handleNextActionForPaymentWithAuthenticationContextReturnURLCompletion(paymentIntentClientSecret: string, authenticationContext: STPAuthenticationContext, returnURL: string, completion: (p1: STPPaymentHandlerActionStatus, p2: STPPaymentIntent, p3: NSError) => void): void; + isKindOfClass(aClass: typeof NSObject): boolean; - handleNextActionForSetupIntentWithAuthenticationContextReturnURLCompletion(setupIntentClientSecret: string, authenticationContext: STPAuthenticationContext, returnURL: string, completion: (p1: STPPaymentHandlerActionStatus, p2: STPSetupIntent, p3: NSError) => void): void; -} + isMemberOfClass(aClass: typeof NSObject): boolean; -declare const enum STPPaymentHandlerActionStatus { + performSelector(aSelector: string): any; - Succeeded = 0, + performSelectorWithObject(aSelector: string, object: any): any; - Canceled = 1, + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - Failed = 2 -} + respondsToSelector(aSelector: string): boolean; -declare const enum STPPaymentHandlerErrorCode { + retainCount(): number; - UnsupportedAuthenticationErrorCode = 0, + self(): this; +} - RequiresPaymentMethodErrorCode = 1, +declare class STPIntentActionRedirectToURL extends NSObject implements STPAPIResponseDecodable { - IntentStatusErrorCode = 2, + static alloc(): STPIntentActionRedirectToURL; // inherited from NSObject - TimedOutErrorCode = 3, + static decodedObjectFromAPIResponse(response: NSDictionary): STPIntentActionRedirectToURL; - Stripe3DS2ErrorCode = 4, + static new(): STPIntentActionRedirectToURL; // inherited from NSObject - NotAuthenticatedErrorCode = 5, + readonly returnURL: NSURL; - NoConcurrentActionsErrorCode = 6, + readonly url: NSURL; - RequiresAuthenticationContextErrorCode = 7 -} + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable -declare var STPPaymentHandlerErrorDomain: string; + readonly debugDescription: string; // inherited from NSObjectProtocol -declare class STPPaymentIntent extends NSObject implements STPAPIResponseDecodable { + readonly description: string; // inherited from NSObjectProtocol - static alloc(): STPPaymentIntent; // inherited from NSObject + readonly hash: number; // inherited from NSObjectProtocol - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentIntent; + readonly isProxy: boolean; // inherited from NSObjectProtocol - static new(): STPPaymentIntent; // inherited from NSObject + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly amount: number; + readonly // inherited from NSObjectProtocol - readonly canceledAt: Date; + class(): typeof NSObject; - readonly captureMethod: STPPaymentIntentCaptureMethod; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - readonly clientSecret: string; + isEqual(object: any): boolean; - readonly confirmationMethod: STPPaymentIntentConfirmationMethod; + isKindOfClass(aClass: typeof NSObject): boolean; - readonly created: Date; + isMemberOfClass(aClass: typeof NSObject): boolean; - readonly currency: string; + performSelector(aSelector: string): any; - readonly livemode: boolean; + performSelectorWithObject(aSelector: string, object: any): any; - readonly nextAction: STPIntentAction; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - readonly nextSourceAction: STPIntentAction; + respondsToSelector(aSelector: string): boolean; - readonly paymentMethodId: string; + retainCount(): number; - readonly paymentMethodTypes: NSArray; + self(): this; +} - readonly receiptEmail: string; +declare const enum STPIntentActionType { - readonly setupFutureUsage: STPPaymentIntentSetupFutureUsage; + Unknown = 0, - readonly sourceId: string; + RedirectToURL = 1, - readonly status: STPPaymentIntentStatus; + UseStripeSDK = 2 +} - readonly stripeDescription: string; +declare var STPInvalidCVC: string; - readonly stripeId: string; +declare var STPInvalidExpMonth: string; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable +declare var STPInvalidExpYear: string; - readonly debugDescription: string; // inherited from NSObjectProtocol +declare var STPInvalidNumber: string; - readonly description: string; // inherited from NSObjectProtocol +interface STPIssuingCardEphemeralKeyProvider extends NSObjectProtocol { - readonly hash: number; // inherited from NSObjectProtocol + createIssuingCardKeyWithAPIVersionCompletion(apiVersion: string, completion: (p1: NSDictionary, p2: NSError) => void): void; +} +declare var STPIssuingCardEphemeralKeyProvider: { - readonly isProxy: boolean; // inherited from NSObjectProtocol + prototype: STPIssuingCardEphemeralKeyProvider; +}; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol +declare class STPIssuingCardPin extends NSObject implements STPAPIResponseDecodable { - readonly // inherited from NSObjectProtocol + static alloc(): STPIssuingCardPin; // inherited from NSObject - class(): typeof NSObject; + static decodedObjectFromAPIResponse(response: NSDictionary): STPIssuingCardPin; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + static new(): STPIssuingCardPin; // inherited from NSObject - isEqual(object: any): boolean; + readonly error: NSDictionary; - isKindOfClass(aClass: typeof NSObject): boolean; + readonly pin: string; - isMemberOfClass(aClass: typeof NSObject): boolean; + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - performSelector(aSelector: string): any; + readonly debugDescription: string; // inherited from NSObjectProtocol - performSelectorWithObject(aSelector: string, object: any): any; + readonly description: string; // inherited from NSObjectProtocol - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly hash: number; // inherited from NSObjectProtocol - respondsToSelector(aSelector: string): boolean; + readonly isProxy: boolean; // inherited from NSObjectProtocol - retainCount(): number; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - self(): this; -} + readonly // inherited from NSObjectProtocol -declare const enum STPPaymentIntentActionType { + class(): typeof NSObject; - Unknown = 0, + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - RedirectToURL = 1 -} + isEqual(object: any): boolean; -declare const enum STPPaymentIntentCaptureMethod { + isKindOfClass(aClass: typeof NSObject): boolean; - Unknown = 0, + isMemberOfClass(aClass: typeof NSObject): boolean; - Automatic = 1, + performSelector(aSelector: string): any; - Manual = 2 -} + performSelectorWithObject(aSelector: string, object: any): any; -declare const enum STPPaymentIntentConfirmationMethod { + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - Unknown = 0, + respondsToSelector(aSelector: string): boolean; - Publishable = 1, + retainCount(): number; - Secret = 2 + self(): this; } -declare class STPPaymentIntentParams extends NSObject implements NSCopying, STPFormEncodable { +declare class STPKlarnaLineItem extends NSObject { - static alloc(): STPPaymentIntentParams; // inherited from NSObject + static alloc(): STPKlarnaLineItem; // inherited from NSObject - static new(): STPPaymentIntentParams; // inherited from NSObject + static new(): STPKlarnaLineItem; // inherited from NSObject - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + itemDescription: string; - static rootObjectName(): string; + itemType: STPKlarnaLineItemType; - clientSecret: string; + quantity: number; - paymentMethodId: string; + totalAmount: number; - paymentMethodParams: STPPaymentMethodParams; + constructor(o: { itemType: STPKlarnaLineItemType; itemDescription: string; quantity: number; totalAmount: number; }); - receiptEmail: string; + initWithItemTypeItemDescriptionQuantityTotalAmount(itemType: STPKlarnaLineItemType, itemDescription: string, quantity: number, totalAmount: number): this; +} - returnURL: string; +declare const enum STPKlarnaLineItemType { - returnUrl: string; + SKU = 0, - savePaymentMethod: number; + Tax = 1, - saveSourceToCustomer: number; + Shipping = 2 +} - setupFutureUsage: number; +declare const enum STPKlarnaPaymentMethods { - sourceId: string; + None = 0, - sourceParams: STPSourceParams; + PayIn4 = 1, - readonly stripeId: string; + Installments = 2 +} - useStripeSDK: number; +declare class STPMandateCustomerAcceptanceParams extends NSObject implements STPFormEncodable { - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + static alloc(): STPMandateCustomerAcceptanceParams; // inherited from NSObject - readonly debugDescription: string; // inherited from NSObjectProtocol + static new(): STPMandateCustomerAcceptanceParams; // inherited from NSObject - readonly description: string; // inherited from NSObjectProtocol + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - readonly hash: number; // inherited from NSObjectProtocol + static rootObjectName(): string; - readonly isProxy: boolean; // inherited from NSObjectProtocol + onlineParams: STPMandateOnlineParams; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + type: STPMandateCustomerAcceptanceType; - readonly // inherited from NSObjectProtocol + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - constructor(o: { clientSecret: string; }); + readonly debugDescription: string; // inherited from NSObjectProtocol - class(): typeof NSObject; + readonly description: string; // inherited from NSObjectProtocol - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + readonly hash: number; // inherited from NSObjectProtocol - copyWithZone(zone: interop.Pointer | interop.Reference): any; + readonly isProxy: boolean; // inherited from NSObjectProtocol - initWithClientSecret(clientSecret: string): this; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - isEqual(object: any): boolean; + readonly // inherited from NSObjectProtocol - isKindOfClass(aClass: typeof NSObject): boolean; + class(): typeof NSObject; - isMemberOfClass(aClass: typeof NSObject): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - performSelector(aSelector: string): any; + isEqual(object: any): boolean; - performSelectorWithObject(aSelector: string, object: any): any; + isKindOfClass(aClass: typeof NSObject): boolean; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + isMemberOfClass(aClass: typeof NSObject): boolean; - respondsToSelector(aSelector: string): boolean; + performSelector(aSelector: string): any; - retainCount(): number; + performSelectorWithObject(aSelector: string, object: any): any; - self(): this; -} + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; -declare const enum STPPaymentIntentSetupFutureUsage { + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; - Unknown = 0, + self(): this; +} - None = 1, +declare const enum STPMandateCustomerAcceptanceType { - OnSession = 2, + Online = 0, - OffSession = 3 + Offline = 1 } -declare const enum STPPaymentIntentSourceActionType { +declare class STPMandateDataParams extends NSObject implements STPFormEncodable { - Unknown = 0, + static alloc(): STPMandateDataParams; // inherited from NSObject - AuthorizeWithURL = 1 -} + static new(): STPMandateDataParams; // inherited from NSObject -declare const enum STPPaymentIntentStatus { + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - Unknown = 0, + static rootObjectName(): string; - RequiresPaymentMethod = 1, + customerAcceptance: STPMandateCustomerAcceptanceParams; - RequiresSource = 1, + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - RequiresConfirmation = 2, + readonly debugDescription: string; // inherited from NSObjectProtocol - RequiresAction = 3, + readonly description: string; // inherited from NSObjectProtocol - RequiresSourceAction = 3, + readonly hash: number; // inherited from NSObjectProtocol - Processing = 4, + readonly isProxy: boolean; // inherited from NSObjectProtocol - Succeeded = 5, + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - RequiresCapture = 6, + readonly // inherited from NSObjectProtocol - Canceled = 7 -} + class(): typeof NSObject; -declare class STPPaymentMethod extends NSObject implements STPAPIResponseDecodable, STPPaymentOption { + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - static alloc(): STPPaymentMethod; // inherited from NSObject + isEqual(object: any): boolean; - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethod; + isKindOfClass(aClass: typeof NSObject): boolean; - static new(): STPPaymentMethod; // inherited from NSObject + isMemberOfClass(aClass: typeof NSObject): boolean; - readonly billingDetails: STPPaymentMethodBillingDetails; + performSelector(aSelector: string): any; - readonly card: STPPaymentMethodCard; + performSelectorWithObject(aSelector: string, object: any): any; - readonly cardPresent: STPPaymentMethodCardPresent; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - readonly created: Date; + respondsToSelector(aSelector: string): boolean; - readonly customerId: string; + retainCount(): number; - readonly iDEAL: STPPaymentMethodiDEAL; + self(): this; +} - readonly liveMode: boolean; +declare class STPMandateOnlineParams extends NSObject implements STPFormEncodable { - readonly metadata: NSDictionary; + static alloc(): STPMandateOnlineParams; // inherited from NSObject - readonly stripeId: string; + static new(): STPMandateOnlineParams; // inherited from NSObject - readonly type: STPPaymentMethodType; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + static rootObjectName(): string; - readonly debugDescription: string; // inherited from NSObjectProtocol + ipAddress: string; - readonly description: string; // inherited from NSObjectProtocol + userAgent: string; - readonly hash: number; // inherited from NSObjectProtocol + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - readonly image: UIImage; // inherited from STPPaymentOption + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly label: string; // inherited from STPPaymentOption + readonly hash: number; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly templateImage: UIImage; // inherited from STPPaymentOption + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } -declare class STPPaymentMethodAddress extends NSObject implements STPAPIResponseDecodable, STPFormEncodable { - - static alloc(): STPPaymentMethodAddress; // inherited from NSObject +declare class STPPaymentActivityIndicatorView extends UIView { - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodAddress; + static alloc(): STPPaymentActivityIndicatorView; // inherited from NSObject - static new(): STPPaymentMethodAddress; // inherited from NSObject + static appearance(): STPPaymentActivityIndicatorView; // inherited from UIAppearance - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static appearanceForTraitCollection(trait: UITraitCollection): STPPaymentActivityIndicatorView; // inherited from UIAppearance - static rootObjectName(): string; + static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): STPPaymentActivityIndicatorView; // inherited from UIAppearance - city: string; + static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): STPPaymentActivityIndicatorView; // inherited from UIAppearance - country: string; + static appearanceWhenContainedIn(ContainerClass: typeof NSObject): STPPaymentActivityIndicatorView; // inherited from UIAppearance - line1: string; + static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): STPPaymentActivityIndicatorView; // inherited from UIAppearance - line2: string; + static new(): STPPaymentActivityIndicatorView; // inherited from NSObject - postalCode: string; + animating: boolean; - state: string; + hidesWhenStopped: boolean; - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + setAnimatingAnimated(animating: boolean, animated: boolean): void; +} - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable +declare class STPPaymentCardTextField extends UIControl implements UIKeyInput { - readonly debugDescription: string; // inherited from NSObjectProtocol + static alloc(): STPPaymentCardTextField; // inherited from NSObject - readonly description: string; // inherited from NSObjectProtocol + static appearance(): STPPaymentCardTextField; // inherited from UIAppearance - readonly hash: number; // inherited from NSObjectProtocol + static appearanceForTraitCollection(trait: UITraitCollection): STPPaymentCardTextField; // inherited from UIAppearance - readonly isProxy: boolean; // inherited from NSObjectProtocol + static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): STPPaymentCardTextField; // inherited from UIAppearance - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): STPPaymentCardTextField; // inherited from UIAppearance - readonly // inherited from NSObjectProtocol + static appearanceWhenContainedIn(ContainerClass: typeof NSObject): STPPaymentCardTextField; // inherited from UIAppearance - constructor(o: { address: STPAddress; }); + static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): STPPaymentCardTextField; // inherited from UIAppearance - class(): typeof NSObject; + static brandImageForCardBrand(cardBrand: STPCardBrand): UIImage; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + static cvcImageForCardBrand(cardBrand: STPCardBrand): UIImage; - initWithAddress(address: STPAddress): this; + static errorImageForCardBrand(cardBrand: STPCardBrand): UIImage; - isEqual(object: any): boolean; + static new(): STPPaymentCardTextField; // inherited from NSObject - isKindOfClass(aClass: typeof NSObject): boolean; + borderColor: UIColor; - isMemberOfClass(aClass: typeof NSObject): boolean; + borderWidth: number; - performSelector(aSelector: string): any; + readonly brandImage: UIImage; - performSelectorWithObject(aSelector: string, object: any): any; + readonly cardNumber: string; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + cardParams: STPPaymentMethodCardParams; - respondsToSelector(aSelector: string): boolean; + cornerRadius: number; - retainCount(): number; + countryCode: string; - self(): this; -} + cursorColor: UIColor; -declare class STPPaymentMethodBillingDetails extends NSObject implements STPAPIResponseDecodable, STPFormEncodable { + readonly cvc: string; - static alloc(): STPPaymentMethodBillingDetails; // inherited from NSObject + cvcPlaceholder: string; - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodBillingDetails; + delegate: STPPaymentCardTextFieldDelegate; - static new(): STPPaymentMethodBillingDetails; // inherited from NSObject + readonly expirationMonth: number; - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + expirationPlaceholder: string; - static rootObjectName(): string; + readonly expirationYear: number; - address: STPPaymentMethodAddress; + font: UIFont; - email: string; + readonly formattedExpirationMonth: string; - name: string; + readonly formattedExpirationYear: string; - phone: string; + inputAccessoryView: UIView; - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + inputView: UIView; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly isValid: boolean; - readonly debugDescription: string; // inherited from NSObjectProtocol + numberPlaceholder: string; - readonly description: string; // inherited from NSObjectProtocol + placeholderColor: UIColor; - readonly hash: number; // inherited from NSObjectProtocol + readonly postalCode: string; - readonly isProxy: boolean; // inherited from NSObjectProtocol + postalCodeEntryEnabled: boolean; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + postalCodePlaceholder: string; - readonly // inherited from NSObjectProtocol + textColor: UIColor; - class(): typeof NSObject; + textErrorColor: UIColor; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + autocapitalizationType: UITextAutocapitalizationType; // inherited from UITextInputTraits - isEqual(object: any): boolean; + autocorrectionType: UITextAutocorrectionType; // inherited from UITextInputTraits - isKindOfClass(aClass: typeof NSObject): boolean; + readonly debugDescription: string; // inherited from NSObjectProtocol - isMemberOfClass(aClass: typeof NSObject): boolean; + readonly description: string; // inherited from NSObjectProtocol - performSelector(aSelector: string): any; + enablesReturnKeyAutomatically: boolean; // inherited from UITextInputTraits - performSelectorWithObject(aSelector: string, object: any): any; + readonly hasText: boolean; // inherited from UIKeyInput - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly hash: number; // inherited from NSObjectProtocol - respondsToSelector(aSelector: string): boolean; + readonly isProxy: boolean; // inherited from NSObjectProtocol - retainCount(): number; + keyboardAppearance: UIKeyboardAppearance; // inherited from UITextInputTraits - self(): this; -} + keyboardType: UIKeyboardType; // inherited from UITextInputTraits -declare class STPPaymentMethodCard extends NSObject implements STPAPIResponseDecodable { + passwordRules: UITextInputPasswordRules; // inherited from UITextInputTraits - static alloc(): STPPaymentMethodCard; // inherited from NSObject + returnKeyType: UIReturnKeyType; // inherited from UITextInputTraits - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCard; + secureTextEntry: boolean; // inherited from UITextInputTraits - static new(): STPPaymentMethodCard; // inherited from NSObject + smartDashesType: UITextSmartDashesType; // inherited from UITextInputTraits - static stringFromBrand(brand: STPCardBrand): string; + smartInsertDeleteType: UITextSmartInsertDeleteType; // inherited from UITextInputTraits - readonly brand: STPCardBrand; + smartQuotesType: UITextSmartQuotesType; // inherited from UITextInputTraits - readonly checks: STPPaymentMethodCardChecks; + spellCheckingType: UITextSpellCheckingType; // inherited from UITextInputTraits - readonly country: string; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly expMonth: number; + textContentType: string; // inherited from UITextInputTraits - readonly expYear: number; + readonly // inherited from NSObjectProtocol - readonly fingerprint: string; + brandImageRectForBounds(bounds: CGRect): CGRect; - readonly funding: string; + class(): typeof NSObject; - readonly last4: string; + clear(): void; - readonly threeDSecureUsage: STPPaymentMethodThreeDSecureUsage; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - readonly wallet: STPPaymentMethodCardWallet; + deleteBackward(): void; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + fieldsRectForBounds(bounds: CGRect): CGRect; - readonly debugDescription: string; // inherited from NSObjectProtocol + insertText(text: string): void; - readonly description: string; // inherited from NSObjectProtocol + isEqual(object: any): boolean; - readonly hash: number; // inherited from NSObjectProtocol + isKindOfClass(aClass: typeof NSObject): boolean; - readonly isProxy: boolean; // inherited from NSObjectProtocol + isMemberOfClass(aClass: typeof NSObject): boolean; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + performSelector(aSelector: string): any; - readonly // inherited from NSObjectProtocol + performSelectorWithObject(aSelector: string, object: any): any; - class(): typeof NSObject; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + respondsToSelector(aSelector: string): boolean; - isEqual(object: any): boolean; + retainCount(): number; - isKindOfClass(aClass: typeof NSObject): boolean; + self(): this; +} - isMemberOfClass(aClass: typeof NSObject): boolean; +interface STPPaymentCardTextFieldDelegate extends NSObjectProtocol { - performSelector(aSelector: string): any; + paymentCardTextFieldDidBeginEditing?(textField: STPPaymentCardTextField): void; - performSelectorWithObject(aSelector: string, object: any): any; + paymentCardTextFieldDidBeginEditingCVC?(textField: STPPaymentCardTextField): void; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + paymentCardTextFieldDidBeginEditingExpiration?(textField: STPPaymentCardTextField): void; - respondsToSelector(aSelector: string): boolean; + paymentCardTextFieldDidBeginEditingNumber?(textField: STPPaymentCardTextField): void; - retainCount(): number; + paymentCardTextFieldDidBeginEditingPostalCode?(textField: STPPaymentCardTextField): void; - self(): this; -} + paymentCardTextFieldDidChange?(textField: STPPaymentCardTextField): void; -declare const enum STPPaymentMethodCardCheckResult { + paymentCardTextFieldDidEndEditing?(textField: STPPaymentCardTextField): void; - Pass = 0, + paymentCardTextFieldDidEndEditingCVC?(textField: STPPaymentCardTextField): void; - Failed = 1, + paymentCardTextFieldDidEndEditingExpiration?(textField: STPPaymentCardTextField): void; - Unavailable = 2, + paymentCardTextFieldDidEndEditingNumber?(textField: STPPaymentCardTextField): void; - Unchecked = 3, + paymentCardTextFieldDidEndEditingPostalCode?(textField: STPPaymentCardTextField): void; - Unknown = 4 + paymentCardTextFieldWillEndEditingForReturn?(textField: STPPaymentCardTextField): void; } +declare var STPPaymentCardTextFieldDelegate: { -declare class STPPaymentMethodCardChecks extends NSObject implements STPAPIResponseDecodable { + prototype: STPPaymentCardTextFieldDelegate; +}; - static alloc(): STPPaymentMethodCardChecks; // inherited from NSObject +declare class STPPaymentConfiguration extends NSObject implements NSCopying { - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardChecks; + static alloc(): STPPaymentConfiguration; // inherited from NSObject - static new(): STPPaymentMethodCardChecks; // inherited from NSObject + static new(): STPPaymentConfiguration; // inherited from NSObject - readonly addressLine1Check: STPPaymentMethodCardCheckResult; + static sharedConfiguration(): STPPaymentConfiguration; - readonly addressPostalCodeCheck: STPPaymentMethodCardCheckResult; + additionalPaymentOptions: STPPaymentOptionType; - readonly cvcCheck: STPPaymentMethodCardCheckResult; + appleMerchantIdentifier: string; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + availableCountries: NSSet; - readonly debugDescription: string; // inherited from NSObjectProtocol + canDeletePaymentOptions: boolean; - readonly description: string; // inherited from NSObjectProtocol + companyName: string; - readonly hash: number; // inherited from NSObjectProtocol + publishableKey: string; - readonly isProxy: boolean; // inherited from NSObjectProtocol + requiredBillingAddressFields: STPBillingAddressFields; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + requiredShippingAddressFields: NSSet; - readonly // inherited from NSObjectProtocol + shippingType: STPShippingType; - class(): typeof NSObject; + stripeAccount: string; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + verifyPrefilledShippingAddress: boolean; - isEqual(object: any): boolean; + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} - isKindOfClass(aClass: typeof NSObject): boolean; +declare class STPPaymentContext extends NSObject implements STPAuthenticationContext { - isMemberOfClass(aClass: typeof NSObject): boolean; + static alloc(): STPPaymentContext; // inherited from NSObject - performSelector(aSelector: string): any; + static new(): STPPaymentContext; // inherited from NSObject - performSelectorWithObject(aSelector: string, object: any): any; + addCardViewControllerFooterView: UIView; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly apiAdapter: STPBackendAPIAdapter; - respondsToSelector(aSelector: string): boolean; + apiClient: STPAPIClient; - retainCount(): number; + readonly configuration: STPPaymentConfiguration; - self(): this; -} + defaultPaymentMethod: string; -declare class STPPaymentMethodCardParams extends NSObject implements STPFormEncodable { + delegate: STPPaymentContextDelegate; - static alloc(): STPPaymentMethodCardParams; // inherited from NSObject + hostViewController: UIViewController; - static new(): STPPaymentMethodCardParams; // inherited from NSObject + largeTitleDisplayMode: UINavigationItemLargeTitleDisplayMode; - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + readonly loading: boolean; - static rootObjectName(): string; + modalPresentationStyle: UIModalPresentationStyle; - cvc: string; + paymentAmount: number; - expMonth: number; + paymentCountry: string; - expYear: number; + paymentCurrency: string; - number: string; + readonly paymentOptions: NSArray; - token: string; + paymentOptionsViewControllerFooterView: UIView; - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + paymentSummaryItems: NSArray; - readonly debugDescription: string; // inherited from NSObjectProtocol + prefilledInformation: STPUserInformation; - readonly description: string; // inherited from NSObjectProtocol + readonly selectedPaymentOption: STPPaymentOption; - readonly hash: number; // inherited from NSObjectProtocol + readonly selectedShippingMethod: PKShippingMethod; - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly shippingAddress: STPAddress; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly shippingMethods: NSArray; - readonly // inherited from NSObjectProtocol + readonly theme: STPTheme; - constructor(o: { cardSourceParams: STPCardParams; }); + readonly debugDescription: string; // inherited from NSObjectProtocol - class(): typeof NSObject; + readonly description: string; // inherited from NSObjectProtocol - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + readonly hash: number; // inherited from NSObjectProtocol - initWithCardSourceParams(cardSourceParams: STPCardParams): this; + readonly isProxy: boolean; // inherited from NSObjectProtocol - isEqual(object: any): boolean; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - isKindOfClass(aClass: typeof NSObject): boolean; + readonly // inherited from NSObjectProtocol - isMemberOfClass(aClass: typeof NSObject): boolean; + constructor(o: { APIAdapter: STPBackendAPIAdapter; }); - performSelector(aSelector: string): any; + constructor(o: { APIAdapter: STPBackendAPIAdapter; configuration: STPPaymentConfiguration; theme: STPTheme; }); - performSelectorWithObject(aSelector: string, object: any): any; + constructor(o: { customerContext: STPCustomerContext; }); - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + constructor(o: { customerContext: STPCustomerContext; configuration: STPPaymentConfiguration; theme: STPTheme; }); - respondsToSelector(aSelector: string): boolean; + authenticationContextWillDismissViewController(viewController: UIViewController): void; - retainCount(): number; + authenticationPresentingViewController(): UIViewController; - self(): this; -} + class(): typeof NSObject; -declare class STPPaymentMethodCardPresent extends NSObject implements STPAPIResponseDecodable { + configureSafariViewController(viewController: SFSafariViewController): void; - static alloc(): STPPaymentMethodCardPresent; // inherited from NSObject + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardPresent; + initWithAPIAdapter(apiAdapter: STPBackendAPIAdapter): this; - static new(): STPPaymentMethodCardPresent; // inherited from NSObject + initWithAPIAdapterConfigurationTheme(apiAdapter: STPBackendAPIAdapter, configuration: STPPaymentConfiguration, theme: STPTheme): this; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + initWithCustomerContext(customerContext: STPCustomerContext): this; - readonly debugDescription: string; // inherited from NSObjectProtocol + initWithCustomerContextConfigurationTheme(customerContext: STPCustomerContext, configuration: STPPaymentConfiguration, theme: STPTheme): this; - readonly description: string; // inherited from NSObjectProtocol + isEqual(object: any): boolean; - readonly hash: number; // inherited from NSObjectProtocol + isKindOfClass(aClass: typeof NSObject): boolean; - readonly isProxy: boolean; // inherited from NSObjectProtocol + isMemberOfClass(aClass: typeof NSObject): boolean; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + performSelector(aSelector: string): any; - readonly // inherited from NSObjectProtocol + performSelectorWithObject(aSelector: string, object: any): any; - class(): typeof NSObject; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + prepareAuthenticationContextForPresentation(completion: () => void): void; - isEqual(object: any): boolean; + presentPaymentOptionsViewController(): void; - isKindOfClass(aClass: typeof NSObject): boolean; + presentShippingViewController(): void; - isMemberOfClass(aClass: typeof NSObject): boolean; + pushPaymentOptionsViewController(): void; - performSelector(aSelector: string): any; + pushShippingViewController(): void; - performSelectorWithObject(aSelector: string, object: any): any; + requestPayment(): void; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + respondsToSelector(aSelector: string): boolean; - respondsToSelector(aSelector: string): boolean; + retainCount(): number; - retainCount(): number; + retryLoading(): void; - self(): this; + self(): this; } -declare class STPPaymentMethodCardWallet extends NSObject implements STPAPIResponseDecodable { +interface STPPaymentContextDelegate extends NSObjectProtocol { - static alloc(): STPPaymentMethodCardWallet; // inherited from NSObject + paymentContextDidChange(paymentContext: STPPaymentContext): void; - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWallet; + paymentContextDidCreatePaymentResultCompletion(paymentContext: STPPaymentContext, paymentResult: STPPaymentResult, completion: (p1: STPPaymentStatus, p2: NSError) => void): void; - static new(): STPPaymentMethodCardWallet; // inherited from NSObject + paymentContextDidFailToLoadWithError(paymentContext: STPPaymentContext, error: NSError): void; - readonly masterpass: STPPaymentMethodCardWalletMasterpass; + paymentContextDidFinishWithStatusError(paymentContext: STPPaymentContext, status: STPPaymentStatus, error: NSError): void; - readonly type: STPPaymentMethodCardWalletType; + paymentContextDidUpdateShippingAddressCompletion?(paymentContext: STPPaymentContext, address: STPAddress, completion: (p1: STPShippingStatus, p2: NSError, p3: NSArray, p4: PKShippingMethod) => void): void; +} +declare var STPPaymentContextDelegate: { - readonly visaCheckout: STPPaymentMethodCardWalletVisaCheckout; + prototype: STPPaymentContextDelegate; +}; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable +declare class STPPaymentHandler extends NSObject { - readonly debugDescription: string; // inherited from NSObjectProtocol + static alloc(): STPPaymentHandler; // inherited from NSObject - readonly description: string; // inherited from NSObjectProtocol + static new(): STPPaymentHandler; // inherited from NSObject - readonly hash: number; // inherited from NSObjectProtocol + static sharedHandler(): STPPaymentHandler; - readonly isProxy: boolean; // inherited from NSObjectProtocol + apiClient: STPAPIClient; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + threeDSCustomizationSettings: STPThreeDSCustomizationSettings; - readonly // inherited from NSObjectProtocol + confirmPaymentWithAuthenticationContextCompletion(paymentParams: STPPaymentIntentParams, authenticationContext: STPAuthenticationContext, completion: (p1: STPPaymentHandlerActionStatus, p2: STPPaymentIntent, p3: NSError) => void): void; - class(): typeof NSObject; + confirmSetupIntentWithAuthenticationContextCompletion(setupIntentConfirmParams: STPSetupIntentConfirmParams, authenticationContext: STPAuthenticationContext, completion: (p1: STPPaymentHandlerActionStatus, p2: STPSetupIntent, p3: NSError) => void): void; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + handleNextActionForPaymentWithAuthenticationContextReturnURLCompletion(paymentIntentClientSecret: string, authenticationContext: STPAuthenticationContext, returnURL: string, completion: (p1: STPPaymentHandlerActionStatus, p2: STPPaymentIntent, p3: NSError) => void): void; - isEqual(object: any): boolean; + handleNextActionForSetupIntentWithAuthenticationContextReturnURLCompletion(setupIntentClientSecret: string, authenticationContext: STPAuthenticationContext, returnURL: string, completion: (p1: STPPaymentHandlerActionStatus, p2: STPSetupIntent, p3: NSError) => void): void; +} - isKindOfClass(aClass: typeof NSObject): boolean; +declare const enum STPPaymentHandlerActionStatus { - isMemberOfClass(aClass: typeof NSObject): boolean; + Succeeded = 0, - performSelector(aSelector: string): any; + Canceled = 1, - performSelectorWithObject(aSelector: string, object: any): any; + Failed = 2 +} - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; +declare const enum STPPaymentHandlerErrorCode { - respondsToSelector(aSelector: string): boolean; + UnsupportedAuthenticationErrorCode = 0, - retainCount(): number; + RequiresPaymentMethodErrorCode = 1, - self(): this; -} + IntentStatusErrorCode = 2, -declare class STPPaymentMethodCardWalletMasterpass extends NSObject implements STPAPIResponseDecodable { + TimedOutErrorCode = 3, - static alloc(): STPPaymentMethodCardWalletMasterpass; // inherited from NSObject + Stripe3DS2ErrorCode = 4, - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWalletMasterpass; + NotAuthenticatedErrorCode = 5, - static new(): STPPaymentMethodCardWalletMasterpass; // inherited from NSObject + NoConcurrentActionsErrorCode = 6, - readonly billingAddress: STPPaymentMethodAddress; + RequiresAuthenticationContextErrorCode = 7, - readonly email: string; + PaymentErrorCode = 8, - readonly name: string; + InvalidClientSecret = 9 +} - readonly shippingAddress: STPPaymentMethodAddress; +declare var STPPaymentHandlerErrorDomain: string; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable +declare class STPPaymentIntent extends NSObject implements STPAPIResponseDecodable { - readonly debugDescription: string; // inherited from NSObjectProtocol + static alloc(): STPPaymentIntent; // inherited from NSObject - readonly description: string; // inherited from NSObjectProtocol + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentIntent; - readonly hash: number; // inherited from NSObjectProtocol + static new(): STPPaymentIntent; // inherited from NSObject - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly amount: number; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly canceledAt: Date; - readonly // inherited from NSObjectProtocol + readonly captureMethod: STPPaymentIntentCaptureMethod; - class(): typeof NSObject; + readonly clientSecret: string; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + readonly confirmationMethod: STPPaymentIntentConfirmationMethod; - isEqual(object: any): boolean; + readonly created: Date; - isKindOfClass(aClass: typeof NSObject): boolean; + readonly currency: string; - isMemberOfClass(aClass: typeof NSObject): boolean; + readonly lastPaymentError: STPPaymentIntentLastPaymentError; - performSelector(aSelector: string): any; + readonly livemode: boolean; - performSelectorWithObject(aSelector: string, object: any): any; + readonly nextAction: STPIntentAction; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly nextSourceAction: STPIntentAction; - respondsToSelector(aSelector: string): boolean; + readonly paymentMethodId: string; - retainCount(): number; + readonly paymentMethodTypes: NSArray; - self(): this; -} + readonly receiptEmail: string; -declare const enum STPPaymentMethodCardWalletType { + readonly setupFutureUsage: STPPaymentIntentSetupFutureUsage; - AmexExpressCheckout = 0, + readonly sourceId: string; - ApplePay = 1, + readonly status: STPPaymentIntentStatus; - GooglePay = 2, + readonly stripeDescription: string; - Masterpass = 3, + readonly stripeId: string; - SamsungPay = 4, + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - VisaCheckout = 5, + readonly debugDescription: string; // inherited from NSObjectProtocol - Unknown = 6 -} + readonly description: string; // inherited from NSObjectProtocol -declare class STPPaymentMethodCardWalletVisaCheckout extends NSObject implements STPAPIResponseDecodable { + readonly hash: number; // inherited from NSObjectProtocol - static alloc(): STPPaymentMethodCardWalletVisaCheckout; // inherited from NSObject + readonly isProxy: boolean; // inherited from NSObjectProtocol - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWalletVisaCheckout; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - static new(): STPPaymentMethodCardWalletVisaCheckout; // inherited from NSObject + readonly // inherited from NSObjectProtocol - readonly billingAddress: STPPaymentMethodAddress; + class(): typeof NSObject; - readonly email: string; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - readonly name: string; + isEqual(object: any): boolean; - readonly shippingAddress: STPPaymentMethodAddress; + isKindOfClass(aClass: typeof NSObject): boolean; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + isMemberOfClass(aClass: typeof NSObject): boolean; - readonly debugDescription: string; // inherited from NSObjectProtocol + performSelector(aSelector: string): any; - readonly description: string; // inherited from NSObjectProtocol + performSelectorWithObject(aSelector: string, object: any): any; - readonly hash: number; // inherited from NSObjectProtocol + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - readonly isProxy: boolean; // inherited from NSObjectProtocol + respondsToSelector(aSelector: string): boolean; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + retainCount(): number; - readonly // inherited from NSObjectProtocol + self(): this; +} - class(): typeof NSObject; +declare const enum STPPaymentIntentActionType { + + Unknown = 0, + + RedirectToURL = 1 +} + +declare const enum STPPaymentIntentCaptureMethod { + + Unknown = 0, + + Automatic = 1, + + Manual = 2 +} + +declare const enum STPPaymentIntentConfirmationMethod { + + Unknown = 0, + + Publishable = 1, + + Secret = 2 +} + +declare class STPPaymentIntentLastPaymentError extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPPaymentIntentLastPaymentError; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentIntentLastPaymentError; + + static new(): STPPaymentIntentLastPaymentError; // inherited from NSObject + + readonly code: string; + + readonly declineCode: string; + + readonly docURL: string; + + readonly message: string; + + readonly param: string; + + readonly paymentMethod: STPPaymentMethod; + + readonly type: STPPaymentIntentLastPaymentErrorType; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare var STPPaymentIntentLastPaymentErrorCodeAuthenticationFailure: string; + +declare const enum STPPaymentIntentLastPaymentErrorType { + + Unknown = 0, + + APIConnection = 1, + + API = 2, + + Authentication = 3, + + Card = 4, + + Idempotency = 5, + + InvalidRequest = 6, + + RateLimit = 7 +} + +declare class STPPaymentIntentParams extends NSObject implements NSCopying, STPFormEncodable { + + static alloc(): STPPaymentIntentParams; // inherited from NSObject + + static isClientSecretValid(clientSecret: string): boolean; + + static new(): STPPaymentIntentParams; // inherited from NSObject + + static propertyNamesToFormFieldNamesMapping(): NSDictionary; + + static rootObjectName(): string; + + clientSecret: string; + + mandate: string; + + mandateData: STPMandateDataParams; + + paymentMethodId: string; + + paymentMethodOptions: STPConfirmPaymentMethodOptions; + + paymentMethodParams: STPPaymentMethodParams; + + receiptEmail: string; + + returnURL: string; + + returnUrl: string; + + savePaymentMethod: number; + + saveSourceToCustomer: number; + + setupFutureUsage: number; + + sourceId: string; + + sourceParams: STPSourceParams; + + readonly stripeId: string; + + useStripeSDK: number; + + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + constructor(o: { clientSecret: string; }); + + class(): typeof NSObject; + + configureWithPaymentResult(paymentResult: STPPaymentResult): void; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + initWithClientSecret(clientSecret: string): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare const enum STPPaymentIntentSetupFutureUsage { + + Unknown = 0, + + None = 1, + + OnSession = 2, + + OffSession = 3 +} + +declare const enum STPPaymentIntentSourceActionType { + + Unknown = 0, + + AuthorizeWithURL = 1 +} + +declare const enum STPPaymentIntentStatus { + + Unknown = 0, + + RequiresPaymentMethod = 1, + + RequiresSource = 1, + + RequiresConfirmation = 2, + + RequiresAction = 3, + + RequiresSourceAction = 3, + + Processing = 4, + + Succeeded = 5, + + RequiresCapture = 6, + + Canceled = 7 +} + +declare class STPPaymentMethod extends NSObject implements STPAPIResponseDecodable, STPPaymentOption { + + static alloc(): STPPaymentMethod; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethod; + + static new(): STPPaymentMethod; // inherited from NSObject + + readonly billingDetails: STPPaymentMethodBillingDetails; + + readonly card: STPPaymentMethodCard; + + readonly cardPresent: STPPaymentMethodCardPresent; + + readonly created: Date; + + readonly customerId: string; + + readonly fpx: STPPaymentMethodFPX; + + readonly iDEAL: STPPaymentMethodiDEAL; + + readonly liveMode: boolean; + + readonly metadata: NSDictionary; + + readonly sepaDebit: STPPaymentMethodSEPADebit; + + readonly stripeId: string; + + readonly type: STPPaymentMethodType; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly image: UIImage; // inherited from STPPaymentOption + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly label: string; // inherited from STPPaymentOption + + readonly reusable: boolean; // inherited from STPPaymentOption + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly templateImage: UIImage; // inherited from STPPaymentOption + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class STPPaymentMethodAddress extends NSObject implements STPAPIResponseDecodable, STPFormEncodable { + + static alloc(): STPPaymentMethodAddress; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodAddress; + + static new(): STPPaymentMethodAddress; // inherited from NSObject + + static propertyNamesToFormFieldNamesMapping(): NSDictionary; + + static rootObjectName(): string; + + city: string; + + country: string; + + line1: string; + + line2: string; + + postalCode: string; + + state: string; + + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + constructor(o: { address: STPAddress; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + initWithAddress(address: STPAddress): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class STPPaymentMethodBillingDetails extends NSObject implements STPAPIResponseDecodable, STPFormEncodable { + + static alloc(): STPPaymentMethodBillingDetails; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodBillingDetails; + + static new(): STPPaymentMethodBillingDetails; // inherited from NSObject + + static propertyNamesToFormFieldNamesMapping(): NSDictionary; + + static rootObjectName(): string; + + address: STPPaymentMethodAddress; + + email: string; + + name: string; + + phone: string; + + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class STPPaymentMethodCard extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPPaymentMethodCard; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCard; + + static new(): STPPaymentMethodCard; // inherited from NSObject + + static stringFromBrand(brand: STPCardBrand): string; + + readonly brand: STPCardBrand; + + readonly checks: STPPaymentMethodCardChecks; + + readonly country: string; + + readonly expMonth: number; + + readonly expYear: number; + + readonly fingerprint: string; + + readonly funding: string; + + readonly last4: string; + + readonly threeDSecureUsage: STPPaymentMethodThreeDSecureUsage; + + readonly wallet: STPPaymentMethodCardWallet; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare const enum STPPaymentMethodCardCheckResult { + + Pass = 0, + + Failed = 1, + + Unavailable = 2, + + Unchecked = 3, + + Unknown = 4 +} + +declare class STPPaymentMethodCardChecks extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPPaymentMethodCardChecks; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardChecks; + + static new(): STPPaymentMethodCardChecks; // inherited from NSObject + + readonly addressLine1Check: STPPaymentMethodCardCheckResult; + + readonly addressPostalCodeCheck: STPPaymentMethodCardCheckResult; + + readonly cvcCheck: STPPaymentMethodCardCheckResult; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class STPPaymentMethodCardParams extends NSObject implements STPFormEncodable { + + static alloc(): STPPaymentMethodCardParams; // inherited from NSObject + + static new(): STPPaymentMethodCardParams; // inherited from NSObject + + static propertyNamesToFormFieldNamesMapping(): NSDictionary; + + static rootObjectName(): string; + + cvc: string; + + expMonth: number; + + expYear: number; + + readonly last4: string; + + number: string; + + token: string; + + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + constructor(o: { cardSourceParams: STPCardParams; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + initWithCardSourceParams(cardSourceParams: STPCardParams): this; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class STPPaymentMethodCardPresent extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPPaymentMethodCardPresent; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardPresent; + + static new(): STPPaymentMethodCardPresent; // inherited from NSObject + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class STPPaymentMethodCardWallet extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPPaymentMethodCardWallet; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWallet; + + static new(): STPPaymentMethodCardWallet; // inherited from NSObject + + readonly masterpass: STPPaymentMethodCardWalletMasterpass; + + readonly type: STPPaymentMethodCardWalletType; + + readonly visaCheckout: STPPaymentMethodCardWalletVisaCheckout; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class STPPaymentMethodCardWalletMasterpass extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPPaymentMethodCardWalletMasterpass; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWalletMasterpass; + + static new(): STPPaymentMethodCardWalletMasterpass; // inherited from NSObject + + readonly billingAddress: STPPaymentMethodAddress; + + readonly email: string; + + readonly name: string; + + readonly shippingAddress: STPPaymentMethodAddress; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare const enum STPPaymentMethodCardWalletType { + + AmexExpressCheckout = 0, + + ApplePay = 1, + + GooglePay = 2, + + Masterpass = 3, + + SamsungPay = 4, + + VisaCheckout = 5, + + Unknown = 6 +} + +declare class STPPaymentMethodCardWalletVisaCheckout extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPPaymentMethodCardWalletVisaCheckout; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWalletVisaCheckout; + + static new(): STPPaymentMethodCardWalletVisaCheckout; // inherited from NSObject + + readonly billingAddress: STPPaymentMethodAddress; + + readonly email: string; + + readonly name: string; + + readonly shippingAddress: STPPaymentMethodAddress; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class STPPaymentMethodFPX extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPPaymentMethodFPX; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodFPX; + + static new(): STPPaymentMethodFPX; // inherited from NSObject + + readonly bankIdentifierCode: string; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class STPPaymentMethodFPXParams extends NSObject implements STPFormEncodable { + + static alloc(): STPPaymentMethodFPXParams; // inherited from NSObject + + static new(): STPPaymentMethodFPXParams; // inherited from NSObject + + static propertyNamesToFormFieldNamesMapping(): NSDictionary; + + static rootObjectName(): string; + + bank: STPFPXBankBrand; + + rawBankString: string; + + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare class STPPaymentMethodParams extends NSObject implements STPFormEncodable, STPPaymentOption { + + static alloc(): STPPaymentMethodParams; // inherited from NSObject + + static new(): STPPaymentMethodParams; // inherited from NSObject + + static paramsWithCardBillingDetailsMetadata(card: STPPaymentMethodCardParams, billingDetails: STPPaymentMethodBillingDetails, metadata: NSDictionary): STPPaymentMethodParams; + + static paramsWithFPXBillingDetailsMetadata(fpx: STPPaymentMethodFPXParams, billingDetails: STPPaymentMethodBillingDetails, metadata: NSDictionary): STPPaymentMethodParams; + + static paramsWithSEPADebitBillingDetailsMetadata(sepaDebit: STPPaymentMethodSEPADebitParams, billingDetails: STPPaymentMethodBillingDetails, metadata: NSDictionary): STPPaymentMethodParams; + + static paramsWithSingleUsePaymentMethod(paymentMethod: STPPaymentMethod): STPPaymentMethodParams; + + static paramsWithiDEALBillingDetailsMetadata(iDEAL: STPPaymentMethodiDEALParams, billingDetails: STPPaymentMethodBillingDetails, metadata: NSDictionary): STPPaymentMethodParams; + + static propertyNamesToFormFieldNamesMapping(): NSDictionary; + + static rootObjectName(): string; + + billingDetails: STPPaymentMethodBillingDetails; + + card: STPPaymentMethodCardParams; + + fpx: STPPaymentMethodFPXParams; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + iDEAL: STPPaymentMethodiDEALParams; - isEqual(object: any): boolean; + metadata: NSDictionary; - isKindOfClass(aClass: typeof NSObject): boolean; + rawTypeString: string; - isMemberOfClass(aClass: typeof NSObject): boolean; + sepaDebit: STPPaymentMethodSEPADebitParams; - performSelector(aSelector: string): any; + readonly type: STPPaymentMethodType; - performSelectorWithObject(aSelector: string, object: any): any; + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly debugDescription: string; // inherited from NSObjectProtocol - respondsToSelector(aSelector: string): boolean; + readonly description: string; // inherited from NSObjectProtocol - retainCount(): number; + readonly hash: number; // inherited from NSObjectProtocol - self(): this; + readonly image: UIImage; // inherited from STPPaymentOption + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly label: string; // inherited from STPPaymentOption + + readonly reusable: boolean; // inherited from STPPaymentOption + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly templateImage: UIImage; // inherited from STPPaymentOption + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } -declare class STPPaymentMethodParams extends NSObject implements STPFormEncodable { +declare class STPPaymentMethodSEPADebit extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPPaymentMethodSEPADebit; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodSEPADebit; + + static new(): STPPaymentMethodSEPADebit; // inherited from NSObject + + readonly bankCode: string; + + readonly branchCode: string; + + readonly country: string; + + readonly fingerprint: string; + + readonly last4: string; + + readonly mandate: string; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - static alloc(): STPPaymentMethodParams; // inherited from NSObject + readonly // inherited from NSObjectProtocol - static new(): STPPaymentMethodParams; // inherited from NSObject + class(): typeof NSObject; - static paramsWithCardBillingDetailsMetadata(card: STPPaymentMethodCardParams, billingDetails: STPPaymentMethodBillingDetails, metadata: NSDictionary): STPPaymentMethodParams; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - static paramsWithiDEALBillingDetailsMetadata(iDEAL: STPPaymentMethodiDEALParams, billingDetails: STPPaymentMethodBillingDetails, metadata: NSDictionary): STPPaymentMethodParams; + isEqual(object: any): boolean; - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + isKindOfClass(aClass: typeof NSObject): boolean; - static rootObjectName(): string; + isMemberOfClass(aClass: typeof NSObject): boolean; - billingDetails: STPPaymentMethodBillingDetails; + performSelector(aSelector: string): any; - card: STPPaymentMethodCardParams; + performSelectorWithObject(aSelector: string, object: any): any; - iDEAL: STPPaymentMethodiDEALParams; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - metadata: NSDictionary; + respondsToSelector(aSelector: string): boolean; - rawTypeString: string; + retainCount(): number; - readonly type: STPPaymentMethodType; + self(): this; +} + +declare class STPPaymentMethodSEPADebitParams extends NSObject implements STPFormEncodable { + + static alloc(): STPPaymentMethodSEPADebitParams; // inherited from NSObject + + static new(): STPPaymentMethodSEPADebitParams; // inherited from NSObject - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - readonly debugDescription: string; // inherited from NSObjectProtocol + static rootObjectName(): string; - readonly description: string; // inherited from NSObjectProtocol + iban: string; - readonly hash: number; // inherited from NSObjectProtocol + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - class(): typeof NSObject; + readonly isProxy: boolean; // inherited from NSObjectProtocol - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - isEqual(object: any): boolean; + readonly // inherited from NSObjectProtocol - isKindOfClass(aClass: typeof NSObject): boolean; + class(): typeof NSObject; - isMemberOfClass(aClass: typeof NSObject): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - performSelector(aSelector: string): any; + isEqual(object: any): boolean; - performSelectorWithObject(aSelector: string, object: any): any; + isKindOfClass(aClass: typeof NSObject): boolean; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + isMemberOfClass(aClass: typeof NSObject): boolean; - respondsToSelector(aSelector: string): boolean; + performSelector(aSelector: string): any; - retainCount(): number; + performSelectorWithObject(aSelector: string, object: any): any; - self(): this; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } declare class STPPaymentMethodThreeDSecureUsage extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPPaymentMethodThreeDSecureUsage; // inherited from NSObject + static alloc(): STPPaymentMethodThreeDSecureUsage; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodThreeDSecureUsage; + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodThreeDSecureUsage; - static new(): STPPaymentMethodThreeDSecureUsage; // inherited from NSObject + static new(): STPPaymentMethodThreeDSecureUsage; // inherited from NSObject - readonly supported: boolean; + readonly supported: boolean; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare const enum STPPaymentMethodType { - Card = 0, + Card = 0, + + iDEAL = 1, - iDEAL = 1, + FPX = 2, - CardPresent = 2, + CardPresent = 3, - Unknown = 3 + SEPADebit = 4, + + Unknown = 5 } declare class STPPaymentMethodiDEAL extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPPaymentMethodiDEAL; // inherited from NSObject + static alloc(): STPPaymentMethodiDEAL; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodiDEAL; + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodiDEAL; - static new(): STPPaymentMethodiDEAL; // inherited from NSObject + static new(): STPPaymentMethodiDEAL; // inherited from NSObject - readonly bankIdentifierCode: string; + readonly bankIdentifierCode: string; - readonly bankName: string; + readonly bankName: string; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare class STPPaymentMethodiDEALParams extends NSObject implements STPFormEncodable { - static alloc(): STPPaymentMethodiDEALParams; // inherited from NSObject + static alloc(): STPPaymentMethodiDEALParams; // inherited from NSObject - static new(): STPPaymentMethodiDEALParams; // inherited from NSObject + static new(): STPPaymentMethodiDEALParams; // inherited from NSObject - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static rootObjectName(): string; + static rootObjectName(): string; - bankName: string; + bankName: string; - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } interface STPPaymentOption extends NSObjectProtocol { - image: UIImage; + image: UIImage; + + label: string; - label: string; + reusable: boolean; - templateImage: UIImage; + templateImage: UIImage; } declare var STPPaymentOption: { - prototype: STPPaymentOption; + prototype: STPPaymentOption; }; declare const enum STPPaymentOptionType { - None = 0, + None = 0, + + ApplePay = 1, + + FPX = 2, - ApplePay = 1, + All = 1, - All = 1 + Default = 1 } declare class STPPaymentOptionsViewController extends STPCoreViewController { - static alloc(): STPPaymentOptionsViewController; // inherited from NSObject + static alloc(): STPPaymentOptionsViewController; // inherited from NSObject - static new(): STPPaymentOptionsViewController; // inherited from NSObject + static new(): STPPaymentOptionsViewController; // inherited from NSObject - addCardViewControllerFooterView: UIView; + addCardViewControllerFooterView: UIView; - defaultPaymentMethod: string; + apiClient: STPAPIClient; - readonly delegate: STPPaymentOptionsViewControllerDelegate; + defaultPaymentMethod: string; - paymentOptionsViewControllerFooterView: UIView; + readonly delegate: STPPaymentOptionsViewControllerDelegate; - prefilledInformation: STPUserInformation; + paymentOptionsViewControllerFooterView: UIView; - constructor(o: { configuration: STPPaymentConfiguration; theme: STPTheme; apiAdapter: STPBackendAPIAdapter; delegate: STPPaymentOptionsViewControllerDelegate; }); + prefilledInformation: STPUserInformation; - constructor(o: { configuration: STPPaymentConfiguration; theme: STPTheme; customerContext: STPCustomerContext; delegate: STPPaymentOptionsViewControllerDelegate; }); + constructor(o: { configuration: STPPaymentConfiguration; theme: STPTheme; apiAdapter: STPBackendAPIAdapter; delegate: STPPaymentOptionsViewControllerDelegate; }); - constructor(o: { paymentContext: STPPaymentContext; }); + constructor(o: { configuration: STPPaymentConfiguration; theme: STPTheme; customerContext: STPCustomerContext; delegate: STPPaymentOptionsViewControllerDelegate; }); - dismissWithCompletion(completion: () => void): void; + constructor(o: { paymentContext: STPPaymentContext; }); - initWithConfigurationThemeApiAdapterDelegate(configuration: STPPaymentConfiguration, theme: STPTheme, apiAdapter: STPBackendAPIAdapter, delegate: STPPaymentOptionsViewControllerDelegate): this; + dismissWithCompletion(completion: () => void): void; - initWithConfigurationThemeCustomerContextDelegate(configuration: STPPaymentConfiguration, theme: STPTheme, customerContext: STPCustomerContext, delegate: STPPaymentOptionsViewControllerDelegate): this; + initWithConfigurationThemeApiAdapterDelegate(configuration: STPPaymentConfiguration, theme: STPTheme, apiAdapter: STPBackendAPIAdapter, delegate: STPPaymentOptionsViewControllerDelegate): this; - initWithPaymentContext(paymentContext: STPPaymentContext): this; + initWithConfigurationThemeCustomerContextDelegate(configuration: STPPaymentConfiguration, theme: STPTheme, customerContext: STPCustomerContext, delegate: STPPaymentOptionsViewControllerDelegate): this; + + initWithPaymentContext(paymentContext: STPPaymentContext): this; } interface STPPaymentOptionsViewControllerDelegate extends NSObjectProtocol { - paymentOptionsViewControllerDidCancel(paymentOptionsViewController: STPPaymentOptionsViewController): void; + paymentOptionsViewControllerDidCancel(paymentOptionsViewController: STPPaymentOptionsViewController): void; - paymentOptionsViewControllerDidFailToLoadWithError(paymentOptionsViewController: STPPaymentOptionsViewController, error: NSError): void; + paymentOptionsViewControllerDidFailToLoadWithError(paymentOptionsViewController: STPPaymentOptionsViewController, error: NSError): void; - paymentOptionsViewControllerDidFinish(paymentOptionsViewController: STPPaymentOptionsViewController): void; + paymentOptionsViewControllerDidFinish(paymentOptionsViewController: STPPaymentOptionsViewController): void; - paymentOptionsViewControllerDidSelectPaymentOption?(paymentOptionsViewController: STPPaymentOptionsViewController, paymentOption: STPPaymentOption): void; + paymentOptionsViewControllerDidSelectPaymentOption?(paymentOptionsViewController: STPPaymentOptionsViewController, paymentOption: STPPaymentOption): void; } declare var STPPaymentOptionsViewControllerDelegate: { - prototype: STPPaymentOptionsViewControllerDelegate; + prototype: STPPaymentOptionsViewControllerDelegate; }; declare class STPPaymentResult extends NSObject { - static alloc(): STPPaymentResult; // inherited from NSObject + static alloc(): STPPaymentResult; // inherited from NSObject + + static new(): STPPaymentResult; // inherited from NSObject - static new(): STPPaymentResult; // inherited from NSObject + readonly paymentMethod: STPPaymentMethod; - readonly paymentMethod: STPPaymentMethod; + readonly paymentMethodParams: STPPaymentMethodParams; - constructor(o: { paymentMethod: STPPaymentMethod; }); + readonly paymentOption: STPPaymentOption; - initWithPaymentMethod(paymentMethod: STPPaymentMethod): this; + constructor(o: { paymentOption: STPPaymentOption; }); + + initWithPaymentOption(paymentOption: STPPaymentOption): this; } declare const enum STPPaymentStatus { - Success = 0, + Success = 0, - Error = 1, + Error = 1, - UserCancellation = 2 + UserCancellation = 2 } -declare class STPPersonParams extends NSObject implements STPFormEncodable { +declare class STPPinManagementService extends NSObject { + + static alloc(): STPPinManagementService; // inherited from NSObject + + static new(): STPPinManagementService; // inherited from NSObject + + apiClient: STPAPIClient; + + constructor(o: { keyProvider: STPIssuingCardEphemeralKeyProvider; }); + + initWithKeyProvider(keyProvider: STPIssuingCardEphemeralKeyProvider): this; + + retrievePinVerificationIdOneTimeCodeCompletion(cardId: string, verificationId: string, oneTimeCode: string, completion: (p1: STPIssuingCardPin, p2: STPPinStatus, p3: NSError) => void): void; + + updatePinNewPinVerificationIdOneTimeCodeCompletion(cardId: string, newPin: string, verificationId: string, oneTimeCode: string, completion: (p1: STPIssuingCardPin, p2: STPPinStatus, p3: NSError) => void): void; +} - static alloc(): STPPersonParams; // inherited from NSObject +declare const enum STPPinStatus { - static new(): STPPersonParams; // inherited from NSObject + Success = 0, - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + ErrorVerificationAlreadyRedeemed = 1, - static rootObjectName(): string; + ErrorVerificationCodeIncorrect = 2, - address: STPAddress; + ErrorVerificationExpired = 3, - dateOfBirth: NSDateComponents; + ErrorVerificationTooManyAttempts = 4, - firstName: string; + EphemeralKeyError = 5, - lastName: string; + UnknownError = 6 +} - maidenName: string; +declare var STPProcessingError: string; - verification: STPVerificationParams; +declare class STPPushProvisioningContext extends NSObject { - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + static alloc(): STPPushProvisioningContext; // inherited from NSObject - readonly debugDescription: string; // inherited from NSObjectProtocol + static new(): STPPushProvisioningContext; // inherited from NSObject - readonly description: string; // inherited from NSObjectProtocol + static requestConfigurationWithNameDescriptionLast4Brand(name: string, description: string, last4: string, brand: STPCardBrand): PKAddPaymentPassRequestConfiguration; - readonly hash: number; // inherited from NSObjectProtocol + apiClient: STPAPIClient; - readonly isProxy: boolean; // inherited from NSObjectProtocol + constructor(o: { keyProvider: STPIssuingCardEphemeralKeyProvider; }); - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + addPaymentPassViewControllerGenerateRequestWithCertificateChainNonceNonceSignatureCompletionHandler(controller: PKAddPaymentPassViewController, certificates: NSArray | NSData[], nonce: NSData, nonceSignature: NSData, handler: (p1: PKAddPaymentPassRequest) => void): void; - readonly // inherited from NSObjectProtocol + initWithKeyProvider(keyProvider: STPIssuingCardEphemeralKeyProvider): this; +} - class(): typeof NSObject; +declare class STPPushProvisioningDetailsParams extends NSObject { - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + static alloc(): STPPushProvisioningDetailsParams; // inherited from NSObject - isEqual(object: any): boolean; + static new(): STPPushProvisioningDetailsParams; // inherited from NSObject - isKindOfClass(aClass: typeof NSObject): boolean; + static paramsWithCardIdCertificatesNonceNonceSignature(cardId: string, certificates: NSArray | NSData[], nonce: NSData, nonceSignature: NSData): STPPushProvisioningDetailsParams; - isMemberOfClass(aClass: typeof NSObject): boolean; + readonly cardId: string; - performSelector(aSelector: string): any; + readonly certificates: NSArray; - performSelectorWithObject(aSelector: string, object: any): any; + readonly certificatesBase64: NSArray; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly nonce: NSData; - respondsToSelector(aSelector: string): boolean; + readonly nonceHex: string; - retainCount(): number; + readonly nonceSignature: NSData; - self(): this; + readonly nonceSignatureHex: string; } -declare class STPPinManagementService extends NSObject { +declare class STPRedirectContext extends NSObject { + + static alloc(): STPRedirectContext; // inherited from NSObject + + static new(): STPRedirectContext; // inherited from NSObject - static alloc(): STPPinManagementService; // inherited from NSObject + readonly state: STPRedirectContextState; - static new(): STPPinManagementService; // inherited from NSObject + constructor(o: { paymentIntent: STPPaymentIntent; completion: (p1: string, p2: NSError) => void; }); - constructor(o: { keyProvider: STPIssuingCardEphemeralKeyProvider; }); + constructor(o: { source: STPSource; completion: (p1: string, p2: string, p3: NSError) => void; }); - initWithKeyProvider(keyProvider: STPIssuingCardEphemeralKeyProvider): this; + cancel(): void; - retrievePinVerificationIdOneTimeCodeCompletion(cardId: string, verificationId: string, oneTimeCode: string, completion: (p1: STPIssuingCardPin, p2: STPPinStatus, p3: NSError) => void): void; + initWithPaymentIntentCompletion(paymentIntent: STPPaymentIntent, completion: (p1: string, p2: NSError) => void): this; - updatePinNewPinVerificationIdOneTimeCodeCompletion(cardId: string, newPin: string, verificationId: string, oneTimeCode: string, completion: (p1: STPIssuingCardPin, p2: STPPinStatus, p3: NSError) => void): void; + initWithSourceCompletion(source: STPSource, completion: (p1: string, p2: string, p3: NSError) => void): this; + + startRedirectFlowFromViewController(presentingViewController: UIViewController): void; + + startSafariAppRedirectFlow(): void; + + startSafariViewControllerRedirectFlowFromViewController(presentingViewController: UIViewController): void; } -declare const enum STPPinStatus { +declare const enum STPRedirectContextErrorCode { - Success = 0, + AppRedirectError = 0 +} - ErrorVerificationAlreadyRedeemed = 1, +declare var STPRedirectContextErrorDomain: string; - ErrorVerificationCodeIncorrect = 2, +declare const enum STPRedirectContextState { - ErrorVerificationExpired = 3, + NotStarted = 0, - ErrorVerificationTooManyAttempts = 4, + InProgress = 1, - EphemeralKeyError = 5, + Cancelled = 2, - UnknownError = 6 + Completed = 3 } -declare var STPProcessingError: string; +declare class STPSetupIntent extends NSObject implements STPAPIResponseDecodable { -declare class STPRedirectContext extends NSObject { + static alloc(): STPSetupIntent; // inherited from NSObject - static alloc(): STPRedirectContext; // inherited from NSObject + static decodedObjectFromAPIResponse(response: NSDictionary): STPSetupIntent; - static new(): STPRedirectContext; // inherited from NSObject + static new(): STPSetupIntent; // inherited from NSObject - readonly state: STPRedirectContextState; + readonly clientSecret: string; - constructor(o: { paymentIntent: STPPaymentIntent; completion: (p1: string, p2: NSError) => void; }); + readonly created: Date; - constructor(o: { source: STPSource; completion: (p1: string, p2: string, p3: NSError) => void; }); + readonly customerID: string; - cancel(): void; + readonly lastSetupError: STPSetupIntentLastSetupError; - initWithPaymentIntentCompletion(paymentIntent: STPPaymentIntent, completion: (p1: string, p2: NSError) => void): this; + readonly livemode: boolean; - initWithSourceCompletion(source: STPSource, completion: (p1: string, p2: string, p3: NSError) => void): this; + readonly metadata: NSDictionary; - startRedirectFlowFromViewController(presentingViewController: UIViewController): void; + readonly nextAction: STPIntentAction; - startSafariAppRedirectFlow(): void; + readonly paymentMethodID: string; - startSafariViewControllerRedirectFlowFromViewController(presentingViewController: UIViewController): void; -} + readonly paymentMethodTypes: NSArray; -declare const enum STPRedirectContextState { + readonly status: STPSetupIntentStatus; + + readonly stripeDescription: string; + + readonly stripeID: string; + + readonly usage: STPSetupIntentUsage; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol - NotStarted = 0, + readonly description: string; // inherited from NSObjectProtocol - InProgress = 1, + readonly hash: number; // inherited from NSObjectProtocol - Cancelled = 2, + readonly isProxy: boolean; // inherited from NSObjectProtocol - Completed = 3 + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } -declare class STPSetupIntent extends NSObject implements STPAPIResponseDecodable { +declare class STPSetupIntentConfirmParams extends NSObject implements NSCopying, STPFormEncodable { - static alloc(): STPSetupIntent; // inherited from NSObject + static alloc(): STPSetupIntentConfirmParams; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPSetupIntent; + static isClientSecretValid(clientSecret: string): boolean; - static new(): STPSetupIntent; // inherited from NSObject + static new(): STPSetupIntentConfirmParams; // inherited from NSObject - readonly clientSecret: string; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - readonly created: Date; + static rootObjectName(): string; - readonly customerID: string; + clientSecret: string; - readonly livemode: boolean; + mandate: string; - readonly metadata: NSDictionary; + mandateData: STPMandateDataParams; - readonly nextAction: STPIntentAction; + paymentMethodID: string; - readonly paymentMethodID: string; + paymentMethodParams: STPPaymentMethodParams; - readonly paymentMethodTypes: NSArray; + returnURL: string; - readonly status: STPSetupIntentStatus; + useStripeSDK: number; - readonly stripeDescription: string; + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - readonly stripeID: string; + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly usage: STPSetupIntentUsage; + readonly description: string; // inherited from NSObjectProtocol - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly hash: number; // inherited from NSObjectProtocol - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + constructor(o: { clientSecret: string; }); - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + class(): typeof NSObject; - readonly // inherited from NSObjectProtocol + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - class(): typeof NSObject; + copyWithZone(zone: interop.Pointer | interop.Reference): any; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + initWithClientSecret(clientSecret: string): this; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } -declare class STPSetupIntentConfirmParams extends NSObject implements NSCopying, STPFormEncodable { +declare class STPSetupIntentLastSetupError extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPSetupIntentLastSetupError; // inherited from NSObject - static alloc(): STPSetupIntentConfirmParams; // inherited from NSObject + static decodedObjectFromAPIResponse(response: NSDictionary): STPSetupIntentLastSetupError; - static new(): STPSetupIntentConfirmParams; // inherited from NSObject + static new(): STPSetupIntentLastSetupError; // inherited from NSObject - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + readonly code: string; - static rootObjectName(): string; + readonly declineCode: string; - clientSecret: string; + readonly docURL: string; - paymentMethodID: string; + readonly message: string; - paymentMethodParams: STPPaymentMethodParams; + readonly param: string; - returnURL: string; + readonly paymentMethod: STPPaymentMethod; - useStripeSDK: number; + readonly type: STPSetupIntentLastSetupErrorType; - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - constructor(o: { clientSecret: string; }); + class(): typeof NSObject; - class(): typeof NSObject; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + isEqual(object: any): boolean; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + isKindOfClass(aClass: typeof NSObject): boolean; - initWithClientSecret(clientSecret: string): this; + isMemberOfClass(aClass: typeof NSObject): boolean; - isEqual(object: any): boolean; + performSelector(aSelector: string): any; - isKindOfClass(aClass: typeof NSObject): boolean; + performSelectorWithObject(aSelector: string, object: any): any; - isMemberOfClass(aClass: typeof NSObject): boolean; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - performSelector(aSelector: string): any; + respondsToSelector(aSelector: string): boolean; - performSelectorWithObject(aSelector: string, object: any): any; + retainCount(): number; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + self(): this; +} + +declare var STPSetupIntentLastSetupErrorCodeAuthenticationFailure: string; + +declare const enum STPSetupIntentLastSetupErrorType { + + Unknown = 0, + + APIConnection = 1, + + API = 2, + + Authentication = 3, + + Card = 4, - respondsToSelector(aSelector: string): boolean; + Idempotency = 5, - retainCount(): number; + InvalidRequest = 6, - self(): this; + RateLimit = 7 } declare const enum STPSetupIntentStatus { - Unknown = 0, + Unknown = 0, - RequiresPaymentMethod = 1, + RequiresPaymentMethod = 1, - RequiresConfirmation = 2, + RequiresConfirmation = 2, - RequiresAction = 3, + RequiresAction = 3, - Processing = 4, + Processing = 4, - Succeeded = 5, + Succeeded = 5, - Canceled = 6 + Canceled = 6 } declare const enum STPSetupIntentUsage { - Unknown = 0, + Unknown = 0, - None = 1, + None = 1, - OnSession = 2, + OnSession = 2, - OffSession = 3 + OffSession = 3 } declare class STPShippingAddressViewController extends STPCoreTableViewController { - static alloc(): STPShippingAddressViewController; // inherited from NSObject + static alloc(): STPShippingAddressViewController; // inherited from NSObject - static new(): STPShippingAddressViewController; // inherited from NSObject + static new(): STPShippingAddressViewController; // inherited from NSObject - delegate: STPShippingAddressViewControllerDelegate; + delegate: STPShippingAddressViewControllerDelegate; - constructor(o: { configuration: STPPaymentConfiguration; theme: STPTheme; currency: string; shippingAddress: STPAddress; selectedShippingMethod: PKShippingMethod; prefilledInformation: STPUserInformation; }); + constructor(o: { configuration: STPPaymentConfiguration; theme: STPTheme; currency: string; shippingAddress: STPAddress; selectedShippingMethod: PKShippingMethod; prefilledInformation: STPUserInformation; }); - constructor(o: { paymentContext: STPPaymentContext; }); + constructor(o: { paymentContext: STPPaymentContext; }); - dismissWithCompletion(completion: () => void): void; + dismissWithCompletion(completion: () => void): void; - initWithConfigurationThemeCurrencyShippingAddressSelectedShippingMethodPrefilledInformation(configuration: STPPaymentConfiguration, theme: STPTheme, currency: string, shippingAddress: STPAddress, selectedShippingMethod: PKShippingMethod, prefilledInformation: STPUserInformation): this; + initWithConfigurationThemeCurrencyShippingAddressSelectedShippingMethodPrefilledInformation(configuration: STPPaymentConfiguration, theme: STPTheme, currency: string, shippingAddress: STPAddress, selectedShippingMethod: PKShippingMethod, prefilledInformation: STPUserInformation): this; - initWithPaymentContext(paymentContext: STPPaymentContext): this; + initWithPaymentContext(paymentContext: STPPaymentContext): this; } interface STPShippingAddressViewControllerDelegate extends NSObjectProtocol { - shippingAddressViewControllerDidCancel(addressViewController: STPShippingAddressViewController): void; + shippingAddressViewControllerDidCancel(addressViewController: STPShippingAddressViewController): void; - shippingAddressViewControllerDidEnterAddressCompletion(addressViewController: STPShippingAddressViewController, address: STPAddress, completion: (p1: STPShippingStatus, p2: NSError, p3: NSArray, p4: PKShippingMethod) => void): void; + shippingAddressViewControllerDidEnterAddressCompletion(addressViewController: STPShippingAddressViewController, address: STPAddress, completion: (p1: STPShippingStatus, p2: NSError, p3: NSArray, p4: PKShippingMethod) => void): void; - shippingAddressViewControllerDidFinishWithAddressShippingMethod(addressViewController: STPShippingAddressViewController, address: STPAddress, method: PKShippingMethod): void; + shippingAddressViewControllerDidFinishWithAddressShippingMethod(addressViewController: STPShippingAddressViewController, address: STPAddress, method: PKShippingMethod): void; } declare var STPShippingAddressViewControllerDelegate: { - prototype: STPShippingAddressViewControllerDelegate; + prototype: STPShippingAddressViewControllerDelegate; }; declare const enum STPShippingStatus { - Valid = 0, + Valid = 0, - Invalid = 1 + Invalid = 1 } declare const enum STPShippingType { - Shipping = 0, + Shipping = 0, - Delivery = 1 + Delivery = 1 } declare class STPSource extends NSObject implements STPAPIResponseDecodable, STPPaymentOption, STPSourceProtocol { - static alloc(): STPSource; // inherited from NSObject + static alloc(): STPSource; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPSource; + static decodedObjectFromAPIResponse(response: NSDictionary): STPSource; - static new(): STPSource; // inherited from NSObject + static new(): STPSource; // inherited from NSObject - readonly amount: number; + readonly amount: number; - readonly cardDetails: STPSourceCardDetails; + readonly cardDetails: STPSourceCardDetails; - readonly clientSecret: string; + readonly clientSecret: string; - readonly created: Date; + readonly created: Date; - readonly currency: string; + readonly currency: string; - readonly details: NSDictionary; + readonly details: NSDictionary; - readonly flow: STPSourceFlow; + readonly flow: STPSourceFlow; - readonly livemode: boolean; + readonly klarnaDetails: STPSourceKlarnaDetails; - readonly metadata: NSDictionary; + readonly livemode: boolean; - readonly owner: STPSourceOwner; + readonly metadata: NSDictionary; - readonly receiver: STPSourceReceiver; + readonly owner: STPSourceOwner; - readonly redirect: STPSourceRedirect; + readonly receiver: STPSourceReceiver; - readonly sepaDebitDetails: STPSourceSEPADebitDetails; + readonly redirect: STPSourceRedirect; - readonly status: STPSourceStatus; + readonly sepaDebitDetails: STPSourceSEPADebitDetails; - readonly type: STPSourceType; + readonly status: STPSourceStatus; - readonly usage: STPSourceUsage; + readonly type: STPSourceType; - readonly verification: STPSourceVerification; + readonly usage: STPSourceUsage; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly verification: STPSourceVerification; - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly weChatPayDetails: STPSourceWeChatPayDetails; - readonly description: string; // inherited from NSObjectProtocol + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly hash: number; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly image: UIImage; // inherited from STPPaymentOption + readonly description: string; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly label: string; // inherited from STPPaymentOption + readonly image: UIImage; // inherited from STPPaymentOption - readonly stripeID: string; // inherited from STPSourceProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly label: string; // inherited from STPPaymentOption - readonly templateImage: UIImage; // inherited from STPPaymentOption + readonly reusable: boolean; // inherited from STPPaymentOption - readonly // inherited from NSObjectProtocol + readonly stripeID: string; // inherited from STPSourceProtocol - class(): typeof NSObject; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + readonly templateImage: UIImage; // inherited from STPPaymentOption - isEqual(object: any): boolean; + readonly // inherited from NSObjectProtocol - isKindOfClass(aClass: typeof NSObject): boolean; + class(): typeof NSObject; - isMemberOfClass(aClass: typeof NSObject): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - performSelector(aSelector: string): any; + isEqual(object: any): boolean; - performSelectorWithObject(aSelector: string, object: any): any; + isKindOfClass(aClass: typeof NSObject): boolean; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + isMemberOfClass(aClass: typeof NSObject): boolean; - respondsToSelector(aSelector: string): boolean; + performSelector(aSelector: string): any; - retainCount(): number; + performSelectorWithObject(aSelector: string, object: any): any; - self(): this; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } declare const enum STPSourceCard3DSecureStatus { - Required = 0, + Required = 0, + + Optional = 1, - Optional = 1, + NotSupported = 2, - NotSupported = 2, + Recommended = 3, - Unknown = 3 + Unknown = 4 } declare class STPSourceCardDetails extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPSourceCardDetails; // inherited from NSObject + static alloc(): STPSourceCardDetails; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceCardDetails; + static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceCardDetails; - static new(): STPSourceCardDetails; // inherited from NSObject + static new(): STPSourceCardDetails; // inherited from NSObject - readonly brand: STPCardBrand; + readonly brand: STPCardBrand; - readonly country: string; + readonly country: string; - readonly expMonth: number; + readonly expMonth: number; - readonly expYear: number; + readonly expYear: number; - readonly funding: STPCardFundingType; + readonly funding: STPCardFundingType; - readonly isApplePayCard: boolean; + readonly isApplePayCard: boolean; - readonly last4: string; + readonly last4: string; - readonly threeDSecure: STPSourceCard3DSecureStatus; + readonly threeDSecure: STPSourceCard3DSecureStatus; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare const enum STPSourceFlow { - None = 0, + None = 0, + + Redirect = 1, + + CodeVerification = 2, + + Receiver = 3, + + Unknown = 4 +} + +declare class STPSourceKlarnaDetails extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPSourceKlarnaDetails; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceKlarnaDetails; + + static new(): STPSourceKlarnaDetails; // inherited from NSObject + + readonly clientToken: string; + + readonly purchaseCountry: string; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - Redirect = 1, + isEqual(object: any): boolean; - CodeVerification = 2, + isKindOfClass(aClass: typeof NSObject): boolean; - Receiver = 3, + isMemberOfClass(aClass: typeof NSObject): boolean; - Unknown = 4 + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } declare class STPSourceOwner extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPSourceOwner; // inherited from NSObject + static alloc(): STPSourceOwner; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceOwner; + static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceOwner; - static new(): STPSourceOwner; // inherited from NSObject + static new(): STPSourceOwner; // inherited from NSObject - readonly address: STPAddress; + readonly address: STPAddress; - readonly email: string; + readonly email: string; - readonly name: string; + readonly name: string; - readonly phone: string; + readonly phone: string; - readonly verifiedAddress: STPAddress; + readonly verifiedAddress: STPAddress; - readonly verifiedEmail: string; + readonly verifiedEmail: string; - readonly verifiedName: string; + readonly verifiedName: string; - readonly verifiedPhone: string; + readonly verifiedPhone: string; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare class STPSourceParams extends NSObject implements NSCopying, STPFormEncodable { - static alipayParamsWithAmountCurrencyReturnURL(amount: number, currency: string, returnURL: string): STPSourceParams; + static alipayParamsWithAmountCurrencyReturnURL(amount: number, currency: string, returnURL: string): STPSourceParams; + + static alipayReusableParamsWithCurrencyReturnURL(currency: string, returnURL: string): STPSourceParams; + + static alloc(): STPSourceParams; // inherited from NSObject + + static bancontactParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; - static alipayReusableParamsWithCurrencyReturnURL(currency: string, returnURL: string): STPSourceParams; + static cardParamsWithCard(card: STPCardParams): STPSourceParams; - static alloc(): STPSourceParams; // inherited from NSObject + static epsParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; - static bancontactParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; + static giropayParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; - static cardParamsWithCard(card: STPCardParams): STPSourceParams; + static idealParamsWithAmountNameReturnURLStatementDescriptorBank(amount: number, name: string, returnURL: string, statementDescriptor: string, bank: string): STPSourceParams; - static epsParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; + static klarnaParamsWithReturnURLCurrencyPurchaseCountryItemsCustomPaymentMethods(returnURL: string, currency: string, purchaseCountry: string, items: NSArray | STPKlarnaLineItem[], customPaymentMethods: STPKlarnaPaymentMethods): STPSourceParams; - static giropayParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; + static klarnaParamsWithReturnURLCurrencyPurchaseCountryItemsCustomPaymentMethodsBillingAddressBillingFirstNameBillingLastNameBillingDOB(returnURL: string, currency: string, purchaseCountry: string, items: NSArray | STPKlarnaLineItem[], customPaymentMethods: STPKlarnaPaymentMethods, address: STPAddress, firstName: string, lastName: string, dateOfBirth: STPDateOfBirth): STPSourceParams; - static idealParamsWithAmountNameReturnURLStatementDescriptorBank(amount: number, name: string, returnURL: string, statementDescriptor: string, bank: string): STPSourceParams; + static masterpassParamsWithCartIdTransactionId(cartId: string, transactionId: string): STPSourceParams; - static masterpassParamsWithCartIdTransactionId(cartId: string, transactionId: string): STPSourceParams; + static multibancoParamsWithAmountReturnURLEmail(amount: number, returnURL: string, email: string): STPSourceParams; - static multibancoParamsWithAmountReturnURLEmail(amount: number, returnURL: string, email: string): STPSourceParams; + static new(): STPSourceParams; // inherited from NSObject - static new(): STPSourceParams; // inherited from NSObject + static p24ParamsWithAmountCurrencyEmailNameReturnURL(amount: number, currency: string, email: string, name: string, returnURL: string): STPSourceParams; - static p24ParamsWithAmountCurrencyEmailNameReturnURL(amount: number, currency: string, email: string, name: string, returnURL: string): STPSourceParams; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static rootObjectName(): string; - static rootObjectName(): string; + static sepaDebitParamsWithNameIbanAddressLine1CityPostalCodeCountry(name: string, iban: string, addressLine1: string, city: string, postalCode: string, country: string): STPSourceParams; - static sepaDebitParamsWithNameIbanAddressLine1CityPostalCodeCountry(name: string, iban: string, addressLine1: string, city: string, postalCode: string, country: string): STPSourceParams; + static sofortParamsWithAmountReturnURLCountryStatementDescriptor(amount: number, returnURL: string, country: string, statementDescriptor: string): STPSourceParams; - static sofortParamsWithAmountReturnURLCountryStatementDescriptor(amount: number, returnURL: string, country: string, statementDescriptor: string): STPSourceParams; + static threeDSecureParamsWithAmountCurrencyReturnURLCard(amount: number, currency: string, returnURL: string, card: string): STPSourceParams; - static threeDSecureParamsWithAmountCurrencyReturnURLCard(amount: number, currency: string, returnURL: string, card: string): STPSourceParams; + static visaCheckoutParamsWithCallId(callId: string): STPSourceParams; - static visaCheckoutParamsWithCallId(callId: string): STPSourceParams; + static wechatPayParamsWithAmountCurrencyAppIdStatementDescriptor(amount: number, currency: string, appId: string, statementDescriptor: string): STPSourceParams; - amount: number; + amount: number; - currency: string; + currency: string; - flow: STPSourceFlow; + flow: STPSourceFlow; - metadata: NSDictionary; + metadata: NSDictionary; - owner: NSDictionary; + owner: NSDictionary; - rawTypeString: string; + rawTypeString: string; - redirect: NSDictionary; + redirect: NSDictionary; - token: string; + token: string; - type: STPSourceType; + type: STPSourceType; - usage: STPSourceUsage; + usage: STPSourceUsage; - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + copyWithZone(zone: interop.Pointer | interop.Reference): any; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } interface STPSourceProtocol extends NSObjectProtocol { - stripeID: string; + stripeID: string; } declare var STPSourceProtocol: { - prototype: STPSourceProtocol; + prototype: STPSourceProtocol; }; declare class STPSourceReceiver extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPSourceReceiver; // inherited from NSObject + static alloc(): STPSourceReceiver; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceReceiver; + static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceReceiver; - static new(): STPSourceReceiver; // inherited from NSObject + static new(): STPSourceReceiver; // inherited from NSObject - readonly address: string; + readonly address: string; - readonly amountCharged: number; + readonly amountCharged: number; - readonly amountReceived: number; + readonly amountReceived: number; - readonly amountReturned: number; + readonly amountReturned: number; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare class STPSourceRedirect extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPSourceRedirect; // inherited from NSObject + static alloc(): STPSourceRedirect; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceRedirect; + static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceRedirect; - static new(): STPSourceRedirect; // inherited from NSObject + static new(): STPSourceRedirect; // inherited from NSObject - readonly returnURL: NSURL; + readonly returnURL: NSURL; - readonly status: STPSourceRedirectStatus; + readonly status: STPSourceRedirectStatus; - readonly url: NSURL; + readonly url: NSURL; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare const enum STPSourceRedirectStatus { - Pending = 0, + Pending = 0, - Succeeded = 1, + Succeeded = 1, - Failed = 2, + Failed = 2, - Unknown = 3 + NotRequired = 3, + + Unknown = 4 } declare class STPSourceSEPADebitDetails extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPSourceSEPADebitDetails; // inherited from NSObject + static alloc(): STPSourceSEPADebitDetails; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceSEPADebitDetails; + static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceSEPADebitDetails; - static new(): STPSourceSEPADebitDetails; // inherited from NSObject + static new(): STPSourceSEPADebitDetails; // inherited from NSObject - readonly bankCode: string; + readonly bankCode: string; - readonly country: string; + readonly country: string; - readonly fingerprint: string; + readonly fingerprint: string; - readonly last4: string; + readonly last4: string; - readonly mandateReference: string; + readonly mandateReference: string; - readonly mandateURL: NSURL; + readonly mandateURL: NSURL; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare const enum STPSourceStatus { - Pending = 0, + Pending = 0, - Chargeable = 1, + Chargeable = 1, - Consumed = 2, + Consumed = 2, - Canceled = 3, + Canceled = 3, - Failed = 4, + Failed = 4, - Unknown = 5 + Unknown = 5 } declare const enum STPSourceType { - Bancontact = 0, + Bancontact = 0, + + Card = 1, - Card = 1, + Giropay = 2, - Giropay = 2, + IDEAL = 3, - IDEAL = 3, + SEPADebit = 4, - SEPADebit = 4, + Sofort = 5, - Sofort = 5, + ThreeDSecure = 6, - ThreeDSecure = 6, + Alipay = 7, - Alipay = 7, + P24 = 8, - P24 = 8, + EPS = 9, - EPS = 9, + Multibanco = 10, - Multibanco = 10, + WeChatPay = 11, - Unknown = 11 + Klarna = 12, + + Unknown = 13 } declare const enum STPSourceUsage { - Reusable = 0, + Reusable = 0, - SingleUse = 1, + SingleUse = 1, - Unknown = 2 + Unknown = 2 } declare class STPSourceVerification extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPSourceVerification; // inherited from NSObject + static alloc(): STPSourceVerification; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceVerification; + static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceVerification; - static new(): STPSourceVerification; // inherited from NSObject + static new(): STPSourceVerification; // inherited from NSObject - readonly attemptsRemaining: number; + readonly attemptsRemaining: number; - readonly status: STPSourceVerificationStatus; + readonly status: STPSourceVerificationStatus; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare const enum STPSourceVerificationStatus { - Pending = 0, + Pending = 0, + + Succeeded = 1, + + Failed = 2, + + Unknown = 3 +} + +declare class STPSourceWeChatPayDetails extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPSourceWeChatPayDetails; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPSourceWeChatPayDetails; + + static new(): STPSourceWeChatPayDetails; // inherited from NSObject + + readonly weChatAppURL: string; + + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + + readonly debugDescription: string; // inherited from NSObjectProtocol + + readonly description: string; // inherited from NSObjectProtocol + + readonly hash: number; // inherited from NSObjectProtocol + + readonly isProxy: boolean; // inherited from NSObjectProtocol + + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + + readonly // inherited from NSObjectProtocol + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; - Succeeded = 1, + performSelector(aSelector: string): any; - Failed = 2, + performSelectorWithObject(aSelector: string, object: any): any; - Unknown = 3 + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } declare function STPStringFromCardBrand(brand: STPCardBrand): string; +declare function STPStringFromFPXBankBrand(brand: STPFPXBankBrand): string; + declare var STPStripeErrorCodeKey: string; declare var STPStripeErrorTypeKey: string; declare class STPTheme extends NSObject implements NSCopying { - static alloc(): STPTheme; // inherited from NSObject + static alloc(): STPTheme; // inherited from NSObject - static defaultTheme(): STPTheme; + static defaultTheme(): STPTheme; - static new(): STPTheme; // inherited from NSObject + static new(): STPTheme; // inherited from NSObject - accentColor: UIColor; + accentColor: UIColor; - barStyle: UIBarStyle; + barStyle: UIBarStyle; - emphasisFont: UIFont; + emphasisFont: UIFont; - errorColor: UIColor; + errorColor: UIColor; - font: UIFont; + font: UIFont; - readonly largeFont: UIFont; + readonly largeFont: UIFont; - primaryBackgroundColor: UIColor; + primaryBackgroundColor: UIColor; - primaryForegroundColor: UIColor; + primaryForegroundColor: UIColor; - readonly quaternaryBackgroundColor: UIColor; + readonly quaternaryBackgroundColor: UIColor; - secondaryBackgroundColor: UIColor; + secondaryBackgroundColor: UIColor; - secondaryForegroundColor: UIColor; + secondaryForegroundColor: UIColor; - readonly smallFont: UIFont; + readonly smallFont: UIFont; - readonly tertiaryBackgroundColor: UIColor; + readonly tertiaryBackgroundColor: UIColor; - readonly tertiaryForegroundColor: UIColor; + readonly tertiaryForegroundColor: UIColor; - translucentNavigationBar: boolean; + translucentNavigationBar: boolean; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + copyWithZone(zone: interop.Pointer | interop.Reference): any; } declare class STPThreeDSButtonCustomization extends NSObject { - static alloc(): STPThreeDSButtonCustomization; // inherited from NSObject + static alloc(): STPThreeDSButtonCustomization; // inherited from NSObject - static defaultSettingsForButtonType(type: STPThreeDSCustomizationButtonType): STPThreeDSButtonCustomization; + static defaultSettingsForButtonType(type: STPThreeDSCustomizationButtonType): STPThreeDSButtonCustomization; - static new(): STPThreeDSButtonCustomization; // inherited from NSObject + static new(): STPThreeDSButtonCustomization; // inherited from NSObject - backgroundColor: UIColor; + backgroundColor: UIColor; - cornerRadius: number; + cornerRadius: number; - font: UIFont; + font: UIFont; - textColor: UIColor; + textColor: UIColor; - titleStyle: STPThreeDSButtonTitleStyle; + titleStyle: STPThreeDSButtonTitleStyle; - constructor(o: { backgroundColor: UIColor; cornerRadius: number; }); + constructor(o: { backgroundColor: UIColor; cornerRadius: number; }); - initWithBackgroundColorCornerRadius(backgroundColor: UIColor, cornerRadius: number): this; + initWithBackgroundColorCornerRadius(backgroundColor: UIColor, cornerRadius: number): this; } declare const enum STPThreeDSButtonTitleStyle { - Default = 0, + Default = 0, - Uppercase = 1, + Uppercase = 1, - Lowercase = 2, + Lowercase = 2, - SentenceCapitalized = 3 + SentenceCapitalized = 3 } declare const enum STPThreeDSCustomizationButtonType { - Submit = 0, + Submit = 0, - Continue = 1, + Continue = 1, - Next = 2, + Next = 2, - Cancel = 3, + Cancel = 3, - Resend = 4 + Resend = 4 } declare class STPThreeDSCustomizationSettings extends NSObject { - static alloc(): STPThreeDSCustomizationSettings; // inherited from NSObject + static alloc(): STPThreeDSCustomizationSettings; // inherited from NSObject - static defaultSettings(): STPThreeDSCustomizationSettings; + static defaultSettings(): STPThreeDSCustomizationSettings; - static new(): STPThreeDSCustomizationSettings; // inherited from NSObject + static new(): STPThreeDSCustomizationSettings; // inherited from NSObject - authenticationTimeout: number; + authenticationTimeout: number; - uiCustomization: STPThreeDSUICustomization; + uiCustomization: STPThreeDSUICustomization; } declare class STPThreeDSFooterCustomization extends NSObject { - static alloc(): STPThreeDSFooterCustomization; // inherited from NSObject + static alloc(): STPThreeDSFooterCustomization; // inherited from NSObject - static defaultSettings(): STPThreeDSFooterCustomization; + static defaultSettings(): STPThreeDSFooterCustomization; - static new(): STPThreeDSFooterCustomization; // inherited from NSObject + static new(): STPThreeDSFooterCustomization; // inherited from NSObject - backgroundColor: UIColor; + backgroundColor: UIColor; - chevronColor: UIColor; + chevronColor: UIColor; - font: UIFont; + font: UIFont; - headingFont: UIFont; + headingFont: UIFont; - headingTextColor: UIColor; + headingTextColor: UIColor; - textColor: UIColor; + textColor: UIColor; } declare class STPThreeDSLabelCustomization extends NSObject { - static alloc(): STPThreeDSLabelCustomization; // inherited from NSObject + static alloc(): STPThreeDSLabelCustomization; // inherited from NSObject - static defaultSettings(): STPThreeDSLabelCustomization; + static defaultSettings(): STPThreeDSLabelCustomization; - static new(): STPThreeDSLabelCustomization; // inherited from NSObject + static new(): STPThreeDSLabelCustomization; // inherited from NSObject - font: UIFont; + font: UIFont; - headingFont: UIFont; + headingFont: UIFont; - headingTextColor: UIColor; + headingTextColor: UIColor; - textColor: UIColor; + textColor: UIColor; } declare class STPThreeDSNavigationBarCustomization extends NSObject { - static alloc(): STPThreeDSNavigationBarCustomization; // inherited from NSObject + static alloc(): STPThreeDSNavigationBarCustomization; // inherited from NSObject - static defaultSettings(): STPThreeDSNavigationBarCustomization; + static defaultSettings(): STPThreeDSNavigationBarCustomization; - static new(): STPThreeDSNavigationBarCustomization; // inherited from NSObject + static new(): STPThreeDSNavigationBarCustomization; // inherited from NSObject - barStyle: UIBarStyle; + barStyle: UIBarStyle; - barTintColor: UIColor; + barTintColor: UIColor; - buttonText: string; + buttonText: string; - font: UIFont; + font: UIFont; - headerText: string; + headerText: string; - textColor: UIColor; + textColor: UIColor; - translucent: boolean; + translucent: boolean; } declare class STPThreeDSSelectionCustomization extends NSObject { - static alloc(): STPThreeDSSelectionCustomization; // inherited from NSObject + static alloc(): STPThreeDSSelectionCustomization; // inherited from NSObject - static defaultSettings(): STPThreeDSSelectionCustomization; + static defaultSettings(): STPThreeDSSelectionCustomization; - static new(): STPThreeDSSelectionCustomization; // inherited from NSObject + static new(): STPThreeDSSelectionCustomization; // inherited from NSObject - primarySelectedColor: UIColor; + primarySelectedColor: UIColor; - secondarySelectedColor: UIColor; + secondarySelectedColor: UIColor; - unselectedBackgroundColor: UIColor; + unselectedBackgroundColor: UIColor; - unselectedBorderColor: UIColor; + unselectedBorderColor: UIColor; } declare class STPThreeDSTextFieldCustomization extends NSObject { - static alloc(): STPThreeDSTextFieldCustomization; // inherited from NSObject + static alloc(): STPThreeDSTextFieldCustomization; // inherited from NSObject - static defaultSettings(): STPThreeDSTextFieldCustomization; + static defaultSettings(): STPThreeDSTextFieldCustomization; - static new(): STPThreeDSTextFieldCustomization; // inherited from NSObject + static new(): STPThreeDSTextFieldCustomization; // inherited from NSObject - borderColor: UIColor; + borderColor: UIColor; - borderWidth: number; + borderWidth: number; - cornerRadius: number; + cornerRadius: number; - font: UIFont; + font: UIFont; - keyboardAppearance: UIKeyboardAppearance; + keyboardAppearance: UIKeyboardAppearance; - placeholderTextColor: UIColor; + placeholderTextColor: UIColor; - textColor: UIColor; + textColor: UIColor; } declare class STPThreeDSUICustomization extends NSObject { - static alloc(): STPThreeDSUICustomization; // inherited from NSObject + static alloc(): STPThreeDSUICustomization; // inherited from NSObject - static defaultSettings(): STPThreeDSUICustomization; + static defaultSettings(): STPThreeDSUICustomization; - static new(): STPThreeDSUICustomization; // inherited from NSObject + static new(): STPThreeDSUICustomization; // inherited from NSObject - activityIndicatorViewStyle: UIActivityIndicatorViewStyle; + activityIndicatorViewStyle: UIActivityIndicatorViewStyle; - backgroundColor: UIColor; + backgroundColor: UIColor; - blurStyle: UIBlurEffectStyle; + blurStyle: UIBlurEffectStyle; - footerCustomization: STPThreeDSFooterCustomization; + footerCustomization: STPThreeDSFooterCustomization; - labelCustomization: STPThreeDSLabelCustomization; + labelCustomization: STPThreeDSLabelCustomization; - navigationBarCustomization: STPThreeDSNavigationBarCustomization; + navigationBarCustomization: STPThreeDSNavigationBarCustomization; - preferredStatusBarStyle: UIStatusBarStyle; + selectionCustomization: STPThreeDSSelectionCustomization; - selectionCustomization: STPThreeDSSelectionCustomization; + textFieldCustomization: STPThreeDSTextFieldCustomization; - textFieldCustomization: STPThreeDSTextFieldCustomization; + buttonCustomizationForButtonType(buttonType: STPThreeDSCustomizationButtonType): STPThreeDSButtonCustomization; - buttonCustomizationForButtonType(buttonType: STPThreeDSCustomizationButtonType): STPThreeDSButtonCustomization; - - setButtonCustomizationForType(buttonCustomization: STPThreeDSButtonCustomization, buttonType: STPThreeDSCustomizationButtonType): void; + setButtonCustomizationForType(buttonCustomization: STPThreeDSButtonCustomization, buttonType: STPThreeDSCustomizationButtonType): void; } declare class STPToken extends NSObject implements STPAPIResponseDecodable, STPSourceProtocol { - static alloc(): STPToken; // inherited from NSObject + static alloc(): STPToken; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPToken; + static decodedObjectFromAPIResponse(response: NSDictionary): STPToken; - static new(): STPToken; // inherited from NSObject + static new(): STPToken; // inherited from NSObject - readonly bankAccount: STPBankAccount; + readonly bankAccount: STPBankAccount; - readonly card: STPCard; + readonly card: STPCard; - readonly created: Date; + readonly created: Date; - readonly livemode: boolean; + readonly livemode: boolean; - readonly tokenId: string; + readonly tokenId: string; - readonly type: STPTokenType; + readonly type: STPTokenType; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - readonly hash: number; // inherited from NSObjectProtocol + readonly hash: number; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly stripeID: string; // inherited from STPSourceProtocol + readonly stripeID: string; // inherited from STPSourceProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + isEqual(object: any): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + isKindOfClass(aClass: typeof NSObject): boolean; - isMemberOfClass(aClass: typeof NSObject): boolean; + isMemberOfClass(aClass: typeof NSObject): boolean; - performSelector(aSelector: string): any; + performSelector(aSelector: string): any; - performSelectorWithObject(aSelector: string, object: any): any; + performSelectorWithObject(aSelector: string, object: any): any; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; + respondsToSelector(aSelector: string): boolean; - retainCount(): number; + retainCount(): number; - self(): this; + self(): this; } declare const enum STPTokenType { - Account = 0, + Account = 0, - BankAccount = 1, + BankAccount = 1, - Card = 2, + Card = 2, - PII = 3, + PII = 3, - CVCUpdate = 4 + CVCUpdate = 4 } declare class STPUserInformation extends NSObject implements NSCopying { - static alloc(): STPUserInformation; // inherited from NSObject - - static new(): STPUserInformation; // inherited from NSObject - - billingAddress: STPAddress; - - shippingAddress: STPAddress; - - copyWithZone(zone: interop.Pointer | interop.Reference): any; - - setBillingAddressWithBillingDetails(billingDetails: STPPaymentMethodBillingDetails): void; -} - -declare class STPVerificationParams extends NSObject implements STPFormEncodable { - - static alloc(): STPVerificationParams; // inherited from NSObject - - static new(): STPVerificationParams; // inherited from NSObject - - static propertyNamesToFormFieldNamesMapping(): NSDictionary; - - static rootObjectName(): string; + static alloc(): STPUserInformation; // inherited from NSObject - document: string; + static new(): STPUserInformation; // inherited from NSObject - documentBack: string; + billingAddress: STPAddress; - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + shippingAddress: STPAddress; - readonly debugDescription: string; // inherited from NSObjectProtocol + copyWithZone(zone: interop.Pointer | interop.Reference): any; - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly // inherited from NSObjectProtocol - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; + setBillingAddressWithBillingDetails(billingDetails: STPPaymentMethodBillingDetails): void; } declare class Stripe extends NSObject { - static alloc(): Stripe; // inherited from NSObject + static alloc(): Stripe; // inherited from NSObject + + static canSubmitPaymentRequest(paymentRequest: PKPaymentRequest): boolean; - static canSubmitPaymentRequest(paymentRequest: PKPaymentRequest): boolean; + static defaultPublishableKey(): string; - static defaultPublishableKey(): string; + static deviceSupportsApplePay(): boolean; - static deviceSupportsApplePay(): boolean; + static handleStripeURLCallbackWithURL(url: NSURL): boolean; - static handleStripeURLCallbackWithURL(url: NSURL): boolean; + static new(): Stripe; // inherited from NSObject - static new(): Stripe; // inherited from NSObject + static paymentRequestWithMerchantIdentifier(merchantIdentifier: string): PKPaymentRequest; - static paymentRequestWithMerchantIdentifier(merchantIdentifier: string): PKPaymentRequest; + static paymentRequestWithMerchantIdentifierCountryCurrency(merchantIdentifier: string, countryCode: string, currencyCode: string): PKPaymentRequest; - static paymentRequestWithMerchantIdentifierCountryCurrency(merchantIdentifier: string, countryCode: string, currencyCode: string): PKPaymentRequest; + static setDefaultPublishableKey(publishableKey: string): void; - static setDefaultPublishableKey(publishableKey: string): void; + static JCBPaymentNetworkSupported: boolean; - static JCBPaymentNetworkSupported: boolean; + static additionalEnabledApplePayNetworks: NSArray; } declare var Stripe3DS2ProtocolVersion: string;