UNPKG

@nativescript/square-in-app-payments

Version:

Square In-App Payments SDK for NativeScript

58 lines 2.04 kB
import { Observable } from '@nativescript/core'; export var CardBrand; (function (CardBrand) { CardBrand["other"] = "other"; CardBrand["visa"] = "visa"; CardBrand["mastercard"] = "mastercard"; CardBrand["americanExpress"] = "american_express"; CardBrand["discover"] = "discover"; CardBrand["discoverDiners"] = "discover_diners"; CardBrand["jcb"] = "jcb"; CardBrand["chinaUnionPay"] = "china_union_pay"; CardBrand["squareGiftCard"] = "square_gift_card"; })(CardBrand || (CardBrand = {})); export var CardType; (function (CardType) { CardType["credit"] = "credit"; CardType["debit"] = "debit"; CardType["unknown"] = "unknown"; })(CardType || (CardType = {})); export var CardPrepaidType; (function (CardPrepaidType) { CardPrepaidType["unknown"] = "unknown"; CardPrepaidType["notPrepaid"] = "not_prepaid"; CardPrepaidType["prepaid"] = "prepaid"; })(CardPrepaidType || (CardPrepaidType = {})); export class SquareInAppPaymentsCommon extends Observable { /** * The Square application ID for your app. * This is required to use the Square In-App Payments SDK. * * Set this value before calling any other methods in the SDK. */ get squareApplicationID() { console.error('squareApplicationID getter not implemented for this platform'); return null; } set squareApplicationID(appId) { console.error('squareApplicationID setter not implemented for this platform'); } startCardEntry(options) { console.error('startCardEntry method not implemented for this platform'); } dismiss() { console.error('dismiss method not implemented for this platform'); } /** * iOS only */ createTheme(config) { console.error('createTheme method not implemented for this platform'); return; } getRootViewController() { console.error('getRootViewController method not implemented for this platform'); return null; } } //# sourceMappingURL=common.js.map