import { Observable } from "rxjs"; import { DaffAuthorizeNetTokenRequest, DaffAuthorizenetPaymentRequest, DaffAuthorizenetPaymentResponse } from "@daffodil/authorizenet"; import { DaffPaymentDriverInterface } from "@daffodil/payment/driver"; import { DaffError, DaffInheritableError } from "@daffodil/core"; export declare const DaffAuthorizeNetConfigToken: import("@angular/core").InjectionToken, provideDaffAuthorizeNetConfigToken: (value: R) => import("@angular/core").ValueProvider; /** * An interface for providing @daffodil/authorizenet with needed configurations specific to your authorizenet * endpoint. */ export interface DaffAuthorizeNetConfig { clientKey: string; apiLoginID: string; } export declare const DaffAuthorizeNetDriver: import("@angular/core").InjectionToken>, provideDaffAuthorizeNetDriver: = DaffAuthorizeNetService>(klass: import("@angular/core").Type) => import("@angular/core").ExistingProvider; export interface DaffAuthorizeNetService { generateToken(paymentTokenRequest: T): Observable; } export declare const DaffAuthorizeNetPaymentId: import("@angular/core").InjectionToken, provideDaffAuthorizeNetPaymentId: (value: R) => import("@angular/core").ValueProvider; export declare const DaffAuthorizeNetPaymentDriver: import("@angular/core").InjectionToken>, provideDaffAuthorizeNetPaymentDriver: = DaffAuthorizeNetPaymentDriverInterface>(klass: import("@angular/core").Type) => import("@angular/core").ExistingProvider; /** * @inheritdoc */ export interface DaffAuthorizeNetPaymentDriverInterface extends DaffPaymentDriverInterface { generateToken(request: DaffAuthorizenetPaymentRequest): Observable; } /** * An error thrown when Accept.js has been loaded incorrectly. * This can be caused by the script being loaded from a local source * or when the browser or proxy has improperly cached an older version of the script. */ export declare class DaffAuthorizeNetAcceptjsInvalidError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when Accept.js has not been loaded. */ export declare class DaffAuthorizeNetAcceptjsMissingError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when either the API Login ID or Public Client Key values are incorrect. */ export declare class DaffAuthorizeNetAuthFailedError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when required information is missing from the request payload. */ export declare class DaffAuthorizeNetInputMissingError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when requests are not made over HTTPS. */ export declare class DaffAuthorizeNetInsecureConnectionError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when the platform response is missing key information or malformed in an unrecoverable way. */ export declare class DaffAuthorizeNetInvalidAPIResponseError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when the credit card cvv number is invalid. */ export declare class DaffAuthorizeNetInvalidCCCVVError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when the credit card expiration month is invalid. */ export declare class DaffAuthorizeNetInvalidCCExpMonthError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when the credit card expiration year is invalid. */ export declare class DaffAuthorizeNetInvalidCCExpYearError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when the cardholder name is invalid. * It should be no more than 64 characters in length. */ export declare class DaffAuthorizeNetInvalidCCNameError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when the credit card number is invalid. */ export declare class DaffAuthorizeNetInvalidCCNumberError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when the `clientKey` value with which the Authorize.net driver has been configured is invalid or missing. * * @see {@link DaffAuthorizeNetConfig} */ export declare class DaffAuthorizeNetInvalidClientKeyError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when the `apiLoginID` value with which the Authorize.net driver has been configured is invalid or missing. * * @see {@link DaffAuthorizeNetConfig} */ export declare class DaffAuthorizeNetInvalidLoginIdError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when the postal code is invalid. * It should be no more than 20 characters in length. */ export declare class DaffAuthorizeNetInvalidPostalCodeError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * An error thrown when the credit card expiration date is in the past. */ export declare class DaffAuthorizeNetPastCCExpirationError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); } /** * A mapping from the Authorize.net platform error codes to Daffodil driver error classes. */ export declare const DAFF_AUTHORIZE_NET_ERROR_CODE_MAP: { E_WC_01: typeof DaffAuthorizeNetAcceptjsMissingError; E_WC_02: typeof DaffAuthorizeNetInsecureConnectionError; E_WC_03: typeof DaffAuthorizeNetAcceptjsInvalidError; E_WC_04: typeof DaffAuthorizeNetInputMissingError; E_WC_05: typeof DaffAuthorizeNetInvalidCCNumberError; E_WC_06: typeof DaffAuthorizeNetInvalidCCExpMonthError; E_WC_07: typeof DaffAuthorizeNetInvalidCCExpYearError; E_WC_08: typeof DaffAuthorizeNetPastCCExpirationError; E_WC_10: typeof DaffAuthorizeNetInvalidLoginIdError; E_WC_13: typeof DaffAuthorizeNetAcceptjsInvalidError; E_WC_15: typeof DaffAuthorizeNetInvalidCCCVVError; E_WC_16: typeof DaffAuthorizeNetInvalidPostalCodeError; E_WC_17: typeof DaffAuthorizeNetInvalidCCNameError; E_WC_18: typeof DaffAuthorizeNetInvalidClientKeyError; E_WC_19: typeof DaffAuthorizeNetInvalidLoginIdError; E_WC_21: typeof DaffAuthorizeNetAuthFailedError; E_WC_23: typeof DaffAuthorizeNetInputMissingError; }; /** * The error codes for Authorize.net driver errors. * See {@link DaffError} and {@link DaffStateError}. */ export declare enum DaffAuthorizeNetDriverErrorCodes { ACCEPTJS_INVALID = "DAFF_AUTHORIZE_NET_ACCEPTJS_INVALID", ACCEPTJS_MISSING = "DAFF_AUTHORIZE_NET_ACCEPTJS_MISSING", AUTH_FAILED = "DAFF_AUTHORIZE_NET_AUTH_FAILED", INPUT_MISSING = "DAFF_AUTHORIZE_NET_INPUT_MISSING", INSECURE_CONNECTION = "DAFF_AUTHORIZE_NET_INSECURE_CONNECTION", INVALID_API_RESPONSE = "DAFF_AUTHORIZE_NET_INVALID_API_RESPONSE", INVALID_CC_CVV = "DAFF_AUTHORIZE_NET_INVALID_CC_CVV", INVALID_CC_EXP_MONTH = "DAFF_AUTHORIZE_NET_INVALID_CC_EXP_MONTH", INVALID_CC_EXP_YEAR = "DAFF_AUTHORIZE_NET_INVALID_CC_EXP_YEAR", INVALID_CC_NAME = "DAFF_AUTHORIZE_NET_INVALID_CC_NAME", INVALID_CC_NUMBER = "DAFF_AUTHORIZE_NET_INVALID_CC_NUMBER", INVALID_CLIENT_KEY = "DAFF_AUTHORIZE_NET_INVALID_CLIENT_KEY", INVALID_LOGIN_ID = "DAFF_AUTHORIZE_NET_INVALID_LOGIN_ID", INVALID_POSTAL_CODE = "DAFF_AUTHORIZE_NET_INVALID_POSTAL_CODE", PAST_CC_EXPIRATION = "DAFF_AUTHORIZE_NET_PAST_CC_EXPIRATION", UNCONFIGURED = "DAFF_AUTHORIZE_NET_UNCONFIGURED" } /** * An error thrown when the driver config is missing required information for the driver to function. */ export declare class DaffAuthorizeNetUnconfiguredError extends DaffInheritableError implements DaffError { message: string; readonly code: string; constructor(message: string); }