From fa58a2d1dd80f47181e7412f99d452e1b4cb118f Mon Sep 17 00:00:00 2001 From: Jeremy PELE Date: Tue, 3 Sep 2019 12:36:30 +0200 Subject: [PATCH] SCA Updates - PaymentIntents & SetupIntents management (#81) * Update angular-demo to NS6 * Update demo to NS6 * Update android-sdk to 10.2.1 * Remove dev-typescript * migrate API * restore SDK 8.7.0 * Use androidx * fix namespace * fix app start * remove bundle and uglify * Restore 10.2.1 SDK * Fix merge issue * Update defs * Enable multidex * Bump minSDK version * Update {N} version on travis * Remove useless template * Rename _android var to _widget * fix commas * Implements createPaymentMethod * Add debug run * Add stripe3ds2 typings * Init PaymentConfiguration before CustomerSession * Fix requestPayment on Android * Cleans * Update typings * Update xcode and node versions * Fix frame is undefined * Add webpack configs to demos * confirmPaymentIntent uses StripePaymentIntentParams * Add create intent endpoint * Demo Intent * PaymentConfiguration.init called once * Update paymentIntent conf * Update ios podfile to 16.0.6 * Fix creditcard view * Fix paymentContextDidCreatePaymentResultCompletion * add debug demo.ios * Remove deleted createCardSources attribute * tmp paymentWithAuthent * Changelog * Remove unused import * Fix authentification context * Add status * Factorize StripeIntent * Clean component * cleans * Remove source and use payment method * remove source * Restore keys * Update SDK in README * Fix semicolons * trailing spaces * cleans * refactor stripeIntent for Android * Update README * tslint * Exclude platforms from tslint * Handle automatic and manual payment intent flows * fix tslint * Update README and Changelog * feedbacks * cleans * requiresCapture helper * Bump version * Fix ios contextMethod from modals * fix linter * Remove confirmPaymentIntent from index.d.ts * Fix keyUpdateListener.onKeyUpdateFailure error * Push last PR updates --- CHANGELOG.md | 13 + README.md | 50 +- .../app/App_Resources/Android/app.gradle | 3 +- .../Android/src/main/AndroidManifest.xml | 2 +- demo-angular/app/app.component.html | 2 - demo-angular/app/app.component.ts | 2 +- demo-angular/app/app.module.ts | 7 +- demo-angular/app/app.routing.ts | 2 + .../app/demo/creditcardview.component.ts | 4 - demo-angular/app/demo/home.component.html | 5 + .../app/demo/intent-modal.component.html | 15 + .../app/demo/intent-modal.component.ts | 66 + demo-angular/app/demo/intent.component.html | 27 + demo-angular/app/demo/intent.component.ts | 131 + demo-angular/app/demo/standard.component.html | 22 +- demo-angular/app/demo/standard.component.ts | 3 +- demo-angular/app/demo/stripe.service.ts | 98 +- demo/app/App_Resources/Android/app.gradle | 1 + .../Android/src/main/AndroidManifest.xml | 2 +- demo/app/demo/stripe.service.ts | 98 +- src/index.d.ts | 15 +- src/package.json | 6 +- src/platforms/android/include.gradle | 2 +- src/platforms/ios/Podfile | 2 +- src/standard/index.d.ts | 2 +- src/standard/standard.android.ts | 144 +- src/standard/standard.common.ts | 2 +- src/standard/standard.ios.ts | 12 +- src/stripe.android.ts | 255 +- src/stripe.ios.ts | 191 +- src/typings/java!Stripe.d.ts | 8882 +++++++++++------ src/typings/objc!Stripe.d.ts | 4537 ++++++--- 32 files changed, 9462 insertions(+), 5141 deletions(-) delete mode 100644 demo-angular/app/app.component.html create mode 100644 demo-angular/app/demo/intent-modal.component.html create mode 100644 demo-angular/app/demo/intent-modal.component.ts create mode 100644 demo-angular/app/demo/intent.component.html create mode 100644 demo-angular/app/demo/intent.component.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a375d9..9984395 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,19 @@ Changelog ============================== +## 6.0.0 (2019, August 25) +### Updates +- SDK Updates for SCA compliance + +### Implements +- [(# 78)](https://github.com/triniwiz/nativescript-stripe/issues/78) Stripe SDKs out of date; Upgrade needed for latest SCA process +- [(# 45)](https://github.com/triniwiz/nativescript-stripe/issues/45) EU Strong Customer Authentication support integration + +### Breaking Changes +- Sources and Tokens are now deprecated, uses Payment Methods and Payment Intents instead +- [Back-end test app](https://github.com/stripe/example-ios-backend) needs to be updated if you want to use the plugin with Intents. +- Stripe Service `completeCharge` has been renamed to `capturePayment` + ## 5.5.0 (2019, August 20) ### Updates - Nativescript 6 compatibility diff --git a/README.md b/README.md index f5fa6a2..7d629cb 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,11 @@ ## Android -Stripe Android [v8.7 SDK](https://github.com/stripe/stripe-android/releases/tag/v8.7.0) is being used +Stripe Android [v10.2.1 SDK](https://github.com/stripe/stripe-android/releases/tag/v10.2.1) is being used ## iOS -Stripe [iOS 15 SDK](https://github.com/stripe/stripe-ios/releases/tag/v15.0.1) (pod) is being used +Stripe [iOS 16.0.6 SDK](https://github.com/stripe/stripe-ios/releases/tag/v16.0.6) (pod) is being used ## Angular To use the Custom Integration's CreditCardView in Angular, @@ -84,36 +84,6 @@ const cc = new Card("1111111111111111",2,18,"123"); cc.name = "Osei Fortune"; ``` -### Get Token - -TypeScript -```ts -import {Stripe} from 'nativescript-stripe'; -const stripe = new Stripe('yourApiKey'); -stripe.createToken(cc, (error,token)=>{ - if(!error){ - //Do something with your token; - - }else{ - console.log(error); - } -}); -``` - -JavaScript -```js -var Stripe = require('nativescript-stripe').Stripe; -const stripe = new Stripe('yourApiKey'); -stripe.createToken(cc, (error,token)=>{ - if(!error){ - //Do something with your token; - - }else{ - console.log(error); - } -}); -``` - ## Standard Integration The `demo` and `demo-angular` folders contain demos that use the Standard Integration. @@ -149,29 +119,23 @@ for some credit card purchases. Stripe supports this, though most of the work to required on the backend server and in the mobile app, outside the `nativescript-stripe` plugin. To support SCA, follow the instructions for [iOS](https://stripe.com/docs/payments/payment-intents/ios) -and [Android](https://stripe.com/docs/payments/payment-intents/android) on using `PaymentIntent`s instead +and [Android](https://stripe.com/docs/payments/payment-intents/android) on using `PaymentIntents` instead of tokens when interacting with your backend server. The `nativescript-stripe` plugin has cross-platform data structures and method calls that might be helpful. In `index.d.ts` see: * `PaymentMethod` and related classes * `StripePaymentIntent` and related classes -* Methods `Stripe.createPaymentMethod`, `Stripe.retrievePaymentIntent`, and `Stripe.confirmPaymentIntent` +* Methods `Stripe.createPaymentMethod`, `Stripe.retrievePaymentIntent`, `Stripe.confirmPaymentIntent` and `Stripe.confirmSetupIntent` ## Handling secondary customer input SCA requires the customer to enter additional information with some charge cards. Stripe takes care of this if you properly handle the redirect from the `StripePaymentIntent` returned from the server. -On iOS, `StripeRedirectSession` can help manage the interaction with the customer. +If you're using the [automatic confirmation flow](https://stripe.com/docs/payments/payment-intents/ios#automatic-confirmation-ios), `confirmPaymentIntent` and `confirmSetupIntent` will automatically manage the SCA validation by showing and validating the payment authentification. -On Android, it appears that (as of May 1, 2019) the Android SDK regarding SCA is still undergoing heavy -development and not everything is working as well as it could. For example, the new methods in `Stripe` -cannot be called on the UI thread in Android (but they can on iOS), and the technique for handling -secondary customer interaction is difficult. Hopefully these will be addressed soon. +If you're using the [manual confirmation flow](https://stripe.com/docs/payments/payment-intents/ios#manual-confirmation-ios), where back-end creates the `PaymentIntent`|`SetupIntent` and requires an Intent authentification from the customer, `authenticatePaymentIntent` and `authenticateSetupIntent` will allow to manage that extra step before sending back the Intent to your server. ## Status -Finally, keep in mind that while these SCA support classes and methods have been added to the plugin, they -have not yet been thoroughly tested. The `demo` and `demo-angular` apps do *not* (yet) support `PaymentIntent`, -although they have been modified to work with the current Stripe example backend -(which does fully support `PaymentIntent`). Any help updating the demo apps would be greatly appreciated. +`demo-angular` now supports `SetupIntent` and `PaymentIntent` SCA integration. Any credit card verification will be automatically prompted to the user. # TODO * Android Pay diff --git a/demo-angular/app/App_Resources/Android/app.gradle b/demo-angular/app/App_Resources/Android/app.gradle index d796d94..2b60552 100644 --- a/demo-angular/app/App_Resources/Android/app.gradle +++ b/demo-angular/app/App_Resources/Android/app.gradle @@ -6,7 +6,8 @@ //} android { - defaultConfig { + defaultConfig { + multiDexEnabled true generatedDensities = [] applicationId = "org.nativescript.stripe.demoangular" } diff --git a/demo-angular/app/App_Resources/Android/src/main/AndroidManifest.xml b/demo-angular/app/App_Resources/Android/src/main/AndroidManifest.xml index 9db8321..2415f34 100644 --- a/demo-angular/app/App_Resources/Android/src/main/AndroidManifest.xml +++ b/demo-angular/app/App_Resources/Android/src/main/AndroidManifest.xml @@ -11,7 +11,7 @@ android:xlargeScreens="true"/> diff --git a/demo-angular/app/app.component.html b/demo-angular/app/app.component.html deleted file mode 100644 index 8a2c1a7..0000000 --- a/demo-angular/app/app.component.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/demo-angular/app/app.component.ts b/demo-angular/app/app.component.ts index 2fcc2da..54ec835 100644 --- a/demo-angular/app/app.component.ts +++ b/demo-angular/app/app.component.ts @@ -2,7 +2,7 @@ import { Component } from "@angular/core"; @Component({ selector: "ns-app", - templateUrl: "app.component.html", + template: "", }) export class AppComponent { } diff --git a/demo-angular/app/app.module.ts b/demo-angular/app/app.module.ts index 84da5bf..76fb3cf 100644 --- a/demo-angular/app/app.module.ts +++ b/demo-angular/app/app.module.ts @@ -6,7 +6,9 @@ import { AppRoutingModule } from "./app.routing"; import { CreditCardViewComponent } from "./demo/creditcardview.component"; import { HomeComponent } from "./demo/home.component"; import { StandardComponent } from "./demo/standard.component"; +import { IntentComponent } from "./demo/intent.component"; import { StripeService } from "./demo/stripe.service"; +import { ItentModalComponent } from "./demo/intent-modal.component"; // Uncomment and add to NgModule imports if you need to use two-way binding // import { NativeScriptFormsModule } from "nativescript-angular/forms"; @@ -27,11 +29,14 @@ import { StripeService } from "./demo/stripe.service"; AppComponent, HomeComponent, StandardComponent, - CreditCardViewComponent + CreditCardViewComponent, + IntentComponent, + ItentModalComponent ], providers: [ StripeService ], + entryComponents: [ItentModalComponent], schemas: [ NO_ERRORS_SCHEMA ] diff --git a/demo-angular/app/app.routing.ts b/demo-angular/app/app.routing.ts index 5c9b70f..6ddd65d 100644 --- a/demo-angular/app/app.routing.ts +++ b/demo-angular/app/app.routing.ts @@ -4,12 +4,14 @@ import { NativeScriptRouterModule } from "nativescript-angular/router"; import { CreditCardViewComponent } from "./demo/creditcardview.component"; import { HomeComponent } from "./demo/home.component"; import { StandardComponent } from "./demo/standard.component"; +import { IntentComponent } from "./demo/intent.component"; const routes: Routes = [ { path: "", redirectTo: "/home", pathMatch: "full" }, { path: "home", component: HomeComponent }, { path: "std", component: StandardComponent }, { path: "ccview", component: CreditCardViewComponent }, + { path: "intent", component: IntentComponent } ]; @NgModule({ diff --git a/demo-angular/app/demo/creditcardview.component.ts b/demo-angular/app/demo/creditcardview.component.ts index 8456bd6..667413a 100644 --- a/demo-angular/app/demo/creditcardview.component.ts +++ b/demo-angular/app/demo/creditcardview.component.ts @@ -29,10 +29,6 @@ export class CreditCardViewComponent { } createPaymentMethod(cardView: CreditCardView): void { - if (isAndroid) { - this.payment = "On Android this call cannot yet be called from UI thread"; - return; - } this.payment = "Fetching payment method..."; this.stripe.createPaymentMethod(cardView.card, (error, pm) => { this.payment = error ? error.message : this.formatPaymentMethod(pm); diff --git a/demo-angular/app/demo/home.component.html b/demo-angular/app/demo/home.component.html index 679a66d..fde3093 100644 --- a/demo-angular/app/demo/home.component.html +++ b/demo-angular/app/demo/home.component.html @@ -4,7 +4,12 @@ + + + + + \ No newline at end of file diff --git a/demo-angular/app/demo/intent-modal.component.html b/demo-angular/app/demo/intent-modal.component.html new file mode 100644 index 0000000..a1fabb9 --- /dev/null +++ b/demo-angular/app/demo/intent-modal.component.html @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/demo-angular/app/demo/intent-modal.component.ts b/demo-angular/app/demo/intent-modal.component.ts new file mode 100644 index 0000000..3880ad6 --- /dev/null +++ b/demo-angular/app/demo/intent-modal.component.ts @@ -0,0 +1,66 @@ +import { Component, ChangeDetectorRef } from "@angular/core"; +import { ModalDialogParams } from "nativescript-angular/modal-dialog"; +import { alert } from "tns-core-modules/ui/dialogs"; +import { CreditCardView, Stripe } from "nativescript-stripe"; + +import { publishableKey, StripeService } from "./stripe.service"; + +@Component({ + moduleId: module.id, + templateUrl: "intent-modal.component.html" +}) +export class ItentModalComponent { + status: string; + private stripe: Stripe; + + constructor( + private stripeService: StripeService, + public changeDetectionRef: ChangeDetectorRef, + private dialogParams: ModalDialogParams + ) { + if (-1 !== publishableKey.indexOf("pk_test_yours")) { + throw new Error("publishableKey must be changed from placeholder"); + } + this.stripe = new Stripe(publishableKey); + } + + /* + * Public methods + */ + + closeModal() { + this.dialogParams.closeCallback(); + } + + registerCard(cardView: CreditCardView) { + this._setStatus("Create Setup Intent..."); + this.stripeService.createSetupIntent().then((intent) => { + + this._setStatus("Create Payment Method..."); + this.stripe.createPaymentMethod(cardView.card, (error, pm) => { + if (error) return this._displayError(error); + this._setStatus("Confirm Setup Intent..."); + this.stripe.confirmSetupIntent(pm.id, intent.secret, (error, setupIntent) => { + if (error) this._displayError(error); + this._setStatus(`Setup Intent Status => ${setupIntent.status}`); + }); + }); + }); + } + + /* + * Private + */ + + private _setStatus(message) { + this.status = message; + this.changeDetectionRef.detectChanges(); + } + + private _displayError(message) { + alert({ + message, + okButtonText: "OK" + }).then(() => this._setStatus(null)); + } +} diff --git a/demo-angular/app/demo/intent.component.html b/demo-angular/app/demo/intent.component.html new file mode 100644 index 0000000..cdbbb22 --- /dev/null +++ b/demo-angular/app/demo/intent.component.html @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + diff --git a/demo-angular/app/demo/intent.component.ts b/demo-angular/app/demo/intent.component.ts new file mode 100644 index 0000000..8ede374 --- /dev/null +++ b/demo-angular/app/demo/intent.component.ts @@ -0,0 +1,131 @@ +import { ChangeDetectorRef, Component, ViewContainerRef, Input } from "@angular/core"; +import { ModalDialogService } from "nativescript-angular/modal-dialog"; +import { CreditCardView, PaymentMethod, Stripe, Token, StripePaymentIntentParams, StripePaymentIntent } from "nativescript-stripe"; +import { isAndroid } from "tns-core-modules/platform"; +import { publishableKey, StripeService } from "./stripe.service"; +import { alert } from "tns-core-modules/ui/dialogs"; + +import { ItentModalComponent } from "./intent-modal.component"; + +@Component({ + selector: "stp-intent", + moduleId: module.id, + templateUrl: "./intent.component.html", +}) +export class IntentComponent { + payment: string; + status: string; + private stripe: Stripe; + + private _item = { + price: 1200, + currency: 'usd' + }; + + constructor( + private stripeService: StripeService, + public changeDetectionRef: ChangeDetectorRef, + private modalService: ModalDialogService, + private vcRef: ViewContainerRef + ) { + if (-1 !== publishableKey.indexOf("pk_test_yours")) { + throw new Error("publishableKey must be changed from placeholder"); + } + this.stripe = new Stripe(publishableKey); + } + + openModal() { + this.modalService + .showModal(ItentModalComponent, { + fullscreen: true, + viewContainerRef: this.vcRef + }); + } + + registerCard(cardView: CreditCardView) { + this._setStatus("Create Setup Intent..."); + this.stripeService.createSetupIntent().then((intent) => { + + this._setStatus("Create Payment Method..."); + this.stripe.createPaymentMethod(cardView.card, (error, pm) => { + if (error) return this._displayError(error); + this._setStatus("Confirm Setup Intent..."); + this.stripe.confirmSetupIntent(pm.id, intent.secret, (error, setupIntent) => { + if (error) this._displayError(error); + this._setStatus(`Setup Intent Status => ${setupIntent.status}`); + }); + }); + }); + } + + // Authenticate and charge on the UI + // https://stripe.com/docs/payments/payment-intents/ios#automatic-confirmation-ios + automaticConfirmPayment(cardView: CreditCardView) { + this._setStatus("Create Payment Method..."); + this.stripe.createPaymentMethod(cardView.card, (error, pm) => { + if (error) return this._displayError(error); + this._createPaymentIntent().then(p => { + const piParams = new StripePaymentIntentParams(); + piParams.paymentMethodId = pm.id; + piParams.clientSecret = p.secret; + this._confirmPaymentIntent(piParams); + }); + }); + } + + // Authenticate on the UI only, confirm charge on back-end + // https://stripe.com/docs/payments/payment-intents/ios#handle-authentication-manual + manualConfirmPayment(cardView: CreditCardView) { + this._setStatus("Create Payment Method..."); + this.stripe.createPaymentMethod(cardView.card, (error, pm) => { + if (error) return this._displayError(error); + + this._setStatus("Create Payment Intent..."); + this.stripeService.capturePayment(pm.id, this._item.price).then(({ secret }) => { + + this._setStatus("Authenticate Payment Intent..."); + this.stripe.authenticatePaymentIntent(secret, null, (error, pintent) => { + if (error) return this._displayError(error); + if (pintent.requiresConfirmation) { + this._setStatus("Confirm Payment Intent..."); + this.stripeService.confirmPaymentIntent(pintent.id).then(response => { + this._setStatus(`Payment Intent Processed: ${JSON.stringify(response)}`); + }); + } else { + // Not ready to be processed by backend + this._setStatus(`Payment Status: ${pintent.status}`); + } + }); + }); + }); + } + + /* + * Private + */ + + private _createPaymentIntent(): Promise { + this._setStatus("Create Payment Intent..."); + return this.stripeService.createPaymentIntent(this._item.price, this._item.currency); + } + + private _confirmPaymentIntent(piParams) { + this._setStatus("Confirm Payment Intent..."); + this.stripe.confirmPaymentIntent(piParams, (error, pintent) => { + if (error) return this._displayError(error); + this._setStatus(`Payment Status: ${pintent.status}`); + }); + } + + private _setStatus(message) { + this.status = message; + this.changeDetectionRef.detectChanges(); + } + + private _displayError(message) { + alert({ + message, + okButtonText: "OK" + }).then(() => this._setStatus(null)); + } +} diff --git a/demo-angular/app/demo/standard.component.html b/demo-angular/app/demo/standard.component.html index 7eef6e3..c6acbf8 100644 --- a/demo-angular/app/demo/standard.component.html +++ b/demo-angular/app/demo/standard.component.html @@ -2,10 +2,13 @@ + + + @@ -15,22 +18,33 @@ + + + + + + - - - - + + + + + + + + + diff --git a/demo-angular/app/demo/standard.component.ts b/demo-angular/app/demo/standard.component.ts index 86fabec..fa3eb59 100644 --- a/demo-angular/app/demo/standard.component.ts +++ b/demo-angular/app/demo/standard.component.ts @@ -31,7 +31,8 @@ export class StandardComponent implements OnInit { price: 1200 }; this.paymentSession = this.stripeService.createPaymentSession( - this.page, this.item.price, new Listener(this)); + this.page, this.item.price, new Listener(this) + ); } get isLoading(): boolean { diff --git a/demo-angular/app/demo/stripe.service.ts b/demo-angular/app/demo/stripe.service.ts index 7fcbda4..9f70e2b 100644 --- a/demo-angular/app/demo/stripe.service.ts +++ b/demo-angular/app/demo/stripe.service.ts @@ -38,48 +38,78 @@ export class StripeService implements StripeBackendAPI { this.customerSession = new StripeCustomerSession(); } - private backendURL(pathComponent: string): string { - if (!backendBaseURL) throw new Error("backendBaseURL must be set"); - if (!backendBaseURL.endsWith("/")) { - return backendBaseURL + "/" + pathComponent; - } else { - return backendBaseURL + pathComponent; - } + // SetupIntent + createSetupIntent(): Promise { + return this._postRequest("create_setup_intent").then(response => response.content.toJSON()); + } + + // PaymentIntent + createPaymentIntent(amount: number, currency: string = 'usd'): Promise { + const content = `amount=${amount}¤cy=${currency}`; + return this._postRequest("create_intent", content).then(response => response.content.toJSON()); } createCustomerKey(apiVersion: string): Promise { - let url = this.backendURL("ephemeral_keys"); - return httpModule.request({ - url: url, - method: "POST", - headers: { "Content-Type": "application/x-www-form-urlencoded; charset=utf-8" }, - content: "api_version=" + apiVersion - }).then(response => { - if (response.statusCode < 200 || response.statusCode >= 300) { - throw new Error(response.content.toString()); - } - return response.content.toJSON(); - }); + const content = `api_version=${apiVersion}`; + return this._postRequest("ephemeral_keys", content).then(response => response.content.toJSON()); + } + + capturePayment(stripeID: string, amount: number, shippingMethod?: StripeShippingMethod, shippingAddress?: StripeAddress): Promise { + let content = `payment_method=${stripeID}&amount=${amount}`; + if (shippingMethod && shippingAddress) content += `&${this._encodeShipping(shippingMethod, shippingAddress)}`; + return this._postRequest("capture_payment", content).then(response => response.content.toJSON()); + } + + confirmPaymentIntent(paymentIntentID: string): Promise { + const content = `payment_intent_id=${paymentIntentID}`; + return this._postRequest("confirm_payment", content).then(response => response.content.toJSON()); + } + + createPaymentSession(page: Page, price: number, listener?: StripePaymentListener): StripePaymentSession { + return new StripePaymentSession(page, this.customerSession, price, "usd", listener); + } + + showPaymentMethods(paymentSession: StripePaymentSession) { + paymentSession.presentPaymentMethods(); + } + + showShipping(paymentSession: StripePaymentSession) { + paymentSession.presentShipping(); + } + + requestPayment(paymentSession: StripePaymentSession) { + paymentSession.requestPayment(); } - completeCharge(stripeID: string, amount: number, shippingMethod: StripeShippingMethod, shippingAddress: StripeAddress): Promise { - let url = this.backendURL("capture_payment"); + /* + * Private + */ + + private _postRequest(endpoint: string, content: string = ''): Promise { + let url = this._backendURL(endpoint); return httpModule.request({ url: url, method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded; charset=utf-8" }, - content: - "source=" + stripeID + - "&amount=" + amount + - "&" + this.encodeShipping(shippingMethod, shippingAddress) + content }).then(response => { if (response.statusCode < 200 || response.statusCode >= 300) { throw new Error(response.content.toString()); } + return response; }); } - private encodeShipping(method: StripeShippingMethod, address: StripeAddress): string { + private _backendURL(pathComponent: string): string { + if (!backendBaseURL) throw new Error("backendBaseURL must be set"); + if (!backendBaseURL.endsWith("/")) { + return backendBaseURL + "/" + pathComponent; + } else { + return backendBaseURL + pathComponent; + } + } + + private _encodeShipping(method: StripeShippingMethod, address: StripeAddress): string { function entry(label: string, value: string): string { return value ? encodeURI(label) + "=" + encodeURI(value) : ""; } @@ -94,20 +124,4 @@ export class StripeService implements StripeBackendAPI { entry("&phone", address.phone) + entry("&email", address.email); } - - createPaymentSession(page: Page, price: number, listener?: StripePaymentListener): StripePaymentSession { - return new StripePaymentSession(page, this.customerSession, price, "usd", listener); - } - - showPaymentMethods(paymentSession: StripePaymentSession) { - paymentSession.presentPaymentMethods(); - } - - showShipping(paymentSession: StripePaymentSession) { - paymentSession.presentShipping(); - } - - requestPayment(paymentSession: StripePaymentSession) { - paymentSession.requestPayment(); - } } diff --git a/demo/app/App_Resources/Android/app.gradle b/demo/app/App_Resources/Android/app.gradle index 803b52f..3de059b 100644 --- a/demo/app/App_Resources/Android/app.gradle +++ b/demo/app/App_Resources/Android/app.gradle @@ -7,6 +7,7 @@ android { defaultConfig { + multiDexEnabled true generatedDensities = [] applicationId = "org.nativescript.stripe.demo" } diff --git a/demo/app/App_Resources/Android/src/main/AndroidManifest.xml b/demo/app/App_Resources/Android/src/main/AndroidManifest.xml index 9db8321..2415f34 100644 --- a/demo/app/App_Resources/Android/src/main/AndroidManifest.xml +++ b/demo/app/App_Resources/Android/src/main/AndroidManifest.xml @@ -11,7 +11,7 @@ android:xlargeScreens="true"/> diff --git a/demo/app/demo/stripe.service.ts b/demo/app/demo/stripe.service.ts index c3c0b2e..fa7c9d9 100644 --- a/demo/app/demo/stripe.service.ts +++ b/demo/app/demo/stripe.service.ts @@ -36,48 +36,78 @@ export class StripeService implements StripeBackendAPI { this.customerSession = new StripeCustomerSession(); } - private backendURL(pathComponent: string): string { - if (!backendBaseURL) throw new Error("backendBaseURL must be set"); - if (!backendBaseURL.endsWith("/")) { - return backendBaseURL + "/" + pathComponent; - } else { - return backendBaseURL + pathComponent; - } + // SetupIntent + createSetupIntent(): Promise { + return this._postRequest("create_setup_intent").then(response => response.content.toJSON()); + } + + // PaymentIntent + createPaymentIntent(amount: number, currency: string = 'usd'): Promise { + const content = `amount=${amount}¤cy=${currency}`; + return this._postRequest("create_intent", content).then(response => response.content.toJSON()); } createCustomerKey(apiVersion: string): Promise { - let url = this.backendURL("ephemeral_keys"); - return httpModule.request({ - url: url, - method: "POST", - headers: { "Content-Type": "application/x-www-form-urlencoded; charset=utf-8" }, - content: "api_version=" + apiVersion - }).then(response => { - if (response.statusCode < 200 || response.statusCode >= 300) { - throw new Error(response.content.toString()); - } - return response.content.toJSON(); - }); + const content = `api_version=${apiVersion}`; + return this._postRequest("ephemeral_keys", content).then(response => response.content.toJSON()); + } + + capturePayment(stripeID: string, amount: number, shippingMethod?: StripeShippingMethod, shippingAddress?: StripeAddress): Promise { + let content = `payment_method=${stripeID}&amount=${amount}`; + if (shippingMethod && shippingAddress) content += `&${this._encodeShipping(shippingMethod, shippingAddress)}`; + return this._postRequest("capture_payment", content).then(response => response.content.toJSON()); + } + + confirmPaymentIntent(paymentIntentID: string): Promise { + const content = `payment_intent_id=${paymentIntentID}`; + return this._postRequest("confirm_payment", content); + } + + createPaymentSession(page: Page, price: number, listener?: StripePaymentListener): StripePaymentSession { + return new StripePaymentSession(page, this.customerSession, price, "usd", listener); + } + + showPaymentMethods(paymentSession: StripePaymentSession) { + paymentSession.presentPaymentMethods(); + } + + showShipping(paymentSession: StripePaymentSession) { + paymentSession.presentShipping(); + } + + requestPayment(paymentSession: StripePaymentSession) { + paymentSession.requestPayment(); } - completeCharge(stripeID: string, amount: number, shippingMethod: StripeShippingMethod, shippingAddress: StripeAddress): Promise { - let url = this.backendURL("capture_payment"); + /* + * Private + */ + + private _postRequest(endpoint: string, content: string = ""): Promise { + let url = this._backendURL(endpoint); return httpModule.request({ url: url, method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded; charset=utf-8" }, - content: - "source=" + stripeID + - "&amount=" + amount + - "&" + this.encodeShipping(shippingMethod, shippingAddress) + content }).then(response => { if (response.statusCode < 200 || response.statusCode >= 300) { throw new Error(response.content.toString()); } + return response; }); } - private encodeShipping(method: StripeShippingMethod, address: StripeAddress): string { + private _backendURL(pathComponent: string): string { + if (!backendBaseURL) throw new Error("backendBaseURL must be set"); + if (!backendBaseURL.endsWith("/")) { + return backendBaseURL + "/" + pathComponent; + } else { + return backendBaseURL + pathComponent; + } + } + + private _encodeShipping(method: StripeShippingMethod, address: StripeAddress): string { function entry(label: string, value: string): string { return value ? encodeURI(label) + "=" + encodeURI(value) : ""; } @@ -92,20 +122,4 @@ export class StripeService implements StripeBackendAPI { entry("&phone", address.phone) + entry("&email", address.email); } - - createPaymentSession(page: Page, price: number, listener?: StripePaymentListener): StripePaymentSession { - return new StripePaymentSession(page, this.customerSession, price, "usd", listener); - } - - showPaymentMethods(paymentSession: StripePaymentSession) { - paymentSession.presentPaymentMethods(); - } - - showShipping(paymentSession: StripePaymentSession) { - paymentSession.presentShipping(); - } - - requestPayment(paymentSession: StripePaymentSession) { - paymentSession.requestPayment(); - } } diff --git a/src/index.d.ts b/src/index.d.ts index 467b806..88846d1 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -4,9 +4,11 @@ export declare class Stripe { constructor(apiKey: string); createToken(card: CardCommon, cb: (error: Error, token: Token) => void): void; createPaymentMethod(card: CardCommon, cb: (error: Error, pm: PaymentMethod) => void): void; - retrievePaymentIntent(clientSecret: string, cb: (error: Error, pm: StripePaymentIntent) => void): void; - confirmPaymentIntent(pi: StripePaymentIntent, returnUrl: string, cb: (error: Error, pm: StripePaymentIntent) => void): void; + confirmPaymentIntent(pi: StripePaymentIntentParams, cb: (error: Error, pm: StripePaymentIntent) => void): void; + confirmSetupIntent(paymentMethodId: string, clientSecret: string, cb: (error: Error, pm: StripePaymentIntent) => void): void; + authenticateSetupIntent(clientSecret: string, returnUrl: string, cb: (error: Error, pm: StripeSetupIntent) => void): void; + authenticatePaymentIntent(clientSecret: string, returnUrl: string, cb: (error: Error, pm: StripePaymentIntent) => void): void; } export declare class CreditCardViewBase extends View { } export declare type CardBrand = "Visa" | "Amex" | "MasterCard" | "Discover" | "JCB" | "DinersClub" | "Unknown"; @@ -126,12 +128,21 @@ export declare class StripePaymentIntent implements StripePaymentIntentCommon { paymentMethodId: string; sourceId: string; requiresAction: boolean; // true if status == RequiresAction + requiresConfirmation: boolean; + requiresCapture: boolean; status: StripePaymentIntentStatus; static fromNative(native: any): StripePaymentIntent; static fromApi(json: any): StripePaymentIntent; } +export declare class StripeSetupIntent { + id: string; + clientSecret: string; + requiresAction: boolean; // true if status == RequiresAction + status: StripePaymentIntentStatus; +} + export declare const enum StripePaymentIntentStatus { RequiresPaymentMethod = "requires_payment_method", RequiresConfirmation = "requires_confirmation", diff --git a/src/package.json b/src/package.json index 70fd5da..6e4dc7d 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-stripe", - "version": "5.5.0", + "version": "6.0.0", "description": "NativeScript Stripe sdk", "main": "stripe", "typings": "index.d.ts", @@ -19,7 +19,7 @@ "build.native": "node scripts/build-native.js", "test.android": "npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch && cd ../demo-angular && tns build android && tns test android --justlaunch", "test.ios": "npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch && cd ../demo-angular && tns build ios && tns test ios --justlaunch", - "tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/+(node_modules|typings)/**\"", + "tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/+(node_modules|typings|platforms)/**\"", "plugin.tscwatch": "npm run tsc -- -w", "demo.ios": "npm run tsc && cd ../demo && tns run ios --emulator", "demo.ios.min": "npm run tsc && cd ../demo && tns run ios --env.uglify --emulator", @@ -29,6 +29,8 @@ "demo-angular.ios": "npm run tsc && cd ../demo-angular && tns run ios --emulator", "demo-angular.ios.min": "npm run tsc && cd ../demo-angular && tns run ios --env.uglify --emulator", "demo-angular.ios.ci": "npm run tsc && cd ../demo-angular && tns build ios --env.uglify", + "debug.demo-angular.ios": "npm run tsc && cd ../demo-angular && tns debug ios --emulator", + "debug.demo-angular.android": "npm run tsc && cd ../demo-angular && tns debug android --emulator", "demo-angular.android": "npm run tsc && cd ../demo-angular && tns run android --emulator", "demo-angular.reset": "cd ../demo-angular && npx rimraf -- hooks node_modules platforms package-lock.json", "plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-stripe && tns plugin add ../src && cd ../demo-angular && tns plugin remove nativescript-stripe && tns plugin add ../src", diff --git a/src/platforms/android/include.gradle b/src/platforms/android/include.gradle index feea9a9..27974e4 100644 --- a/src/platforms/android/include.gradle +++ b/src/platforms/android/include.gradle @@ -1,3 +1,3 @@ dependencies { - implementation 'com.stripe:stripe-android:8.7.0' + implementation 'com.stripe:stripe-android:10.2.1' } diff --git a/src/platforms/ios/Podfile b/src/platforms/ios/Podfile index 0dde4c8..12dc70d 100644 --- a/src/platforms/ios/Podfile +++ b/src/platforms/ios/Podfile @@ -1,2 +1,2 @@ platform :ios, '9.0' -pod 'Stripe', '~> 15.0' +pod 'Stripe', '~> 16.0.6' diff --git a/src/standard/index.d.ts b/src/standard/index.d.ts index 7b51782..5c7bed6 100644 --- a/src/standard/index.d.ts +++ b/src/standard/index.d.ts @@ -37,7 +37,7 @@ export declare interface StripeBackendAPI { * @returns a Promise that resolves on success and rejects on failure. * Any error should be reported as a string that can be displayed to the user. */ - completeCharge(sourceID: string, amount: number, shippingMethod?: StripeShippingMethod, shippingAddress?: StripeAddress): Promise; + capturePayment(sourceID: string, amount: number, shippingMethod?: StripeShippingMethod, shippingAddress?: StripeAddress): Promise; } /** * Called during event processing when status changes. On Angular apps, be sure to diff --git a/src/standard/standard.android.ts b/src/standard/standard.android.ts index 77b258a..a7f39c5 100644 --- a/src/standard/standard.android.ts +++ b/src/standard/standard.android.ts @@ -13,26 +13,32 @@ function useAndroidX() { export class StripeConfig extends StripeConfigCommon { private _native: com.stripe.android.PaymentSessionConfig; + private _paymentConfigurationInitiated: boolean = false; get native(): com.stripe.android.PaymentSessionConfig { // getter gives client a chance to set properties before using. if (!this._native) this._native = this.toNative(); return this._native; } - private toNative(): com.stripe.android.PaymentSessionConfig { + initPaymentConfiguration(): void { if (!this.publishableKey) throw new Error("publishableKey must be set"); + if (this._paymentConfigurationInitiated) return; com.stripe.android.PaymentConfiguration.init(this.publishableKey); + this._paymentConfigurationInitiated = true; + } + private toNative(): com.stripe.android.PaymentSessionConfig { + this.initPaymentConfiguration(); let optionalFields = []; if (this.requiredShippingAddressFields.indexOf(StripeShippingAddressField.PostalAddress) < 0) { - optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.ADDRESS_LINE_ONE_FIELD); - optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.ADDRESS_LINE_TWO_FIELD); - optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.CITY_FIELD); - optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.STATE_FIELD); - optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.POSTAL_CODE_FIELD); + optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.CustomizableShippingField.ADDRESS_LINE_ONE_FIELD); + optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.CustomizableShippingField.ADDRESS_LINE_TWO_FIELD); + optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.CustomizableShippingField.CITY_FIELD); + optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.CustomizableShippingField.STATE_FIELD); + optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.CustomizableShippingField.POSTAL_CODE_FIELD); } if (this.requiredShippingAddressFields.indexOf(StripeShippingAddressField.Phone) < 0) { - optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.PHONE_FIELD); + optionalFields.unshift(com.stripe.android.view.ShippingInfoWidget.CustomizableShippingField.PHONE_FIELD); } const shippingRequired = this.requiredShippingAddressFields.length !== 0; @@ -50,13 +56,19 @@ export class StripeConfig extends StripeConfigCommon { } } + export class StripeCustomerSession { native: com.stripe.android.CustomerSession; constructor() { - com.stripe.android.CustomerSession.initCustomerSession(createKeyProvider()); + StripeConfig.shared().initPaymentConfiguration(); + com.stripe.android.CustomerSession.initCustomerSession(this.context, createKeyProvider()); this.native = com.stripe.android.CustomerSession.getInstance(); } + + private get context(): android.content.Context { + return androidApp.context; + } } function createKeyProvider(): com.stripe.android.EphemeralKeyProvider { @@ -66,7 +78,7 @@ function createKeyProvider(): com.stripe.android.EphemeralKeyProvider { .then(key => { keyUpdateListener.onKeyUpdate(JSON.stringify(key)); }).catch(e => { - keyUpdateListener.onKeyUpdateFailure(500, e); + keyUpdateListener.onKeyUpdateFailure(500, JSON.stringify(e)); }); } }); @@ -81,11 +93,12 @@ export class StripePaymentSession { paymentInProgress: boolean; private receiver: android.content.BroadcastReceiver; - constructor(_page: Page, + constructor( + _page: Page, public customerSession: StripeCustomerSession, amount: number, public currency: string, - listener: StripePaymentListener, + public listener: StripePaymentListener, prefilledAddress?: StripeAddress) { let config = StripeConfig.shared().native; if (prefilledAddress) { @@ -113,7 +126,8 @@ export class StripePaymentSession { .build(); } this.native = new com.stripe.android.PaymentSession(this.patchActivity()); - if (!this.native.init(createPaymentListener(this, listener), config)) { + + if (!this.native.init(createPaymentSessionListener(this, listener), config)) { throw new Error("CustomerSession not initialized"); } this.native.setCartTotal(amount); @@ -132,7 +146,22 @@ export class StripePaymentSession { requestPayment() { this.paymentInProgress = true; - this.native.completePayment(createPaymentCompletionProvider()); + const data = this.native.getPaymentSessionData(); + const shippingMethod = data.getShippingMethod(); + const shippingCost = shippingMethod ? shippingMethod.getAmount() : 0; + StripeConfig.shared().backendAPI.capturePayment( + data.getPaymentMethod().id, + data.getCartTotal() + shippingCost, + createShippingMethod(shippingMethod), + createAddress(data.getShippingInformation())) + .then(() => { + this.paymentInProgress = false; + this.listener.onPaymentSuccess(); + this.native.onCompleted(); + }).catch(e => { + this.listener.onError(100, e); + this.paymentInProgress = false; + }); } presentPaymentMethods(): void { @@ -166,23 +195,14 @@ export class StripePaymentSession { } } -function createPaymentListener(parent: StripePaymentSession, listener: StripePaymentListener): com.stripe.android.PaymentSession.PaymentSessionListener { +function createPaymentSessionListener(parent: StripePaymentSession, listener: StripePaymentListener): com.stripe.android.PaymentSession.PaymentSessionListener { return new com.stripe.android.PaymentSession.PaymentSessionListener({ - onPaymentSessionDataChanged: function (sessionData: com.stripe.android.PaymentSessionData): void { - if (parent.paymentInProgress) { - if (sessionData.getPaymentResult() === com.stripe.android.PaymentResultListener.SUCCESS) { - if (listener.onPaymentSuccess) listener.onPaymentSuccess(); - } else if (sessionData.getPaymentResult().startsWith(com.stripe.android.PaymentResultListener.ERROR)) { - if (listener.onError) listener.onError(100, sessionData.getPaymentResult()); - } else if (sessionData.getPaymentResult() === com.stripe.android.PaymentResultListener.USER_CANCELLED) { - if (listener.onUserCancelled) listener.onUserCancelled(); - } - parent.paymentInProgress = false; - return; - } + onPaymentSessionDataChanged: (sessionData: com.stripe.android.PaymentSessionData): void => { + if (parent.paymentInProgress) return; + parent.customerSession.native.retrieveCurrentCustomer(new com.stripe.android.CustomerSession.CustomerRetrievalListener({ onCustomerRetrieved(customer: com.stripe.android.model.Customer) { - parent.selectedPaymentMethod = createPaymentMethod(customer, sessionData.getSelectedPaymentMethodId()); + parent.selectedPaymentMethod = createPaymentMethod(sessionData.getPaymentMethod()); parent.selectedShippingMethod = createShippingMethod(sessionData.getShippingMethod()); parent.shippingAddress = createAddress(sessionData.getShippingInformation()); let paymentData = { @@ -198,11 +218,11 @@ function createPaymentListener(parent: StripePaymentSession, listener: StripePay } })); }, - onCommunicatingStateChanged: function (isCommunicating: boolean): void { + onCommunicatingStateChanged: (isCommunicating: boolean): void => { parent.loading = isCommunicating; listener.onCommunicatingStateChanged(isCommunicating); }, - onError: function (code: number, message: string): void { + onError: (code: number, message: string): void => { listener.onError(code, message); } }); @@ -237,68 +257,20 @@ function createShippingBroadcastReceiver(parent: StripePaymentSession, listener: return new InternalReceiver(parent, listener); } -function createPaymentCompletionProvider(): com.stripe.android.PaymentCompletionProvider { - return new com.stripe.android.PaymentCompletionProvider({ - completePayment(data: com.stripe.android.PaymentSessionData, listener: com.stripe.android.PaymentResultListener): void { - const shippingMethod = data.getShippingMethod(); - const shippingCost = shippingMethod ? shippingMethod.getAmount() : 0; - StripeConfig.shared().backendAPI.completeCharge( - data.getSelectedPaymentMethodId(), - data.getCartTotal() + shippingCost, - createShippingMethod(shippingMethod), - createAddress(data.getShippingInformation())) - .then(() => { - listener.onPaymentResult(com.stripe.android.PaymentResultListener.SUCCESS); - }).catch(e => { - listener.onPaymentResult(com.stripe.android.PaymentResultListener.ERROR + - ": " + e); - }); - } - }); -} - -function createPaymentMethod(customer: com.stripe.android.model.Customer, paymentMethodId: string): StripePaymentMethod { - if (!paymentMethodId) return undefined; - if (!customer) return { label: "Error (101)", image: undefined, templateImage: undefined }; - let cs = customer.getSourceById(paymentMethodId); - if (!cs) return { label: "Error (102)", image: undefined, templateImage: undefined }; - let source = cs.asSource(); - let card = cs.asCard(); - - if (source) return createPaymentMethodFromSource(source); - if (card) return createPaymentMethodFromCard(card); +function createPaymentMethod(paymentMethod: com.stripe.android.model.PaymentMethod): StripePaymentMethod { + if (!paymentMethod) return undefined; + if (paymentMethod.card) return createPaymentMethodFromCard(paymentMethod.card, paymentMethod.id); return { label: "Error (103)", image: undefined, templateImage: undefined }; } -function createPaymentMethodFromSource(source: com.stripe.android.model.Source): StripePaymentMethod { - if (source.getType() !== com.stripe.android.model.Source.CARD) { - return { - label: source.getType(), - stripeID: source.getId(), - type: undefined, - image: undefined, - templateImage: undefined - }; - } - const card = source.getSourceTypeModel(); +function createPaymentMethodFromCard(card: com.stripe.android.model.PaymentMethod.Card, stripeID: string): StripePaymentMethod { return { - label: `${card.getBrand()} ...${card.getLast4()}`, - image: getBitmapFromResource(com.stripe.android.model.Card.BRAND_RESOURCE_MAP.get(card.getBrand()).longValue()), + label: `${card.brand} ...${card.last4}`, + image: getBitmapFromResource(com.stripe.android.model.Card.getBrandIcon(card.brand)), templateImage: undefined, type: "Card", - stripeID: source.getId(), - brand: card.getBrand() - }; -} - -function createPaymentMethodFromCard(card: com.stripe.android.model.Card): StripePaymentMethod { - return { - label: `${card.getBrand()} ...${card.getLast4()}`, - image: getBitmapFromResource(com.stripe.android.model.Card.BRAND_RESOURCE_MAP.get(card.getBrand()).longValue()), - templateImage: undefined, - type: "Card", - stripeID: card.getId(), - brand: card.getBrand() + stripeID, + brand: card.brand }; } @@ -350,4 +322,4 @@ function createAdShippingMethod(method: StripeShippingMethod, currency: string): method.amount, currency ); -} +} \ No newline at end of file diff --git a/src/standard/standard.common.ts b/src/standard/standard.common.ts index c6c09c2..e8dd84c 100644 --- a/src/standard/standard.common.ts +++ b/src/standard/standard.common.ts @@ -53,7 +53,7 @@ export interface StripeBackendAPI { * @returns a Promise that resolves on success and rejects on failure. * Any error should be reported as a string that can be displayed to the user. */ - completeCharge(sourceID: string, amount: number, shippingMethod?: StripeShippingMethod, shippingAddress?: StripeAddress): Promise; + capturePayment(sourceID: string, amount: number, shippingMethod?: StripeShippingMethod, shippingAddress?: StripeAddress): Promise; } export interface StripePaymentListener { diff --git a/src/standard/standard.ios.ts b/src/standard/standard.ios.ts index 9f5179b..ad34dde 100644 --- a/src/standard/standard.ios.ts +++ b/src/standard/standard.ios.ts @@ -36,7 +36,6 @@ export class StripeConfig extends StripeConfigCommon { config.requiredShippingAddressFields = fields; } if (this.companyName) config.companyName = this.companyName; - config.createCardSources = this.createCardSources; return config; } @@ -189,8 +188,8 @@ class StripePaymentDelegate extends NSObject implements STPPaymentContextDelegat } paymentContextDidCreatePaymentResultCompletion(paymentContext: STPPaymentContext, paymentResult: STPPaymentResult, completion: (p1: NSError) => void): void { - StripeConfig.shared().backendAPI.completeCharge( - paymentResult.source.stripeID, + StripeConfig.shared().backendAPI.capturePayment( + paymentResult.paymentMethod.stripeId, paymentContext.paymentAmount, createShippingMethod(paymentContext), createAddress(paymentContext.shippingAddress)) @@ -257,13 +256,6 @@ function createPaymentMethod(paymentContext: STPPaymentContext): StripePaymentMe stripeId = pm.stripeId; brand = STPCard.stringFromBrand(pm.card.brand); } - } else if (pmt.isKindOfClass(STPSource)) { - const src = pmt; - if (src.type === STPSourceType.Card) { - type = "Card"; - stripeId = src.stripeID; - brand = STPCard.stringFromBrand(src.cardDetails.brand); - } } return { label: pmt.label, diff --git a/src/stripe.android.ts b/src/stripe.android.ts index 6ec31cd..a56e83f 100644 --- a/src/stripe.android.ts +++ b/src/stripe.android.ts @@ -1,4 +1,5 @@ import * as utils from 'tns-core-modules/utils/utils'; +import { android as androidApp } from "tns-core-modules/application"; import { CardBrand, CardCommon, CreditCardViewBase, PaymentMethodCommon, StripePaymentIntentCommon, StripePaymentIntentStatus, Token } from './stripe.common'; export class Stripe { private _stripe: com.stripe.android.Stripe; @@ -68,10 +69,15 @@ export class Stripe { billing.setAddress(addr.build()); const params = com.stripe.android.model.PaymentMethodCreateParams.create(cardParams.build(), billing.build()); try { - const pm = this._stripe.createPaymentMethodSynchronous(params, this._apiKey); - if (typeof cb === 'function') { - cb(null, PaymentMethod.fromNative(pm)); - } + const apiResultCallback = new com.stripe.android.ApiResultCallback({ + onSuccess: (result: any) => { + cb(null, PaymentMethod.fromNative(result)); + }, + onError: (error: any) => { + cb(new Error(error.localizedDescription), null); + } + }); + this._stripe.createPaymentMethod(params, apiResultCallback, this._apiKey, null); } catch (error) { if (typeof cb === 'function') { cb(new Error(error.localizedDescription), null); @@ -80,37 +86,100 @@ export class Stripe { } retrievePaymentIntent(clientSecret: string, cb: (error: Error, pm: StripePaymentIntent) => void): void { - const params = com.stripe.android.model.PaymentIntentParams.createRetrievePaymentIntentParams(clientSecret); try { - const pi = this._stripe.retrievePaymentIntentSynchronous(params, this._apiKey); - if (typeof cb === 'function') { - cb(null, StripePaymentIntent.fromNative(pi)); - } + const pi = this._stripe.retrievePaymentIntentSynchronous(clientSecret); + cb(null, StripePaymentIntent.fromNative(pi)); } catch (error) { - if (typeof cb === 'function') { - cb(new Error(error.localizedDescription), null); - } + cb(new Error(error.localizedDescription), null); } } - confirmPaymentIntent(pi: StripePaymentIntent, returnUrl: string, cb: (error: Error, pm: StripePaymentIntent) => void): void { - const params = com.stripe.android.model.PaymentIntentParams.createConfirmPaymentIntentWithPaymentMethodId( - pi.id, pi.clientSecret, returnUrl); + confirmSetupIntent(paymentMethodId: string, clientSecret: string, cb: (error: Error, pm: StripeSetupIntent) => void): void { try { - const pi = this._stripe.confirmPaymentIntentSynchronous(params, this._apiKey); - if (typeof cb === 'function') { - cb(null, StripePaymentIntent.fromNative(pi)); - } + const activity = androidApp.foregroundActivity; + + const resultCb = new com.stripe.android.ApiResultCallback({ + onSuccess: (result: com.stripe.android.SetupIntentResult) => { + cb(null, StripeSetupIntent.fromNative(result.getIntent())); + }, + onError: (error: any) => { + cb(new Error(error.localizedDescription), null); + } + }); + + activity.onActivityResult = (requestCode, resultCode, data) => { + this._stripe.onSetupResult(requestCode, data, resultCb); + }; + this._stripe.confirmSetupIntent(activity, new StripeSetupIntentParams(paymentMethodId, clientSecret).native); } catch (error) { - if (typeof cb === 'function') { + cb(new Error(error.localizedDescription), null); + } + } + + authenticateSetupIntent(clientSecret: string, returnUrl: string, cb: (error: Error, pm: StripeSetupIntent) => void): void { + const activity = androidApp.foregroundActivity; + + const resultCb = new com.stripe.android.ApiResultCallback({ + onSuccess: (result: com.stripe.android.SetupIntentResult) => { + cb(null, StripeSetupIntent.fromNative(result.getIntent())); + }, + onError: (error: any) => { cb(new Error(error.localizedDescription), null); } + }); + + activity.onActivityResult = (requestCode, resultCode, data) => { + this._stripe.onSetupResult(requestCode, data, resultCb); + }; + + this._stripe.authenticateSetup(activity, clientSecret); + } + + confirmPaymentIntent(piParams: StripePaymentIntentParams, cb: (error: Error, pm: StripePaymentIntent) => void): void { + try { + const activity = androidApp.foregroundActivity; + + const resultCb = new com.stripe.android.ApiResultCallback({ + onSuccess: (result: com.stripe.android.PaymentIntentResult) => { + cb(null, StripePaymentIntent.fromNative(result.getIntent())); + }, + onError: (error: any) => { + cb(new Error(error.localizedDescription), null); + } + }); + + activity.onActivityResult = (requestCode, resultCode, data) => { + this._stripe.onPaymentResult(requestCode, data, resultCb); + }; + this._stripe.confirmPayment(activity, piParams.native); + } catch (error) { + cb(new Error(error.localizedDescription), null); } } + + // Manual confirmation flow https://stripe.com/docs/payments/payment-intents/ios#manual-confirmation-ios + authenticatePaymentIntent(clientSecret: string, returnUrl: string, cb: (error: Error, pm: StripePaymentIntent) => void): void { + const activity = androidApp.foregroundActivity; + + const resultCb = new com.stripe.android.ApiResultCallback({ + onSuccess: (result: com.stripe.android.PaymentIntentResult) => { + cb(null, StripePaymentIntent.fromNative(result.getIntent())); + }, + onError: (error: any) => { + cb(new Error(error.localizedDescription), null); + } + }); + + activity.onActivityResult = (requestCode, resultCode, data) => { + this._stripe.onPaymentResult(requestCode, data, resultCb); + }; + + this._stripe.authenticatePayment(activity, clientSecret); + } } export class Card implements CardCommon { - native: com.stripe.android.model.Card; + private _cardBuilder: com.stripe.android.model.Card.Builder; private _brand: CardBrand; private _last4: string; @@ -121,7 +190,7 @@ export class Card implements CardCommon { cardCVC: string ) { if (cardNumber && cardExpMonth && cardExpYear && cardCVC) { - this.native = new com.stripe.android.model.Card( + this._cardBuilder = new com.stripe.android.model.Card.Builder( cardNumber, new java.lang.Integer(cardExpMonth), new java.lang.Integer(cardExpYear), @@ -132,21 +201,21 @@ export class Card implements CardCommon { public static fromNative(card: com.stripe.android.model.Card): Card { const newCard = new Card(null, null, null, null); - newCard.native = card; + newCard._cardBuilder = card.toBuilder(); return newCard; } public static fromNativePaymentMethod(pm: com.stripe.android.model.PaymentMethod): Card { const newCard = new Card(null, null, null, null); - const card = new com.stripe.android.model.Card(); - card.setAddressCountry(pm.card.country); - card.setExpMonth(pm.card.expiryMonth); - card.setExpYear(pm.card.expiryYear); newCard._last4 = pm.card.last4; newCard._brand = pm.card.brand; - newCard.native = card; + newCard._cardBuilder = new com.stripe.android.model.Card.Builder(null, pm.card.expiryMonth, pm.card.expiryYear, null).country(pm.card.country); + return newCard; } + get native(): com.stripe.android.model.Card { + return this._cardBuilder.build(); + } validateNumber(): boolean { return this.native.validateNumber(); @@ -178,8 +247,10 @@ export class Card implements CardCommon { get name(): string { return this.native.getName(); } + + set name(value: string) { - this.native.setName(value); + this._cardBuilder.name(value); } get addressLine1(): string { @@ -187,14 +258,14 @@ export class Card implements CardCommon { } set addressLine1(value: string) { - this.native.setAddressLine1(value); + this._cardBuilder.addressLine1(value); } get addressLine2(): string { return this.native.getAddressLine2(); } set addressLine2(value: string) { - this.native.setAddressLine2(value); + this._cardBuilder.addressLine2(value); } get addressCity(): string { @@ -202,7 +273,7 @@ export class Card implements CardCommon { } set addressCity(value: string) { - this.native.setAddressCity(value); + this._cardBuilder.addressCity(value); } get addressZip(): string { @@ -210,7 +281,7 @@ export class Card implements CardCommon { } set addressZip(value: string) { - this.native.setAddressZip(value); + this._cardBuilder.addressZip(value); } get addressState(): string { @@ -218,7 +289,7 @@ export class Card implements CardCommon { } set addressState(value: string) { - this.native.setAddressState(value); + this._cardBuilder.addressState(value); } get addressCountry(): string { @@ -226,7 +297,7 @@ export class Card implements CardCommon { } set addressCountry(value: string) { - this.native.setAddressCountry(value); + this._cardBuilder.addressCountry(value); } get currency(): string { @@ -234,7 +305,7 @@ export class Card implements CardCommon { } set currency(value: string) { - this.native.setCurrency(value); + this._cardBuilder.currency(value); } get last4(): string { @@ -261,17 +332,17 @@ export class Card implements CardCommon { } export class CreditCardView extends CreditCardViewBase { - private _android: com.stripe.android.view.CardInputWidget; + private _widget: com.stripe.android.view.CardInputWidget; get android(): com.stripe.android.view.CardInputWidget { - return this._android; + return this._widget; } public createNativeView(): com.stripe.android.view.CardInputWidget { - this._android = new com.stripe.android.view.CardInputWidget(this._context); - return this._android; + this._widget = new com.stripe.android.view.CardInputWidget(this._context); + return this._widget; } get card(): Card { - const card = this._android.getCard(); + const card = this._widget.getCard(); if (card) { return new Card( card.getNumber(), @@ -303,7 +374,41 @@ export class PaymentMethod implements PaymentMethodCommon { get metadata(): object { return this.native.metadata; } } -export class StripePaymentIntent implements StripePaymentIntentCommon { + +class StripeIntent { + native: com.stripe.android.model.PaymentIntent | com.stripe.android.model.SetupIntent; + + get id(): string { return this.native.getId(); } + get clientSecret(): string { return this.native.getClientSecret(); } + get description(): string { return this.native.getDescription(); } + get status(): StripePaymentIntentStatus { + switch (this.native.getStatus()) { + case com.stripe.android.model.StripeIntent.Status.Canceled: + return StripePaymentIntentStatus.Canceled; + case com.stripe.android.model.StripeIntent.Status.Processing: + return StripePaymentIntentStatus.Processing; + case com.stripe.android.model.StripeIntent.Status.RequiresAction: + return StripePaymentIntentStatus.RequiresAction; + case com.stripe.android.model.StripeIntent.Status.RequiresCapture: + return StripePaymentIntentStatus.RequiresCapture; + case com.stripe.android.model.StripeIntent.Status.RequiresConfirmation: + return StripePaymentIntentStatus.RequiresConfirmation; + case com.stripe.android.model.StripeIntent.Status.RequiresPaymentMethod: + return StripePaymentIntentStatus.RequiresPaymentMethod; + case com.stripe.android.model.StripeIntent.Status.Succeeded: + return StripePaymentIntentStatus.Succeeded; + } + return null; + } + get requiresAction(): boolean { + return this.status === StripePaymentIntentStatus.RequiresAction; + } + get isSuccess(): boolean { return this.status === StripePaymentIntentStatus.Succeeded; } + get requiresConfirmation(): boolean { return this.status === StripePaymentIntentStatus.RequiresConfirmation; } + get requiresCapture(): boolean { return this.status === StripePaymentIntentStatus.RequiresCapture; } +} + +export class StripePaymentIntent extends StripeIntent implements StripePaymentIntentCommon { native: com.stripe.android.model.PaymentIntent; static fromNative(native: com.stripe.android.model.PaymentIntent): StripePaymentIntent { @@ -317,53 +422,45 @@ export class StripePaymentIntent implements StripePaymentIntentCommon { return StripePaymentIntent.fromNative(native); } - get id(): string { return this.native.getId(); } - get clientSecret(): string { return this.native.getClientSecret(); } get amount(): number { return this.native.getAmount().longValue(); } get created(): Date { return new Date(this.native.getCreated().longValue()); } get currency(): string { return this.native.getCurrency(); } - get description(): string { return this.native.getDescription(); } - get requiresAction(): boolean { - return com.stripe.android.model.PaymentIntent.Status.fromCode(this.native.getStatus()) === com.stripe.android.model.PaymentIntent.Status.RequiresAction; - } get captureMethod(): "manual" | "automatic" { return this.native.getCaptureMethod() as "manual" | "automatic"; } - get status(): StripePaymentIntentStatus { - switch (com.stripe.android.model.PaymentIntent.Status.fromCode(this.native.getStatus())) { - case com.stripe.android.model.PaymentIntent.Status.Canceled: - return StripePaymentIntentStatus.Canceled; - case com.stripe.android.model.PaymentIntent.Status.Processing: - return StripePaymentIntentStatus.Processing; - case com.stripe.android.model.PaymentIntent.Status.RequiresAction: - return StripePaymentIntentStatus.RequiresAction; - case com.stripe.android.model.PaymentIntent.Status.RequiresCapture: - return StripePaymentIntentStatus.RequiresCapture; - case com.stripe.android.model.PaymentIntent.Status.RequiresConfirmation: - return StripePaymentIntentStatus.RequiresConfirmation; - case com.stripe.android.model.PaymentIntent.Status.RequiresPaymentMethod: - return StripePaymentIntentStatus.RequiresPaymentMethod; - case com.stripe.android.model.PaymentIntent.Status.Succeeded: - return StripePaymentIntentStatus.Succeeded; - } - return null; - } } export class StripePaymentIntentParams { - clientSecret: string; - paymentMethodParams: any; + clientSecret: any; paymentMethodId: string; - sourceParams: any; sourceId: string; returnURL: string; // a URL that opens your app - get native(): com.stripe.android.model.PaymentIntentParams { - const n = new com.stripe.android.model.PaymentIntentParams(); - n.setClientSecret(this.clientSecret); - n.setPaymentMethodCreateParams(this.paymentMethodParams); - n.setPaymentMethodId(this.paymentMethodId); - n.setSourceParams(this.sourceParams); - n.setSourceId(this.sourceId); - n.setReturnUrl(this.returnURL); - return n; + get native(): com.stripe.android.model.ConfirmPaymentIntentParams { + if (this.sourceId) { + return com.stripe.android.model.ConfirmPaymentIntentParams.createWithSourceId(this.sourceId, this.clientSecret, this.returnURL); + } else if (this.paymentMethodId) { + return com.stripe.android.model.ConfirmPaymentIntentParams.createWithPaymentMethodId(this.paymentMethodId, this.clientSecret, this.returnURL); + } else { + return com.stripe.android.model.ConfirmPaymentIntentParams.create(this.clientSecret); + } + } +} + +export class StripeSetupIntentParams { + native: com.stripe.android.model.ConfirmSetupIntentParams; + + constructor(paymentMethodId: string, clientSecret: string) { + this.native = com.stripe.android.model.ConfirmSetupIntentParams.create(paymentMethodId, clientSecret); } } + +export class StripeSetupIntent extends StripeIntent { + native: com.stripe.android.model.SetupIntent; + + static fromNative(native: com.stripe.android.model.SetupIntent): StripeSetupIntent { + const si = new StripeSetupIntent(); + si.native = native; + return si; + } + + get paymentMethodId(): string { return this.native.getPaymentMethodId(); } +} diff --git a/src/stripe.ios.ts b/src/stripe.ios.ts index b166d53..ca6f587 100644 --- a/src/stripe.ios.ts +++ b/src/stripe.ios.ts @@ -1,5 +1,7 @@ import { View } from 'tns-core-modules/ui/core/view'; +import { topmost } from "tns-core-modules/ui/frame"; import { CardBrand, CardCommon, CreditCardViewBase, PaymentMethodCommon, StripePaymentIntentCommon, StripePaymentIntentStatus, Token } from './stripe.common'; +import { ios as iosUtils } from "tns-core-modules/utils/utils.ios"; export class Stripe { constructor(apiKey: string) { @@ -49,6 +51,7 @@ export class Stripe { if (card.addressZip) billing.address.postalCode = card.addressZip; if (card.addressCountry) billing.address.country = card.addressCountry; const params = STPPaymentMethodParams.paramsWithCardBillingDetailsMetadata(cardParams, billing, null); + apiClient.createPaymentMethodWithParamsCompletion( params, callback(cb, (pm) => PaymentMethod.fromNative(pm)) @@ -63,33 +66,96 @@ export class Stripe { ); } - confirmPaymentIntent(pi: StripePaymentIntent, returnUrl: string, cb: (error: Error, pm: StripePaymentIntent) => void): void { - const apiClient = STPAPIClient.sharedClient(); - const params = STPPaymentIntentParams.alloc().initWithClientSecret(pi.clientSecret); - params.returnURL = returnUrl; - apiClient.confirmPaymentIntentWithParamsCompletion( - params, - callback(cb, (pi) => StripePaymentIntent.fromNative(pi)) + confirmSetupIntent(paymentMethodId: string, clientSecret: string, cb: (error: Error, pm: StripeSetupIntent) => void): void { + STPPaymentHandler.sharedHandler().confirmSetupIntentWithAuthenticationContextCompletion( + new StripeSetupIntentParams(paymentMethodId, clientSecret).native, + this._getAuthentificationContext(), + (status: STPPaymentHandlerActionStatus, si: STPSetupIntent, error: NSError) => { + if (error) { + cb(new Error(error.toLocaleString()), null); + } else { + cb(null, StripeSetupIntent.fromNative(si)); + } + } + ); + } + + authenticateSetupIntent(clientSecret: string, returnUrl: string, cb: (error: Error, pm: StripeSetupIntent) => void): void { + STPPaymentHandler.sharedHandler().handleNextActionForSetupIntentWithAuthenticationContextReturnURLCompletion( + clientSecret, + this._getAuthentificationContext(), + returnUrl, + (status: STPPaymentHandlerActionStatus, pi: STPSetupIntent, error: NSError) => { + if (error) { + cb(new Error(error.toLocaleString()), null); + } else { + cb(null, StripeSetupIntent.fromNative(pi)); + } + } + ); + } + + confirmPaymentIntent(params: StripePaymentIntentParams, cb: (error: Error, pm: StripePaymentIntent) => void): void { + STPPaymentHandler.sharedHandler().confirmPaymentWithAuthenticationContextCompletion( + params.native, + this._getAuthentificationContext(), + (status: STPPaymentHandlerActionStatus, pi: STPPaymentIntent, error: NSError) => { + if (error) { + cb(new Error(error.toLocaleString()), null); + } else { + cb(null, StripePaymentIntent.fromNative(pi)); + } + } ); } + + authenticatePaymentIntent(clientSecret: string, returnUrl: string, cb: (error: Error, pm: StripePaymentIntent) => void): void { + STPPaymentHandler.sharedHandler().handleNextActionForPaymentWithAuthenticationContextReturnURLCompletion( + clientSecret, + this._getAuthentificationContext(), + returnUrl, + (status: STPPaymentHandlerActionStatus, pi: STPPaymentIntent, error: NSError) => { + if (error) { + cb(new Error(error.toLocaleString()), null); + } else { + cb(null, StripePaymentIntent.fromNative(pi)); + } + } + ); + } + + /* + *. Private + */ + + private _getAuthentificationContext(): STPPaymentContext { + const authContext = STPPaymentContext.alloc(); + const rootVC = topmost().currentPage.ios; + + authContext.hostViewController = iosUtils.getVisibleViewController(rootVC); + authContext.authenticationPresentingViewController = () => { + return authContext.hostViewController; + }; + return authContext; + } } function callback( cb: (error: Error, value: any) => void, cvt: (value: any) => any): - (value: any, err: NSError) => void { - return (value: any, error: NSError) => { - if (!error) { - if (typeof cb === 'function') { - cb(null, cvt(value)); - } - } else { - if (typeof cb === 'function') { - cb(new Error(error.localizedDescription), null); - } + (value: any, err: NSError) => void { + return (value: any, error: NSError) => { + if (!error) { + if (typeof cb === 'function') { + cb(null, cvt(value)); + } + } else { + if (typeof cb === 'function') { + cb(new Error(error.toLocaleString()), null); + } + } + }; } - }; -} export class Card implements CardCommon { native: STPCardParams; @@ -371,8 +437,14 @@ export class CreditCardView extends CreditCardViewBase { get card(): Card { try { + const stpCardParams = STPCardParams.alloc(); + stpCardParams.cvc = this.nativeView.cardParams.cvc; + stpCardParams.number = this.nativeView.cardParams.number; + stpCardParams.expMonth = this.nativeView.cardParams.expMonth; + stpCardParams.expYear = this.nativeView.cardParams.expYear; + const valid = - STPCardValidator.validationStateForCard(this.nativeView.cardParams) === + STPCardValidator.validationStateForCard(stpCardParams) === STPCardValidationState.Valid; return valid @@ -407,7 +479,38 @@ export class PaymentMethod implements PaymentMethodCommon { get metadata(): object { return this.native.metadata; } } -export class StripePaymentIntent implements StripePaymentIntentCommon { +class StripeIntent { + native: STPSetupIntent | STPPaymentIntent; + + get created(): Date { return new Date(this.native.created); } + get clientSecret(): string { return this.native.clientSecret; } + get status(): StripePaymentIntentStatus { + switch (this.native.status) { + case STPPaymentIntentStatus.Canceled: + return StripePaymentIntentStatus.Canceled; + case STPPaymentIntentStatus.Processing: + return StripePaymentIntentStatus.Processing; + case STPPaymentIntentStatus.RequiresAction: + return StripePaymentIntentStatus.RequiresAction; + case STPPaymentIntentStatus.RequiresCapture: + return StripePaymentIntentStatus.RequiresCapture; + case STPPaymentIntentStatus.RequiresConfirmation: + return StripePaymentIntentStatus.RequiresConfirmation; + case STPPaymentIntentStatus.RequiresPaymentMethod: + return StripePaymentIntentStatus.RequiresPaymentMethod; + case STPPaymentIntentStatus.Succeeded: + return StripePaymentIntentStatus.Succeeded; + } + return null; + } + get requiresAction(): boolean { return this.native.status === STPPaymentIntentStatus.RequiresAction; } + get isSuccess(): boolean { return this.status === StripePaymentIntentStatus.Succeeded; } + get requiresConfirmation(): boolean { return this.status === StripePaymentIntentStatus.RequiresConfirmation; } + get requiresCapture(): boolean { return this.status === StripePaymentIntentStatus.RequiresCapture; } + get description(): string { return this.native.description; } +} + +export class StripePaymentIntent extends StripeIntent implements StripePaymentIntentCommon { native: STPPaymentIntent; static fromNative(native: STPPaymentIntent): StripePaymentIntent { @@ -422,12 +525,8 @@ export class StripePaymentIntent implements StripePaymentIntentCommon { } get id(): string { return this.native.stripeId; } - get clientSecret(): string { return this.native.clientSecret; } get amount(): number { return this.native.amount; } - get created(): Date { return new Date(this.native.created); } get currency(): string { return this.native.currency; } - get description(): string { return this.native.description; } - get requiresAction(): boolean { return this.native.status === STPPaymentIntentStatus.RequiresAction; } get captureMethod(): "manual" | "automatic" { switch (this.native.captureMethod) { case STPPaymentIntentCaptureMethod.Automatic: @@ -437,25 +536,6 @@ export class StripePaymentIntent implements StripePaymentIntentCommon { } return null; } - get status(): StripePaymentIntentStatus { - switch (this.native.status) { - case STPPaymentIntentStatus.Canceled: - return StripePaymentIntentStatus.Canceled; - case STPPaymentIntentStatus.Processing: - return StripePaymentIntentStatus.Processing; - case STPPaymentIntentStatus.RequiresAction: - return StripePaymentIntentStatus.RequiresAction; - case STPPaymentIntentStatus.RequiresCapture: - return StripePaymentIntentStatus.RequiresCapture; - case STPPaymentIntentStatus.RequiresConfirmation: - return StripePaymentIntentStatus.RequiresConfirmation; - case STPPaymentIntentStatus.RequiresPaymentMethod: - return StripePaymentIntentStatus.RequiresPaymentMethod; - case STPPaymentIntentStatus.Succeeded: - return StripePaymentIntentStatus.Succeeded; - } - return null; - } } export class StripePaymentIntentParams { @@ -477,6 +557,29 @@ export class StripePaymentIntentParams { } } +export class StripeSetupIntent extends StripeIntent { + native: STPSetupIntent; + + static fromNative(native: STPSetupIntent): StripeSetupIntent { + const si = new StripeSetupIntent(); + si.native = native; + return si; + } + + get id(): string { return this.native.stripeID; } + get paymentMethodId(): string { return this.native.paymentMethodID; } +} + +export class StripeSetupIntentParams { + native: STPSetupIntentConfirmParams; + + constructor(paymentMethodId: string, clientSecret: string) { + this.native = STPSetupIntentConfirmParams.alloc(); + this.native.paymentMethodID = paymentMethodId; + this.native.clientSecret = clientSecret; + } +} + export class StripeRedirectSession { native: STPRedirectContext; readonly state: StripeRedirectState; diff --git a/src/typings/java!Stripe.d.ts b/src/typings/java!Stripe.d.ts index 2b0915a..0c35498 100644 --- a/src/typings/java!Stripe.d.ts +++ b/src/typings/java!Stripe.d.ts @@ -1,3144 +1,5774 @@ -// Generated from Stripe 8.7.0 +// Generated from Stripe 10.2.1 // Using Android DTS Generator as documented at https://docs.nativescript.org/core-concepts/android-runtime/metadata/generating-typescript-declarations: -// Download .aar from https://bintray.com/bintray/jcenter/com.stripe%3Astripe-android/8.7.0#files/com%2Fstripe%2Fstripe-android%2F8.7.0 +// Download .aar from https://bintray.com/bintray/jcenter/com.stripe%3Astripe-android/10.2.1#files/com%2Fstripe%2Fstripe-android%2F10.2.1 // Unpack with `unzip`, copy classes.jar to dts-generator folder, then // cd dts-generator // ./gradlew jar // java -jar build/libs/dts-generator.jar -input classes.jar // cp out/android.d.ts /typings/java\!Stripe.d.ts +// Process same way with stripe3ds2 library +// https://bintray.com/bintray/jcenter/com.stripe%3Astripe-3ds2-android/1.1.6#files/com%2Fstripe%2Fstripe-3ds2-android%2F1.1.6 declare module com { - export module stripe { - export module android { - export abstract class AbstractEphemeralKey extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; - public static fromString(param0: string, param1: java.lang.Class): com.stripe.android.AbstractEphemeralKey; - public toJson(): org.json.JSONObject; - public hashCode(): number; - public describeContents(): number; - public equals(param0: any): boolean; - public toMap(): java.util.Map; - public static fromJson(param0: org.json.JSONObject, param1: java.lang.Class): com.stripe.android.AbstractEphemeralKey; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export abstract class ActivitySourceCallback extends com.stripe.android.SourceCallback { - public static class: java.lang.Class>; - public onSuccess(param0: com.stripe.android.model.Source): void; - public onError(param0: java.lang.Exception): void; - public getActivity(): any; - public constructor(param0: any); - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class ApiVersion { - public static class: java.lang.Class; - public hashCode(): number; - public equals(param0: any): boolean; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class BuildConfig { - public static class: java.lang.Class; - public static DEBUG: boolean; - public static APPLICATION_ID: string; - public static BUILD_TYPE: string; - public static FLAVOR: string; - public static VERSION_CODE: number; - public static VERSION_NAME: string; - public constructor(); - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class CardUtils { - public static class: java.lang.Class; - public static isValidCardNumber(param0: string): boolean; - public constructor(); - public static getPossibleCardType(param0: string): string; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class CustomerEphemeralKey extends com.stripe.android.AbstractEphemeralKey { - public static class: java.lang.Class; - public static CREATOR: globalAndroid.os.Parcelable.Creator; - public constructor(param0: number, param1: string, param2: number, param3: string, param4: boolean, param5: string, param6: string, param7: string); - public constructor(param0: org.json.JSONObject); - public constructor(); - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class CustomerSession extends com.stripe.android.EphemeralKeyManager.KeyManagerListener { - public static class: java.lang.Class; - public static ACTION_API_EXCEPTION: string; - public static EXTRA_EXCEPTION: string; - public static EVENT_SHIPPING_INFO_SAVED: string; - public getCachedCustomer(): com.stripe.android.model.Customer; - public addCustomerSource(param0: globalAndroid.content.Context, param1: string, param2: string, param3: com.stripe.android.CustomerSession.SourceRetrievalListener): void; - public static getInstance(): com.stripe.android.CustomerSession; - public setCustomerShippingInformation(param0: globalAndroid.content.Context, param1: com.stripe.android.model.ShippingInformation): void; - public onKeyUpdate(param0: com.stripe.android.CustomerEphemeralKey, param1: string, param2: string, param3: java.util.Map): void; - public onKeyError(param0: string, param1: number, param2: string): void; - public updateCurrentCustomer(param0: com.stripe.android.CustomerSession.CustomerRetrievalListener): void; - public static initCustomerSession(param0: com.stripe.android.EphemeralKeyProvider): void; - public addProductUsageTokenIfValid(param0: string): void; - public static cancelCallbacks(): void; - public deleteCustomerSource(param0: globalAndroid.content.Context, param1: string, param2: com.stripe.android.CustomerSession.SourceRetrievalListener): void; - public setCustomerDefaultSource(param0: globalAndroid.content.Context, param1: string, param2: string, param3: com.stripe.android.CustomerSession.CustomerRetrievalListener): void; - public onKeyUpdate(param0: any, param1: string, param2: string, param3: java.util.Map): void; - public static endCustomerSession(): void; - public retrieveCurrentCustomer(param0: com.stripe.android.CustomerSession.CustomerRetrievalListener): void; - } - export module CustomerSession { - export abstract class ActivitySourceRetrievalListener extends com.stripe.android.CustomerSession.SourceRetrievalListener { - public static class: java.lang.Class>; - public onSourceRetrieved(param0: com.stripe.android.model.Source): void; - public constructor(param0: any); - public getActivity(): any; - public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; - } - export class CustomerMessage { - public static class: java.lang.Class; - } - export class CustomerRetrievalListener extends com.stripe.android.CustomerSession.RetrievalListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.CustomerSession$CustomerRetrievalListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onCustomerRetrieved(param0: com.stripe.android.model.Customer): void; - onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; - }); - public constructor(); - public onCustomerRetrieved(param0: com.stripe.android.model.Customer): void; - public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; - } - export class ExceptionMessage { - public static class: java.lang.Class; - } - export class RetrievalListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.CustomerSession$RetrievalListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; - }); - public constructor(); - public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; - } - export class SourceMessage { - public static class: java.lang.Class; - } - export class SourceRetrievalListener extends com.stripe.android.CustomerSession.RetrievalListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.CustomerSession$SourceRetrievalListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onSourceRetrieved(param0: com.stripe.android.model.Source): void; - onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; - }); - public constructor(); - public onSourceRetrieved(param0: com.stripe.android.model.Source): void; - public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class EphemeralKeyManager extends java.lang.Object { - public static class: java.lang.Class>; - } - export module EphemeralKeyManager { - export class ClientKeyUpdateListener extends com.stripe.android.EphemeralKeyUpdateListener { - public static class: java.lang.Class; - public onKeyUpdate(param0: string): void; - public onKeyUpdateFailure(param0: number, param1: string): void; - } - export class KeyManagerListener extends java.lang.Object { - public static class: java.lang.Class>; - /** - * Constructs a new instance of the com.stripe.android.EphemeralKeyManager$KeyManagerListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onKeyUpdate(param0: TEphemeralKey, param1: string, param2: string, param3: java.util.Map): void; - onKeyError(param0: string, param1: number, param2: string): void; - }); - public constructor(); - public onKeyError(param0: string, param1: number, param2: string): void; - public onKeyUpdate(param0: TEphemeralKey, param1: string, param2: string, param3: java.util.Map): void; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class EphemeralKeyProvider { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.EphemeralKeyProvider interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - createEphemeralKey(param0: string, param1: com.stripe.android.EphemeralKeyUpdateListener): void; - }); - public constructor(); - public createEphemeralKey(param0: string, param1: com.stripe.android.EphemeralKeyUpdateListener): void; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class EphemeralKeyUpdateListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.EphemeralKeyUpdateListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onKeyUpdate(param0: string): void; - onKeyUpdateFailure(param0: number, param1: string): void; - }); - public constructor(); - public onKeyUpdate(param0: string): void; - public onKeyUpdateFailure(param0: number, param1: string): void; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class ErrorParser { - public static class: java.lang.Class; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class IssuingCardEphemeralKey extends com.stripe.android.AbstractEphemeralKey { - public static class: java.lang.Class; - public static CREATOR: globalAndroid.os.Parcelable.Creator; - public constructor(param0: number, param1: string, param2: number, param3: string, param4: boolean, param5: string, param6: string, param7: string); - public constructor(param0: org.json.JSONObject); - public constructor(); - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class LoggingUtils { - public static class: java.lang.Class; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class PayWithGoogleUtils { - public static class: java.lang.Class; - public static getPriceString(param0: number, param1: java.util.Currency): string; - public constructor(); - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class PaymentCompletionProvider { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.PaymentCompletionProvider interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - completePayment(param0: com.stripe.android.PaymentSessionData, param1: com.stripe.android.PaymentResultListener): void; - }); - public constructor(); - public completePayment(param0: com.stripe.android.PaymentSessionData, param1: com.stripe.android.PaymentResultListener): void; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class PaymentConfiguration { - public static class: java.lang.Class; - public getShouldUseSourcesForCards(): boolean; - public setShouldUseSourcesForCards(param0: boolean): com.stripe.android.PaymentConfiguration; - public getPublishableKey(): string; - public getRequiredBillingAddressFields(): number; - public static init(param0: string): void; - public static getInstance(): com.stripe.android.PaymentConfiguration; - public setRequiredBillingAddressFields(param0: number): com.stripe.android.PaymentConfiguration; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class PaymentResultListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.PaymentResultListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onPaymentResult(param0: string): void; - }); - public constructor(); - public static SUCCESS: string; - public static INCOMPLETE: string; - public static ERROR: string; - public static USER_CANCELLED: string; - public onPaymentResult(param0: string): void; - } - export module PaymentResultListener { - export class PaymentResult { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.PaymentResultListener$PaymentResult interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class PaymentSession { - public static class: java.lang.Class; - public static TOKEN_PAYMENT_SESSION: string; - public static EXTRA_PAYMENT_SESSION_ACTIVE: string; - public static PAYMENT_SESSION_DATA_KEY: string; - public static PAYMENT_SESSION_CONFIG: string; - public savePaymentSessionInstanceState(param0: globalAndroid.os.Bundle): void; - public init(param0: com.stripe.android.PaymentSession.PaymentSessionListener, param1: com.stripe.android.PaymentSessionConfig, param2: globalAndroid.os.Bundle): boolean; - public constructor(param0: globalAndroid.app.Activity); - public getPaymentSessionData(): com.stripe.android.PaymentSessionData; - public setCartTotal(param0: number): void; - public init(param0: com.stripe.android.PaymentSession.PaymentSessionListener, param1: com.stripe.android.PaymentSessionConfig): boolean; - public presentPaymentMethodSelection(): void; - public presentShippingFlow(): void; - public onDestroy(): void; - public handlePaymentData(param0: number, param1: number, param2: globalAndroid.content.Intent): boolean; - public completePayment(param0: com.stripe.android.PaymentCompletionProvider): void; - } - export module PaymentSession { - export abstract class ActivityPaymentSessionListener extends com.stripe.android.PaymentSession.PaymentSessionListener { - public static class: java.lang.Class>; - public constructor(param0: any); - public onError(param0: number, param1: string): void; - public onPaymentSessionDataChanged(param0: com.stripe.android.PaymentSessionData): void; - public onCommunicatingStateChanged(param0: boolean): void; - public getListenerActivity(): any; - } - export class PaymentSessionListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.PaymentSession$PaymentSessionListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onCommunicatingStateChanged(param0: boolean): void; - onError(param0: number, param1: string): void; - onPaymentSessionDataChanged(param0: com.stripe.android.PaymentSessionData): void; - }); - public constructor(); - public onError(param0: number, param1: string): void; - public onPaymentSessionDataChanged(param0: com.stripe.android.PaymentSessionData): void; - public onCommunicatingStateChanged(param0: boolean): void; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class PaymentSessionConfig { - public static class: java.lang.Class; - public static CREATOR: globalAndroid.os.Parcelable.Creator; - public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; - public getOptionalShippingInfoFields(): java.util.List; - public hashCode(): number; - public equals(param0: any): boolean; - public describeContents(): number; - public isShippingInfoRequired(): boolean; - public isShippingMethodRequired(): boolean; - public getPrepopulatedShippingInfo(): com.stripe.android.model.ShippingInformation; - public getHiddenShippingInfoFields(): java.util.List; - } - export module PaymentSessionConfig { - export class Builder { - public static class: java.lang.Class; - public setPrepopulatedShippingInfo(param0: com.stripe.android.model.ShippingInformation): com.stripe.android.PaymentSessionConfig.Builder; - public build(): com.stripe.android.PaymentSessionConfig; - public setOptionalShippingInfoFields(param0: native.Array): com.stripe.android.PaymentSessionConfig.Builder; - public setShippingInfoRequired(param0: boolean): com.stripe.android.PaymentSessionConfig.Builder; - public constructor(); - public setShippingMethodsRequired(param0: boolean): com.stripe.android.PaymentSessionConfig.Builder; - public setHiddenShippingInfoFields(param0: native.Array): com.stripe.android.PaymentSessionConfig.Builder; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class PaymentSessionData { - public static class: java.lang.Class; - public static CREATOR: globalAndroid.os.Parcelable.Creator; - public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; - public getShippingInformation(): com.stripe.android.model.ShippingInformation; - public getSelectedPaymentMethodId(): string; - public getPaymentResult(): string; - public updateIsPaymentReadyToCharge(param0: com.stripe.android.PaymentSessionConfig): boolean; - public constructor(); - public setShippingInformation(param0: com.stripe.android.model.ShippingInformation): void; - public getShippingMethod(): com.stripe.android.model.ShippingMethod; - public isPaymentReadyToCharge(): boolean; - public hashCode(): number; - public equals(param0: any): boolean; - public describeContents(): number; - public getCartTotal(): number; - public setPaymentReadyToCharge(param0: boolean): void; - public setShippingMethod(param0: com.stripe.android.model.ShippingMethod): void; - public getShippingTotal(): number; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class PaymentSessionUtils { - public static class: java.lang.Class; - public static paymentResultFromString(param0: string): string; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class RequestOptions { - public static class: java.lang.Class; - public static TYPE_QUERY: string; - public static TYPE_JSON: string; - public static builder(param0: string): com.stripe.android.RequestOptions.RequestOptionsBuilder; - public static builder(param0: string, param1: string, param2: string): com.stripe.android.RequestOptions.RequestOptionsBuilder; - public static builder(param0: string, param1: string): com.stripe.android.RequestOptions.RequestOptionsBuilder; - } - export module RequestOptions { - export class RequestOptionsBuilder { - public static class: java.lang.Class; - public build(): com.stripe.android.RequestOptions; - } - export class RequestType { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.RequestOptions$RequestType interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class SourceCallback { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.SourceCallback interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onError(param0: java.lang.Exception): void; - onSuccess(param0: com.stripe.android.model.Source): void; - }); - public constructor(); - public onSuccess(param0: com.stripe.android.model.Source): void; - public onError(param0: java.lang.Exception): void; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class Stripe { - public static class: java.lang.Class; - public createBankAccountToken(param0: com.stripe.android.model.BankAccount, param1: com.stripe.android.TokenCallback): void; - public createSourceSynchronous(param0: com.stripe.android.model.SourceParams): com.stripe.android.model.Source; - public createTokenSynchronous(param0: com.stripe.android.model.Card): com.stripe.android.model.Token; - public constructor(param0: globalAndroid.content.Context, param1: string); - public setDefaultPublishableKey(param0: string): void; - public createAccountTokenSynchronous(param0: com.stripe.android.model.AccountParams, param1: string): com.stripe.android.model.Token; - public createBankAccountTokenSynchronous(param0: com.stripe.android.model.BankAccount, param1: string): com.stripe.android.model.Token; - public logEventSynchronous(param0: java.util.List, param1: com.stripe.android.model.StripePaymentSource): void; - public createAccountTokenSynchronous(param0: com.stripe.android.model.AccountParams): com.stripe.android.model.Token; - public createTokenSynchronous(param0: com.stripe.android.model.Card, param1: string): com.stripe.android.model.Token; - public createSource(param0: com.stripe.android.model.SourceParams, param1: com.stripe.android.SourceCallback, param2: string, param3: java.util.concurrent.Executor): void; - public createToken(param0: com.stripe.android.model.Card, param1: string, param2: com.stripe.android.TokenCallback): void; - public createPiiTokenSynchronous(param0: string, param1: string): com.stripe.android.model.Token; - public createCvcUpdateToken(param0: string, param1: string, param2: java.util.concurrent.Executor, param3: com.stripe.android.TokenCallback): void; - public createPiiToken(param0: string, param1: com.stripe.android.TokenCallback): void; - public constructor(param0: globalAndroid.content.Context); - public createToken(param0: com.stripe.android.model.Card, param1: string, param2: java.util.concurrent.Executor, param3: com.stripe.android.TokenCallback): void; - public createPiiTokenSynchronous(param0: string): com.stripe.android.model.Token; - public createSource(param0: com.stripe.android.model.SourceParams, param1: com.stripe.android.SourceCallback): void; - public createBankAccountTokenSynchronous(param0: com.stripe.android.model.BankAccount): com.stripe.android.model.Token; - public createPiiToken(param0: string, param1: string, param2: java.util.concurrent.Executor, param3: com.stripe.android.TokenCallback): void; - public createCvcUpdateTokenSynchronous(param0: string): com.stripe.android.model.Token; - public createCvcUpdateToken(param0: string, param1: com.stripe.android.TokenCallback): void; - public retrievePaymentIntentSynchronous(param0: com.stripe.android.model.PaymentIntentParams, param1: string): com.stripe.android.model.PaymentIntent; - public confirmPaymentIntentSynchronous(param0: com.stripe.android.model.PaymentIntentParams, param1: string): com.stripe.android.model.PaymentIntent; - public retrieveSourceSynchronous(param0: string, param1: string, param2: string): com.stripe.android.model.Source; - public createToken(param0: com.stripe.android.model.Card, param1: com.stripe.android.TokenCallback): void; - public retrieveSourceSynchronous(param0: string, param1: string): com.stripe.android.model.Source; - public createToken(param0: com.stripe.android.model.Card, param1: java.util.concurrent.Executor, param2: com.stripe.android.TokenCallback): void; - public createSourceSynchronous(param0: com.stripe.android.model.SourceParams, param1: string): com.stripe.android.model.Source; - public createPaymentMethodSynchronous(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: string): com.stripe.android.model.PaymentMethod; - public createCvcUpdateTokenSynchronous(param0: string, param1: string): com.stripe.android.model.Token; - public createBankAccountToken(param0: com.stripe.android.model.BankAccount, param1: string, param2: java.util.concurrent.Executor, param3: com.stripe.android.TokenCallback): void; - public setStripeAccount(param0: string): void; - } - export module Stripe { - export class CreateSourceTask extends globalAndroid.os.AsyncTask { - public static class: java.lang.Class; - public doInBackground(param0: native.Array): com.stripe.android.Stripe.ResponseWrapper; - public onPostExecute(param0: com.stripe.android.Stripe.ResponseWrapper): void; - } - export class CreateTokenTask extends globalAndroid.os.AsyncTask { - public static class: java.lang.Class; - public doInBackground(param0: native.Array): com.stripe.android.Stripe.ResponseWrapper; - public onPostExecute(param0: com.stripe.android.Stripe.ResponseWrapper): void; - } - export class ResponseWrapper { - public static class: java.lang.Class; - } - export class SourceCreator { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.Stripe$SourceCreator interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - create(param0: com.stripe.android.model.SourceParams, param1: string, param2: string, param3: java.util.concurrent.Executor, param4: com.stripe.android.SourceCallback): void; - }); - public constructor(); - public create(param0: com.stripe.android.model.SourceParams, param1: string, param2: string, param3: java.util.concurrent.Executor, param4: com.stripe.android.SourceCallback): void; - } - export class TokenCreator { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.Stripe$TokenCreator interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - create(param0: java.util.Map, param1: string, param2: string, param3: string, param4: java.util.concurrent.Executor, param5: com.stripe.android.TokenCallback): void; - }); - public constructor(); - public create(param0: java.util.Map, param1: string, param2: string, param3: string, param4: java.util.concurrent.Executor, param5: com.stripe.android.TokenCallback): void; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class StripeApiHandler { - public static class: java.lang.Class; - } - export module StripeApiHandler { - export class LoggingResponseListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.StripeApiHandler$LoggingResponseListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - shouldLogTest(): boolean; - onLoggingResponse(param0: com.stripe.android.StripeResponse): void; - onStripeException(param0: com.stripe.android.exception.StripeException): void; - }); - public constructor(); - public onStripeException(param0: com.stripe.android.exception.StripeException): void; - public shouldLogTest(): boolean; - public onLoggingResponse(param0: com.stripe.android.StripeResponse): void; - } - export class Parameter { - public static class: java.lang.Class; - } - export class StripeResponseListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.StripeApiHandler$StripeResponseListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onStripeResponse(param0: com.stripe.android.StripeResponse): void; - }); - public constructor(); - public onStripeResponse(param0: com.stripe.android.StripeResponse): void; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class StripeError { - public static class: java.lang.Class; - public type: string; - public message: string; - public code: string; - public param: string; - public declineCode: string; - public charge: string; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class StripeNetworkUtils { - public static class: java.lang.Class; - public static removeNullAndEmptyParams(param0: java.util.Map): void; - public constructor(); - } - export module StripeNetworkUtils { - export class UidProvider { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.StripeNetworkUtils$UidProvider interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - getUid(): string; - getPackageName(): string; - }); - public constructor(); - public getUid(): string; - public getPackageName(): string; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class StripeResponse { - public static class: java.lang.Class; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class StripeSSLSocketFactory { - public static class: java.lang.Class; - public createSocket(param0: java.net.Socket, param1: string, param2: number, param3: boolean): java.net.Socket; - public createSocket(param0: java.net.InetAddress, param1: number, param2: java.net.InetAddress, param3: number): java.net.Socket; - public createSocket(param0: string, param1: number, param2: java.net.InetAddress, param3: number): java.net.Socket; - public getDefaultCipherSuites(): native.Array; - public createSocket(param0: java.net.InetAddress, param1: number): java.net.Socket; - public getSupportedCipherSuites(): native.Array; - public createSocket(param0: string, param1: number): java.net.Socket; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class StripeTextUtils { - public static class: java.lang.Class; - public static nullIfBlank(param0: string): string; - public static isBlank(param0: string): boolean; - public constructor(); - public static removeSpacesAndHyphens(param0: string): string; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class TelemetryClientUtil { - public static class: java.lang.Class; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export class TokenCallback { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.TokenCallback interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onError(param0: java.lang.Exception): void; - onSuccess(param0: com.stripe.android.model.Token): void; - }); - public constructor(); - public onSuccess(param0: com.stripe.android.model.Token): void; - public onError(param0: java.lang.Exception): void; - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module exception { - export class APIConnectionException extends com.stripe.android.exception.StripeException { - public static class: java.lang.Class; - public constructor(param0: string, param1: java.lang.Throwable); - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer); - public constructor(param0: string); - public constructor(param0: string, param1: string, param2: java.lang.Integer, param3: java.lang.Throwable); - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer, param4: java.lang.Throwable); - public constructor(param0: string, param1: string, param2: java.lang.Integer); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module exception { - export class APIException extends com.stripe.android.exception.StripeException { - public static class: java.lang.Class; - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer); - public constructor(param0: string, param1: string, param2: java.lang.Integer, param3: java.lang.Throwable); - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer, param4: java.lang.Throwable); - public constructor(param0: string, param1: string, param2: java.lang.Integer, param3: com.stripe.android.StripeError, param4: java.lang.Throwable); - public constructor(param0: string, param1: string, param2: java.lang.Integer); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module exception { - export class AuthenticationException extends com.stripe.android.exception.StripeException { - public static class: java.lang.Class; - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer); - public constructor(param0: string, param1: string, param2: java.lang.Integer, param3: java.lang.Throwable); - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer, param4: java.lang.Throwable); - public constructor(param0: string, param1: string, param2: java.lang.Integer, param3: com.stripe.android.StripeError); - public constructor(param0: string, param1: string, param2: java.lang.Integer); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module exception { - export class CardException extends com.stripe.android.exception.StripeException { - public static class: java.lang.Class; - public getCode(): string; - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer); - public getCharge(): string; - public constructor(param0: string, param1: string, param2: java.lang.Integer, param3: java.lang.Throwable); - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer, param4: java.lang.Throwable); - public getDeclineCode(): string; - public constructor(param0: string, param1: string, param2: string, param3: string, param4: string, param5: string, param6: java.lang.Integer, param7: com.stripe.android.StripeError); - public constructor(param0: string, param1: string, param2: java.lang.Integer); - public getParam(): string; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module exception { - export class InvalidRequestException extends com.stripe.android.exception.StripeException { - public static class: java.lang.Class; - public constructor(param0: string, param1: string, param2: string, param3: java.lang.Integer, param4: string, param5: string, param6: com.stripe.android.StripeError, param7: java.lang.Throwable); - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer); - public constructor(param0: string, param1: string, param2: java.lang.Integer, param3: java.lang.Throwable); - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer, param4: java.lang.Throwable); - public getErrorDeclineCode(): string; - public getErrorCode(): string; - public constructor(param0: string, param1: string, param2: java.lang.Integer); - public getParam(): string; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module exception { - export class PermissionException extends com.stripe.android.exception.AuthenticationException { - public static class: java.lang.Class; - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer); - public constructor(param0: string, param1: string, param2: java.lang.Integer, param3: java.lang.Throwable); - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer, param4: java.lang.Throwable); - public constructor(param0: string, param1: string, param2: java.lang.Integer, param3: com.stripe.android.StripeError); - public constructor(param0: string, param1: string, param2: java.lang.Integer); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module exception { - export class RateLimitException extends com.stripe.android.exception.InvalidRequestException { - public static class: java.lang.Class; - public constructor(param0: string, param1: string, param2: string, param3: java.lang.Integer, param4: string, param5: string, param6: com.stripe.android.StripeError, param7: java.lang.Throwable); - public constructor(param0: string, param1: string, param2: string, param3: java.lang.Integer, param4: com.stripe.android.StripeError); - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer); - public constructor(param0: string, param1: string, param2: java.lang.Integer, param3: java.lang.Throwable); - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer, param4: java.lang.Throwable); - public constructor(param0: string, param1: string, param2: java.lang.Integer); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module exception { - export abstract class StripeException { - public static class: java.lang.Class; - public static serialVersionUID: number; - public getStatusCode(): java.lang.Integer; - public toString(): string; - public getStripeError(): com.stripe.android.StripeError; - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer); - public getRequestId(): string; - public constructor(param0: string, param1: string, param2: java.lang.Integer, param3: java.lang.Throwable); - public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: java.lang.Integer, param4: java.lang.Throwable); - public constructor(param0: string, param1: string, param2: java.lang.Integer); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class AccountParams { - public static class: java.lang.Class; - public equals(param0: any): boolean; - public static createAccountParams(param0: boolean, param1: com.stripe.android.model.AccountParams.BusinessType, param2: java.util.Map): com.stripe.android.model.AccountParams; - public setTosShownAndAccepted(param0: boolean): com.stripe.android.model.AccountParams; - public static createAccountParams(param0: boolean, param1: java.util.Map): com.stripe.android.model.AccountParams; - public setLegalEntity(param0: java.util.Map): com.stripe.android.model.AccountParams; - public hashCode(): number; - public toParamMap(): java.util.Map; - } - export module AccountParams { - export class BusinessType { - public static class: java.lang.Class; - public static Individual: com.stripe.android.model.AccountParams.BusinessType; - public static Company: com.stripe.android.model.AccountParams.BusinessType; - public code: string; - public static values(): native.Array; - public static valueOf(param0: string): com.stripe.android.model.AccountParams.BusinessType; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class Address extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public static CREATOR: globalAndroid.os.Parcelable.Creator; - public setState(param0: string): void; - public toMap(): java.util.Map; - public describeContents(): number; - public getLine1(): string; - public getCountry(): string; - public getState(): string; - public toJson(): org.json.JSONObject; - public getCity(): string; - public setPostalCode(param0: string): void; - public setCity(param0: string): void; - public equals(param0: any): boolean; - public constructor(param0: globalAndroid.os.Parcel); - public setCountry(param0: string): void; - public constructor(); - public getLine2(): string; - public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; - public getPostalCode(): string; - public static fromString(param0: string): com.stripe.android.model.Address; - public hashCode(): number; - public setLine1(param0: string): void; - public setLine2(param0: string): void; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.Address; - } - export module Address { - export class Builder { - public static class: java.lang.Class; - public setPostalCode(param0: string): com.stripe.android.model.Address.Builder; - public constructor(); - public setLine2(param0: string): com.stripe.android.model.Address.Builder; - public setState(param0: string): com.stripe.android.model.Address.Builder; - public build(): com.stripe.android.model.Address; - public setCountry(param0: string): com.stripe.android.model.Address.Builder; - public setCity(param0: string): com.stripe.android.model.Address.Builder; - public setLine1(param0: string): com.stripe.android.model.Address.Builder; - } - export class RequiredBillingAddressFields { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.model.Address$RequiredBillingAddressFields interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - public static NONE: number; - public static NAME: number; - public static FULL: number; - public static ZIP: number; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class BankAccount { - public static class: java.lang.Class; - public static TYPE_COMPANY: string; - public static TYPE_INDIVIDUAL: string; - public constructor(param0: string, param1: string, param2: string, param3: string, param4: string, param5: string, param6: string, param7: string, param8: string); - public getFingerprint(): string; - public constructor(param0: string, param1: string, param2: string, param3: string, param4: string, param5: string, param6: string, param7: string); - public getCountryCode(): string; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.BankAccount; - public getCurrency(): string; - public getBankName(): string; - public getAccountHolderType(): string; - public static asBankAccountType(param0: string): string; - public getAccountNumber(): string; - public getRoutingNumber(): string; - public getLast4(): string; - public equals(param0: any): boolean; - public static fromString(param0: string): com.stripe.android.model.BankAccount; - public constructor(param0: string, param1: string, param2: string, param3: string); - public hashCode(): number; - public getAccountHolderName(): string; - } - export module BankAccount { - export class BankAccountType { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.model.BankAccount$BankAccountType interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class Card extends com.stripe.android.model.StripeJsonModel implements com.stripe.android.model.StripePaymentSource { - public static class: java.lang.Class; - public static AMERICAN_EXPRESS: string; - public static DISCOVER: string; - public static JCB: string; - public static DINERS_CLUB: string; - public static VISA: string; - public static MASTERCARD: string; - public static UNIONPAY: string; - public static UNKNOWN: string; - public static CVC_LENGTH_AMERICAN_EXPRESS: number; - public static CVC_LENGTH_COMMON: number; - public static FUNDING_CREDIT: string; - public static FUNDING_DEBIT: string; - public static FUNDING_PREPAID: string; - public static FUNDING_UNKNOWN: string; - public static BRAND_RESOURCE_MAP: java.util.Map; - public static PREFIXES_AMERICAN_EXPRESS: native.Array; - public static PREFIXES_DISCOVER: native.Array; - public static PREFIXES_JCB: native.Array; - public static PREFIXES_DINERS_CLUB: native.Array; - public static PREFIXES_VISA: native.Array; - public static PREFIXES_MASTERCARD: native.Array; - public static PREFIXES_UNIONPAY: native.Array; - public static MAX_LENGTH_STANDARD: number; - public static MAX_LENGTH_AMERICAN_EXPRESS: number; - public static MAX_LENGTH_DINERS_CLUB: number; - public validateCVC(): boolean; - public getFunding(): string; - public getId(): string; - public getFingerprint(): string; - public toMap(): java.util.Map; - public getAddressCity(): string; - public toJson(): org.json.JSONObject; - public getCvcCheck(): string; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.Card; - public setAddressZip(param0: string): void; - public constructor(); - public getAddressLine2(): string; - public setAddressLine2(param0: string): void; - public getAddressState(): string; - public setExpMonth(param0: java.lang.Integer): void; - public getExpMonth(): java.lang.Integer; - public getBrand(): string; - public setCVC(param0: string): void; - public getAddressZipCheck(): string; - public validateNumber(): boolean; - public setCurrency(param0: string): void; - public setName(param0: string): void; - public constructor(param0: string, param1: java.lang.Integer, param2: java.lang.Integer, param3: string, param4: string, param5: string, param6: string, param7: string, param8: string, param9: string, param10: string, param11: string, param12: string, param13: string, param14: string, param15: string, param16: string, param17: string, param18: java.util.Map); - public getLoggingTokens(): java.util.List; - public constructor(param0: string, param1: java.lang.Integer, param2: java.lang.Integer, param3: string); - public getMetadata(): java.util.Map; - public setExpYear(param0: java.lang.Integer): void; - public setAddressState(param0: string): void; - public getCVC(): string; - public setMetadata(param0: java.util.Map): void; - public validateCard(): boolean; - public setAddressLine1(param0: string): void; - public setAddressCountry(param0: string): void; - public getCurrency(): string; - public static asCardBrand(param0: string): string; - public static asFundingType(param0: string): string; - public getAddressCountry(): string; - public getExpYear(): java.lang.Integer; - public validateExpiryDate(): boolean; - public validateExpMonth(): boolean; - public setAddressCity(param0: string): void; - public addLoggingToken(param0: string): com.stripe.android.model.Card; - public setNumber(param0: string): void; - public getType(): string; - public hashCode(): number; - public getCustomerId(): string; - public getNumber(): string; - public toPaymentMethodParamsCard(): com.stripe.android.model.PaymentMethodCreateParams.Card; - public getAddressLine1Check(): string; - public static fromString(param0: string): com.stripe.android.model.Card; - public getAddressLine1(): string; - public constructor(param0: string, param1: java.lang.Integer, param2: java.lang.Integer, param3: string, param4: string, param5: string, param6: string, param7: string, param8: string, param9: string, param10: string, param11: string, param12: java.util.Map); - public getCountry(): string; - public getLast4(): string; - public equals(param0: any): boolean; - public getAddressZip(): string; - public getName(): string; - } - export module Card { - export class Builder { - public static class: java.lang.Class; - public addressLine2(param0: string): com.stripe.android.model.Card.Builder; - public last4(param0: string): com.stripe.android.model.Card.Builder; - public addressCountry(param0: string): com.stripe.android.model.Card.Builder; - public tokenizationMethod(param0: string): com.stripe.android.model.Card.Builder; - public metadata(param0: java.util.Map): com.stripe.android.model.Card.Builder; - public fingerprint(param0: string): com.stripe.android.model.Card.Builder; - public addressZip(param0: string): com.stripe.android.model.Card.Builder; - public name(param0: string): com.stripe.android.model.Card.Builder; - public constructor(param0: string, param1: java.lang.Integer, param2: java.lang.Integer, param3: string); - public addressLine1(param0: string): com.stripe.android.model.Card.Builder; - public currency(param0: string): com.stripe.android.model.Card.Builder; - public funding(param0: string): com.stripe.android.model.Card.Builder; - public brand(param0: string): com.stripe.android.model.Card.Builder; - public cvcCheck(param0: string): com.stripe.android.model.Card.Builder; - public addressZipCheck(param0: string): com.stripe.android.model.Card.Builder; - public customer(param0: string): com.stripe.android.model.Card.Builder; - public build(): com.stripe.android.model.Card; - public id(param0: string): com.stripe.android.model.Card.Builder; - public addressLine1Check(param0: string): com.stripe.android.model.Card.Builder; - public country(param0: string): com.stripe.android.model.Card.Builder; - public addressCity(param0: string): com.stripe.android.model.Card.Builder; - public addressState(param0: string): com.stripe.android.model.Card.Builder; - } - export class CardBrand { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.model.Card$CardBrand interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - export class FundingType { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.model.Card$FundingType interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class Customer extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public getId(): string; - public getTotalCount(): java.lang.Integer; - public toMap(): java.util.Map; - public toJson(): org.json.JSONObject; - public getSourceById(param0: string): com.stripe.android.model.CustomerSource; - public getHasMore(): java.lang.Boolean; - public equals(param0: any): boolean; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.Customer; - public getUrl(): string; - public getDefaultSource(): string; - public getSources(): java.util.List; - public static fromString(param0: string): com.stripe.android.model.Customer; - public hashCode(): number; - public getShippingInformation(): com.stripe.android.model.ShippingInformation; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class CustomerSource extends com.stripe.android.model.StripeJsonModel implements com.stripe.android.model.StripePaymentSource { - public static class: java.lang.Class; - public getStripePaymentSource(): com.stripe.android.model.StripePaymentSource; - public getTokenizationMethod(): string; - public equals(param0: any): boolean; - public getId(): string; - public getSourceType(): string; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.CustomerSource; - public toMap(): java.util.Map; - public static fromString(param0: string): com.stripe.android.model.CustomerSource; - public toJson(): org.json.JSONObject; - public asCard(): com.stripe.android.model.Card; - public hashCode(): number; - public asSource(): com.stripe.android.model.Source; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class ModelUtils { - public static class: java.lang.Class; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class PaymentIntent extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public static parseIdFromClientSecret(param0: string): string; - public getId(): string; - public getSource(): string; - public toMap(): java.util.Map; - public getCurrency(): string; - public static fromString(param0: string): com.stripe.android.model.PaymentIntent; - public toJson(): org.json.JSONObject; - public getClientSecret(): string; - public getCaptureMethod(): string; - public getPaymentMethodTypes(): java.util.List; - public getAuthorizationUrl(): globalAndroid.net.Uri; - public getAllowedSourceTypes(): java.util.List; - public hashCode(): number; - public getNextAction(): java.util.Map; - public getAmount(): java.lang.Long; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentIntent; - public getCanceledAt(): java.lang.Long; - public getReceiptEmail(): string; - public getStatus(): string; - public getRedirectUrl(): globalAndroid.net.Uri; - public getConfirmationMethod(): string; - public equals(param0: any): boolean; - public getCreated(): java.lang.Long; - public getNextSourceAction(): java.util.Map; - public getDescription(): string; - public isLiveMode(): java.lang.Boolean; - } - export module PaymentIntent { - export class NextActionType { - public static class: java.lang.Class; - public static RedirectToUrl: com.stripe.android.model.PaymentIntent.NextActionType; - public static AuthorizeWithUrl: com.stripe.android.model.PaymentIntent.NextActionType; - public code: string; - public static values(): native.Array; - public static fromCode(param0: string): com.stripe.android.model.PaymentIntent.NextActionType; - public static valueOf(param0: string): com.stripe.android.model.PaymentIntent.NextActionType; - } - export class Status { - public static class: java.lang.Class; - public static Canceled: com.stripe.android.model.PaymentIntent.Status; - public static Processing: com.stripe.android.model.PaymentIntent.Status; - public static RequiresAction: com.stripe.android.model.PaymentIntent.Status; - public static RequiresAuthorization: com.stripe.android.model.PaymentIntent.Status; - public static RequiresCapture: com.stripe.android.model.PaymentIntent.Status; - public static RequiresConfirmation: com.stripe.android.model.PaymentIntent.Status; - public static RequiresPaymentMethod: com.stripe.android.model.PaymentIntent.Status; - public static Succeeded: com.stripe.android.model.PaymentIntent.Status; - public static RequiresSource: com.stripe.android.model.PaymentIntent.Status; - public static RequiresSourceAction: com.stripe.android.model.PaymentIntent.Status; - public code: string; - public static valueOf(param0: string): com.stripe.android.model.PaymentIntent.Status; - public static fromCode(param0: string): com.stripe.android.model.PaymentIntent.Status; - public static values(): native.Array; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class PaymentIntentParams { - public static class: java.lang.Class; - public static createConfirmPaymentIntentWithSourceDataParams(param0: com.stripe.android.model.SourceParams, param1: string, param2: string, param3: boolean): com.stripe.android.model.PaymentIntentParams; - public static createConfirmPaymentIntentWithSourceIdParams(param0: string, param1: string, param2: string, param3: boolean): com.stripe.android.model.PaymentIntentParams; - public getSourceId(): string; - public static createConfirmPaymentIntentWithPaymentMethodCreateParams(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: string, param2: string, param3: boolean): com.stripe.android.model.PaymentIntentParams; - public static createCustomParams(): com.stripe.android.model.PaymentIntentParams; - public static createConfirmPaymentIntentWithSourceDataParams(param0: com.stripe.android.model.SourceParams, param1: string, param2: string): com.stripe.android.model.PaymentIntentParams; - public getClientSecret(): string; - public setPaymentMethodId(param0: string): com.stripe.android.model.PaymentIntentParams; - public static createConfirmPaymentIntentWithPaymentMethodId(param0: string, param1: string, param2: string, param3: boolean): com.stripe.android.model.PaymentIntentParams; - public getPaymentMethodId(): string; - public setPaymentMethodCreateParams(param0: com.stripe.android.model.PaymentMethodCreateParams): com.stripe.android.model.PaymentIntentParams; - public static createRetrievePaymentIntentParams(param0: string): com.stripe.android.model.PaymentIntentParams; - public setExtraParams(param0: java.util.Map): com.stripe.android.model.PaymentIntentParams; - public getSourceParams(): com.stripe.android.model.SourceParams; - public static createConfirmPaymentIntentWithPaymentMethodId(param0: string, param1: string, param2: string): com.stripe.android.model.PaymentIntentParams; - public setSourceId(param0: string): com.stripe.android.model.PaymentIntentParams; - public setSourceParams(param0: com.stripe.android.model.SourceParams): com.stripe.android.model.PaymentIntentParams; - public toParamMap(): java.util.Map; - public shouldSavePaymentMethod(): boolean; - public setClientSecret(param0: string): com.stripe.android.model.PaymentIntentParams; - public getExtraParams(): java.util.Map; - public getPaymentMethodCreateParams(): com.stripe.android.model.PaymentMethodCreateParams; - public setSavePaymentMethod(param0: boolean): com.stripe.android.model.PaymentIntentParams; - public setReturnUrl(param0: string): com.stripe.android.model.PaymentIntentParams; - public getReturnUrl(): string; - public static createConfirmPaymentIntentWithSourceIdParams(param0: string, param1: string, param2: string): com.stripe.android.model.PaymentIntentParams; - public static createConfirmPaymentIntentWithPaymentMethodCreateParams(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: string, param2: string): com.stripe.android.model.PaymentIntentParams; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class PaymentMethod extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public id: string; - public created: java.lang.Long; - public liveMode: boolean; - public type: string; - public billingDetails: com.stripe.android.model.PaymentMethod.BillingDetails; - public card: com.stripe.android.model.PaymentMethod.Card; - public cardPresent: com.stripe.android.model.PaymentMethod.CardPresent; - public ideal: com.stripe.android.model.PaymentMethod.Ideal; - public customerId: string; - public metadata: java.util.Map; - public equals(param0: any): boolean; - public toMap(): java.util.Map; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod; - public isValid(): boolean; - public toJson(): org.json.JSONObject; - public hashCode(): number; - public static fromString(param0: string): com.stripe.android.model.PaymentMethod; - } - export module PaymentMethod { - export class BillingDetails extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public address: com.stripe.android.model.Address; - public email: string; - public name: string; - public phone: string; - public toJson(): org.json.JSONObject; - public toMap(): java.util.Map; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod.BillingDetails; - public hashCode(): number; - public equals(param0: any): boolean; - } - export module BillingDetails { - export class Builder { - public static class: java.lang.Class; - public constructor(); - public build(): com.stripe.android.model.PaymentMethod.BillingDetails; - public setPhone(param0: string): com.stripe.android.model.PaymentMethod.BillingDetails.Builder; - public setName(param0: string): com.stripe.android.model.PaymentMethod.BillingDetails.Builder; - public setAddress(param0: com.stripe.android.model.Address): com.stripe.android.model.PaymentMethod.BillingDetails.Builder; - public setEmail(param0: string): com.stripe.android.model.PaymentMethod.BillingDetails.Builder; - } - } - export class Builder { - public static class: java.lang.Class; - public setId(param0: string): com.stripe.android.model.PaymentMethod.Builder; - public constructor(); - public setCreated(param0: java.lang.Long): com.stripe.android.model.PaymentMethod.Builder; - public build(): com.stripe.android.model.PaymentMethod; - public setMetadata(param0: java.util.Map): com.stripe.android.model.PaymentMethod.Builder; - public setType(param0: string): com.stripe.android.model.PaymentMethod.Builder; - public setCard(param0: com.stripe.android.model.PaymentMethod.Card): com.stripe.android.model.PaymentMethod.Builder; - public setCustomerId(param0: string): com.stripe.android.model.PaymentMethod.Builder; - public setCardPresent(param0: com.stripe.android.model.PaymentMethod.CardPresent): com.stripe.android.model.PaymentMethod.Builder; - public setLiveMode(param0: boolean): com.stripe.android.model.PaymentMethod.Builder; - public setBillingDetails(param0: com.stripe.android.model.PaymentMethod.BillingDetails): com.stripe.android.model.PaymentMethod.Builder; - public setIdeal(param0: com.stripe.android.model.PaymentMethod.Ideal): com.stripe.android.model.PaymentMethod.Builder; - } - export class Card extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public brand: string; - public checks: com.stripe.android.model.PaymentMethod.Card.Checks; - public country: string; - public expiryMonth: java.lang.Integer; - public expiryYear: java.lang.Integer; - public funding: string; - public last4: string; - public threeDSecureUsage: com.stripe.android.model.PaymentMethod.Card.ThreeDSecureUsage; - public wallet: com.stripe.android.model.wallets.Wallet; - public toJson(): org.json.JSONObject; - public toMap(): java.util.Map; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod.Card; - public equals(param0: any): boolean; - public hashCode(): number; - } - export module Card { - export class Builder { - public static class: java.lang.Class; - public constructor(); - public setThreeDSecureUsage(param0: com.stripe.android.model.PaymentMethod.Card.ThreeDSecureUsage): com.stripe.android.model.PaymentMethod.Card.Builder; - public setLast4(param0: string): com.stripe.android.model.PaymentMethod.Card.Builder; - public setExpiryMonth(param0: java.lang.Integer): com.stripe.android.model.PaymentMethod.Card.Builder; - public setFunding(param0: string): com.stripe.android.model.PaymentMethod.Card.Builder; - public setCountry(param0: string): com.stripe.android.model.PaymentMethod.Card.Builder; - public setWallet(param0: com.stripe.android.model.wallets.Wallet): com.stripe.android.model.PaymentMethod.Card.Builder; - public build(): com.stripe.android.model.PaymentMethod.Card; - public setChecks(param0: com.stripe.android.model.PaymentMethod.Card.Checks): com.stripe.android.model.PaymentMethod.Card.Builder; - public setExpiryYear(param0: java.lang.Integer): com.stripe.android.model.PaymentMethod.Card.Builder; - public setBrand(param0: string): com.stripe.android.model.PaymentMethod.Card.Builder; - } - export class Checks extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public addressLine1Check: string; - public addressPostalCodeCheck: string; - public cvcCheck: string; - public hashCode(): number; - public toJson(): org.json.JSONObject; - public toMap(): java.util.Map; - public equals(param0: any): boolean; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod.Card.Checks; - } - export module Checks { - export class Builder { - public static class: java.lang.Class; - public setAddressLine1Check(param0: string): com.stripe.android.model.PaymentMethod.Card.Checks.Builder; - public setAddressPostalCodeCheck(param0: string): com.stripe.android.model.PaymentMethod.Card.Checks.Builder; - public build(): com.stripe.android.model.PaymentMethod.Card.Checks; - public constructor(); - public setCvcCheck(param0: string): com.stripe.android.model.PaymentMethod.Card.Checks.Builder; - } - } - export class ThreeDSecureUsage extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public isSupported: boolean; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod.Card.ThreeDSecureUsage; - public hashCode(): number; - public toJson(): org.json.JSONObject; - public toMap(): java.util.Map; - public equals(param0: any): boolean; - } - export module ThreeDSecureUsage { - export class Builder { - public static class: java.lang.Class; - public build(): com.stripe.android.model.PaymentMethod.Card.ThreeDSecureUsage; - public constructor(); - public setSupported(param0: boolean): com.stripe.android.model.PaymentMethod.Card.ThreeDSecureUsage.Builder; - } - } - } - export class CardPresent extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public static EMPTY: com.stripe.android.model.PaymentMethod.CardPresent; - public toJson(): org.json.JSONObject; - public toMap(): java.util.Map; - } - export class Ideal extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public bank: string; - public bankIdentifierCode: string; - public toJson(): org.json.JSONObject; - public toMap(): java.util.Map; - public hashCode(): number; - public equals(param0: any): boolean; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod.Ideal; - } - export module Ideal { - export class Builder { - public static class: java.lang.Class; - public constructor(); - public setBankIdentifierCode(param0: string): com.stripe.android.model.PaymentMethod.Ideal.Builder; - public setBank(param0: string): com.stripe.android.model.PaymentMethod.Ideal.Builder; - public build(): com.stripe.android.model.PaymentMethod.Ideal; - } - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class PaymentMethodCreateParams { - public static class: java.lang.Class; - public static create(param0: com.stripe.android.model.PaymentMethodCreateParams.Ideal, param1: com.stripe.android.model.PaymentMethod.BillingDetails): com.stripe.android.model.PaymentMethodCreateParams; - public static create(param0: com.stripe.android.model.PaymentMethodCreateParams.Ideal, param1: com.stripe.android.model.PaymentMethod.BillingDetails, param2: java.util.Map): com.stripe.android.model.PaymentMethodCreateParams; - public static create(param0: com.stripe.android.model.PaymentMethodCreateParams.Card, param1: com.stripe.android.model.PaymentMethod.BillingDetails, param2: java.util.Map): com.stripe.android.model.PaymentMethodCreateParams; - public toParamMap(): java.util.Map; - public static create(param0: com.stripe.android.model.PaymentMethodCreateParams.Card, param1: com.stripe.android.model.PaymentMethod.BillingDetails): com.stripe.android.model.PaymentMethodCreateParams; - } - export module PaymentMethodCreateParams { - export class Card { - public static class: java.lang.Class; - public toMap(): java.util.Map; - public hashCode(): number; - public equals(param0: any): boolean; - public static create(param0: string): com.stripe.android.model.PaymentMethodCreateParams.Card; - } - export module Card { - export class Builder { - public static class: java.lang.Class; - public constructor(); - public build(): com.stripe.android.model.PaymentMethodCreateParams.Card; - public setExpiryMonth(param0: java.lang.Integer): com.stripe.android.model.PaymentMethodCreateParams.Card.Builder; - public setCvc(param0: string): com.stripe.android.model.PaymentMethodCreateParams.Card.Builder; - public setNumber(param0: string): com.stripe.android.model.PaymentMethodCreateParams.Card.Builder; - public setExpiryYear(param0: java.lang.Integer): com.stripe.android.model.PaymentMethodCreateParams.Card.Builder; - } - } - export class Ideal { - public static class: java.lang.Class; - public toMap(): java.util.Map; - public hashCode(): number; - public equals(param0: any): boolean; - } - export module Ideal { - export class Builder { - public static class: java.lang.Class; - public constructor(); - public build(): com.stripe.android.model.PaymentMethodCreateParams.Ideal; - public setBank(param0: string): com.stripe.android.model.PaymentMethodCreateParams.Ideal.Builder; - } - } - export class Type { - public static class: java.lang.Class; - public static Card: com.stripe.android.model.PaymentMethodCreateParams.Type; - public static Ideal: com.stripe.android.model.PaymentMethodCreateParams.Type; - public static valueOf(param0: string): com.stripe.android.model.PaymentMethodCreateParams.Type; - public static values(): native.Array; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class ShippingInformation extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public static CREATOR: globalAndroid.os.Parcelable.Creator; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.ShippingInformation; - public toMap(): java.util.Map; - public constructor(param0: com.stripe.android.model.Address, param1: string, param2: string); - public describeContents(): number; - public toJson(): org.json.JSONObject; - public equals(param0: any): boolean; - public constructor(param0: globalAndroid.os.Parcel); - public constructor(); - public getName(): string; - public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; - public getPhone(): string; - public hashCode(): number; - public getAddress(): com.stripe.android.model.Address; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class ShippingMethod extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public static CREATOR: globalAndroid.os.Parcelable.Creator; - public getLabel(): string; - public toMap(): java.util.Map; - public describeContents(): number; - public getIdentifier(): string; - public constructor(param0: string, param1: string, param2: string, param3: number, param4: string); - public toJson(): org.json.JSONObject; - public equals(param0: any): boolean; - public getAmount(): number; - public constructor(); - public constructor(param0: string, param1: string, param2: number, param3: string); - public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; - public getDetail(): string; - public hashCode(): number; - public getCurrency(): java.util.Currency; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class Source extends com.stripe.android.model.StripeJsonModel implements com.stripe.android.model.StripePaymentSource { - public static class: java.lang.Class; - public static ALIPAY: string; - public static CARD: string; - public static THREE_D_SECURE: string; - public static GIROPAY: string; - public static SEPA_DEBIT: string; - public static IDEAL: string; - public static SOFORT: string; - public static BANCONTACT: string; - public static P24: string; - public static EPS: string; - public static MULTIBANCO: string; - public static UNKNOWN: string; - public static PENDING: string; - public static CHARGEABLE: string; - public static CONSUMED: string; - public static CANCELED: string; - public static FAILED: string; - public static REUSABLE: string; - public static SINGLE_USE: string; - public static REDIRECT: string; - public static RECEIVER: string; - public static CODE_VERIFICATION: string; - public static NONE: string; - public getId(): string; - public setRedirect(param0: com.stripe.android.model.SourceRedirect): void; - public toMap(): java.util.Map; - public getReceiver(): com.stripe.android.model.SourceReceiver; - public getCurrency(): string; - public setType(param0: string): void; - public setMetaData(param0: java.util.Map): void; - public setSourceTypeData(param0: java.util.Map): void; - public toJson(): org.json.JSONObject; - public getCodeVerification(): com.stripe.android.model.SourceCodeVerification; - public setReceiver(param0: com.stripe.android.model.SourceReceiver): void; - public getClientSecret(): string; - public getRedirect(): com.stripe.android.model.SourceRedirect; - public setAmount(param0: number): void; - public getOwner(): com.stripe.android.model.SourceOwner; - public setUsage(param0: string): void; - public setStatus(param0: string): void; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.Source; - public getFlow(): string; - public getUsage(): string; - public setLiveMode(param0: boolean): void; - public getType(): string; - public hashCode(): number; - public getSourceTypeModel(): com.stripe.android.model.StripeSourceTypeModel; - public setCodeVerification(param0: com.stripe.android.model.SourceCodeVerification): void; - public static fromString(param0: string): com.stripe.android.model.Source; - public getAmount(): java.lang.Long; - public setFlow(param0: string): void; - public getMetaData(): java.util.Map; - public getStatus(): string; - public getSourceTypeData(): java.util.Map; - public getTypeRaw(): string; - public setCurrency(param0: string): void; - public setClientSecret(param0: string): void; - public equals(param0: any): boolean; - public getCreated(): java.lang.Long; - public setCreated(param0: number): void; - public setId(param0: string): void; - public isLiveMode(): java.lang.Boolean; - public setOwner(param0: com.stripe.android.model.SourceOwner): void; - public setTypeRaw(param0: string): void; - } - export module Source { - export class SourceFlow { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.model.Source$SourceFlow interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - export class SourceStatus { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.model.Source$SourceStatus interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - export class SourceType { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.model.Source$SourceType interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - export class Usage { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.model.Source$Usage interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class SourceCardData extends com.stripe.android.model.StripeSourceTypeModel { - public static class: java.lang.Class; - public static REQUIRED: string; - public static OPTIONAL: string; - public static NOT_SUPPORTED: string; - public static RECOMMENDED: string; - public static UNKNOWN: string; - public getExpiryMonth(): java.lang.Integer; - public getFunding(): string; - public getAddressLine1Check(): string; - public getBrand(): string; - public toMap(): java.util.Map; - public getDynamicLast4(): string; - public getAddressZipCheck(): string; - public getCountry(): string; - public getThreeDSecureStatus(): string; - public toJson(): org.json.JSONObject; - public getLast4(): string; - public getCvcCheck(): string; - public getTokenizationMethod(): string; - public equals(param0: any): boolean; - public getExpiryYear(): java.lang.Integer; - public hashCode(): number; - } - export module SourceCardData { - export class Builder extends com.stripe.android.model.StripeSourceTypeModel.BaseBuilder { - public static class: java.lang.Class; - public build(): com.stripe.android.model.SourceCardData; - } - export class ThreeDSecureStatus { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.model.SourceCardData$ThreeDSecureStatus interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class SourceCodeVerification extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public equals(param0: any): boolean; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.SourceCodeVerification; - public getAttemptsRemaining(): number; - public toMap(): java.util.Map; - public static fromString(param0: string): com.stripe.android.model.SourceCodeVerification; - public getStatus(): string; - public toJson(): org.json.JSONObject; - public hashCode(): number; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class SourceOwner extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public toMap(): java.util.Map; - public getVerifiedAddress(): com.stripe.android.model.Address; - public toJson(): org.json.JSONObject; - public equals(param0: any): boolean; - public getVerifiedName(): string; - public getName(): string; - public static fromString(param0: string): com.stripe.android.model.SourceOwner; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.SourceOwner; - public getPhone(): string; - public getVerifiedEmail(): string; - public hashCode(): number; - public getAddress(): com.stripe.android.model.Address; - public getEmail(): string; - public getVerifiedPhone(): string; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class SourceParams { - public static class: java.lang.Class; - public setToken(param0: string): com.stripe.android.model.SourceParams; - public getRedirect(): java.util.Map; - public static createSepaDebitParams(param0: string, param1: string, param2: string, param3: string, param4: string, param5: string): com.stripe.android.model.SourceParams; - public static createCardParams(param0: com.stripe.android.model.Card): com.stripe.android.model.SourceParams; - public static createMasterpassParams(param0: string, param1: string): com.stripe.android.model.SourceParams; - public static createSourceFromTokenParams(param0: string): com.stripe.android.model.SourceParams; - public static createBancontactParams(param0: number, param1: string, param2: string, param3: string, param4: string): com.stripe.android.model.SourceParams; - public getCurrency(): string; - public static createVisaCheckoutParams(param0: string): com.stripe.android.model.SourceParams; - public setAmount(param0: number): com.stripe.android.model.SourceParams; - public static createEPSParams(param0: number, param1: string, param2: string, param3: string): com.stripe.android.model.SourceParams; - public static createSofortParams(param0: number, param1: string, param2: string, param3: string): com.stripe.android.model.SourceParams; - public static createCustomParams(): com.stripe.android.model.SourceParams; - public static createIdealParams(param0: number, param1: string, param2: string, param3: string, param4: string): com.stripe.android.model.SourceParams; - public setMetaData(param0: java.util.Map): com.stripe.android.model.SourceParams; - public getOwner(): java.util.Map; - public getUsage(): string; - public setUsage(param0: string): com.stripe.android.model.SourceParams; - public static createSepaDebitParams(param0: string, param1: string, param2: string, param3: string, param4: string, param5: string, param6: string): com.stripe.android.model.SourceParams; - public setCurrency(param0: string): com.stripe.android.model.SourceParams; - public static createGiropayParams(param0: number, param1: string, param2: string, param3: string): com.stripe.android.model.SourceParams; - public getType(): string; - public static createMultibancoParams(param0: number, param1: string, param2: string): com.stripe.android.model.SourceParams; - public setTypeRaw(param0: string): com.stripe.android.model.SourceParams; - public getApiParameterMap(): java.util.Map; - public setExtraParams(param0: java.util.Map): com.stripe.android.model.SourceParams; - public getAmount(): java.lang.Long; - public getMetaData(): java.util.Map; - public static createAlipayReusableParams(param0: string, param1: string, param2: string, param3: string): com.stripe.android.model.SourceParams; - public static createThreeDSecureParams(param0: number, param1: string, param2: string, param3: string): com.stripe.android.model.SourceParams; - public getTypeRaw(): string; - public setOwner(param0: java.util.Map): com.stripe.android.model.SourceParams; - public toParamMap(): java.util.Map; - public static createRetrieveSourceParams(param0: string): java.util.Map; - public setApiParameterMap(param0: java.util.Map): com.stripe.android.model.SourceParams; - public static createAlipaySingleUseParams(param0: number, param1: string, param2: string, param3: string, param4: string): com.stripe.android.model.SourceParams; - public static createP24Params(param0: number, param1: string, param2: string, param3: string, param4: string): com.stripe.android.model.SourceParams; - public setReturnUrl(param0: string): com.stripe.android.model.SourceParams; - public setRedirect(param0: java.util.Map): com.stripe.android.model.SourceParams; - public setType(param0: string): com.stripe.android.model.SourceParams; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class SourceReceiver extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public setAmountReturned(param0: number): void; - public toMap(): java.util.Map; - public getAmountCharged(): number; - public setAddress(param0: string): void; - public toJson(): org.json.JSONObject; - public setAmountReceived(param0: number): void; - public getAmountReceived(): number; - public getAmountReturned(): number; - public static fromString(param0: string): com.stripe.android.model.SourceReceiver; - public getAddress(): string; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.SourceReceiver; - public equals(param0: any): boolean; - public setAmountCharged(param0: number): void; - public hashCode(): number; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class SourceRedirect extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public static PENDING: string; - public static SUCCEEDED: string; - public static FAILED: string; - public static NOT_REQUIRED: string; - public equals(param0: any): boolean; - public setReturnUrl(param0: string): void; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.SourceRedirect; - public static fromString(param0: string): com.stripe.android.model.SourceRedirect; - public getUrl(): string; - public setStatus(param0: string): void; - public toMap(): java.util.Map; - public setUrl(param0: string): void; - public getReturnUrl(): string; - public getStatus(): string; - public toJson(): org.json.JSONObject; - public hashCode(): number; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class SourceSepaDebitData extends com.stripe.android.model.StripeSourceTypeModel { - public static class: java.lang.Class; - public getFingerPrint(): string; - public equals(param0: any): boolean; - public getBranchCode(): string; - public getMandateReference(): string; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.SourceSepaDebitData; - public toMap(): java.util.Map; - public getBankCode(): string; - public getCountry(): string; - public toJson(): org.json.JSONObject; - public hashCode(): number; - public getLast4(): string; - public getMandateUrl(): string; - } - export module SourceSepaDebitData { - export class Builder extends com.stripe.android.model.StripeSourceTypeModel.BaseBuilder { - public static class: java.lang.Class; - public build(): com.stripe.android.model.SourceSepaDebitData; - public constructor(); - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export abstract class StripeJsonModel { - public static class: java.lang.Class; - public constructor(); - public toMap(): java.util.Map; - public toJson(): org.json.JSONObject; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class StripeJsonUtils { - public static class: java.lang.Class; - public static optString(param0: org.json.JSONObject, param1: string): string; - public constructor(); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class StripePaymentSource { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.model.StripePaymentSource interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - getId(): string; - }); - public constructor(); - public getId(): string; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export abstract class StripeSourceTypeModel extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public equals(param0: any): boolean; - public getAdditionalFields(): java.util.Map; - public toMap(): java.util.Map; - public toJson(): org.json.JSONObject; - public hashCode(): number; - } - export module StripeSourceTypeModel { - export abstract class BaseBuilder { - public static class: java.lang.Class; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export class Token extends com.stripe.android.model.StripePaymentSource { - public static class: java.lang.Class; - public static TYPE_CARD: string; - public static TYPE_BANK_ACCOUNT: string; - public static TYPE_PII: string; - public static TYPE_ACCOUNT: string; - public static TYPE_CVC_UPDATE: string; - public getId(): string; - public constructor(param0: string, param1: boolean, param2: java.util.Date, param3: java.lang.Boolean, param4: com.stripe.android.model.Card); - public constructor(param0: string, param1: boolean, param2: java.util.Date, param3: java.lang.Boolean, param4: com.stripe.android.model.BankAccount); - public getUsed(): boolean; - public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.Token; - public getCard(): com.stripe.android.model.Card; - public equals(param0: any): boolean; - public static fromString(param0: string): com.stripe.android.model.Token; - public constructor(param0: string, param1: string, param2: boolean, param3: java.util.Date, param4: java.lang.Boolean); - public getType(): string; - public getBankAccount(): com.stripe.android.model.BankAccount; - public hashCode(): number; - public getCreated(): java.util.Date; - public getLivemode(): boolean; - } - export module Token { - export class TokenType { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.model.Token$TokenType interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export module wallets { - export class AmexExpressCheckoutWallet extends com.stripe.android.model.wallets.Wallet { - public static class: java.lang.Class; - } - export module AmexExpressCheckoutWallet { - export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { - public static class: java.lang.Class; - public constructor(); - } - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export module wallets { - export class ApplePayWallet extends com.stripe.android.model.wallets.Wallet { - public static class: java.lang.Class; - } - export module ApplePayWallet { - export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { - public static class: java.lang.Class; - public constructor(); - } - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export module wallets { - export class GooglePayWallet extends com.stripe.android.model.wallets.Wallet { - public static class: java.lang.Class; - } - export module GooglePayWallet { - export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { - public static class: java.lang.Class; - public constructor(); - } - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export module wallets { - export class MasterpassWallet extends com.stripe.android.model.wallets.Wallet { - public static class: java.lang.Class; - public billingAddress: com.stripe.android.model.wallets.Wallet.Address; - public email: string; - public name: string; - public shippingAddress: com.stripe.android.model.wallets.Wallet.Address; - public hashCode(): number; - public equals(param0: any): boolean; - } - export module MasterpassWallet { - export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { - public static class: java.lang.Class; - public constructor(); - public setBillingAddress(param0: com.stripe.android.model.wallets.Wallet.Address): com.stripe.android.model.wallets.MasterpassWallet.Builder; - public setName(param0: string): com.stripe.android.model.wallets.MasterpassWallet.Builder; - public setEmail(param0: string): com.stripe.android.model.wallets.MasterpassWallet.Builder; - public build(): com.stripe.android.model.wallets.MasterpassWallet; - public setShippingAddress(param0: com.stripe.android.model.wallets.Wallet.Address): com.stripe.android.model.wallets.MasterpassWallet.Builder; - } - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export module wallets { - export class SamsungPayWallet extends com.stripe.android.model.wallets.Wallet { - public static class: java.lang.Class; - } - export module SamsungPayWallet { - export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { - public static class: java.lang.Class; - public constructor(); - } - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export module wallets { - export class VisaCheckoutWallet extends com.stripe.android.model.wallets.Wallet { - public static class: java.lang.Class; - public billingAddress: com.stripe.android.model.wallets.Wallet.Address; - public email: string; - public name: string; - public shippingAddress: com.stripe.android.model.wallets.Wallet.Address; - public hashCode(): number; - public equals(param0: any): boolean; - } - export module VisaCheckoutWallet { - export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { - public static class: java.lang.Class; - public constructor(); - public setShippingAddress(param0: com.stripe.android.model.wallets.Wallet.Address): com.stripe.android.model.wallets.VisaCheckoutWallet.Builder; - public setName(param0: string): com.stripe.android.model.wallets.VisaCheckoutWallet.Builder; - public build(): com.stripe.android.model.wallets.VisaCheckoutWallet; - public setEmail(param0: string): com.stripe.android.model.wallets.VisaCheckoutWallet.Builder; - public setBillingAddress(param0: com.stripe.android.model.wallets.Wallet.Address): com.stripe.android.model.wallets.VisaCheckoutWallet.Builder; - } - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export module wallets { - export abstract class Wallet extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public toJson(): org.json.JSONObject; - public toMap(): java.util.Map; - } - export module Wallet { - export class Address extends com.stripe.android.model.StripeJsonModel { - public static class: java.lang.Class; - public city: string; - public country: string; - public line1: string; - public line2: string; - public postalCode: string; - public state: string; - public hashCode(): number; - public toJson(): org.json.JSONObject; - public toMap(): java.util.Map; - public equals(param0: any): boolean; - } - export module Address { - export class Builder { - public static class: java.lang.Class; - public setLine1(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; - public setPostalCode(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; - public setCountry(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; - public setLine2(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; - public setState(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; - public build(): com.stripe.android.model.wallets.Wallet.Address; - public setCity(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; - } - } - export abstract class Builder extends java.lang.Object { - public static class: java.lang.Class>; - public setDynamicLast4(param0: string): com.stripe.android.model.wallets.Wallet.Builder; - } - export class Type { - public static class: java.lang.Class; - public static AmexExpressCheckout: com.stripe.android.model.wallets.Wallet.Type; - public static ApplePay: com.stripe.android.model.wallets.Wallet.Type; - public static GooglePay: com.stripe.android.model.wallets.Wallet.Type; - public static Masterpass: com.stripe.android.model.wallets.Wallet.Type; - public static SamsungPay: com.stripe.android.model.wallets.Wallet.Type; - public static VisaCheckout: com.stripe.android.model.wallets.Wallet.Type; - public code: string; - public static valueOf(param0: string): com.stripe.android.model.wallets.Wallet.Type; - public static values(): native.Array; - } - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module model { - export module wallets { - export class WalletFactory { - public static class: java.lang.Class; - public constructor(); - public create(param0: org.json.JSONObject): com.stripe.android.model.wallets.Wallet; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module utils { - export class ClassUtils { - public static class: java.lang.Class; - public static findField(param0: java.lang.Class, param1: java.util.Collection): java.lang.reflect.Field; - public static findMethod(param0: java.lang.Class, param1: java.util.Collection): java.lang.reflect.Method; - public static getInternalObject(param0: java.lang.Class, param1: java.util.Set, param2: any): any; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module utils { - export class ObjectUtils { - public static class: java.lang.Class; - public static hash(param0: native.Array): number; - public constructor(); - public static equals(param0: any, param1: any): boolean; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class AddSourceActivity extends com.stripe.android.view.StripeActivity { - public static class: java.lang.Class; - public static EXTRA_NEW_SOURCE: string; - public onActionSave(): void; - public setCommunicatingProgress(param0: boolean): void; - public onCreate(param0: globalAndroid.os.Bundle): void; - public constructor(); - public static newIntent(param0: globalAndroid.content.Context, param1: boolean, param2: boolean): globalAndroid.content.Intent; - } - export module AddSourceActivity { - export class CustomerSessionProxy { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.AddSourceActivity$CustomerSessionProxy interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - addProductUsageTokenIfValid(param0: string): void; - addCustomerSource(param0: string, param1: com.stripe.android.CustomerSession.SourceRetrievalListener): void; - }); - public constructor(); - public addCustomerSource(param0: string, param1: com.stripe.android.CustomerSession.SourceRetrievalListener): void; - public addProductUsageTokenIfValid(param0: string): void; - } - export class SourceCallbackImpl extends com.stripe.android.ActivitySourceCallback { - public static class: java.lang.Class; - public onSuccess(param0: com.stripe.android.model.Source): void; - public onError(param0: java.lang.Exception): void; - } - export class SourceRetrievalListenerImpl extends com.stripe.android.CustomerSession.ActivitySourceRetrievalListener { - public static class: java.lang.Class; - public onSourceRetrieved(param0: com.stripe.android.model.Source): void; - public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; - } - export class StripeProvider { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.AddSourceActivity$StripeProvider interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - getStripe(param0: globalAndroid.content.Context): com.stripe.android.Stripe; - }); - public constructor(); - public getStripe(param0: globalAndroid.content.Context): com.stripe.android.Stripe; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class BackUpFieldDeleteListener extends com.stripe.android.view.StripeEditText.DeleteEmptyListener { - public static class: java.lang.Class; - public onDeleteEmpty(): void; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class CardInputListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.CardInputListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onFocusChange(param0: string): void; - onCardComplete(): void; - onExpirationComplete(): void; - onCvcComplete(): void; - onPostalCodeComplete(): void; - }); - public constructor(); - public onCvcComplete(): void; - public onExpirationComplete(): void; - public onFocusChange(param0: string): void; - public onCardComplete(): void; - public onPostalCodeComplete(): void; - } - export module CardInputListener { - export class FocusField { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.CardInputListener$FocusField interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - public static FOCUS_CARD: string; - public static FOCUS_CVC: string; - public static FOCUS_EXPIRY: string; - public static FOCUS_POSTAL: string; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class CardInputWidget { - public static class: java.lang.Class; - public setEnabled(param0: boolean): void; - public setCardNumber(param0: string): void; - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); - public setExpiryDate(param0: number, param1: number): void; - public onInterceptTouchEvent(param0: globalAndroid.view.MotionEvent): boolean; - public constructor(param0: globalAndroid.content.Context); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); - public getCard(): com.stripe.android.model.Card; - public setCvcNumberTextWatcher(param0: globalAndroid.text.TextWatcher): void; - public setCardNumberTextWatcher(param0: globalAndroid.text.TextWatcher): void; - public setExpiryDateTextWatcher(param0: globalAndroid.text.TextWatcher): void; - public setCardInputListener(param0: com.stripe.android.view.CardInputListener): void; - public clear(): void; - public onRestoreInstanceState(param0: globalAndroid.os.Parcelable): void; - public setCvcCode(param0: string): void; - public onLayout(param0: boolean, param1: number, param2: number, param3: number, param4: number): void; - public onSaveInstanceState(): globalAndroid.os.Parcelable; - public isEnabled(): boolean; - public onWindowFocusChanged(param0: boolean): void; - } - export module CardInputWidget { - export abstract class AnimationEndListener { - public static class: java.lang.Class; - public onAnimationRepeat(param0: globalAndroid.view.animation.Animation): void; - public onAnimationStart(param0: globalAndroid.view.animation.Animation): void; - } - export class DimensionOverrideSettings { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.CardInputWidget$DimensionOverrideSettings interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - getPixelWidth(param0: string, param1: globalAndroid.widget.EditText): number; - getFrameWidth(): number; - }); - public constructor(); - public getPixelWidth(param0: string, param1: globalAndroid.widget.EditText): number; - public getFrameWidth(): number; - } - export class PlacementParameters { - public static class: java.lang.Class; - public toString(): string; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class CardMultilineWidget { - public static class: java.lang.Class; - public setEnabled(param0: boolean): void; - public setCvcLabel(param0: string): void; - public setCardNumber(param0: string): void; - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); - public setPostalCodeTextWatcher(param0: globalAndroid.text.TextWatcher): void; - public constructor(param0: globalAndroid.content.Context); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); - public getCard(): com.stripe.android.model.Card; - public setCvcNumberTextWatcher(param0: globalAndroid.text.TextWatcher): void; - public validateCardNumber(): boolean; - public setCardNumberTextWatcher(param0: globalAndroid.text.TextWatcher): void; - public setExpiryDateTextWatcher(param0: globalAndroid.text.TextWatcher): void; - public clear(): void; - public setCardInputListener(param0: com.stripe.android.view.CardInputListener): void; - public setShouldShowPostalCode(param0: boolean): void; - public onWindowFocusChanged(param0: boolean): void; - public isEnabled(): boolean; - public validateAllFields(): boolean; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class CardNumberEditText extends com.stripe.android.view.StripeEditText { - public static class: java.lang.Class; - public constructor(param0: globalAndroid.content.Context); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); - public getCardNumber(): string; - public getCardBrand(): string; - public getLengthMax(): number; - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); - public onInitializeAccessibilityNodeInfo(param0: globalAndroid.view.accessibility.AccessibilityNodeInfo): void; - public isCardNumberValid(): boolean; - } - export module CardNumberEditText { - export class CardBrandChangeListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.CardNumberEditText$CardBrandChangeListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onCardBrandChanged(param0: string): void; - }); - public constructor(); - public onCardBrandChanged(param0: string): void; - } - export class CardNumberCompleteListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.CardNumberEditText$CardNumberCompleteListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onCardNumberComplete(): void; - }); - public constructor(); - public onCardNumberComplete(): void; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class CountryAdapter { - public static class: java.lang.Class; - public getFilter(): globalAndroid.widget.Filter; - public getCount(): number; - public getItem(param0: number): string; - public getItemId(param0: number): number; - public getView(param0: number, param1: globalAndroid.view.View, param2: globalAndroid.view.ViewGroup): globalAndroid.view.View; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class CountryAutoCompleteTextView { - public static class: java.lang.Class; - public mCountrySelected: string; - public constructor(param0: globalAndroid.content.Context); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); - } - export module CountryAutoCompleteTextView { - export class CountryChangeListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.CountryAutoCompleteTextView$CountryChangeListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onCountryChanged(param0: string): void; - }); - public constructor(); - public onCountryChanged(param0: string): void; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class CountryUtils { - public static class: java.lang.Class; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class DateUtils { - public static class: java.lang.Class; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class ErrorListener extends com.stripe.android.view.StripeEditText.ErrorMessageListener { - public static class: java.lang.Class; - public displayErrorMessage(param0: string): void; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class ExpiryDateEditText extends com.stripe.android.view.StripeEditText { - public static class: java.lang.Class; - public constructor(param0: globalAndroid.content.Context); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); - public isDateValid(): boolean; - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); - public setExpiryDateEditListener(param0: com.stripe.android.view.ExpiryDateEditText.ExpiryDateEditListener): void; - public getValidDateFields(): native.Array; - public onInitializeAccessibilityNodeInfo(param0: globalAndroid.view.accessibility.AccessibilityNodeInfo): void; - } - export module ExpiryDateEditText { - export class ExpiryDateEditListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.ExpiryDateEditText$ExpiryDateEditListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onExpiryDateComplete(): void; - }); - public constructor(); - public onExpiryDateComplete(): void; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class IconTextInputLayout { - public static class: java.lang.Class; - public constructor(param0: globalAndroid.content.Context); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); - public onLayout(param0: boolean, param1: number, param2: number, param3: number, param4: number): void; - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class LockableHorizontalScrollView { - public static class: java.lang.Class; - public constructor(param0: globalAndroid.content.Context); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); - public isScrollable(): boolean; - public setScrollable(param0: boolean): void; - public onTouchEvent(param0: globalAndroid.view.MotionEvent): boolean; - public scrollTo(param0: number, param1: number): void; - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); - public onInterceptTouchEvent(param0: globalAndroid.view.MotionEvent): boolean; - } - export module LockableHorizontalScrollView { - export class LockableScrollChangedListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.LockableHorizontalScrollView$LockableScrollChangedListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onSmoothScrollBy(param0: number, param1: number): void; - }); - public constructor(); - public onSmoothScrollBy(param0: number, param1: number): void; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class MaskedCardAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter { - public static class: java.lang.Class; - public onCreateViewHolder(param0: globalAndroid.view.ViewGroup, param1: number): com.stripe.android.view.MaskedCardAdapter.ViewHolder; - public onBindViewHolder(param0: com.stripe.android.view.MaskedCardAdapter.ViewHolder, param1: number): void; - public getItemCount(): number; - } - export module MaskedCardAdapter { - export class ViewHolder { - public static class: java.lang.Class; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class MaskedCardView { - public static class: java.lang.Class; - public constructor(param0: globalAndroid.content.Context); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); - public setSelected(param0: boolean): void; - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); - public isSelected(): boolean; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class PaymentFlowActivity extends com.stripe.android.view.StripeActivity { - public static class: java.lang.Class; - public onActionSave(): void; - public onCreate(param0: globalAndroid.os.Bundle): void; - public constructor(); - public onBackPressed(): void; - public onPause(): void; - public onResume(): void; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class PaymentFlowExtras { - public static class: java.lang.Class; - public static EXTRA_DEFAULT_SHIPPING_METHOD: string; - public static EXTRA_IS_SHIPPING_INFO_VALID: string; - public static EXTRA_SHIPPING_INFO_DATA: string; - public static EXTRA_SHIPPING_INFO_ERROR: string; - public static EVENT_SHIPPING_INFO_PROCESSED: string; - public static EVENT_SHIPPING_INFO_SUBMITTED: string; - public static EXTRA_VALID_SHIPPING_METHODS: string; - public constructor(); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class PaymentFlowPagerAdapter { - public static class: java.lang.Class; - public instantiateItem(param0: globalAndroid.view.ViewGroup, param1: number): any; - public getCount(): number; - public destroyItem(param0: globalAndroid.view.ViewGroup, param1: number, param2: any): void; - public getPageTitle(param0: number): string; - public isViewFromObject(param0: globalAndroid.view.View, param1: any): boolean; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class PaymentFlowPagerEnum { - public static class: java.lang.Class; - public static SHIPPING_INFO: com.stripe.android.view.PaymentFlowPagerEnum; - public static SHIPPING_METHOD: com.stripe.android.view.PaymentFlowPagerEnum; - public static valueOf(param0: string): com.stripe.android.view.PaymentFlowPagerEnum; - public static values(): native.Array; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class PaymentMethodsActivity { - public static class: java.lang.Class; - public static EXTRA_SELECTED_PAYMENT: string; - public onActivityResult(param0: number, param1: number, param2: globalAndroid.content.Intent): void; - public onCreate(param0: globalAndroid.os.Bundle): void; - public onPrepareOptionsMenu(param0: globalAndroid.view.Menu): boolean; - public onCreateOptionsMenu(param0: globalAndroid.view.Menu): boolean; - public constructor(); - public onOptionsItemSelected(param0: globalAndroid.view.MenuItem): boolean; - public static newIntent(param0: globalAndroid.app.Activity): globalAndroid.content.Intent; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class PaymentMethodsActivityStarter { - public static class: java.lang.Class; - public startForResult(param0: number): void; - public newIntent(): globalAndroid.content.Intent; - public constructor(param0: globalAndroid.app.Activity); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class PaymentUtils { - public static class: java.lang.Class; - public constructor(); - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class SelectShippingMethodWidget { - public static class: java.lang.Class; - public constructor(param0: globalAndroid.content.Context); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); - public setShippingMethods(param0: java.util.List, param1: com.stripe.android.model.ShippingMethod): void; - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); - public getSelectedShippingMethod(): com.stripe.android.model.ShippingMethod; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class ShippingInfoWidget { - public static class: java.lang.Class; - public static ADDRESS_LINE_ONE_FIELD: string; - public static ADDRESS_LINE_TWO_FIELD: string; - public static CITY_FIELD: string; - public static POSTAL_CODE_FIELD: string; - public static STATE_FIELD: string; - public static PHONE_FIELD: string; - public constructor(param0: globalAndroid.content.Context); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); - public setOptionalFields(param0: java.util.List): void; - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); - public populateShippingInfo(param0: com.stripe.android.model.ShippingInformation): void; - public validateAllFields(): boolean; - public setHiddenFields(param0: java.util.List): void; - public getShippingInformation(): com.stripe.android.model.ShippingInformation; - } - export module ShippingInfoWidget { - export class CustomizableShippingField { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.ShippingInfoWidget$CustomizableShippingField interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - }); - public constructor(); - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class ShippingMethodAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter { - public static class: java.lang.Class; - public onBindViewHolder(param0: com.stripe.android.view.ShippingMethodAdapter.ViewHolder, param1: number): void; - public getItemCount(): number; - public getItemId(param0: number): number; - public onCreateViewHolder(param0: globalAndroid.view.ViewGroup, param1: number): com.stripe.android.view.ShippingMethodAdapter.ViewHolder; - } - export module ShippingMethodAdapter { - export class ViewHolder { - public static class: java.lang.Class; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class ShippingMethodView { - public static class: java.lang.Class; - public setSelected(param0: boolean): void; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export abstract class StripeActivity { - public static class: java.lang.Class; - public onActionSave(): void; - public setCommunicatingProgress(param0: boolean): void; - public onCreate(param0: globalAndroid.os.Bundle): void; - public onCreateOptionsMenu(param0: globalAndroid.view.Menu): boolean; - public onPrepareOptionsMenu(param0: globalAndroid.view.Menu): boolean; - public onPause(): void; - public onOptionsItemSelected(param0: globalAndroid.view.MenuItem): boolean; - public onResume(): void; - } - export module StripeActivity { - export class AlertMessageListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.StripeActivity$AlertMessageListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onAlertMessageDisplayed(param0: string): void; - }); - public constructor(); - public onAlertMessageDisplayed(param0: string): void; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class StripeEditText { - public static class: java.lang.Class; - public constructor(param0: globalAndroid.content.Context); - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); - public onDetachedFromWindow(): void; - public getShouldShowError(): boolean; - public setErrorColor(param0: number): void; - public setHintDelayed(param0: number, param1: number): void; - public getCachedColorStateList(): globalAndroid.content.res.ColorStateList; - public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); - public getDefaultErrorColorInt(): number; - public setShouldShowError(param0: boolean): void; - public onCreateInputConnection(param0: globalAndroid.view.inputmethod.EditorInfo): globalAndroid.view.inputmethod.InputConnection; - } - export module StripeEditText { - export class AfterTextChangedListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.StripeEditText$AfterTextChangedListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onTextChanged(param0: string): void; - }); - public constructor(); - public onTextChanged(param0: string): void; - } - export class DeleteEmptyListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.StripeEditText$DeleteEmptyListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - onDeleteEmpty(): void; - }); - public constructor(); - public onDeleteEmpty(): void; - } - export class ErrorMessageListener { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.StripeEditText$ErrorMessageListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - displayErrorMessage(param0: string): void; - }); - public constructor(); - public displayErrorMessage(param0: string): void; - } - export class SoftDeleteInputConnection { - public static class: java.lang.Class; - public deleteSurroundingText(param0: number, param1: number): boolean; - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export class ViewUtils { - public static class: java.lang.Class; - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export module i18n { - export class ErrorMessageTranslator { - public static class: java.lang.Class; - /** - * Constructs a new instance of the com.stripe.android.view.i18n.ErrorMessageTranslator interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. - */ - public constructor(implementation: { - translate(param0: number, param1: string, param2: com.stripe.android.StripeError): string; - }); - public constructor(); - public translate(param0: number, param1: string, param2: com.stripe.android.StripeError): string; - } - export module ErrorMessageTranslator { - export class Default extends com.stripe.android.view.i18n.ErrorMessageTranslator { - public static class: java.lang.Class; - public constructor(); - public translate(param0: number, param1: string, param2: com.stripe.android.StripeError): string; - } - } - } - } - } - } -} - -declare module com { - export module stripe { - export module android { - export module view { - export module i18n { - export class TranslatorManager { - public static class: java.lang.Class; - public static getErrorMessageTranslator(): com.stripe.android.view.i18n.ErrorMessageTranslator; - public static setErrorMessageTranslator(param0: com.stripe.android.view.i18n.ErrorMessageTranslator): void; - } - } - } - } - } + export module stripe { + export module android { + export abstract class ActivitySourceCallback extends com.stripe.android.SourceCallback { + public static class: java.lang.Class>; + public onSuccess(param0: any): void; + public onError(param0: java.lang.Exception): void; + public getActivity(): any; + public constructor(param0: any); + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class AnalyticsDataFactory { + public static class: java.lang.Class; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class ApiKeyValidator { + public static class: java.lang.Class; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export abstract class ApiOperation extends globalAndroid.os.AsyncTask> { + public static class: java.lang.Class>; + public doInBackground(param0: native.Array): com.stripe.android.ResultWrapper; + public onPostExecute(param0: com.stripe.android.ResultWrapper): void; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class ApiRequest extends com.stripe.android.StripeRequest { + public static class: java.lang.Class; + public hashCode(): number; + public equals(param0: any): boolean; + } + export module ApiRequest { + export class Options { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public hashCode(): number; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class ApiRequestExecutor { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.ApiRequestExecutor interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + execute(param0: com.stripe.android.ApiRequest): com.stripe.android.StripeResponse; + }); + public constructor(); + public execute(param0: com.stripe.android.ApiRequest): com.stripe.android.StripeResponse; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class ApiResultCallback extends java.lang.Object { + public static class: java.lang.Class>; + /** + * Constructs a new instance of the com.stripe.android.ApiResultCallback interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onSuccess(param0: ResultType): void; + onError(param0: java.lang.Exception): void; + }); + public constructor(); + public onError(param0: java.lang.Exception): void; + public onSuccess(param0: ResultType): void; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class ApiVersion { + public static class: java.lang.Class; + public code: string; + public hashCode(): number; + public equals(param0: any): boolean; + public toString(): string; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class AppInfo { + public static class: java.lang.Class; + public hashCode(): number; + public static create(param0: string, param1: string, param2: string): com.stripe.android.AppInfo; + public static create(param0: string, param1: string, param2: string, param3: string): com.stripe.android.AppInfo; + public equals(param0: any): boolean; + public static create(param0: string): com.stripe.android.AppInfo; + public static create(param0: string, param1: string): com.stripe.android.AppInfo; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class BuildConfig { + public static class: java.lang.Class; + public static DEBUG: boolean; + public static LIBRARY_PACKAGE_NAME: string; + public static APPLICATION_ID: string; + public static BUILD_TYPE: string; + public static FLAVOR: string; + public static VERSION_CODE: number; + public static VERSION_NAME: string; + public constructor(); + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class CardUtils { + public static class: java.lang.Class; + public static isValidCardNumber(param0: string): boolean; + public constructor(); + public static getPossibleCardType(param0: string): string; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class ConnectionFactory { + public static class: java.lang.Class; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class CustomerEphemeralKey extends com.stripe.android.EphemeralKey { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + } + export module CustomerEphemeralKey { + export class Factory extends com.stripe.android.EphemeralKey.Factory { + public static class: java.lang.Class; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class CustomerSession { + public static class: java.lang.Class; + public static ACTION_API_EXCEPTION: string; + public static EXTRA_EXCEPTION: string; + public static EVENT_SHIPPING_INFO_SAVED: string; + public getCachedCustomer(): com.stripe.android.model.Customer; + public static getInstance(): com.stripe.android.CustomerSession; + public static initCustomerSession(param0: globalAndroid.content.Context, param1: com.stripe.android.EphemeralKeyProvider): void; + public attachPaymentMethod(param0: string, param1: com.stripe.android.CustomerSession.PaymentMethodRetrievalListener): void; + public updateCurrentCustomer(param0: com.stripe.android.CustomerSession.CustomerRetrievalListener): void; + public static initCustomerSession(param0: globalAndroid.content.Context, param1: com.stripe.android.EphemeralKeyProvider, param2: string): void; + public setCustomerDefaultSource(param0: string, param1: string, param2: com.stripe.android.CustomerSession.CustomerRetrievalListener): void; + public addProductUsageTokenIfValid(param0: string): void; + public deleteCustomerSource(param0: string, param1: com.stripe.android.CustomerSession.SourceRetrievalListener): void; + public setCustomerShippingInformation(param0: com.stripe.android.model.ShippingInformation): void; + public static cancelCallbacks(): void; + public getPaymentMethods(param0: com.stripe.android.model.PaymentMethod.Type, param1: com.stripe.android.CustomerSession.PaymentMethodsRetrievalListener): void; + public addCustomerSource(param0: string, param1: string, param2: com.stripe.android.CustomerSession.SourceRetrievalListener): void; + public static endCustomerSession(): void; + public retrieveCurrentCustomer(param0: com.stripe.android.CustomerSession.CustomerRetrievalListener): void; + public detachPaymentMethod(param0: string, param1: com.stripe.android.CustomerSession.PaymentMethodRetrievalListener): void; + } + export module CustomerSession { + export abstract class ActivityCustomerRetrievalListener extends com.stripe.android.CustomerSession.CustomerRetrievalListener { + public static class: java.lang.Class>; + public onCustomerRetrieved(param0: com.stripe.android.model.Customer): void; + public constructor(param0: any); + public getActivity(): any; + public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + } + export abstract class ActivityPaymentMethodRetrievalListener extends com.stripe.android.CustomerSession.PaymentMethodRetrievalListener { + public static class: java.lang.Class>; + public onPaymentMethodRetrieved(param0: com.stripe.android.model.PaymentMethod): void; + public constructor(param0: any); + public getActivity(): any; + public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + } + export abstract class ActivityPaymentMethodsRetrievalListener extends com.stripe.android.CustomerSession.PaymentMethodsRetrievalListener { + public static class: java.lang.Class>; + public onPaymentMethodsRetrieved(param0: java.util.List): void; + public constructor(param0: any); + public getActivity(): any; + public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + } + export abstract class ActivitySourceRetrievalListener extends com.stripe.android.CustomerSession.SourceRetrievalListener { + public static class: java.lang.Class>; + public onSourceRetrieved(param0: com.stripe.android.model.Source): void; + public constructor(param0: any); + public getActivity(): any; + public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + } + export class CustomerRetrievalListener extends com.stripe.android.CustomerSession.RetrievalListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.CustomerSession$CustomerRetrievalListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onCustomerRetrieved(param0: com.stripe.android.model.Customer): void; + onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + }); + public constructor(); + public onCustomerRetrieved(param0: com.stripe.android.model.Customer): void; + public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + } + export class CustomerSessionHandler { + public static class: java.lang.Class; + public handleMessage(param0: globalAndroid.os.Message): void; + } + export module CustomerSessionHandler { + export class Listener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.CustomerSession$CustomerSessionHandler$Listener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onCustomerRetrieved(param0: com.stripe.android.model.Customer, param1: string): void; + onSourceRetrieved(param0: com.stripe.android.model.Source, param1: string): void; + onPaymentMethodRetrieved(param0: com.stripe.android.model.PaymentMethod, param1: string): void; + onPaymentMethodsRetrieved(param0: java.util.List, param1: string): void; + onCustomerShippingInfoSaved(param0: com.stripe.android.model.Customer): void; + onError(param0: com.stripe.android.exception.StripeException, param1: string): void; + }); + public constructor(); + public onPaymentMethodRetrieved(param0: com.stripe.android.model.PaymentMethod, param1: string): void; + public onPaymentMethodsRetrieved(param0: java.util.List, param1: string): void; + public onSourceRetrieved(param0: com.stripe.android.model.Source, param1: string): void; + public onCustomerShippingInfoSaved(param0: com.stripe.android.model.Customer): void; + public onError(param0: com.stripe.android.exception.StripeException, param1: string): void; + public onCustomerRetrieved(param0: com.stripe.android.model.Customer, param1: string): void; + } + } + export abstract class CustomerSessionRunnable extends java.lang.Runnable { + public static class: java.lang.Class>; + public run(): void; + } + export module CustomerSessionRunnable { + export class MessageData extends java.lang.Object { + public static class: java.lang.Class>; + } + } + export class MessageCode { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.CustomerSession$MessageCode interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static CUSTOMER_SHIPPING_INFO_SAVED: number; + public static ERROR: number; + public static SOURCE_RETRIEVED: number; + public static CUSTOMER_RETRIEVED: number; + public static PAYMENT_METHODS_RETRIEVED: number; + public static PAYMENT_METHOD_RETRIEVED: number; + } + export class PaymentMethodRetrievalListener extends com.stripe.android.CustomerSession.RetrievalListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.CustomerSession$PaymentMethodRetrievalListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onPaymentMethodRetrieved(param0: com.stripe.android.model.PaymentMethod): void; + onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + }); + public constructor(); + public onPaymentMethodRetrieved(param0: com.stripe.android.model.PaymentMethod): void; + public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + } + export class PaymentMethodsRetrievalListener extends com.stripe.android.CustomerSession.RetrievalListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.CustomerSession$PaymentMethodsRetrievalListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onPaymentMethodsRetrieved(param0: java.util.List): void; + onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + }); + public constructor(); + public onPaymentMethodsRetrieved(param0: java.util.List): void; + public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + } + export class RetrievalListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.CustomerSession$RetrievalListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + }); + public constructor(); + public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + } + export class SourceRetrievalListener extends com.stripe.android.CustomerSession.RetrievalListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.CustomerSession$SourceRetrievalListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onSourceRetrieved(param0: com.stripe.android.model.Source): void; + onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + }); + public constructor(); + public onSourceRetrieved(param0: com.stripe.android.model.Source): void; + public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export abstract class EphemeralKey extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public describeContents(): number; + public equals(param0: any): boolean; + public static fromJson(param0: org.json.JSONObject, param1: com.stripe.android.EphemeralKey.Factory): com.stripe.android.EphemeralKey; + public toMap(): java.util.Map; + } + export module EphemeralKey { + export abstract class Factory extends java.lang.Object { + public static class: java.lang.Class>; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class EphemeralKeyManager extends java.lang.Object { + public static class: java.lang.Class>; + } + export module EphemeralKeyManager { + export class ClientKeyUpdateListener extends com.stripe.android.EphemeralKeyUpdateListener { + public static class: java.lang.Class; + public onKeyUpdate(param0: string): void; + public onKeyUpdateFailure(param0: number, param1: string): void; + } + export class KeyManagerListener extends java.lang.Object { + public static class: java.lang.Class>; + /** + * Constructs a new instance of the com.stripe.android.EphemeralKeyManager$KeyManagerListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onKeyUpdate(param0: TEphemeralKey, param1: string, param2: string, param3: java.util.Map): void; + onKeyError(param0: string, param1: number, param2: string): void; + }); + public constructor(); + public onKeyError(param0: string, param1: number, param2: string): void; + public onKeyUpdate(param0: TEphemeralKey, param1: string, param2: string, param3: java.util.Map): void; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class EphemeralKeyProvider { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.EphemeralKeyProvider interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + createEphemeralKey(param0: string, param1: com.stripe.android.EphemeralKeyUpdateListener): void; + }); + public constructor(); + public createEphemeralKey(param0: string, param1: com.stripe.android.EphemeralKeyUpdateListener): void; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class EphemeralKeyUpdateListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.EphemeralKeyUpdateListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onKeyUpdate(param0: string): void; + onKeyUpdateFailure(param0: number, param1: string): void; + }); + public constructor(); + public onKeyUpdate(param0: string): void; + public onKeyUpdateFailure(param0: number, param1: string): void; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class ErrorParser { + public static class: java.lang.Class; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class Factory0 extends java.lang.Object { + public static class: java.lang.Class>; + /** + * Constructs a new instance of the com.stripe.android.Factory0 interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + create(): ReturnType; + }); + public constructor(); + public create(): ReturnType; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class FingerprintRequest extends com.stripe.android.StripeRequest { + public static class: java.lang.Class; + public hashCode(): number; + public equals(param0: any): boolean; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class FingerprintRequestFactory extends com.stripe.android.Factory0 { + public static class: java.lang.Class; + public create(): any; + public create(): com.stripe.android.FingerprintRequest; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class FireAndForgetRequestExecutor { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.FireAndForgetRequestExecutor interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + executeAsync(param0: com.stripe.android.StripeRequest): void; + }); + public constructor(); + public executeAsync(param0: com.stripe.android.StripeRequest): void; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class GooglePayConfig { + public static class: java.lang.Class; + public getTokenizationSpecification(): org.json.JSONObject; + public constructor(param0: string); + public constructor(); + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class IssuingCardEphemeralKey extends com.stripe.android.EphemeralKey { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + } + export module IssuingCardEphemeralKey { + export class Factory extends com.stripe.android.EphemeralKey.Factory { + public static class: java.lang.Class; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class IssuingCardPinService extends com.stripe.android.EphemeralKeyManager.KeyManagerListener { + public static class: java.lang.Class; + public retrievePin(param0: string, param1: string, param2: string, param3: com.stripe.android.IssuingCardPinService.IssuingCardPinRetrievalListener): void; + public static create(param0: globalAndroid.content.Context, param1: com.stripe.android.EphemeralKeyProvider): com.stripe.android.IssuingCardPinService; + public onKeyUpdate(param0: com.stripe.android.IssuingCardEphemeralKey, param1: string, param2: string, param3: java.util.Map): void; + public updatePin(param0: string, param1: string, param2: string, param3: string, param4: com.stripe.android.IssuingCardPinService.IssuingCardPinUpdateListener): void; + public onKeyError(param0: string, param1: number, param2: string): void; + public onKeyUpdate(param0: any, param1: string, param2: string, param3: java.util.Map): void; + } + export module IssuingCardPinService { + export class CardPinActionError { + public static class: java.lang.Class; + public static UNKNOWN_ERROR: com.stripe.android.IssuingCardPinService.CardPinActionError; + public static EPHEMERAL_KEY_ERROR: com.stripe.android.IssuingCardPinService.CardPinActionError; + public static ONE_TIME_CODE_INCORRECT: com.stripe.android.IssuingCardPinService.CardPinActionError; + public static ONE_TIME_CODE_EXPIRED: com.stripe.android.IssuingCardPinService.CardPinActionError; + public static ONE_TIME_CODE_TOO_MANY_ATTEMPTS: com.stripe.android.IssuingCardPinService.CardPinActionError; + public static ONE_TIME_CODE_ALREADY_REDEEMED: com.stripe.android.IssuingCardPinService.CardPinActionError; + public static values(): native.Array; + public static valueOf(param0: string): com.stripe.android.IssuingCardPinService.CardPinActionError; + } + export class IssuingCardPinRetrievalListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.IssuingCardPinService$IssuingCardPinRetrievalListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onIssuingCardPinRetrieved(param0: string): void; + onError(param0: com.stripe.android.IssuingCardPinService.CardPinActionError, param1: string, param2: java.lang.Throwable): void; + }); + public constructor(); + public onError(param0: com.stripe.android.IssuingCardPinService.CardPinActionError, param1: string, param2: java.lang.Throwable): void; + public onIssuingCardPinRetrieved(param0: string): void; + } + export class IssuingCardPinUpdateListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.IssuingCardPinService$IssuingCardPinUpdateListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onIssuingCardPinUpdated(): void; + onError(param0: com.stripe.android.IssuingCardPinService.CardPinActionError, param1: string, param2: java.lang.Throwable): void; + }); + public constructor(); + public onError(param0: com.stripe.android.IssuingCardPinService.CardPinActionError, param1: string, param2: java.lang.Throwable): void; + public onIssuingCardPinUpdated(): void; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class ObjectBuilder extends java.lang.Object { + public static class: java.lang.Class>; + /** + * Constructs a new instance of the com.stripe.android.ObjectBuilder interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + build(): T; + }); + public constructor(); + public build(): T; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class OperationIdFactory { + public static class: java.lang.Class; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PayWithGoogleUtils { + public static class: java.lang.Class; + public static getPriceString(param0: number, param1: java.util.Currency): string; + public constructor(); + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PaymentAuthConfig { + public static class: java.lang.Class; + public static init(param0: com.stripe.android.PaymentAuthConfig): void; + public static get(): com.stripe.android.PaymentAuthConfig; + } + export module PaymentAuthConfig { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): com.stripe.android.PaymentAuthConfig; + public constructor(); + public build(): any; + public set3ds2Config(param0: com.stripe.android.PaymentAuthConfig.Stripe3ds2Config): com.stripe.android.PaymentAuthConfig.Builder; + } + export class Stripe3ds2ButtonCustomization { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public hashCode(): number; + } + export module Stripe3ds2ButtonCustomization { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public constructor(); + public setCornerRadius(param0: number): com.stripe.android.PaymentAuthConfig.Stripe3ds2ButtonCustomization.Builder; + public build(): com.stripe.android.PaymentAuthConfig.Stripe3ds2ButtonCustomization; + public setTextFontName(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2ButtonCustomization.Builder; + public setTextFontSize(param0: number): com.stripe.android.PaymentAuthConfig.Stripe3ds2ButtonCustomization.Builder; + public setBackgroundColor(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2ButtonCustomization.Builder; + public setTextColor(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2ButtonCustomization.Builder; + public build(): any; + } + } + export class Stripe3ds2Config { + public static class: java.lang.Class; + } + export module Stripe3ds2Config { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public setUiCustomization(param0: com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization): com.stripe.android.PaymentAuthConfig.Stripe3ds2Config.Builder; + public constructor(); + public build(): com.stripe.android.PaymentAuthConfig.Stripe3ds2Config; + public setTimeout(param0: number): com.stripe.android.PaymentAuthConfig.Stripe3ds2Config.Builder; + public build(): any; + } + } + export class Stripe3ds2LabelCustomization { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public hashCode(): number; + } + export module Stripe3ds2LabelCustomization { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public constructor(); + public setHeadingTextFontName(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2LabelCustomization.Builder; + public setTextFontSize(param0: number): com.stripe.android.PaymentAuthConfig.Stripe3ds2LabelCustomization.Builder; + public build(): com.stripe.android.PaymentAuthConfig.Stripe3ds2LabelCustomization; + public setHeadingTextColor(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2LabelCustomization.Builder; + public setTextColor(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2LabelCustomization.Builder; + public setHeadingTextFontSize(param0: number): com.stripe.android.PaymentAuthConfig.Stripe3ds2LabelCustomization.Builder; + public setTextFontName(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2LabelCustomization.Builder; + public build(): any; + } + } + export class Stripe3ds2TextBoxCustomization { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public hashCode(): number; + } + export module Stripe3ds2TextBoxCustomization { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): com.stripe.android.PaymentAuthConfig.Stripe3ds2TextBoxCustomization; + public constructor(); + public setTextFontSize(param0: number): com.stripe.android.PaymentAuthConfig.Stripe3ds2TextBoxCustomization.Builder; + public setBorderWidth(param0: number): com.stripe.android.PaymentAuthConfig.Stripe3ds2TextBoxCustomization.Builder; + public setBorderColor(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2TextBoxCustomization.Builder; + public setTextFontName(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2TextBoxCustomization.Builder; + public setTextColor(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2TextBoxCustomization.Builder; + public setCornerRadius(param0: number): com.stripe.android.PaymentAuthConfig.Stripe3ds2TextBoxCustomization.Builder; + public build(): any; + } + } + export class Stripe3ds2ToolbarCustomization { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public hashCode(): number; + } + export module Stripe3ds2ToolbarCustomization { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public setTextColor(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2ToolbarCustomization.Builder; + public constructor(); + public setButtonText(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2ToolbarCustomization.Builder; + public setTextFontName(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2ToolbarCustomization.Builder; + public setBackgroundColor(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2ToolbarCustomization.Builder; + public build(): com.stripe.android.PaymentAuthConfig.Stripe3ds2ToolbarCustomization; + public setHeaderText(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2ToolbarCustomization.Builder; + public setTextFontSize(param0: number): com.stripe.android.PaymentAuthConfig.Stripe3ds2ToolbarCustomization.Builder; + public build(): any; + } + } + export class Stripe3ds2UiCustomization { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public hashCode(): number; + public getUiCustomization(): com.stripe.android.stripe3ds2.init.ui.UiCustomization; + } + export module Stripe3ds2UiCustomization { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public constructor(); + public setButtonCustomization(param0: com.stripe.android.PaymentAuthConfig.Stripe3ds2ButtonCustomization, param1: com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.ButtonType): com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.Builder; + public setTextBoxCustomization(param0: com.stripe.android.PaymentAuthConfig.Stripe3ds2TextBoxCustomization): com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.Builder; + public static createWithAppTheme(param0: globalAndroid.app.Activity): com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.Builder; + public build(): com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization; + public setToolbarCustomization(param0: com.stripe.android.PaymentAuthConfig.Stripe3ds2ToolbarCustomization): com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.Builder; + public setLabelCustomization(param0: com.stripe.android.PaymentAuthConfig.Stripe3ds2LabelCustomization): com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.Builder; + public build(): any; + } + export class ButtonType { + public static class: java.lang.Class; + public static SUBMIT: com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.ButtonType; + public static CONTINUE: com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.ButtonType; + public static NEXT: com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.ButtonType; + public static CANCEL: com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.ButtonType; + public static RESEND: com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.ButtonType; + public static SELECT: com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.ButtonType; + public static values(): native.Array; + public static valueOf(param0: string): com.stripe.android.PaymentAuthConfig.Stripe3ds2UiCustomization.ButtonType; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PaymentAuthWebViewStarter extends com.stripe.android.view.AuthActivityStarter { + public static class: java.lang.Class; + public static EXTRA_AUTH_URL: string; + public static EXTRA_CLIENT_SECRET: string; + public static EXTRA_RETURN_URL: string; + public static EXTRA_UI_CUSTOMIZATION: string; + public start(param0: any): void; + public start(param0: com.stripe.android.PaymentAuthWebViewStarter.Data): void; + } + export module PaymentAuthWebViewStarter { + export class Data { + public static class: java.lang.Class; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PaymentConfiguration { + public static class: java.lang.Class; + public getPublishableKey(): string; + public static init(param0: string): void; + public static getInstance(): com.stripe.android.PaymentConfiguration; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PaymentController { + public static class: java.lang.Class; + } + export module PaymentController { + export class ConfirmStripeIntentCallback extends com.stripe.android.ApiResultCallback { + public static class: java.lang.Class; + public onSuccess(param0: com.stripe.android.model.StripeIntent): void; + public onError(param0: java.lang.Exception): void; + public onSuccess(param0: any): void; + } + export class ConfirmStripeIntentTask extends com.stripe.android.ApiOperation { + public static class: java.lang.Class; + } + export class PaymentAuth3ds2ChallengeStatusReceiver { + public static class: java.lang.Class; + public completed(param0: com.stripe.android.stripe3ds2.transaction.CompletionEvent, param1: string): void; + public runtimeError(param0: com.stripe.android.stripe3ds2.transaction.RuntimeErrorEvent): void; + public cancelled(param0: string): void; + public timedout(param0: string): void; + public protocolError(param0: com.stripe.android.stripe3ds2.transaction.ProtocolErrorEvent): void; + } + export class RetrieveIntentTask extends com.stripe.android.ApiOperation { + public static class: java.lang.Class; + } + export class Stripe3ds2AuthCallback extends com.stripe.android.ApiResultCallback { + public static class: java.lang.Class; + public onSuccess(param0: com.stripe.android.model.Stripe3ds2AuthResult): void; + public onError(param0: java.lang.Exception): void; + public onSuccess(param0: any): void; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PaymentFlowActivityStarter extends com.stripe.android.view.ActivityStarter { + public static class: java.lang.Class; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PaymentIntentResult extends com.stripe.android.StripeIntentResult { + public static class: java.lang.Class; + } + export module PaymentIntentResult { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): any; + public build(): com.stripe.android.PaymentIntentResult; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PaymentRelayStarter extends com.stripe.android.view.AuthActivityStarter { + public static class: java.lang.Class; + public start(param0: any): void; + public start(param0: com.stripe.android.PaymentRelayStarter.Data): void; + } + export module PaymentRelayStarter { + export class Data { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public hashCode(): number; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PaymentSession { + public static class: java.lang.Class; + public static TOKEN_PAYMENT_SESSION: string; + public static EXTRA_PAYMENT_SESSION_ACTIVE: string; + public static PAYMENT_SESSION_DATA_KEY: string; + public static PAYMENT_SESSION_CONFIG: string; + public constructor(param0: globalAndroid.app.Activity); + public constructor(param0: androidx.fragment.app.Fragment); + public presentPaymentMethodSelection(param0: boolean): void; + public init(param0: com.stripe.android.PaymentSession.PaymentSessionListener, param1: com.stripe.android.PaymentSessionConfig): boolean; + public presentPaymentMethodSelection(param0: string): void; + public savePaymentSessionInstanceState(param0: globalAndroid.os.Bundle): void; + public init(param0: com.stripe.android.PaymentSession.PaymentSessionListener, param1: com.stripe.android.PaymentSessionConfig, param2: globalAndroid.os.Bundle): boolean; + public onCompleted(): void; + public getPaymentSessionData(): com.stripe.android.PaymentSessionData; + public setCartTotal(param0: number): void; + public presentPaymentMethodSelection(): void; + public presentShippingFlow(): void; + public presentPaymentMethodSelection(param0: boolean, param1: string): void; + public onDestroy(): void; + public handlePaymentData(param0: number, param1: number, param2: globalAndroid.content.Intent): boolean; + } + export module PaymentSession { + export abstract class ActivityPaymentSessionListener extends com.stripe.android.PaymentSession.PaymentSessionListener { + public static class: java.lang.Class>; + public constructor(param0: any); + public onError(param0: number, param1: string): void; + public onPaymentSessionDataChanged(param0: com.stripe.android.PaymentSessionData): void; + public onCommunicatingStateChanged(param0: boolean): void; + public getListenerActivity(): any; + } + export class PaymentSessionListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.PaymentSession$PaymentSessionListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onCommunicatingStateChanged(param0: boolean): void; + onError(param0: number, param1: string): void; + onPaymentSessionDataChanged(param0: com.stripe.android.PaymentSessionData): void; + }); + public constructor(); + public onError(param0: number, param1: string): void; + public onPaymentSessionDataChanged(param0: com.stripe.android.PaymentSessionData): void; + public onCommunicatingStateChanged(param0: boolean): void; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PaymentSessionConfig { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public getOptionalShippingInfoFields(): java.util.List; + public hashCode(): number; + public equals(param0: any): boolean; + public describeContents(): number; + public isShippingInfoRequired(): boolean; + public isShippingMethodRequired(): boolean; + public getPrepopulatedShippingInfo(): com.stripe.android.model.ShippingInformation; + public getHiddenShippingInfoFields(): java.util.List; + } + export module PaymentSessionConfig { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public setPrepopulatedShippingInfo(param0: com.stripe.android.model.ShippingInformation): com.stripe.android.PaymentSessionConfig.Builder; + public build(): com.stripe.android.PaymentSessionConfig; + public setOptionalShippingInfoFields(param0: native.Array): com.stripe.android.PaymentSessionConfig.Builder; + public setShippingInfoRequired(param0: boolean): com.stripe.android.PaymentSessionConfig.Builder; + public constructor(); + public setShippingMethodsRequired(param0: boolean): com.stripe.android.PaymentSessionConfig.Builder; + public build(): any; + public setHiddenShippingInfoFields(param0: native.Array): com.stripe.android.PaymentSessionConfig.Builder; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PaymentSessionData { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public getShippingInformation(): com.stripe.android.model.ShippingInformation; + public updateIsPaymentReadyToCharge(param0: com.stripe.android.PaymentSessionConfig): boolean; + public constructor(); + public getPaymentMethod(): com.stripe.android.model.PaymentMethod; + public setShippingInformation(param0: com.stripe.android.model.ShippingInformation): void; + public getShippingMethod(): com.stripe.android.model.ShippingMethod; + public isPaymentReadyToCharge(): boolean; + public hashCode(): number; + public equals(param0: any): boolean; + public describeContents(): number; + public getCartTotal(): number; + public setPaymentReadyToCharge(param0: boolean): void; + public setShippingMethod(param0: com.stripe.android.model.ShippingMethod): void; + public getShippingTotal(): number; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class PaymentSessionPrefs { + public static class: java.lang.Class; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class ResultWrapper extends java.lang.Object { + public static class: java.lang.Class>; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class SetupIntentResult extends com.stripe.android.StripeIntentResult { + public static class: java.lang.Class; + } + export module SetupIntentResult { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): com.stripe.android.SetupIntentResult; + public build(): any; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class SourceCallback extends com.stripe.android.ApiResultCallback { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.SourceCallback interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onSuccess(param0: any): void; + onError(param0: java.lang.Exception): void; + }); + public constructor(); + public onSuccess(param0: any): void; + public onError(param0: java.lang.Exception): void; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class Stripe { + public static class: java.lang.Class; + public static API_VERSION: string; + public static VERSION: string; + public createSourceSynchronous(param0: com.stripe.android.model.SourceParams): com.stripe.android.model.Source; + public createTokenSynchronous(param0: com.stripe.android.model.Card): com.stripe.android.model.Token; + public createPaymentMethodSynchronous(param0: com.stripe.android.model.PaymentMethodCreateParams): com.stripe.android.model.PaymentMethod; + public onPaymentResult(param0: number, param1: globalAndroid.content.Intent, param2: com.stripe.android.ApiResultCallback): boolean; + public createAccountTokenSynchronous(param0: com.stripe.android.model.AccountParams): com.stripe.android.model.Token; + public onPaymentResult(param0: number, param1: globalAndroid.content.Intent, param2: string, param3: com.stripe.android.ApiResultCallback): boolean; + public static setAppInfo(param0: com.stripe.android.AppInfo): void; + public createSource(param0: com.stripe.android.model.SourceParams, param1: com.stripe.android.SourceCallback, param2: string, param3: java.util.concurrent.Executor): void; + public createPiiTokenSynchronous(param0: string, param1: string): com.stripe.android.model.Token; + public confirmSetupIntent(param0: androidx.fragment.app.Fragment, param1: com.stripe.android.model.ConfirmSetupIntentParams): void; + public createCvcUpdateToken(param0: string, param1: string, param2: java.util.concurrent.Executor, param3: com.stripe.android.TokenCallback): void; + public confirmPaymentIntentSynchronous(param0: com.stripe.android.model.ConfirmPaymentIntentParams, param1: string): com.stripe.android.model.PaymentIntent; + public createPiiToken(param0: string, param1: com.stripe.android.TokenCallback): void; + public retrievePaymentIntentSynchronous(param0: string): com.stripe.android.model.PaymentIntent; + public retrieveSetupIntentSynchronous(param0: string, param1: string): com.stripe.android.model.SetupIntent; + public confirmSetupIntentSynchronous(param0: com.stripe.android.model.ConfirmSetupIntentParams, param1: string): com.stripe.android.model.SetupIntent; + public confirmSetupIntent(param0: globalAndroid.app.Activity, param1: com.stripe.android.model.ConfirmSetupIntentParams): void; + public createToken(param0: com.stripe.android.model.Card, param1: string, param2: java.util.concurrent.Executor, param3: com.stripe.android.TokenCallback): void; + public onSetupResult(param0: number, param1: globalAndroid.content.Intent, param2: string, param3: com.stripe.android.ApiResultCallback): boolean; + public createPiiTokenSynchronous(param0: string): com.stripe.android.model.Token; + public createBankAccountTokenSynchronous(param0: com.stripe.android.model.BankAccount): com.stripe.android.model.Token; + public confirmPayment(param0: globalAndroid.app.Activity, param1: com.stripe.android.model.ConfirmPaymentIntentParams, param2: string): void; + public createPiiToken(param0: string, param1: string, param2: java.util.concurrent.Executor, param3: com.stripe.android.TokenCallback): void; + public retrieveSetupIntentSynchronous(param0: string): com.stripe.android.model.SetupIntent; + public createCvcUpdateTokenSynchronous(param0: string): com.stripe.android.model.Token; + public confirmPaymentIntentSynchronous(param0: com.stripe.android.model.ConfirmPaymentIntentParams): com.stripe.android.model.PaymentIntent; + public createPaymentMethod(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: com.stripe.android.ApiResultCallback): void; + public confirmPayment(param0: globalAndroid.app.Activity, param1: com.stripe.android.model.ConfirmPaymentIntentParams): void; + public authenticateSetup(param0: androidx.fragment.app.Fragment, param1: string, param2: string): void; + public createToken(param0: com.stripe.android.model.Card, param1: com.stripe.android.TokenCallback): void; + public retrieveSourceSynchronous(param0: string, param1: string): com.stripe.android.model.Source; + public createToken(param0: com.stripe.android.model.Card, param1: java.util.concurrent.Executor, param2: com.stripe.android.TokenCallback): void; + public confirmPayment(param0: androidx.fragment.app.Fragment, param1: com.stripe.android.model.ConfirmPaymentIntentParams, param2: string): void; + public createBankAccountToken(param0: com.stripe.android.model.BankAccount, param1: com.stripe.android.TokenCallback): void; + public constructor(param0: globalAndroid.content.Context, param1: string); + public confirmSetupIntent(param0: androidx.fragment.app.Fragment, param1: com.stripe.android.model.ConfirmSetupIntentParams, param2: string): void; + public authenticatePayment(param0: globalAndroid.app.Activity, param1: string): void; + public createAccountTokenSynchronous(param0: com.stripe.android.model.AccountParams, param1: string): com.stripe.android.model.Token; + public confirmSetupIntent(param0: globalAndroid.app.Activity, param1: com.stripe.android.model.ConfirmSetupIntentParams, param2: string): void; + public createBankAccountTokenSynchronous(param0: com.stripe.android.model.BankAccount, param1: string): com.stripe.android.model.Token; + public retrievePaymentIntentSynchronous(param0: string, param1: string): com.stripe.android.model.PaymentIntent; + public confirmPayment(param0: androidx.fragment.app.Fragment, param1: com.stripe.android.model.ConfirmPaymentIntentParams): void; + public authenticateSetup(param0: globalAndroid.app.Activity, param1: string, param2: string): void; + public authenticateSetup(param0: androidx.fragment.app.Fragment, param1: string): void; + public createPaymentMethod(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: com.stripe.android.ApiResultCallback, param2: string, param3: java.util.concurrent.Executor): void; + public authenticateSetup(param0: globalAndroid.app.Activity, param1: string): void; + public createTokenSynchronous(param0: com.stripe.android.model.Card, param1: string): com.stripe.android.model.Token; + public createToken(param0: com.stripe.android.model.Card, param1: string, param2: com.stripe.android.TokenCallback): void; + public constructor(param0: globalAndroid.content.Context); + public createSource(param0: com.stripe.android.model.SourceParams, param1: com.stripe.android.SourceCallback): void; + public authenticatePayment(param0: androidx.fragment.app.Fragment, param1: string): void; + public onSetupResult(param0: number, param1: globalAndroid.content.Intent, param2: com.stripe.android.ApiResultCallback): boolean; + public authenticatePayment(param0: androidx.fragment.app.Fragment, param1: string, param2: string): void; + public createCvcUpdateToken(param0: string, param1: com.stripe.android.TokenCallback): void; + public retrieveSourceSynchronous(param0: string, param1: string, param2: string): com.stripe.android.model.Source; + /** @deprecated */ + public setDefaultPublishableKey(param0: string): void; + public authenticatePayment(param0: globalAndroid.app.Activity, param1: string, param2: string): void; + public createSourceSynchronous(param0: com.stripe.android.model.SourceParams, param1: string): com.stripe.android.model.Source; + public createPaymentMethodSynchronous(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: string): com.stripe.android.model.PaymentMethod; + public createCvcUpdateTokenSynchronous(param0: string, param1: string): com.stripe.android.model.Token; + public createBankAccountToken(param0: com.stripe.android.model.BankAccount, param1: string, param2: java.util.concurrent.Executor, param3: com.stripe.android.TokenCallback): void; + public setStripeAccount(param0: string): void; + } + export module Stripe { + export class CreatePaymentMethodTask extends com.stripe.android.ApiOperation { + public static class: java.lang.Class; + } + export class CreateSourceTask extends com.stripe.android.ApiOperation { + public static class: java.lang.Class; + } + export class CreateTokenTask extends com.stripe.android.ApiOperation { + public static class: java.lang.Class; + } + export class TokenCreator { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.Stripe$TokenCreator interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + create(param0: java.util.Map, param1: com.stripe.android.ApiRequest.Options, param2: string, param3: java.util.concurrent.Executor, param4: com.stripe.android.TokenCallback): void; + }); + public constructor(); + public create(param0: java.util.Map, param1: com.stripe.android.ApiRequest.Options, param2: string, param3: java.util.concurrent.Executor, param4: com.stripe.android.TokenCallback): void; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class Stripe3ds2AuthParams { + public static class: java.lang.Class; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class Stripe3ds2CompletionStarter extends com.stripe.android.view.AuthActivityStarter { + public static class: java.lang.Class; + public start(param0: any): void; + public start(param0: com.stripe.android.Stripe3ds2CompletionStarter.StartData): void; + } + export module Stripe3ds2CompletionStarter { + export class StartData { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public hashCode(): number; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class StripeApiHandler { + public static class: java.lang.Class; + } + export module StripeApiHandler { + export class Complete3ds2AuthTask extends com.stripe.android.ApiOperation { + public static class: java.lang.Class; + } + export class Start3ds2AuthTask extends com.stripe.android.ApiOperation { + public static class: java.lang.Class; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class StripeApiRequestExecutor extends com.stripe.android.ApiRequestExecutor { + public static class: java.lang.Class; + public execute(param0: com.stripe.android.ApiRequest): com.stripe.android.StripeResponse; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class StripeError { + public static class: java.lang.Class; + public type: string; + public message: string; + public code: string; + public param: string; + public declineCode: string; + public charge: string; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class StripeFireAndForgetRequestExecutor extends com.stripe.android.FireAndForgetRequestExecutor { + public static class: java.lang.Class; + public executeAsync(param0: com.stripe.android.StripeRequest): void; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export abstract class StripeIntentResult extends java.lang.Object { + public static class: java.lang.Class>; + public hashCode(): number; + public equals(param0: any): boolean; + public getIntent(): T; + public getOutcome(): number; + /** @deprecated */ + public getStatus(): number; + } + export module StripeIntentResult { + export class Outcome { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.StripeIntentResult$Outcome interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static UNKNOWN: number; + public static TIMEDOUT: number; + public static FAILED: number; + public static SUCCEEDED: number; + public static CANCELED: number; + } + export class Status { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.StripeIntentResult$Status interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static UNKNOWN: number; + public static TIMEDOUT: number; + public static FAILED: number; + public static SUCCEEDED: number; + public static CANCELED: number; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class StripeNetworkUtils { + public static class: java.lang.Class; + public static removeNullAndEmptyParams(param0: java.util.Map): void; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export abstract class StripeRequest { + public static class: java.lang.Class; + } + export module StripeRequest { + export class Method { + public static class: java.lang.Class; + public static GET: com.stripe.android.StripeRequest.Method; + public static POST: com.stripe.android.StripeRequest.Method; + public static DELETE: com.stripe.android.StripeRequest.Method; + public static values(): native.Array; + public static valueOf(param0: string): com.stripe.android.StripeRequest.Method; + } + export class Parameter { + public static class: java.lang.Class; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class StripeResponse { + public static class: java.lang.Class; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class StripeSSLSocketFactory { + public static class: java.lang.Class; + public createSocket(param0: java.net.Socket, param1: string, param2: number, param3: boolean): java.net.Socket; + public createSocket(param0: java.net.InetAddress, param1: number, param2: java.net.InetAddress, param3: number): java.net.Socket; + public createSocket(param0: string, param1: number, param2: java.net.InetAddress, param3: number): java.net.Socket; + public getDefaultCipherSuites(): native.Array; + public createSocket(param0: java.net.InetAddress, param1: number): java.net.Socket; + public getSupportedCipherSuites(): native.Array; + public createSocket(param0: string, param1: number): java.net.Socket; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class StripeTextUtils { + public static class: java.lang.Class; + public static nullIfBlank(param0: string): string; + public static isBlank(param0: string): boolean; + public static emptyIfNull(param0: string): string; + public static isEmpty(param0: string): boolean; + public constructor(); + public static removeSpacesAndHyphens(param0: string): string; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class StripeUid { + public static class: java.lang.Class; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class Supplier extends java.lang.Object { + public static class: java.lang.Class>; + /** + * Constructs a new instance of the com.stripe.android.Supplier interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + get(): T; + }); + public constructor(); + public get(): T; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class TelemetryClientUtil { + public static class: java.lang.Class; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class TokenCallback extends com.stripe.android.ApiResultCallback { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.TokenCallback interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onSuccess(param0: any): void; + onError(param0: java.lang.Exception): void; + }); + public constructor(); + public onSuccess(param0: any): void; + public onError(param0: java.lang.Exception): void; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export class UidSupplier extends com.stripe.android.Supplier { + public static class: java.lang.Class; + public get(): any; + public get(): com.stripe.android.StripeUid; + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module exception { + export class APIConnectionException extends com.stripe.android.exception.StripeException { + public static class: java.lang.Class; + public static create(param0: string, param1: java.lang.Exception): com.stripe.android.exception.APIConnectionException; + public constructor(param0: string, param1: java.lang.Throwable); + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number, param4: java.lang.Throwable); + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number); + public constructor(param0: string, param1: string, param2: number, param3: java.lang.Throwable); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module exception { + export class APIException extends com.stripe.android.exception.StripeException { + public static class: java.lang.Class; + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number, param4: java.lang.Throwable); + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number); + public constructor(param0: string, param1: string, param2: number, param3: java.lang.Throwable); + public constructor(param0: string, param1: string, param2: number, param3: com.stripe.android.StripeError, param4: java.lang.Throwable); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module exception { + export class AuthenticationException extends com.stripe.android.exception.StripeException { + public static class: java.lang.Class; + public constructor(param0: string, param1: string, param2: com.stripe.android.StripeError); + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number, param4: java.lang.Throwable); + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number); + public constructor(param0: string, param1: string, param2: number, param3: java.lang.Throwable); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module exception { + export class CardException extends com.stripe.android.exception.StripeException { + public static class: java.lang.Class; + public constructor(param0: string, param1: string, param2: string, param3: string, param4: string, param5: string, param6: com.stripe.android.StripeError); + public getCode(): string; + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number, param4: java.lang.Throwable); + public getCharge(): string; + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number); + public constructor(param0: string, param1: string, param2: number, param3: java.lang.Throwable); + public getDeclineCode(): string; + public getParam(): string; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module exception { + export class InvalidRequestException extends com.stripe.android.exception.StripeException { + public static class: java.lang.Class; + public constructor(param0: string, param1: string, param2: string, param3: number, param4: string, param5: string, param6: com.stripe.android.StripeError, param7: java.lang.Throwable); + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number, param4: java.lang.Throwable); + public getErrorDeclineCode(): string; + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number); + public constructor(param0: string, param1: string, param2: number, param3: java.lang.Throwable); + public getErrorCode(): string; + public getParam(): string; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module exception { + export class PermissionException extends com.stripe.android.exception.AuthenticationException { + public static class: java.lang.Class; + public constructor(param0: string, param1: string, param2: com.stripe.android.StripeError); + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number, param4: java.lang.Throwable); + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number); + public constructor(param0: string, param1: string, param2: number, param3: java.lang.Throwable); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module exception { + export class RateLimitException extends com.stripe.android.exception.InvalidRequestException { + public static class: java.lang.Class; + public constructor(param0: string, param1: string, param2: string, param3: number, param4: string, param5: string, param6: com.stripe.android.StripeError, param7: java.lang.Throwable); + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number, param4: java.lang.Throwable); + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number); + public constructor(param0: string, param1: string, param2: number, param3: java.lang.Throwable); + public constructor(param0: string, param1: string, param2: string, param3: com.stripe.android.StripeError); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module exception { + export abstract class StripeException { + public static class: java.lang.Class; + public static serialVersionUID: number; + public getStatusCode(): number; + public toString(): string; + public getStripeError(): com.stripe.android.StripeError; + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number, param4: java.lang.Throwable); + public getRequestId(): string; + public constructor(param0: com.stripe.android.StripeError, param1: string, param2: string, param3: number); + public constructor(param0: string, param1: string, param2: number, param3: java.lang.Throwable); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class AccountParams { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public static createAccountParams(param0: boolean, param1: com.stripe.android.model.AccountParams.BusinessType, param2: java.util.Map): com.stripe.android.model.AccountParams; + public hashCode(): number; + public toParamMap(): java.util.Map; + } + export module AccountParams { + export class BusinessType { + public static class: java.lang.Class; + public static Individual: com.stripe.android.model.AccountParams.BusinessType; + public static Company: com.stripe.android.model.AccountParams.BusinessType; + public code: string; + public static values(): native.Array; + public static valueOf(param0: string): com.stripe.android.model.AccountParams.BusinessType; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class Address extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public toMap(): java.util.Map; + public describeContents(): number; + public getLine1(): string; + public getCountry(): string; + public getState(): string; + public getCity(): string; + public equals(param0: any): boolean; + public constructor(param0: globalAndroid.os.Parcel); + public constructor(); + public getLine2(): string; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public getPostalCode(): string; + public static fromString(param0: string): com.stripe.android.model.Address; + public hashCode(): number; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.Address; + } + export module Address { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public setPostalCode(param0: string): com.stripe.android.model.Address.Builder; + public constructor(); + public setLine2(param0: string): com.stripe.android.model.Address.Builder; + public setState(param0: string): com.stripe.android.model.Address.Builder; + public build(): com.stripe.android.model.Address; + public setCountry(param0: string): com.stripe.android.model.Address.Builder; + public setCity(param0: string): com.stripe.android.model.Address.Builder; + public setLine1(param0: string): com.stripe.android.model.Address.Builder; + public build(): any; + } + export class RequiredBillingAddressFields { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.Address$RequiredBillingAddressFields interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static NONE: number; + public static NAME: number; + public static FULL: number; + public static ZIP: number; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class BankAccount { + public static class: java.lang.Class; + public constructor(param0: string, param1: string, param2: string, param3: string, param4: string, param5: string, param6: string, param7: string, param8: string); + public getFingerprint(): string; + public constructor(param0: string, param1: string, param2: string, param3: string, param4: string, param5: string, param6: string, param7: string); + public getCountryCode(): string; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.BankAccount; + public getCurrency(): string; + public getBankName(): string; + public getAccountHolderType(): string; + public static asBankAccountType(param0: string): string; + public getAccountNumber(): string; + public getRoutingNumber(): string; + public getLast4(): string; + public equals(param0: any): boolean; + public static fromString(param0: string): com.stripe.android.model.BankAccount; + public constructor(param0: string, param1: string, param2: string, param3: string); + public hashCode(): number; + public getAccountHolderName(): string; + } + export module BankAccount { + export class BankAccountType { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.BankAccount$BankAccountType interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static COMPANY: string; + public static INDIVIDUAL: string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class Card extends com.stripe.android.model.StripeModel implements com.stripe.android.model.StripePaymentSource { + public static class: java.lang.Class; + public static CVC_LENGTH_AMERICAN_EXPRESS: number; + public static CVC_LENGTH_COMMON: number; + public static PREFIXES_AMERICAN_EXPRESS: native.Array; + public static PREFIXES_DISCOVER: native.Array; + public static PREFIXES_JCB: native.Array; + public static PREFIXES_DINERS_CLUB: native.Array; + public static PREFIXES_VISA: native.Array; + public static PREFIXES_MASTERCARD: native.Array; + public static PREFIXES_UNIONPAY: native.Array; + public static MAX_LENGTH_STANDARD: number; + public static MAX_LENGTH_AMERICAN_EXPRESS: number; + public static MAX_LENGTH_DINERS_CLUB: number; + public validateCVC(): boolean; + public getFunding(): string; + public getId(): string; + public getFingerprint(): string; + public toMap(): java.util.Map; + public getAddressCity(): string; + public getCurrency(): string; + public static asCardBrand(param0: string): string; + public static asFundingType(param0: string): string; + public getCvcCheck(): string; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.Card; + public getAddressCountry(): string; + public getExpYear(): java.lang.Integer; + public getAddressLine2(): string; + public validateExpiryDate(): boolean; + public validateExpMonth(): boolean; + public hashCode(): number; + public getAddressState(): string; + public getCustomerId(): string; + public getNumber(): string; + public toPaymentMethodParamsCard(): com.stripe.android.model.PaymentMethodCreateParams.Card; + public getExpMonth(): java.lang.Integer; + public getBrand(): string; + public getAddressLine1Check(): string; + public static fromString(param0: string): com.stripe.android.model.Card; + public getAddressLine1(): string; + public static getBrandIcon(param0: string): number; + public getAddressZipCheck(): string; + public getCountry(): string; + public validateNumber(): boolean; + public getLast4(): string; + public equals(param0: any): boolean; + public getLoggingTokens(): java.util.List; + public getAddressZip(): string; + public static create(param0: string, param1: java.lang.Integer, param2: java.lang.Integer, param3: string): com.stripe.android.model.Card; + public toBuilder(): com.stripe.android.model.Card.Builder; + public getName(): string; + public getMetadata(): java.util.Map; + public getCVC(): string; + public validateCard(): boolean; + } + export module Card { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public addressLine2(param0: string): com.stripe.android.model.Card.Builder; + public last4(param0: string): com.stripe.android.model.Card.Builder; + public addressCountry(param0: string): com.stripe.android.model.Card.Builder; + public tokenizationMethod(param0: string): com.stripe.android.model.Card.Builder; + public metadata(param0: java.util.Map): com.stripe.android.model.Card.Builder; + public fingerprint(param0: string): com.stripe.android.model.Card.Builder; + public addressZip(param0: string): com.stripe.android.model.Card.Builder; + public name(param0: string): com.stripe.android.model.Card.Builder; + public constructor(param0: string, param1: java.lang.Integer, param2: java.lang.Integer, param3: string); + public addressLine1(param0: string): com.stripe.android.model.Card.Builder; + public currency(param0: string): com.stripe.android.model.Card.Builder; + public build(): any; + public funding(param0: string): com.stripe.android.model.Card.Builder; + public brand(param0: string): com.stripe.android.model.Card.Builder; + public loggingTokens(param0: java.util.List): com.stripe.android.model.Card.Builder; + public cvcCheck(param0: string): com.stripe.android.model.Card.Builder; + public addressZipCheck(param0: string): com.stripe.android.model.Card.Builder; + public customer(param0: string): com.stripe.android.model.Card.Builder; + public build(): com.stripe.android.model.Card; + public id(param0: string): com.stripe.android.model.Card.Builder; + public addressLine1Check(param0: string): com.stripe.android.model.Card.Builder; + public country(param0: string): com.stripe.android.model.Card.Builder; + public addressCity(param0: string): com.stripe.android.model.Card.Builder; + public addressState(param0: string): com.stripe.android.model.Card.Builder; + } + export class CardBrand { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.Card$CardBrand interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static UNIONPAY: string; + public static DISCOVER: string; + public static MASTERCARD: string; + public static VISA: string; + public static JCB: string; + public static UNKNOWN: string; + public static DINERS_CLUB: string; + public static AMERICAN_EXPRESS: string; + } + export class FundingType { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.Card$FundingType interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static CREDIT: string; + public static DEBIT: string; + public static UNKNOWN: string; + public static PREPAID: string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class ConfirmPaymentIntentParams extends com.stripe.android.model.ConfirmStripeIntentParams { + public static class: java.lang.Class; + public static API_PARAM_SOURCE_DATA: string; + public static API_PARAM_PAYMENT_METHOD_DATA: string; + public static createWithPaymentMethodCreateParams(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: string, param2: string): com.stripe.android.model.ConfirmPaymentIntentParams; + public static createWithSourceId(param0: string, param1: string, param2: string): com.stripe.android.model.ConfirmPaymentIntentParams; + public static createWithSourceId(param0: string, param1: string, param2: string, param3: boolean, param4: java.util.Map): com.stripe.android.model.ConfirmPaymentIntentParams; + public getSourceId(): string; + public withShouldUseStripeSdk(param0: boolean): com.stripe.android.model.ConfirmPaymentIntentParams; + public static createWithPaymentMethodCreateParams(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: string): com.stripe.android.model.ConfirmPaymentIntentParams; + public getClientSecret(): string; + public static createWithPaymentMethodCreateParams(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: string, param2: string, param3: boolean, param4: java.util.Map): com.stripe.android.model.ConfirmPaymentIntentParams; + public static createWithPaymentMethodId(param0: string, param1: string, param2: string, param3: boolean): com.stripe.android.model.ConfirmPaymentIntentParams; + public static create(param0: string, param1: string, param2: java.util.Map): com.stripe.android.model.ConfirmPaymentIntentParams; + public static createWithSourceParams(param0: com.stripe.android.model.SourceParams, param1: string, param2: string): com.stripe.android.model.ConfirmPaymentIntentParams; + public static createWithSourceParams(param0: com.stripe.android.model.SourceParams, param1: string, param2: string, param3: boolean, param4: java.util.Map): com.stripe.android.model.ConfirmPaymentIntentParams; + public static createWithPaymentMethodId(param0: string, param1: string, param2: string, param3: boolean, param4: java.util.Map): com.stripe.android.model.ConfirmPaymentIntentParams; + public static createWithPaymentMethodCreateParams(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: string, param2: string, param3: boolean): com.stripe.android.model.ConfirmPaymentIntentParams; + public hashCode(): number; + public getPaymentMethodId(): string; + public static createWithSourceParams(param0: com.stripe.android.model.SourceParams, param1: string, param2: string, param3: boolean): com.stripe.android.model.ConfirmPaymentIntentParams; + public getSourceParams(): com.stripe.android.model.SourceParams; + public static createWithPaymentMethodId(param0: string, param1: string, param2: string): com.stripe.android.model.ConfirmPaymentIntentParams; + public toParamMap(): java.util.Map; + public static create(param0: string): com.stripe.android.model.ConfirmPaymentIntentParams; + public equals(param0: any): boolean; + public static createWithPaymentMethodId(param0: string, param1: string): com.stripe.android.model.ConfirmPaymentIntentParams; + public static create(param0: string, param1: string): com.stripe.android.model.ConfirmPaymentIntentParams; + public shouldSavePaymentMethod(): boolean; + public getPaymentMethodCreateParams(): com.stripe.android.model.PaymentMethodCreateParams; + public getExtraParams(): java.util.Map; + public getReturnUrl(): string; + public static createWithSourceId(param0: string, param1: string, param2: string, param3: boolean): com.stripe.android.model.ConfirmPaymentIntentParams; + public shouldUseStripeSdk(): boolean; + public withShouldUseStripeSdk(param0: boolean): com.stripe.android.model.ConfirmStripeIntentParams; + } + export module ConfirmPaymentIntentParams { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): com.stripe.android.model.ConfirmPaymentIntentParams; + public build(): any; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class ConfirmSetupIntentParams extends com.stripe.android.model.ConfirmStripeIntentParams { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public static create(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: string, param2: string): com.stripe.android.model.ConfirmSetupIntentParams; + public static create(param0: com.stripe.android.model.PaymentMethodCreateParams, param1: string): com.stripe.android.model.ConfirmSetupIntentParams; + public withShouldUseStripeSdk(param0: boolean): com.stripe.android.model.ConfirmSetupIntentParams; + public getPaymentMethodCreateParams(): com.stripe.android.model.PaymentMethodCreateParams; + public shouldUseStripeSdk(): boolean; + public hashCode(): number; + public toParamMap(): java.util.Map; + public static create(param0: string, param1: string, param2: string): com.stripe.android.model.ConfirmSetupIntentParams; + public static create(param0: string, param1: string): com.stripe.android.model.ConfirmSetupIntentParams; + public getClientSecret(): string; + public withShouldUseStripeSdk(param0: boolean): com.stripe.android.model.ConfirmStripeIntentParams; + } + export module ConfirmSetupIntentParams { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): com.stripe.android.model.ConfirmSetupIntentParams; + public build(): any; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class ConfirmStripeIntentParams { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.ConfirmStripeIntentParams interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + toParamMap(): java.util.Map; + getClientSecret(): string; + shouldUseStripeSdk(): boolean; + withShouldUseStripeSdk(param0: boolean): com.stripe.android.model.ConfirmStripeIntentParams; + }); + public constructor(); + public static API_PARAM_CLIENT_SECRET: string; + public static API_PARAM_PAYMENT_METHOD_DATA: string; + public static API_PARAM_RETURN_URL: string; + public static API_PARAM_USE_STRIPE_SDK: string; + public static API_PARAM_PAYMENT_METHOD_ID: string; + public shouldUseStripeSdk(): boolean; + public toParamMap(): java.util.Map; + public getClientSecret(): string; + public withShouldUseStripeSdk(param0: boolean): com.stripe.android.model.ConfirmStripeIntentParams; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class Customer extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public getId(): string; + public getTotalCount(): java.lang.Integer; + public toMap(): java.util.Map; + public getSourceById(param0: string): com.stripe.android.model.CustomerSource; + public getHasMore(): java.lang.Boolean; + public equals(param0: any): boolean; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.Customer; + public getUrl(): string; + public getDefaultSource(): string; + public getSources(): java.util.List; + public static fromString(param0: string): com.stripe.android.model.Customer; + public hashCode(): number; + public getShippingInformation(): com.stripe.android.model.ShippingInformation; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class CustomerSource extends com.stripe.android.model.StripeModel implements com.stripe.android.model.StripePaymentSource { + public static class: java.lang.Class; + public getStripePaymentSource(): com.stripe.android.model.StripePaymentSource; + public getTokenizationMethod(): string; + public equals(param0: any): boolean; + public getId(): string; + public getSourceType(): string; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.CustomerSource; + public toMap(): java.util.Map; + public static fromString(param0: string): com.stripe.android.model.CustomerSource; + public asCard(): com.stripe.android.model.Card; + public hashCode(): number; + public asSource(): com.stripe.android.model.Source; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class ModelUtils { + public static class: java.lang.Class; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class PaymentIntent extends com.stripe.android.model.StripeModel implements com.stripe.android.model.StripeIntent { + public static class: java.lang.Class; + public static parseIdFromClientSecret(param0: string): string; + public getId(): string; + public requiresConfirmation(): boolean; + public getSource(): string; + public toMap(): java.util.Map; + public getCurrency(): string; + public static fromString(param0: string): com.stripe.android.model.PaymentIntent; + public getClientSecret(): string; + public getCaptureMethod(): string; + public getNextActionType(): com.stripe.android.model.StripeIntent.NextActionType; + public isLiveMode(): boolean; + public getPaymentMethodTypes(): java.util.List; + public getRedirectData(): com.stripe.android.model.StripeIntent.RedirectData; + public hashCode(): number; + public getNextAction(): java.util.Map; + public getStripeSdkData(): com.stripe.android.model.StripeIntent.SdkData; + public getAmount(): java.lang.Long; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentIntent; + public getCanceledAt(): java.lang.Long; + public getReceiptEmail(): string; + public getRedirectUrl(): globalAndroid.net.Uri; + public getConfirmationMethod(): string; + public equals(param0: any): boolean; + public requiresAction(): boolean; + public getStatus(): com.stripe.android.model.StripeIntent.Status; + public getCreated(): java.lang.Long; + public getDescription(): string; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class PaymentMethod extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public id: string; + public created: java.lang.Long; + public liveMode: boolean; + public type: string; + public billingDetails: com.stripe.android.model.PaymentMethod.BillingDetails; + public card: com.stripe.android.model.PaymentMethod.Card; + public cardPresent: com.stripe.android.model.PaymentMethod.CardPresent; + public ideal: com.stripe.android.model.PaymentMethod.Ideal; + public customerId: string; + public metadata: java.util.Map; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public equals(param0: any): boolean; + public toMap(): java.util.Map; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod; + public isValid(): boolean; + public describeContents(): number; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public static fromString(param0: string): com.stripe.android.model.PaymentMethod; + } + export module PaymentMethod { + export class BillingDetails extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public address: com.stripe.android.model.Address; + public email: string; + public name: string; + public phone: string; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public describeContents(): number; + public toMap(): java.util.Map; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod.BillingDetails; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public equals(param0: any): boolean; + } + export module BillingDetails { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public constructor(); + public build(): com.stripe.android.model.PaymentMethod.BillingDetails; + public setPhone(param0: string): com.stripe.android.model.PaymentMethod.BillingDetails.Builder; + public build(): any; + public setName(param0: string): com.stripe.android.model.PaymentMethod.BillingDetails.Builder; + public setAddress(param0: com.stripe.android.model.Address): com.stripe.android.model.PaymentMethod.BillingDetails.Builder; + public setEmail(param0: string): com.stripe.android.model.PaymentMethod.BillingDetails.Builder; + } + } + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public setId(param0: string): com.stripe.android.model.PaymentMethod.Builder; + public constructor(); + public setCardPresent(param0: com.stripe.android.model.PaymentMethod.CardPresent): com.stripe.android.model.PaymentMethod.Builder; + public setIdeal(param0: com.stripe.android.model.PaymentMethod.Ideal): com.stripe.android.model.PaymentMethod.Builder; + public build(): any; + public setCreated(param0: java.lang.Long): com.stripe.android.model.PaymentMethod.Builder; + public build(): com.stripe.android.model.PaymentMethod; + public setMetadata(param0: java.util.Map): com.stripe.android.model.PaymentMethod.Builder; + public setType(param0: string): com.stripe.android.model.PaymentMethod.Builder; + public setCard(param0: com.stripe.android.model.PaymentMethod.Card): com.stripe.android.model.PaymentMethod.Builder; + public setCustomerId(param0: string): com.stripe.android.model.PaymentMethod.Builder; + public setLiveMode(param0: boolean): com.stripe.android.model.PaymentMethod.Builder; + public setBillingDetails(param0: com.stripe.android.model.PaymentMethod.BillingDetails): com.stripe.android.model.PaymentMethod.Builder; + } + export class Card extends com.stripe.android.model.PaymentMethod.PaymentMethodTypeImpl { + public static class: java.lang.Class; + public brand: string; + public checks: com.stripe.android.model.PaymentMethod.Card.Checks; + public country: string; + public expiryMonth: java.lang.Integer; + public expiryYear: java.lang.Integer; + public funding: string; + public last4: string; + public threeDSecureUsage: com.stripe.android.model.PaymentMethod.Card.ThreeDSecureUsage; + public wallet: com.stripe.android.model.wallets.Wallet; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public describeContents(): number; + public toMap(): java.util.Map; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod.Card; + public equals(param0: any): boolean; + public hashCode(): number; + } + export module Card { + export class Brand { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.PaymentMethod$Card$Brand interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static UNIONPAY: string; + public static DISCOVER: string; + public static MASTERCARD: string; + public static VISA: string; + public static JCB: string; + public static UNKNOWN: string; + public static DINERS_CLUB: string; + public static AMERICAN_EXPRESS: string; + } + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public constructor(); + public setThreeDSecureUsage(param0: com.stripe.android.model.PaymentMethod.Card.ThreeDSecureUsage): com.stripe.android.model.PaymentMethod.Card.Builder; + public setLast4(param0: string): com.stripe.android.model.PaymentMethod.Card.Builder; + public setExpiryMonth(param0: java.lang.Integer): com.stripe.android.model.PaymentMethod.Card.Builder; + public setFunding(param0: string): com.stripe.android.model.PaymentMethod.Card.Builder; + public setCountry(param0: string): com.stripe.android.model.PaymentMethod.Card.Builder; + public setWallet(param0: com.stripe.android.model.wallets.Wallet): com.stripe.android.model.PaymentMethod.Card.Builder; + public build(): com.stripe.android.model.PaymentMethod.Card; + public setChecks(param0: com.stripe.android.model.PaymentMethod.Card.Checks): com.stripe.android.model.PaymentMethod.Card.Builder; + public setExpiryYear(param0: java.lang.Integer): com.stripe.android.model.PaymentMethod.Card.Builder; + public build(): any; + public setBrand(param0: string): com.stripe.android.model.PaymentMethod.Card.Builder; + } + export class Checks extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public addressLine1Check: string; + public addressPostalCodeCheck: string; + public cvcCheck: string; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public describeContents(): number; + public toMap(): java.util.Map; + public equals(param0: any): boolean; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod.Card.Checks; + } + export module Checks { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public setAddressLine1Check(param0: string): com.stripe.android.model.PaymentMethod.Card.Checks.Builder; + public setAddressPostalCodeCheck(param0: string): com.stripe.android.model.PaymentMethod.Card.Checks.Builder; + public build(): com.stripe.android.model.PaymentMethod.Card.Checks; + public build(): any; + public constructor(); + public setCvcCheck(param0: string): com.stripe.android.model.PaymentMethod.Card.Checks.Builder; + } + } + export class ThreeDSecureUsage extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public isSupported: boolean; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod.Card.ThreeDSecureUsage; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public describeContents(): number; + public toMap(): java.util.Map; + public equals(param0: any): boolean; + } + export module ThreeDSecureUsage { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): com.stripe.android.model.PaymentMethod.Card.ThreeDSecureUsage; + public build(): any; + public constructor(); + public setSupported(param0: boolean): com.stripe.android.model.PaymentMethod.Card.ThreeDSecureUsage.Builder; + } + } + } + export class CardPresent extends com.stripe.android.model.PaymentMethod.PaymentMethodTypeImpl { + public static class: java.lang.Class; + public static EMPTY: com.stripe.android.model.PaymentMethod.CardPresent; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public toMap(): java.util.Map; + public hashCode(): number; + public equals(param0: any): boolean; + } + export class Ideal extends com.stripe.android.model.PaymentMethod.PaymentMethodTypeImpl { + public static class: java.lang.Class; + public bank: string; + public bankIdentifierCode: string; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public toMap(): java.util.Map; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public equals(param0: any): boolean; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethod.Ideal; + } + export module Ideal { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public constructor(); + public setBankIdentifierCode(param0: string): com.stripe.android.model.PaymentMethod.Ideal.Builder; + public setBank(param0: string): com.stripe.android.model.PaymentMethod.Ideal.Builder; + public build(): any; + public build(): com.stripe.android.model.PaymentMethod.Ideal; + } + } + export abstract class PaymentMethodTypeImpl extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public type: com.stripe.android.model.PaymentMethod.Type; + public describeContents(): number; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + } + export class Type { + public static class: java.lang.Class; + public static Card: com.stripe.android.model.PaymentMethod.Type; + public static CardPresent: com.stripe.android.model.PaymentMethod.Type; + public static Ideal: com.stripe.android.model.PaymentMethod.Type; + public code: string; + public static values(): native.Array; + public static valueOf(param0: string): com.stripe.android.model.PaymentMethod.Type; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class PaymentMethodCreateParams { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public getTypeCode(): string; + public static create(param0: com.stripe.android.model.PaymentMethodCreateParams.Ideal, param1: com.stripe.android.model.PaymentMethod.BillingDetails): com.stripe.android.model.PaymentMethodCreateParams; + public static createFromGooglePay(param0: org.json.JSONObject): com.stripe.android.model.PaymentMethodCreateParams; + public static create(param0: com.stripe.android.model.PaymentMethodCreateParams.Ideal, param1: com.stripe.android.model.PaymentMethod.BillingDetails, param2: java.util.Map): com.stripe.android.model.PaymentMethodCreateParams; + public static create(param0: com.stripe.android.model.PaymentMethodCreateParams.Card, param1: com.stripe.android.model.PaymentMethod.BillingDetails, param2: java.util.Map): com.stripe.android.model.PaymentMethodCreateParams; + public hashCode(): number; + public toParamMap(): java.util.Map; + public static create(param0: com.stripe.android.model.PaymentMethodCreateParams.Card, param1: com.stripe.android.model.PaymentMethod.BillingDetails): com.stripe.android.model.PaymentMethodCreateParams; + } + export module PaymentMethodCreateParams { + export class Card { + public static class: java.lang.Class; + public toMap(): java.util.Map; + public hashCode(): number; + public equals(param0: any): boolean; + public static create(param0: string): com.stripe.android.model.PaymentMethodCreateParams.Card; + } + export module Card { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public constructor(); + public build(): com.stripe.android.model.PaymentMethodCreateParams.Card; + public setExpiryMonth(param0: java.lang.Integer): com.stripe.android.model.PaymentMethodCreateParams.Card.Builder; + public build(): any; + public setCvc(param0: string): com.stripe.android.model.PaymentMethodCreateParams.Card.Builder; + public setNumber(param0: string): com.stripe.android.model.PaymentMethodCreateParams.Card.Builder; + public setExpiryYear(param0: java.lang.Integer): com.stripe.android.model.PaymentMethodCreateParams.Card.Builder; + } + } + export class Ideal { + public static class: java.lang.Class; + public toMap(): java.util.Map; + public hashCode(): number; + public equals(param0: any): boolean; + } + export module Ideal { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public constructor(); + public build(): any; + public build(): com.stripe.android.model.PaymentMethodCreateParams.Ideal; + public setBank(param0: string): com.stripe.android.model.PaymentMethodCreateParams.Ideal.Builder; + } + } + export class Type { + public static class: java.lang.Class; + public static Card: com.stripe.android.model.PaymentMethodCreateParams.Type; + public static Ideal: com.stripe.android.model.PaymentMethodCreateParams.Type; + public static valueOf(param0: string): com.stripe.android.model.PaymentMethodCreateParams.Type; + public static values(): native.Array; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class SetupIntent extends com.stripe.android.model.StripeModel implements com.stripe.android.model.StripeIntent { + public static class: java.lang.Class; + public static parseIdFromClientSecret(param0: string): string; + public getId(): string; + public getUsage(): com.stripe.android.model.StripeIntent.Usage; + public requiresConfirmation(): boolean; + public getStripeSdkData(): com.stripe.android.model.StripeIntent.SdkData; + public toMap(): java.util.Map; + public getCreated(): number; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.SetupIntent; + public static fromString(param0: string): com.stripe.android.model.SetupIntent; + public getRedirectUrl(): globalAndroid.net.Uri; + public getClientSecret(): string; + public equals(param0: any): boolean; + public getNextActionType(): com.stripe.android.model.StripeIntent.NextActionType; + public requiresAction(): boolean; + public getStatus(): com.stripe.android.model.StripeIntent.Status; + public isLiveMode(): boolean; + public getPaymentMethodTypes(): java.util.List; + public getRedirectData(): com.stripe.android.model.StripeIntent.RedirectData; + public getDescription(): string; + public hashCode(): number; + public getCustomerId(): string; + public getPaymentMethodId(): string; + } + export module SetupIntent { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): com.stripe.android.model.SetupIntent; + public build(): any; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class ShippingInformation extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public equals(param0: any): boolean; + public constructor(param0: globalAndroid.os.Parcel); + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.ShippingInformation; + public constructor(); + public getName(): string; + public toMap(): java.util.Map; + public constructor(param0: com.stripe.android.model.Address, param1: string, param2: string); + public describeContents(): number; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public getPhone(): string; + public hashCode(): number; + public getAddress(): com.stripe.android.model.Address; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class ShippingMethod extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public getLabel(): string; + public toMap(): java.util.Map; + public describeContents(): number; + public getIdentifier(): string; + public constructor(param0: string, param1: string, param2: string, param3: number, param4: string); + public equals(param0: any): boolean; + public getAmount(): number; + public constructor(); + public constructor(param0: string, param1: string, param2: number, param3: string); + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public getDetail(): string; + public hashCode(): number; + public getCurrency(): java.util.Currency; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class Source extends com.stripe.android.model.StripeModel implements com.stripe.android.model.StripePaymentSource { + public static class: java.lang.Class; + /** @deprecated */ + public setAmount(param0: number): void; + public getId(): string; + public toMap(): java.util.Map; + public getReceiver(): com.stripe.android.model.SourceReceiver; + public getCurrency(): string; + public getCodeVerification(): com.stripe.android.model.SourceCodeVerification; + /** @deprecated */ + public setReceiver(param0: com.stripe.android.model.SourceReceiver): void; + /** @deprecated */ + public setRedirect(param0: com.stripe.android.model.SourceRedirect): void; + /** @deprecated */ + public setTypeRaw(param0: string): void; + public getClientSecret(): string; + /** @deprecated */ + public setFlow(param0: string): void; + public getRedirect(): com.stripe.android.model.SourceRedirect; + /** @deprecated */ + public setClientSecret(param0: string): void; + public getOwner(): com.stripe.android.model.SourceOwner; + /** @deprecated */ + public setLiveMode(param0: boolean): void; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.Source; + public getFlow(): string; + public getUsage(): string; + /** @deprecated */ + public setCreated(param0: number): void; + public getType(): string; + public hashCode(): number; + public getSourceTypeModel(): com.stripe.android.model.StripeSourceTypeModel; + /** @deprecated */ + public setOwner(param0: com.stripe.android.model.SourceOwner): void; + /** @deprecated */ + public setMetaData(param0: java.util.Map): void; + /** @deprecated */ + public setStatus(param0: string): void; + public static fromString(param0: string): com.stripe.android.model.Source; + public getAmount(): java.lang.Long; + public getMetaData(): java.util.Map; + /** @deprecated */ + public setCodeVerification(param0: com.stripe.android.model.SourceCodeVerification): void; + public getStatus(): string; + public getSourceTypeData(): java.util.Map; + public getTypeRaw(): string; + /** @deprecated */ + public setId(param0: string): void; + /** @deprecated */ + public setCurrency(param0: string): void; + /** @deprecated */ + public setType(param0: string): void; + public equals(param0: any): boolean; + /** @deprecated */ + public setSourceTypeData(param0: java.util.Map): void; + /** @deprecated */ + public setUsage(param0: string): void; + public getCreated(): java.lang.Long; + public isLiveMode(): java.lang.Boolean; + } + export module Source { + export class SourceFlow { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.Source$SourceFlow interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static CODE_VERIFICATION: string; + public static NONE: string; + public static REDIRECT: string; + public static RECEIVER: string; + } + export class SourceStatus { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.Source$SourceStatus interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static FAILED: string; + public static CANCELED: string; + public static CONSUMED: string; + public static CHARGEABLE: string; + public static PENDING: string; + } + export class SourceType { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.Source$SourceType interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static IDEAL: string; + public static P24: string; + public static MULTIBANCO: string; + public static ALIPAY: string; + public static THREE_D_SECURE: string; + public static EPS: string; + public static SOFORT: string; + public static UNKNOWN: string; + public static GIROPAY: string; + public static BANCONTACT: string; + public static CARD: string; + public static SEPA_DEBIT: string; + } + export class Usage { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.Source$Usage interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static REUSABLE: string; + public static SINGLE_USE: string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class SourceCardData extends com.stripe.android.model.StripeSourceTypeModel { + public static class: java.lang.Class; + public getExpiryMonth(): java.lang.Integer; + public getFunding(): string; + public getAddressLine1Check(): string; + public getBrand(): string; + public toMap(): java.util.Map; + public getDynamicLast4(): string; + public getAddressZipCheck(): string; + public getCountry(): string; + public getThreeDSecureStatus(): string; + public getLast4(): string; + public getCvcCheck(): string; + public getTokenizationMethod(): string; + public equals(param0: any): boolean; + public getExpiryYear(): java.lang.Integer; + public hashCode(): number; + } + export module SourceCardData { + export class Builder extends com.stripe.android.model.StripeSourceTypeModel.BaseBuilder { + public static class: java.lang.Class; + public build(): com.stripe.android.model.SourceCardData; + } + export class ThreeDSecureStatus { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.SourceCardData$ThreeDSecureStatus interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static NOT_SUPPORTED: string; + public static OPTIONAL: string; + public static RECOMMENDED: string; + public static REQUIRED: string; + public static UNKNOWN: string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class SourceCodeVerification extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.SourceCodeVerification; + public getAttemptsRemaining(): number; + public toMap(): java.util.Map; + public static fromString(param0: string): com.stripe.android.model.SourceCodeVerification; + public getStatus(): string; + public hashCode(): number; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class SourceOwner extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public toMap(): java.util.Map; + public getVerifiedAddress(): com.stripe.android.model.Address; + public equals(param0: any): boolean; + public getVerifiedName(): string; + public getName(): string; + public static fromString(param0: string): com.stripe.android.model.SourceOwner; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.SourceOwner; + public getPhone(): string; + public getVerifiedEmail(): string; + public hashCode(): number; + public getAddress(): com.stripe.android.model.Address; + public getEmail(): string; + public getVerifiedPhone(): string; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class SourceParams { + public static class: java.lang.Class; + public setToken(param0: string): com.stripe.android.model.SourceParams; + public getRedirect(): java.util.Map; + public static createSepaDebitParams(param0: string, param1: string, param2: string, param3: string, param4: string, param5: string): com.stripe.android.model.SourceParams; + public static createCardParams(param0: com.stripe.android.model.Card): com.stripe.android.model.SourceParams; + public static createMasterpassParams(param0: string, param1: string): com.stripe.android.model.SourceParams; + public static createSourceFromTokenParams(param0: string): com.stripe.android.model.SourceParams; + public static createBancontactParams(param0: number, param1: string, param2: string, param3: string, param4: string): com.stripe.android.model.SourceParams; + public getCurrency(): string; + public static createVisaCheckoutParams(param0: string): com.stripe.android.model.SourceParams; + public setAmount(param0: number): com.stripe.android.model.SourceParams; + public static createEPSParams(param0: number, param1: string, param2: string, param3: string): com.stripe.android.model.SourceParams; + public static createSofortParams(param0: number, param1: string, param2: string, param3: string): com.stripe.android.model.SourceParams; + public static createCustomParams(): com.stripe.android.model.SourceParams; + public static createIdealParams(param0: number, param1: string, param2: string, param3: string, param4: string): com.stripe.android.model.SourceParams; + public setMetaData(param0: java.util.Map): com.stripe.android.model.SourceParams; + public getOwner(): java.util.Map; + public getUsage(): string; + public setUsage(param0: string): com.stripe.android.model.SourceParams; + public static createSepaDebitParams(param0: string, param1: string, param2: string, param3: string, param4: string, param5: string, param6: string): com.stripe.android.model.SourceParams; + public setCurrency(param0: string): com.stripe.android.model.SourceParams; + public static createGiropayParams(param0: number, param1: string, param2: string, param3: string): com.stripe.android.model.SourceParams; + public getType(): string; + public hashCode(): number; + public static createMultibancoParams(param0: number, param1: string, param2: string): com.stripe.android.model.SourceParams; + public setTypeRaw(param0: string): com.stripe.android.model.SourceParams; + public getApiParameterMap(): java.util.Map; + public setExtraParams(param0: java.util.Map): com.stripe.android.model.SourceParams; + public getAmount(): java.lang.Long; + public getMetaData(): java.util.Map; + public static createAlipayReusableParams(param0: string, param1: string, param2: string, param3: string): com.stripe.android.model.SourceParams; + public static createThreeDSecureParams(param0: number, param1: string, param2: string, param3: string): com.stripe.android.model.SourceParams; + public getTypeRaw(): string; + public setOwner(param0: java.util.Map): com.stripe.android.model.SourceParams; + public toParamMap(): java.util.Map; + public setApiParameterMap(param0: java.util.Map): com.stripe.android.model.SourceParams; + public static createRetrieveSourceParams(param0: string): java.util.Map; + public equals(param0: any): boolean; + public static createAlipaySingleUseParams(param0: number, param1: string, param2: string, param3: string, param4: string): com.stripe.android.model.SourceParams; + public static createP24Params(param0: number, param1: string, param2: string, param3: string, param4: string): com.stripe.android.model.SourceParams; + public setReturnUrl(param0: string): com.stripe.android.model.SourceParams; + public static createCardParamsFromGooglePay(param0: org.json.JSONObject): com.stripe.android.model.SourceParams; + public setRedirect(param0: java.util.Map): com.stripe.android.model.SourceParams; + public setType(param0: string): com.stripe.android.model.SourceParams; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class SourceReceiver extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public getAddress(): string; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.SourceReceiver; + public equals(param0: any): boolean; + public toMap(): java.util.Map; + public getAmountCharged(): number; + public hashCode(): number; + public getAmountReceived(): number; + public getAmountReturned(): number; + public static fromString(param0: string): com.stripe.android.model.SourceReceiver; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class SourceRedirect extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.SourceRedirect; + public static fromString(param0: string): com.stripe.android.model.SourceRedirect; + public getUrl(): string; + public toMap(): java.util.Map; + public getReturnUrl(): string; + public getStatus(): string; + public hashCode(): number; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class SourceSepaDebitData extends com.stripe.android.model.StripeSourceTypeModel { + public static class: java.lang.Class; + public getFingerPrint(): string; + public equals(param0: any): boolean; + public getBranchCode(): string; + public getMandateReference(): string; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.SourceSepaDebitData; + public toMap(): java.util.Map; + public getBankCode(): string; + public getCountry(): string; + public hashCode(): number; + public getLast4(): string; + public getMandateUrl(): string; + } + export module SourceSepaDebitData { + export class Builder extends com.stripe.android.model.StripeSourceTypeModel.BaseBuilder { + public static class: java.lang.Class; + public build(): com.stripe.android.model.SourceSepaDebitData; + public constructor(); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class Stripe3ds2AuthResult { + public static class: java.lang.Class; + public id: string; + public objectType: string; + public ares: com.stripe.android.model.Stripe3ds2AuthResult.Ares; + public created: java.lang.Long; + public source: string; + public state: string; + public liveMode: boolean; + public error: com.stripe.android.model.Stripe3ds2AuthResult.ThreeDS2Error; + public fallbackRedirectUrl: string; + public equals(param0: any): boolean; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.Stripe3ds2AuthResult; + public hashCode(): number; + } + export module Stripe3ds2AuthResult { + export class Ares { + public static class: java.lang.Class; + public threeDSServerTransId: string; + public acsChallengeMandated: string; + public acsSignedContent: string; + public acsTransId: string; + public acsUrl: string; + public authenticationType: string; + public cardholderInfo: string; + public messageExtension: java.util.List; + public messageType: string; + public messageVersion: string; + public sdkTransId: string; + public hashCode(): number; + public equals(param0: any): boolean; + public shouldChallenge(): boolean; + } + export module Ares { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): any; + public build(): com.stripe.android.model.Stripe3ds2AuthResult.Ares; + } + } + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): com.stripe.android.model.Stripe3ds2AuthResult; + public build(): any; + } + export class MessageExtension { + public static class: java.lang.Class; + public name: string; + public criticalityIndicator: boolean; + public id: string; + public data: java.util.Map; + public hashCode(): number; + public equals(param0: any): boolean; + } + export module MessageExtension { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): com.stripe.android.model.Stripe3ds2AuthResult.MessageExtension; + public build(): any; + } + } + export class ThreeDS2Error { + public static class: java.lang.Class; + public threeDSServerTransId: string; + public acsTransId: string; + public dsTransId: string; + public errorCode: string; + public errorComponent: string; + public errorDescription: string; + public errorDetail: string; + public errorMessageType: string; + public messageType: string; + public messageVersion: string; + public sdkTransId: string; + public hashCode(): number; + public equals(param0: any): boolean; + } + export module ThreeDS2Error { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public build(): any; + public build(): com.stripe.android.model.Stripe3ds2AuthResult.ThreeDS2Error; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class Stripe3ds2Fingerprint { + public static class: java.lang.Class; + public source: string; + public directoryServer: com.stripe.android.model.Stripe3ds2Fingerprint.DirectoryServer; + public serverTransactionId: string; + public directoryServerEncryption: com.stripe.android.model.Stripe3ds2Fingerprint.DirectoryServerEncryption; + public static create(param0: com.stripe.android.model.StripeIntent.SdkData): com.stripe.android.model.Stripe3ds2Fingerprint; + } + export module Stripe3ds2Fingerprint { + export class DirectoryServer { + public static class: java.lang.Class; + public static Visa: com.stripe.android.model.Stripe3ds2Fingerprint.DirectoryServer; + public static Mastercard: com.stripe.android.model.Stripe3ds2Fingerprint.DirectoryServer; + public static Amex: com.stripe.android.model.Stripe3ds2Fingerprint.DirectoryServer; + public name: string; + public id: string; + public static valueOf(param0: string): com.stripe.android.model.Stripe3ds2Fingerprint.DirectoryServer; + public static values(): native.Array; + } + export class DirectoryServerEncryption { + public static class: java.lang.Class; + public directoryServerId: string; + public directoryServerPublicKey: java.security.PublicKey; + public rootCerts: java.util.List; + public keyId: string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class Stripe3dsRedirect { + public static class: java.lang.Class; + public getUrl(): string; + public static create(param0: com.stripe.android.model.StripeIntent.SdkData): com.stripe.android.model.Stripe3dsRedirect; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class StripeIntent { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.StripeIntent interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getId(): string; + isLiveMode(): boolean; + requiresAction(): boolean; + requiresConfirmation(): boolean; + getNextActionType(): com.stripe.android.model.StripeIntent.NextActionType; + getRedirectData(): com.stripe.android.model.StripeIntent.RedirectData; + getClientSecret(): string; + getStripeSdkData(): com.stripe.android.model.StripeIntent.SdkData; + getStatus(): com.stripe.android.model.StripeIntent.Status; + }); + public constructor(); + public getNextActionType(): com.stripe.android.model.StripeIntent.NextActionType; + public getId(): string; + public requiresAction(): boolean; + public getStatus(): com.stripe.android.model.StripeIntent.Status; + public isLiveMode(): boolean; + public requiresConfirmation(): boolean; + public getStripeSdkData(): com.stripe.android.model.StripeIntent.SdkData; + public getRedirectData(): com.stripe.android.model.StripeIntent.RedirectData; + public getClientSecret(): string; + } + export module StripeIntent { + export class NextActionType { + public static class: java.lang.Class; + public static RedirectToUrl: com.stripe.android.model.StripeIntent.NextActionType; + public static UseStripeSdk: com.stripe.android.model.StripeIntent.NextActionType; + public code: string; + public static values(): native.Array; + public static valueOf(param0: string): com.stripe.android.model.StripeIntent.NextActionType; + public static fromCode(param0: string): com.stripe.android.model.StripeIntent.NextActionType; + public toString(): string; + } + export class RedirectData { + public static class: java.lang.Class; + public url: globalAndroid.net.Uri; + public returnUrl: string; + } + export class SdkData { + public static class: java.lang.Class; + public is3ds1(): boolean; + public is3ds2(): boolean; + } + export class Status { + public static class: java.lang.Class; + public static Canceled: com.stripe.android.model.StripeIntent.Status; + public static Processing: com.stripe.android.model.StripeIntent.Status; + public static RequiresAction: com.stripe.android.model.StripeIntent.Status; + public static RequiresConfirmation: com.stripe.android.model.StripeIntent.Status; + public static RequiresPaymentMethod: com.stripe.android.model.StripeIntent.Status; + public static Succeeded: com.stripe.android.model.StripeIntent.Status; + public static RequiresCapture: com.stripe.android.model.StripeIntent.Status; + public code: string; + public static valueOf(param0: string): com.stripe.android.model.StripeIntent.Status; + public static values(): native.Array; + public static fromCode(param0: string): com.stripe.android.model.StripeIntent.Status; + public toString(): string; + } + export class Usage { + public static class: java.lang.Class; + public static OnSession: com.stripe.android.model.StripeIntent.Usage; + public static OffSession: com.stripe.android.model.StripeIntent.Usage; + public static OneTime: com.stripe.android.model.StripeIntent.Usage; + public code: string; + public static valueOf(param0: string): com.stripe.android.model.StripeIntent.Usage; + public static values(): native.Array; + public static fromCode(param0: string): com.stripe.android.model.StripeIntent.Usage; + public toString(): string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class StripeJsonUtils { + public static class: java.lang.Class; + public static optString(param0: org.json.JSONObject, param1: string): string; + public constructor(); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export abstract class StripeModel { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public constructor(); + public toMap(): java.util.Map; + public hashCode(): number; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class StripePaymentSource { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.StripePaymentSource interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getId(): string; + }); + public constructor(); + public getId(): string; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export abstract class StripeSourceTypeModel extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public equals(param0: any): boolean; + public toMap(): java.util.Map; + public hashCode(): number; + } + export module StripeSourceTypeModel { + export abstract class BaseBuilder { + public static class: java.lang.Class; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export class Token extends com.stripe.android.model.StripePaymentSource { + public static class: java.lang.Class; + public getId(): string; + public constructor(param0: string, param1: boolean, param2: java.util.Date, param3: java.lang.Boolean, param4: com.stripe.android.model.Card); + public constructor(param0: string, param1: boolean, param2: java.util.Date, param3: java.lang.Boolean, param4: com.stripe.android.model.BankAccount); + public getUsed(): boolean; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.model.Token; + public getCard(): com.stripe.android.model.Card; + public equals(param0: any): boolean; + public static fromString(param0: string): com.stripe.android.model.Token; + public constructor(param0: string, param1: string, param2: boolean, param3: java.util.Date, param4: java.lang.Boolean); + public getType(): string; + public getBankAccount(): com.stripe.android.model.BankAccount; + public hashCode(): number; + public getCreated(): java.util.Date; + public getLivemode(): boolean; + } + export module Token { + export class TokenType { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.model.Token$TokenType interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static PII: string; + public static BANK_ACCOUNT: string; + public static ACCOUNT: string; + public static CARD: string; + public static CVC_UPDATE: string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export module wallets { + export class AmexExpressCheckoutWallet extends com.stripe.android.model.wallets.Wallet { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + } + export module AmexExpressCheckoutWallet { + export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { + public static class: java.lang.Class; + public constructor(); + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export module wallets { + export class ApplePayWallet extends com.stripe.android.model.wallets.Wallet { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + } + export module ApplePayWallet { + export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { + public static class: java.lang.Class; + public constructor(); + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export module wallets { + export class GooglePayWallet extends com.stripe.android.model.wallets.Wallet { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + } + export module GooglePayWallet { + export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { + public static class: java.lang.Class; + public constructor(); + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export module wallets { + export class MasterpassWallet extends com.stripe.android.model.wallets.Wallet { + public static class: java.lang.Class; + public billingAddress: com.stripe.android.model.wallets.Wallet.Address; + public email: string; + public name: string; + public shippingAddress: com.stripe.android.model.wallets.Wallet.Address; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public equals(param0: any): boolean; + } + export module MasterpassWallet { + export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { + public static class: java.lang.Class; + public constructor(); + public setBillingAddress(param0: com.stripe.android.model.wallets.Wallet.Address): com.stripe.android.model.wallets.MasterpassWallet.Builder; + public setName(param0: string): com.stripe.android.model.wallets.MasterpassWallet.Builder; + public setEmail(param0: string): com.stripe.android.model.wallets.MasterpassWallet.Builder; + public build(): com.stripe.android.model.wallets.MasterpassWallet; + public setShippingAddress(param0: com.stripe.android.model.wallets.Wallet.Address): com.stripe.android.model.wallets.MasterpassWallet.Builder; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export module wallets { + export class SamsungPayWallet extends com.stripe.android.model.wallets.Wallet { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + } + export module SamsungPayWallet { + export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { + public static class: java.lang.Class; + public constructor(); + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export module wallets { + export class VisaCheckoutWallet extends com.stripe.android.model.wallets.Wallet { + public static class: java.lang.Class; + public billingAddress: com.stripe.android.model.wallets.Wallet.Address; + public email: string; + public name: string; + public shippingAddress: com.stripe.android.model.wallets.Wallet.Address; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public equals(param0: any): boolean; + } + export module VisaCheckoutWallet { + export class Builder extends com.stripe.android.model.wallets.Wallet.Builder { + public static class: java.lang.Class; + public constructor(); + public setShippingAddress(param0: com.stripe.android.model.wallets.Wallet.Address): com.stripe.android.model.wallets.VisaCheckoutWallet.Builder; + public setName(param0: string): com.stripe.android.model.wallets.VisaCheckoutWallet.Builder; + public build(): com.stripe.android.model.wallets.VisaCheckoutWallet; + public setEmail(param0: string): com.stripe.android.model.wallets.VisaCheckoutWallet.Builder; + public setBillingAddress(param0: com.stripe.android.model.wallets.Wallet.Address): com.stripe.android.model.wallets.VisaCheckoutWallet.Builder; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export module wallets { + export abstract class Wallet extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public describeContents(): number; + public toMap(): java.util.Map; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public equals(param0: any): boolean; + } + export module Wallet { + export class Address extends com.stripe.android.model.StripeModel { + public static class: java.lang.Class; + public city: string; + public country: string; + public line1: string; + public line2: string; + public postalCode: string; + public state: string; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public describeContents(): number; + public toMap(): java.util.Map; + public equals(param0: any): boolean; + } + export module Address { + export class Builder extends com.stripe.android.ObjectBuilder { + public static class: java.lang.Class; + public setLine1(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; + public setPostalCode(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; + public setCountry(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; + public setLine2(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; + public setState(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; + public build(): any; + public build(): com.stripe.android.model.wallets.Wallet.Address; + public setCity(param0: string): com.stripe.android.model.wallets.Wallet.Address.Builder; + } + } + export abstract class Builder extends java.lang.Object { + public static class: java.lang.Class>; + public setDynamicLast4(param0: string): com.stripe.android.model.wallets.Wallet.Builder; + } + export class Type { + public static class: java.lang.Class; + public static AmexExpressCheckout: com.stripe.android.model.wallets.Wallet.Type; + public static ApplePay: com.stripe.android.model.wallets.Wallet.Type; + public static GooglePay: com.stripe.android.model.wallets.Wallet.Type; + public static Masterpass: com.stripe.android.model.wallets.Wallet.Type; + public static SamsungPay: com.stripe.android.model.wallets.Wallet.Type; + public static VisaCheckout: com.stripe.android.model.wallets.Wallet.Type; + public code: string; + public static valueOf(param0: string): com.stripe.android.model.wallets.Wallet.Type; + public static values(): native.Array; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module model { + export module wallets { + export class WalletFactory { + public static class: java.lang.Class; + public constructor(); + public create(param0: org.json.JSONObject): com.stripe.android.model.wallets.Wallet; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module utils { + export class ObjectUtils { + public static class: java.lang.Class; + public static hash(param0: native.Array): number; + public constructor(); + public static getOrDefault(param0: any, param1: any): any; + public static equals(param0: any, param1: any): boolean; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export abstract class ActivityStarter extends java.lang.Object { + public static class: java.lang.Class>; + public constructor(param0: globalAndroid.app.Activity, param1: java.lang.Class); + public startForResult(param0: number): void; + public constructor(param0: androidx.fragment.app.Fragment, param1: java.lang.Class); + public startForResult(param0: number, param1: globalAndroid.os.Bundle): void; + public newIntent(): globalAndroid.content.Intent; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class AddPaymentMethodActivity extends com.stripe.android.view.StripeActivity { + public static class: java.lang.Class; + public static TOKEN_ADD_PAYMENT_METHOD_ACTIVITY: string; + public static EXTRA_NEW_PAYMENT_METHOD: string; + public static EXTRA_SHOULD_REQUIRE_POSTAL_CODE: string; + public onActionSave(): void; + public setCommunicatingProgress(param0: boolean): void; + public onCreate(param0: globalAndroid.os.Bundle): void; + public constructor(); + public static newIntent(param0: globalAndroid.content.Context, param1: boolean, param2: boolean): globalAndroid.content.Intent; + } + export module AddPaymentMethodActivity { + export abstract class ActivityPaymentMethodCallback extends com.stripe.android.ApiResultCallback { + public static class: java.lang.Class>; + public onSuccess(param0: any): void; + public onError(param0: java.lang.Exception): void; + public getActivity(): any; + } + export class OnEditorActionListenerImpl { + public static class: java.lang.Class; + public onEditorAction(param0: globalAndroid.widget.TextView, param1: number, param2: globalAndroid.view.KeyEvent): boolean; + } + export class PaymentMethodCallbackImpl extends com.stripe.android.view.AddPaymentMethodActivity.ActivityPaymentMethodCallback { + public static class: java.lang.Class; + public onSuccess(param0: any): void; + public onError(param0: java.lang.Exception): void; + public onSuccess(param0: com.stripe.android.model.PaymentMethod): void; + } + export class PaymentMethodRetrievalListenerImpl extends com.stripe.android.CustomerSession.ActivityPaymentMethodRetrievalListener { + public static class: java.lang.Class; + public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + public onPaymentMethodRetrieved(param0: com.stripe.android.model.PaymentMethod): void; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class AuthActivityStarter extends java.lang.Object { + public static class: java.lang.Class>; + /** + * Constructs a new instance of the com.stripe.android.view.AuthActivityStarter interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + start(param0: StartDataType): void; + }); + public constructor(); + public start(param0: StartDataType): void; + } + export module AuthActivityStarter { + export class Host { + public static class: java.lang.Class; + public getActivity(): globalAndroid.app.Activity; + public static create(param0: androidx.fragment.app.Fragment): com.stripe.android.view.AuthActivityStarter.Host; + public startActivityForResult(param0: java.lang.Class, param1: globalAndroid.os.Bundle, param2: number): void; + public static create(param0: globalAndroid.app.Activity): com.stripe.android.view.AuthActivityStarter.Host; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class BackUpFieldDeleteListener extends com.stripe.android.view.StripeEditText.DeleteEmptyListener { + public static class: java.lang.Class; + public onDeleteEmpty(): void; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class CardInputListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.CardInputListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onFocusChange(param0: string): void; + onCardComplete(): void; + onExpirationComplete(): void; + onCvcComplete(): void; + onPostalCodeComplete(): void; + }); + public constructor(); + public onCvcComplete(): void; + public onExpirationComplete(): void; + public onFocusChange(param0: string): void; + public onCardComplete(): void; + public onPostalCodeComplete(): void; + } + export module CardInputListener { + export class FocusField { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.CardInputListener$FocusField interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static FOCUS_CARD: string; + public static FOCUS_CVC: string; + public static FOCUS_EXPIRY: string; + public static FOCUS_POSTAL: string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class CardInputWidget implements com.stripe.android.view.CardWidget { + public static class: java.lang.Class; + public setEnabled(param0: boolean): void; + public getPaymentMethodCard(): com.stripe.android.model.PaymentMethodCreateParams.Card; + public setCardNumber(param0: string): void; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public setExpiryDate(param0: number, param1: number): void; + public onInterceptTouchEvent(param0: globalAndroid.view.MotionEvent): boolean; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public getCard(): com.stripe.android.model.Card; + public setCvcNumberTextWatcher(param0: globalAndroid.text.TextWatcher): void; + public setCardNumberTextWatcher(param0: globalAndroid.text.TextWatcher): void; + public setExpiryDateTextWatcher(param0: globalAndroid.text.TextWatcher): void; + public setCardInputListener(param0: com.stripe.android.view.CardInputListener): void; + public clear(): void; + public onRestoreInstanceState(param0: globalAndroid.os.Parcelable): void; + public setCvcCode(param0: string): void; + public onLayout(param0: boolean, param1: number, param2: number, param3: number, param4: number): void; + public onSaveInstanceState(): globalAndroid.os.Parcelable; + public isEnabled(): boolean; + public onWindowFocusChanged(param0: boolean): void; + public getCardBuilder(): com.stripe.android.model.Card.Builder; + } + export module CardInputWidget { + export abstract class AnimationEndListener { + public static class: java.lang.Class; + public onAnimationRepeat(param0: globalAndroid.view.animation.Animation): void; + public onAnimationStart(param0: globalAndroid.view.animation.Animation): void; + } + export class DimensionOverrideSettings { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.CardInputWidget$DimensionOverrideSettings interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getPixelWidth(param0: string, param1: globalAndroid.widget.EditText): number; + getFrameWidth(): number; + }); + public constructor(); + public getPixelWidth(param0: string, param1: globalAndroid.widget.EditText): number; + public getFrameWidth(): number; + } + export class PlacementParameters { + public static class: java.lang.Class; + public toString(): string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class CardMultilineWidget implements com.stripe.android.view.CardWidget { + public static class: java.lang.Class; + public setEnabled(param0: boolean): void; + public getPaymentMethodCard(): com.stripe.android.model.PaymentMethodCreateParams.Card; + public setCvcLabel(param0: string): void; + public setCardNumber(param0: string): void; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public getPaymentMethodBillingDetails(): com.stripe.android.model.PaymentMethod.BillingDetails; + public setPostalCodeTextWatcher(param0: globalAndroid.text.TextWatcher): void; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public getCard(): com.stripe.android.model.Card; + public setCvcNumberTextWatcher(param0: globalAndroid.text.TextWatcher): void; + public validateCardNumber(): boolean; + public setCardNumberTextWatcher(param0: globalAndroid.text.TextWatcher): void; + public setExpiryDateTextWatcher(param0: globalAndroid.text.TextWatcher): void; + public clear(): void; + public setCardInputListener(param0: com.stripe.android.view.CardInputListener): void; + public setShouldShowPostalCode(param0: boolean): void; + public onWindowFocusChanged(param0: boolean): void; + public isEnabled(): boolean; + public getCardBuilder(): com.stripe.android.model.Card.Builder; + public validateAllFields(): boolean; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class CardNumberEditText extends com.stripe.android.view.StripeEditText { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public getCardNumber(): string; + public getCardBrand(): string; + public getLengthMax(): number; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public onInitializeAccessibilityNodeInfo(param0: globalAndroid.view.accessibility.AccessibilityNodeInfo): void; + public isCardNumberValid(): boolean; + } + export module CardNumberEditText { + export class CardBrandChangeListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.CardNumberEditText$CardBrandChangeListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onCardBrandChanged(param0: string): void; + }); + public constructor(); + public onCardBrandChanged(param0: string): void; + } + export class CardNumberCompleteListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.CardNumberEditText$CardNumberCompleteListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onCardNumberComplete(): void; + }); + public constructor(); + public onCardNumberComplete(): void; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class CardWidget { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.CardWidget interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getCard(): com.stripe.android.model.Card; + getCardBuilder(): com.stripe.android.model.Card.Builder; + }); + public constructor(); + public getCard(): com.stripe.android.model.Card; + public getCardBuilder(): com.stripe.android.model.Card.Builder; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class CountryAdapter { + public static class: java.lang.Class; + public getFilter(): globalAndroid.widget.Filter; + public getCount(): number; + public getItem(param0: number): string; + public getItemId(param0: number): number; + public getView(param0: number, param1: globalAndroid.view.View, param2: globalAndroid.view.ViewGroup): globalAndroid.view.View; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class CountryAutoCompleteTextView { + public static class: java.lang.Class; + public mCountrySelected: string; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + } + export module CountryAutoCompleteTextView { + export class CountryChangeListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.CountryAutoCompleteTextView$CountryChangeListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onCountryChanged(param0: string): void; + }); + public constructor(); + public onCountryChanged(param0: string): void; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class CountryUtils { + public static class: java.lang.Class; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class DateUtils { + public static class: java.lang.Class; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class ErrorListener extends com.stripe.android.view.StripeEditText.ErrorMessageListener { + public static class: java.lang.Class; + public displayErrorMessage(param0: string): void; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class ExpiryDateEditText extends com.stripe.android.view.StripeEditText { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public isDateValid(): boolean; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public setExpiryDateEditListener(param0: com.stripe.android.view.ExpiryDateEditText.ExpiryDateEditListener): void; + public getValidDateFields(): native.Array; + public onInitializeAccessibilityNodeInfo(param0: globalAndroid.view.accessibility.AccessibilityNodeInfo): void; + } + export module ExpiryDateEditText { + export class ExpiryDateEditListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.ExpiryDateEditText$ExpiryDateEditListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onExpiryDateComplete(): void; + }); + public constructor(); + public onExpiryDateComplete(): void; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class IconTextInputLayout { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public onLayout(param0: boolean, param1: number, param2: number, param3: number, param4: number): void; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class MaskedCardAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter { + public static class: java.lang.Class; + public onCreateViewHolder(param0: globalAndroid.view.ViewGroup, param1: number): com.stripe.android.view.MaskedCardAdapter.ViewHolder; + public onBindViewHolder(param0: com.stripe.android.view.MaskedCardAdapter.ViewHolder, param1: number): void; + public getItemCount(): number; + } + export module MaskedCardAdapter { + export class ViewHolder { + public static class: java.lang.Class; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class MaskedCardView { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public setSelected(param0: boolean): void; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public isSelected(): boolean; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class PaymentAuthWebView { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + } + export module PaymentAuthWebView { + export class PaymentAuthWebViewClient { + public static class: java.lang.Class; + public onPageCommitVisible(param0: globalAndroid.webkit.WebView, param1: string): void; + public onPageFinished(param0: globalAndroid.webkit.WebView, param1: string): void; + public shouldOverrideUrlLoading(param0: globalAndroid.webkit.WebView, param1: string): boolean; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class PaymentAuthWebViewActivity { + public static class: java.lang.Class; + public onCreate(param0: globalAndroid.os.Bundle): void; + public onCreateOptionsMenu(param0: globalAndroid.view.Menu): boolean; + public constructor(); + public onOptionsItemSelected(param0: globalAndroid.view.MenuItem): boolean; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class PaymentFlowActivity extends com.stripe.android.view.StripeActivity { + public static class: java.lang.Class; + public static TOKEN_PAYMENT_FLOW_ACTIVITY: string; + public static TOKEN_SHIPPING_INFO_SCREEN: string; + public static TOKEN_SHIPPING_METHOD_SCREEN: string; + public onActionSave(): void; + public onCreate(param0: globalAndroid.os.Bundle): void; + public constructor(); + public onBackPressed(): void; + public onPause(): void; + public onResume(): void; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class PaymentFlowExtras { + public static class: java.lang.Class; + public static EXTRA_DEFAULT_SHIPPING_METHOD: string; + public static EXTRA_IS_SHIPPING_INFO_VALID: string; + public static EXTRA_SHIPPING_INFO_DATA: string; + public static EXTRA_SHIPPING_INFO_ERROR: string; + public static EVENT_SHIPPING_INFO_PROCESSED: string; + public static EVENT_SHIPPING_INFO_SUBMITTED: string; + public static EXTRA_VALID_SHIPPING_METHODS: string; + public constructor(); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class PaymentFlowPagerAdapter { + public static class: java.lang.Class; + public instantiateItem(param0: globalAndroid.view.ViewGroup, param1: number): any; + public getCount(): number; + public destroyItem(param0: globalAndroid.view.ViewGroup, param1: number, param2: any): void; + public getPageTitle(param0: number): string; + public isViewFromObject(param0: globalAndroid.view.View, param1: any): boolean; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class PaymentFlowPagerEnum { + public static class: java.lang.Class; + public static SHIPPING_INFO: com.stripe.android.view.PaymentFlowPagerEnum; + public static SHIPPING_METHOD: com.stripe.android.view.PaymentFlowPagerEnum; + public static valueOf(param0: string): com.stripe.android.view.PaymentFlowPagerEnum; + public static values(): native.Array; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class PaymentMethodsActivity { + public static class: java.lang.Class; + public static EXTRA_SELECTED_PAYMENT: string; + public static EXTRA_INITIAL_SELECTED_PAYMENT_METHOD_ID: string; + public static TOKEN_PAYMENT_METHODS_ACTIVITY: string; + public onActivityResult(param0: number, param1: number, param2: globalAndroid.content.Intent): void; + public onSaveInstanceState(param0: globalAndroid.os.Bundle): void; + public onCreate(param0: globalAndroid.os.Bundle): void; + public onPrepareOptionsMenu(param0: globalAndroid.view.Menu): boolean; + public onCreateOptionsMenu(param0: globalAndroid.view.Menu): boolean; + public constructor(); + public onOptionsItemSelected(param0: globalAndroid.view.MenuItem): boolean; + /** @deprecated */ + public static newIntent(param0: globalAndroid.app.Activity): globalAndroid.content.Intent; + } + export module PaymentMethodsActivity { + export class GetPaymentMethodsRetrievalListener extends com.stripe.android.CustomerSession.ActivityPaymentMethodsRetrievalListener { + public static class: java.lang.Class; + public onPaymentMethodsRetrieved(param0: java.util.List): void; + public onError(param0: number, param1: string, param2: com.stripe.android.StripeError): void; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class PaymentMethodsActivityStarter extends com.stripe.android.view.ActivityStarter { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.app.Activity, param1: java.lang.Class); + public constructor(param0: androidx.fragment.app.Fragment, param1: java.lang.Class); + public constructor(param0: androidx.fragment.app.Fragment); + public constructor(param0: globalAndroid.app.Activity); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class PaymentRelayActivity { + public static class: java.lang.Class; + public onCreate(param0: globalAndroid.os.Bundle): void; + public constructor(); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class PaymentUtils { + public static class: java.lang.Class; + public constructor(); + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class SelectShippingMethodWidget { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public setShippingMethods(param0: java.util.List, param1: com.stripe.android.model.ShippingMethod): void; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public getSelectedShippingMethod(): com.stripe.android.model.ShippingMethod; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class ShippingInfoWidget { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public setOptionalFields(param0: java.util.List): void; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public populateShippingInfo(param0: com.stripe.android.model.ShippingInformation): void; + public validateAllFields(): boolean; + public setHiddenFields(param0: java.util.List): void; + public getShippingInformation(): com.stripe.android.model.ShippingInformation; + } + export module ShippingInfoWidget { + export class CustomizableShippingField { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.ShippingInfoWidget$CustomizableShippingField interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + }); + public constructor(); + public static CITY_FIELD: string; + public static STATE_FIELD: string; + public static PHONE_FIELD: string; + public static ADDRESS_LINE_TWO_FIELD: string; + public static ADDRESS_LINE_ONE_FIELD: string; + public static POSTAL_CODE_FIELD: string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class ShippingMethodAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter { + public static class: java.lang.Class; + public onBindViewHolder(param0: com.stripe.android.view.ShippingMethodAdapter.ViewHolder, param1: number): void; + public getItemCount(): number; + public getItemId(param0: number): number; + public onCreateViewHolder(param0: globalAndroid.view.ViewGroup, param1: number): com.stripe.android.view.ShippingMethodAdapter.ViewHolder; + } + export module ShippingMethodAdapter { + export class ViewHolder { + public static class: java.lang.Class; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class ShippingMethodView { + public static class: java.lang.Class; + public setSelected(param0: boolean): void; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export abstract class StripeActivity { + public static class: java.lang.Class; + public onActionSave(): void; + public setCommunicatingProgress(param0: boolean): void; + public onCreate(param0: globalAndroid.os.Bundle): void; + public onCreateOptionsMenu(param0: globalAndroid.view.Menu): boolean; + public onPrepareOptionsMenu(param0: globalAndroid.view.Menu): boolean; + public onPause(): void; + public onOptionsItemSelected(param0: globalAndroid.view.MenuItem): boolean; + public onResume(): void; + } + export module StripeActivity { + export class AlertMessageListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.StripeActivity$AlertMessageListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onAlertMessageDisplayed(param0: string): void; + }); + public constructor(); + public onAlertMessageDisplayed(param0: string): void; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class StripeEditText { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public onDetachedFromWindow(): void; + public getShouldShowError(): boolean; + public setErrorColor(param0: number): void; + public setHintDelayed(param0: number, param1: number): void; + public getCachedColorStateList(): globalAndroid.content.res.ColorStateList; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public getDefaultErrorColorInt(): number; + public setShouldShowError(param0: boolean): void; + public onCreateInputConnection(param0: globalAndroid.view.inputmethod.EditorInfo): globalAndroid.view.inputmethod.InputConnection; + } + export module StripeEditText { + export class AfterTextChangedListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.StripeEditText$AfterTextChangedListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onTextChanged(param0: string): void; + }); + public constructor(); + public onTextChanged(param0: string): void; + } + export class DeleteEmptyListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.StripeEditText$DeleteEmptyListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + onDeleteEmpty(): void; + }); + public constructor(); + public onDeleteEmpty(): void; + } + export class ErrorMessageListener { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.StripeEditText$ErrorMessageListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + displayErrorMessage(param0: string): void; + }); + public constructor(); + public displayErrorMessage(param0: string): void; + } + export class SoftDeleteInputConnection { + public static class: java.lang.Class; + public deleteSurroundingText(param0: number, param1: number): boolean; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class StripeIntentResultExtras { + public static class: java.lang.Class; + public static CLIENT_SECRET: string; + public static AUTH_EXCEPTION: string; + public static FLOW_OUTCOME: string; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export class ViewUtils { + public static class: java.lang.Class; + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export module i18n { + export class ErrorMessageTranslator { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.view.i18n.ErrorMessageTranslator interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + translate(param0: number, param1: string, param2: com.stripe.android.StripeError): string; + }); + public constructor(); + public translate(param0: number, param1: string, param2: com.stripe.android.StripeError): string; + } + export module ErrorMessageTranslator { + export class Default extends com.stripe.android.view.i18n.ErrorMessageTranslator { + public static class: java.lang.Class; + public constructor(); + public translate(param0: number, param1: string, param2: com.stripe.android.StripeError): string; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module view { + export module i18n { + export class TranslatorManager { + public static class: java.lang.Class; + public static getErrorMessageTranslator(): com.stripe.android.view.i18n.ErrorMessageTranslator; + public static setErrorMessageTranslator(param0: com.stripe.android.view.i18n.ErrorMessageTranslator): void; + } + } + } + } + } } //Generics information: //com.stripe.android.ActivitySourceCallback:1 +//com.stripe.android.ApiOperation:1 +//com.stripe.android.ApiResultCallback:1 +//com.stripe.android.CustomerSession.ActivityCustomerRetrievalListener:1 +//com.stripe.android.CustomerSession.ActivityPaymentMethodRetrievalListener:1 +//com.stripe.android.CustomerSession.ActivityPaymentMethodsRetrievalListener:1 //com.stripe.android.CustomerSession.ActivitySourceRetrievalListener:1 +//com.stripe.android.CustomerSession.CustomerSessionRunnable:1 +//com.stripe.android.CustomerSession.CustomerSessionRunnable.MessageData:1 +//com.stripe.android.EphemeralKey.Factory:1 //com.stripe.android.EphemeralKeyManager:1 //com.stripe.android.EphemeralKeyManager.KeyManagerListener:1 +//com.stripe.android.Factory0:1 +//com.stripe.android.ObjectBuilder:1 //com.stripe.android.PaymentSession.ActivityPaymentSessionListener:1 -//com.stripe.android.model.wallets.Wallet.Builder:1 \ No newline at end of file +//com.stripe.android.ResultWrapper:1 +//com.stripe.android.StripeIntentResult:1 +//com.stripe.android.Supplier:1 +//com.stripe.android.model.wallets.Wallet.Builder:1 +//com.stripe.android.view.ActivityStarter:1 +//com.stripe.android.view.AddPaymentMethodActivity.ActivityPaymentMethodCallback:1 +//com.stripe.android.view.AuthActivityStarter:1 + + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module exceptions { + export class InvalidInputException { + public static class: java.lang.Class; + public constructor(param0: java.lang.RuntimeException); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module exceptions { + export class SDKAlreadyInitializedException { + public static class: java.lang.Class; + public constructor(param0: java.lang.RuntimeException); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module exceptions { + export class SDKNotInitializedException { + public static class: java.lang.Class; + public constructor(param0: java.lang.RuntimeException); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module exceptions { + export class SDKRuntimeException { + public static class: java.lang.Class; + public static create(param0: java.lang.Exception): com.stripe.android.stripe3ds2.exceptions.SDKRuntimeException; + public constructor(param0: java.lang.RuntimeException); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export class ConfigParameters { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.init.ConfigParameters interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + addParam(param0: string, param1: string, param2: string): void; + getParamValue(param0: string, param1: string): string; + removeParam(param0: string, param1: string): string; + }); + public constructor(); + public addParam(param0: string, param1: string, param2: string): void; + public removeParam(param0: string, param1: string): string; + public getParamValue(param0: string, param1: string): string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export class StripeConfigParameters extends com.stripe.android.stripe3ds2.init.ConfigParameters { + public static class: java.lang.Class; + public constructor(); + public addParam(param0: string, param1: string, param2: string): void; + public removeParam(param0: string, param1: string): string; + public getParamValue(param0: string, param1: string): string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export class Warning { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.init.Warning interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getID(): string; + getMessage(): string; + getSeverity(): com.stripe.android.stripe3ds2.init.Warning.Severity; + }); + public constructor(); + public getMessage(): string; + public getID(): string; + public getSeverity(): com.stripe.android.stripe3ds2.init.Warning.Severity; + } + export module Warning { + export class Severity { + public static class: java.lang.Class; + public static LOW: com.stripe.android.stripe3ds2.init.Warning.Severity; + public static MEDIUM: com.stripe.android.stripe3ds2.init.Warning.Severity; + public static HIGH: com.stripe.android.stripe3ds2.init.Warning.Severity; + public static values(): native.Array; + public static valueOf(param0: string): com.stripe.android.stripe3ds2.init.Warning.Severity; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export abstract class BaseCustomization extends com.stripe.android.stripe3ds2.init.ui.Customization { + public static class: java.lang.Class; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public setTextFontName(param0: string): void; + public getTextFontName(): string; + public getTextColor(): string; + public getTextFontSize(): number; + public setTextColor(param0: string): void; + public setTextFontSize(param0: number): void; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export class ButtonCustomization extends com.stripe.android.stripe3ds2.init.ui.Customization { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.init.ui.ButtonCustomization interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + setBackgroundColor(param0: string): void; + setCornerRadius(param0: number): void; + getBackgroundColor(): string; + getCornerRadius(): number; + setTextFontName(param0: string): void; + setTextColor(param0: string): void; + setTextFontSize(param0: number): void; + getTextFontName(): string; + getTextColor(): string; + getTextFontSize(): number; + }); + public constructor(); + public getBackgroundColor(): string; + public setBackgroundColor(param0: string): void; + public getCornerRadius(): number; + public setCornerRadius(param0: number): void; + public setTextFontName(param0: string): void; + public getTextFontName(): string; + public getTextColor(): string; + public getTextFontSize(): number; + public setTextColor(param0: string): void; + public setTextFontSize(param0: number): void; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export class Customization { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.init.ui.Customization interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + setTextFontName(param0: string): void; + setTextColor(param0: string): void; + setTextFontSize(param0: number): void; + getTextFontName(): string; + getTextColor(): string; + getTextFontSize(): number; + }); + public constructor(); + public setTextFontName(param0: string): void; + public getTextFontName(): string; + public getTextColor(): string; + public getTextFontSize(): number; + public setTextColor(param0: string): void; + public setTextFontSize(param0: number): void; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export class LabelCustomization extends com.stripe.android.stripe3ds2.init.ui.Customization { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.init.ui.LabelCustomization interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + setHeadingTextColor(param0: string): void; + setHeadingTextFontName(param0: string): void; + setHeadingTextFontSize(param0: number): void; + getHeadingTextColor(): string; + getHeadingTextFontName(): string; + getHeadingTextFontSize(): number; + setTextFontName(param0: string): void; + setTextColor(param0: string): void; + setTextFontSize(param0: number): void; + getTextFontName(): string; + getTextColor(): string; + getTextFontSize(): number; + }); + public constructor(); + public setHeadingTextColor(param0: string): void; + public getHeadingTextFontSize(): number; + public getHeadingTextColor(): string; + public setTextFontName(param0: string): void; + public getHeadingTextFontName(): string; + public getTextFontName(): string; + public setHeadingTextFontSize(param0: number): void; + public getTextColor(): string; + public setHeadingTextFontName(param0: string): void; + public getTextFontSize(): number; + public setTextColor(param0: string): void; + public setTextFontSize(param0: number): void; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export class StripeButtonCustomization extends com.stripe.android.stripe3ds2.init.ui.BaseCustomization implements com.stripe.android.stripe3ds2.init.ui.ButtonCustomization { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public constructor(); + public getBackgroundColor(): string; + public setBackgroundColor(param0: string): void; + public setCornerRadius(param0: number): void; + public hashCode(): number; + public getTextColor(): string; + public setTextColor(param0: string): void; + public setTextFontSize(param0: number): void; + public getCornerRadius(): number; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public describeContents(): number; + public setTextFontName(param0: string): void; + public getTextFontName(): string; + public equals(param0: any): boolean; + public getTextFontSize(): number; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export class StripeLabelCustomization extends com.stripe.android.stripe3ds2.init.ui.BaseCustomization implements com.stripe.android.stripe3ds2.init.ui.LabelCustomization { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public constructor(); + public setHeadingTextColor(param0: string): void; + public getHeadingTextFontSize(): number; + public hashCode(): number; + public getHeadingTextFontName(): string; + public setHeadingTextFontSize(param0: number): void; + public getTextColor(): string; + public setHeadingTextFontName(param0: string): void; + public setTextColor(param0: string): void; + public setTextFontSize(param0: number): void; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public getHeadingTextColor(): string; + public describeContents(): number; + public setTextFontName(param0: string): void; + public getTextFontName(): string; + public equals(param0: any): boolean; + public getTextFontSize(): number; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export class StripeTextBoxCustomization extends com.stripe.android.stripe3ds2.init.ui.BaseCustomization implements com.stripe.android.stripe3ds2.init.ui.TextBoxCustomization { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public constructor(); + public getBorderWidth(): number; + public setCornerRadius(param0: number): void; + public hashCode(): number; + public getBorderColor(): string; + public getTextColor(): string; + public setBorderColor(param0: string): void; + public setTextColor(param0: string): void; + public setTextFontSize(param0: number): void; + public getCornerRadius(): number; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public describeContents(): number; + public setTextFontName(param0: string): void; + public getTextFontName(): string; + public equals(param0: any): boolean; + public setBorderWidth(param0: number): void; + public getTextFontSize(): number; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export class StripeToolbarCustomization extends com.stripe.android.stripe3ds2.init.ui.BaseCustomization implements com.stripe.android.stripe3ds2.init.ui.ToolbarCustomization { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public constructor(); + public getBackgroundColor(): string; + public setBackgroundColor(param0: string): void; + public setHeaderText(param0: string): void; + public hashCode(): number; + public getTextColor(): string; + public setTextColor(param0: string): void; + public setTextFontSize(param0: number): void; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public setButtonText(param0: string): void; + public describeContents(): number; + public setTextFontName(param0: string): void; + public getTextFontName(): string; + public getHeaderText(): string; + public getButtonText(): string; + public equals(param0: any): boolean; + public getTextFontSize(): number; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export class StripeUiCustomization extends com.stripe.android.stripe3ds2.init.ui.UiCustomization { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public constructor(); + public hashCode(): number; + public setLabelCustomization(param0: com.stripe.android.stripe3ds2.init.ui.LabelCustomization): void; + public getLabelCustomization(): com.stripe.android.stripe3ds2.init.ui.LabelCustomization; + public setButtonCustomization(param0: com.stripe.android.stripe3ds2.init.ui.ButtonCustomization, param1: string): void; + public getButtonCustomization(param0: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType): com.stripe.android.stripe3ds2.init.ui.ButtonCustomization; + public getButtonCustomization(param0: string): com.stripe.android.stripe3ds2.init.ui.ButtonCustomization; + public setTextBoxCustomization(param0: com.stripe.android.stripe3ds2.init.ui.TextBoxCustomization): void; + public static createWithAppTheme(param0: globalAndroid.app.Activity): com.stripe.android.stripe3ds2.init.ui.StripeUiCustomization; + public setToolbarCustomization(param0: com.stripe.android.stripe3ds2.init.ui.ToolbarCustomization): void; + public setButtonCustomization(param0: com.stripe.android.stripe3ds2.init.ui.ButtonCustomization, param1: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType): void; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public describeContents(): number; + public getToolbarCustomization(): com.stripe.android.stripe3ds2.init.ui.ToolbarCustomization; + public getTextBoxCustomization(): com.stripe.android.stripe3ds2.init.ui.TextBoxCustomization; + public equals(param0: any): boolean; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export class TextBoxCustomization extends com.stripe.android.stripe3ds2.init.ui.Customization { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.init.ui.TextBoxCustomization interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + setBorderWidth(param0: number): void; + getBorderWidth(): number; + setBorderColor(param0: string): void; + getBorderColor(): string; + setCornerRadius(param0: number): void; + getCornerRadius(): number; + setTextFontName(param0: string): void; + setTextColor(param0: string): void; + setTextFontSize(param0: number): void; + getTextFontName(): string; + getTextColor(): string; + getTextFontSize(): number; + }); + public constructor(); + public getBorderWidth(): number; + public getCornerRadius(): number; + public setCornerRadius(param0: number): void; + public setTextFontName(param0: string): void; + public getBorderColor(): string; + public getTextFontName(): string; + public getTextColor(): string; + public setBorderWidth(param0: number): void; + public setBorderColor(param0: string): void; + public getTextFontSize(): number; + public setTextColor(param0: string): void; + public setTextFontSize(param0: number): void; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export class ToolbarCustomization extends com.stripe.android.stripe3ds2.init.ui.Customization { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.init.ui.ToolbarCustomization interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + setBackgroundColor(param0: string): void; + setHeaderText(param0: string): void; + setButtonText(param0: string): void; + getBackgroundColor(): string; + getHeaderText(): string; + getButtonText(): string; + setTextFontName(param0: string): void; + setTextColor(param0: string): void; + setTextFontSize(param0: number): void; + getTextFontName(): string; + getTextColor(): string; + getTextFontSize(): number; + }); + public constructor(); + public getBackgroundColor(): string; + public setBackgroundColor(param0: string): void; + public setHeaderText(param0: string): void; + public setButtonText(param0: string): void; + public setTextFontName(param0: string): void; + public getTextFontName(): string; + public getHeaderText(): string; + public getButtonText(): string; + public getTextColor(): string; + public getTextFontSize(): number; + public setTextColor(param0: string): void; + public setTextFontSize(param0: number): void; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module init { + export module ui { + export class UiCustomization { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.init.ui.UiCustomization interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + setButtonCustomization(param0: com.stripe.android.stripe3ds2.init.ui.ButtonCustomization, param1: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType): void; + setButtonCustomization(param0: com.stripe.android.stripe3ds2.init.ui.ButtonCustomization, param1: string): void; + setToolbarCustomization(param0: com.stripe.android.stripe3ds2.init.ui.ToolbarCustomization): void; + setLabelCustomization(param0: com.stripe.android.stripe3ds2.init.ui.LabelCustomization): void; + setTextBoxCustomization(param0: com.stripe.android.stripe3ds2.init.ui.TextBoxCustomization): void; + getButtonCustomization(param0: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType): com.stripe.android.stripe3ds2.init.ui.ButtonCustomization; + getButtonCustomization(param0: string): com.stripe.android.stripe3ds2.init.ui.ButtonCustomization; + getToolbarCustomization(): com.stripe.android.stripe3ds2.init.ui.ToolbarCustomization; + getLabelCustomization(): com.stripe.android.stripe3ds2.init.ui.LabelCustomization; + getTextBoxCustomization(): com.stripe.android.stripe3ds2.init.ui.TextBoxCustomization; + }); + public constructor(); + public setToolbarCustomization(param0: com.stripe.android.stripe3ds2.init.ui.ToolbarCustomization): void; + public setButtonCustomization(param0: com.stripe.android.stripe3ds2.init.ui.ButtonCustomization, param1: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType): void; + public setLabelCustomization(param0: com.stripe.android.stripe3ds2.init.ui.LabelCustomization): void; + public getLabelCustomization(): com.stripe.android.stripe3ds2.init.ui.LabelCustomization; + public setButtonCustomization(param0: com.stripe.android.stripe3ds2.init.ui.ButtonCustomization, param1: string): void; + public getButtonCustomization(param0: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType): com.stripe.android.stripe3ds2.init.ui.ButtonCustomization; + public getButtonCustomization(param0: string): com.stripe.android.stripe3ds2.init.ui.ButtonCustomization; + public getToolbarCustomization(): com.stripe.android.stripe3ds2.init.ui.ToolbarCustomization; + public getTextBoxCustomization(): com.stripe.android.stripe3ds2.init.ui.TextBoxCustomization; + public setTextBoxCustomization(param0: com.stripe.android.stripe3ds2.init.ui.TextBoxCustomization): void; + } + export module UiCustomization { + export class ButtonType { + public static class: java.lang.Class; + public static SUBMIT: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType; + public static CONTINUE: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType; + public static NEXT: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType; + public static CANCEL: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType; + public static RESEND: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType; + public static SELECT: com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType; + public static valueOf(param0: string): com.stripe.android.stripe3ds2.init.ui.UiCustomization.ButtonType; + public static values(): native.Array; + } + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module service { + export class StripeThreeDs2Service extends com.stripe.android.stripe3ds2.service.ThreeDS2Service { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.service.StripeThreeDs2Service interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + createTransaction(param0: string, param1: string, param2: boolean, param3: string): com.stripe.android.stripe3ds2.transaction.Transaction; + createTransaction(param0: string, param1: string, param2: boolean, param3: string, param4: java.util.List, param5: java.security.PublicKey, param6: string): com.stripe.android.stripe3ds2.transaction.Transaction; + initialize(param0: globalAndroid.content.Context, param1: com.stripe.android.stripe3ds2.init.ConfigParameters, param2: string, param3: com.stripe.android.stripe3ds2.init.ui.UiCustomization): void; + createTransaction(param0: string, param1: string): com.stripe.android.stripe3ds2.transaction.Transaction; + cleanup(param0: globalAndroid.content.Context): void; + getSDKVersion(): string; + getWarnings(): java.util.List; + }); + public constructor(); + public cleanup(param0: globalAndroid.content.Context): void; + public createTransaction(param0: string, param1: string): com.stripe.android.stripe3ds2.transaction.Transaction; + public createTransaction(param0: string, param1: string, param2: boolean, param3: string, param4: java.util.List, param5: java.security.PublicKey, param6: string): com.stripe.android.stripe3ds2.transaction.Transaction; + public getWarnings(): java.util.List; + public createTransaction(param0: string, param1: string, param2: boolean, param3: string): com.stripe.android.stripe3ds2.transaction.Transaction; + public getSDKVersion(): string; + public initialize(param0: globalAndroid.content.Context, param1: com.stripe.android.stripe3ds2.init.ConfigParameters, param2: string, param3: com.stripe.android.stripe3ds2.init.ui.UiCustomization): void; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module service { + export class StripeThreeDs2ServiceImpl extends com.stripe.android.stripe3ds2.service.StripeThreeDs2Service { + public static class: java.lang.Class; + public cleanup(param0: globalAndroid.content.Context): void; + public constructor(param0: globalAndroid.content.Context); + public createTransaction(param0: string, param1: string): com.stripe.android.stripe3ds2.transaction.Transaction; + public createTransaction(param0: string, param1: string, param2: boolean, param3: string, param4: java.util.List, param5: java.security.PublicKey, param6: string): com.stripe.android.stripe3ds2.transaction.Transaction; + public getWarnings(): java.util.List; + public constructor(param0: globalAndroid.content.Context, param1: javax.net.ssl.SSLSocketFactory); + public createTransaction(param0: string, param1: string, param2: boolean, param3: string): com.stripe.android.stripe3ds2.transaction.Transaction; + public getSDKVersion(): string; + public initialize(param0: globalAndroid.content.Context, param1: com.stripe.android.stripe3ds2.init.ConfigParameters, param2: string, param3: com.stripe.android.stripe3ds2.init.ui.UiCustomization): void; + public constructor(param0: globalAndroid.content.Context, param1: string, param2: javax.net.ssl.SSLSocketFactory); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module service { + export class ThreeDS2Service { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.service.ThreeDS2Service interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + initialize(param0: globalAndroid.content.Context, param1: com.stripe.android.stripe3ds2.init.ConfigParameters, param2: string, param3: com.stripe.android.stripe3ds2.init.ui.UiCustomization): void; + createTransaction(param0: string, param1: string): com.stripe.android.stripe3ds2.transaction.Transaction; + cleanup(param0: globalAndroid.content.Context): void; + getSDKVersion(): string; + getWarnings(): java.util.List; + }); + public constructor(); + public cleanup(param0: globalAndroid.content.Context): void; + public createTransaction(param0: string, param1: string): com.stripe.android.stripe3ds2.transaction.Transaction; + public getWarnings(): java.util.List; + public getSDKVersion(): string; + public initialize(param0: globalAndroid.content.Context, param1: com.stripe.android.stripe3ds2.init.ConfigParameters, param2: string, param3: com.stripe.android.stripe3ds2.init.ui.UiCustomization): void; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transaction { + export class AuthenticationRequestParameters { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.transaction.AuthenticationRequestParameters interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getDeviceData(): string; + getSDKTransactionID(): string; + getSDKAppID(): string; + getSDKReferenceNumber(): string; + getSDKEphemeralPublicKey(): string; + getMessageVersion(): string; + }); + public constructor(); + public getMessageVersion(): string; + public getSDKEphemeralPublicKey(): string; + public getSDKReferenceNumber(): string; + public getDeviceData(): string; + public getSDKTransactionID(): string; + public getSDKAppID(): string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transaction { + export class ChallengeParameters { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.transaction.ChallengeParameters interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + set3DSServerTransactionID(param0: string): void; + setAcsTransactionID(param0: string): void; + setAcsRefNumber(param0: string): void; + setAcsSignedContent(param0: string): void; + get3DSServerTransactionID(): string; + getAcsTransactionID(): string; + getAcsRefNumber(): string; + getAcsSignedContent(): string; + }); + public constructor(); + public setAcsRefNumber(param0: string): void; + public get3DSServerTransactionID(): string; + public getAcsRefNumber(): string; + public setAcsTransactionID(param0: string): void; + public set3DSServerTransactionID(param0: string): void; + public getAcsSignedContent(): string; + public setAcsSignedContent(param0: string): void; + public getAcsTransactionID(): string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transaction { + export class ChallengeStatusReceiver { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.transaction.ChallengeStatusReceiver interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + completed(param0: com.stripe.android.stripe3ds2.transaction.CompletionEvent, param1: string): void; + cancelled(param0: string): void; + timedout(param0: string): void; + protocolError(param0: com.stripe.android.stripe3ds2.transaction.ProtocolErrorEvent): void; + runtimeError(param0: com.stripe.android.stripe3ds2.transaction.RuntimeErrorEvent): void; + }); + public constructor(); + public runtimeError(param0: com.stripe.android.stripe3ds2.transaction.RuntimeErrorEvent): void; + public protocolError(param0: com.stripe.android.stripe3ds2.transaction.ProtocolErrorEvent): void; + public cancelled(param0: string): void; + public completed(param0: com.stripe.android.stripe3ds2.transaction.CompletionEvent, param1: string): void; + public timedout(param0: string): void; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transaction { + export class CompletionEvent { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.transaction.CompletionEvent interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getSDKTransactionID(): string; + getTransactionStatus(): string; + }); + public constructor(); + public getTransactionStatus(): string; + public getSDKTransactionID(): string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transaction { + export class ErrorMessage { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.transaction.ErrorMessage interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getTransactionID(): string; + getErrorCode(): string; + getErrorDescription(): string; + getErrorDetails(): string; + }); + public constructor(); + public getErrorDescription(): string; + public getTransactionID(): string; + public getErrorDetails(): string; + public getErrorCode(): string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transaction { + export class MessageVersionRegistry { + public static class: java.lang.Class; + public constructor(); + public getCurrent(): string; + public isSupported(param0: string): boolean; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transaction { + export class ProtocolErrorEvent { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.transaction.ProtocolErrorEvent interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getSDKTransactionID(): string; + getErrorMessage(): com.stripe.android.stripe3ds2.transaction.ErrorMessage; + }); + public constructor(); + public getSDKTransactionID(): string; + public getErrorMessage(): com.stripe.android.stripe3ds2.transaction.ErrorMessage; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transaction { + export class RuntimeErrorEvent { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.transaction.RuntimeErrorEvent interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getErrorCode(): string; + getErrorMessage(): string; + }); + public constructor(); + public getErrorMessage(): string; + public getErrorCode(): string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transaction { + export class StripeChallengeParameters extends com.stripe.android.stripe3ds2.transaction.ChallengeParameters { + public static class: java.lang.Class; + public constructor(); + public setAcsRefNumber(param0: string): void; + public get3DSServerTransactionID(): string; + public getAcsRefNumber(): string; + public setAcsTransactionID(param0: string): void; + public set3DSServerTransactionID(param0: string): void; + public getAcsSignedContent(): string; + public setAcsSignedContent(param0: string): void; + public getAcsTransactionID(): string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transaction { + export class StripeChallengeStatusReceiver extends com.stripe.android.stripe3ds2.transaction.ChallengeStatusReceiver { + public static class: java.lang.Class; + public runtimeError(param0: com.stripe.android.stripe3ds2.transaction.RuntimeErrorEvent): void; + public constructor(); + public protocolError(param0: com.stripe.android.stripe3ds2.transaction.ProtocolErrorEvent): void; + public cancelled(param0: string): void; + public completed(param0: com.stripe.android.stripe3ds2.transaction.CompletionEvent, param1: string): void; + public timedout(param0: string): void; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transaction { + export class Transaction { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.stripe.android.stripe3ds2.transaction.Transaction interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getAuthenticationRequestParameters(): com.stripe.android.stripe3ds2.transaction.AuthenticationRequestParameters; + doChallenge(param0: globalAndroid.app.Activity, param1: com.stripe.android.stripe3ds2.transaction.ChallengeParameters, param2: com.stripe.android.stripe3ds2.transaction.ChallengeStatusReceiver, param3: number): void; + getProgressView(param0: globalAndroid.app.Activity): globalAndroid.app.ProgressDialog; + close(): void; + getInitialChallengeUiType(): string; + }); + public constructor(); + public getAuthenticationRequestParameters(): com.stripe.android.stripe3ds2.transaction.AuthenticationRequestParameters; + public getProgressView(param0: globalAndroid.app.Activity): globalAndroid.app.ProgressDialog; + public close(): void; + public doChallenge(param0: globalAndroid.app.Activity, param1: com.stripe.android.stripe3ds2.transaction.ChallengeParameters, param2: com.stripe.android.stripe3ds2.transaction.ChallengeStatusReceiver, param3: number): void; + public getInitialChallengeUiType(): string; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transactions { + export class ChallengeResponseData { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public serverTransId: string; + public acsTransId: string; + public acsHtml: string; + public acsHtmlRefresh: string; + public uiType: com.stripe.android.stripe3ds2.transactions.ChallengeResponseData.b; + public isChallengeCompleted: boolean; + public challengeInfoHeader: string; + public challengeInfoLabel: string; + public challengeInfoText: string; + public challengeAdditionalInfoText: string; + public shouldShowChallengeInfoTextIndicator: boolean; + public challengeSelectOptions: java.util.List; + public expandInfoLabel: string; + public expandInfoText: string; + public issuerImage: com.stripe.android.stripe3ds2.transactions.ChallengeResponseData.Image; + public messageExtensions: java.util.List; + public messageVersion: string; + public oobAppUrl: string; + public oobAppLabel: string; + public oobContinueLabel: string; + public paymentSystemImage: com.stripe.android.stripe3ds2.transactions.ChallengeResponseData.Image; + public resendInformationLabel: string; + public sdkTransId: string; + public submitAuthenticationLabel: string; + public whitelistingInfoText: string; + public whyInfoLabel: string; + public whyInfoText: string; + public transStatus: string; + public toJson(): org.json.JSONObject; + public describeContents(): number; + public static fromJson(param0: org.json.JSONObject): com.stripe.android.stripe3ds2.transactions.ChallengeResponseData; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public equals(param0: any): boolean; + } + export module ChallengeResponseData { + export class ChallengeSelectOption { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public name: string; + public text: string; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public constructor(param0: string, param1: string); + public describeContents(): number; + public equals(param0: any): boolean; + } + export class Image { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public describeContents(): number; + public constructor(param0: string, param1: string, param2: string); + public equals(param0: any): boolean; + public getHighestFidelityImageUrl(): string; + public getUrlForDensity(param0: number): string; + } + export class a { + public static class: java.lang.Class; + public constructor(); + } + export class b { + public static class: java.lang.Class; + public static a: com.stripe.android.stripe3ds2.transactions.ChallengeResponseData.b; + public static b: com.stripe.android.stripe3ds2.transactions.ChallengeResponseData.b; + public static c: com.stripe.android.stripe3ds2.transactions.ChallengeResponseData.b; + public static d: com.stripe.android.stripe3ds2.transactions.ChallengeResponseData.b; + public static e: com.stripe.android.stripe3ds2.transactions.ChallengeResponseData.b; + public f: string; + public g: com.ults.listeners.ChallengeType; + public static valueOf(param0: string): com.stripe.android.stripe3ds2.transactions.ChallengeResponseData.b; + public static values(): native.Array; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module transactions { + export class MessageExtension { + public static class: java.lang.Class; + public static CREATOR: globalAndroid.os.Parcelable.Creator; + public describeContents(): number; + public writeToParcel(param0: globalAndroid.os.Parcel, param1: number): void; + public hashCode(): number; + public equals(param0: any): boolean; + } + export module MessageExtension { + export class a { + public static class: java.lang.Class; + public constructor(); + } + } + } + } + } + } +} + + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module views { + export class BrandZoneView { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module views { + export class ChallengeActivity implements com.ults.listeners.SdkChallengeInterface, com.ults.listeners.challenges.MultiSelectChallenge, com.ults.listeners.challenges.SingleSelectChallenge, com.ults.listeners.challenges.TextChallenge, com.ults.listeners.challenges.WebChallenge { + public static class: java.lang.Class; + public selectObject(param0: number): void; + public constructor(); + public getCurrentChallenge(): com.ults.listeners.BaseSdkChallenge; + public typeTextChallengeValue(param0: string): void; + public getCheckboxesOrdered(): native.Array; + public onResume(): void; + public onTrimMemory(param0: number): void; + public onLowMemory(): void; + public onBackPressed(): void; + public onPause(): void; + public clickSubmitButton(): void; + public getChallengeType(): com.ults.listeners.ChallengeType; + public onDestroy(): void; + public clickCancelButton(): void; + public onCreate(param0: globalAndroid.os.Bundle): void; + public expandTextsBeforeScreenshot(): void; + public getWebView(): any; + public onSaveInstanceState(param0: globalAndroid.os.Bundle): void; + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module views { + export class ChallengeProgressDialogActivity { + public static class: java.lang.Class; + public static EXTRA_DIRECTORY_SERVER_NAME: string; + public static EXTRA_CANCELABLE: string; + public constructor(); + public onCreate(param0: globalAndroid.os.Bundle): void; + public static show(param0: globalAndroid.content.Context, param1: string): void; + public static show(param0: globalAndroid.content.Context, param1: string, param2: boolean): void; + public onStop(): void; + public onBackPressed(): void; + } + export module ChallengeProgressDialogActivity { + export class a { + public static class: java.lang.Class; + public onReceive(param0: globalAndroid.content.Context, param1: globalAndroid.content.Intent): void; + } + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module views { + export class ChallengeZoneView { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module views { + export class InformationZoneView { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module views { + export class ThreeDS2Button { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module views { + export class ThreeDS2HeaderTextView extends com.stripe.android.stripe3ds2.views.ThreeDS2TextView { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module views { + export class ThreeDS2TextView { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + } + } + } + } + } +} + +declare module com { + export module stripe { + export module android { + export module stripe3ds2 { + export module views { + export class ThreeDS2WebView { + public static class: java.lang.Class; + public constructor(param0: globalAndroid.content.Context); + public getSettings(): globalAndroid.webkit.WebSettings; + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet, param2: number); + public constructor(param0: globalAndroid.content.Context, param1: globalAndroid.util.AttributeSet); + public setWebViewClient(param0: globalAndroid.webkit.WebViewClient): void; + } + } + } + } + } +} + +declare module com { + export module ults { + export module listeners { + export class BaseSdkChallenge { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.ults.listeners.BaseSdkChallenge interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + clickSubmitButton(): void; + clickCancelButton(): void; + getChallengeType(): com.ults.listeners.ChallengeType; + expandTextsBeforeScreenshot(): void; + }); + public constructor(); + public clickSubmitButton(): void; + public clickCancelButton(): void; + public getChallengeType(): com.ults.listeners.ChallengeType; + public expandTextsBeforeScreenshot(): void; + } + } + } +} + +declare module com { + export module ults { + export module listeners { + export class ChallengeType { + public static class: java.lang.Class; + public static SINGLE_TEXT_INPUT: com.ults.listeners.ChallengeType; + public static SINGLE_SELECT: com.ults.listeners.ChallengeType; + public static MULTI_SELECT: com.ults.listeners.ChallengeType; + public static OUT_OF_BAND: com.ults.listeners.ChallengeType; + public static HTML_UI: com.ults.listeners.ChallengeType; + public static values(): native.Array; + public static valueOf(param0: string): com.ults.listeners.ChallengeType; + } + } + } +} + +declare module com { + export module ults { + export module listeners { + export class SdkChallengeInterface { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.ults.listeners.SdkChallengeInterface interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getCurrentChallenge(): com.ults.listeners.BaseSdkChallenge; + }); + public constructor(); + public static UL_HANDLE_CHALLENGE_ACTION: string; + public getCurrentChallenge(): com.ults.listeners.BaseSdkChallenge; + } + } + } +} + +declare module com { + export module ults { + export module listeners { + export module challenges { + export class MultiSelectChallenge extends com.ults.listeners.BaseSdkChallenge { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.ults.listeners.challenges.MultiSelectChallenge interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getCheckboxesOrdered(): native.Array; + clickSubmitButton(): void; + clickCancelButton(): void; + getChallengeType(): com.ults.listeners.ChallengeType; + expandTextsBeforeScreenshot(): void; + }); + public constructor(); + public clickSubmitButton(): void; + public getCheckboxesOrdered(): native.Array; + public expandTextsBeforeScreenshot(): void; + public clickCancelButton(): void; + public getChallengeType(): com.ults.listeners.ChallengeType; + } + } + } + } +} + +declare module com { + export module ults { + export module listeners { + export module challenges { + export class OutOfBandChallenge extends com.ults.listeners.BaseSdkChallenge { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.ults.listeners.challenges.OutOfBandChallenge interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + clickSubmitButton(): void; + clickCancelButton(): void; + getChallengeType(): com.ults.listeners.ChallengeType; + expandTextsBeforeScreenshot(): void; + }); + public constructor(); + public clickSubmitButton(): void; + public expandTextsBeforeScreenshot(): void; + public clickCancelButton(): void; + public getChallengeType(): com.ults.listeners.ChallengeType; + } + } + } + } +} + +declare module com { + export module ults { + export module listeners { + export module challenges { + export class SingleSelectChallenge extends com.ults.listeners.BaseSdkChallenge { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.ults.listeners.challenges.SingleSelectChallenge interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + selectObject(param0: number): void; + clickSubmitButton(): void; + clickCancelButton(): void; + getChallengeType(): com.ults.listeners.ChallengeType; + expandTextsBeforeScreenshot(): void; + }); + public constructor(); + public clickSubmitButton(): void; + public expandTextsBeforeScreenshot(): void; + public clickCancelButton(): void; + public selectObject(param0: number): void; + public getChallengeType(): com.ults.listeners.ChallengeType; + } + } + } + } +} + +declare module com { + export module ults { + export module listeners { + export module challenges { + export class TextChallenge extends com.ults.listeners.BaseSdkChallenge { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.ults.listeners.challenges.TextChallenge interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + typeTextChallengeValue(param0: string): void; + clickSubmitButton(): void; + clickCancelButton(): void; + getChallengeType(): com.ults.listeners.ChallengeType; + expandTextsBeforeScreenshot(): void; + }); + public constructor(); + public typeTextChallengeValue(param0: string): void; + public clickSubmitButton(): void; + public expandTextsBeforeScreenshot(): void; + public clickCancelButton(): void; + public getChallengeType(): com.ults.listeners.ChallengeType; + } + } + } + } +} + +declare module com { + export module ults { + export module listeners { + export module challenges { + export class WebChallenge extends com.ults.listeners.BaseSdkChallenge { + public static class: java.lang.Class; + /** + * Constructs a new instance of the com.ults.listeners.challenges.WebChallenge interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. + */ + public constructor(implementation: { + getWebView(): any; + clickSubmitButton(): void; + clickCancelButton(): void; + getChallengeType(): com.ults.listeners.ChallengeType; + expandTextsBeforeScreenshot(): void; + }); + public constructor(); + public clickSubmitButton(): void; + public expandTextsBeforeScreenshot(): void; + public clickCancelButton(): void; + public getChallengeType(): com.ults.listeners.ChallengeType; + public getWebView(): any; + } + } + } + } +} + +//Generics information: diff --git a/src/typings/objc!Stripe.d.ts b/src/typings/objc!Stripe.d.ts index 91dcc76..0906855 100644 --- a/src/typings/objc!Stripe.d.ts +++ b/src/typings/objc!Stripe.d.ts @@ -1,546 +1,1205 @@ -// Generated from Stripe 15.0.1 +// Generated from Stripe 16.0.6 // Using: // cd demo OR cd demo-angular // TNS_TYPESCRIPT_DECLARATIONS_PATH="$(pwd)/typings" tns build ios +declare class STDSAlreadyInitializedException extends STDSException { + + static alloc(): STDSAlreadyInitializedException; // inherited from NSObject + + static new(): STDSAlreadyInitializedException; // inherited from NSObject +} + +declare class STDSAuthenticationRequestParameters extends NSObject implements STDSJSONEncodable { + + static alloc(): STDSAuthenticationRequestParameters; // inherited from NSObject + + static new(): STDSAuthenticationRequestParameters; // inherited from NSObject + + static propertyNamesToJSONKeysMapping(): NSDictionary; + + readonly deviceData: string; + + readonly messageVersion: string; + + readonly sdkAppIdentifier: string; + + readonly sdkEphemeralPublicKey: string; + + readonly sdkReferenceNumber: string; + + readonly sdkTransactionIdentifier: string; + + 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: { SDKTransactionIdentifier: string; deviceData: string; sdkEphemeralPublicKey: string; sdkAppIdentifier: string; sdkReferenceNumber: string; messageVersion: string; }); + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + initWithSDKTransactionIdentifierDeviceDataSdkEphemeralPublicKeySdkAppIdentifierSdkReferenceNumberMessageVersion(sdkTransactionIdentifier: string, deviceData: string, sdkEphemeralPublicKey: string, sdkAppIdentifier: string, sdkReferenceNumber: string, messageVersion: 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; +} + +interface STDSAuthenticationResponse extends NSObjectProtocol { + + acsOperatorID: string; + + acsReferenceNumber: string; + + acsSignedContent: string; + + acsTransactionID: string; + + acsURL: NSURL; + + cardholderInfo: string; + + challengeMandated: boolean; + + directoryServerReferenceNumber: string; + + directoryServerTransactionID: string; + + protocolVersion: string; + + sdkTransactionID: string; + + threeDSServerTransactionID: string; + + willUseDecoupledAuthentication: boolean; +} +declare var STDSAuthenticationResponse: { + + prototype: STDSAuthenticationResponse; +}; + +declare function STDSAuthenticationResponseFromJSON(json: NSDictionary): STDSAuthenticationResponse; + +declare class STDSButtonCustomization extends STDSCustomization { + + static alloc(): STDSButtonCustomization; // inherited from NSObject + + static defaultSettingsForButtonType(type: STDSUICustomizationButtonType): STDSButtonCustomization; + + static new(): STDSButtonCustomization; // inherited from NSObject + + backgroundColor: UIColor; + + cornerRadius: number; + + titleStyle: STDSButtonTitleStyle; + + constructor(o: { backgroundColor: UIColor; cornerRadius: number; }); + + initWithBackgroundColorCornerRadius(backgroundColor: UIColor, cornerRadius: number): this; +} + +declare const enum STDSButtonTitleStyle { + + Default = 0, + + Uppercase = 1, + + Lowercase = 2, + + SentenceCapitalized = 3 +} + +declare class STDSChallengeParameters extends NSObject { + + static alloc(): STDSChallengeParameters; // inherited from NSObject + + static new(): STDSChallengeParameters; // inherited from NSObject + + acsReferenceNumber: string; + + acsSignedContent: string; + + acsTransactionID: string; + + threeDSRequestorAppURL: string; + + threeDSServerTransactionID: string; + + constructor(o: { authenticationResponse: STDSAuthenticationResponse; }); + + initWithAuthenticationResponse(authResponse: STDSAuthenticationResponse): this; +} + +interface STDSChallengeStatusReceiver extends NSObjectProtocol { + + transactionDidCancel(transaction: STDSTransaction): void; + + transactionDidCompleteChallengeWithCompletionEvent(transaction: STDSTransaction, completionEvent: STDSCompletionEvent): void; + + transactionDidErrorWithProtocolErrorEvent(transaction: STDSTransaction, protocolErrorEvent: STDSProtocolErrorEvent): void; + + transactionDidErrorWithRuntimeErrorEvent(transaction: STDSTransaction, runtimeErrorEvent: STDSRuntimeErrorEvent): void; + + transactionDidPresentChallengeScreen?(transaction: STDSTransaction): void; + + transactionDidTimeOut(transaction: STDSTransaction): void; +} +declare var STDSChallengeStatusReceiver: { + + prototype: STDSChallengeStatusReceiver; +}; + +declare class STDSCompletionEvent extends NSObject { + + static alloc(): STDSCompletionEvent; // inherited from NSObject + + static new(): STDSCompletionEvent; // inherited from NSObject + + readonly sdkTransactionIdentifier: string; + + readonly transactionStatus: string; + + constructor(o: { SDKTransactionIdentifier: string; transactionStatus: string; }); + + initWithSDKTransactionIdentifierTransactionStatus(identifier: string, transactionStatus: string): this; +} + +declare class STDSConfigParameters extends NSObject { + + static alloc(): STDSConfigParameters; // inherited from NSObject + + static new(): STDSConfigParameters; // inherited from NSObject + + constructor(o: { standardParameters: void; }); + + addParameterNamedWithValue(paramName: string, paramValue: string): void; + + addParameterNamedWithValueToGroup(paramName: string, paramValue: string, paramGroup: string): void; + + initWithStandardParameters(): this; + + parameterValue(paramName: string): string; + + parameterValueInGroup(paramName: string, paramGroup: string): string; + + removeParameterNamed(paramName: string): string; + + removeParameterNamedFromGroup(paramName: string, paramGroup: string): string; +} + +declare class STDSCustomization extends NSObject implements NSCopying { + + static alloc(): STDSCustomization; // inherited from NSObject + + static new(): STDSCustomization; // inherited from NSObject + + font: UIFont; + + textColor: UIColor; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare const enum STDSErrorCode { + + AssertionFailed = 204, + + JSONFieldInvalid = 203, + + JSONFieldMissing = 201, + + UnrecognizedCriticalMessageExtension = 202, + + DecryptionVerification = 302, + + RuntimeParsing = 400, + + RuntimeEncryption = 401, + + ReceivedErrorMessage = 1000, + + UnknownMessageType = 1001, + + Timeout = 1002, + + UnknownError = 2000 +} + +declare class STDSErrorMessage extends NSObject implements STDSJSONDecodable, STDSJSONEncodable { + + static alloc(): STDSErrorMessage; // inherited from NSObject + + static decodedObjectFromJSONError(json: NSDictionary): STDSErrorMessage; + + static new(): STDSErrorMessage; // inherited from NSObject + + static propertyNamesToJSONKeysMapping(): NSDictionary; + + readonly acsTransactionIdentifier: string; + + readonly errorCode: string; + + readonly errorComponent: string; + + readonly errorDescription: string; + + readonly errorDetails: string; + + readonly errorMessageType: string; + + readonly messageVersion: string; + + 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: { errorCode: string; errorComponent: string; errorDescription: string; errorDetails: string; messageVersion: string; acsTransactionIdentifier: string; errorMessageType: string; }); + + NSErrorValue(): NSError; + + class(): typeof NSObject; + + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + initWithErrorCodeErrorComponentErrorDescriptionErrorDetailsMessageVersionAcsTransactionIdentifierErrorMessageType(errorCode: string, errorComponent: string, errorDescription: string, errorDetails: string, messageVersion: string, acsTransactionIdentifier: string, errorMessageType: 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 STDSErrorMessageCode { + + CodeInvalidMessage = 101, + + CodeRequiredDataElementMissing = 201, + + CodeUnrecognizedCriticalMessageExtension = 202, + + ErrorInvalidDataElement = 203, + + ErrorTransactionIDNotRecognized = 301, + + ErrorDataDecryptionFailure = 302, + + ErrorTimeout = 402 +} + +declare class STDSException extends NSException { + + static alloc(): STDSException; // inherited from NSObject + + static new(): STDSException; // inherited from NSObject + + readonly message: string; +} + +declare class STDSFooterCustomization extends STDSCustomization { + + static alloc(): STDSFooterCustomization; // inherited from NSObject + + static defaultSettings(): STDSFooterCustomization; + + static new(): STDSFooterCustomization; // inherited from NSObject + + backgroundColor: UIColor; + + chevronColor: UIColor; + + headingFont: UIFont; + + headingTextColor: UIColor; +} + +declare class STDSInvalidInputException extends STDSException { + + static alloc(): STDSInvalidInputException; // inherited from NSObject + + static new(): STDSInvalidInputException; // inherited from NSObject +} + +interface STDSJSONDecodable extends NSObjectProtocol { +} +declare var STDSJSONDecodable: { + + prototype: STDSJSONDecodable; + + decodedObjectFromJSONError(json: NSDictionary): STDSJSONDecodable; +}; + +interface STDSJSONEncodable extends NSObjectProtocol { +} +declare var STDSJSONEncodable: { + + prototype: STDSJSONEncodable; + + propertyNamesToJSONKeysMapping(): NSDictionary; +}; + +declare class STDSJSONEncoder extends NSObject { + + static alloc(): STDSJSONEncoder; // inherited from NSObject + + static dictionaryForObject(object: NSObject): NSDictionary; + + static new(): STDSJSONEncoder; // inherited from NSObject +} + +declare class STDSLabelCustomization extends STDSCustomization { + + static alloc(): STDSLabelCustomization; // inherited from NSObject + + static defaultSettings(): STDSLabelCustomization; + + static new(): STDSLabelCustomization; // inherited from NSObject + + headingFont: UIFont; + + headingTextColor: UIColor; +} + +declare class STDSNavigationBarCustomization extends STDSCustomization { + + static alloc(): STDSNavigationBarCustomization; // inherited from NSObject + + static defaultSettings(): STDSNavigationBarCustomization; + + static new(): STDSNavigationBarCustomization; // inherited from NSObject + + barStyle: UIBarStyle; + + barTintColor: UIColor; + + buttonText: string; + + headerText: string; + + translucent: boolean; +} + +declare class STDSNotInitializedException extends STDSException { + + static alloc(): STDSNotInitializedException; // inherited from NSObject + + static new(): STDSNotInitializedException; // inherited from NSObject +} + +declare class STDSProtocolErrorEvent extends NSObject { + + static alloc(): STDSProtocolErrorEvent; // inherited from NSObject + + static new(): STDSProtocolErrorEvent; // inherited from NSObject + + readonly errorMessage: STDSErrorMessage; + + readonly sdkTransactionIdentifier: string; + + constructor(o: { SDKTransactionIdentifier: string; errorMessage: STDSErrorMessage; }); + + initWithSDKTransactionIdentifierErrorMessage(identifier: string, errorMessage: STDSErrorMessage): this; +} + +declare class STDSRuntimeErrorEvent extends NSObject { + + static alloc(): STDSRuntimeErrorEvent; // inherited from NSObject + + static new(): STDSRuntimeErrorEvent; // inherited from NSObject + + readonly errorCode: string; + + readonly errorMessage: string; + + constructor(o: { errorCode: string; errorMessage: string; }); + + NSErrorValue(): NSError; + + initWithErrorCodeErrorMessage(errorCode: string, errorMessage: string): this; +} + +declare class STDSRuntimeException extends STDSException { + + static alloc(): STDSRuntimeException; // inherited from NSObject + + static new(): STDSRuntimeException; // inherited from NSObject +} + +declare class STDSSelectionCustomization extends NSObject implements NSCopying { + + static alloc(): STDSSelectionCustomization; // inherited from NSObject + + static defaultSettings(): STDSSelectionCustomization; + + static new(): STDSSelectionCustomization; // inherited from NSObject + + primarySelectedColor: UIColor; + + secondarySelectedColor: UIColor; + + unselectedBackgroundColor: UIColor; + + unselectedBorderColor: UIColor; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare var STDSStripe3DS2ErrorDomain: string; + +declare var STDSStripe3DS2ErrorFieldKey: string; + +declare var STDSStripe3DS2ErrorMessageErrorKey: string; + +declare var STDSStripe3DS2UnrecognizedCriticalMessageExtensionsKey: string; + +declare class STDSTextFieldCustomization extends STDSCustomization { + + static alloc(): STDSTextFieldCustomization; // inherited from NSObject + + static defaultSettings(): STDSTextFieldCustomization; + + static new(): STDSTextFieldCustomization; // inherited from NSObject + + borderColor: UIColor; + + borderWidth: number; + + cornerRadius: number; + + keyboardAppearance: UIKeyboardAppearance; + + placeholderTextColor: UIColor; +} + +declare class STDSThreeDS2Service extends NSObject { + + static alloc(): STDSThreeDS2Service; // inherited from NSObject + + static new(): STDSThreeDS2Service; // inherited from NSObject + + readonly warnings: NSArray; + + createTransactionForDirectoryServerServerKeyIDCertificateStringRootCertificateStringsWithProtocolVersion(directoryServerID: string, serverKeyID: string, certificateString: string, rootCertificateStrings: NSArray | string[], protocolVersion: string): STDSTransaction; + + createTransactionForDirectoryServerWithProtocolVersion(directoryServerID: string, protocolVersion: string): STDSTransaction; + + initializeWithConfigLocaleUiSettings(config: STDSConfigParameters, locale: NSLocale, uiSettings: STDSUICustomization): void; +} + +declare class STDSTransaction extends NSObject { + + static alloc(): STDSTransaction; // inherited from NSObject + + static new(): STDSTransaction; // inherited from NSObject + + readonly presentedChallengeUIType: string; + + close(): void; + + createAuthenticationRequestParameters(): STDSAuthenticationRequestParameters; + + createProgressViewControllerWithDidCancel(didCancel: () => void): UIViewController; + + doChallengeWithViewControllerChallengeParametersChallengeStatusReceiverTimeout(presentingViewController: UIViewController, challengeParameters: STDSChallengeParameters, challengeStatusReceiver: STDSChallengeStatusReceiver, timeout: number): void; + + sdkVersion(): string; +} + +declare class STDSUICustomization extends NSObject implements NSCopying { + + static alloc(): STDSUICustomization; // inherited from NSObject + + static defaultSettings(): STDSUICustomization; + + static new(): STDSUICustomization; // inherited from NSObject + + activityIndicatorViewStyle: UIActivityIndicatorViewStyle; + + backgroundColor: UIColor; + + blurStyle: UIBlurEffectStyle; + + footerCustomization: STDSFooterCustomization; + + labelCustomization: STDSLabelCustomization; + + navigationBarCustomization: STDSNavigationBarCustomization; + + preferredStatusBarStyle: UIStatusBarStyle; + + selectionCustomization: STDSSelectionCustomization; + + textFieldCustomization: STDSTextFieldCustomization; + + buttonCustomizationForButtonType(buttonType: STDSUICustomizationButtonType): STDSButtonCustomization; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; + + setButtonCustomizationForType(buttonCustomization: STDSButtonCustomization, buttonType: STDSUICustomizationButtonType): void; +} + +declare const enum STDSUICustomizationButtonType { + + Submit = 0, + + Continue = 1, + + Next = 2, + + Cancel = 3, + + Resend = 4 +} + +declare class STDSWarning extends NSObject { + + static alloc(): STDSWarning; // inherited from NSObject + + static new(): STDSWarning; // inherited from NSObject + + readonly identifier: string; + + readonly message: string; + + readonly severity: STDSWarningSeverity; + + constructor(o: { identifier: string; message: string; severity: STDSWarningSeverity; }); + + initWithIdentifierMessageSeverity(identifier: string, message: string, severity: STDSWarningSeverity): this; +} + +declare const enum STDSWarningSeverity { + + Low = 0, + + Medium = 1, + + 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 sharedClient(): STPAPIClient; + + appInfo: STPAppInfo; + + configuration: STPPaymentConfiguration; - static new(): STPAPIClient; // inherited from NSObject + publishableKey: string; - static sharedClient(): STPAPIClient; + stripeAccount: string; - configuration: STPPaymentConfiguration; + constructor(o: { configuration: STPPaymentConfiguration; }); - publishableKey: string; + constructor(o: { publishableKey: string; }); - stripeAccount: string; + confirmPaymentIntentWithParamsCompletion(paymentIntentParams: STPPaymentIntentParams, completion: (p1: STPPaymentIntent, p2: NSError) => void): void; - constructor(o: { configuration: STPPaymentConfiguration; }); + confirmSetupIntentWithParamsCompletion(setupIntentParams: STPSetupIntentConfirmParams, completion: (p1: STPSetupIntent, p2: NSError) => void): void; - constructor(o: { publishableKey: string; }); + createPaymentMethodWithParamsCompletion(paymentMethodParams: STPPaymentMethodParams, completion: (p1: STPPaymentMethod, p2: NSError) => void): void; - confirmPaymentIntentWithParamsCompletion(paymentIntentParams: STPPaymentIntentParams, completion: (p1: STPPaymentIntent, 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; - createSourceWithParamsCompletion(params: STPSourceParams, completion: (p1: STPSource, p2: NSError) => void): void; + createSourceWithPaymentCompletion(payment: PKPayment, completion: (p1: STPSource, p2: NSError) => void): void; - createSourceWithPaymentCompletion(payment: PKPayment, completion: (p1: STPSource, p2: NSError) => void): void; + createTokenForCVCUpdateCompletion(cvc: string, completion: (p1: STPToken, p2: NSError) => void): void; - createTokenForCVCUpdateCompletion(cvc: string, completion: (p1: STPToken, p2: NSError) => void): void; + createTokenWithBankAccountCompletion(bankAccount: STPBankAccountParams, completion: (p1: STPToken, p2: NSError) => void): void; - createTokenWithBankAccountCompletion(bankAccount: STPBankAccountParams, completion: (p1: STPToken, p2: NSError) => void): void; + createTokenWithCardCompletion(card: STPCardParams, completion: (p1: STPToken, p2: NSError) => void): void; - createTokenWithCardCompletion(card: STPCardParams, completion: (p1: STPToken, p2: NSError) => void): void; + createTokenWithConnectAccountCompletion(account: STPConnectAccountParams, completion: (p1: STPToken, p2: NSError) => void): void; - createTokenWithConnectAccountCompletion(account: STPConnectAccountParams, completion: (p1: STPToken, p2: NSError) => void): void; + createTokenWithPaymentCompletion(payment: PKPayment, completion: (p1: STPToken, p2: NSError) => void): void; - createTokenWithPaymentCompletion(payment: PKPayment, completion: (p1: STPToken, p2: NSError) => void): void; + createTokenWithPersonalIDNumberCompletion(pii: string, completion: (p1: STPToken, p2: NSError) => void): void; - createTokenWithPersonalIDNumberCompletion(pii: string, completion: (p1: STPToken, p2: NSError) => void): void; + initWithConfiguration(configuration: STPPaymentConfiguration): this; - initWithConfiguration(configuration: STPPaymentConfiguration): this; + initWithPublishableKey(publishableKey: string): this; - initWithPublishableKey(publishableKey: string): this; + retrievePaymentIntentWithClientSecretCompletion(secret: string, completion: (p1: STPPaymentIntent, p2: NSError) => void): void; - retrievePaymentIntentWithClientSecretCompletion(secret: string, completion: (p1: STPPaymentIntent, p2: NSError) => void): void; + retrieveSetupIntentWithClientSecretCompletion(secret: string, completion: (p1: STPSetupIntent, p2: NSError) => void): void; - retrieveSourceWithIdClientSecretCompletion(identifier: string, secret: string, completion: (p1: STPSource, p2: NSError) => void): void; + retrieveSourceWithIdClientSecretCompletion(identifier: string, secret: string, completion: (p1: STPSource, p2: NSError) => void): void; - startPollingSourceWithIdClientSecretTimeoutCompletion(identifier: string, secret: string, timeout: number, completion: (p1: STPSource, p2: NSError) => void): void; + startPollingSourceWithIdClientSecretTimeoutCompletion(identifier: string, secret: string, timeout: number, completion: (p1: STPSource, p2: NSError) => void): void; - stopPollingSourceWithId(identifier: string): void; + stopPollingSourceWithId(identifier: string): void; - uploadImagePurposeCompletion(image: UIImage, purpose: STPFilePurpose, completion: (p1: STPFile, p2: NSError) => void): 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; + customFooterView: UIView; - delegate: STPAddCardViewControllerDelegate; + delegate: STPAddCardViewControllerDelegate; - managedAccountCurrency: string; + prefilledInformation: STPUserInformation; - prefilledInformation: STPUserInformation; + constructor(o: { configuration: STPPaymentConfiguration; theme: STPTheme; }); - constructor(o: { configuration: STPPaymentConfiguration; theme: STPTheme; }); - - initWithConfigurationTheme(configuration: STPPaymentConfiguration, theme: STPTheme): this; + initWithConfigurationTheme(configuration: STPPaymentConfiguration, theme: STPTheme): this; } interface STPAddCardViewControllerDelegate extends NSObjectProtocol { - addCardViewControllerDidCancel(addCardViewController: STPAddCardViewController): void; - - addCardViewControllerDidCreateSourceCompletion?(addCardViewController: STPAddCardViewController, source: STPSource, completion: (p1: NSError) => void): void; + addCardViewControllerDidCancel(addCardViewController: STPAddCardViewController): void; - addCardViewControllerDidCreateTokenCompletion?(addCardViewController: STPAddCardViewController, token: STPToken, completion: (p1: NSError) => void): void; + addCardViewControllerDidCreatePaymentMethodCompletion?(addCardViewController: STPAddCardViewController, paymentMethod: STPPaymentMethod, 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 decodedObjectFromAPIResponse(response: NSDictionary): STPAddress; + + static new(): STPAddress; // inherited from NSObject + + static pkAddressFieldsFromStripeContactFields(contactFields: NSSet): PKAddressField; + + static pkContactFieldsFromStripeContactFields(contactFields: NSSet): NSSet; - static applePayAddressFieldsFromBillingAddressFields(billingAddressFields: STPBillingAddressFields): PKAddressField; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static decodedObjectFromAPIResponse(response: NSDictionary): STPAddress; + static rootObjectName(): string; - static new(): STPAddress; // inherited from NSObject + static shippingInfoForChargeWithAddressShippingMethod(address: STPAddress, method: PKShippingMethod): NSDictionary; - static pkAddressFieldsFromStripeContactFields(contactFields: NSSet): PKAddressField; + city: string; - static pkContactFieldsFromStripeContactFields(contactFields: NSSet): NSSet; + country: string; - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + email: string; - static rootObjectName(): string; + line1: string; - static shippingInfoForChargeWithAddressShippingMethod(address: STPAddress, method: PKShippingMethod): NSDictionary; + line2: string; - city: string; + name: string; - country: string; + phone: string; - email: string; + postalCode: string; - line1: string; + state: string; - line2: string; + additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable - name: string; + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - phone: string; + readonly debugDescription: string; // inherited from NSObjectProtocol - postalCode: string; + readonly description: string; // inherited from NSObjectProtocol - state: string; + readonly hash: number; // inherited from NSObjectProtocol - additionalAPIParameters: NSDictionary; // inherited from STPFormEncodable + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + constructor(o: { CNContact: CNContact; }); - readonly hash: number; // inherited from NSObjectProtocol + constructor(o: { PKContact: PKContact; }); - readonly isProxy: boolean; // inherited from NSObjectProtocol + constructor(o: { paymentMethodBillingDetails: STPPaymentMethodBillingDetails; }); - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + PKContactValue(): PKContact; - readonly // inherited from NSObjectProtocol + class(): typeof NSObject; - constructor(o: { CNContact: CNContact; }); + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - constructor(o: { PKContact: PKContact; }); + containsContentForBillingAddressFields(desiredFields: STPBillingAddressFields): boolean; - PKContactValue(): PKContact; + containsContentForShippingAddressFields(desiredFields: NSSet): boolean; - class(): typeof NSObject; + containsRequiredFields(requiredFields: STPBillingAddressFields): boolean; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + containsRequiredShippingAddressFields(requiredFields: NSSet): boolean; - containsContentForBillingAddressFields(desiredFields: STPBillingAddressFields): boolean; + copyWithZone(zone: interop.Pointer | interop.Reference): any; - containsContentForShippingAddressFields(desiredFields: NSSet): boolean; + initWithCNContact(contact: CNContact): this; - containsRequiredFields(requiredFields: STPBillingAddressFields): boolean; + initWithPKContact(contact: PKContact): this; - containsRequiredShippingAddressFields(requiredFields: NSSet): boolean; + initWithPaymentMethodBillingDetails(billingDetails: STPPaymentMethodBillingDetails): this; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + isEqual(object: any): boolean; - initWithCNContact(contact: CNContact): this; + isKindOfClass(aClass: typeof NSObject): boolean; - initWithPKContact(contact: PKContact): this; + 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; +} - isEqual(object: any): boolean; +declare class STPAppInfo extends NSObject { - isKindOfClass(aClass: typeof NSObject): boolean; + static alloc(): STPAppInfo; // inherited from NSObject - isMemberOfClass(aClass: typeof NSObject): boolean; + static new(): STPAppInfo; // inherited from NSObject - performSelector(aSelector: string): any; + readonly name: string; - performSelectorWithObject(aSelector: string, object: any): any; + readonly partnerId: string; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly url: string; - respondsToSelector(aSelector: string): boolean; + readonly version: string; - retainCount(): number; + constructor(o: { name: string; partnerId: string; version: string; url: string; }); - self(): 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 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 - 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 STPAuthenticationContext extends NSObjectProtocol { + + authenticationPresentingViewController(): UIViewController; + + configureSafariViewController?(viewController: SFSafariViewController): void; + + prepareAuthenticationContextForPresentation?(completion: () => void): void; +} +declare var STPAuthenticationContext: { + + prototype: STPAuthenticationContext; +}; + interface STPBackendAPIAdapter extends NSObjectProtocol { - attachSourceToCustomerCompletion(source: STPSourceProtocol, completion: (p1: NSError) => void): void; + attachPaymentMethodToCustomerCompletion(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; - detachSourceFromCustomerCompletion?(source: STPSourceProtocol, completion: (p1: NSError) => void): void; + detachPaymentMethodFromCustomerCompletion?(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; - retrieveCustomer(completion: (p1: STPCustomer, p2: NSError) => void): void; + listPaymentMethodsForCustomerWithCompletion(completion: (p1: NSArray, p2: NSError) => void): void; - selectDefaultCustomerSourceCompletion(source: STPSourceProtocol, completion: (p1: 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, + Validated = 1, - Verified = 2, + Verified = 2, - VerificationFailed = 3, + VerificationFailed = 3, - Errored = 4 + Errored = 4 } declare const enum STPBillingAddressFields { - None = 0, + None = 0, - Zip = 1, + Zip = 1, - Full = 2, + Full = 2, - Name = 3 + Name = 3 } 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 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; @@ -549,189 +1208,189 @@ 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 stringIsNumeric(string: string): boolean; - static validationStateForCVCCardBrand(cvc: string, brand: STPCardBrand): STPCardValidationState; + static validationStateForCVCCardBrand(cvc: string, brand: STPCardBrand): STPCardValidationState; - static validationStateForCard(card: STPCardParams): STPCardValidationState; + static validationStateForCard(card: STPCardParams): STPCardValidationState; - static validationStateForExpirationMonth(expirationMonth: string): STPCardValidationState; + static validationStateForExpirationMonth(expirationMonth: string): STPCardValidationState; - static validationStateForExpirationYearInMonth(expirationYear: string, expirationMonth: string): STPCardValidationState; + static validationStateForExpirationYearInMonth(expirationYear: string, expirationMonth: string): STPCardValidationState; - static validationStateForNumberValidatingCardBrand(cardNumber: string, validatingCardBrand: boolean): STPCardValidationState; + static validationStateForNumberValidatingCardBrand(cardNumber: string, validatingCardBrand: boolean): STPCardValidationState; } declare class STPConnectAccountParams extends NSObject implements STPFormEncodable { - static alloc(): STPConnectAccountParams; // inherited from NSObject + static alloc(): STPConnectAccountParams; // inherited from NSObject - static new(): STPConnectAccountParams; // inherited from NSObject + static new(): STPConnectAccountParams; // inherited from NSObject - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static rootObjectName(): string; + static rootObjectName(): string; - readonly legalEntity: STPLegalEntityParams; + readonly legalEntity: STPLegalEntityParams; - readonly tosShownAndAccepted: number; + 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 - constructor(o: { legalEntity: STPLegalEntityParams; }); + constructor(o: { legalEntity: STPLegalEntityParams; }); - constructor(o: { tosShownAndAccepted: boolean; legalEntity: STPLegalEntityParams; }); + constructor(o: { tosShownAndAccepted: boolean; legalEntity: STPLegalEntityParams; }); - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - initWithLegalEntity(legalEntity: STPLegalEntityParams): this; + initWithLegalEntity(legalEntity: STPLegalEntityParams): this; - initWithTosShownAndAcceptedLegalEntity(wasAccepted: boolean, legalEntity: STPLegalEntityParams): this; + initWithTosShownAndAcceptedLegalEntity(wasAccepted: boolean, legalEntity: STPLegalEntityParams): 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 var STPContactFieldEmailAddress: string; @@ -744,191 +1403,191 @@ declare var STPContactFieldPostalAddress: string; declare class STPCoreScrollViewController extends STPCoreViewController { - static alloc(): STPCoreScrollViewController; // inherited from NSObject + static alloc(): STPCoreScrollViewController; // inherited from NSObject - static new(): STPCoreScrollViewController; // inherited from NSObject + static new(): STPCoreScrollViewController; // inherited from NSObject } declare class STPCoreTableViewController extends STPCoreScrollViewController { - static alloc(): STPCoreTableViewController; // inherited from NSObject + static alloc(): STPCoreTableViewController; // inherited from NSObject - static new(): STPCoreTableViewController; // inherited from NSObject + static new(): STPCoreTableViewController; // inherited from NSObject } declare class STPCoreViewController extends UIViewController { - static alloc(): STPCoreViewController; // inherited from NSObject + static alloc(): STPCoreViewController; // inherited from NSObject - static new(): STPCoreViewController; // inherited from NSObject + static new(): STPCoreViewController; // inherited from NSObject - constructor(o: { theme: STPTheme; }); + constructor(o: { theme: STPTheme; }); - initWithTheme(theme: STPTheme): this; + initWithTheme(theme: STPTheme): this; } declare class STPCustomer extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPCustomer; // inherited from NSObject + static alloc(): STPCustomer; // inherited from NSObject - static customerWithStripeIDDefaultSourceSources(stripeID: string, defaultSource: STPSourceProtocol, sources: NSArray | STPSourceProtocol[]): STPCustomer; + static customerWithStripeIDDefaultSourceSources(stripeID: string, defaultSource: STPSourceProtocol, sources: NSArray | STPSourceProtocol[]): STPCustomer; - static decodedObjectFromAPIResponse(response: NSDictionary): STPCustomer; + static decodedObjectFromAPIResponse(response: NSDictionary): STPCustomer; - static new(): STPCustomer; // inherited from NSObject + static new(): STPCustomer; // inherited from NSObject - readonly defaultSource: STPSourceProtocol; + readonly defaultSource: STPSourceProtocol; - readonly shippingAddress: STPAddress; + readonly shippingAddress: STPAddress; - readonly sources: NSArray; + readonly sources: NSArray; - readonly stripeID: string; + readonly stripeID: 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 STPCustomerContext extends NSObject implements STPBackendAPIAdapter { - static alloc(): STPCustomerContext; // inherited from NSObject + static alloc(): STPCustomerContext; // inherited from NSObject - static new(): STPCustomerContext; // inherited from NSObject + static new(): STPCustomerContext; // inherited from NSObject - includeApplePaySources: boolean; + includeApplePayPaymentMethods: boolean; - 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: { keyProvider: STPCustomerEphemeralKeyProvider; }); + constructor(o: { keyProvider: STPCustomerEphemeralKeyProvider; }); - attachSourceToCustomerCompletion(source: STPSourceProtocol, completion: (p1: NSError) => void): void; + attachPaymentMethodToCustomerCompletion(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; - class(): typeof NSObject; + class(): typeof NSObject; - clearCachedCustomer(): void; + clearCache(): void; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - detachSourceFromCustomerCompletion(source: STPSourceProtocol, completion: (p1: NSError) => void): void; + detachPaymentMethodFromCustomerCompletion(paymentMethod: STPPaymentMethod, completion: (p1: NSError) => void): void; - initWithKeyProvider(keyProvider: STPCustomerEphemeralKeyProvider): this; + initWithKeyProvider(keyProvider: STPCustomerEphemeralKeyProvider): 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; + listPaymentMethodsForCustomerWithCompletion(completion: (p1: NSArray, p2: NSError) => void): void; - 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; - retrieveCustomer(completion: (p1: STPCustomer, p2: NSError) => void): void; + retainCount(): number; - selectDefaultCustomerSourceCompletion(source: STPSourceProtocol, completion: (p1: NSError) => void): void; + retrieveCustomer(completion: (p1: STPCustomer, p2: NSError) => void): void; - self(): this; + self(): this; - updateCustomerWithShippingAddressCompletion(shipping: STPAddress, completion: (p1: NSError) => void): void; + updateCustomerWithShippingAddressCompletion(shipping: STPAddress, completion: (p1: NSError) => void): void; } declare class STPCustomerDeserializer extends NSObject { - static alloc(): STPCustomerDeserializer; // inherited from NSObject + static alloc(): STPCustomerDeserializer; // inherited from NSObject - static new(): STPCustomerDeserializer; // inherited from NSObject + static new(): STPCustomerDeserializer; // inherited from NSObject - readonly customer: STPCustomer; + readonly customer: STPCustomer; - readonly error: NSError; + readonly error: NSError; - constructor(o: { data: NSData; urlResponse: NSURLResponse; error: NSError; }); + constructor(o: { data: NSData; urlResponse: NSURLResponse; error: NSError; }); - constructor(o: { JSONResponse: any; }); + constructor(o: { JSONResponse: any; }); - initWithDataUrlResponseError(data: NSData, urlResponse: NSURLResponse, error: NSError): this; + initWithDataUrlResponseError(data: NSData, urlResponse: NSURLResponse, error: NSError): this; - initWithJSONResponse(json: any): this; + initWithJSONResponse(json: any): this; } interface STPCustomerEphemeralKeyProvider extends NSObjectProtocol { - createCustomerKeyWithAPIVersionCompletion(apiVersion: string, completion: (p1: NSDictionary, p2: NSError) => void): void; + createCustomerKeyWithAPIVersionCompletion(apiVersion: string, completion: (p1: NSDictionary, p2: NSError) => void): void; } declare var STPCustomerEphemeralKeyProvider: { - prototype: STPCustomerEphemeralKeyProvider; + prototype: STPCustomerEphemeralKeyProvider; }; interface STPEphemeralKeyProvider extends STPCustomerEphemeralKeyProvider { } declare var STPEphemeralKeyProvider: { - prototype: STPEphemeralKeyProvider; + prototype: STPEphemeralKeyProvider; }; declare const enum STPErrorCode { - ConnectionError = 40, + ConnectionError = 40, - InvalidRequestError = 50, + InvalidRequestError = 50, - APIError = 60, + APIError = 60, - CardError = 70, + CardError = 70, - CancellationError = 80, + CancellationError = 80, - EphemeralKeyDecodingError = 1000 + EphemeralKeyDecodingError = 1000 } declare var STPErrorMessageKey: string; @@ -939,2677 +1598,3265 @@ declare var STPExpiredCard: string; declare class STPFile extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPFile; // inherited from NSObject + static alloc(): STPFile; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPFile; + static decodedObjectFromAPIResponse(response: NSDictionary): STPFile; - static new(): STPFile; // inherited from NSObject + static new(): STPFile; // inherited from NSObject - static stringFromPurpose(purpose: STPFilePurpose): string; + static stringFromPurpose(purpose: STPFilePurpose): string; - readonly created: Date; + readonly created: Date; - readonly fileId: string; + readonly fileId: string; - readonly purpose: STPFilePurpose; + readonly purpose: STPFilePurpose; - readonly size: number; + readonly size: number; - readonly type: string; + readonly type: 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 const enum STPFilePurpose { - IdentityDocument = 0, + IdentityDocument = 0, - DisputeEvidence = 1, + DisputeEvidence = 1, - Unknown = 2 + Unknown = 2 } interface STPFormEncodable extends NSObjectProtocol { - additionalAPIParameters: NSDictionary; + additionalAPIParameters: NSDictionary; } declare var STPFormEncodable: { - prototype: STPFormEncodable; + prototype: STPFormEncodable; - propertyNamesToFormFieldNamesMapping(): NSDictionary; + propertyNamesToFormFieldNamesMapping(): NSDictionary; - rootObjectName(): string; + rootObjectName(): string; }; declare class STPImageLibrary extends NSObject { - static alloc(): STPImageLibrary; // inherited from NSObject + static alloc(): STPImageLibrary; // inherited from NSObject - static amexCardImage(): UIImage; + static amexCardImage(): UIImage; - static applePayCardImage(): UIImage; + static applePayCardImage(): UIImage; - static brandImageForCardBrand(brand: STPCardBrand): UIImage; + static brandImageForCardBrand(brand: STPCardBrand): UIImage; - static cvcImageForCardBrand(brand: STPCardBrand): UIImage; + static cvcImageForCardBrand(brand: STPCardBrand): UIImage; - static dinersClubCardImage(): UIImage; + static dinersClubCardImage(): UIImage; - static discoverCardImage(): UIImage; + static discoverCardImage(): UIImage; - static errorImageForCardBrand(brand: STPCardBrand): UIImage; + static errorImageForCardBrand(brand: STPCardBrand): UIImage; - static jcbCardImage(): UIImage; + static jcbCardImage(): UIImage; - static masterCardCardImage(): UIImage; + static masterCardCardImage(): UIImage; - static new(): STPImageLibrary; // inherited from NSObject + static new(): STPImageLibrary; // inherited from NSObject - static templatedBrandImageForCardBrand(brand: STPCardBrand): UIImage; + static templatedBrandImageForCardBrand(brand: STPCardBrand): UIImage; - static unionPayCardImage(): UIImage; + static unionPayCardImage(): UIImage; - static unknownCardCardImage(): UIImage; + static unknownCardCardImage(): UIImage; - static visaCardImage(): UIImage; + static visaCardImage(): UIImage; } declare var STPIncorrectCVC: string; declare var STPIncorrectNumber: string; -declare var STPInvalidCVC: string; +declare class STPIntentAction extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPIntentAction; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPIntentAction; + + static new(): STPIntentAction; // inherited from NSObject + + readonly authorizeWithURL: STPIntentActionRedirectToURL; + + readonly redirectToURL: STPIntentActionRedirectToURL; + + readonly type: STPIntentActionType; + + 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 STPIntentActionRedirectToURL extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPIntentActionRedirectToURL; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPIntentActionRedirectToURL; + + static new(): STPIntentActionRedirectToURL; // inherited from NSObject + + readonly returnURL: NSURL; + + readonly url: NSURL; + + 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 STPIntentActionType { + + Unknown = 0, + + RedirectToURL = 1, + + UseStripeSDK = 2 +} + +declare var STPInvalidCVC: string; + +declare var STPInvalidExpMonth: string; + +declare var STPInvalidExpYear: string; + +declare var STPInvalidNumber: string; + +interface STPIssuingCardEphemeralKeyProvider extends NSObjectProtocol { + + createIssuingCardKeyWithAPIVersionCompletion(apiVersion: string, completion: (p1: NSDictionary, p2: NSError) => void): void; +} +declare var STPIssuingCardEphemeralKeyProvider: { + + prototype: STPIssuingCardEphemeralKeyProvider; +}; + +declare class STPIssuingCardPin extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPIssuingCardPin; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPIssuingCardPin; + + static new(): STPIssuingCardPin; // inherited from NSObject + + readonly error: NSDictionary; + + readonly pin: 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; -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 class STPLegalEntityParams extends STPPersonParams { - static alloc(): STPLegalEntityParams; // inherited from NSObject + static alloc(): STPLegalEntityParams; // inherited from NSObject - static new(): STPLegalEntityParams; // inherited from NSObject + static new(): STPLegalEntityParams; // inherited from NSObject - additionalOwners: NSArray; + additionalOwners: NSArray; - businessName: string; + businessName: string; - businessTaxId: string; + businessTaxId: string; - businessVATId: string; + businessVATId: string; - entityTypeString: string; + entityTypeString: string; - genderString: string; + genderString: string; - personalAddress: STPAddress; + personalAddress: STPAddress; - personalIdNumber: string; + personalIdNumber: string; - phoneNumber: string; + phoneNumber: string; - ssnLast4: string; + ssnLast4: string; - taxIdRegistrar: string; + taxIdRegistrar: string; } declare class STPPaymentActivityIndicatorView extends UIView { - static alloc(): STPPaymentActivityIndicatorView; // inherited from NSObject + static alloc(): STPPaymentActivityIndicatorView; // inherited from NSObject - static appearance(): STPPaymentActivityIndicatorView; // inherited from UIAppearance + static appearance(): STPPaymentActivityIndicatorView; // inherited from UIAppearance - static appearanceForTraitCollection(trait: UITraitCollection): STPPaymentActivityIndicatorView; // inherited from UIAppearance + static appearanceForTraitCollection(trait: UITraitCollection): STPPaymentActivityIndicatorView; // inherited from UIAppearance - static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): STPPaymentActivityIndicatorView; // inherited from UIAppearance + static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): STPPaymentActivityIndicatorView; // inherited from UIAppearance - static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): STPPaymentActivityIndicatorView; // inherited from UIAppearance + static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): STPPaymentActivityIndicatorView; // inherited from UIAppearance - static appearanceWhenContainedIn(ContainerClass: typeof NSObject): STPPaymentActivityIndicatorView; // inherited from UIAppearance + static appearanceWhenContainedIn(ContainerClass: typeof NSObject): STPPaymentActivityIndicatorView; // inherited from UIAppearance - static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): STPPaymentActivityIndicatorView; // inherited from UIAppearance + static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): STPPaymentActivityIndicatorView; // inherited from UIAppearance - static new(): STPPaymentActivityIndicatorView; // inherited from NSObject + static new(): STPPaymentActivityIndicatorView; // inherited from NSObject - animating: boolean; + animating: boolean; - hidesWhenStopped: boolean; + hidesWhenStopped: boolean; - setAnimatingAnimated(animating: boolean, animated: boolean): void; + setAnimatingAnimated(animating: boolean, animated: boolean): void; } declare class STPPaymentCardTextField extends UIControl implements UIKeyInput { - static alloc(): STPPaymentCardTextField; // inherited from NSObject + static alloc(): STPPaymentCardTextField; // inherited from NSObject - static appearance(): STPPaymentCardTextField; // inherited from UIAppearance + static appearance(): STPPaymentCardTextField; // inherited from UIAppearance - static appearanceForTraitCollection(trait: UITraitCollection): STPPaymentCardTextField; // inherited from UIAppearance + static appearanceForTraitCollection(trait: UITraitCollection): STPPaymentCardTextField; // inherited from UIAppearance - static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): STPPaymentCardTextField; // inherited from UIAppearance + static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): STPPaymentCardTextField; // inherited from UIAppearance - static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): STPPaymentCardTextField; // inherited from UIAppearance + static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): STPPaymentCardTextField; // inherited from UIAppearance - static appearanceWhenContainedIn(ContainerClass: typeof NSObject): STPPaymentCardTextField; // inherited from UIAppearance + static appearanceWhenContainedIn(ContainerClass: typeof NSObject): STPPaymentCardTextField; // inherited from UIAppearance - static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): STPPaymentCardTextField; // inherited from UIAppearance + static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): STPPaymentCardTextField; // inherited from UIAppearance - static brandImageForCardBrand(cardBrand: STPCardBrand): UIImage; + static brandImageForCardBrand(cardBrand: STPCardBrand): UIImage; - static cvcImageForCardBrand(cardBrand: STPCardBrand): UIImage; + static cvcImageForCardBrand(cardBrand: STPCardBrand): UIImage; - static errorImageForCardBrand(cardBrand: STPCardBrand): UIImage; + static errorImageForCardBrand(cardBrand: STPCardBrand): UIImage; - static new(): STPPaymentCardTextField; // inherited from NSObject + static new(): STPPaymentCardTextField; // inherited from NSObject - borderColor: UIColor; + borderColor: UIColor; - borderWidth: number; + borderWidth: number; - readonly brandImage: UIImage; + readonly brandImage: UIImage; - readonly cardNumber: string; + readonly cardNumber: string; - cardParams: STPCardParams; + cardParams: STPPaymentMethodCardParams; - cornerRadius: number; + cornerRadius: number; - countryCode: string; + countryCode: string; - cursorColor: UIColor; + cursorColor: UIColor; - readonly cvc: string; + readonly cvc: string; - cvcPlaceholder: string; + cvcPlaceholder: string; - delegate: STPPaymentCardTextFieldDelegate; + delegate: STPPaymentCardTextFieldDelegate; - readonly expirationMonth: number; + readonly expirationMonth: number; - expirationPlaceholder: string; + expirationPlaceholder: string; - readonly expirationYear: number; + readonly expirationYear: number; - font: UIFont; + font: UIFont; - readonly formattedExpirationMonth: string; + readonly formattedExpirationMonth: string; - readonly formattedExpirationYear: string; + readonly formattedExpirationYear: string; - inputAccessoryView: UIView; + inputAccessoryView: UIView; - inputView: UIView; + inputView: UIView; - readonly isValid: boolean; + readonly isValid: boolean; - numberPlaceholder: string; + numberPlaceholder: string; - placeholderColor: UIColor; + placeholderColor: UIColor; - readonly postalCode: string; + readonly postalCode: string; - postalCodeEntryEnabled: boolean; + postalCodeEntryEnabled: boolean; - postalCodePlaceholder: string; + postalCodePlaceholder: string; - textColor: UIColor; + textColor: UIColor; - textErrorColor: UIColor; + textErrorColor: UIColor; - autocapitalizationType: UITextAutocapitalizationType; // inherited from UITextInputTraits + autocapitalizationType: UITextAutocapitalizationType; // inherited from UITextInputTraits - autocorrectionType: UITextAutocorrectionType; // inherited from UITextInputTraits + autocorrectionType: UITextAutocorrectionType; // inherited from UITextInputTraits - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly description: string; // inherited from NSObjectProtocol + readonly description: string; // inherited from NSObjectProtocol - enablesReturnKeyAutomatically: boolean; // inherited from UITextInputTraits + enablesReturnKeyAutomatically: boolean; // inherited from UITextInputTraits - readonly hasText: boolean; // inherited from UIKeyInput + readonly hasText: boolean; // inherited from UIKeyInput - 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 + keyboardAppearance: UIKeyboardAppearance; // inherited from UITextInputTraits - keyboardType: UIKeyboardType; // inherited from UITextInputTraits + keyboardType: UIKeyboardType; // inherited from UITextInputTraits - passwordRules: UITextInputPasswordRules; // inherited from UITextInputTraits + passwordRules: UITextInputPasswordRules; // inherited from UITextInputTraits - returnKeyType: UIReturnKeyType; // inherited from UITextInputTraits + returnKeyType: UIReturnKeyType; // inherited from UITextInputTraits - secureTextEntry: boolean; // inherited from UITextInputTraits + secureTextEntry: boolean; // inherited from UITextInputTraits - smartDashesType: UITextSmartDashesType; // inherited from UITextInputTraits + smartDashesType: UITextSmartDashesType; // inherited from UITextInputTraits - smartInsertDeleteType: UITextSmartInsertDeleteType; // inherited from UITextInputTraits + smartInsertDeleteType: UITextSmartInsertDeleteType; // inherited from UITextInputTraits - smartQuotesType: UITextSmartQuotesType; // inherited from UITextInputTraits + smartQuotesType: UITextSmartQuotesType; // inherited from UITextInputTraits - spellCheckingType: UITextSpellCheckingType; // inherited from UITextInputTraits + spellCheckingType: UITextSpellCheckingType; // inherited from UITextInputTraits - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - textContentType: string; // inherited from UITextInputTraits + textContentType: string; // inherited from UITextInputTraits - readonly // inherited from NSObjectProtocol + readonly // inherited from NSObjectProtocol - brandImageRectForBounds(bounds: CGRect): CGRect; + brandImageRectForBounds(bounds: CGRect): CGRect; - class(): typeof NSObject; + class(): typeof NSObject; - clear(): void; + clear(): void; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - deleteBackward(): void; + deleteBackward(): void; - fieldsRectForBounds(bounds: CGRect): CGRect; + fieldsRectForBounds(bounds: CGRect): CGRect; - insertText(text: string): void; + insertText(text: string): void; - 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 STPPaymentCardTextFieldDelegate extends NSObjectProtocol { - paymentCardTextFieldDidBeginEditing?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldDidBeginEditing?(textField: STPPaymentCardTextField): void; - paymentCardTextFieldDidBeginEditingCVC?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldDidBeginEditingCVC?(textField: STPPaymentCardTextField): void; - paymentCardTextFieldDidBeginEditingExpiration?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldDidBeginEditingExpiration?(textField: STPPaymentCardTextField): void; - paymentCardTextFieldDidBeginEditingNumber?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldDidBeginEditingNumber?(textField: STPPaymentCardTextField): void; - paymentCardTextFieldDidBeginEditingPostalCode?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldDidBeginEditingPostalCode?(textField: STPPaymentCardTextField): void; - paymentCardTextFieldDidChange?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldDidChange?(textField: STPPaymentCardTextField): void; - paymentCardTextFieldDidEndEditing?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldDidEndEditing?(textField: STPPaymentCardTextField): void; - paymentCardTextFieldDidEndEditingCVC?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldDidEndEditingCVC?(textField: STPPaymentCardTextField): void; - paymentCardTextFieldDidEndEditingExpiration?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldDidEndEditingExpiration?(textField: STPPaymentCardTextField): void; - paymentCardTextFieldDidEndEditingNumber?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldDidEndEditingNumber?(textField: STPPaymentCardTextField): void; - paymentCardTextFieldDidEndEditingPostalCode?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldDidEndEditingPostalCode?(textField: STPPaymentCardTextField): void; - paymentCardTextFieldWillEndEditingForReturn?(textField: STPPaymentCardTextField): void; + paymentCardTextFieldWillEndEditingForReturn?(textField: STPPaymentCardTextField): void; } declare var STPPaymentCardTextFieldDelegate: { - prototype: STPPaymentCardTextFieldDelegate; + prototype: STPPaymentCardTextFieldDelegate; }; declare class STPPaymentConfiguration extends NSObject implements NSCopying { - static alloc(): STPPaymentConfiguration; // inherited from NSObject + static alloc(): STPPaymentConfiguration; // inherited from NSObject - static new(): STPPaymentConfiguration; // inherited from NSObject + static new(): STPPaymentConfiguration; // inherited from NSObject - static sharedConfiguration(): STPPaymentConfiguration; + static sharedConfiguration(): STPPaymentConfiguration; - additionalPaymentOptions: STPPaymentOptionType; + additionalPaymentOptions: STPPaymentOptionType; - appleMerchantIdentifier: string; + appleMerchantIdentifier: string; - canDeletePaymentOptions: boolean; + canDeletePaymentOptions: boolean; - companyName: string; + companyName: string; - createCardSources: boolean; + publishableKey: string; - publishableKey: string; + requiredBillingAddressFields: STPBillingAddressFields; - requiredBillingAddressFields: STPBillingAddressFields; + requiredShippingAddressFields: NSSet; - requiredShippingAddressFields: NSSet; + shippingType: STPShippingType; - shippingType: STPShippingType; + stripeAccount: string; - stripeAccount: string; + verifyPrefilledShippingAddress: boolean; - verifyPrefilledShippingAddress: boolean; - - copyWithZone(zone: interop.Pointer | interop.Reference): any; + copyWithZone(zone: interop.Pointer | interop.Reference): any; } -declare class STPPaymentContext extends NSObject { - - static alloc(): STPPaymentContext; // inherited from NSObject - - static new(): STPPaymentContext; // inherited from NSObject - - addCardViewControllerFooterView: UIView; +declare class STPPaymentContext extends NSObject implements STPAuthenticationContext { - readonly apiAdapter: STPBackendAPIAdapter; + static alloc(): STPPaymentContext; // inherited from NSObject - readonly configuration: STPPaymentConfiguration; + static new(): STPPaymentContext; // inherited from NSObject - delegate: STPPaymentContextDelegate; + addCardViewControllerFooterView: UIView; - hostViewController: UIViewController; + readonly apiAdapter: STPBackendAPIAdapter; - largeTitleDisplayMode: UINavigationItemLargeTitleDisplayMode; + readonly configuration: STPPaymentConfiguration; - readonly loading: boolean; + defaultPaymentMethod: string; - modalPresentationStyle: UIModalPresentationStyle; + delegate: STPPaymentContextDelegate; - paymentAmount: number; + hostViewController: UIViewController; - paymentCountry: string; + largeTitleDisplayMode: UINavigationItemLargeTitleDisplayMode; - paymentCurrency: string; + readonly loading: boolean; - readonly paymentOptions: NSArray; + modalPresentationStyle: UIModalPresentationStyle; - paymentOptionsViewControllerFooterView: UIView; + paymentAmount: number; - paymentSummaryItems: NSArray; + paymentCountry: string; - prefilledInformation: STPUserInformation; + paymentCurrency: string; - readonly selectedPaymentOption: STPPaymentOption; + readonly paymentOptions: NSArray; - readonly selectedShippingMethod: PKShippingMethod; + paymentOptionsViewControllerFooterView: UIView; - readonly shippingAddress: STPAddress; + paymentSummaryItems: NSArray; - readonly shippingMethods: NSArray; + prefilledInformation: STPUserInformation; - readonly theme: STPTheme; + readonly selectedPaymentOption: STPPaymentOption; - constructor(o: { APIAdapter: STPBackendAPIAdapter; }); + readonly selectedShippingMethod: PKShippingMethod; - constructor(o: { APIAdapter: STPBackendAPIAdapter; configuration: STPPaymentConfiguration; theme: STPTheme; }); + readonly shippingAddress: STPAddress; - constructor(o: { customerContext: STPCustomerContext; }); + readonly shippingMethods: NSArray; - constructor(o: { customerContext: STPCustomerContext; configuration: STPPaymentConfiguration; theme: STPTheme; }); + readonly theme: STPTheme; - initWithAPIAdapter(apiAdapter: STPBackendAPIAdapter): this; + readonly debugDescription: string; // inherited from NSObjectProtocol - initWithAPIAdapterConfigurationTheme(apiAdapter: STPBackendAPIAdapter, configuration: STPPaymentConfiguration, theme: STPTheme): this; + readonly description: string; // inherited from NSObjectProtocol - initWithCustomerContext(customerContext: STPCustomerContext): this; + readonly hash: number; // inherited from NSObjectProtocol - initWithCustomerContextConfigurationTheme(customerContext: STPCustomerContext, configuration: STPPaymentConfiguration, theme: STPTheme): this; + readonly isProxy: boolean; // inherited from NSObjectProtocol - presentPaymentOptionsViewController(): void; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - presentShippingViewController(): void; + readonly // inherited from NSObjectProtocol - pushPaymentOptionsViewController(): void; + constructor(o: { APIAdapter: STPBackendAPIAdapter; }); - pushShippingViewController(): void; + constructor(o: { APIAdapter: STPBackendAPIAdapter; configuration: STPPaymentConfiguration; theme: STPTheme; }); - requestPayment(): void; + constructor(o: { customerContext: STPCustomerContext; }); - retryLoading(): void; -} - -interface STPPaymentContextDelegate extends NSObjectProtocol { + constructor(o: { customerContext: STPCustomerContext; configuration: STPPaymentConfiguration; theme: STPTheme; }); - paymentContextDidChange(paymentContext: STPPaymentContext): void; + authenticationPresentingViewController(): UIViewController; - paymentContextDidCreatePaymentResultCompletion(paymentContext: STPPaymentContext, paymentResult: STPPaymentResult, completion: (p1: NSError) => void): void; + class(): typeof NSObject; - paymentContextDidFailToLoadWithError(paymentContext: STPPaymentContext, error: NSError): void; + configureSafariViewController(viewController: SFSafariViewController): void; - paymentContextDidFinishWithStatusError(paymentContext: STPPaymentContext, status: STPPaymentStatus, error: NSError): void; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - paymentContextDidUpdateShippingAddressCompletion?(paymentContext: STPPaymentContext, address: STPAddress, completion: (p1: STPShippingStatus, p2: NSError, p3: NSArray, p4: PKShippingMethod) => void): void; -} -declare var STPPaymentContextDelegate: { + initWithAPIAdapter(apiAdapter: STPBackendAPIAdapter): this; - prototype: STPPaymentContextDelegate; -}; + initWithAPIAdapterConfigurationTheme(apiAdapter: STPBackendAPIAdapter, configuration: STPPaymentConfiguration, theme: STPTheme): this; -declare class STPPaymentIntent extends NSObject implements STPAPIResponseDecodable { + initWithCustomerContext(customerContext: STPCustomerContext): this; - static alloc(): STPPaymentIntent; // inherited from NSObject + initWithCustomerContextConfigurationTheme(customerContext: STPCustomerContext, configuration: STPPaymentConfiguration, theme: STPTheme): this; - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentIntent; + isEqual(object: any): boolean; - static new(): STPPaymentIntent; // inherited from NSObject + isKindOfClass(aClass: typeof NSObject): boolean; - readonly amount: number; + isMemberOfClass(aClass: typeof NSObject): boolean; - readonly canceledAt: Date; + performSelector(aSelector: string): any; - readonly captureMethod: STPPaymentIntentCaptureMethod; + performSelectorWithObject(aSelector: string, object: any): any; - readonly clientSecret: string; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - readonly confirmationMethod: STPPaymentIntentConfirmationMethod; + prepareAuthenticationContextForPresentation(completion: () => void): void; - readonly created: Date; + presentPaymentOptionsViewController(): void; - readonly currency: string; + presentShippingViewController(): void; - readonly livemode: boolean; + pushPaymentOptionsViewController(): void; - readonly nextAction: STPPaymentIntentAction; + pushShippingViewController(): void; - readonly nextSourceAction: STPPaymentIntentAction; + requestPayment(): void; - readonly paymentMethodId: string; + respondsToSelector(aSelector: string): boolean; - readonly paymentMethodTypes: NSArray; + retainCount(): number; - readonly receiptEmail: string; + retryLoading(): void; - readonly sourceId: string; + self(): this; +} - readonly status: STPPaymentIntentStatus; +interface STPPaymentContextDelegate extends NSObjectProtocol { - readonly stripeDescription: string; + paymentContextDidChange(paymentContext: STPPaymentContext): void; - readonly stripeId: string; + paymentContextDidCreatePaymentResultCompletion(paymentContext: STPPaymentContext, paymentResult: STPPaymentResult, completion: (p1: NSError) => void): void; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + paymentContextDidFailToLoadWithError(paymentContext: STPPaymentContext, error: NSError): void; - readonly debugDescription: string; // inherited from NSObjectProtocol + paymentContextDidFinishWithStatusError(paymentContext: STPPaymentContext, status: STPPaymentStatus, error: NSError): void; - readonly description: string; // inherited from NSObjectProtocol + paymentContextDidUpdateShippingAddressCompletion?(paymentContext: STPPaymentContext, address: STPAddress, completion: (p1: STPShippingStatus, p2: NSError, p3: NSArray, p4: PKShippingMethod) => void): void; +} +declare var STPPaymentContextDelegate: { - readonly hash: number; // inherited from NSObjectProtocol + prototype: STPPaymentContextDelegate; +}; - readonly isProxy: boolean; // inherited from NSObjectProtocol +declare class STPPaymentHandler extends NSObject { - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + static alloc(): STPPaymentHandler; // inherited from NSObject - readonly // inherited from NSObjectProtocol + static new(): STPPaymentHandler; // inherited from NSObject - class(): typeof NSObject; + static sharedHandler(): STPPaymentHandler; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + apiClient: STPAPIClient; - isEqual(object: any): boolean; + threeDSCustomizationSettings: STPThreeDSCustomizationSettings; - isKindOfClass(aClass: typeof NSObject): boolean; + confirmPaymentWithAuthenticationContextCompletion(paymentParams: STPPaymentIntentParams, authenticationContext: STPAuthenticationContext, completion: (p1: STPPaymentHandlerActionStatus, p2: STPPaymentIntent, p3: NSError) => void): void; - isMemberOfClass(aClass: typeof NSObject): boolean; + confirmSetupIntentWithAuthenticationContextCompletion(setupIntentConfirmParams: STPSetupIntentConfirmParams, authenticationContext: STPAuthenticationContext, completion: (p1: STPPaymentHandlerActionStatus, p2: STPSetupIntent, p3: NSError) => void): void; - performSelector(aSelector: string): any; + handleNextActionForPaymentWithAuthenticationContextReturnURLCompletion(paymentIntentClientSecret: string, authenticationContext: STPAuthenticationContext, returnURL: string, completion: (p1: STPPaymentHandlerActionStatus, p2: STPPaymentIntent, p3: NSError) => void): void; - performSelectorWithObject(aSelector: string, object: any): any; + handleNextActionForSetupIntentWithAuthenticationContextReturnURLCompletion(setupIntentClientSecret: string, authenticationContext: STPAuthenticationContext, returnURL: string, completion: (p1: STPPaymentHandlerActionStatus, p2: STPSetupIntent, p3: NSError) => void): void; +} - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; +declare const enum STPPaymentHandlerActionStatus { - respondsToSelector(aSelector: string): boolean; + Succeeded = 0, - retainCount(): number; + Canceled = 1, - self(): this; + Failed = 2 } -declare class STPPaymentIntentAction extends NSObject implements STPAPIResponseDecodable { +declare const enum STPPaymentHandlerErrorCode { - static alloc(): STPPaymentIntentAction; // inherited from NSObject + UnsupportedAuthenticationErrorCode = 0, - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentIntentAction; + RequiresPaymentMethodErrorCode = 1, - static new(): STPPaymentIntentAction; // inherited from NSObject + IntentStatusErrorCode = 2, - readonly authorizeWithURL: STPPaymentIntentActionRedirectToURL; + TimedOutErrorCode = 3, - readonly redirectToURL: STPPaymentIntentActionRedirectToURL; + Stripe3DS2ErrorCode = 4, - readonly type: STPPaymentIntentActionType; + NotAuthenticatedErrorCode = 5, - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + NoConcurrentActionsErrorCode = 6, - readonly debugDescription: string; // inherited from NSObjectProtocol + RequiresAuthenticationContextErrorCode = 7 +} - readonly description: string; // inherited from NSObjectProtocol +declare var STPPaymentHandlerErrorDomain: string; - readonly hash: number; // inherited from NSObjectProtocol +declare class STPPaymentIntent extends NSObject implements STPAPIResponseDecodable { - readonly isProxy: boolean; // inherited from NSObjectProtocol + static alloc(): STPPaymentIntent; // inherited from NSObject - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentIntent; - readonly // inherited from NSObjectProtocol + static new(): STPPaymentIntent; // inherited from NSObject - class(): typeof NSObject; + readonly amount: number; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + readonly canceledAt: Date; - isEqual(object: any): boolean; + readonly captureMethod: STPPaymentIntentCaptureMethod; - isKindOfClass(aClass: typeof NSObject): boolean; + readonly clientSecret: string; - isMemberOfClass(aClass: typeof NSObject): boolean; + readonly confirmationMethod: STPPaymentIntentConfirmationMethod; - performSelector(aSelector: string): any; + readonly created: Date; - performSelectorWithObject(aSelector: string, object: any): any; + readonly currency: string; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly livemode: boolean; - respondsToSelector(aSelector: string): boolean; + readonly nextAction: STPIntentAction; - retainCount(): number; + readonly nextSourceAction: STPIntentAction; - self(): this; -} + readonly paymentMethodId: string; -declare class STPPaymentIntentActionRedirectToURL extends NSObject implements STPAPIResponseDecodable { + readonly paymentMethodTypes: NSArray; - static alloc(): STPPaymentIntentActionRedirectToURL; // inherited from NSObject + readonly receiptEmail: string; - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentIntentActionRedirectToURL; + readonly setupFutureUsage: STPPaymentIntentSetupFutureUsage; - static new(): STPPaymentIntentActionRedirectToURL; // inherited from NSObject + readonly sourceId: string; - readonly returnURL: NSURL; + readonly status: STPPaymentIntentStatus; - readonly url: NSURL; + readonly stripeDescription: string; - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + readonly stripeId: string; - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - 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; + 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; } declare const enum STPPaymentIntentActionType { - Unknown = 0, + Unknown = 0, - RedirectToURL = 1 + RedirectToURL = 1 } declare const enum STPPaymentIntentCaptureMethod { - Unknown = 0, + Unknown = 0, - Automatic = 1, + Automatic = 1, - Manual = 2 + Manual = 2 } declare const enum STPPaymentIntentConfirmationMethod { - Unknown = 0, + Unknown = 0, - Publishable = 1, + Publishable = 1, - Secret = 2 + Secret = 2 } -declare class STPPaymentIntentParams extends NSObject implements STPFormEncodable { +declare class STPPaymentIntentParams extends NSObject implements NSCopying, STPFormEncodable { + + static alloc(): STPPaymentIntentParams; // inherited from NSObject + + static new(): STPPaymentIntentParams; // inherited from NSObject + + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static alloc(): STPPaymentIntentParams; // inherited from NSObject + static rootObjectName(): string; - static new(): STPPaymentIntentParams; // inherited from NSObject + clientSecret: string; - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + paymentMethodId: string; - static rootObjectName(): string; + paymentMethodParams: STPPaymentMethodParams; - clientSecret: string; + receiptEmail: string; - paymentMethodId: string; + returnURL: string; - paymentMethodParams: STPPaymentMethodParams; + returnUrl: string; - receiptEmail: string; + savePaymentMethod: number; - returnURL: string; + saveSourceToCustomer: number; - returnUrl: string; + setupFutureUsage: number; - savePaymentMethod: number; + sourceId: string; - saveSourceToCustomer: number; + sourceParams: STPSourceParams; - sourceId: string; + readonly stripeId: string; - sourceParams: STPSourceParams; + useStripeSDK: number; - readonly stripeId: 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 + constructor(o: { clientSecret: string; }); - constructor(o: { clientSecret: string; }); + class(): typeof NSObject; - class(): typeof NSObject; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + copyWithZone(zone: interop.Pointer | interop.Reference): any; - initWithClientSecret(clientSecret: string): this; + 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 const enum STPPaymentIntentSetupFutureUsage { + + Unknown = 0, + + None = 1, + + OnSession = 2, + + OffSession = 3 } declare const enum STPPaymentIntentSourceActionType { - Unknown = 0, + Unknown = 0, - AuthorizeWithURL = 1 + AuthorizeWithURL = 1 } declare const enum STPPaymentIntentStatus { - Unknown = 0, + Unknown = 0, - RequiresPaymentMethod = 1, + RequiresPaymentMethod = 1, - RequiresSource = 1, + RequiresSource = 1, - RequiresConfirmation = 2, + RequiresConfirmation = 2, - RequiresAction = 3, + RequiresAction = 3, - RequiresSourceAction = 3, + RequiresSourceAction = 3, - Processing = 4, + Processing = 4, - Succeeded = 5, + Succeeded = 5, - RequiresCapture = 6, + RequiresCapture = 6, - Canceled = 7 + Canceled = 7 } -declare class STPPaymentMethod extends NSObject implements STPAPIResponseDecodable { +declare class STPPaymentMethod extends NSObject implements STPAPIResponseDecodable, STPPaymentOption { + + static alloc(): STPPaymentMethod; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethod; - static alloc(): STPPaymentMethod; // inherited from NSObject + static new(): STPPaymentMethod; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethod; + readonly billingDetails: STPPaymentMethodBillingDetails; - static new(): STPPaymentMethod; // inherited from NSObject + readonly card: STPPaymentMethodCard; - readonly billingDetails: STPPaymentMethodBillingDetails; + readonly cardPresent: STPPaymentMethodCardPresent; - readonly card: STPPaymentMethodCard; + readonly created: Date; - readonly cardPresent: STPPaymentMethodCardPresent; + readonly customerId: string; - readonly created: Date; + readonly iDEAL: STPPaymentMethodiDEAL; - readonly customerId: string; + readonly liveMode: boolean; - readonly iDEAL: STPPaymentMethodiDEAL; + readonly metadata: NSDictionary; - readonly liveMode: boolean; + readonly stripeId: string; - readonly metadata: NSDictionary; + readonly type: STPPaymentMethodType; - readonly stripeId: string; + readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable - readonly type: STPPaymentMethodType; + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly allResponseFields: NSDictionary; // inherited from STPAPIResponseDecodable + 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 image: UIImage; // inherited from STPPaymentOption - readonly hash: number; // inherited from NSObjectProtocol + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly label: string; // inherited from STPPaymentOption - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + 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; } declare class STPPaymentMethodAddress extends NSObject implements STPAPIResponseDecodable, STPFormEncodable { - static alloc(): STPPaymentMethodAddress; // inherited from NSObject + static alloc(): STPPaymentMethodAddress; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodAddress; - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodAddress; + static new(): STPPaymentMethodAddress; // inherited from NSObject - static new(): STPPaymentMethodAddress; // inherited from NSObject + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static rootObjectName(): string; - static rootObjectName(): string; + city: string; - city: string; + country: string; - country: string; + line1: string; - line1: string; + line2: string; - line2: 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: { address: STPAddress; }); - class(): typeof NSObject; + class(): typeof NSObject; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isEqual(object: any): boolean; + initWithAddress(address: STPAddress): this; - 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; } declare class STPPaymentMethodBillingDetails extends NSObject implements STPAPIResponseDecodable, STPFormEncodable { - static alloc(): STPPaymentMethodBillingDetails; // inherited from NSObject + static alloc(): STPPaymentMethodBillingDetails; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodBillingDetails; + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodBillingDetails; - static new(): STPPaymentMethodBillingDetails; // inherited from NSObject + static new(): STPPaymentMethodBillingDetails; // inherited from NSObject - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static rootObjectName(): string; + static rootObjectName(): string; - address: STPPaymentMethodAddress; + address: STPPaymentMethodAddress; - email: string; + email: string; - name: string; + name: string; - phone: string; + phone: 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 - 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 STPPaymentMethodCard extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPPaymentMethodCard; // inherited from NSObject + static alloc(): STPPaymentMethodCard; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCard; - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCard; + static new(): STPPaymentMethodCard; // inherited from NSObject - static new(): STPPaymentMethodCard; // inherited from NSObject + static stringFromBrand(brand: STPCardBrand): string; - readonly brand: STPCardBrand; + readonly brand: STPCardBrand; - readonly checks: STPPaymentMethodCardChecks; + readonly checks: STPPaymentMethodCardChecks; - readonly country: string; + readonly country: string; - readonly expMonth: number; + readonly expMonth: number; - readonly expYear: number; + readonly expYear: number; - readonly fingerprint: string; + readonly fingerprint: string; - readonly funding: string; + readonly funding: string; - readonly last4: string; + readonly last4: string; - readonly threeDSecureUsage: STPPaymentMethodThreeDSecureUsage; + readonly threeDSecureUsage: STPPaymentMethodThreeDSecureUsage; - readonly wallet: STPPaymentMethodCardWallet; + readonly wallet: STPPaymentMethodCardWallet; - 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 STPPaymentMethodCardCheckResult { - Pass = 0, + Pass = 0, - Failed = 1, + Failed = 1, - Unavailable = 2, + Unavailable = 2, - Unchecked = 3, + Unchecked = 3, - Unknown = 4 + Unknown = 4 } declare class STPPaymentMethodCardChecks extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPPaymentMethodCardChecks; // inherited from NSObject + static alloc(): STPPaymentMethodCardChecks; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardChecks; + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardChecks; - static new(): STPPaymentMethodCardChecks; // inherited from NSObject + static new(): STPPaymentMethodCardChecks; // inherited from NSObject - readonly addressLine1Check: STPPaymentMethodCardCheckResult; + readonly addressLine1Check: STPPaymentMethodCardCheckResult; - readonly addressPostalCodeCheck: STPPaymentMethodCardCheckResult; + readonly addressPostalCodeCheck: STPPaymentMethodCardCheckResult; - readonly cvcCheck: STPPaymentMethodCardCheckResult; + readonly cvcCheck: STPPaymentMethodCardCheckResult; - 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 STPPaymentMethodCardParams extends NSObject implements STPFormEncodable { - static alloc(): STPPaymentMethodCardParams; // inherited from NSObject + static alloc(): STPPaymentMethodCardParams; // inherited from NSObject - static new(): STPPaymentMethodCardParams; // inherited from NSObject + static new(): STPPaymentMethodCardParams; // inherited from NSObject - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static rootObjectName(): string; + static rootObjectName(): string; - cvc: string; + cvc: string; - expMonth: number; + expMonth: number; - expYear: number; + expYear: number; - number: string; + number: string; - token: string; + token: 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; + constructor(o: { cardSourceParams: STPCardParams; }); - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + class(): typeof NSObject; - isEqual(object: any): boolean; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - isKindOfClass(aClass: typeof NSObject): boolean; + initWithCardSourceParams(cardSourceParams: STPCardParams): 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; + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } declare class STPPaymentMethodCardPresent extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPPaymentMethodCardPresent; // inherited from NSObject + static alloc(): STPPaymentMethodCardPresent; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardPresent; + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardPresent; - static new(): STPPaymentMethodCardPresent; // inherited from NSObject + static new(): STPPaymentMethodCardPresent; // inherited from NSObject - 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 STPPaymentMethodCardWallet extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPPaymentMethodCardWallet; // inherited from NSObject + static alloc(): STPPaymentMethodCardWallet; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWallet; + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWallet; - static new(): STPPaymentMethodCardWallet; // inherited from NSObject + static new(): STPPaymentMethodCardWallet; // inherited from NSObject - readonly masterpass: STPPaymentMethodCardWalletMasterpass; + readonly masterpass: STPPaymentMethodCardWalletMasterpass; - readonly type: STPPaymentMethodCardWalletType; + readonly type: STPPaymentMethodCardWalletType; - readonly visaCheckout: STPPaymentMethodCardWalletVisaCheckout; + readonly visaCheckout: STPPaymentMethodCardWalletVisaCheckout; - 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 STPPaymentMethodCardWalletMasterpass extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPPaymentMethodCardWalletMasterpass; // inherited from NSObject + static alloc(): STPPaymentMethodCardWalletMasterpass; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWalletMasterpass; + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWalletMasterpass; - static new(): STPPaymentMethodCardWalletMasterpass; // inherited from NSObject + static new(): STPPaymentMethodCardWalletMasterpass; // inherited from NSObject - readonly billingAddress: STPPaymentMethodAddress; + readonly billingAddress: STPPaymentMethodAddress; - readonly email: string; + readonly email: string; - readonly name: string; + readonly name: string; - readonly shippingAddress: STPPaymentMethodAddress; + readonly shippingAddress: STPPaymentMethodAddress; - 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 STPPaymentMethodCardWalletType { - AmexExpressCheckout = 0, + AmexExpressCheckout = 0, - ApplePay = 1, + ApplePay = 1, - GooglePay = 2, + GooglePay = 2, - Masterpass = 3, + Masterpass = 3, - SamsungPay = 4, + SamsungPay = 4, - VisaCheckout = 5, + VisaCheckout = 5, - Unknown = 6 + Unknown = 6 } declare class STPPaymentMethodCardWalletVisaCheckout extends NSObject implements STPAPIResponseDecodable { - static alloc(): STPPaymentMethodCardWalletVisaCheckout; // inherited from NSObject + static alloc(): STPPaymentMethodCardWalletVisaCheckout; // inherited from NSObject - static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWalletVisaCheckout; + static decodedObjectFromAPIResponse(response: NSDictionary): STPPaymentMethodCardWalletVisaCheckout; - static new(): STPPaymentMethodCardWalletVisaCheckout; // inherited from NSObject + static new(): STPPaymentMethodCardWalletVisaCheckout; // inherited from NSObject - readonly billingAddress: STPPaymentMethodAddress; + readonly billingAddress: STPPaymentMethodAddress; - readonly email: string; + readonly email: string; - readonly name: string; + readonly name: string; - readonly shippingAddress: STPPaymentMethodAddress; + readonly shippingAddress: STPPaymentMethodAddress; - 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 STPPaymentMethodParams extends NSObject implements STPFormEncodable { - static alloc(): STPPaymentMethodParams; // inherited from NSObject + static alloc(): STPPaymentMethodParams; // inherited from NSObject - static new(): STPPaymentMethodParams; // inherited from NSObject + static new(): STPPaymentMethodParams; // inherited from NSObject - static paramsWithCardBillingDetailsMetadata(card: STPPaymentMethodCardParams, billingDetails: STPPaymentMethodBillingDetails, metadata: NSDictionary): STPPaymentMethodParams; + static paramsWithCardBillingDetailsMetadata(card: STPPaymentMethodCardParams, billingDetails: STPPaymentMethodBillingDetails, metadata: NSDictionary): STPPaymentMethodParams; - static paramsWithiDEALBillingDetailsMetadata(iDEAL: STPPaymentMethodiDEALParams, billingDetails: STPPaymentMethodBillingDetails, metadata: NSDictionary): STPPaymentMethodParams; + static paramsWithiDEALBillingDetailsMetadata(iDEAL: STPPaymentMethodiDEALParams, billingDetails: STPPaymentMethodBillingDetails, metadata: NSDictionary): STPPaymentMethodParams; - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static rootObjectName(): string; + static rootObjectName(): string; - billingDetails: STPPaymentMethodBillingDetails; + billingDetails: STPPaymentMethodBillingDetails; - card: STPPaymentMethodCardParams; + card: STPPaymentMethodCardParams; - iDEAL: STPPaymentMethodiDEALParams; + iDEAL: STPPaymentMethodiDEALParams; - metadata: NSDictionary; + metadata: NSDictionary; - rawTypeString: string; + rawTypeString: string; - readonly type: STPPaymentMethodType; + readonly type: STPPaymentMethodType; - 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 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, - CardPresent = 2, + CardPresent = 2, - Unknown = 3 + Unknown = 3 } 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; - templateImage: UIImage; + templateImage: UIImage; } declare var STPPaymentOption: { - prototype: STPPaymentOption; + prototype: STPPaymentOption; }; declare const enum STPPaymentOptionType { - None = 0, + None = 0, - ApplePay = 1, + ApplePay = 1, - All = 1 + All = 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; - 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 source: STPSourceProtocol; + readonly paymentMethod: STPPaymentMethod; - constructor(o: { source: STPSourceProtocol; }); + constructor(o: { paymentMethod: STPPaymentMethod; }); - initWithSource(source: STPSourceProtocol): this; + initWithPaymentMethod(paymentMethod: STPPaymentMethod): this; } declare const enum STPPaymentStatus { - Success = 0, + Success = 0, - Error = 1, + Error = 1, - UserCancellation = 2 + UserCancellation = 2 } declare class STPPersonParams extends NSObject implements STPFormEncodable { - static alloc(): STPPersonParams; // inherited from NSObject + static alloc(): STPPersonParams; // inherited from NSObject + + static new(): STPPersonParams; // inherited from NSObject - static new(): STPPersonParams; // inherited from NSObject + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static rootObjectName(): string; - static rootObjectName(): string; + address: STPAddress; - address: STPAddress; + dateOfBirth: NSDateComponents; - dateOfBirth: NSDateComponents; + firstName: string; - firstName: string; + lastName: string; - lastName: string; + maidenName: string; - maidenName: string; + verification: STPVerificationParams; - verification: STPVerificationParams; + 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; + + 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 STPPinManagementService extends NSObject { + + static alloc(): STPPinManagementService; // inherited from NSObject + + static new(): STPPinManagementService; // inherited from NSObject + + 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; +} - isKindOfClass(aClass: typeof NSObject): boolean; +declare const enum STPPinStatus { - isMemberOfClass(aClass: typeof NSObject): boolean; + Success = 0, - performSelector(aSelector: string): any; + ErrorVerificationAlreadyRedeemed = 1, - performSelectorWithObject(aSelector: string, object: any): any; + ErrorVerificationCodeIncorrect = 2, - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + ErrorVerificationExpired = 3, - respondsToSelector(aSelector: string): boolean; + ErrorVerificationTooManyAttempts = 4, - retainCount(): number; + EphemeralKeyError = 5, - self(): this; + UnknownError = 6 } declare var STPProcessingError: string; declare class STPRedirectContext extends NSObject { - static alloc(): STPRedirectContext; // inherited from NSObject + static alloc(): STPRedirectContext; // inherited from NSObject - static new(): STPRedirectContext; // inherited from NSObject + static new(): STPRedirectContext; // inherited from NSObject - readonly state: STPRedirectContextState; + readonly state: STPRedirectContextState; - constructor(o: { paymentIntent: STPPaymentIntent; completion: (p1: string, p2: NSError) => void; }); + constructor(o: { paymentIntent: STPPaymentIntent; completion: (p1: string, p2: NSError) => void; }); - constructor(o: { source: STPSource; completion: (p1: string, p2: string, p3: NSError) => void; }); + constructor(o: { source: STPSource; completion: (p1: string, p2: string, p3: NSError) => void; }); - cancel(): void; + cancel(): void; - initWithPaymentIntentCompletion(paymentIntent: STPPaymentIntent, completion: (p1: string, p2: NSError) => void): this; + initWithPaymentIntentCompletion(paymentIntent: STPPaymentIntent, completion: (p1: string, p2: NSError) => void): this; - initWithSourceCompletion(source: STPSource, completion: (p1: string, p2: string, p3: NSError) => void): this; + initWithSourceCompletion(source: STPSource, completion: (p1: string, p2: string, p3: NSError) => void): this; - startRedirectFlowFromViewController(presentingViewController: UIViewController): void; + startRedirectFlowFromViewController(presentingViewController: UIViewController): void; - startSafariAppRedirectFlow(): void; + startSafariAppRedirectFlow(): void; - startSafariViewControllerRedirectFlowFromViewController(presentingViewController: UIViewController): void; + startSafariViewControllerRedirectFlowFromViewController(presentingViewController: UIViewController): void; } declare const enum STPRedirectContextState { - NotStarted = 0, + NotStarted = 0, + + InProgress = 1, + + Cancelled = 2, + + Completed = 3 +} + +declare class STPSetupIntent extends NSObject implements STPAPIResponseDecodable { + + static alloc(): STPSetupIntent; // inherited from NSObject + + static decodedObjectFromAPIResponse(response: NSDictionary): STPSetupIntent; + + static new(): STPSetupIntent; // inherited from NSObject + + readonly clientSecret: string; + + readonly created: Date; + + readonly customerID: string; + + readonly livemode: boolean; + + readonly metadata: NSDictionary; + + readonly nextAction: STPIntentAction; + + readonly paymentMethodID: string; + + readonly paymentMethodTypes: NSArray; + + readonly status: STPSetupIntentStatus; + + readonly stripeDescription: string; + + readonly stripeID: string; + + readonly usage: STPSetupIntentUsage; + + 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 STPSetupIntentConfirmParams extends NSObject implements NSCopying, STPFormEncodable { + + static alloc(): STPSetupIntentConfirmParams; // inherited from NSObject + + static new(): STPSetupIntentConfirmParams; // inherited from NSObject + + static propertyNamesToFormFieldNamesMapping(): NSDictionary; + + static rootObjectName(): string; + + clientSecret: string; + + paymentMethodID: string; + + paymentMethodParams: STPPaymentMethodParams; + + returnURL: 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; + + 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; - InProgress = 1, + performSelector(aSelector: string): any; - Cancelled = 2, + performSelectorWithObject(aSelector: string, object: any): any; - Completed = 3 + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; +} + +declare const enum STPSetupIntentStatus { + + Unknown = 0, + + RequiresPaymentMethod = 1, + + RequiresConfirmation = 2, + + RequiresAction = 3, + + Processing = 4, + + Succeeded = 5, + + Canceled = 6 +} + +declare const enum STPSetupIntentUsage { + + Unknown = 0, + + None = 1, + + OnSession = 2, + + 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 livemode: boolean; - readonly metadata: NSDictionary; + readonly metadata: NSDictionary; - readonly owner: STPSourceOwner; + readonly owner: STPSourceOwner; - readonly receiver: STPSourceReceiver; + readonly receiver: STPSourceReceiver; - readonly redirect: STPSourceRedirect; + readonly redirect: STPSourceRedirect; - readonly sepaDebitDetails: STPSourceSEPADebitDetails; + readonly sepaDebitDetails: STPSourceSEPADebitDetails; - readonly status: STPSourceStatus; + readonly status: STPSourceStatus; - readonly type: STPSourceType; + readonly type: STPSourceType; - readonly usage: STPSourceUsage; + readonly usage: STPSourceUsage; - readonly verification: STPSourceVerification; + readonly verification: STPSourceVerification; - 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 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 - 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 STPSourceCard3DSecureStatus { - Required = 0, + Required = 0, - Optional = 1, + Optional = 1, - NotSupported = 2, + NotSupported = 2, - Unknown = 3 + Unknown = 3 } 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, + Redirect = 1, - CodeVerification = 2, + CodeVerification = 2, - Receiver = 3, + Receiver = 3, - Unknown = 4 + Unknown = 4 } 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 alipayReusableParamsWithCurrencyReturnURL(currency: string, returnURL: string): STPSourceParams; - static alloc(): STPSourceParams; // inherited from NSObject + static alloc(): STPSourceParams; // inherited from NSObject - static bancontactParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; + static bancontactParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; - static cardParamsWithCard(card: STPCardParams): STPSourceParams; + static cardParamsWithCard(card: STPCardParams): STPSourceParams; - static epsParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; + static epsParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; - static giropayParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; + static giropayParamsWithAmountNameReturnURLStatementDescriptor(amount: number, name: string, returnURL: string, statementDescriptor: string): STPSourceParams; - static idealParamsWithAmountNameReturnURLStatementDescriptorBank(amount: number, name: string, returnURL: string, statementDescriptor: string, bank: string): 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; - 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 + Unknown = 3 } 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, - Unknown = 11 + Unknown = 11 } 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, + Succeeded = 1, - Failed = 2, + Failed = 2, - Unknown = 3 + Unknown = 3 } +declare function STPStringFromCardBrand(brand: STPCardBrand): 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 new(): STPTheme; // inherited from NSObject + + accentColor: UIColor; + + barStyle: UIBarStyle; + + emphasisFont: UIFont; + + errorColor: UIColor; + + font: UIFont; + + readonly largeFont: UIFont; + + primaryBackgroundColor: UIColor; + + primaryForegroundColor: UIColor; + + readonly quaternaryBackgroundColor: UIColor; + + secondaryBackgroundColor: UIColor; + + secondaryForegroundColor: UIColor; + + readonly smallFont: UIFont; + + readonly tertiaryBackgroundColor: UIColor; + + readonly tertiaryForegroundColor: UIColor; + + translucentNavigationBar: boolean; + + copyWithZone(zone: interop.Pointer | interop.Reference): any; +} + +declare class STPThreeDSButtonCustomization extends NSObject { + + static alloc(): STPThreeDSButtonCustomization; // inherited from NSObject + + static defaultSettingsForButtonType(type: STPThreeDSCustomizationButtonType): STPThreeDSButtonCustomization; + + static new(): STPThreeDSButtonCustomization; // inherited from NSObject + + backgroundColor: UIColor; + + cornerRadius: number; + + font: UIFont; + + textColor: UIColor; + + titleStyle: STPThreeDSButtonTitleStyle; + + constructor(o: { backgroundColor: UIColor; cornerRadius: number; }); + + initWithBackgroundColorCornerRadius(backgroundColor: UIColor, cornerRadius: number): this; +} + +declare const enum STPThreeDSButtonTitleStyle { + + Default = 0, + + Uppercase = 1, + + Lowercase = 2, + + SentenceCapitalized = 3 +} + +declare const enum STPThreeDSCustomizationButtonType { + + Submit = 0, + + Continue = 1, + + Next = 2, + + Cancel = 3, + + Resend = 4 +} + +declare class STPThreeDSCustomizationSettings extends NSObject { - static defaultTheme(): STPTheme; + static alloc(): STPThreeDSCustomizationSettings; // inherited from NSObject - static new(): STPTheme; // inherited from NSObject + static defaultSettings(): STPThreeDSCustomizationSettings; - accentColor: UIColor; + static new(): STPThreeDSCustomizationSettings; // inherited from NSObject - barStyle: UIBarStyle; + authenticationTimeout: number; - emphasisFont: UIFont; + uiCustomization: STPThreeDSUICustomization; +} + +declare class STPThreeDSFooterCustomization extends NSObject { + + static alloc(): STPThreeDSFooterCustomization; // inherited from NSObject + + static defaultSettings(): STPThreeDSFooterCustomization; + + static new(): STPThreeDSFooterCustomization; // inherited from NSObject + + backgroundColor: UIColor; + + chevronColor: UIColor; + + font: UIFont; + + headingFont: UIFont; + + headingTextColor: UIColor; + + textColor: UIColor; +} + +declare class STPThreeDSLabelCustomization extends NSObject { + + static alloc(): STPThreeDSLabelCustomization; // inherited from NSObject + + static defaultSettings(): STPThreeDSLabelCustomization; + + static new(): STPThreeDSLabelCustomization; // inherited from NSObject + + font: UIFont; + + headingFont: UIFont; + + headingTextColor: UIColor; + + textColor: UIColor; +} + +declare class STPThreeDSNavigationBarCustomization extends NSObject { + + static alloc(): STPThreeDSNavigationBarCustomization; // inherited from NSObject + + static defaultSettings(): STPThreeDSNavigationBarCustomization; + + static new(): STPThreeDSNavigationBarCustomization; // inherited from NSObject + + barStyle: UIBarStyle; + + barTintColor: UIColor; + + buttonText: string; + + font: UIFont; + + headerText: string; + + textColor: UIColor; + + translucent: boolean; +} + +declare class STPThreeDSSelectionCustomization extends NSObject { + + static alloc(): STPThreeDSSelectionCustomization; // inherited from NSObject + + static defaultSettings(): STPThreeDSSelectionCustomization; + + static new(): STPThreeDSSelectionCustomization; // inherited from NSObject + + primarySelectedColor: UIColor; + + secondarySelectedColor: UIColor; + + unselectedBackgroundColor: UIColor; + + unselectedBorderColor: UIColor; +} + +declare class STPThreeDSTextFieldCustomization extends NSObject { + + static alloc(): STPThreeDSTextFieldCustomization; // inherited from NSObject + + static defaultSettings(): STPThreeDSTextFieldCustomization; + + static new(): STPThreeDSTextFieldCustomization; // inherited from NSObject + + borderColor: UIColor; + + borderWidth: number; - errorColor: UIColor; + cornerRadius: number; - font: UIFont; + font: UIFont; - readonly largeFont: UIFont; + keyboardAppearance: UIKeyboardAppearance; - primaryBackgroundColor: UIColor; + placeholderTextColor: UIColor; - primaryForegroundColor: UIColor; + textColor: UIColor; +} + +declare class STPThreeDSUICustomization extends NSObject { + + static alloc(): STPThreeDSUICustomization; // inherited from NSObject + + static defaultSettings(): STPThreeDSUICustomization; + + static new(): STPThreeDSUICustomization; // inherited from NSObject + + activityIndicatorViewStyle: UIActivityIndicatorViewStyle; + + backgroundColor: UIColor; + + blurStyle: UIBlurEffectStyle; - readonly quaternaryBackgroundColor: UIColor; + footerCustomization: STPThreeDSFooterCustomization; - secondaryBackgroundColor: UIColor; + labelCustomization: STPThreeDSLabelCustomization; - secondaryForegroundColor: UIColor; + navigationBarCustomization: STPThreeDSNavigationBarCustomization; - readonly smallFont: UIFont; + preferredStatusBarStyle: UIStatusBarStyle; - readonly tertiaryBackgroundColor: UIColor; + selectionCustomization: STPThreeDSSelectionCustomization; - readonly tertiaryForegroundColor: UIColor; + textFieldCustomization: STPThreeDSTextFieldCustomization; - translucentNavigationBar: boolean; + buttonCustomizationForButtonType(buttonType: STPThreeDSCustomizationButtonType): STPThreeDSButtonCustomization; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + 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 alloc(): STPUserInformation; // inherited from NSObject - static new(): STPUserInformation; // inherited from NSObject + static new(): STPUserInformation; // inherited from NSObject - billingAddress: STPAddress; + billingAddress: STPAddress; - shippingAddress: STPAddress; + shippingAddress: STPAddress; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + 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 alloc(): STPVerificationParams; // inherited from NSObject - static new(): STPVerificationParams; // inherited from NSObject + static new(): STPVerificationParams; // inherited from NSObject - static propertyNamesToFormFieldNamesMapping(): NSDictionary; + static propertyNamesToFormFieldNamesMapping(): NSDictionary; - static rootObjectName(): string; + static rootObjectName(): string; - document: string; + document: string; - documentBack: string; + documentBack: 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 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; } +declare var Stripe3DS2ProtocolVersion: string; + +declare var Stripe3DS2VersionNumber: number; + +declare var Stripe3DS2VersionString: interop.Reference; + declare var StripeDomain: string; declare var StripeVersionNumber: number; declare var StripeVersionString: interop.Reference; +declare var kSTDSConfigDefaultGroupName: string; + +declare var kSTDSRuntimeErrorCodeEncryptionError: string; + +declare var kSTDSRuntimeErrorCodeParsingError: string; + declare function linkNSErrorCategory(): void; declare function linkSTPAPIClientApplePayCategory(): void;