@daffodil/authorizenet 0.88.1 → 0.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/driver/in-memory/index.d.ts +36 -1
- package/driver/index.d.ts +235 -1
- package/driver/magento/index.d.ts +44 -1
- package/driver/testing/index.d.ts +21 -1
- package/fesm2022/daffodil-authorizenet-driver-in-memory.mjs +10 -10
- package/fesm2022/daffodil-authorizenet-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-driver-magento.mjs +10 -10
- package/fesm2022/daffodil-authorizenet-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-driver-testing.mjs +7 -7
- package/fesm2022/daffodil-authorizenet-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-driver.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-state-testing.mjs +7 -7
- package/fesm2022/daffodil-authorizenet-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-state.mjs +14 -14
- package/fesm2022/daffodil-authorizenet-state.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-testing.mjs +3 -3
- package/fesm2022/daffodil-authorizenet-testing.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet.mjs +4 -5
- package/fesm2022/daffodil-authorizenet.mjs.map +1 -1
- package/index.d.ts +69 -1
- package/package.json +1 -1
- package/state/index.d.ts +178 -1
- package/state/testing/index.d.ts +23 -1
- package/testing/index.d.ts +23 -1
- package/constants/kind.d.ts +0 -1
- package/constants/public_api.d.ts +0 -1
- package/driver/errors/acceptjs_invalid.d.ts +0 -11
- package/driver/errors/acceptjs_missing.d.ts +0 -9
- package/driver/errors/auth-failed.d.ts +0 -9
- package/driver/errors/error-code-map.d.ts +0 -36
- package/driver/errors/error-codes.enum.d.ts +0 -22
- package/driver/errors/input-missing.d.ts +0 -9
- package/driver/errors/insecure-connection.d.ts +0 -9
- package/driver/errors/invalid-api-response.d.ts +0 -9
- package/driver/errors/invalid-cc-cvv.d.ts +0 -9
- package/driver/errors/invalid-cc-exp-month.d.ts +0 -9
- package/driver/errors/invalid-cc-exp-year.d.ts +0 -9
- package/driver/errors/invalid-cc-name.d.ts +0 -10
- package/driver/errors/invalid-cc-number.d.ts +0 -9
- package/driver/errors/invalid-client-key.d.ts +0 -11
- package/driver/errors/invalid-login-id.d.ts +0 -11
- package/driver/errors/invalid-postal-code.d.ts +0 -10
- package/driver/errors/past-cc-expiration.d.ts +0 -9
- package/driver/errors/public_api.d.ts +0 -18
- package/driver/errors/unconfigured.d.ts +0 -9
- package/driver/in-memory/backend/authorize-net.service.d.ts +0 -10
- package/driver/in-memory/backend/public_api.d.ts +0 -1
- package/driver/in-memory/collection-name.const.d.ts +0 -1
- package/driver/in-memory/drivers/authorize-net-driver.module.d.ts +0 -9
- package/driver/in-memory/drivers/authorize-net-payment-id.d.ts +0 -1
- package/driver/in-memory/drivers/authorize-net.service.d.ts +0 -14
- package/driver/in-memory/drivers/public_api.d.ts +0 -3
- package/driver/in-memory/public_api.d.ts +0 -2
- package/driver/interfaces/authorize-net-config.interface.d.ts +0 -9
- package/driver/interfaces/authorize-net-payment-id.token.d.ts +0 -1
- package/driver/interfaces/authorize-net-service.interface.d.ts +0 -6
- package/driver/interfaces/payment-service.interface.d.ts +0 -10
- package/driver/interfaces/public_api.d.ts +0 -4
- package/driver/magento/authorize-net-payment-id.d.ts +0 -1
- package/driver/magento/authorize-net.module.d.ts +0 -10
- package/driver/magento/authorize-net.service.d.ts +0 -13
- package/driver/magento/models/authorize-net-payment.d.ts +0 -8
- package/driver/magento/payment.service.d.ts +0 -12
- package/driver/magento/public_api.d.ts +0 -5
- package/driver/magento/transformers/authorize-net-transformer.d.ts +0 -5
- package/driver/public_api.d.ts +0 -2
- package/driver/testing/drivers/authorize-net-driver.module.d.ts +0 -9
- package/driver/testing/drivers/authorize-net.service.d.ts +0 -9
- package/driver/testing/drivers/public_api.d.ts +0 -2
- package/driver/testing/public_api.d.ts +0 -1
- package/models/acceptJs/accept.d.ts +0 -4
- package/models/public_api.d.ts +0 -7
- package/models/request/authorize-net-request.d.ts +0 -13
- package/models/request/authorize-net-token-request.d.ts +0 -4
- package/models/request/credit-card.d.ts +0 -6
- package/models/request.type.d.ts +0 -6
- package/models/response/authorize-net-response.d.ts +0 -14
- package/models/response.type.d.ts +0 -2
- package/public_api.d.ts +0 -3
- package/services/accept-js-loading.service.d.ts +0 -12
- package/services/accept-js-production.token.d.ts +0 -1
- package/services/public_api.d.ts +0 -2
- package/state/actions/authorizenet.actions.d.ts +0 -74
- package/state/authorize-net-state.module.d.ts +0 -11
- package/state/config/default.d.ts +0 -2
- package/state/config/public_api.d.ts +0 -3
- package/state/config/token.d.ts +0 -2
- package/state/config/type.d.ts +0 -12
- package/state/effects/authorize-net.effects.d.ts +0 -22
- package/state/facades/authorize-net-facade.interface.d.ts +0 -9
- package/state/facades/authorize-net.facade.d.ts +0 -17
- package/state/injection-tokens/error-matcher.token.d.ts +0 -6
- package/state/injection-tokens/public_api.d.ts +0 -1
- package/state/payment-state.module.d.ts +0 -7
- package/state/public_api.d.ts +0 -9
- package/state/reducers/authorize-net/authorize-net-reducer.interface.d.ts +0 -7
- package/state/reducers/authorize-net/authorize-net.reducer.d.ts +0 -5
- package/state/reducers/authorize-net/initial-state.d.ts +0 -2
- package/state/reducers/authorize-net/public_api.d.ts +0 -3
- package/state/reducers/authorize-net-reducers.interface.d.ts +0 -8
- package/state/reducers/authorize-net.reducers.d.ts +0 -4
- package/state/reducers/authorizenet-store-feature-key.d.ts +0 -1
- package/state/reducers/public_api.d.ts +0 -5
- package/state/reducers/token/extra.token.d.ts +0 -3
- package/state/reducers/token/public_api.d.ts +0 -1
- package/state/reducers/token/reducers.token.d.ts +0 -3
- package/state/selectors/authorize-net.selector.d.ts +0 -12
- package/state/testing/authorize-net-testing.module.d.ts +0 -6
- package/state/testing/mock-authorize-net-facade.d.ts +0 -14
- package/state/testing/public_api.d.ts +0 -2
- package/testing/factories/credit-card.factory.d.ts +0 -20
- package/testing/factories/public_api.d.ts +0 -1
- package/testing/public_api.d.ts +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DaffAuthorizenetPaymentRequest, DaffAuthorizenetPaymentResponse } from '@daffodil/authorizenet';
|
|
3
|
-
import { DaffAuthorizeNetPaymentDriverInterface } from '@daffodil/authorizenet/driver';
|
|
4
|
-
import { DaffMagentoAuthorizeNetService } from './authorize-net.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DaffMagentoAuthorizeNetPaymentService implements DaffAuthorizeNetPaymentDriverInterface {
|
|
7
|
-
private authorizenetService;
|
|
8
|
-
constructor(authorizenetService: DaffMagentoAuthorizeNetService);
|
|
9
|
-
generateToken(request: DaffAuthorizenetPaymentRequest): Observable<DaffAuthorizenetPaymentResponse>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoAuthorizeNetPaymentService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoAuthorizeNetPaymentService>;
|
|
12
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { DaffMagentoAuthorizeNetDriverModule } from './authorize-net.module';
|
|
2
|
-
export { MagentoAuthorizeNetPayment } from './models/authorize-net-payment';
|
|
3
|
-
export { MAGENTO_AUTHORIZE_NET_PAYMENT_ID } from './authorize-net-payment-id';
|
|
4
|
-
export { DaffMagentoAuthorizeNetService } from './authorize-net.service';
|
|
5
|
-
export { DaffMagentoAuthorizeNetPaymentService } from './payment.service';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DaffAuthorizeNetTokenRequest, AuthorizeNetResponse, AuthorizeNetRequest } from '@daffodil/authorizenet';
|
|
2
|
-
import { DaffAuthorizeNetConfig } from '@daffodil/authorizenet/driver';
|
|
3
|
-
import { MagentoAuthorizeNetPayment } from '../models/authorize-net-payment';
|
|
4
|
-
export declare function transformMagentoAuthorizeNetRequest(request: DaffAuthorizeNetTokenRequest, config: DaffAuthorizeNetConfig): AuthorizeNetRequest;
|
|
5
|
-
export declare function transformMagentoAuthorizeNetResponse(response: AuthorizeNetResponse, ccNumber: string): MagentoAuthorizeNetPayment;
|
package/driver/public_api.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
export declare class DaffTestingAuthorizeNetDriverModule {
|
|
5
|
-
static forRoot(): ModuleWithProviders<DaffTestingAuthorizeNetDriverModule>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingAuthorizeNetDriverModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffTestingAuthorizeNetDriverModule, never, [typeof i1.CommonModule], never>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffTestingAuthorizeNetDriverModule>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DaffAuthorizeNetTokenRequest } from '@daffodil/authorizenet';
|
|
3
|
-
import { DaffAuthorizeNetService } from '@daffodil/authorizenet/driver';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DaffTestingAuthorizeNetService implements DaffAuthorizeNetService {
|
|
6
|
-
generateToken(tokenRequest: DaffAuthorizeNetTokenRequest): Observable<any>;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingAuthorizeNetService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingAuthorizeNetService>;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './drivers/public_api';
|
package/models/public_api.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { DaffAuthorizeNetCreditCard } from './request/credit-card';
|
|
2
|
-
export { DaffAuthorizeNetTokenRequest } from './request/authorize-net-token-request';
|
|
3
|
-
export * from './request/authorize-net-request';
|
|
4
|
-
export * from './response/authorize-net-response';
|
|
5
|
-
export { AcceptType } from './acceptJs/accept';
|
|
6
|
-
export { DaffAuthorizenetPaymentRequest } from './request.type';
|
|
7
|
-
export { DaffAuthorizenetPaymentResponse } from './response.type';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface AuthorizeNetRequest {
|
|
2
|
-
cardData: AuthorizeNetCreditCard;
|
|
3
|
-
authData: {
|
|
4
|
-
clientKey: string;
|
|
5
|
-
apiLoginID: string;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export interface AuthorizeNetCreditCard {
|
|
9
|
-
cardNumber: string;
|
|
10
|
-
cardCode: string;
|
|
11
|
-
month: string;
|
|
12
|
-
year: string;
|
|
13
|
-
}
|
package/models/request.type.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { DaffPaymentRequest } from '@daffodil/payment';
|
|
2
|
-
import { DaffAuthorizeNetTokenRequest } from './request/authorize-net-token-request';
|
|
3
|
-
import { DAFF_AUTHORIZENET_PAYMENT_KIND } from '../constants/public_api';
|
|
4
|
-
export interface DaffAuthorizenetPaymentRequest extends DaffPaymentRequest<DaffAuthorizeNetTokenRequest> {
|
|
5
|
-
kind: typeof DAFF_AUTHORIZENET_PAYMENT_KIND;
|
|
6
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface AuthorizeNetMessage {
|
|
2
|
-
code: string;
|
|
3
|
-
text: string;
|
|
4
|
-
}
|
|
5
|
-
export interface AuthorizeNetResponse {
|
|
6
|
-
opaqueData: {
|
|
7
|
-
dataDescriptor: string;
|
|
8
|
-
dataValue: string;
|
|
9
|
-
};
|
|
10
|
-
messages: {
|
|
11
|
-
resultCode: string;
|
|
12
|
-
message: AuthorizeNetMessage[];
|
|
13
|
-
};
|
|
14
|
-
}
|
package/public_api.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AcceptType } from '../models/acceptJs/accept';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare let Accept: AcceptType;
|
|
4
|
-
export declare class DaffAcceptJsLoadingService {
|
|
5
|
-
private production;
|
|
6
|
-
private doc;
|
|
7
|
-
constructor(production: boolean, doc: any);
|
|
8
|
-
load(): void;
|
|
9
|
-
getAccept(): AcceptType;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAcceptJsLoadingService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAcceptJsLoadingService>;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION: import("@angular/core").InjectionToken<boolean>, provideDaffAuthorizenetAcceptJsProduction: <R extends boolean = boolean>(value: R) => import("@angular/core").ValueProvider;
|
package/services/public_api.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { DaffAuthorizenetPaymentRequest, DaffAuthorizeNetTokenRequest } from '@daffodil/authorizenet';
|
|
3
|
-
import { DaffCartAddress } from '@daffodil/cart';
|
|
4
|
-
import { DaffIdentifiable } from '@daffodil/core';
|
|
5
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
6
|
-
import { DaffPersonalAddress } from '@daffodil/geography';
|
|
7
|
-
import { DaffPaymentGenerateToken } from '@daffodil/payment/state';
|
|
8
|
-
export declare enum DaffAuthorizeNetActionTypes {
|
|
9
|
-
UpdatePaymentAction = "[@daffodil/authorizenet] Update Payment",
|
|
10
|
-
UpdatePaymentSuccessAction = "[@daffodil/authorizenet] Update Payment Success",
|
|
11
|
-
UpdatePaymentFailureAction = "[@daffodil/authorizenet] Update Payment Failure",
|
|
12
|
-
ApplyPaymentAction = "[@daffodil/authorizenet] Apply Payment",
|
|
13
|
-
LoadAcceptJsAction = "[@daffodil/authorizenet] Load Accept Js",
|
|
14
|
-
LoadAcceptJsSuccessAction = "[@daffodil/authorizenet] Load Accept Js Success",
|
|
15
|
-
LoadAcceptJsFailureAction = "[@daffodil/authorizenet] Load Accept Js Failure"
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* An action triggered to initialize a generate token request.
|
|
19
|
-
*
|
|
20
|
-
* @param payload - An DaffAuthorizeNetRequestData object.
|
|
21
|
-
*/
|
|
22
|
-
export declare class DaffAuthorizeNetUpdatePayment<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest, V extends DaffCartAddress = DaffCartAddress> implements Action {
|
|
23
|
-
tokenRequest: T;
|
|
24
|
-
address: Partial<V>;
|
|
25
|
-
readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentAction;
|
|
26
|
-
constructor(tokenRequest: T, address: Partial<V>);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* An action triggered upon successfully updating the payment method.
|
|
30
|
-
*
|
|
31
|
-
* @param payload - A string that is the payment nonce for a credit card.
|
|
32
|
-
*/
|
|
33
|
-
export declare class DaffAuthorizeNetUpdatePaymentSuccess implements Action {
|
|
34
|
-
readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentSuccessAction;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* An action triggered upon failing to update the payment method.
|
|
38
|
-
*
|
|
39
|
-
* @param payload - A string that is an error message.
|
|
40
|
-
*/
|
|
41
|
-
export declare class DaffAuthorizeNetUpdatePaymentFailure implements Action {
|
|
42
|
-
payload: DaffStateError;
|
|
43
|
-
readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentFailureAction;
|
|
44
|
-
constructor(payload: DaffStateError);
|
|
45
|
-
}
|
|
46
|
-
export declare class DaffLoadAcceptJs implements Action {
|
|
47
|
-
readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsAction;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Indicates that the AcceptJs library has loaded successfully.
|
|
51
|
-
*/
|
|
52
|
-
export declare class DaffLoadAcceptJsSuccess implements Action {
|
|
53
|
-
readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsSuccessAction;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Indicates that the AcceptJs library has failed to load
|
|
57
|
-
*/
|
|
58
|
-
export declare class DaffLoadAcceptJsFailure implements Action {
|
|
59
|
-
payload: DaffStateError;
|
|
60
|
-
readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsFailureAction;
|
|
61
|
-
constructor(payload: DaffStateError);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Triggers the application of an authorize.net payment.
|
|
65
|
-
*
|
|
66
|
-
* @role action
|
|
67
|
-
*/
|
|
68
|
-
export declare class DaffAuthorizenetApplyPayment implements DaffPaymentGenerateToken<DaffAuthorizenetPaymentRequest> {
|
|
69
|
-
request: DaffAuthorizenetPaymentRequest;
|
|
70
|
-
address?: DaffPersonalAddress | DaffIdentifiable;
|
|
71
|
-
readonly type = DaffAuthorizeNetActionTypes.ApplyPaymentAction;
|
|
72
|
-
constructor(request: DaffAuthorizenetPaymentRequest, address?: DaffPersonalAddress | DaffIdentifiable);
|
|
73
|
-
}
|
|
74
|
-
export type DaffAuthorizeNetActions<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> = DaffAuthorizeNetUpdatePayment<T> | DaffAuthorizeNetUpdatePaymentSuccess | DaffAuthorizeNetUpdatePaymentFailure | DaffAuthorizenetApplyPayment | DaffLoadAcceptJsSuccess | DaffLoadAcceptJsFailure | DaffLoadAcceptJs;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { DaffAuthorizeNetStateConfig } from './config/public_api';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@ngrx/store";
|
|
5
|
-
import * as i2 from "@ngrx/effects";
|
|
6
|
-
export declare class DaffAuthorizeNetStateModule {
|
|
7
|
-
static withConfig(config?: Partial<DaffAuthorizeNetStateConfig>): ModuleWithProviders<DaffAuthorizeNetStateModule>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetStateModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthorizeNetStateModule, never, [typeof i1.StoreFeatureModule, typeof i2.EffectsFeatureModule], never>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthorizeNetStateModule>;
|
|
11
|
-
}
|
package/state/config/token.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { DaffAuthorizeNetStateConfig } from './type';
|
|
2
|
-
export declare const DAFF_AUTHORIZE_NET_STATE_CONFIG: import("@angular/core").InjectionToken<DaffAuthorizeNetStateConfig>, provideDaffAuthorizeNetStateConfig: <R extends DaffAuthorizeNetStateConfig = DaffAuthorizeNetStateConfig>(config: Partial<R> | import("@angular/core").InjectionToken<Partial<R>>) => import("@angular/core").FactoryProvider;
|
package/state/config/type.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface DaffAuthorizeNetStateConfig {
|
|
2
|
-
/**
|
|
3
|
-
* How many times Daffodil will retry the Accept.js load.
|
|
4
|
-
* Defaults to 5.
|
|
5
|
-
*/
|
|
6
|
-
acceptMaxRetries: number;
|
|
7
|
-
/**
|
|
8
|
-
* The Accept.js loading retry backoff timing in milliseconds.
|
|
9
|
-
* Defaults to 30.
|
|
10
|
-
*/
|
|
11
|
-
acceptBackoffTiming: number;
|
|
12
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Actions } from '@ngrx/effects';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DaffAcceptJsLoadingService, DaffAuthorizeNetTokenRequest } from '@daffodil/authorizenet';
|
|
4
|
-
import { DaffAuthorizeNetService } from '@daffodil/authorizenet/driver';
|
|
5
|
-
import { ErrorTransformer } from '@daffodil/core/state';
|
|
6
|
-
import { DaffAuthorizeNetStateConfig } from '../config/public_api';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class DaffAuthorizeNetEffects<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> {
|
|
9
|
-
private actions$;
|
|
10
|
-
private driver;
|
|
11
|
-
private authorizeNetPaymentId;
|
|
12
|
-
private errorMatcher;
|
|
13
|
-
private config;
|
|
14
|
-
private acceptJsLoadingService;
|
|
15
|
-
constructor(actions$: Actions, driver: DaffAuthorizeNetService<T>, authorizeNetPaymentId: string, errorMatcher: ErrorTransformer, config: DaffAuthorizeNetStateConfig, acceptJsLoadingService: DaffAcceptJsLoadingService);
|
|
16
|
-
updatePayment$: Observable<any>;
|
|
17
|
-
updatePaymentSuccessSubstream$: Observable<any>;
|
|
18
|
-
updatePaymentFailureSubstream$: Observable<any>;
|
|
19
|
-
loadAcceptJs$: ((maxTries?: any, ms?: any) => Observable<any>) & import("@ngrx/effects").CreateEffectMetadata;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetEffects<any>, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthorizeNetEffects<any>>;
|
|
22
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DaffStateError, DaffStoreFacade } from '@daffodil/core/state';
|
|
4
|
-
export interface DaffAuthorizeNetFacadeInterface extends DaffStoreFacade<Action> {
|
|
5
|
-
isAcceptJsLoaded$: Observable<boolean>;
|
|
6
|
-
loading$: Observable<boolean>;
|
|
7
|
-
paymentError$: Observable<DaffStateError>;
|
|
8
|
-
acceptJsLoadError$: Observable<DaffStateError>;
|
|
9
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Action, Store } from '@ngrx/store';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
4
|
-
import { DaffAuthorizeNetFacadeInterface } from './authorize-net-facade.interface';
|
|
5
|
-
import { DaffAuthorizeNetStateRootSlice } from '../reducers/authorize-net-reducers.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DaffAuthorizeNetFacade implements DaffAuthorizeNetFacadeInterface {
|
|
8
|
-
private store;
|
|
9
|
-
isAcceptJsLoaded$: Observable<boolean>;
|
|
10
|
-
loading$: Observable<boolean>;
|
|
11
|
-
paymentError$: Observable<DaffStateError>;
|
|
12
|
-
acceptJsLoadError$: Observable<DaffStateError>;
|
|
13
|
-
constructor(store: Store<DaffAuthorizeNetStateRootSlice>);
|
|
14
|
-
dispatch(action: Action): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetFacade, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthorizeNetFacade>;
|
|
17
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { daffTransformErrorToStateError } from '@daffodil/core/state';
|
|
2
|
-
/**
|
|
3
|
-
* Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.
|
|
4
|
-
* Can be used to further refine Daffodil errors into more specific app errors.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DAFF_AUTHORIZENET_ERROR_MATCHER: import("@angular/core").InjectionToken<typeof daffTransformErrorToStateError>, provideDaffAuthorizenetErrorMatcher: <R extends typeof daffTransformErrorToStateError = typeof daffTransformErrorToStateError>(value: R) => import("@angular/core").ValueProvider;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './error-matcher.token';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@daffodil/payment/state";
|
|
3
|
-
export declare class DaffAuthorizeNetPaymentStateModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetPaymentStateModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthorizeNetPaymentStateModule, never, [typeof i1.DaffPaymentStateModule], never>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthorizeNetPaymentStateModule>;
|
|
7
|
-
}
|
package/state/public_api.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './actions/authorizenet.actions';
|
|
2
|
-
export * from './selectors/authorize-net.selector';
|
|
3
|
-
export * from './reducers/public_api';
|
|
4
|
-
export * from './config/public_api';
|
|
5
|
-
export * from './injection-tokens/public_api';
|
|
6
|
-
export { DaffAuthorizeNetFacade } from './facades/authorize-net.facade';
|
|
7
|
-
export { DaffAuthorizeNetFacadeInterface } from './facades/authorize-net-facade.interface';
|
|
8
|
-
export { DaffAuthorizeNetStateModule } from './authorize-net-state.module';
|
|
9
|
-
export { DaffAuthorizeNetPaymentStateModule } from './payment-state.module';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DaffAuthorizeNetTokenRequest } from '@daffodil/authorizenet';
|
|
2
|
-
import { DaffPaymentActions } from '@daffodil/payment/state';
|
|
3
|
-
import { DaffAuthorizeNetReducerState } from './authorize-net-reducer.interface';
|
|
4
|
-
import { DaffAuthorizeNetActions } from '../../actions/authorizenet.actions';
|
|
5
|
-
export declare function daffAuthorizeNetReducer<T extends DaffAuthorizeNetTokenRequest>(state: DaffAuthorizeNetReducerState, action: DaffAuthorizeNetActions<T> | DaffPaymentActions): DaffAuthorizeNetReducerState;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DaffAuthorizeNetReducerState } from './authorize-net/authorize-net-reducer.interface';
|
|
2
|
-
import { DAFF_AUTHORIZENET_STORE_FEATURE_KEY } from './authorizenet-store-feature-key';
|
|
3
|
-
export interface DaffAuthorizeNetReducersState {
|
|
4
|
-
authorizeNet: DaffAuthorizeNetReducerState;
|
|
5
|
-
}
|
|
6
|
-
export interface DaffAuthorizeNetStateRootSlice {
|
|
7
|
-
[DAFF_AUTHORIZENET_STORE_FEATURE_KEY]: DaffAuthorizeNetReducersState;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DAFF_AUTHORIZENET_STORE_FEATURE_KEY = "daffAuthorizenet";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { DaffAuthorizeNetReducersState, DaffAuthorizeNetStateRootSlice, } from './authorize-net-reducers.interface';
|
|
2
|
-
export { daffAuthorizeNetReducers } from './authorize-net.reducers';
|
|
3
|
-
export { DAFF_AUTHORIZENET_STORE_FEATURE_KEY } from './authorizenet-store-feature-key';
|
|
4
|
-
export * from './token/public_api';
|
|
5
|
-
export * from './authorize-net/public_api';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ActionReducer } from '@ngrx/store';
|
|
2
|
-
import { DaffAuthorizeNetReducersState } from '../authorize-net-reducers.interface';
|
|
3
|
-
export declare const DAFF_AUTHORIZE_NET_EXTRA_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action<string>>[]>, daffAuthorizeNetProvideExtraReducers: <R extends ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action<string>> = ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action<string>>>(...values: R[]) => Array<import("@angular/core").ValueProvider>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { daffAuthorizeNetProvideExtraReducers, DAFF_AUTHORIZE_NET_EXTRA_REDUCERS, } from './extra.token';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ActionReducer } from '@ngrx/store';
|
|
2
|
-
import { DaffAuthorizeNetReducersState } from '../authorize-net-reducers.interface';
|
|
3
|
-
export declare const DAFF_AUTHORIZE_NET_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action<string>>>, provideDaffAuthorizeNetReducers: <R extends ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action<string>> = ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action<string>>>(value: R) => import("@angular/core").ValueProvider;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MemoizedSelector } from '@ngrx/store';
|
|
2
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
3
|
-
import { DaffAuthorizeNetReducersState, DaffAuthorizeNetReducerState, DaffAuthorizeNetStateRootSlice } from '../reducers/public_api';
|
|
4
|
-
export interface DaffAuthorizeNetMemoizedSelectors {
|
|
5
|
-
selectAuthorizeNetFeatureState: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducersState>;
|
|
6
|
-
selectAuthorizeNetState: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducerState>;
|
|
7
|
-
selectLoading: MemoizedSelector<DaffAuthorizeNetStateRootSlice, boolean>;
|
|
8
|
-
selectPaymentError: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffStateError>;
|
|
9
|
-
selectAcceptJsLoadError: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffStateError>;
|
|
10
|
-
selectIsAcceptJsLoaded: MemoizedSelector<DaffAuthorizeNetStateRootSlice, boolean>;
|
|
11
|
-
}
|
|
12
|
-
export declare const daffAuthorizeNetSelectors: () => DaffAuthorizeNetMemoizedSelectors;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class DaffAuthorizeNetStateTestingModule {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetStateTestingModule, never>;
|
|
4
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthorizeNetStateTestingModule, never, never, never>;
|
|
5
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthorizeNetStateTestingModule>;
|
|
6
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Action } from '@ngrx/store';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { DaffAuthorizeNetFacadeInterface } from '@daffodil/authorizenet/state';
|
|
4
|
-
import { DaffStateError } from '@daffodil/core/state';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MockDaffAuthorizeNetFacade implements DaffAuthorizeNetFacadeInterface {
|
|
7
|
-
isAcceptJsLoaded$: BehaviorSubject<boolean>;
|
|
8
|
-
loading$: BehaviorSubject<boolean>;
|
|
9
|
-
paymentError$: BehaviorSubject<DaffStateError>;
|
|
10
|
-
acceptJsLoadError$: BehaviorSubject<DaffStateError>;
|
|
11
|
-
dispatch(action: Action): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffAuthorizeNetFacade, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MockDaffAuthorizeNetFacade>;
|
|
14
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DaffAuthorizeNetCreditCard } from '@daffodil/authorizenet';
|
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Mock class for {@link DaffAuthorizeNetCreditCard}.
|
|
6
|
-
*/
|
|
7
|
-
export declare class MockDaffAuthorizeNetCreditCard implements DaffAuthorizeNetCreditCard {
|
|
8
|
-
cardnumber: string;
|
|
9
|
-
month: string;
|
|
10
|
-
year: string;
|
|
11
|
-
securitycode: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Model factory for {@link DaffAuthorizeNetCreditCard}.
|
|
15
|
-
*/
|
|
16
|
-
export declare class DaffAuthorizeNetCreditCardFactory extends DaffModelFactory<DaffAuthorizeNetCreditCard, typeof MockDaffAuthorizeNetCreditCard> {
|
|
17
|
-
constructor();
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetCreditCardFactory, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthorizeNetCreditCardFactory>;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './credit-card.factory';
|
package/testing/public_api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './factories/public_api';
|