@daffodil/payment 0.77.0 → 0.79.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/README.md +12 -2
- package/driver/in-memory/backend/payment.service.d.ts +3 -1
- package/driver/in-memory/collection-name.const.d.ts +1 -0
- package/driver/in-memory/driver/payment.service.d.ts +4 -6
- package/driver/interfaces/payment-service.interface.d.ts +1 -5
- package/driver/public_api.d.ts +1 -1
- package/esm2022/driver/in-memory/backend/payment.service.mjs +3 -1
- package/esm2022/driver/in-memory/collection-name.const.mjs +2 -0
- package/esm2022/driver/in-memory/driver/payment-driver.module.mjs +6 -6
- package/esm2022/driver/in-memory/driver/payment.service.mjs +10 -9
- package/esm2022/driver/interfaces/payment-service.interface.mjs +8 -3
- package/esm2022/driver/public_api.mjs +2 -2
- package/esm2022/driver/testing/drivers/payment-driver.module.mjs +3 -6
- package/esm2022/state/injection-tokens/available-processors.token.mjs +5 -11
- package/esm2022/state/injection-tokens/error-matcher.token.mjs +8 -3
- package/esm2022/state/injection-tokens/processor-collection.token.mjs +9 -4
- package/esm2022/state/injection-tokens/public_api.mjs +2 -2
- package/esm2022/state/reducers/token/extra.token.mjs +5 -13
- package/esm2022/state/reducers/token/reducers.token.mjs +9 -3
- package/esm2022/testing/injection-tokens/factories/kind.token.mjs +10 -11
- package/esm2022/testing/injection-tokens/public_api.mjs +2 -2
- package/esm2022/testing/testing.module.mjs +4 -12
- package/fesm2022/daffodil-payment-driver-in-memory.mjs +13 -13
- package/fesm2022/daffodil-payment-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-payment-driver-testing.mjs +2 -5
- package/fesm2022/daffodil-payment-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-payment-driver.mjs +8 -4
- package/fesm2022/daffodil-payment-driver.mjs.map +1 -1
- package/fesm2022/daffodil-payment-state.mjs +28 -27
- package/fesm2022/daffodil-payment-state.mjs.map +1 -1
- package/fesm2022/daffodil-payment-testing.mjs +12 -22
- package/fesm2022/daffodil-payment-testing.mjs.map +1 -1
- package/package.json +1 -1
- package/state/injection-tokens/available-processors.token.d.ts +1 -11
- package/state/injection-tokens/error-matcher.token.d.ts +1 -6
- package/state/injection-tokens/processor-collection.token.d.ts +1 -5
- package/state/injection-tokens/public_api.d.ts +1 -1
- package/state/reducers/token/extra.token.d.ts +1 -20
- package/state/reducers/token/reducers.token.d.ts +1 -8
- package/testing/injection-tokens/factories/kind.token.d.ts +1 -22
- package/testing/injection-tokens/public_api.d.ts +1 -1
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
import { InjectionToken, Provider } from '@angular/core';
|
|
2
1
|
import { ActionReducer } from '@ngrx/store';
|
|
3
2
|
import { DaffPaymentReducersState } from '../reducers.interface';
|
|
4
|
-
|
|
5
|
-
* A token to hold the injectable extra reducers.
|
|
6
|
-
*
|
|
7
|
-
* Prefer using {@link daffPaymentProvideExtraReducers}.
|
|
8
|
-
*/
|
|
9
|
-
export declare const DAFF_PAYMENT_EXTRA_REDUCERS: InjectionToken<ActionReducer<DaffPaymentReducersState, import("@ngrx/store").Action<string>>[]>;
|
|
10
|
-
/**
|
|
11
|
-
* Provides additional reducers that run after the standard Daffodil cart reducers.
|
|
12
|
-
*
|
|
13
|
-
* ```ts
|
|
14
|
-
* providers: [
|
|
15
|
-
* ...daffPaymentProvideExtraReducers(
|
|
16
|
-
* myReducer1,
|
|
17
|
-
* myReducer2
|
|
18
|
-
* )
|
|
19
|
-
* ]
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function daffPaymentProvideExtraReducers(...reducers: ActionReducer<DaffPaymentReducersState>[]): Provider[];
|
|
3
|
+
export declare const DAFF_PAYMENT_EXTRA_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffPaymentReducersState, import("@ngrx/store").Action<string>>[]>, daffPaymentProvideExtraReducers: <R extends ActionReducer<DaffPaymentReducersState, import("@ngrx/store").Action<string>> = ActionReducer<DaffPaymentReducersState, import("@ngrx/store").Action<string>>>(...values: R[]) => Array<import("@angular/core").ValueProvider>;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
1
|
import { ActionReducer } from '@ngrx/store';
|
|
3
2
|
import { DaffPaymentReducersState } from '../reducers.interface';
|
|
4
|
-
|
|
5
|
-
* An internal token to hold the Daffodil payment reducers.
|
|
6
|
-
* Includes the extra and standard reducers.
|
|
7
|
-
*
|
|
8
|
-
* @docs-private
|
|
9
|
-
*/
|
|
10
|
-
export declare const DAFF_PAYMENT_REDUCERS: InjectionToken<ActionReducer<DaffPaymentReducersState, import("@ngrx/store").Action<string>>>;
|
|
3
|
+
export declare const DAFF_PAYMENT_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffPaymentReducersState, import("@ngrx/store").Action<string>>>, provideDaffPaymentReducers: <R extends ActionReducer<DaffPaymentReducersState, import("@ngrx/store").Action<string>> = ActionReducer<DaffPaymentReducersState, import("@ngrx/store").Action<string>>>(value: R) => import("@angular/core").ValueProvider;
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
import { InjectionToken, Provider, Type } from '@angular/core';
|
|
2
1
|
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
2
|
import { DaffPaymentResponse } from '@daffodil/payment';
|
|
4
|
-
|
|
5
|
-
* A multi-provider injection token for providing extra payment result kind factories.
|
|
6
|
-
* These factories correspond to different types of payment results that may be added by other packages.
|
|
7
|
-
* This is useful for backend mocks (such as the testing driver) to generate an accurate representation
|
|
8
|
-
* of the variety of results that an application can receive in production.
|
|
9
|
-
*/
|
|
10
|
-
export declare const DAFF_PAYMENT_RESPONSE_KIND_FACTORIES: InjectionToken<DaffModelFactory<DaffPaymentResponse<unknown>, import("@daffodil/core").Constructable<DaffPaymentResponse<unknown>>>[]>;
|
|
11
|
-
/**
|
|
12
|
-
* Provides extra payment result factory kinds.
|
|
13
|
-
*
|
|
14
|
-
* See {@link DAFF_PAYMENT_RESPONSE_KIND_FACTORIES}.
|
|
15
|
-
*
|
|
16
|
-
* ```ts
|
|
17
|
-
* providers: [
|
|
18
|
-
* ...daffProvidePaymentResponseKindFactories(
|
|
19
|
-
* MyPaymentResponseFactory
|
|
20
|
-
* )
|
|
21
|
-
* ]
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare function daffProvidePaymentResponseKindFactories<T extends DaffPaymentResponse = DaffPaymentResponse>(...factoryTypes: Type<DaffModelFactory<T>>[]): Provider[];
|
|
3
|
+
export declare const DAFF_PAYMENT_RESPONSE_KIND_FACTORIES: import("@angular/core").InjectionToken<DaffModelFactory<DaffPaymentResponse<unknown>, import("@daffodil/core").Constructable<DaffPaymentResponse<unknown>>>[]>, provideDaffPaymentResponseKindFactories: <R extends DaffModelFactory<DaffPaymentResponse<unknown>, import("@daffodil/core").Constructable<DaffPaymentResponse<unknown>>> = DaffModelFactory<DaffPaymentResponse<unknown>, import("@daffodil/core").Constructable<DaffPaymentResponse<unknown>>>>(...classes: import("@angular/core").Type<R>[]) => Array<import("@angular/core").ExistingProvider>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DAFF_PAYMENT_RESPONSE_KIND_FACTORIES,
|
|
1
|
+
export { DAFF_PAYMENT_RESPONSE_KIND_FACTORIES, provideDaffPaymentResponseKindFactories, } from './factories/kind.token';
|