@daffodil/authorizenet 0.87.2 → 0.89.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.
Files changed (113) hide show
  1. package/driver/in-memory/index.d.ts +36 -1
  2. package/driver/index.d.ts +235 -1
  3. package/driver/magento/index.d.ts +44 -1
  4. package/driver/testing/index.d.ts +21 -1
  5. package/fesm2022/daffodil-authorizenet-driver-in-memory.mjs +10 -10
  6. package/fesm2022/daffodil-authorizenet-driver-in-memory.mjs.map +1 -1
  7. package/fesm2022/daffodil-authorizenet-driver-magento.mjs +10 -10
  8. package/fesm2022/daffodil-authorizenet-driver-magento.mjs.map +1 -1
  9. package/fesm2022/daffodil-authorizenet-driver-testing.mjs +7 -7
  10. package/fesm2022/daffodil-authorizenet-driver-testing.mjs.map +1 -1
  11. package/fesm2022/daffodil-authorizenet-driver.mjs.map +1 -1
  12. package/fesm2022/daffodil-authorizenet-state-testing.mjs +7 -7
  13. package/fesm2022/daffodil-authorizenet-state-testing.mjs.map +1 -1
  14. package/fesm2022/daffodil-authorizenet-state.mjs +14 -14
  15. package/fesm2022/daffodil-authorizenet-state.mjs.map +1 -1
  16. package/fesm2022/daffodil-authorizenet-testing.mjs +3 -3
  17. package/fesm2022/daffodil-authorizenet-testing.mjs.map +1 -1
  18. package/fesm2022/daffodil-authorizenet.mjs +4 -5
  19. package/fesm2022/daffodil-authorizenet.mjs.map +1 -1
  20. package/index.d.ts +69 -1
  21. package/package.json +1 -1
  22. package/state/index.d.ts +178 -1
  23. package/state/testing/index.d.ts +23 -1
  24. package/testing/index.d.ts +23 -1
  25. package/constants/kind.d.ts +0 -1
  26. package/constants/public_api.d.ts +0 -1
  27. package/driver/errors/acceptjs_invalid.d.ts +0 -11
  28. package/driver/errors/acceptjs_missing.d.ts +0 -9
  29. package/driver/errors/auth-failed.d.ts +0 -9
  30. package/driver/errors/error-code-map.d.ts +0 -36
  31. package/driver/errors/error-codes.enum.d.ts +0 -22
  32. package/driver/errors/input-missing.d.ts +0 -9
  33. package/driver/errors/insecure-connection.d.ts +0 -9
  34. package/driver/errors/invalid-api-response.d.ts +0 -9
  35. package/driver/errors/invalid-cc-cvv.d.ts +0 -9
  36. package/driver/errors/invalid-cc-exp-month.d.ts +0 -9
  37. package/driver/errors/invalid-cc-exp-year.d.ts +0 -9
  38. package/driver/errors/invalid-cc-name.d.ts +0 -10
  39. package/driver/errors/invalid-cc-number.d.ts +0 -9
  40. package/driver/errors/invalid-client-key.d.ts +0 -11
  41. package/driver/errors/invalid-login-id.d.ts +0 -11
  42. package/driver/errors/invalid-postal-code.d.ts +0 -10
  43. package/driver/errors/past-cc-expiration.d.ts +0 -9
  44. package/driver/errors/public_api.d.ts +0 -18
  45. package/driver/errors/unconfigured.d.ts +0 -9
  46. package/driver/in-memory/backend/authorize-net.service.d.ts +0 -10
  47. package/driver/in-memory/backend/public_api.d.ts +0 -1
  48. package/driver/in-memory/collection-name.const.d.ts +0 -1
  49. package/driver/in-memory/drivers/authorize-net-driver.module.d.ts +0 -9
  50. package/driver/in-memory/drivers/authorize-net-payment-id.d.ts +0 -1
  51. package/driver/in-memory/drivers/authorize-net.service.d.ts +0 -14
  52. package/driver/in-memory/drivers/public_api.d.ts +0 -3
  53. package/driver/in-memory/public_api.d.ts +0 -2
  54. package/driver/interfaces/authorize-net-config.interface.d.ts +0 -9
  55. package/driver/interfaces/authorize-net-payment-id.token.d.ts +0 -1
  56. package/driver/interfaces/authorize-net-service.interface.d.ts +0 -6
  57. package/driver/interfaces/payment-service.interface.d.ts +0 -10
  58. package/driver/interfaces/public_api.d.ts +0 -4
  59. package/driver/magento/authorize-net-payment-id.d.ts +0 -1
  60. package/driver/magento/authorize-net.module.d.ts +0 -10
  61. package/driver/magento/authorize-net.service.d.ts +0 -13
  62. package/driver/magento/models/authorize-net-payment.d.ts +0 -8
  63. package/driver/magento/payment.service.d.ts +0 -12
  64. package/driver/magento/public_api.d.ts +0 -5
  65. package/driver/magento/transformers/authorize-net-transformer.d.ts +0 -5
  66. package/driver/public_api.d.ts +0 -2
  67. package/driver/testing/drivers/authorize-net-driver.module.d.ts +0 -9
  68. package/driver/testing/drivers/authorize-net.service.d.ts +0 -9
  69. package/driver/testing/drivers/public_api.d.ts +0 -2
  70. package/driver/testing/public_api.d.ts +0 -1
  71. package/models/acceptJs/accept.d.ts +0 -4
  72. package/models/public_api.d.ts +0 -7
  73. package/models/request/authorize-net-request.d.ts +0 -13
  74. package/models/request/authorize-net-token-request.d.ts +0 -4
  75. package/models/request/credit-card.d.ts +0 -6
  76. package/models/request.type.d.ts +0 -6
  77. package/models/response/authorize-net-response.d.ts +0 -14
  78. package/models/response.type.d.ts +0 -2
  79. package/public_api.d.ts +0 -3
  80. package/services/accept-js-loading.service.d.ts +0 -12
  81. package/services/accept-js-production.token.d.ts +0 -1
  82. package/services/public_api.d.ts +0 -2
  83. package/state/actions/authorizenet.actions.d.ts +0 -74
  84. package/state/authorize-net-state.module.d.ts +0 -11
  85. package/state/config/default.d.ts +0 -2
  86. package/state/config/public_api.d.ts +0 -3
  87. package/state/config/token.d.ts +0 -2
  88. package/state/config/type.d.ts +0 -12
  89. package/state/effects/authorize-net.effects.d.ts +0 -22
  90. package/state/facades/authorize-net-facade.interface.d.ts +0 -9
  91. package/state/facades/authorize-net.facade.d.ts +0 -17
  92. package/state/injection-tokens/error-matcher.token.d.ts +0 -6
  93. package/state/injection-tokens/public_api.d.ts +0 -1
  94. package/state/payment-state.module.d.ts +0 -7
  95. package/state/public_api.d.ts +0 -9
  96. package/state/reducers/authorize-net/authorize-net-reducer.interface.d.ts +0 -7
  97. package/state/reducers/authorize-net/authorize-net.reducer.d.ts +0 -5
  98. package/state/reducers/authorize-net/initial-state.d.ts +0 -2
  99. package/state/reducers/authorize-net/public_api.d.ts +0 -3
  100. package/state/reducers/authorize-net-reducers.interface.d.ts +0 -8
  101. package/state/reducers/authorize-net.reducers.d.ts +0 -4
  102. package/state/reducers/authorizenet-store-feature-key.d.ts +0 -1
  103. package/state/reducers/public_api.d.ts +0 -5
  104. package/state/reducers/token/extra.token.d.ts +0 -3
  105. package/state/reducers/token/public_api.d.ts +0 -1
  106. package/state/reducers/token/reducers.token.d.ts +0 -3
  107. package/state/selectors/authorize-net.selector.d.ts +0 -12
  108. package/state/testing/authorize-net-testing.module.d.ts +0 -6
  109. package/state/testing/mock-authorize-net-facade.d.ts +0 -14
  110. package/state/testing/public_api.d.ts +0 -2
  111. package/testing/factories/credit-card.factory.d.ts +0 -20
  112. package/testing/factories/public_api.d.ts +0 -1
  113. package/testing/public_api.d.ts +0 -1
package/state/index.d.ts CHANGED
@@ -1 +1,178 @@
1
- export * from './public_api';
1
+ import * as _ngrx_store from '@ngrx/store';
2
+ import { Action, ActionReducer, MemoizedSelector, Store } from '@ngrx/store';
3
+ import { DaffAuthorizeNetTokenRequest, DaffAuthorizenetPaymentRequest } from '@daffodil/authorizenet';
4
+ import { DaffCartAddress } from '@daffodil/cart';
5
+ import { DaffIdentifiable } from '@daffodil/core';
6
+ import { DaffStateError, daffTransformErrorToStateError, DaffStoreFacade } from '@daffodil/core/state';
7
+ import { DaffPersonalAddress } from '@daffodil/geography';
8
+ import * as i1 from '@daffodil/payment/state';
9
+ import { DaffPaymentGenerateToken, DaffPaymentActions } from '@daffodil/payment/state';
10
+ import * as i0 from '@angular/core';
11
+ import { ModuleWithProviders } from '@angular/core';
12
+ import { Observable } from 'rxjs';
13
+ import * as i2 from '@ngrx/effects';
14
+
15
+ declare enum DaffAuthorizeNetActionTypes {
16
+ UpdatePaymentAction = "[@daffodil/authorizenet] Update Payment",
17
+ UpdatePaymentSuccessAction = "[@daffodil/authorizenet] Update Payment Success",
18
+ UpdatePaymentFailureAction = "[@daffodil/authorizenet] Update Payment Failure",
19
+ ApplyPaymentAction = "[@daffodil/authorizenet] Apply Payment",
20
+ LoadAcceptJsAction = "[@daffodil/authorizenet] Load Accept Js",
21
+ LoadAcceptJsSuccessAction = "[@daffodil/authorizenet] Load Accept Js Success",
22
+ LoadAcceptJsFailureAction = "[@daffodil/authorizenet] Load Accept Js Failure"
23
+ }
24
+ /**
25
+ * An action triggered to initialize a generate token request.
26
+ *
27
+ * @param payload - An DaffAuthorizeNetRequestData object.
28
+ */
29
+ declare class DaffAuthorizeNetUpdatePayment<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest, V extends DaffCartAddress = DaffCartAddress> implements Action {
30
+ tokenRequest: T;
31
+ address: Partial<V>;
32
+ readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentAction;
33
+ constructor(tokenRequest: T, address: Partial<V>);
34
+ }
35
+ /**
36
+ * An action triggered upon successfully updating the payment method.
37
+ *
38
+ * @param payload - A string that is the payment nonce for a credit card.
39
+ */
40
+ declare class DaffAuthorizeNetUpdatePaymentSuccess implements Action {
41
+ readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentSuccessAction;
42
+ }
43
+ /**
44
+ * An action triggered upon failing to update the payment method.
45
+ *
46
+ * @param payload - A string that is an error message.
47
+ */
48
+ declare class DaffAuthorizeNetUpdatePaymentFailure implements Action {
49
+ payload: DaffStateError;
50
+ readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentFailureAction;
51
+ constructor(payload: DaffStateError);
52
+ }
53
+ declare class DaffLoadAcceptJs implements Action {
54
+ readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsAction;
55
+ }
56
+ /**
57
+ * Indicates that the AcceptJs library has loaded successfully.
58
+ */
59
+ declare class DaffLoadAcceptJsSuccess implements Action {
60
+ readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsSuccessAction;
61
+ }
62
+ /**
63
+ * Indicates that the AcceptJs library has failed to load
64
+ */
65
+ declare class DaffLoadAcceptJsFailure implements Action {
66
+ payload: DaffStateError;
67
+ readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsFailureAction;
68
+ constructor(payload: DaffStateError);
69
+ }
70
+ /**
71
+ * Triggers the application of an authorize.net payment.
72
+ *
73
+ * @role action
74
+ */
75
+ declare class DaffAuthorizenetApplyPayment implements DaffPaymentGenerateToken<DaffAuthorizenetPaymentRequest> {
76
+ request: DaffAuthorizenetPaymentRequest;
77
+ address?: DaffPersonalAddress | DaffIdentifiable;
78
+ readonly type = DaffAuthorizeNetActionTypes.ApplyPaymentAction;
79
+ constructor(request: DaffAuthorizenetPaymentRequest, address?: DaffPersonalAddress | DaffIdentifiable);
80
+ }
81
+ type DaffAuthorizeNetActions<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> = DaffAuthorizeNetUpdatePayment<T> | DaffAuthorizeNetUpdatePaymentSuccess | DaffAuthorizeNetUpdatePaymentFailure | DaffAuthorizenetApplyPayment | DaffLoadAcceptJsSuccess | DaffLoadAcceptJsFailure | DaffLoadAcceptJs;
82
+
83
+ interface DaffAuthorizeNetReducerState {
84
+ isAcceptLoaded: boolean;
85
+ paymentError: DaffStateError;
86
+ acceptJsLoadError: DaffStateError;
87
+ loading: boolean;
88
+ }
89
+
90
+ declare const DAFF_AUTHORIZENET_STORE_FEATURE_KEY = "daffAuthorizenet";
91
+
92
+ interface DaffAuthorizeNetReducersState {
93
+ authorizeNet: DaffAuthorizeNetReducerState;
94
+ }
95
+ interface DaffAuthorizeNetStateRootSlice {
96
+ [DAFF_AUTHORIZENET_STORE_FEATURE_KEY]: DaffAuthorizeNetReducersState;
97
+ }
98
+
99
+ declare function daffAuthorizeNetReducer<T extends DaffAuthorizeNetTokenRequest>(state: DaffAuthorizeNetReducerState, action: DaffAuthorizeNetActions<T> | DaffPaymentActions): DaffAuthorizeNetReducerState;
100
+
101
+ declare const daffAuthorizeNetReducers: {
102
+ authorizeNet: typeof daffAuthorizeNetReducer;
103
+ };
104
+
105
+ declare const DAFF_AUTHORIZE_NET_EXTRA_REDUCERS: i0.InjectionToken<ActionReducer<DaffAuthorizeNetReducersState, _ngrx_store.Action<string>>[]>;
106
+ declare const daffAuthorizeNetProvideExtraReducers: <R extends ActionReducer<DaffAuthorizeNetReducersState, _ngrx_store.Action<string>> = ActionReducer<DaffAuthorizeNetReducersState, _ngrx_store.Action<string>>>(...values: R[]) => Array<i0.ValueProvider>;
107
+
108
+ declare const daffAuthorizeNetReducerInitialState: DaffAuthorizeNetReducerState;
109
+
110
+ interface DaffAuthorizeNetMemoizedSelectors {
111
+ selectAuthorizeNetFeatureState: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducersState>;
112
+ selectAuthorizeNetState: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducerState>;
113
+ selectLoading: MemoizedSelector<DaffAuthorizeNetStateRootSlice, boolean>;
114
+ selectPaymentError: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffStateError>;
115
+ selectAcceptJsLoadError: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffStateError>;
116
+ selectIsAcceptJsLoaded: MemoizedSelector<DaffAuthorizeNetStateRootSlice, boolean>;
117
+ }
118
+ declare const daffAuthorizeNetSelectors: () => DaffAuthorizeNetMemoizedSelectors;
119
+
120
+ interface DaffAuthorizeNetStateConfig {
121
+ /**
122
+ * How many times Daffodil will retry the Accept.js load.
123
+ * Defaults to 5.
124
+ */
125
+ acceptMaxRetries: number;
126
+ /**
127
+ * The Accept.js loading retry backoff timing in milliseconds.
128
+ * Defaults to 30.
129
+ */
130
+ acceptBackoffTiming: number;
131
+ }
132
+
133
+ declare const daffAuthorizeNetStateDefaultConfig: DaffAuthorizeNetStateConfig;
134
+
135
+ declare const DAFF_AUTHORIZE_NET_STATE_CONFIG: i0.InjectionToken<DaffAuthorizeNetStateConfig>;
136
+ declare const provideDaffAuthorizeNetStateConfig: <R extends DaffAuthorizeNetStateConfig = DaffAuthorizeNetStateConfig>(config: Partial<R> | i0.InjectionToken<Partial<R>>) => i0.FactoryProvider;
137
+
138
+ /**
139
+ * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.
140
+ * Can be used to further refine Daffodil errors into more specific app errors.
141
+ */
142
+ declare const DAFF_AUTHORIZENET_ERROR_MATCHER: i0.InjectionToken<typeof daffTransformErrorToStateError>;
143
+ declare const provideDaffAuthorizenetErrorMatcher: <R extends typeof daffTransformErrorToStateError = typeof daffTransformErrorToStateError>(value: R) => i0.ValueProvider;
144
+
145
+ interface DaffAuthorizeNetFacadeInterface extends DaffStoreFacade<Action> {
146
+ isAcceptJsLoaded$: Observable<boolean>;
147
+ loading$: Observable<boolean>;
148
+ paymentError$: Observable<DaffStateError>;
149
+ acceptJsLoadError$: Observable<DaffStateError>;
150
+ }
151
+
152
+ declare class DaffAuthorizeNetFacade implements DaffAuthorizeNetFacadeInterface {
153
+ private store;
154
+ isAcceptJsLoaded$: Observable<boolean>;
155
+ loading$: Observable<boolean>;
156
+ paymentError$: Observable<DaffStateError>;
157
+ acceptJsLoadError$: Observable<DaffStateError>;
158
+ constructor(store: Store<DaffAuthorizeNetStateRootSlice>);
159
+ dispatch(action: Action): void;
160
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetFacade, never>;
161
+ static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthorizeNetFacade>;
162
+ }
163
+
164
+ declare class DaffAuthorizeNetStateModule {
165
+ static withConfig(config?: Partial<DaffAuthorizeNetStateConfig>): ModuleWithProviders<DaffAuthorizeNetStateModule>;
166
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetStateModule, never>;
167
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthorizeNetStateModule, never, [typeof _ngrx_store.StoreFeatureModule, typeof i2.EffectsFeatureModule], never>;
168
+ static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthorizeNetStateModule>;
169
+ }
170
+
171
+ declare class DaffAuthorizeNetPaymentStateModule {
172
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetPaymentStateModule, never>;
173
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthorizeNetPaymentStateModule, never, [typeof i1.DaffPaymentStateModule], never>;
174
+ static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthorizeNetPaymentStateModule>;
175
+ }
176
+
177
+ export { DAFF_AUTHORIZENET_ERROR_MATCHER, DAFF_AUTHORIZENET_STORE_FEATURE_KEY, DAFF_AUTHORIZE_NET_EXTRA_REDUCERS, DAFF_AUTHORIZE_NET_STATE_CONFIG, DaffAuthorizeNetActionTypes, DaffAuthorizeNetFacade, DaffAuthorizeNetPaymentStateModule, DaffAuthorizeNetStateModule, DaffAuthorizeNetUpdatePayment, DaffAuthorizeNetUpdatePaymentFailure, DaffAuthorizeNetUpdatePaymentSuccess, DaffAuthorizenetApplyPayment, DaffLoadAcceptJs, DaffLoadAcceptJsFailure, DaffLoadAcceptJsSuccess, daffAuthorizeNetProvideExtraReducers, daffAuthorizeNetReducer, daffAuthorizeNetReducerInitialState, daffAuthorizeNetReducers, daffAuthorizeNetSelectors, daffAuthorizeNetStateDefaultConfig, provideDaffAuthorizeNetStateConfig, provideDaffAuthorizenetErrorMatcher };
178
+ export type { DaffAuthorizeNetActions, DaffAuthorizeNetFacadeInterface, DaffAuthorizeNetMemoizedSelectors, DaffAuthorizeNetReducerState, DaffAuthorizeNetReducersState, DaffAuthorizeNetStateConfig, DaffAuthorizeNetStateRootSlice };
@@ -1 +1,23 @@
1
- export * from './public_api';
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
+
7
+ declare class MockDaffAuthorizeNetFacade implements DaffAuthorizeNetFacadeInterface {
8
+ isAcceptJsLoaded$: BehaviorSubject<boolean>;
9
+ loading$: BehaviorSubject<boolean>;
10
+ paymentError$: BehaviorSubject<DaffStateError>;
11
+ acceptJsLoadError$: BehaviorSubject<DaffStateError>;
12
+ dispatch(action: Action): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffAuthorizeNetFacade, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<MockDaffAuthorizeNetFacade>;
15
+ }
16
+
17
+ declare class DaffAuthorizeNetStateTestingModule {
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetStateTestingModule, never>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthorizeNetStateTestingModule, never, never, never>;
20
+ static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthorizeNetStateTestingModule>;
21
+ }
22
+
23
+ export { DaffAuthorizeNetStateTestingModule, MockDaffAuthorizeNetFacade };
@@ -1 +1,23 @@
1
- export * from './public_api';
1
+ import { DaffAuthorizeNetCreditCard } from '@daffodil/authorizenet';
2
+ import { DaffModelFactory } from '@daffodil/core/testing';
3
+ import * as i0 from '@angular/core';
4
+
5
+ /**
6
+ * Mock class for {@link DaffAuthorizeNetCreditCard}.
7
+ */
8
+ declare class MockDaffAuthorizeNetCreditCard implements DaffAuthorizeNetCreditCard {
9
+ cardnumber: string;
10
+ month: string;
11
+ year: string;
12
+ securitycode: string;
13
+ }
14
+ /**
15
+ * Model factory for {@link DaffAuthorizeNetCreditCard}.
16
+ */
17
+ declare class DaffAuthorizeNetCreditCardFactory extends DaffModelFactory<DaffAuthorizeNetCreditCard, typeof MockDaffAuthorizeNetCreditCard> {
18
+ constructor();
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetCreditCardFactory, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthorizeNetCreditCardFactory>;
21
+ }
22
+
23
+ export { DaffAuthorizeNetCreditCardFactory, MockDaffAuthorizeNetCreditCard };
@@ -1 +0,0 @@
1
- export declare const DAFF_AUTHORIZENET_PAYMENT_KIND = "daffAuthorizenet";
@@ -1 +0,0 @@
1
- export { DAFF_AUTHORIZENET_PAYMENT_KIND } from './kind';
@@ -1,11 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when Accept.js has been loaded incorrectly.
4
- * This can be caused by the script being loaded from a local source
5
- * or when the browser or proxy has improperly cached an older version of the script.
6
- */
7
- export declare class DaffAuthorizeNetAcceptjsInvalidError extends DaffInheritableError implements DaffError {
8
- message: string;
9
- readonly code: string;
10
- constructor(message: string);
11
- }
@@ -1,9 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when Accept.js has not been loaded.
4
- */
5
- export declare class DaffAuthorizeNetAcceptjsMissingError extends DaffInheritableError implements DaffError {
6
- message: string;
7
- readonly code: string;
8
- constructor(message: string);
9
- }
@@ -1,9 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when either the API Login ID or Public Client Key values are incorrect.
4
- */
5
- export declare class DaffAuthorizeNetAuthFailedError extends DaffInheritableError implements DaffError {
6
- message: string;
7
- readonly code: string;
8
- constructor(message: string);
9
- }
@@ -1,36 +0,0 @@
1
- import { DaffAuthorizeNetAcceptjsInvalidError } from './acceptjs_invalid';
2
- import { DaffAuthorizeNetAcceptjsMissingError } from './acceptjs_missing';
3
- import { DaffAuthorizeNetAuthFailedError } from './auth-failed';
4
- import { DaffAuthorizeNetInputMissingError } from './input-missing';
5
- import { DaffAuthorizeNetInsecureConnectionError } from './insecure-connection';
6
- import { DaffAuthorizeNetInvalidCCCVVError } from './invalid-cc-cvv';
7
- import { DaffAuthorizeNetInvalidCCExpMonthError } from './invalid-cc-exp-month';
8
- import { DaffAuthorizeNetInvalidCCExpYearError } from './invalid-cc-exp-year';
9
- import { DaffAuthorizeNetInvalidCCNameError } from './invalid-cc-name';
10
- import { DaffAuthorizeNetInvalidCCNumberError } from './invalid-cc-number';
11
- import { DaffAuthorizeNetInvalidClientKeyError } from './invalid-client-key';
12
- import { DaffAuthorizeNetInvalidLoginIdError } from './invalid-login-id';
13
- import { DaffAuthorizeNetInvalidPostalCodeError } from './invalid-postal-code';
14
- import { DaffAuthorizeNetPastCCExpirationError } from './past-cc-expiration';
15
- /**
16
- * A mapping from the Authorize.net platform error codes to Daffodil driver error classes.
17
- */
18
- export declare const DAFF_AUTHORIZE_NET_ERROR_CODE_MAP: {
19
- E_WC_01: typeof DaffAuthorizeNetAcceptjsMissingError;
20
- E_WC_02: typeof DaffAuthorizeNetInsecureConnectionError;
21
- E_WC_03: typeof DaffAuthorizeNetAcceptjsInvalidError;
22
- E_WC_04: typeof DaffAuthorizeNetInputMissingError;
23
- E_WC_05: typeof DaffAuthorizeNetInvalidCCNumberError;
24
- E_WC_06: typeof DaffAuthorizeNetInvalidCCExpMonthError;
25
- E_WC_07: typeof DaffAuthorizeNetInvalidCCExpYearError;
26
- E_WC_08: typeof DaffAuthorizeNetPastCCExpirationError;
27
- E_WC_10: typeof DaffAuthorizeNetInvalidLoginIdError;
28
- E_WC_13: typeof DaffAuthorizeNetAcceptjsInvalidError;
29
- E_WC_15: typeof DaffAuthorizeNetInvalidCCCVVError;
30
- E_WC_16: typeof DaffAuthorizeNetInvalidPostalCodeError;
31
- E_WC_17: typeof DaffAuthorizeNetInvalidCCNameError;
32
- E_WC_18: typeof DaffAuthorizeNetInvalidClientKeyError;
33
- E_WC_19: typeof DaffAuthorizeNetInvalidLoginIdError;
34
- E_WC_21: typeof DaffAuthorizeNetAuthFailedError;
35
- E_WC_23: typeof DaffAuthorizeNetInputMissingError;
36
- };
@@ -1,22 +0,0 @@
1
- /**
2
- * The error codes for Authorize.net driver errors.
3
- * See {@link DaffError} and {@link DaffStateError}.
4
- */
5
- export declare enum DaffAuthorizeNetDriverErrorCodes {
6
- ACCEPTJS_INVALID = "DAFF_AUTHORIZE_NET_ACCEPTJS_INVALID",
7
- ACCEPTJS_MISSING = "DAFF_AUTHORIZE_NET_ACCEPTJS_MISSING",
8
- AUTH_FAILED = "DAFF_AUTHORIZE_NET_AUTH_FAILED",
9
- INPUT_MISSING = "DAFF_AUTHORIZE_NET_INPUT_MISSING",
10
- INSECURE_CONNECTION = "DAFF_AUTHORIZE_NET_INSECURE_CONNECTION",
11
- INVALID_API_RESPONSE = "DAFF_AUTHORIZE_NET_INVALID_API_RESPONSE",
12
- INVALID_CC_CVV = "DAFF_AUTHORIZE_NET_INVALID_CC_CVV",
13
- INVALID_CC_EXP_MONTH = "DAFF_AUTHORIZE_NET_INVALID_CC_EXP_MONTH",
14
- INVALID_CC_EXP_YEAR = "DAFF_AUTHORIZE_NET_INVALID_CC_EXP_YEAR",
15
- INVALID_CC_NAME = "DAFF_AUTHORIZE_NET_INVALID_CC_NAME",
16
- INVALID_CC_NUMBER = "DAFF_AUTHORIZE_NET_INVALID_CC_NUMBER",
17
- INVALID_CLIENT_KEY = "DAFF_AUTHORIZE_NET_INVALID_CLIENT_KEY",
18
- INVALID_LOGIN_ID = "DAFF_AUTHORIZE_NET_INVALID_LOGIN_ID",
19
- INVALID_POSTAL_CODE = "DAFF_AUTHORIZE_NET_INVALID_POSTAL_CODE",
20
- PAST_CC_EXPIRATION = "DAFF_AUTHORIZE_NET_PAST_CC_EXPIRATION",
21
- UNCONFIGURED = "DAFF_AUTHORIZE_NET_UNCONFIGURED"
22
- }
@@ -1,9 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when required information is missing from the request payload.
4
- */
5
- export declare class DaffAuthorizeNetInputMissingError extends DaffInheritableError implements DaffError {
6
- message: string;
7
- readonly code: string;
8
- constructor(message: string);
9
- }
@@ -1,9 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when requests are not made over HTTPS.
4
- */
5
- export declare class DaffAuthorizeNetInsecureConnectionError extends DaffInheritableError implements DaffError {
6
- message: string;
7
- readonly code: string;
8
- constructor(message: string);
9
- }
@@ -1,9 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the platform response is missing key information or malformed in an unrecoverable way.
4
- */
5
- export declare class DaffAuthorizeNetInvalidAPIResponseError extends DaffInheritableError implements DaffError {
6
- message: string;
7
- readonly code: string;
8
- constructor(message: string);
9
- }
@@ -1,9 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the credit card cvv number is invalid.
4
- */
5
- export declare class DaffAuthorizeNetInvalidCCCVVError extends DaffInheritableError implements DaffError {
6
- message: string;
7
- readonly code: string;
8
- constructor(message: string);
9
- }
@@ -1,9 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the credit card expiration month is invalid.
4
- */
5
- export declare class DaffAuthorizeNetInvalidCCExpMonthError extends DaffInheritableError implements DaffError {
6
- message: string;
7
- readonly code: string;
8
- constructor(message: string);
9
- }
@@ -1,9 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the credit card expiration year is invalid.
4
- */
5
- export declare class DaffAuthorizeNetInvalidCCExpYearError extends DaffInheritableError implements DaffError {
6
- message: string;
7
- readonly code: string;
8
- constructor(message: string);
9
- }
@@ -1,10 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the cardholder name is invalid.
4
- * It should be no more than 64 characters in length.
5
- */
6
- export declare class DaffAuthorizeNetInvalidCCNameError extends DaffInheritableError implements DaffError {
7
- message: string;
8
- readonly code: string;
9
- constructor(message: string);
10
- }
@@ -1,9 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the credit card number is invalid.
4
- */
5
- export declare class DaffAuthorizeNetInvalidCCNumberError extends DaffInheritableError implements DaffError {
6
- message: string;
7
- readonly code: string;
8
- constructor(message: string);
9
- }
@@ -1,11 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the `clientKey` value with which the Authorize.net driver has been configured is invalid or missing.
4
- *
5
- * @see {@link DaffAuthorizeNetConfig}
6
- */
7
- export declare class DaffAuthorizeNetInvalidClientKeyError extends DaffInheritableError implements DaffError {
8
- message: string;
9
- readonly code: string;
10
- constructor(message: string);
11
- }
@@ -1,11 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the `apiLoginID` value with which the Authorize.net driver has been configured is invalid or missing.
4
- *
5
- * @see {@link DaffAuthorizeNetConfig}
6
- */
7
- export declare class DaffAuthorizeNetInvalidLoginIdError extends DaffInheritableError implements DaffError {
8
- message: string;
9
- readonly code: string;
10
- constructor(message: string);
11
- }
@@ -1,10 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the postal code is invalid.
4
- * It should be no more than 20 characters in length.
5
- */
6
- export declare class DaffAuthorizeNetInvalidPostalCodeError extends DaffInheritableError implements DaffError {
7
- message: string;
8
- readonly code: string;
9
- constructor(message: string);
10
- }
@@ -1,9 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the credit card expiration date is in the past.
4
- */
5
- export declare class DaffAuthorizeNetPastCCExpirationError extends DaffInheritableError implements DaffError {
6
- message: string;
7
- readonly code: string;
8
- constructor(message: string);
9
- }
@@ -1,18 +0,0 @@
1
- export { DaffAuthorizeNetAcceptjsInvalidError } from './acceptjs_invalid';
2
- export { DaffAuthorizeNetAcceptjsMissingError } from './acceptjs_missing';
3
- export { DaffAuthorizeNetAuthFailedError } from './auth-failed';
4
- export { DaffAuthorizeNetInputMissingError } from './input-missing';
5
- export { DaffAuthorizeNetInsecureConnectionError } from './insecure-connection';
6
- export { DaffAuthorizeNetInvalidAPIResponseError } from './invalid-api-response';
7
- export { DaffAuthorizeNetInvalidCCCVVError } from './invalid-cc-cvv';
8
- export { DaffAuthorizeNetInvalidCCExpMonthError } from './invalid-cc-exp-month';
9
- export { DaffAuthorizeNetInvalidCCExpYearError } from './invalid-cc-exp-year';
10
- export { DaffAuthorizeNetInvalidCCNameError } from './invalid-cc-name';
11
- export { DaffAuthorizeNetInvalidCCNumberError } from './invalid-cc-number';
12
- export { DaffAuthorizeNetInvalidClientKeyError } from './invalid-client-key';
13
- export { DaffAuthorizeNetInvalidLoginIdError } from './invalid-login-id';
14
- export { DaffAuthorizeNetInvalidPostalCodeError } from './invalid-postal-code';
15
- export { DaffAuthorizeNetPastCCExpirationError } from './past-cc-expiration';
16
- export { DAFF_AUTHORIZE_NET_ERROR_CODE_MAP } from './error-code-map';
17
- export { DaffAuthorizeNetDriverErrorCodes } from './error-codes.enum';
18
- export { DaffAuthorizeNetUnconfiguredError } from './unconfigured';
@@ -1,9 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the driver config is missing required information for the driver to function.
4
- */
5
- export declare class DaffAuthorizeNetUnconfiguredError extends DaffInheritableError implements DaffError {
6
- message: string;
7
- readonly code: string;
8
- constructor(message: string);
9
- }
@@ -1,10 +0,0 @@
1
- import { InMemoryDbService } from 'angular-in-memory-web-api';
2
- import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
3
- import * as i0 from "@angular/core";
4
- export declare class DaffInMemoryBackendAuthorizenetService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
5
- readonly collectionName = "authorizenet";
6
- createDb(): any;
7
- get(reqInfo: any): any;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryBackendAuthorizenetService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryBackendAuthorizenetService>;
10
- }
@@ -1 +0,0 @@
1
- export { DaffInMemoryBackendAuthorizenetService } from './authorize-net.service';
@@ -1 +0,0 @@
1
- export declare const DAFF_AUTHORIZE_NET_IN_MEMORY_COLLECTION_NAME = "authorizenet";
@@ -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 DaffAuthorizeNetInMemoryDriverModule {
5
- static forRoot(): ModuleWithProviders<DaffAuthorizeNetInMemoryDriverModule>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetInMemoryDriverModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthorizeNetInMemoryDriverModule, never, [typeof i1.CommonModule], never>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthorizeNetInMemoryDriverModule>;
9
- }
@@ -1 +0,0 @@
1
- export declare const DAFF_IN_MEMORY_AUTHORIZE_NET_PAYMENT_ID = "daff_inmemory";
@@ -1,14 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
3
- import { Observable } from 'rxjs';
4
- import { DaffAuthorizeNetTokenRequest } from '@daffodil/authorizenet';
5
- import { DaffAuthorizeNetService } from '@daffodil/authorizenet/driver';
6
- import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
7
- import * as i0 from "@angular/core";
8
- export declare class DaffInMemoryAuthorizeNetService extends DaffInMemoryDriverBase implements DaffAuthorizeNetService<DaffAuthorizeNetTokenRequest> {
9
- private http;
10
- constructor(http: HttpClient, config: InMemoryBackendConfig);
11
- generateToken(paymentTokenRequest: DaffAuthorizeNetTokenRequest): Observable<any>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryAuthorizeNetService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryAuthorizeNetService>;
14
- }
@@ -1,3 +0,0 @@
1
- export { DaffAuthorizeNetInMemoryDriverModule } from './authorize-net-driver.module';
2
- export { DaffInMemoryAuthorizeNetService } from './authorize-net.service';
3
- export { DAFF_IN_MEMORY_AUTHORIZE_NET_PAYMENT_ID } from './authorize-net-payment-id';
@@ -1,2 +0,0 @@
1
- export * from './drivers/public_api';
2
- export * from './backend/public_api';
@@ -1,9 +0,0 @@
1
- export declare const DaffAuthorizeNetConfigToken: import("@angular/core").InjectionToken<DaffAuthorizeNetConfig>, provideDaffAuthorizeNetConfigToken: <R extends DaffAuthorizeNetConfig = DaffAuthorizeNetConfig>(value: R) => import("@angular/core").ValueProvider;
2
- /**
3
- * An interface for providing @daffodil/authorizenet with needed configurations specific to your authorizenet
4
- * endpoint.
5
- */
6
- export interface DaffAuthorizeNetConfig {
7
- clientKey: string;
8
- apiLoginID: string;
9
- }
@@ -1 +0,0 @@
1
- export declare const DaffAuthorizeNetPaymentId: import("@angular/core").InjectionToken<string>, provideDaffAuthorizeNetPaymentId: <R extends string = string>(value: R) => import("@angular/core").ValueProvider;
@@ -1,6 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffAuthorizeNetTokenRequest } from '@daffodil/authorizenet';
3
- export declare const DaffAuthorizeNetDriver: import("@angular/core").InjectionToken<DaffAuthorizeNetService<DaffAuthorizeNetTokenRequest>>, provideDaffAuthorizeNetDriver: <R extends DaffAuthorizeNetService<DaffAuthorizeNetTokenRequest> = DaffAuthorizeNetService<DaffAuthorizeNetTokenRequest>>(klass: import("@angular/core").Type<R>) => import("@angular/core").ExistingProvider;
4
- export interface DaffAuthorizeNetService<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> {
5
- generateToken(paymentTokenRequest: T): Observable<any>;
6
- }
@@ -1,10 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffAuthorizenetPaymentRequest, DaffAuthorizenetPaymentResponse } from '@daffodil/authorizenet';
3
- import { DaffPaymentDriverInterface } from '@daffodil/payment/driver';
4
- export declare const DaffAuthorizeNetPaymentDriver: import("@angular/core").InjectionToken<DaffAuthorizeNetPaymentDriverInterface<DaffAuthorizenetPaymentResponse>>, provideDaffAuthorizeNetPaymentDriver: <R extends DaffAuthorizeNetPaymentDriverInterface<DaffAuthorizenetPaymentResponse> = DaffAuthorizeNetPaymentDriverInterface<DaffAuthorizenetPaymentResponse>>(klass: import("@angular/core").Type<R>) => import("@angular/core").ExistingProvider;
5
- /**
6
- * @inheritdoc
7
- */
8
- export interface DaffAuthorizeNetPaymentDriverInterface<T extends DaffAuthorizenetPaymentResponse = DaffAuthorizenetPaymentResponse> extends DaffPaymentDriverInterface<T> {
9
- generateToken(request: DaffAuthorizenetPaymentRequest): Observable<T>;
10
- }
@@ -1,4 +0,0 @@
1
- export * from './authorize-net-config.interface';
2
- export * from './authorize-net-service.interface';
3
- export * from './authorize-net-payment-id.token';
4
- export * from './payment-service.interface';
@@ -1 +0,0 @@
1
- export declare const MAGENTO_AUTHORIZE_NET_PAYMENT_ID = "authorizenet_acceptjs";
@@ -1,10 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { DaffAuthorizeNetConfig } from '@daffodil/authorizenet/driver';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common";
5
- export declare class DaffMagentoAuthorizeNetDriverModule {
6
- static forRoot(config: DaffAuthorizeNetConfig): ModuleWithProviders<DaffMagentoAuthorizeNetDriverModule>;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoAuthorizeNetDriverModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffMagentoAuthorizeNetDriverModule, never, [typeof i1.CommonModule], never>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffMagentoAuthorizeNetDriverModule>;
10
- }
@@ -1,13 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffAuthorizeNetTokenRequest, DaffAcceptJsLoadingService } from '@daffodil/authorizenet';
3
- import { DaffAuthorizeNetService, DaffAuthorizeNetConfig } from '@daffodil/authorizenet/driver';
4
- import { MagentoAuthorizeNetPayment } from './models/authorize-net-payment';
5
- import * as i0 from "@angular/core";
6
- export declare class DaffMagentoAuthorizeNetService implements DaffAuthorizeNetService {
7
- config: DaffAuthorizeNetConfig;
8
- private acceptJsLoader;
9
- constructor(config: DaffAuthorizeNetConfig, acceptJsLoader: DaffAcceptJsLoadingService);
10
- generateToken(paymentTokenRequest: DaffAuthorizeNetTokenRequest): Observable<MagentoAuthorizeNetPayment>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoAuthorizeNetService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoAuthorizeNetService>;
13
- }