@daffodil/payment 0.66.1 → 0.67.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 (101) hide show
  1. package/{esm2020 → esm2022}/driver/in-memory/backend/payment.service.mjs +5 -5
  2. package/{esm2020 → esm2022}/driver/in-memory/driver/payment-driver.module.mjs +7 -7
  3. package/{esm2020 → esm2022}/driver/in-memory/driver/payment.service.mjs +5 -5
  4. package/{esm2020 → esm2022}/driver/testing/drivers/payment-driver.module.mjs +5 -5
  5. package/{esm2020 → esm2022}/driver/testing/drivers/payment.service.mjs +5 -5
  6. package/{esm2020 → esm2022}/state/facades/payment/facade.mjs +5 -5
  7. package/{esm2020 → esm2022}/state/payment.module.mjs +5 -5
  8. package/{esm2020 → esm2022}/state/testing/mock-payment-facade.mjs +4 -4
  9. package/{esm2020 → esm2022}/state/testing/payment-testing.module.mjs +7 -7
  10. package/{esm2020 → esm2022}/testing/factories/kind.factory.mjs +6 -6
  11. package/{esm2020 → esm2022}/testing/factories/payment-request.factory.mjs +5 -5
  12. package/{esm2020 → esm2022}/testing/factories/payment-response.factory.mjs +5 -5
  13. package/esm2022/testing/testing.module.mjs +31 -0
  14. package/{fesm2020 → fesm2022}/daffodil-payment-driver-in-memory.mjs +14 -14
  15. package/{fesm2020 → fesm2022}/daffodil-payment-driver-in-memory.mjs.map +1 -1
  16. package/{fesm2020 → fesm2022}/daffodil-payment-driver-testing.mjs +8 -8
  17. package/{fesm2020 → fesm2022}/daffodil-payment-driver-testing.mjs.map +1 -1
  18. package/{fesm2020 → fesm2022}/daffodil-payment-state-testing.mjs +9 -9
  19. package/{fesm2020 → fesm2022}/daffodil-payment-state-testing.mjs.map +1 -1
  20. package/{fesm2020 → fesm2022}/daffodil-payment-state.mjs +8 -8
  21. package/{fesm2020 → fesm2022}/daffodil-payment-state.mjs.map +1 -1
  22. package/{fesm2020 → fesm2022}/daffodil-payment-testing.mjs +23 -23
  23. package/{fesm2020 → fesm2022}/daffodil-payment-testing.mjs.map +1 -1
  24. package/package.json +1 -1
  25. package/state/actions/payment.actions.d.ts +1 -1
  26. package/state/models/processor-collection.type.d.ts +1 -1
  27. package/esm2020/testing/testing.module.mjs +0 -31
  28. package/fesm2015/daffodil-payment-driver-in-memory.mjs +0 -119
  29. package/fesm2015/daffodil-payment-driver-in-memory.mjs.map +0 -1
  30. package/fesm2015/daffodil-payment-driver-testing.mjs +0 -64
  31. package/fesm2015/daffodil-payment-driver-testing.mjs.map +0 -1
  32. package/fesm2015/daffodil-payment-driver.mjs.map +0 -1
  33. package/fesm2015/daffodil-payment-state-testing.mjs +0 -50
  34. package/fesm2015/daffodil-payment-state-testing.mjs.map +0 -1
  35. package/fesm2015/daffodil-payment-state.mjs +0 -243
  36. package/fesm2015/daffodil-payment-state.mjs.map +0 -1
  37. package/fesm2015/daffodil-payment-testing.mjs +0 -152
  38. package/fesm2015/daffodil-payment-testing.mjs.map +0 -1
  39. package/fesm2020/daffodil-payment-driver.mjs +0 -33
  40. package/fesm2020/daffodil-payment.mjs +0 -4
  41. package/fesm2020/daffodil-payment.mjs.map +0 -1
  42. /package/{esm2020 → esm2022}/daffodil-payment.mjs +0 -0
  43. /package/{esm2020 → esm2022}/driver/daffodil-payment-driver.mjs +0 -0
  44. /package/{esm2020 → esm2022}/driver/errors/invalid-api-response.mjs +0 -0
  45. /package/{esm2020 → esm2022}/driver/errors/map.mjs +0 -0
  46. /package/{esm2020 → esm2022}/driver/errors/public_api.mjs +0 -0
  47. /package/{esm2020 → esm2022}/driver/in-memory/daffodil-payment-driver-in-memory.mjs +0 -0
  48. /package/{esm2020 → esm2022}/driver/in-memory/index.mjs +0 -0
  49. /package/{esm2020 → esm2022}/driver/in-memory/public_api.mjs +0 -0
  50. /package/{esm2020 → esm2022}/driver/index.mjs +0 -0
  51. /package/{esm2020 → esm2022}/driver/interfaces/payment-service.interface.mjs +0 -0
  52. /package/{esm2020 → esm2022}/driver/public_api.mjs +0 -0
  53. /package/{esm2020 → esm2022}/driver/testing/daffodil-payment-driver-testing.mjs +0 -0
  54. /package/{esm2020 → esm2022}/driver/testing/drivers/public_api.mjs +0 -0
  55. /package/{esm2020 → esm2022}/driver/testing/index.mjs +0 -0
  56. /package/{esm2020 → esm2022}/driver/testing/public_api.mjs +0 -0
  57. /package/{esm2020 → esm2022}/index.mjs +0 -0
  58. /package/{esm2020 → esm2022}/models/public_api.mjs +0 -0
  59. /package/{esm2020 → esm2022}/models/request.type.mjs +0 -0
  60. /package/{esm2020 → esm2022}/models/response.type.mjs +0 -0
  61. /package/{esm2020 → esm2022}/public_api.mjs +0 -0
  62. /package/{esm2020 → esm2022}/state/actions/payment.actions.mjs +0 -0
  63. /package/{esm2020 → esm2022}/state/daffodil-payment-state.mjs +0 -0
  64. /package/{esm2020 → esm2022}/state/facades/payment/interface.mjs +0 -0
  65. /package/{esm2020 → esm2022}/state/facades/public_api.mjs +0 -0
  66. /package/{esm2020 → esm2022}/state/index.mjs +0 -0
  67. /package/{esm2020 → esm2022}/state/injection-tokens/available-processors.token.mjs +0 -0
  68. /package/{esm2020 → esm2022}/state/injection-tokens/error-matcher.token.mjs +0 -0
  69. /package/{esm2020 → esm2022}/state/injection-tokens/processor-collection.token.mjs +0 -0
  70. /package/{esm2020 → esm2022}/state/injection-tokens/public_api.mjs +0 -0
  71. /package/{esm2020 → esm2022}/state/models/available-processor.type.mjs +0 -0
  72. /package/{esm2020 → esm2022}/state/models/processor-collection.type.mjs +0 -0
  73. /package/{esm2020 → esm2022}/state/models/public_api.mjs +0 -0
  74. /package/{esm2020 → esm2022}/state/public_api.mjs +0 -0
  75. /package/{esm2020 → esm2022}/state/reducers/payment/adapter.mjs +0 -0
  76. /package/{esm2020 → esm2022}/state/reducers/payment/initial-state.mjs +0 -0
  77. /package/{esm2020 → esm2022}/state/reducers/payment/interface.mjs +0 -0
  78. /package/{esm2020 → esm2022}/state/reducers/payment/public_api.mjs +0 -0
  79. /package/{esm2020 → esm2022}/state/reducers/payment/reducer.mjs +0 -0
  80. /package/{esm2020 → esm2022}/state/reducers/public_api.mjs +0 -0
  81. /package/{esm2020 → esm2022}/state/reducers/reducers.interface.mjs +0 -0
  82. /package/{esm2020 → esm2022}/state/reducers/store-feature-key.mjs +0 -0
  83. /package/{esm2020 → esm2022}/state/reducers/token/extra.token.mjs +0 -0
  84. /package/{esm2020 → esm2022}/state/reducers/token/public_api.mjs +0 -0
  85. /package/{esm2020 → esm2022}/state/reducers/token/reducers.token.mjs +0 -0
  86. /package/{esm2020 → esm2022}/state/selectors/feature.selector.mjs +0 -0
  87. /package/{esm2020 → esm2022}/state/selectors/payment.selector.mjs +0 -0
  88. /package/{esm2020 → esm2022}/state/selectors/public_api.mjs +0 -0
  89. /package/{esm2020 → esm2022}/state/testing/daffodil-payment-state-testing.mjs +0 -0
  90. /package/{esm2020 → esm2022}/state/testing/index.mjs +0 -0
  91. /package/{esm2020 → esm2022}/state/testing/public_api.mjs +0 -0
  92. /package/{esm2020 → esm2022}/testing/daffodil-payment-testing.mjs +0 -0
  93. /package/{esm2020 → esm2022}/testing/factories/public_api.mjs +0 -0
  94. /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
  95. /package/{esm2020 → esm2022}/testing/injection-tokens/factories/kind.token.mjs +0 -0
  96. /package/{esm2020 → esm2022}/testing/injection-tokens/public_api.mjs +0 -0
  97. /package/{esm2020 → esm2022}/testing/public_api.mjs +0 -0
  98. /package/{fesm2015 → fesm2022}/daffodil-payment-driver.mjs +0 -0
  99. /package/{fesm2020 → fesm2022}/daffodil-payment-driver.mjs.map +0 -0
  100. /package/{fesm2015 → fesm2022}/daffodil-payment.mjs +0 -0
  101. /package/{fesm2015 → fesm2022}/daffodil-payment.mjs.map +0 -0
@@ -15,10 +15,10 @@ class MockDaffPaymentPageFacade {
15
15
  }
16
16
  dispatch(action) { }
17
17
  ;
18
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MockDaffPaymentPageFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
19
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MockDaffPaymentPageFacade, providedIn: 'root' }); }
18
20
  }
19
- /** @nocollapse */ MockDaffPaymentPageFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffPaymentPageFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
20
- /** @nocollapse */ MockDaffPaymentPageFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffPaymentPageFacade, providedIn: 'root' });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffPaymentPageFacade, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: MockDaffPaymentPageFacade, decorators: [{
22
22
  type: Injectable,
23
23
  args: [{ providedIn: 'root' }]
24
24
  }] });
@@ -27,13 +27,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
27
27
  * Provides the {@link MockDaffPaymentPageFacade} for {@link DaffPaymentPageFacade}.
28
28
  */
29
29
  class DaffPaymentStateTestingModule {
30
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentStateTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
31
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentStateTestingModule }); }
32
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentStateTestingModule, providers: [
33
+ { provide: DaffPaymentPageFacade, useExisting: MockDaffPaymentPageFacade },
34
+ ] }); }
30
35
  }
31
- /** @nocollapse */ DaffPaymentStateTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentStateTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
32
- /** @nocollapse */ DaffPaymentStateTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentStateTestingModule });
33
- /** @nocollapse */ DaffPaymentStateTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentStateTestingModule, providers: [
34
- { provide: DaffPaymentPageFacade, useExisting: MockDaffPaymentPageFacade },
35
- ] });
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentStateTestingModule, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentStateTestingModule, decorators: [{
37
37
  type: NgModule,
38
38
  args: [{
39
39
  providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-payment-state-testing.mjs","sources":["../../../libs/payment/state/testing/src/mock-payment-facade.ts","../../../libs/payment/state/testing/src/payment-testing.module.ts","../../../libs/payment/state/testing/src/daffodil-payment-state-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffPaymentPageFacadeInterface } from '@daffodil/payment/state';\n\n/**\n * Mocks out facade fields and methods for testing purposes.\n *\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffPaymentPageFacade implements DaffPaymentPageFacadeInterface {\n loading$ = new BehaviorSubject<boolean>(null);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n\n dispatch(action: Action) {};\n}\n","import { NgModule } from '@angular/core';\n\nimport { DaffPaymentPageFacade } from '@daffodil/payment/state';\n\nimport { MockDaffPaymentPageFacade } from './mock-payment-facade';\n\n/**\n * Provides the {@link MockDaffPaymentPageFacade} for {@link DaffPaymentPageFacade}.\n */\n@NgModule({\n providers: [\n { provide: DaffPaymentPageFacade, useExisting: MockDaffPaymentPageFacade },\n ],\n})\nexport class DaffPaymentStateTestingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAOA;;;;AAIG;MAEU,yBAAyB,CAAA;AADtC,IAAA,WAAA,GAAA;AAEE,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,eAAe,CAAU,IAAI,CAAC,CAAC;AAC9C,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,eAAe,CAAmB,EAAE,CAAC,CAAC;AAGrD,KAAA;IADC,QAAQ,CAAC,MAAc,EAAA,GAAI;;;yIAJhB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAzB,mBAAA,yBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,cADZ,MAAM,EAAA,CAAA,CAAA;2FACnB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;ACNlC;;AAEG;MAMU,6BAA6B,CAAA;;6IAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;8IAA7B,6BAA6B,EAAA,CAAA,CAAA;AAA7B,mBAAA,6BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,EAJ7B,SAAA,EAAA;AACT,QAAA,EAAE,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,yBAAyB,EAAE;AAC3E,KAAA,EAAA,CAAA,CAAA;2FAEU,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBALzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;AACT,wBAAA,EAAE,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,yBAAyB,EAAE;AAC3E,qBAAA;AACF,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-payment-state-testing.mjs","sources":["../../../libs/payment/state/testing/src/mock-payment-facade.ts","../../../libs/payment/state/testing/src/payment-testing.module.ts","../../../libs/payment/state/testing/src/daffodil-payment-state-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffPaymentPageFacadeInterface } from '@daffodil/payment/state';\n\n/**\n * Mocks out facade fields and methods for testing purposes.\n *\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffPaymentPageFacade implements DaffPaymentPageFacadeInterface {\n loading$ = new BehaviorSubject<boolean>(null);\n errors$ = new BehaviorSubject<DaffStateError[]>([]);\n\n dispatch(action: Action) {};\n}\n","import { NgModule } from '@angular/core';\n\nimport { DaffPaymentPageFacade } from '@daffodil/payment/state';\n\nimport { MockDaffPaymentPageFacade } from './mock-payment-facade';\n\n/**\n * Provides the {@link MockDaffPaymentPageFacade} for {@link DaffPaymentPageFacade}.\n */\n@NgModule({\n providers: [\n { provide: DaffPaymentPageFacade, useExisting: MockDaffPa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;AAC3E,SAAA,EAAA,CAAA,CAAA,EAAA;;2FAEU,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBALzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;AACT,wBAAA,EAAE,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,yBAAyB,EAAE;AAC3E,qBAAA;AACF,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
@@ -169,15 +169,15 @@ class DaffPaymentPageFacade {
169
169
  dispatch(action) {
170
170
  this.store.dispatch(action);
171
171
  }
172
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentPageFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
173
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentPageFacade, providedIn: 'root' }); }
172
174
  }
173
- /** @nocollapse */ DaffPaymentPageFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentPageFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
174
- /** @nocollapse */ DaffPaymentPageFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentPageFacade, providedIn: 'root' });
175
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentPageFacade, decorators: [{
175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentPageFacade, decorators: [{
176
176
  type: Injectable,
177
177
  args: [{
178
178
  providedIn: 'root',
179
179
  }]
180
- }], ctorParameters: function () { return [{ type: i1.Store }]; } });
180
+ }], ctorParameters: () => [{ type: i1.Store }] });
181
181
 
182
182
  /**
183
183
  * A multi-provider injection token for registering payment processors.
@@ -233,11 +233,11 @@ const DAFF_PAYMENT_REDUCERS = new InjectionToken('DAFF_PAYMENT_REDUCERS', {
233
233
  * Creates the payment feature store.
234
234
  */
235
235
  class DaffPaymentStateModule {
236
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
237
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentStateModule, imports: [i1.StoreFeatureModule] }); }
238
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentStateModule, imports: [StoreModule.forFeature(DAFF_PAYMENT_STORE_FEATURE_KEY, DAFF_PAYMENT_REDUCERS)] }); }
236
239
  }
237
- /** @nocollapse */ DaffPaymentStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
238
- /** @nocollapse */ DaffPaymentStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentStateModule, imports: [i1.StoreFeatureModule] });
239
- /** @nocollapse */ DaffPaymentStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentStateModule, imports: [StoreModule.forFeature(DAFF_PAYMENT_STORE_FEATURE_KEY, DAFF_PAYMENT_REDUCERS)] });
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentStateModule, decorators: [{
240
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentStateModule, decorators: [{
241
241
  type: NgModule,
242
242
  args: [{
243
243
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-payment-state.mjs","sources":["../../../libs/payment/state/src/actions/payment.actions.ts","../../../libs/payment/state/src/reducers/store-feature-key.ts","../../../libs/payment/state/src/reducers/token/extra.token.ts","../../../libs/payment/state/src/reducers/payment/adapter.ts","../../../libs/payment/state/src/reducers/payment/initial-state.ts","../../../libs/payment/state/src/reducers/payment/reducer.ts","../../../libs/payment/state/src/selectors/feature.selector.ts","../../../libs/payment/state/src/selectors/payment.selector.ts","../../../libs/payment/state/src/facades/payment/facade.ts","../../../libs/payment/state/src/injection-tokens/available-processors.token.ts","../../../libs/payment/state/src/injection-tokens/processor-collection.token.ts","../../../libs/payment/state/src/injection-tokens/error-matcher.token.ts","../../../libs/payment/state/src/reducers/token/reducers.token.ts","../../../libs/payment/state/src/payment.module.ts","../../../libs/payment/state/src/daffodil-payment-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport { DaffIdentifiable } from '@daffodil/core';\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffPersonalAddress } from '@daffodil/geography';\nimport {\n DaffPaymentRequest,\n DaffPaymentResponse,\n} from '@daffodil/payment';\n\n/**\n * The payment action types enum.\n */\nexport enum DaffPaymentActionTypes {\n GenerateTokenSuccessAction = '[@daffodil/payment] Generate Token Success Action',\n GenerateTokenFailureAction = '[@daffodil/payment] Generate Token Failure Action',\n}\n\n/**\n * Generates a payment token.\n *\n * @param query The payment query.\n */\nexport interface DaffPaymentGenerateToken<T extends DaffPaymentRequest = DaffPaymentRequest> extends Action {\n readonly request: T;\n readonly address?: DaffPersonalAddress | DaffIdentifiable;\n}\n\n/**\n * Indicates a successful generation of a payment token.\n */\nexport class DaffPaymentGenerateTokenSuccess<T extends DaffPaymentResponse = DaffPaymentResponse> implements Action {\n readonly type = DaffPaymentActionTypes.GenerateTokenSuccessAction;\n\n constructor(public payload: T) {}\n}\n\n/**\n * A failed payment with the error message.\n */\nexport class DaffPaymentGenerateTokenFailure implements Action {\n readonly type = DaffPaymentActionTypes.GenerateTokenFailureAction;\n\n constructor(public payload: DaffStateError) {}\n}\n\n/**\n * A union of the payment action types.\n */\nexport type DaffPaymentActions<\n T extends DaffPaymentResponse = DaffPaymentResponse,\n> =\n | DaffPaymentGenerateTokenSuccess<T>\n | DaffPaymentGenerateTokenFailure;\n","/**\n * The key under which the payment feature state will be stored.\n */\nexport const DAFF_PAYMENT_STORE_FEATURE_KEY = 'daffPayment';\n","import {\n InjectionToken,\n Provider,\n} from '@angular/core';\nimport { ActionReducer } from '@ngrx/store';\n\nimport { DaffPaymentReducersState } from '../reducers.interface';\n\n/**\n * A token to hold the injectable extra reducers.\n *\n * Prefer using {@link daffPaymentProvideExtraReducers}.\n */\nexport const DAFF_PAYMENT_EXTRA_REDUCERS = new InjectionToken<ActionReducer<DaffPaymentReducersState>[]>(\n 'DAFF_PAYMENT_EXTRA_REDUCERS',\n {\n factory: () => [],\n providedIn: 'any',\n },\n);\n\n/**\n * Provides additional reducers that run after the standard Daffodil cart reducers.\n *\n * ```ts\n * providers: [\n * ...daffPaymentProvideExtraReducers(\n * myReducer1,\n * myReducer2\n * )\n * ]\n * ```\n */\nexport function daffPaymentProvideExtraReducers(\n ...reducers: ActionReducer<DaffPaymentReducersState>[]\n): Provider[] {\n return reducers.map(reducer => ({\n provide: DAFF_PAYMENT_EXTRA_REDUCERS,\n useValue: reducer,\n multi: true,\n }));\n}\n","import { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffPaymentReducerState } from './interface';\n\n/**\n * Manages {@link DaffPaymentReducerState}.\n */\nexport class DaffPaymentStateReducerAdapter {\n\n /**\n * Begins the payment operation flow.\n * Sets loading to true.\n */\n generateToken(state: DaffPaymentReducerState): DaffPaymentReducerState {\n return {\n ...state,\n loading: true,\n };\n }\n\n /**\n * Sets loading to false and resets errors.\n */\n tokenGenerated(state: DaffPaymentReducerState): DaffPaymentReducerState {\n return {\n ...state,\n loading: false,\n errors: [],\n };\n }\n\n /**\n * Stores the from a failed payment.\n * Also sets loading to false.\n */\n storeError(errors: DaffStateError[], state: DaffPaymentReducerState): DaffPaymentReducerState {\n return {\n ...state,\n errors,\n loading: false,\n };\n }\n}\n","import { DaffPaymentReducerState } from './interface';\n\n/**\n * The initial state for the main payment state, see {@link DaffPaymentReducerState}.\n */\nexport const daffPaymentInitialState: DaffPaymentReducerState = {\n loading: false,\n errors: [],\n};\n","import { DaffPaymentResponse } from '@daffodil/payment';\n\nimport { DaffPaymentStateReducerAdapter } from './adapter';\nimport { daffPaymentInitialState } from './initial-state';\nimport { DaffPaymentReducerState } from './interface';\nimport {\n DaffPaymentGenerateToken,\n DaffPaymentActionTypes,\n DaffPaymentActions,\n DaffPaymentGenerateTokenFailure,\n} from '../../actions/payment.actions';\n\n/**\n * The reducer for the payment page state, see {@link DaffPaymentReducerState}.\n */\nexport const daffPaymentReducerFactory = <T extends DaffPaymentResponse = DaffPaymentResponse>(actions: DaffPaymentGenerateToken['type'][]) =>\n (\n state = daffPaymentInitialState,\n action: DaffPaymentActions<T>,\n ): DaffPaymentReducerState => {\n const adapter = new DaffPaymentStateReducerAdapter();\n switch (true) {\n case actions.includes(action.type):\n return adapter.generateToken(state);\n\n case action.type === DaffPaymentActionTypes.GenerateTokenSuccessAction:\n return adapter.tokenGenerated(state);\n\n case action.type === DaffPaymentActionTypes.GenerateTokenFailureAction:\n return adapter.storeError([(<DaffPaymentGenerateTokenFailure>action).payload], state);\n\n default:\n return state;\n }\n };\n","import {\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n DaffPaymentStateRootSlice,\n DaffPaymentReducersState,\n DAFF_PAYMENT_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\n/**\n * Selector for the payment feature state.\n */\nexport interface DaffPaymentFeatureSelector {\n selectPaymentFeatureState: MemoizedSelector<DaffPaymentStateRootSlice, DaffPaymentReducersState>;\n}\n\nexport const getDaffPaymentReducersStateSelector = (() => {\n let cache;\n return (): DaffPaymentFeatureSelector =>\n cache = cache || {\n selectPaymentFeatureState: createFeatureSelector<DaffPaymentReducersState>(DAFF_PAYMENT_STORE_FEATURE_KEY),\n };\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { getDaffPaymentReducersStateSelector } from './feature.selector';\nimport { DaffPaymentStateRootSlice } from '../reducers/public_api';\n\n/**\n * Selectors for the main part of payment state.\n */\nexport interface DaffPaymentSelectors {\n /**\n * Selects whether there is a pending payment operation.\n */\n selectPaymentLoading: MemoizedSelector<DaffPaymentStateRootSlice, boolean>;\n /**\n * Selects the list of payment errors, if any.\n */\n selectPaymentErrors: MemoizedSelector<DaffPaymentStateRootSlice, DaffStateError[]>;\n}\n\n/**\n * Creates a group of selectors for {@link DaffPaymentReducerState} that use the passed state selector as the basis.\n */\nconst daffPaymentCreateSelectors = () => {\n const { selectPaymentFeatureState } = getDaffPaymentReducersStateSelector();\n const selectPaymentState = createSelector(\n selectPaymentFeatureState,\n state => state.payment,\n );\n\n const selectPaymentLoading = createSelector(\n selectPaymentState,\n state => state.loading,\n );\n\n const selectPaymentErrors = createSelector(\n selectPaymentState,\n state => state.errors,\n );\n\n return {\n selectPaymentLoading,\n selectPaymentErrors,\n };\n};\n\n\nexport const daffPaymentGetSelectors = (() => {\n let cache;\n return (): DaffPaymentSelectors =>\n cache = cache || daffPaymentCreateSelectors();\n})();\n\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffPaymentPageFacadeInterface } from './interface';\nimport { DaffPaymentStateRootSlice } from '../../reducers/public_api';\nimport { daffPaymentGetSelectors } from '../../selectors/public_api';\n\n/**\n * @inheritdoc\n *\n * Serves as the base for a payment facade.\n * Extend this class and pass in the selectors for the specific state you wish to target.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentPageFacade implements DaffPaymentPageFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(\n private store: Store<DaffPaymentStateRootSlice>,\n ) {\n const {\n selectPaymentLoading,\n selectPaymentErrors,\n } = daffPaymentGetSelectors();\n\n this.loading$ = this.store.pipe(select(selectPaymentLoading));\n this.errors$ = this.store.pipe(select(selectPaymentErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import {\n InjectionToken,\n ValueProvider,\n} from '@angular/core';\n\nimport { DaffPaymentAvailableProcessor } from '../models/public_api';\n\n/**\n * A multi-provider injection token for registering payment processors.\n */\nexport const DAFF_PAYMENT_AVAILABLE_PROCESSORS = new InjectionToken<DaffPaymentAvailableProcessor[]>(\n 'DAFF_PAYMENT_AVAILABLE_PROCESSORS',\n {\n factory: () => [],\n providedIn: 'any',\n },\n);\n\n/**\n * Provides a payment processor registration.\n *\n * See {@link DaffPaymentAvailableProcessor}.\n */\nexport const daffPaymentProvideAvailableProcessors = (...processors: DaffPaymentAvailableProcessor[]): ValueProvider[] =>\n processors.map(processor => ({\n provide: DAFF_PAYMENT_AVAILABLE_PROCESSORS,\n useValue: processor,\n multi: true,\n }));\n","import {\n inject,\n InjectionToken,\n} from '@angular/core';\n\nimport { daffArrayToDict } from '@daffodil/core';\n\nimport { DAFF_PAYMENT_AVAILABLE_PROCESSORS } from './available-processors.token';\nimport { DaffPaymentProcessorCollection } from '../models/public_api';\n\n/**\n * An internal token to combine the available payment processors into a single collection.\n */\nexport const DAFF_PAYMENT_PROCESSOR_COLLECTION = new InjectionToken<DaffPaymentProcessorCollection>(\n 'DAFF_PAYMENT_PROCESSOR_COLLECTION',\n {\n factory: () => {\n const processors = inject(DAFF_PAYMENT_AVAILABLE_PROCESSORS);\n return daffArrayToDict(processors, ({ kind }) => kind);\n },\n },\n);\n","import { InjectionToken } from '@angular/core';\n\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\n/**\n * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.\n * Can be used to further refine Daffodil errors into more specific app errors.\n */\nexport const DAFF_PAYMENT_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_PAYMENT_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n","import {\n inject,\n InjectionToken,\n} from '@angular/core';\nimport {\n ActionReducer,\n combineReducers,\n} from '@ngrx/store';\n\nimport { daffComposeReducers } from '@daffodil/core/state';\n// these unused imports are a workaround\nimport { DaffPaymentResponse } from '@daffodil/payment';\n\nimport { DAFF_PAYMENT_EXTRA_REDUCERS } from './extra.token';\nimport { DAFF_PAYMENT_AVAILABLE_PROCESSORS } from '../../injection-tokens/public_api';\nimport { daffPaymentReducerFactory } from '../payment/reducer';\nimport { DaffPaymentReducersState } from '../reducers.interface';\n\n/**\n * An internal token to hold the Daffodil payment reducers.\n * Includes the extra and standard reducers.\n *\n * @docs-private\n */\nexport const DAFF_PAYMENT_REDUCERS = new InjectionToken<ActionReducer<DaffPaymentReducersState>>(\n 'DAFF_PAYMENT_REDUCERS',\n {\n providedIn: 'any',\n factory: () => daffComposeReducers([\n combineReducers({\n payment: daffPaymentReducerFactory(inject(DAFF_PAYMENT_AVAILABLE_PROCESSORS).map(({ action }) => action)),\n }),\n ...inject(DAFF_PAYMENT_EXTRA_REDUCERS),\n ]),\n },\n);\n","import { NgModule } from '@angular/core';\nimport { StoreModule } from '@ngrx/store';\n\nimport { DAFF_PAYMENT_STORE_FEATURE_KEY } from './reducers/public_api';\nimport { DAFF_PAYMENT_REDUCERS } from './reducers/token/reducers.token';\n\n/**\n * Creates the payment feature store.\n */\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_PAYMENT_STORE_FEATURE_KEY, DAFF_PAYMENT_REDUCERS),\n ],\n})\nexport class DaffPaymentStateModule {}\n","/**\n * Generated bundle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B,EAC5B,EAAE,OAAO,EAAE,MAAM,8BAA8B,EAAE;;ACQnD;;;;;AAKG;AACI,MAAM,qBAAqB,GAAG,IAAI,cAAc,CACrD,uBAAuB,EACvB;AACE,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjC,QAAA,eAAe,CAAC;AACd,YAAA,OAAO,EAAE,yBAAyB,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,CAAC;SAC1G,CAAC;QACF,GAAG,MAAM,CAAC,2BAA2B,CAAC;KACvC,CAAC;AACH,CAAA,CACF;;AC7BD;;AAEG;MAMU,sBAAsB,CAAA;;sIAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;uIAAtB,sBAAsB,EAAA,OAAA,EAAA,CAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,CAAA,CAAA;uIAAtB,sBAAsB,EAAA,OAAA,EAAA,CAH/B,WAAW,CAAC,UAAU,CAAC,8BAA8B,EAAE,qBAAqB,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGpE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;AACP,wBAAA,WAAW,CAAC,UAAU,CAAC,8BAA8B,EAAE,qBAAqB,CAAC;AAC9E,qBAAA;AACF,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-payment-state.mjs","sources":["../../../libs/payment/state/src/actions/payment.actions.ts","../../../libs/payment/state/src/reducers/store-feature-key.ts","../../../libs/payment/state/src/reducers/token/extra.token.ts","../../../libs/payment/state/src/reducers/payment/adapter.ts","../../../libs/payment/state/src/reducers/payment/initial-state.ts","../../../libs/payment/state/src/reducers/payment/reducer.ts","../../../libs/payment/state/src/selectors/feature.selector.ts","../../../libs/payment/state/src/selectors/payment.selector.ts","../../../libs/payment/state/src/facades/payment/facade.ts","../../../libs/payment/state/src/injection-tokens/available-processors.token.ts","../../../libs/payment/state/src/injection-tokens/processor-collection.token.ts","../../../libs/payment/state/src/injection-tokens/error-matcher.token.ts","../../../libs/payment/state/src/reducers/token/reducers.token.ts","../../../libs/payment/state/src/payment.module.ts","../../../libs/payment/state/src/daffodil-payment-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport { DaffIdentifiable } from '@daffodil/core';\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffPersonalAddress } from '@daffodil/geography';\nimport {\n DaffPaymentRequest,\n DaffPaymentResponse,\n} from '@daffodil/payment';\n\n/**\n * The payment action types enum.\n */\nexport enum DaffPaymentActionTypes {\n GenerateTokenSuccessAction = '[@daffodil/payment] Generate Token Success Action',\n GenerateTokenFailureAction = '[@daffodil/payment] Generate Token Failure Action',\n}\n\n/**\n * Generates a payment token.\n *\n * @param query The payment query.\n */\nexport interface DaffPaymentGenerateToken<T extends DaffPaymentRequest = DaffPaymentRequest> extends Action {\n readonly request: T;\n readonly address?: DaffPersonalAddress | DaffIdentifiable;\n}\n\n/**\n * Indicates a successful generation of a payment token.\n */\nexport class DaffPaymentGenerateTokenSuccess<T extends DaffPaymentResponse = DaffPaymentResponse> implements Action {\n readonly type = DaffPaymentActionTypes.GenerateTokenSuccessAction;\n\n constructor(public payload: T) {}\n}\n\n/**\n * A failed payment with the error message.\n */\nexport class DaffPaymentGenerateTokenFailure implements Action {\n readonly type = DaffPaymentActionTypes.GenerateTokenFailureAction;\n\n constructor(public payload: DaffStateError) {}\n}\n\n/**\n * A union of the payment action types.\n */\nexport type DaffPaymentActions<\n T extends DaffPaymentResponse = DaffPaymentResponse,\n> =\n | DaffPaymentGenerateTokenSuccess<T>\n | DaffPaymentGenerateTokenFailure;\n","/**\n * The key under which the payment feature state will be stored.\n */\nexport const DAFF_PAYMENT_STORE_FEATURE_KEY = 'daffPayment';\n","import {\n InjectionToken,\n Provider,\n} from '@angular/core';\nimport { ActionReducer } from '@ngrx/store';\n\nimport { DaffPaymentReducersState } from '../reducers.interface';\n\n/**\n * A token to hold the injectable extra reducers.\n *\n * Prefer using {@link daffPaymentProvideExtraReducers}.\n */\nexport const DAFF_PAYMENT_EXTRA_REDUCERS = new InjectionToken<ActionReducer<DaffPaymentReducersState>[]>(\n 'DAFF_PAYMENT_EXTRA_REDUCERS',\n {\n factory: () => [],\n providedIn: 'any',\n },\n);\n\n/**\n * Provides additional reducers that run after the standard Daffodil cart reducers.\n *\n * ```ts\n * providers: [\n * ...daffPaymentProvideExtraReducers(\n * myReducer1,\n * myReducer2\n * )\n * ]\n * ```\n */\nexport function daffPaymentProvideExtraReducers(\n ...reducers: ActionReducer<DaffPaymentReducersState>[]\n): Provider[] {\n return reducers.map(reducer => ({\n provide: DAFF_PAYMENT_EXTRA_REDUCERS,\n useValue: reducer,\n multi: true,\n }));\n}\n","import { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffPaymentReducerState } from './interface';\n\n/**\n * Manages {@link DaffPaymentReducerState}.\n */\nexport class DaffPaymentStateReducerAdapter {\n\n /**\n * Begins the payment operation flow.\n * Sets loading to true.\n */\n generateToken(state: DaffPaymentReducerState): DaffPaymentReducerState {\n return {\n ...state,\n loading: true,\n };\n }\n\n /**\n * Sets loading to false and resets errors.\n */\n tokenGenerated(state: DaffPaymentReducerState): DaffPaymentReducerState {\n return {\n ...state,\n loading: false,\n errors: [],\n };\n }\n\n /**\n * Stores the from a failed payment.\n * Also sets loading to false.\n */\n storeError(errors: DaffStateError[], state: DaffPaymentReducerState): DaffPaymentReducerState {\n return {\n ...state,\n errors,\n loading: false,\n };\n }\n}\n","import { DaffPaymentReducerState } from './interface';\n\n/**\n * The initial state for the main payment state, see {@link DaffPaymentReducerState}.\n */\nexport const daffPaymentInitialState: DaffPaymentReducerState = {\n loading: false,\n errors: [],\n};\n","import { DaffPaymentResponse } from '@daffodil/payment';\n\nimport { DaffPaymentStateReducerAdapter } from './adapter';\nimport { daffPaymentInitialState } from './initial-state';\nimport { DaffPaymentReducerState } from './interface';\nimport {\n DaffPaymentGenerateToken,\n DaffPaymentActionTypes,\n DaffPaymentActions,\n DaffPaymentGenerateTokenFailure,\n} from '../../actions/payment.actions';\n\n/**\n * The reducer for the payment page state, see {@link DaffPaymentReducerState}.\n */\nexport const daffPaymentReducerFactory = <T extends DaffPaymentResponse = DaffPaymentResponse>(actions: DaffPaymentGenerateToken['type'][]) =>\n (\n state = daffPaymentInitialState,\n action: DaffPaymentActions<T>,\n ): DaffPaymentReducerState => {\n const adapter = new DaffPaymentStateReducerAdapter();\n switch (true) {\n case actions.includes(action.type):\n return adapter.generateToken(state);\n\n case action.type === DaffPaymentActionTypes.GenerateTokenSuccessAction:\n return adapter.tokenGenerated(state);\n\n case action.type === DaffPaymentActionTypes.GenerateTokenFailureAction:\n return adapter.storeError([(<DaffPaymentGenerateTokenFailure>action).payload], state);\n\n default:\n return state;\n }\n };\n","import {\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n DaffPaymentStateRootSlice,\n DaffPaymentReducersState,\n DAFF_PAYMENT_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\n/**\n * Selector for the payment feature state.\n */\nexport interface DaffPaymentFeatureSelector {\n selectPaymentFeatureState: MemoizedSelector<DaffPaymentStateRootSlice, DaffPaymentReducersState>;\n}\n\nexport const getDaffPaymentReducersStateSelector = (() => {\n let cache;\n return (): DaffPaymentFeatureSelector =>\n cache = cache || {\n selectPaymentFeatureState: createFeatureSelector<DaffPaymentReducersState>(DAFF_PAYMENT_STORE_FEATURE_KEY),\n };\n})();\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { getDaffPaymentReducersStateSelector } from './feature.selector';\nimport { DaffPaymentStateRootSlice } from '../reducers/public_api';\n\n/**\n * Selectors for the main part of payment state.\n */\nexport interface DaffPaymentSelectors {\n /**\n * Selects whether there is a pending payment operation.\n */\n selectPaymentLoading: MemoizedSelector<DaffPaymentStateRootSlice, boolean>;\n /**\n * Selects the list of payment errors, if any.\n */\n selectPaymentErrors: MemoizedSelector<DaffPaymentStateRootSlice, DaffStateError[]>;\n}\n\n/**\n * Creates a group of selectors for {@link DaffPaymentReducerState} that use the passed state selector as the basis.\n */\nconst daffPaymentCreateSelectors = () => {\n const { selectPaymentFeatureState } = getDaffPaymentReducersStateSelector();\n const selectPaymentState = createSelector(\n selectPaymentFeatureState,\n state => state.payment,\n );\n\n const selectPaymentLoading = createSelector(\n selectPaymentState,\n state => state.loading,\n );\n\n const selectPaymentErrors = createSelector(\n selectPaymentState,\n state => state.errors,\n );\n\n return {\n selectPaymentLoading,\n selectPaymentErrors,\n };\n};\n\n\nexport const daffPaymentGetSelectors = (() => {\n let cache;\n return (): DaffPaymentSelectors =>\n cache = cache || daffPaymentCreateSelectors();\n})();\n\n","import { Injectable } from '@angular/core';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport { DaffPaymentPageFacadeInterface } from './interface';\nimport { DaffPaymentStateRootSlice } from '../../reducers/public_api';\nimport { daffPaymentGetSelectors } from '../../selectors/public_api';\n\n/**\n * @inheritdoc\n *\n * Serves as the base for a payment facade.\n * Extend this class and pass in the selectors for the specific state you wish to target.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentPageFacade implements DaffPaymentPageFacadeInterface {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n constructor(\n private store: Store<DaffPaymentStateRootSlice>,\n ) {\n const {\n selectPaymentLoading,\n selectPaymentErrors,\n } = daffPaymentGetSelectors();\n\n this.loading$ = this.store.pipe(select(selectPaymentLoading));\n this.errors$ = this.store.pipe(select(selectPaymentErrors));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import {\n InjectionToken,\n ValueProvider,\n} from '@angular/core';\n\nimport { DaffPaymentAvailableProcessor } from '../models/public_api';\n\n/**\n * A multi-provider injection token for registering payment processors.\n */\nexport const DAFF_PAYMENT_AVAILABLE_PROCESSORS = new InjectionToken<DaffPaymentAvailableProcessor[]>(\n 'DAFF_PAYMENT_AVAILABLE_PROCESSORS',\n {\n factory: () => [],\n providedIn: 'any',\n },\n);\n\n/**\n * Provides a payment processor registration.\n *\n * See {@link DaffPaymentAvailableProcessor}.\n */\nexport const daffPaymentProvideAvailableProcessors = (...processors: DaffPaymentAvailableProcessor[]): ValueProvider[] =>\n processors.map(processor => ({\n provide: DAFF_PAYMENT_AVAILABLE_PROCESSORS,\n useValue: processor,\n multi: true,\n }));\n","import {\n inject,\n InjectionToken,\n} from '@angular/core';\n\nimport { daffArrayToDict } from '@daffodil/core';\n\nimport { DAFF_PAYMENT_AVAILABLE_PROCESSORS } from './available-processors.token';\nimport { DaffPaymentProcessorCollection } from '../models/public_api';\n\n/**\n * An internal token to combine the available payment processors into a single collection.\n */\nexport const DAFF_PAYMENT_PROCESSOR_COLLECTION = new InjectionToken<DaffPaymentProcessorCollection>(\n 'DAFF_PAYMENT_PROCESSOR_COLLECTION',\n {\n factory: () => {\n const processors = inject(DAFF_PAYMENT_AVAILABLE_PROCESSORS);\n return daffArrayToDict(processors, ({ kind }) => kind);\n },\n },\n);\n","import { InjectionToken } from '@angular/core';\n\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\n/**\n * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.\n * Can be used to further refine Daffodil errors into more specific app errors.\n */\nexport const DAFF_PAYMENT_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_PAYMENT_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n","import {\n inject,\n InjectionToken,\n} from '@angular/core';\nimport {\n ActionReducer,\n combineReducers,\n} from '@ngrx/store';\n\nimport { daffComposeReducers } from '@daffodil/core/state';\n// these unused imports are a workaround\nimport { DaffPaymentResponse } from '@daffodil/payment';\n\nimport { DAFF_PAYMENT_EXTRA_REDUCERS } from './extra.token';\nimport { DAFF_PAYMENT_AVAILABLE_PROCESSORS } from '../../injection-tokens/public_api';\nimport { daffPaymentReducerFactory } from '../payment/reducer';\nimport { DaffPaymentReducersState } from '../reducers.interface';\n\n/**\n * An internal token to hold the Daffodil payment reducers.\n * Includes the extra and standard reducers.\n *\n * @docs-private\n */\nexport const DAFF_PAYMENT_REDUCERS = new InjectionToken<ActionReducer<DaffPaymentReducersState>>(\n 'DAFF_PAYMENT_REDUCERS',\n {\n providedIn: 'any',\n factory: () => daffComposeReducers([\n combineReducers({\n payment: daffPaymentReducerFactory(inject(DAFF_PAYMENT_AVAILABLE_PROCESSORS).map(({ action }) => action)),\n }),\n ...inject(DAFF_PAYMENT_EXTRA_REDUCERS),\n ]),\n },\n);\n","import { NgModule } from '@angular/core';\nimport { StoreModule } from '@ngrx/store';\n\nimport { DAFF_PAYMENT_STORE_FEATURE_KEY } from './reducers/public_api';\nimport { DAFF_PAYMENT_REDUCERS } from './reducers/token/reducers.token';\n\n/**\n * Creates the payment feature store.\n */\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_PAYMENT_STORE_FEATURE_KEY, DAFF_PAYMENT_REDUCERS),\n ],\n})\nexport class DaffPaymentStateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAUA;;AAEG;IACS,uBAGX;AAHD,CAAA,UAAY,sBAAsB,EAAA;AAChC,IAAA,sBAAA,CAAA,4BAAA,CAAA,GAAA,mDAAgF,CAAA;AAChF,IAAA,sBAAA,CAAA,4BAAA,CAAA,GAAA,mDAAgF,CAAA;AAClF,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,GAGjC,EAAA,CAAA,CAAA,CAAA;AAYD;;AAEG;MACU,+BAA+B,C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AAE,MAAM,EAAE,KAAK,MAAM,CAAC,CAAC;SAC1G,CAAC;QACF,GAAG,MAAM,CAAC,2BAA2B,CAAC;KACvC,CAAC;AACH,CAAA,CACF;;AC7BD;;AAEG;MAMU,sBAAsB,CAAA;iIAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;kIAAtB,sBAAsB,EAAA,OAAA,EAAA,CAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,CAAA,CAAA,EAAA;kIAAtB,sBAAsB,EAAA,OAAA,EAAA,CAH/B,WAAW,CAAC,UAAU,CAAC,8BAA8B,EAAE,qBAAqB,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGpE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;AACP,wBAAA,WAAW,CAAC,UAAU,CAAC,8BAA8B,EAAE,qBAAqB,CAAC;AAC9E,qBAAA;AACF,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
@@ -20,15 +20,15 @@ class DaffPaymentResponseFactory extends DaffModelFactory {
20
20
  constructor() {
21
21
  super(MockPaymentResponse);
22
22
  }
23
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentResponseFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
24
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentResponseFactory, providedIn: 'root' }); }
23
25
  }
24
- /** @nocollapse */ DaffPaymentResponseFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentResponseFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
25
- /** @nocollapse */ DaffPaymentResponseFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentResponseFactory, providedIn: 'root' });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentResponseFactory, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentResponseFactory, decorators: [{
27
27
  type: Injectable,
28
28
  args: [{
29
29
  providedIn: 'root',
30
30
  }]
31
- }], ctorParameters: function () { return []; } });
31
+ }], ctorParameters: () => [] });
32
32
 
33
33
  /**
34
34
  * Mock class for {@link DaffPaymentRequest}.
@@ -46,15 +46,15 @@ class DaffPaymentRequestFactory extends DaffModelFactory {
46
46
  constructor() {
47
47
  super(MockPaymentRequest);
48
48
  }
49
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentRequestFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
50
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentRequestFactory, providedIn: 'root' }); }
49
51
  }
50
- /** @nocollapse */ DaffPaymentRequestFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentRequestFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
51
- /** @nocollapse */ DaffPaymentRequestFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentRequestFactory, providedIn: 'root' });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentRequestFactory, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentRequestFactory, decorators: [{
53
53
  type: Injectable,
54
54
  args: [{
55
55
  providedIn: 'root',
56
56
  }]
57
- }], ctorParameters: function () { return []; } });
57
+ }], ctorParameters: () => [] });
58
58
 
59
59
  /**
60
60
  * A multi-provider injection token for providing extra payment result kind factories.
@@ -102,34 +102,34 @@ class DaffPaymentResponseKindFactory extends DaffModelFactory {
102
102
  create(partial = {}) {
103
103
  return this._randomFactory.create(partial);
104
104
  }
105
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentResponseKindFactory, deps: [{ token: DAFF_PAYMENT_RESPONSE_KIND_FACTORIES }], target: i0.ɵɵFactoryTarget.Injectable }); }
106
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentResponseKindFactory, providedIn: 'root' }); }
105
107
  }
106
- /** @nocollapse */ DaffPaymentResponseKindFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentResponseKindFactory, deps: [{ token: DAFF_PAYMENT_RESPONSE_KIND_FACTORIES }], target: i0.ɵɵFactoryTarget.Injectable });
107
- /** @nocollapse */ DaffPaymentResponseKindFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentResponseKindFactory, providedIn: 'root' });
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentResponseKindFactory, decorators: [{
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentResponseKindFactory, decorators: [{
109
109
  type: Injectable,
110
110
  args: [{
111
111
  providedIn: 'root',
112
112
  }]
113
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
113
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
114
114
  type: Inject,
115
115
  args: [DAFF_PAYMENT_RESPONSE_KIND_FACTORIES]
116
- }] }]; } });
116
+ }] }] });
117
117
 
118
118
  /**
119
119
  * Provides the default payment result factory as a payment result type factory.
120
120
  */
121
121
  class DaffPaymentTestingModule {
122
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
123
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentTestingModule }); }
124
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentTestingModule, providers: [
125
+ {
126
+ provide: DAFF_PAYMENT_RESPONSE_KIND_FACTORIES,
127
+ useExisting: DaffPaymentResponseFactory,
128
+ multi: true,
129
+ },
130
+ ] }); }
122
131
  }
123
- /** @nocollapse */ DaffPaymentTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
124
- /** @nocollapse */ DaffPaymentTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingModule });
125
- /** @nocollapse */ DaffPaymentTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingModule, providers: [
126
- {
127
- provide: DAFF_PAYMENT_RESPONSE_KIND_FACTORIES,
128
- useExisting: DaffPaymentResponseFactory,
129
- multi: true,
130
- },
131
- ] });
132
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingModule, decorators: [{
132
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffPaymentTestingModule, decorators: [{
133
133
  type: NgModule,
134
134
  args: [{
135
135
  providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-payment-testing.mjs","sources":["../../../libs/payment/testing/src/factories/payment-response.factory.ts","../../../libs/payment/testing/src/factories/payment-request.factory.ts","../../../libs/payment/testing/src/injection-tokens/factories/kind.token.ts","../../../libs/payment/testing/src/factories/kind.factory.ts","../../../libs/payment/testing/src/testing.module.ts","../../../libs/payment/testing/src/daffodil-payment-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffPaymentResponse } from '@daffodil/payment';\n\n/**\n * Mock class for {@link DaffPaymentResponse}.\n */\nexport class MockPaymentResponse implements DaffPaymentResponse {\n method = faker.random.word();\n};\n\n/**\n * Model factory for {@link DaffPaymentResponse}.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentResponseFactory extends DaffModelFactory<DaffPaymentResponse, typeof MockPaymentResponse>{\n constructor() {\n super(MockPaymentResponse);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffPaymentRequest } from '@daffodil/payment';\n\n/**\n * Mock class for {@link DaffPaymentRequest}.\n */\nexport class MockPaymentRequest implements DaffPaymentRequest {\n kind = faker.random.word();\n};\n\n/**\n * Model factory for {@link DaffPaymentRequest}.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentRequestFactory extends DaffModelFactory<DaffPaymentRequest>{\n constructor() {\n super(MockPaymentRequest);\n }\n}\n","import {\n inject,\n InjectionToken,\n Provider,\n Type,\n} from '@angular/core';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffPaymentResponse } from '@daffodil/payment';\n\nimport { DaffPaymentResponseFactory } from '../../factories/payment-response.factory';\n\n/**\n * A multi-provider injection token for providing extra payment result kind factories.\n * These factories correspond to different types of payment results that may be added by other packages.\n * This is useful for backend mocks (such as the testing driver) to generate an accurate representation\n * of the variety of results that an application can receive in production.\n */\nexport const DAFF_PAYMENT_RESPONSE_KIND_FACTORIES = new InjectionToken<DaffModelFactory<DaffPaymentResponse>[]>(\n 'DAFF_PAYMENT_RESPONSE_KIND_FACTORIES',\n { factory: () => [inject(DaffPaymentResponseFactory)], providedIn: 'root' },\n);\n\n/**\n * Provides extra payment result factory kinds.\n *\n * See {@link DAFF_PAYMENT_RESPONSE_KIND_FACTORIES}.\n *\n * ```ts\n * providers: [\n * ...daffProvidePaymentResponseKindFactories(\n * MyPaymentResponseFactory\n * )\n * ]\n * ```\n */\nexport function daffProvidePaymentResponseKindFactories<T extends DaffPaymentResponse = DaffPaymentResponse>(...factoryTypes: Type<DaffModelFactory<T>>[]): Provider[] {\n return factoryTypes.map(factoryType => ({\n provide: DAFF_PAYMENT_RESPONSE_KIND_FACTORIES,\n useExisting: factoryType,\n multi: true,\n }));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\n\nimport { sample } from '@daffodil/core';\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffPaymentResponse } from '@daffodil/payment';\n\nimport { MockPaymentResponse } from './payment-response.factory';\nimport { DAFF_PAYMENT_RESPONSE_KIND_FACTORIES } from '../injection-tokens/factories/kind.token';\n\n/**\n * Factory for creating DaffPaymentResponses.\n * This will create a payment response of random kind.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentResponseKindFactory extends DaffModelFactory<DaffPaymentResponse> {\n constructor(\n @Inject(DAFF_PAYMENT_RESPONSE_KIND_FACTORIES) private kindFactories: DaffModelFactory<DaffPaymentResponse>[],\n ) {\n super(MockPaymentResponse);\n }\n\n private get _randomFactory(): DaffModelFactory<DaffPaymentResponse> {\n return sample(this.kindFactories);\n }\n\n /**\n * Creates a payment result of random kind.\n */\n create(partial = {}): DaffPaymentResponse {\n return this._randomFactory.create(partial);\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { DaffPaymentResponseFactory } from './factories/public_api';\nimport { DAFF_PAYMENT_RESPONSE_KIND_FACTORIES } from './injection-tokens/public_api';\n\n/**\n * Provides the default payment result factory as a payment result type factory.\n */\n@NgModule({\n providers: [\n {\n provide: DAFF_PAYMENT_RESPONSE_KIND_FACTORIES,\n useExisting: DaffPaymentResponseFactory,\n multi: true,\n },\n ],\n})\nexport class DaffPaymentTestingModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;;AAEG;MACU,mBAAmB,CAAA;AAAhC,IAAA,WAAA,GAAA;AACE,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KAC9B;AAAA,CAAA;AAAA,CAAC;AAEF;;AAEG;AAIG,MAAO,0BAA2B,SAAQ,gBAAiE,CAAA;AAC/G,IAAA,WAAA,GAAA;QACE,KAAK,CAAC,mBAAmB,CAAC,CAAC;KAC5B;;0IAHU,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA1B,mBAAA,0BAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,cAFzB,MAAM,EAAA,CAAA,CAAA;2FAEP,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAHtC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACZD;;AAEG;MACU,kBAAk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,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,EARxB,SAAA,EAAA;AACT,QAAA;AACE,YAAA,OAAO,EAAE,oCAAoC;AAC7C,YAAA,WAAW,EAAE,0BAA0B;AACvC,YAAA,KAAK,EAAE,IAAI;AACZ,SAAA;AACF,KAAA,EAAA,CAAA,CAAA;2FAEU,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBATpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,oCAAoC;AAC7C,4BAAA,WAAW,EAAE,0BAA0B;AACvC,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACF,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-payment-testing.mjs","sources":["../../../libs/payment/testing/src/factories/payment-response.factory.ts","../../../libs/payment/testing/src/factories/payment-request.factory.ts","../../../libs/payment/testing/src/injection-tokens/factories/kind.token.ts","../../../libs/payment/testing/src/factories/kind.factory.ts","../../../libs/payment/testing/src/testing.module.ts","../../../libs/payment/testing/src/daffodil-payment-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffPaymentResponse } from '@daffodil/payment';\n\n/**\n * Mock class for {@link DaffPaymentResponse}.\n */\nexport class MockPaymentResponse implements DaffPaymentResponse {\n method = faker.random.word();\n};\n\n/**\n * Model factory for {@link DaffPaymentResponse}.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentResponseFactory extends DaffModelFactory<DaffPaymentResponse, typeof MockPaymentResponse>{\n constructor() {\n super(MockPaymentResponse);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { faker } from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffPaymentRequest } from '@daffodil/payment';\n\n/**\n * Mock class for {@link DaffPaymentRequest}.\n */\nexport class MockPaymentRequest implements DaffPaymentRequest {\n kind = faker.random.word();\n};\n\n/**\n * Model factory for {@link DaffPaymentRequest}.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentRequestFactory extends DaffModelFactory<DaffPaymentRequest>{\n constructor() {\n super(MockPaymentRequest);\n }\n}\n","import {\n inject,\n InjectionToken,\n Provider,\n Type,\n} from '@angular/core';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffPaymentResponse } from '@daffodil/payment';\n\nimport { DaffPaymentResponseFactory } from '../../factories/payment-response.factory';\n\n/**\n * A multi-provider injection token for providing extra payment result kind factories.\n * These factories correspond to different types of payment results that may be added by other packages.\n * This is useful for backend mocks (such as the testing driver) to generate an accurate representation\n * of the variety of results that an application can receive in production.\n */\nexport const DAFF_PAYMENT_RESPONSE_KIND_FACTORIES = new InjectionToken<DaffModelFactory<DaffPaymentResponse>[]>(\n 'DAFF_PAYMENT_RESPONSE_KIND_FACTORIES',\n { factory: () => [inject(DaffPaymentResponseFactory)], providedIn: 'root' },\n);\n\n/**\n * Provides extra payment result factory kinds.\n *\n * See {@link DAFF_PAYMENT_RESPONSE_KIND_FACTORIES}.\n *\n * ```ts\n * providers: [\n * ...daffProvidePaymentResponseKindFactories(\n * MyPaymentResponseFactory\n * )\n * ]\n * ```\n */\nexport function daffProvidePaymentResponseKindFactories<T extends DaffPaymentResponse = DaffPaymentResponse>(...factoryTypes: Type<DaffModelFactory<T>>[]): Provider[] {\n return factoryTypes.map(factoryType => ({\n provide: DAFF_PAYMENT_RESPONSE_KIND_FACTORIES,\n useExisting: factoryType,\n multi: true,\n }));\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\n\nimport { sample } from '@daffodil/core';\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffPaymentResponse } from '@daffodil/payment';\n\nimport { MockPaymentResponse } from './payment-response.factory';\nimport { DAFF_PAYMENT_RESPONSE_KIND_FACTORIES } from '../injection-tokens/factories/kind.token';\n\n/**\n * Factory for creating DaffPaymentResponses.\n * This will create a payment response of random kind.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentResponseKindFactory extends DaffModelFactory<DaffPaymentResponse> {\n constructor(\n @Inject(DAFF_PAYMENT_RESPONSE_KIND_FACTORIES) private kindFactories: DaffModelFactory<DaffPaymentResponse>[],\n ) {\n super(MockPaymentResponse);\n }\n\n private get _randomFactory(): DaffModelFactory<DaffPaymentResponse> {\n return sample(this.kindFactories);\n }\n\n /**\n * Creates a payment result of random kind.\n */\n create(partial = {}): DaffPaymentResponse {\n return this._randomFactory.create(partial);\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { DaffPaymentResponseFactory } from './factories/public_api';\nimport { DAFF_PAYMENT_RESPONSE_KIND_FACTORIES } from './injection-tokens/public_api';\n\n/**\n * Provides the default payment result factory as a payment result type factory.\n */\n@NgModule({\n providers: [\n {\n provide: DAFF_PAYMENT_RESPONSE_KIND_FACTORIES,\n useExisting: DaffPaymentResponseFactory,\n multi: true,\n },\n ],\n})\nexport class DaffPaymentTestingModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA;;AAEG;MACU,mBAAmB,CAAA;AAAhC,IAAA,WAAA,GAAA;AACE,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KAC9B;AAAA,CAAA;AAAA,CAAC;AAEF;;AAEG;AAIG,MAAO,0BAA2B,SAAQ,gBAAiE,CAAA;AAC/G,IAAA,WAAA,GAAA;QACE,KAAK,CAAC,mBAAmB,CAAC,CAAC;KAC5B;iIAHU,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAA1B,uBAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA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AA,CAAA;;0BAGI,MAAM;2BAAC,oCAAoC,CAAA;;;AChBhD;;AAEG;MAUU,wBAAwB,CAAA;iIAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;kIAAxB,wBAAwB,EAAA,CAAA,CAAA,EAAA;AAAxB,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,EARxB,SAAA,EAAA;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,oCAAoC;AAC7C,gBAAA,WAAW,EAAE,0BAA0B;AACvC,gBAAA,KAAK,EAAE,IAAI;AACZ,aAAA;AACF,SAAA,EAAA,CAAA,CAAA,EAAA;;2FAEU,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBATpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,oCAAoC;AAC7C,4BAAA,WAAW,EAAE,0BAA0B;AACvC,4BAAA,KAAK,EAAE,IAAI;AACZ,yBAAA;AACF,qBAAA;AACF,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@daffodil/payment","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/payment"]}}},"version":"0.66.1","description":"A client-side Angular package for managing ecommerce payments agnostic to the ecommerce platform.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/common":"^15.0.0","@angular/core":"^15.0.0","@daffodil/core":"0.66.1","@ngrx/effects":"^15.0.0","@ngrx/store":"^15.0.0","rxjs":"7.8.1"},"optionalDependencies":{"@apollo/client":"^3.0.0","@daffodil/driver":"0.66.1","apollo-angular":"^5.0.2","@faker-js/faker":"^7.6.0"},"module":"fesm2015/daffodil-payment.mjs","es2020":"fesm2020/daffodil-payment.mjs","esm2020":"esm2020/daffodil-payment.mjs","fesm2020":"fesm2020/daffodil-payment.mjs","fesm2015":"fesm2015/daffodil-payment.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2020":"./esm2020/daffodil-payment.mjs","es2020":"./fesm2020/daffodil-payment.mjs","es2015":"./fesm2015/daffodil-payment.mjs","node":"./fesm2015/daffodil-payment.mjs","default":"./fesm2020/daffodil-payment.mjs"},"./driver/in-memory":{"types":"./driver/in-memory/index.d.ts","esm2020":"./esm2020/driver/in-memory/daffodil-payment-driver-in-memory.mjs","es2020":"./fesm2020/daffodil-payment-driver-in-memory.mjs","es2015":"./fesm2015/daffodil-payment-driver-in-memory.mjs","node":"./fesm2015/daffodil-payment-driver-in-memory.mjs","default":"./fesm2020/daffodil-payment-driver-in-memory.mjs"},"./driver":{"types":"./driver/index.d.ts","esm2020":"./esm2020/driver/daffodil-payment-driver.mjs","es2020":"./fesm2020/daffodil-payment-driver.mjs","es2015":"./fesm2015/daffodil-payment-driver.mjs","node":"./fesm2015/daffodil-payment-driver.mjs","default":"./fesm2020/daffodil-payment-driver.mjs"},"./driver/testing":{"types":"./driver/testing/index.d.ts","esm2020":"./esm2020/driver/testing/daffodil-payment-driver-testing.mjs","es2020":"./fesm2020/daffodil-payment-driver-testing.mjs","es2015":"./fesm2015/daffodil-payment-driver-testing.mjs","node":"./fesm2015/daffodil-payment-driver-testing.mjs","default":"./fesm2020/daffodil-payment-driver-testing.mjs"},"./state":{"types":"./state/index.d.ts","esm2020":"./esm2020/state/daffodil-payment-state.mjs","es2020":"./fesm2020/daffodil-payment-state.mjs","es2015":"./fesm2015/daffodil-payment-state.mjs","node":"./fesm2015/daffodil-payment-state.mjs","default":"./fesm2020/daffodil-payment-state.mjs"},"./state/testing":{"types":"./state/testing/index.d.ts","esm2020":"./esm2020/state/testing/daffodil-payment-state-testing.mjs","es2020":"./fesm2020/daffodil-payment-state-testing.mjs","es2015":"./fesm2015/daffodil-payment-state-testing.mjs","node":"./fesm2015/daffodil-payment-state-testing.mjs","default":"./fesm2020/daffodil-payment-state-testing.mjs"},"./testing":{"types":"./testing/index.d.ts","esm2020":"./esm2020/testing/daffodil-payment-testing.mjs","es2020":"./fesm2020/daffodil-payment-testing.mjs","es2015":"./fesm2015/daffodil-payment-testing.mjs","node":"./fesm2015/daffodil-payment-testing.mjs","default":"./fesm2020/daffodil-payment-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
1
+ {"name":"@daffodil/payment","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/payment"]}}},"version":"0.67.0","description":"A client-side Angular package for managing ecommerce payments agnostic to the ecommerce platform.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/common":"^17.0.0","@angular/core":"^17.0.0","@daffodil/core":"0.67.0","@ngrx/effects":"^17.0.0","@ngrx/store":"^17.0.0","rxjs":"7.8.1"},"optionalDependencies":{"@apollo/client":"^3.0.0","@daffodil/driver":"0.67.0","apollo-angular":"^6.0.0","@faker-js/faker":"^7.6.0"},"module":"fesm2022/daffodil-payment.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/daffodil-payment.mjs","esm":"./esm2022/daffodil-payment.mjs","default":"./fesm2022/daffodil-payment.mjs"},"./driver":{"types":"./driver/index.d.ts","esm2022":"./esm2022/driver/daffodil-payment-driver.mjs","esm":"./esm2022/driver/daffodil-payment-driver.mjs","default":"./fesm2022/daffodil-payment-driver.mjs"},"./state":{"types":"./state/index.d.ts","esm2022":"./esm2022/state/daffodil-payment-state.mjs","esm":"./esm2022/state/daffodil-payment-state.mjs","default":"./fesm2022/daffodil-payment-state.mjs"},"./testing":{"types":"./testing/index.d.ts","esm2022":"./esm2022/testing/daffodil-payment-testing.mjs","esm":"./esm2022/testing/daffodil-payment-testing.mjs","default":"./fesm2022/daffodil-payment-testing.mjs"},"./driver/in-memory":{"types":"./driver/in-memory/index.d.ts","esm2022":"./esm2022/driver/in-memory/daffodil-payment-driver-in-memory.mjs","esm":"./esm2022/driver/in-memory/daffodil-payment-driver-in-memory.mjs","default":"./fesm2022/daffodil-payment-driver-in-memory.mjs"},"./driver/testing":{"types":"./driver/testing/index.d.ts","esm2022":"./esm2022/driver/testing/daffodil-payment-driver-testing.mjs","esm":"./esm2022/driver/testing/daffodil-payment-driver-testing.mjs","default":"./fesm2022/daffodil-payment-driver-testing.mjs"},"./state/testing":{"types":"./state/testing/index.d.ts","esm2022":"./esm2022/state/testing/daffodil-payment-state-testing.mjs","esm":"./esm2022/state/testing/daffodil-payment-state-testing.mjs","default":"./fesm2022/daffodil-payment-state-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
@@ -38,4 +38,4 @@ export declare class DaffPaymentGenerateTokenFailure implements Action {
38
38
  /**
39
39
  * A union of the payment action types.
40
40
  */
41
- export declare type DaffPaymentActions<T extends DaffPaymentResponse = DaffPaymentResponse> = DaffPaymentGenerateTokenSuccess<T> | DaffPaymentGenerateTokenFailure;
41
+ export type DaffPaymentActions<T extends DaffPaymentResponse = DaffPaymentResponse> = DaffPaymentGenerateTokenSuccess<T> | DaffPaymentGenerateTokenFailure;
@@ -2,4 +2,4 @@ import { DaffPaymentAvailableProcessor } from './available-processor.type';
2
2
  /**
3
3
  * A collection of {@link DaffPaymentAvailableProcessor}s.
4
4
  */
5
- export declare type DaffPaymentProcessorCollection = Record<DaffPaymentAvailableProcessor['kind'], DaffPaymentAvailableProcessor>;
5
+ export type DaffPaymentProcessorCollection = Record<DaffPaymentAvailableProcessor['kind'], DaffPaymentAvailableProcessor>;
@@ -1,31 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { DaffPaymentResponseFactory } from './factories/public_api';
3
- import { DAFF_PAYMENT_RESPONSE_KIND_FACTORIES } from './injection-tokens/public_api';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Provides the default payment result factory as a payment result type factory.
7
- */
8
- export class DaffPaymentTestingModule {
9
- }
10
- /** @nocollapse */ DaffPaymentTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
- /** @nocollapse */ DaffPaymentTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingModule });
12
- /** @nocollapse */ DaffPaymentTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingModule, providers: [
13
- {
14
- provide: DAFF_PAYMENT_RESPONSE_KIND_FACTORIES,
15
- useExisting: DaffPaymentResponseFactory,
16
- multi: true,
17
- },
18
- ] });
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingModule, decorators: [{
20
- type: NgModule,
21
- args: [{
22
- providers: [
23
- {
24
- provide: DAFF_PAYMENT_RESPONSE_KIND_FACTORIES,
25
- useExisting: DaffPaymentResponseFactory,
26
- multi: true,
27
- },
28
- ],
29
- }]
30
- }] });
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdGluZy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL3BheW1lbnQvdGVzdGluZy9zcmMvdGVzdGluZy5tb2R1bGUudHMiXSwibmFt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uICBwcm92aWRlcnM6IFtcbiAgICB7XG4gICAgICBwcm92aWRlOiBEQUZGX1BBWU1FTlRfUkVTUE9OU0VfS0lORF9GQUNUT1JJRVMsXG4gICAgICB1c2VFeGlzdGluZzogRGFmZlBheW1lbnRSZXNwb25zZUZhY3RvcnksXG4gICAgICBtdWx0aTogdHJ1ZSxcbiAgICB9LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBEYWZmUGF5bWVudFRlc3RpbmdNb2R1bGUgeyB9XG4iXX0=
@@ -1,119 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, NgModule } from '@angular/core';
3
- import { STATUS } from 'angular-in-memory-web-api';
4
- import * as i1 from '@daffodil/payment/testing';
5
- import { DaffPaymentTestingModule } from '@daffodil/payment/testing';
6
- import * as i1$1 from '@angular/common/http';
7
- import { CommonModule } from '@angular/common';
8
- import { DaffPaymentDriver } from '@daffodil/payment/driver';
9
-
10
- /**
11
- * An in-memory service that delegates payment queries to child backends
12
- * via the {@link DAFF_PAYMENT_IN_MEMORY_BACKENDS}.
13
- */
14
- class DaffPaymentInMemoryBackendService {
15
- constructor(factory) {
16
- this.factory = factory;
17
- }
18
- /**
19
- * Automatically called as part of the InMemoryDbService to parse incoming urls to match the InMemory backend urls.
20
- *
21
- * @param url initial url
22
- * @param utils utility to parse url
23
- * @returns ParsedRequestUrl
24
- * @docs-private
25
- */
26
- parseRequestUrl(url, utils) {
27
- return utils.parseRequestUrl(url);
28
- }
29
- /**
30
- * @docs-private
31
- */
32
- createDb() {
33
- return {};
34
- }
35
- /**
36
- * Generates a token from a processor backend.
37
- *
38
- * @param reqInfo request object
39
- * @returns An http response object
40
- */
41
- get(reqInfo) {
42
- return reqInfo.utils.createResponse$(() => ({
43
- status: STATUS.OK,
44
- body: this.factory.create(),
45
- }));
46
- }
47
- }
48
- /** @nocollapse */ DaffPaymentInMemoryBackendService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentInMemoryBackendService, deps: [{ token: i1.DaffPaymentResponseKindFactory }], target: i0.ɵɵFactoryTarget.Injectable });
49
- /** @nocollapse */ DaffPaymentInMemoryBackendService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentInMemoryBackendService, providedIn: 'root' });
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentInMemoryBackendService, decorators: [{
51
- type: Injectable,
52
- args: [{
53
- providedIn: 'root',
54
- }]
55
- }], ctorParameters: function () { return [{ type: i1.DaffPaymentResponseKindFactory }]; } });
56
-
57
- /**
58
- * The payment inmemory driver to mock the payment backend service.
59
- *
60
- * @inheritdoc
61
- */
62
- class DaffPaymentInMemoryDriver {
63
- constructor(http) {
64
- this.http = http;
65
- /**
66
- * @docs-private
67
- */
68
- this.url = '/api/payment';
69
- }
70
- generateToken(request) {
71
- return this.http.get(this.url);
72
- }
73
- }
74
- /** @nocollapse */ DaffPaymentInMemoryDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentInMemoryDriver, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
75
- /** @nocollapse */ DaffPaymentInMemoryDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentInMemoryDriver, providedIn: 'root' });
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentInMemoryDriver, decorators: [{
77
- type: Injectable,
78
- args: [{
79
- providedIn: 'root',
80
- }]
81
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
82
-
83
- /**
84
- * Provides the {@link DaffPaymentInMemoryDriver} as the {@link DaffPaymentDriver}.
85
- */
86
- class DaffPaymentInMemoryDriverModule {
87
- static forRoot() {
88
- return {
89
- ngModule: DaffPaymentInMemoryDriverModule,
90
- providers: [
91
- {
92
- provide: DaffPaymentDriver,
93
- useExisting: DaffPaymentInMemoryDriver,
94
- },
95
- ],
96
- };
97
- }
98
- }
99
- /** @nocollapse */ DaffPaymentInMemoryDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
100
- /** @nocollapse */ DaffPaymentInMemoryDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentInMemoryDriverModule, imports: [CommonModule,
101
- DaffPaymentTestingModule] });
102
- /** @nocollapse */ DaffPaymentInMemoryDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentInMemoryDriverModule, imports: [CommonModule,
103
- DaffPaymentTestingModule] });
104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentInMemoryDriverModule, decorators: [{
105
- type: NgModule,
106
- args: [{
107
- imports: [
108
- CommonModule,
109
- DaffPaymentTestingModule,
110
- ],
111
- }]
112
- }] });
113
-
114
- /**
115
- * Generated bundle index. Do not edit.
116
- */
117
-
118
- export { DaffPaymentInMemoryBackendService, DaffPaymentInMemoryDriver, DaffPaymentInMemoryDriverModule };
119
- //# sourceMappingURL=daffodil-payment-driver-in-memory.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"daffodil-payment-driver-in-memory.mjs","sources":["../../../libs/payment/driver/in-memory/src/backend/payment.service.ts","../../../libs/payment/driver/in-memory/src/driver/payment.service.ts","../../../libs/payment/driver/in-memory/src/driver/payment-driver.module.ts","../../../libs/payment/driver/in-memory/src/daffodil-payment-driver-in-memory.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport {\n InMemoryDbService,\n RequestInfoUtilities,\n ParsedRequestUrl,\n STATUS,\n RequestInfo,\n} from 'angular-in-memory-web-api';\n\nimport { DaffPaymentResponseKindFactory } from '@daffodil/payment/testing';\n\n/**\n * An in-memory service that delegates payment queries to child backends\n * via the {@link DAFF_PAYMENT_IN_MEMORY_BACKENDS}.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentInMemoryBackendService implements InMemoryDbService {\n constructor(\n private factory: DaffPaymentResponseKindFactory,\n ) {}\n\n /**\n * Automatically called as part of the InMemoryDbService to parse incoming urls to match the InMemory backend urls.\n *\n * @param url initial url\n * @param utils utility to parse url\n * @returns ParsedRequestUrl\n * @docs-private\n */\n parseRequestUrl(url: string, utils: RequestInfoUtilities): ParsedRequestUrl {\n return utils.parseRequestUrl(url);\n }\n\n /**\n * @docs-private\n */\n createDb(): any {\n return {};\n }\n\n /**\n * Generates a token from a processor backend.\n *\n * @param reqInfo request object\n * @returns An http response object\n */\n get(reqInfo: RequestInfo) {\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.OK,\n body: this.factory.create(),\n }));\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport {\n DaffPaymentRequest,\n DaffPaymentResponse,\n} from '@daffodil/payment';\nimport { DaffPaymentDriverInterface } from '@daffodil/payment/driver';\n\n/**\n * The payment inmemory driver to mock the payment backend service.\n *\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentInMemoryDriver implements DaffPaymentDriverInterface {\n /**\n * @docs-private\n */\n url = '/api/payment';\n\n constructor(\n private http: HttpClient,\n ) {}\n\n generateToken(request: DaffPaymentRequest): Observable<DaffPaymentResponse> {\n return this.http.get<DaffPaymentResponse>(this.url);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport { DaffPaymentDriver } from '@daffodil/payment/driver';\nimport { DaffPaymentTestingModule } from '@daffodil/payment/testing';\n\nimport { DaffPaymentInMemoryDriver } from './payment.service';\n\n/**\n * Provides the {@link DaffPaymentInMemoryDriver} as the {@link DaffPaymentDriver}.\n */\n@NgModule({\n imports: [\n CommonModule,\n DaffPaymentTestingModule,\n ],\n})\nexport class DaffPaymentInMemoryDriverModule {\n static forRoot(): ModuleWithProviders<DaffPaymentInMemoryDriverModule> {\n return {\n ngModule: DaffPaymentInMemoryDriverModule,\n providers: [\n {\n provide: DaffPaymentDriver,\n useExisting: DaffPaymentInMemoryDriver,\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;AAWA;;;AAGG;MAIU,iCAAiC,CAAA;AAC5C,IAAA,WAAA,CACU,OAAuC,EAAA;AAAvC,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAgC;KAC7C;AAEJ;;;;;;;AAOG;IACH,eAAe,CAAC,GAAW,EAAE,KAA2B,EAAA;AACtD,QAAA,OAAO,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;KACnC;AAED;;AAEG;IACH,QAAQ,GAAA;AACN,QAAA,OAAO,EAAE,CAAC;KACX;AAED;;;;;AAKG;AACH,IAAA,GAAG,CAAC,OAAoB,EAAA;QACtB,OAAO,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO;YAC1C,MAAM,EAAE,MAAM,CAAC,EAAE;AACjB,YAAA,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;AAC5B,SAAA,CAAC,CAAC,CAAC;KACL;;iJAnCU,iCAAiC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAjC,mBAAA,iCAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,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AAA,WAAW,EAAE,yBAAyB;AACvC,iBAAA;AACF,aAAA;SACF,CAAC;KACH;;+IAXU,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA/B,mBAAA,+BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,YAJxC,YAAY;QACZ,wBAAwB,CAAA,EAAA,CAAA,CAAA;AAGf,mBAAA,+BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,YAJxC,YAAY;QACZ,wBAAwB,CAAA,EAAA,CAAA,CAAA;2FAGf,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAN3C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,wBAAwB;AACzB,qBAAA;iBACF,CAAA;;;ACnBD;;AAEG;;;;"}
@@ -1,64 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { Injectable, NgModule } from '@angular/core';
4
- import { DaffPaymentDriver } from '@daffodil/payment/driver';
5
- import { of } from 'rxjs';
6
- import * as i1 from '@daffodil/payment/testing';
7
-
8
- /**
9
- * A basic payment driver that creates mock payment results of different kinds.
10
- * For testing purposes.
11
- *
12
- * @inheritdoc
13
- */
14
- class DaffPaymentTestingDriver {
15
- constructor(paymentResponseFactory) {
16
- this.paymentResponseFactory = paymentResponseFactory;
17
- }
18
- generateToken(request) {
19
- return of(this.paymentResponseFactory.create());
20
- }
21
- }
22
- /** @nocollapse */ DaffPaymentTestingDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingDriver, deps: [{ token: i1.DaffPaymentResponseKindFactory }], target: i0.ɵɵFactoryTarget.Injectable });
23
- /** @nocollapse */ DaffPaymentTestingDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingDriver, providedIn: 'root' });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingDriver, decorators: [{
25
- type: Injectable,
26
- args: [{
27
- providedIn: 'root',
28
- }]
29
- }], ctorParameters: function () { return [{ type: i1.DaffPaymentResponseKindFactory }]; } });
30
-
31
- /**
32
- * Provides the {@link DaffPaymentTestingDriver} as the {@link DaffPaymentDriver}.
33
- */
34
- class DaffPaymentTestingDriverModule {
35
- static forRoot() {
36
- return {
37
- ngModule: DaffPaymentTestingDriverModule,
38
- providers: [
39
- {
40
- provide: DaffPaymentDriver,
41
- useExisting: DaffPaymentTestingDriver,
42
- },
43
- ],
44
- };
45
- }
46
- }
47
- /** @nocollapse */ DaffPaymentTestingDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
- /** @nocollapse */ DaffPaymentTestingDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingDriverModule, imports: [CommonModule] });
49
- /** @nocollapse */ DaffPaymentTestingDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingDriverModule, imports: [CommonModule] });
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentTestingDriverModule, decorators: [{
51
- type: NgModule,
52
- args: [{
53
- imports: [
54
- CommonModule,
55
- ],
56
- }]
57
- }] });
58
-
59
- /**
60
- * Generated bundle index. Do not edit.
61
- */
62
-
63
- export { DaffPaymentTestingDriver, DaffPaymentTestingDriverModule };
64
- //# sourceMappingURL=daffodil-payment-driver-testing.mjs.map