@daffodil/authorizenet 0.81.0 → 0.82.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.
@@ -19,10 +19,10 @@ class DaffInMemoryAuthorizeNetService extends DaffInMemoryDriverBase {
19
19
  generateToken(paymentTokenRequest) {
20
20
  return this.http.post(this.url + '/generateToken', paymentTokenRequest);
21
21
  }
22
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffInMemoryAuthorizeNetService, deps: [{ token: i1.HttpClient }, { token: i2.InMemoryBackendConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
23
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffInMemoryAuthorizeNetService, providedIn: 'root' }); }
22
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffInMemoryAuthorizeNetService, deps: [{ token: i1.HttpClient }, { token: i2.InMemoryBackendConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
23
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffInMemoryAuthorizeNetService, providedIn: 'root' }); }
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffInMemoryAuthorizeNetService, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffInMemoryAuthorizeNetService, decorators: [{
26
26
  type: Injectable,
27
27
  args: [{
28
28
  providedIn: 'root',
@@ -44,10 +44,10 @@ class DaffInMemoryBackendAuthorizenetService {
44
44
  status: STATUS.OK,
45
45
  }));
46
46
  }
47
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffInMemoryBackendAuthorizenetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
48
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffInMemoryBackendAuthorizenetService, providedIn: 'root' }); }
47
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffInMemoryBackendAuthorizenetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
48
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffInMemoryBackendAuthorizenetService, providedIn: 'root' }); }
49
49
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffInMemoryBackendAuthorizenetService, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffInMemoryBackendAuthorizenetService, decorators: [{
51
51
  type: Injectable,
52
52
  args: [{
53
53
  providedIn: 'root',
@@ -65,11 +65,11 @@ class DaffAuthorizeNetInMemoryDriverModule {
65
65
  ],
66
66
  };
67
67
  }
68
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
69
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetInMemoryDriverModule, imports: [CommonModule] }); }
70
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetInMemoryDriverModule, imports: [CommonModule] }); }
68
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
69
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetInMemoryDriverModule, imports: [CommonModule] }); }
70
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetInMemoryDriverModule, imports: [CommonModule] }); }
71
71
  }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetInMemoryDriverModule, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetInMemoryDriverModule, decorators: [{
73
73
  type: NgModule,
74
74
  args: [{
75
75
  imports: [
@@ -55,10 +55,10 @@ class DaffMagentoAuthorizeNetService {
55
55
  });
56
56
  });
57
57
  }
58
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffMagentoAuthorizeNetService, deps: [{ token: DaffAuthorizeNetConfigToken }, { token: i1.DaffAcceptJsLoadingService }], target: i0.ɵɵFactoryTarget.Injectable }); }
59
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffMagentoAuthorizeNetService, providedIn: 'root' }); }
58
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffMagentoAuthorizeNetService, deps: [{ token: DaffAuthorizeNetConfigToken }, { token: i1.DaffAcceptJsLoadingService }], target: i0.ɵɵFactoryTarget.Injectable }); }
59
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffMagentoAuthorizeNetService, providedIn: 'root' }); }
60
60
  }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffMagentoAuthorizeNetService, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffMagentoAuthorizeNetService, decorators: [{
62
62
  type: Injectable,
63
63
  args: [{
64
64
  providedIn: 'root',
@@ -78,10 +78,10 @@ class DaffMagentoAuthorizeNetPaymentService {
78
78
  data: response,
79
79
  })));
80
80
  }
81
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffMagentoAuthorizeNetPaymentService, deps: [{ token: DaffMagentoAuthorizeNetService }], target: i0.ɵɵFactoryTarget.Injectable }); }
82
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffMagentoAuthorizeNetPaymentService, providedIn: 'root' }); }
81
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffMagentoAuthorizeNetPaymentService, deps: [{ token: DaffMagentoAuthorizeNetService }], target: i0.ɵɵFactoryTarget.Injectable }); }
82
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffMagentoAuthorizeNetPaymentService, providedIn: 'root' }); }
83
83
  }
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffMagentoAuthorizeNetPaymentService, decorators: [{
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffMagentoAuthorizeNetPaymentService, decorators: [{
85
85
  type: Injectable,
86
86
  args: [{
87
87
  providedIn: 'root',
@@ -103,11 +103,11 @@ class DaffMagentoAuthorizeNetDriverModule {
103
103
  ],
104
104
  };
105
105
  }
106
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
107
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, imports: [CommonModule] }); }
108
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, imports: [CommonModule] }); }
106
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
107
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, imports: [CommonModule] }); }
108
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, imports: [CommonModule] }); }
109
109
  }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, decorators: [{
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffMagentoAuthorizeNetDriverModule, decorators: [{
111
111
  type: NgModule,
112
112
  args: [{
113
113
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-authorizenet-driver-magento.mjs","sources":["../../../libs/authorizenet/driver/magento/src/authorize-net-payment-id.ts","../../../libs/authorizenet/driver/magento/src/transformers/authorize-net-transformer.ts","../../../libs/authorizenet/driver/magento/src/authorize-net.service.ts","../../../libs/authorizenet/driver/magento/src/payment.service.ts","../../../libs/authorizenet/driver/magento/src/authorize-net.module.ts","../../../libs/authorizenet/driver/magento/src/daffodil-authorizenet-driver-magento.ts"],"sourcesContent":["export const MAGENTO_AUTHORIZE_NET_PAYMENT_ID = 'authorizenet_acceptjs';\n","import {\n DaffAuthorizeNetTokenRequest,\n AuthorizeNetResponse,\n AuthorizeNetRequest,\n} from '@daffodil/authorizenet';\nimport { DaffAuthorizeNetConfig } from '@daffodil/authorizenet/driver';\n\nimport { MagentoAuthorizeNetPayment } from '../models/authorize-net-payment';\n\nexport function transformMagentoAuthorizeNetRequest(\n request: DaffAuthorizeNetTokenRequest,\n config: DaffAuthorizeNetConfig,\n): AuthorizeNetRequest {\n return {\n cardData: {\n cardNumber: request.creditCard.cardnumber,\n cardCode: request.creditCard.securitycode,\n month: request.creditCard.month,\n year: request.creditCard.year,\n },\n authData: {\n clientKey: config.clientKey,\n apiLoginID: config.apiLoginID,\n },\n };\n};\n\nexport function transformMagentoAuthorizeNetResponse(response: AuthorizeNetResponse, ccNumber: string): MagentoAuthorizeNetPayment {\n return {\n code: 'authorizenet_acceptjs',\n authorizenet_acceptjs: {\n cc_last_4: parseInt(ccNumber.slice(ccNumber.length - 4), 10),\n opaque_data_descriptor: 'COMMON.ACCEPT.INAPP.PAYMENT',\n opaque_data_value: response.opaqueData.dataValue,\n },\n };\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport {\n DaffAuthorizeNetTokenRequest,\n AuthorizeNetResponse,\n DaffAcceptJsLoadingService,\n} from '@daffodil/authorizenet';\nimport {\n DaffAuthorizeNetService,\n DaffAuthorizeNetConfigToken,\n DaffAuthorizeNetConfig,\n DAFF_AUTHORIZE_NET_ERROR_CODE_MAP,\n DaffAuthorizeNetUnconfiguredError,\n} from '@daffodil/authorizenet/driver';\n\nimport { MagentoAuthorizeNetPayment } from './models/authorize-net-payment';\nimport {\n transformMagentoAuthorizeNetRequest,\n transformMagentoAuthorizeNetResponse,\n} from './transformers/authorize-net-transformer';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoAuthorizeNetService implements DaffAuthorizeNetService {\n\n constructor(\n @Inject(DaffAuthorizeNetConfigToken) public config: DaffAuthorizeNetConfig,\n private acceptJsLoader: DaffAcceptJsLoadingService,\n ) {\n if (!this.config?.apiLoginID || !this.config?.clientKey) {\n throw new DaffAuthorizeNetUnconfiguredError(\n '`apiLoginID` and `clientKey` are empty, are you missing your Authorize.net Credentials?',\n );\n }\n }\n\n generateToken(paymentTokenRequest: DaffAuthorizeNetTokenRequest): Observable<MagentoAuthorizeNetPayment> {\n return new Observable(observer => {\n this.acceptJsLoader.getAccept().dispatchData(\n transformMagentoAuthorizeNetRequest(paymentTokenRequest, this.config),\n (response: AuthorizeNetResponse) => {\n if (response.messages.resultCode === 'Error') {\n const MappedError = DAFF_AUTHORIZE_NET_ERROR_CODE_MAP[response.messages.message[0].code];\n const message = response.messages.message[0].code + ': ' + response.messages.message[0].text;\n\n throw MappedError ? new MappedError(message) : new Error(message);\n } else {\n observer.next(transformMagentoAuthorizeNetResponse(response, paymentTokenRequest.creditCard.cardnumber));\n }\n },\n );\n });\n }\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n map,\n Observable,\n} from 'rxjs';\n\nimport {\n DaffAuthorizenetPaymentRequest,\n DaffAuthorizenetPaymentResponse,\n} from '@daffodil/authorizenet';\nimport { DaffAuthorizeNetPaymentDriverInterface } from '@daffodil/authorizenet/driver';\n\nimport { DaffMagentoAuthorizeNetService } from './authorize-net.service';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoAuthorizeNetPaymentService implements DaffAuthorizeNetPaymentDriverInterface {\n constructor(\n private authorizenetService: DaffMagentoAuthorizeNetService,\n ) {}\n\n generateToken(request: DaffAuthorizenetPaymentRequest): Observable<DaffAuthorizenetPaymentResponse> {\n return this.authorizenetService.generateToken(request.data).pipe(\n map(response => ({\n method: 'anet',\n data: response,\n })),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport {\n DaffAuthorizeNetConfig,\n provideDaffAuthorizeNetConfigToken,\n provideDaffAuthorizeNetDriver,\n provideDaffAuthorizeNetPaymentDriver,\n provideDaffAuthorizeNetPaymentId,\n} from '@daffodil/authorizenet/driver';\n\nimport { MAGENTO_AUTHORIZE_NET_PAYMENT_ID } from './authorize-net-payment-id';\nimport { DaffMagentoAuthorizeNetService } from './authorize-net.service';\nimport { DaffMagentoAuthorizeNetPaymentService } from './payment.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffMagentoAuthorizeNetDriverModule {\n static forRoot(config: DaffAuthorizeNetConfig): ModuleWithProviders<DaffMagentoAuthorizeNetDriverModule> {\n if(!config.apiLoginID || !config.clientKey) {\n throw Error('You must provide an apiLoginID and clientKey for Authorize.Net configuration.');\n }\n\n return {\n ngModule: DaffMagentoAuthorizeNetDriverModule,\n providers: [\n provideDaffAuthorizeNetConfigToken(config),\n provideDaffAuthorizeNetDriver(DaffMagentoAuthorizeNetService),\n provideDaffAuthorizeNetPaymentDriver(DaffMagentoAuthorizeNetPaymentService),\n provideDaffAuthorizeNetPaymentId(MAGENTO_AUTHORIZE_NET_PAYMENT_ID),\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.DaffMagentoAuthorizeNetService"],"mappings":";;;;;;;AAAO,MAAM,gCAAgC,GAAG;;ACShC,SAAA,mCAAmC,CACjD,OAAqC,EACrC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CAAC,8BAA8B,CAAC;gBAC7D,oCAAoC,CAAC,qCAAqC,CAAC;gBAC3E,gCAAgC,CAAC,gCAAgC,CAAC;AACnE,aAAA;SACF;;iIAdQ,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAnC,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,mCAAmC,YAH5C,YAAY,CAAA,EAAA,CAAA,CAAA;AAGH,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,mCAAmC,YAH5C,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAGH,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAL/C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACF,iBAAA;;;ACtBD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-authorizenet-driver-magento.mjs","sources":["../../../libs/authorizenet/driver/magento/src/authorize-net-payment-id.ts","../../../libs/authorizenet/driver/magento/src/transformers/authorize-net-transformer.ts","../../../libs/authorizenet/driver/magento/src/authorize-net.service.ts","../../../libs/authorizenet/driver/magento/src/payment.service.ts","../../../libs/authorizenet/driver/magento/src/authorize-net.module.ts","../../../libs/authorizenet/driver/magento/src/daffodil-authorizenet-driver-magento.ts"],"sourcesContent":["export const MAGENTO_AUTHORIZE_NET_PAYMENT_ID = 'authorizenet_acceptjs';\n","import {\n DaffAuthorizeNetTokenRequest,\n AuthorizeNetResponse,\n AuthorizeNetRequest,\n} from '@daffodil/authorizenet';\nimport { DaffAuthorizeNetConfig } from '@daffodil/authorizenet/driver';\n\nimport { MagentoAuthorizeNetPayment } from '../models/authorize-net-payment';\n\nexport function transformMagentoAuthorizeNetRequest(\n request: DaffAuthorizeNetTokenRequest,\n config: DaffAuthorizeNetConfig,\n): AuthorizeNetRequest {\n return {\n cardData: {\n cardNumber: request.creditCard.cardnumber,\n cardCode: request.creditCard.securitycode,\n month: request.creditCard.month,\n year: request.creditCard.year,\n },\n authData: {\n clientKey: config.clientKey,\n apiLoginID: config.apiLoginID,\n },\n };\n};\n\nexport function transformMagentoAuthorizeNetResponse(response: AuthorizeNetResponse, ccNumber: string): MagentoAuthorizeNetPayment {\n return {\n code: 'authorizenet_acceptjs',\n authorizenet_acceptjs: {\n cc_last_4: parseInt(ccNumber.slice(ccNumber.length - 4), 10),\n opaque_data_descriptor: 'COMMON.ACCEPT.INAPP.PAYMENT',\n opaque_data_value: response.opaqueData.dataValue,\n },\n };\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport {\n DaffAuthorizeNetTokenRequest,\n AuthorizeNetResponse,\n DaffAcceptJsLoadingService,\n} from '@daffodil/authorizenet';\nimport {\n DaffAuthorizeNetService,\n DaffAuthorizeNetConfigToken,\n DaffAuthorizeNetConfig,\n DAFF_AUTHORIZE_NET_ERROR_CODE_MAP,\n DaffAuthorizeNetUnconfiguredError,\n} from '@daffodil/authorizenet/driver';\n\nimport { MagentoAuthorizeNetPayment } from './models/authorize-net-payment';\nimport {\n transformMagentoAuthorizeNetRequest,\n transformMagentoAuthorizeNetResponse,\n} from './transformers/authorize-net-transformer';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoAuthorizeNetService implements DaffAuthorizeNetService {\n\n constructor(\n @Inject(DaffAuthorizeNetConfigToken) public config: DaffAuthorizeNetConfig,\n private acceptJsLoader: DaffAcceptJsLoadingService,\n ) {\n if (!this.config?.apiLoginID || !this.config?.clientKey) {\n throw new DaffAuthorizeNetUnconfiguredError(\n '`apiLoginID` and `clientKey` are empty, are you missing your Authorize.net Credentials?',\n );\n }\n }\n\n generateToken(paymentTokenRequest: DaffAuthorizeNetTokenRequest): Observable<MagentoAuthorizeNetPayment> {\n return new Observable(observer => {\n this.acceptJsLoader.getAccept().dispatchData(\n transformMagentoAuthorizeNetRequest(paymentTokenRequest, this.config),\n (response: AuthorizeNetResponse) => {\n if (response.messages.resultCode === 'Error') {\n const MappedError = DAFF_AUTHORIZE_NET_ERROR_CODE_MAP[response.messages.message[0].code];\n const message = response.messages.message[0].code + ': ' + response.messages.message[0].text;\n\n throw MappedError ? new MappedError(message) : new Error(message);\n } else {\n observer.next(transformMagentoAuthorizeNetResponse(response, paymentTokenRequest.creditCard.cardnumber));\n }\n },\n );\n });\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n map,\n Observable,\n} from 'rxjs';\n\nimport {\n DaffAuthorizenetPaymentRequest,\n DaffAuthorizenetPaymentResponse,\n} from '@daffodil/authorizenet';\nimport { DaffAuthorizeNetPaymentDriverInterface } from '@daffodil/authorizenet/driver';\n\nimport { DaffMagentoAuthorizeNetService } from './authorize-net.service';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoAuthorizeNetPaymentService implements DaffAuthorizeNetPaymentDriverInterface {\n constructor(\n private authorizenetService: DaffMagentoAuthorizeNetService,\n ) {}\n\n generateToken(request: DaffAuthorizenetPaymentRequest): Observable<DaffAuthorizenetPaymentResponse> {\n return this.authorizenetService.generateToken(request.data).pipe(\n map(response => ({\n method: 'anet',\n data: response,\n })),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport {\n DaffAuthorizeNetConfig,\n provideDaffAuthorizeNetConfigToken,\n provideDaffAuthorizeNetDriver,\n provideDaffAuthorizeNetPaymentDriver,\n provideDaffAuthorizeNetPaymentId,\n} from '@daffodil/authorizenet/driver';\n\nimport { MAGENTO_AUTHORIZE_NET_PAYMENT_ID } from './authorize-net-payment-id';\nimport { DaffMagentoAuthorizeNetService } from './authorize-net.service';\nimport { DaffMagentoAuthorizeNetPaymentService } from './payment.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffMagentoAuthorizeNetDriverModule {\n static forRoot(config: DaffAuthorizeNetConfig): ModuleWithProviders<DaffMagentoAuthorizeNetDriverModule> {\n if(!config.apiLoginID || !config.clientKey) {\n throw Error('You must provide an apiLoginID and clientKey for Authorize.Net configuration.');\n }\n\n return {\n ngModule: DaffMagentoAuthorizeNetDriverModule,\n providers: [\n provideDaffAuthorizeNetConfigToken(config),\n provideDaffAuthorizeNetDriver(DaffMagentoAuthorizeNetService),\n provideDaffAuthorizeNetPaymentDriver(DaffMagentoAuthorizeNetPaymentService),\n provideDaffAuthorizeNetPaymentId(MAGENTO_AUTHORIZE_NET_PAYMENT_ID),\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.DaffMagentoAuthorizeNetService"],"mappings":";;;;;;;AAAO,MAAM,gCAAgC,GAAG;;ACShC,SAAA,mCAAmC,CACjD,OAAqC,EACrC,MAA8B,EAAA;IAE9B,OAAO;AACL,QAAA,QAAQ,EAAE;AACR,YAAA,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,UAAU;AACzC,YAAA,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,YAAY;AACzC,YAAA,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;AAC/B,YAAA,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;AAC9B,SAAA;AACD,QAAA,QAAQ,EAAE;YACR,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,UAAU,EAAE,MAAM,CAAC,UAAU;AAC9B,SAAA;KACF;AACH;AAAC;AAEe,SAAA,oCAAoC,CAAC,QAA8B,EAAE,QAAgB,EAAA;IACnG,OAAO;AACL,QAAA,IAAI,EAAE,u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AA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mCAAmC,YAH5C,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAGH,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAL/C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACF,iBAAA;;;ACtBD;;AAEG;;;;"}
@@ -8,10 +8,10 @@ class DaffTestingAuthorizeNetService {
8
8
  generateToken(tokenRequest) {
9
9
  return of({ paymentInfo: 'paymentInfo' });
10
10
  }
11
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffTestingAuthorizeNetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
12
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffTestingAuthorizeNetService, providedIn: 'root' }); }
11
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffTestingAuthorizeNetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
12
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffTestingAuthorizeNetService, providedIn: 'root' }); }
13
13
  }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffTestingAuthorizeNetService, decorators: [{
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffTestingAuthorizeNetService, decorators: [{
15
15
  type: Injectable,
16
16
  args: [{
17
17
  providedIn: 'root',
@@ -27,11 +27,11 @@ class DaffTestingAuthorizeNetDriverModule {
27
27
  ],
28
28
  };
29
29
  }
30
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffTestingAuthorizeNetDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
31
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: DaffTestingAuthorizeNetDriverModule, imports: [CommonModule] }); }
32
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffTestingAuthorizeNetDriverModule, imports: [CommonModule] }); }
30
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffTestingAuthorizeNetDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
31
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: DaffTestingAuthorizeNetDriverModule, imports: [CommonModule] }); }
32
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffTestingAuthorizeNetDriverModule, imports: [CommonModule] }); }
33
33
  }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffTestingAuthorizeNetDriverModule, decorators: [{
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffTestingAuthorizeNetDriverModule, decorators: [{
35
35
  type: NgModule,
36
36
  args: [{
37
37
  imports: [
@@ -12,22 +12,22 @@ class MockDaffAuthorizeNetFacade {
12
12
  }
13
13
  dispatch(action) { }
14
14
  ;
15
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: MockDaffAuthorizeNetFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
16
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: MockDaffAuthorizeNetFacade, providedIn: 'root' }); }
15
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: MockDaffAuthorizeNetFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
16
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: MockDaffAuthorizeNetFacade, providedIn: 'root' }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: MockDaffAuthorizeNetFacade, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: MockDaffAuthorizeNetFacade, decorators: [{
19
19
  type: Injectable,
20
20
  args: [{ providedIn: 'root' }]
21
21
  }] });
22
22
 
23
23
  class DaffAuthorizeNetStateTestingModule {
24
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetStateTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
25
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetStateTestingModule }); }
26
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetStateTestingModule, providers: [
24
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetStateTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
25
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetStateTestingModule }); }
26
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetStateTestingModule, providers: [
27
27
  { provide: DaffAuthorizeNetFacade, useExisting: MockDaffAuthorizeNetFacade },
28
28
  ] }); }
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetStateTestingModule, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetStateTestingModule, decorators: [{
31
31
  type: NgModule,
32
32
  args: [{
33
33
  providers: [
@@ -240,10 +240,10 @@ class DaffAuthorizeNetFacade {
240
240
  dispatch(action) {
241
241
  this.store.dispatch(action);
242
242
  }
243
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
244
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetFacade, providedIn: 'root' }); }
243
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
244
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetFacade, providedIn: 'root' }); }
245
245
  }
246
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetFacade, decorators: [{
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetFacade, decorators: [{
247
247
  type: Injectable,
248
248
  args: [{
249
249
  providedIn: 'root',
@@ -266,10 +266,10 @@ class DaffAuthorizeNetEffects {
266
266
  this.updatePaymentFailureSubstream$ = createEffect(() => this.actions$.pipe(substream([DaffAuthorizeNetActionTypes.UpdatePaymentAction, DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingFailureAction], DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingSuccessAction), map(([updatePaymentAction, updatePaymentFailureAction]) => new DaffAuthorizeNetUpdatePaymentFailure(this.errorMatcher(updatePaymentFailureAction.payload[0])))));
267
267
  this.loadAcceptJs$ = createEffect(() => (maxTries = this.config.acceptMaxRetries, ms = this.config.acceptBackoffTiming) => this.actions$.pipe(ofType(DaffAuthorizeNetActionTypes.LoadAcceptJsAction), tap((action) => this.acceptJsLoadingService.load()), switchMap(() => defer(() => of(this.acceptJsLoadingService.getAccept())).pipe(backoff(maxTries, ms), map((Accept) => Accept ? new DaffLoadAcceptJsSuccess() : new DaffLoadAcceptJsFailure(new DaffAuthorizeNetAcceptjsMissingError('Accept.js failed to load.'))), catchError((error) => of(new DaffLoadAcceptJsFailure(this.errorMatcher(error))))))));
268
268
  }
269
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetEffects, deps: [{ token: i1$1.Actions }, { token: DaffAuthorizeNetDriver }, { token: DaffAuthorizeNetPaymentId }, { token: DAFF_AUTHORIZENET_ERROR_MATCHER }, { token: DAFF_AUTHORIZE_NET_STATE_CONFIG }, { token: i2.DaffAcceptJsLoadingService }], target: i0.ɵɵFactoryTarget.Injectable }); }
270
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetEffects }); }
269
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetEffects, deps: [{ token: i1$1.Actions }, { token: DaffAuthorizeNetDriver }, { token: DaffAuthorizeNetPaymentId }, { token: DAFF_AUTHORIZENET_ERROR_MATCHER }, { token: DAFF_AUTHORIZE_NET_STATE_CONFIG }, { token: i2.DaffAcceptJsLoadingService }], target: i0.ɵɵFactoryTarget.Injectable }); }
270
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetEffects }); }
271
271
  }
272
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetEffects, decorators: [{
272
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetEffects, decorators: [{
273
273
  type: Injectable
274
274
  }], ctorParameters: () => [{ type: i1$1.Actions }, { type: undefined, decorators: [{
275
275
  type: Inject,
@@ -318,12 +318,12 @@ class DaffAuthorizeNetStateModule {
318
318
  ],
319
319
  };
320
320
  }
321
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
322
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetStateModule, imports: [i1.StoreFeatureModule, i1$1.EffectsFeatureModule] }); }
323
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetStateModule, imports: [StoreModule.forFeature(DAFF_AUTHORIZENET_STORE_FEATURE_KEY, DAFF_AUTHORIZE_NET_REDUCERS),
321
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
322
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetStateModule, imports: [i1.StoreFeatureModule, i1$1.EffectsFeatureModule] }); }
323
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetStateModule, imports: [StoreModule.forFeature(DAFF_AUTHORIZENET_STORE_FEATURE_KEY, DAFF_AUTHORIZE_NET_REDUCERS),
324
324
  EffectsModule.forFeature([DaffAuthorizeNetEffects])] }); }
325
325
  }
326
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetStateModule, decorators: [{
326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetStateModule, decorators: [{
327
327
  type: NgModule,
328
328
  args: [{
329
329
  imports: [
@@ -334,9 +334,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImpor
334
334
  }] });
335
335
 
336
336
  class DaffAuthorizeNetPaymentStateModule {
337
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetPaymentStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
338
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetPaymentStateModule, imports: [DaffPaymentStateModule] }); }
339
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetPaymentStateModule, providers: [
337
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetPaymentStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
338
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetPaymentStateModule, imports: [DaffPaymentStateModule] }); }
339
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetPaymentStateModule, providers: [
340
340
  daffPaymentProvideAvailableProcessors({
341
341
  kind: DAFF_AUTHORIZENET_PAYMENT_KIND,
342
342
  action: DaffAuthorizeNetActionTypes.ApplyPaymentAction,
@@ -347,7 +347,7 @@ class DaffAuthorizeNetPaymentStateModule {
347
347
  })),
348
348
  ], imports: [DaffPaymentStateModule] }); }
349
349
  }
350
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetPaymentStateModule, decorators: [{
350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetPaymentStateModule, decorators: [{
351
351
  type: NgModule,
352
352
  args: [{
353
353
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-authorizenet-state.mjs","sources":["../../../libs/authorizenet/state/src/actions/authorizenet.actions.ts","../../../libs/authorizenet/state/src/reducers/authorize-net/initial-state.ts","../../../libs/authorizenet/state/src/reducers/authorize-net/authorize-net.reducer.ts","../../../libs/authorizenet/state/src/reducers/authorize-net.reducers.ts","../../../libs/authorizenet/state/src/reducers/authorizenet-store-feature-key.ts","../../../libs/authorizenet/state/src/reducers/token/extra.token.ts","../../../libs/authorizenet/state/src/selectors/authorize-net.selector.ts","../../../libs/authorizenet/state/src/config/default.ts","../../../libs/authorizenet/state/src/config/token.ts","../../../libs/authorizenet/state/src/injection-tokens/error-matcher.token.ts","../../../libs/authorizenet/state/src/facades/authorize-net.facade.ts","../../../libs/authorizenet/state/src/effects/authorize-net.effects.ts","../../../libs/authorizenet/state/src/reducers/token/reducers.token.ts","../../../libs/authorizenet/state/src/authorize-net-state.module.ts","../../../libs/authorizenet/state/src/payment-state.module.ts","../../../libs/authorizenet/state/src/daffodil-authorizenet-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport {\n DaffAuthorizenetPaymentRequest,\n DaffAuthorizeNetTokenRequest,\n} from '@daffodil/authorizenet';\nimport { DaffCartAddress } from '@daffodil/cart';\nimport { DaffIdentifiable } from '@daffodil/core';\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffPersonalAddress } from '@daffodil/geography';\nimport { DaffPaymentGenerateToken } from '@daffodil/payment/state';\n\nexport enum DaffAuthorizeNetActionTypes {\n UpdatePaymentAction = '[@daffodil/authorizenet] Update Payment',\n UpdatePaymentSuccessAction = '[@daffodil/authorizenet] Update Payment Success',\n UpdatePaymentFailureAction = '[@daffodil/authorizenet] Update Payment Failure',\n ApplyPaymentAction = '[@daffodil/authorizenet] Apply Payment',\n LoadAcceptJsAction = '[@daffodil/authorizenet] Load Accept Js',\n LoadAcceptJsSuccessAction = '[@daffodil/authorizenet] Load Accept Js Success',\n LoadAcceptJsFailureAction = '[@daffodil/authorizenet] Load Accept Js Failure'\n}\n\n/**\n * An action triggered to initialize a generate token request.\n *\n * @param payload - An DaffAuthorizeNetRequestData object.\n */\nexport class DaffAuthorizeNetUpdatePayment<\n T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest,\n V extends DaffCartAddress = DaffCartAddress\n> implements Action {\n readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentAction;\n\n constructor(public tokenRequest: T, public address: Partial<V>) { }\n}\n\n/**\n * An action triggered upon successfully updating the payment method.\n *\n * @param payload - A string that is the payment nonce for a credit card.\n */\nexport class DaffAuthorizeNetUpdatePaymentSuccess implements Action {\n readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentSuccessAction;\n}\n\n/**\n * An action triggered upon failing to update the payment method.\n *\n * @param payload - A string that is an error message.\n */\nexport class DaffAuthorizeNetUpdatePaymentFailure implements Action {\n readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentFailureAction;\n\n constructor(public payload: DaffStateError) { }\n}\n\nexport class DaffLoadAcceptJs implements Action {\n readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsAction;\n}\n\n/**\n * Indicates that the AcceptJs library has loaded successfully.\n */\nexport class DaffLoadAcceptJsSuccess implements Action {\n readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsSuccessAction;\n}\n\n/**\n * Indicates that the AcceptJs library has failed to load\n */\nexport class DaffLoadAcceptJsFailure implements Action {\n readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsFailureAction;\n\n constructor(public payload: DaffStateError) {};\n}\n\n/**\n * Triggers the application of an authorize.net payment.\n */\nexport class DaffAuthorizenetApplyPayment implements DaffPaymentGenerateToken<DaffAuthorizenetPaymentRequest> {\n readonly type = DaffAuthorizeNetActionTypes.ApplyPaymentAction;\n\n constructor(\n public request: DaffAuthorizenetPaymentRequest,\n public address?: DaffPersonalAddress | DaffIdentifiable,\n ) {};\n}\n\nexport type DaffAuthorizeNetActions<\n T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest\n> =\n\t| DaffAuthorizeNetUpdatePayment<T>\n\t| DaffAuthorizeNetUpdatePaymentSuccess\n\t| DaffAuthorizeNetUpdatePaymentFailure\n\t| DaffAuthorizenetApplyPayment\n\t| DaffLoadAcceptJsSuccess\n\t| DaffLoadAcceptJsFailure\n\t| DaffLoadAcceptJs;\n","import { DaffAuthorizeNetReducerState } from './authorize-net-reducer.interface';\n\nexport const daffAuthorizeNetReducerInitialState: DaffAuthorizeNetReducerState = {\n isAcceptLoaded: false,\n paymentError: null,\n acceptJsLoadError: null,\n loading: false,\n};\n","import { DaffAuthorizeNetTokenRequest } from '@daffodil/authorizenet';\nimport {\n DaffPaymentActions,\n DaffPaymentActionTypes,\n} from '@daffodil/payment/state';\n\nimport { DaffAuthorizeNetReducerState } from './authorize-net-reducer.interface';\nimport { daffAuthorizeNetReducerInitialState } from './initial-state';\nimport {\n DaffAuthorizeNetActions,\n DaffAuthorizeNetActionTypes,\n} from '../../actions/authorizenet.actions';\n\nexport function daffAuthorizeNetReducer <T extends DaffAuthorizeNetTokenRequest>(\n state: DaffAuthorizeNetReducerState = daffAuthorizeNetReducerInitialState,\n action: DaffAuthorizeNetActions<T> | DaffPaymentActions,\n): DaffAuthorizeNetReducerState {\n switch (action.type) {\n case DaffAuthorizeNetActionTypes.UpdatePaymentAction:\n case DaffAuthorizeNetActionTypes.ApplyPaymentAction:\n return {\n ...state,\n loading: true,\n };\n case DaffAuthorizeNetActionTypes.UpdatePaymentSuccessAction:\n case DaffPaymentActionTypes.GenerateTokenSuccessAction:\n return {\n ...state,\n loading: false,\n paymentError: null,\n };\n case DaffAuthorizeNetActionTypes.UpdatePaymentFailureAction:\n case DaffPaymentActionTypes.GenerateTokenFailureAction:\n return {\n ...state,\n loading: false,\n paymentError: action.payload,\n };\n\n case DaffAuthorizeNetActionTypes.LoadAcceptJsSuccessAction:\n return {\n ...state,\n isAcceptLoaded: true,\n acceptJsLoadError: null,\n };\n case DaffAuthorizeNetActionTypes.LoadAcceptJsFailureAction:\n return {\n ...state,\n loading: false,\n acceptJsLoadError: action.payload,\n };\n default:\n return state;\n }\n}\n","import { daffAuthorizeNetReducer } from './authorize-net/authorize-net.reducer';\n\nexport const daffAuthorizeNetReducers = {\n authorizeNet: daffAuthorizeNetReducer,\n};\n","export const DAFF_AUTHORIZENET_STORE_FEATURE_KEY = 'daffAuthorizenet';\n","import { ActionReducer } from '@ngrx/store';\n\nimport { createMultiInjectionToken } from '@daffodil/core';\n\nimport { DaffAuthorizeNetReducersState } from '../authorize-net-reducers.interface';\n\nexport const {\n /**\n * A token to hold the injectable extra reducers.\n *\n * Prefer using {@link daffAuthorizeNetProvideExtraReducers}.\n */\n token: DAFF_AUTHORIZE_NET_EXTRA_REDUCERS,\n\n /**\n * Provides additional reducers that run after the standard Daffodil authorizenet reducers.\n *\n * @example\n * ```ts\n * providers: [\n * ...daffAuthorizeNetProvideExtraReducers(\n * myReducer1,\n * myReducer2\n * )\n * ]\n * ```\n */\n provider: daffAuthorizeNetProvideExtraReducers,\n} = createMultiInjectionToken<ActionReducer<DaffAuthorizeNetReducersState>>(\n 'DAFF_AUTHORIZE_NET_EXTRA_REDUCERS',\n { providedIn: 'any' },\n);\n","import {\n createSelector,\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport {\n DaffAuthorizeNetReducersState,\n DaffAuthorizeNetReducerState,\n DaffAuthorizeNetStateRootSlice,\n DAFF_AUTHORIZENET_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\n\nexport interface DaffAuthorizeNetMemoizedSelectors {\n selectAuthorizeNetFeatureState: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducersState>;\n selectAuthorizeNetState: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducerState> ;\n selectLoading: MemoizedSelector<DaffAuthorizeNetStateRootSlice, boolean>;\n selectPaymentError: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffStateError>;\n selectAcceptJsLoadError: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffStateError>;\n selectIsAcceptJsLoaded: MemoizedSelector<DaffAuthorizeNetStateRootSlice, boolean>;\n}\n\nconst createAuthorizeNetSelectors = (): DaffAuthorizeNetMemoizedSelectors => {\n\n /**\n * AuthorizeNet Feature State\n */\n const selectAuthorizeNetFeatureState = createFeatureSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducersState>(DAFF_AUTHORIZENET_STORE_FEATURE_KEY);\n\n /**\n * AuthorizeNet State\n */\n const selectAuthorizeNetState = createSelector(\n selectAuthorizeNetFeatureState,\n (state: DaffAuthorizeNetReducersState) => state.authorizeNet,\n );\n\n /**\n * AuthorizeNet loading state\n */\n const selectLoading = createSelector(\n selectAuthorizeNetState,\n (state: DaffAuthorizeNetReducerState) => state.loading,\n );\n\n /**\n * AuthorizeNet payment error\n */\n const selectPaymentError = createSelector(\n selectAuthorizeNetState,\n (state: DaffAuthorizeNetReducerState) => state.paymentError,\n );\n\n /**\n * AcceptJs load error\n */\n const selectAcceptJsLoadError = createSelector(\n selectAuthorizeNetState,\n (state: DaffAuthorizeNetReducerState) => state.acceptJsLoadError,\n );\n\n /**\n * AcceptJs is loaded\n */\n const selectIsAcceptJsLoaded = createSelector(\n selectAuthorizeNetState,\n (state: DaffAuthorizeNetReducerState) => state.isAcceptLoaded,\n );\n\n return {\n selectAuthorizeNetFeatureState,\n selectAuthorizeNetState,\n selectLoading,\n selectPaymentError,\n selectAcceptJsLoadError,\n selectIsAcceptJsLoaded,\n };\n};\n\nexport const daffAuthorizeNetSelectors = (() => {\n let cache;\n return (): DaffAuthorizeNetMemoizedSelectors => cache = cache\n ? cache\n : createAuthorizeNetSelectors();\n})();\n","import { DaffAuthorizeNetStateConfig } from './type';\n\nexport const daffAuthorizeNetStateDefaultConfig: DaffAuthorizeNetStateConfig = {\n acceptMaxRetries: 5,\n acceptBackoffTiming: 30,\n};\n","import { createConfigInjectionToken } from '@daffodil/core';\n\nimport { daffAuthorizeNetStateDefaultConfig } from './default';\nimport { DaffAuthorizeNetStateConfig } from './type';\n\nexport const {\n token: DAFF_AUTHORIZE_NET_STATE_CONFIG,\n /**\n * Provider function for {@link DAFF_AUTHORIZE_NET_STATE_CONFIG}.\n */\n provider: provideDaffAuthorizeNetStateConfig,\n} = createConfigInjectionToken<DaffAuthorizeNetStateConfig>(daffAuthorizeNetStateDefaultConfig, 'DAFF_AUTHORIZE_NET_STATE_CONFIG');\n","import { createSingleInjectionToken } from '@daffodil/core';\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 {\n token: DAFF_AUTHORIZENET_ERROR_MATCHER,\n /**\n * Provider function for {@link DAFF_AUTHORIZENET_ERROR_MATCHER}.\n */\n provider: provideDaffAuthorizenetErrorMatcher,\n} = createSingleInjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_AUTHORIZENET_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\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 { DaffAuthorizeNetFacadeInterface } from './authorize-net-facade.interface';\nimport { DaffAuthorizeNetStateRootSlice } from '../reducers/authorize-net-reducers.interface';\nimport { daffAuthorizeNetSelectors } from '../selectors/authorize-net.selector';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthorizeNetFacade implements DaffAuthorizeNetFacadeInterface {\n\n isAcceptJsLoaded$: Observable<boolean>;\n loading$: Observable<boolean>;\n paymentError$: Observable<DaffStateError>;\n acceptJsLoadError$: Observable<DaffStateError>;\n\n constructor(private store: Store<DaffAuthorizeNetStateRootSlice>) {\n const {\n selectIsAcceptJsLoaded,\n selectLoading,\n selectPaymentError,\n selectAcceptJsLoadError,\n } = daffAuthorizeNetSelectors();\n\n this.isAcceptJsLoaded$ = this.store.pipe(select(selectIsAcceptJsLoaded));\n this.loading$ = this.store.pipe(select(selectLoading));\n this.paymentError$ = this.store.pipe(select(selectPaymentError));\n this.acceptJsLoadError$ = this.store.pipe(select(selectAcceptJsLoadError));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n defer,\n Observable,\n of,\n} from 'rxjs';\nimport {\n switchMap,\n catchError,\n map,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffAcceptJsLoadingService,\n DaffAuthorizeNetTokenRequest,\n} from '@daffodil/authorizenet';\nimport {\n DaffAuthorizeNetDriver,\n DaffAuthorizeNetService,\n DaffAuthorizeNetPaymentId,\n DaffAuthorizeNetAcceptjsMissingError,\n} from '@daffodil/authorizenet/driver';\nimport {\n DaffCartPaymentActionTypes,\n DaffCartPaymentUpdateWithBilling,\n DaffCartPaymentUpdateWithBillingFailure,\n} from '@daffodil/cart/state';\nimport {\n backoff,\n DaffError,\n} from '@daffodil/core';\nimport {\n substream,\n ErrorTransformer,\n} from '@daffodil/core/state';\n\nimport {\n DaffAuthorizeNetActionTypes,\n DaffAuthorizeNetUpdatePayment,\n DaffAuthorizeNetUpdatePaymentFailure,\n DaffLoadAcceptJs,\n DaffAuthorizeNetUpdatePaymentSuccess,\n DaffLoadAcceptJsFailure,\n DaffLoadAcceptJsSuccess,\n} from '../actions/authorizenet.actions';\nimport {\n DAFF_AUTHORIZE_NET_STATE_CONFIG,\n DaffAuthorizeNetStateConfig,\n} from '../config/public_api';\nimport { DAFF_AUTHORIZENET_ERROR_MATCHER } from '../injection-tokens/public_api';\n\n@Injectable()\nexport class DaffAuthorizeNetEffects<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> {\n\n constructor(\n private actions$: Actions,\n @Inject(DaffAuthorizeNetDriver) private driver: DaffAuthorizeNetService<T>,\n @Inject(DaffAuthorizeNetPaymentId) private authorizeNetPaymentId: string,\n @Inject(DAFF_AUTHORIZENET_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n @Inject(DAFF_AUTHORIZE_NET_STATE_CONFIG) private config: DaffAuthorizeNetStateConfig,\n private acceptJsLoadingService: DaffAcceptJsLoadingService,\n ) {}\n\n\n updatePayment$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthorizeNetActionTypes.UpdatePaymentAction),\n switchMap((action: DaffAuthorizeNetUpdatePayment<T>) =>\n this.driver.generateToken(action.tokenRequest).pipe(\n map(resp => new DaffCartPaymentUpdateWithBilling(\n {\n method: this.authorizeNetPaymentId,\n payment_info: resp,\n },\n action.address,\n )),\n catchError((error: DaffError) =>\n of(new DaffAuthorizeNetUpdatePaymentFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n\n updatePaymentSuccessSubstream$: Observable<any> = createEffect(() => this.actions$.pipe(\n substream(\n [DaffAuthorizeNetActionTypes.UpdatePaymentAction, DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingSuccessAction],\n DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingFailureAction,\n ),\n map(() => new DaffAuthorizeNetUpdatePaymentSuccess()),\n ));\n\n\n updatePaymentFailureSubstream$: Observable<any> = createEffect(() => this.actions$.pipe(\n substream(\n [DaffAuthorizeNetActionTypes.UpdatePaymentAction, DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingFailureAction],\n DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingSuccessAction,\n ),\n map(([updatePaymentAction, updatePaymentFailureAction]: [DaffAuthorizeNetUpdatePayment, DaffCartPaymentUpdateWithBillingFailure]) =>\n new DaffAuthorizeNetUpdatePaymentFailure(this.errorMatcher(updatePaymentFailureAction.payload[0])),\n ),\n ));\n\n\n loadAcceptJs$ = createEffect(() => (maxTries = this.config.acceptMaxRetries, ms = this.config.acceptBackoffTiming): Observable<any> => this.actions$.pipe(\n ofType(DaffAuthorizeNetActionTypes.LoadAcceptJsAction),\n tap((action: DaffLoadAcceptJs) => this.acceptJsLoadingService.load()),\n switchMap(() => defer(() => of(this.acceptJsLoadingService.getAccept())).pipe(\n backoff(maxTries, ms),\n map((Accept) => Accept ? new DaffLoadAcceptJsSuccess() : new DaffLoadAcceptJsFailure(new DaffAuthorizeNetAcceptjsMissingError('Accept.js failed to load.'))),\n catchError((error: DaffError) => of(new DaffLoadAcceptJsFailure(this.errorMatcher(error)))),\n )),\n ));\n}\n","import { inject } from '@angular/core';\nimport {\n ActionReducer,\n combineReducers,\n} from '@ngrx/store';\n\nimport { createSingleInjectionToken } from '@daffodil/core';\nimport { daffComposeReducers } from '@daffodil/core/state';\n// these unused imports are a workaround\n\nimport { DAFF_AUTHORIZE_NET_EXTRA_REDUCERS } from './extra.token';\nimport { daffAuthorizeNetReducer } from '../authorize-net/authorize-net.reducer';\nimport { DaffAuthorizeNetReducersState } from '../authorize-net-reducers.interface';\n\nexport const {\n /**\n * An internal token to hold the Daffodil authorizenet reducers.\n * Includes the extra and standard reducers.\n *\n * @docs-private\n */\n token: DAFF_AUTHORIZE_NET_REDUCERS,\n /**\n * Provider function for {@link DAFF_AUTHORIZE_NET_REDUCERS}.\n */\n provider: provideDaffAuthorizeNetReducers,\n} = createSingleInjectionToken<ActionReducer<DaffAuthorizeNetReducersState>>(\n 'DAFF_AUTHORIZE_NET_REDUCERS',\n {\n providedIn: 'any',\n factory: () => daffComposeReducers([\n combineReducers({\n authorizeNet: daffAuthorizeNetReducer,\n }),\n ...inject(DAFF_AUTHORIZE_NET_EXTRA_REDUCERS),\n ]),\n },\n);\n","import {\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\n\nimport {\n DaffAuthorizeNetStateConfig,\n daffAuthorizeNetStateDefaultConfig,\n provideDaffAuthorizeNetStateConfig,\n} from './config/public_api';\nimport { DaffAuthorizeNetEffects } from './effects/authorize-net.effects';\nimport { DAFF_AUTHORIZENET_STORE_FEATURE_KEY } from './reducers/authorizenet-store-feature-key';\nimport { DAFF_AUTHORIZE_NET_REDUCERS } from './reducers/token/reducers.token';\n\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_AUTHORIZENET_STORE_FEATURE_KEY, DAFF_AUTHORIZE_NET_REDUCERS),\n EffectsModule.forFeature([DaffAuthorizeNetEffects]),\n ],\n})\nexport class DaffAuthorizeNetStateModule {\n static withConfig(config: Partial<DaffAuthorizeNetStateConfig> = {}): ModuleWithProviders<DaffAuthorizeNetStateModule> {\n return {\n ngModule: DaffAuthorizeNetStateModule,\n providers: [\n provideDaffAuthorizeNetStateConfig({\n ...daffAuthorizeNetStateDefaultConfig,\n ...config,\n }),\n ],\n };\n }\n}\n","import { NgModule } from '@angular/core';\nimport { combineReducers } from '@ngrx/store';\n\nimport { DAFF_AUTHORIZENET_PAYMENT_KIND } from '@daffodil/authorizenet';\nimport { DaffAuthorizeNetPaymentDriver } from '@daffodil/authorizenet/driver';\nimport {\n daffPaymentProvideAvailableProcessors,\n daffPaymentProvideExtraReducers,\n daffPaymentReducerFactory,\n DaffPaymentStateModule,\n} from '@daffodil/payment/state';\n\nimport { DaffAuthorizeNetActionTypes } from './actions/authorizenet.actions';\n\n@NgModule({\n imports: [\n DaffPaymentStateModule,\n ],\n providers: [\n daffPaymentProvideAvailableProcessors({\n kind: DAFF_AUTHORIZENET_PAYMENT_KIND,\n action: DaffAuthorizeNetActionTypes.ApplyPaymentAction,\n driver: DaffAuthorizeNetPaymentDriver,\n }),\n ...daffPaymentProvideExtraReducers(combineReducers({\n payment: daffPaymentReducerFactory([DaffAuthorizeNetActionTypes.ApplyPaymentAction]),\n })),\n ],\n})\nexport class DaffAuthorizeNetPaymentStateModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;;;;IAYY;AAAZ,CAAA,UAAY,2BAA2B,EAAA;AACrC,IAAA,2BAAA,CAAA,qBAAA,CAAA,GAAA,yCAA+D;AAC/D,IAAA,2BAAA,CAAA,4BAAA,CAAA,GAAA,iDAA8E;AAC9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EAAA,IAAA,EAAA,kCAAkC,YAb3C,sBAAsB,CAAA,EAAA,CAAA,CAAA;AAab,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,kCAAkC,EAXlC,SAAA,EAAA;AACT,YAAA,qCAAqC,CAAC;AACpC,gBAAA,IAAI,EAAE,8BAA8B;gBACpC,MAAM,EAAE,2BAA2B,CAAC,kBAAkB;AACtD,gBAAA,MAAM,EAAE,6BAA6B;aACtC,CAAC;YACF,GAAG,+BAA+B,CAAC,eAAe,CAAC;gBACjD,OAAO,EAAE,yBAAyB,CAAC,CAAC,2BAA2B,CAAC,kBAAkB,CAAC,CAAC;AACrF,aAAA,CAAC,CAAC;AACJ,SAAA,EAAA,OAAA,EAAA,CAXC,sBAAsB,CAAA,EAAA,CAAA,CAAA;;2FAab,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAf9C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,sBAAsB;AACvB,qBAAA;AACD,oBAAA,SAAS,EAAE;AACT,wBAAA,qCAAqC,CAAC;AACpC,4BAAA,IAAI,EAAE,8BAA8B;4BACpC,MAAM,EAAE,2BAA2B,CAAC,kBAAkB;AACtD,4BAAA,MAAM,EAAE,6BAA6B;yBACtC,CAAC;wBACF,GAAG,+BAA+B,CAAC,eAAe,CAAC;4BACjD,OAAO,EAAE,yBAAyB,CAAC,CAAC,2BAA2B,CAAC,kBAAkB,CAAC,CAAC;AACrF,yBAAA,CAAC,CAAC;AACJ,qBAAA;AACF,iBAAA;;;AC5BD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-authorizenet-state.mjs","sources":["../../../libs/authorizenet/state/src/actions/authorizenet.actions.ts","../../../libs/authorizenet/state/src/reducers/authorize-net/initial-state.ts","../../../libs/authorizenet/state/src/reducers/authorize-net/authorize-net.reducer.ts","../../../libs/authorizenet/state/src/reducers/authorize-net.reducers.ts","../../../libs/authorizenet/state/src/reducers/authorizenet-store-feature-key.ts","../../../libs/authorizenet/state/src/reducers/token/extra.token.ts","../../../libs/authorizenet/state/src/selectors/authorize-net.selector.ts","../../../libs/authorizenet/state/src/config/default.ts","../../../libs/authorizenet/state/src/config/token.ts","../../../libs/authorizenet/state/src/injection-tokens/error-matcher.token.ts","../../../libs/authorizenet/state/src/facades/authorize-net.facade.ts","../../../libs/authorizenet/state/src/effects/authorize-net.effects.ts","../../../libs/authorizenet/state/src/reducers/token/reducers.token.ts","../../../libs/authorizenet/state/src/authorize-net-state.module.ts","../../../libs/authorizenet/state/src/payment-state.module.ts","../../../libs/authorizenet/state/src/daffodil-authorizenet-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport {\n DaffAuthorizenetPaymentRequest,\n DaffAuthorizeNetTokenRequest,\n} from '@daffodil/authorizenet';\nimport { DaffCartAddress } from '@daffodil/cart';\nimport { DaffIdentifiable } from '@daffodil/core';\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffPersonalAddress } from '@daffodil/geography';\nimport { DaffPaymentGenerateToken } from '@daffodil/payment/state';\n\nexport enum DaffAuthorizeNetActionTypes {\n UpdatePaymentAction = '[@daffodil/authorizenet] Update Payment',\n UpdatePaymentSuccessAction = '[@daffodil/authorizenet] Update Payment Success',\n UpdatePaymentFailureAction = '[@daffodil/authorizenet] Update Payment Failure',\n ApplyPaymentAction = '[@daffodil/authorizenet] Apply Payment',\n LoadAcceptJsAction = '[@daffodil/authorizenet] Load Accept Js',\n LoadAcceptJsSuccessAction = '[@daffodil/authorizenet] Load Accept Js Success',\n LoadAcceptJsFailureAction = '[@daffodil/authorizenet] Load Accept Js Failure'\n}\n\n/**\n * An action triggered to initialize a generate token request.\n *\n * @param payload - An DaffAuthorizeNetRequestData object.\n */\nexport class DaffAuthorizeNetUpdatePayment<\n T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest,\n V extends DaffCartAddress = DaffCartAddress\n> implements Action {\n readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentAction;\n\n constructor(public tokenRequest: T, public address: Partial<V>) { }\n}\n\n/**\n * An action triggered upon successfully updating the payment method.\n *\n * @param payload - A string that is the payment nonce for a credit card.\n */\nexport class DaffAuthorizeNetUpdatePaymentSuccess implements Action {\n readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentSuccessAction;\n}\n\n/**\n * An action triggered upon failing to update the payment method.\n *\n * @param payload - A string that is an error message.\n */\nexport class DaffAuthorizeNetUpdatePaymentFailure implements Action {\n readonly type = DaffAuthorizeNetActionTypes.UpdatePaymentFailureAction;\n\n constructor(public payload: DaffStateError) { }\n}\n\nexport class DaffLoadAcceptJs implements Action {\n readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsAction;\n}\n\n/**\n * Indicates that the AcceptJs library has loaded successfully.\n */\nexport class DaffLoadAcceptJsSuccess implements Action {\n readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsSuccessAction;\n}\n\n/**\n * Indicates that the AcceptJs library has failed to load\n */\nexport class DaffLoadAcceptJsFailure implements Action {\n readonly type = DaffAuthorizeNetActionTypes.LoadAcceptJsFailureAction;\n\n constructor(public payload: DaffStateError) {};\n}\n\n/**\n * Triggers the application of an authorize.net payment.\n */\nexport class DaffAuthorizenetApplyPayment implements DaffPaymentGenerateToken<DaffAuthorizenetPaymentRequest> {\n readonly type = DaffAuthorizeNetActionTypes.ApplyPaymentAction;\n\n constructor(\n public request: DaffAuthorizenetPaymentRequest,\n public address?: DaffPersonalAddress | DaffIdentifiable,\n ) {};\n}\n\nexport type DaffAuthorizeNetActions<\n T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest\n> =\n\t| DaffAuthorizeNetUpdatePayment<T>\n\t| DaffAuthorizeNetUpdatePaymentSuccess\n\t| DaffAuthorizeNetUpdatePaymentFailure\n\t| DaffAuthorizenetApplyPayment\n\t| DaffLoadAcceptJsSuccess\n\t| DaffLoadAcceptJsFailure\n\t| DaffLoadAcceptJs;\n","import { DaffAuthorizeNetReducerState } from './authorize-net-reducer.interface';\n\nexport const daffAuthorizeNetReducerInitialState: DaffAuthorizeNetReducerState = {\n isAcceptLoaded: false,\n paymentError: null,\n acceptJsLoadError: null,\n loading: false,\n};\n","import { DaffAuthorizeNetTokenRequest } from '@daffodil/authorizenet';\nimport {\n DaffPaymentActions,\n DaffPaymentActionTypes,\n} from '@daffodil/payment/state';\n\nimport { DaffAuthorizeNetReducerState } from './authorize-net-reducer.interface';\nimport { daffAuthorizeNetReducerInitialState } from './initial-state';\nimport {\n DaffAuthorizeNetActions,\n DaffAuthorizeNetActionTypes,\n} from '../../actions/authorizenet.actions';\n\nexport function daffAuthorizeNetReducer <T extends DaffAuthorizeNetTokenRequest>(\n state: DaffAuthorizeNetReducerState = daffAuthorizeNetReducerInitialState,\n action: DaffAuthorizeNetActions<T> | DaffPaymentActions,\n): DaffAuthorizeNetReducerState {\n switch (action.type) {\n case DaffAuthorizeNetActionTypes.UpdatePaymentAction:\n case DaffAuthorizeNetActionTypes.ApplyPaymentAction:\n return {\n ...state,\n loading: true,\n };\n case DaffAuthorizeNetActionTypes.UpdatePaymentSuccessAction:\n case DaffPaymentActionTypes.GenerateTokenSuccessAction:\n return {\n ...state,\n loading: false,\n paymentError: null,\n };\n case DaffAuthorizeNetActionTypes.UpdatePaymentFailureAction:\n case DaffPaymentActionTypes.GenerateTokenFailureAction:\n return {\n ...state,\n loading: false,\n paymentError: action.payload,\n };\n\n case DaffAuthorizeNetActionTypes.LoadAcceptJsSuccessAction:\n return {\n ...state,\n isAcceptLoaded: true,\n acceptJsLoadError: null,\n };\n case DaffAuthorizeNetActionTypes.LoadAcceptJsFailureAction:\n return {\n ...state,\n loading: false,\n acceptJsLoadError: action.payload,\n };\n default:\n return state;\n }\n}\n","import { daffAuthorizeNetReducer } from './authorize-net/authorize-net.reducer';\n\nexport const daffAuthorizeNetReducers = {\n authorizeNet: daffAuthorizeNetReducer,\n};\n","export const DAFF_AUTHORIZENET_STORE_FEATURE_KEY = 'daffAuthorizenet';\n","import { ActionReducer } from '@ngrx/store';\n\nimport { createMultiInjectionToken } from '@daffodil/core';\n\nimport { DaffAuthorizeNetReducersState } from '../authorize-net-reducers.interface';\n\nexport const {\n /**\n * A token to hold the injectable extra reducers.\n *\n * Prefer using {@link daffAuthorizeNetProvideExtraReducers}.\n */\n token: DAFF_AUTHORIZE_NET_EXTRA_REDUCERS,\n\n /**\n * Provides additional reducers that run after the standard Daffodil authorizenet reducers.\n *\n * @example\n * ```ts\n * providers: [\n * ...daffAuthorizeNetProvideExtraReducers(\n * myReducer1,\n * myReducer2\n * )\n * ]\n * ```\n */\n provider: daffAuthorizeNetProvideExtraReducers,\n} = createMultiInjectionToken<ActionReducer<DaffAuthorizeNetReducersState>>(\n 'DAFF_AUTHORIZE_NET_EXTRA_REDUCERS',\n { providedIn: 'any' },\n);\n","import {\n createSelector,\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\n\nimport {\n DaffAuthorizeNetReducersState,\n DaffAuthorizeNetReducerState,\n DaffAuthorizeNetStateRootSlice,\n DAFF_AUTHORIZENET_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\n\nexport interface DaffAuthorizeNetMemoizedSelectors {\n selectAuthorizeNetFeatureState: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducersState>;\n selectAuthorizeNetState: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducerState> ;\n selectLoading: MemoizedSelector<DaffAuthorizeNetStateRootSlice, boolean>;\n selectPaymentError: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffStateError>;\n selectAcceptJsLoadError: MemoizedSelector<DaffAuthorizeNetStateRootSlice, DaffStateError>;\n selectIsAcceptJsLoaded: MemoizedSelector<DaffAuthorizeNetStateRootSlice, boolean>;\n}\n\nconst createAuthorizeNetSelectors = (): DaffAuthorizeNetMemoizedSelectors => {\n\n /**\n * AuthorizeNet Feature State\n */\n const selectAuthorizeNetFeatureState = createFeatureSelector<DaffAuthorizeNetStateRootSlice, DaffAuthorizeNetReducersState>(DAFF_AUTHORIZENET_STORE_FEATURE_KEY);\n\n /**\n * AuthorizeNet State\n */\n const selectAuthorizeNetState = createSelector(\n selectAuthorizeNetFeatureState,\n (state: DaffAuthorizeNetReducersState) => state.authorizeNet,\n );\n\n /**\n * AuthorizeNet loading state\n */\n const selectLoading = createSelector(\n selectAuthorizeNetState,\n (state: DaffAuthorizeNetReducerState) => state.loading,\n );\n\n /**\n * AuthorizeNet payment error\n */\n const selectPaymentError = createSelector(\n selectAuthorizeNetState,\n (state: DaffAuthorizeNetReducerState) => state.paymentError,\n );\n\n /**\n * AcceptJs load error\n */\n const selectAcceptJsLoadError = createSelector(\n selectAuthorizeNetState,\n (state: DaffAuthorizeNetReducerState) => state.acceptJsLoadError,\n );\n\n /**\n * AcceptJs is loaded\n */\n const selectIsAcceptJsLoaded = createSelector(\n selectAuthorizeNetState,\n (state: DaffAuthorizeNetReducerState) => state.isAcceptLoaded,\n );\n\n return {\n selectAuthorizeNetFeatureState,\n selectAuthorizeNetState,\n selectLoading,\n selectPaymentError,\n selectAcceptJsLoadError,\n selectIsAcceptJsLoaded,\n };\n};\n\nexport const daffAuthorizeNetSelectors = (() => {\n let cache;\n return (): DaffAuthorizeNetMemoizedSelectors => cache = cache\n ? cache\n : createAuthorizeNetSelectors();\n})();\n","import { DaffAuthorizeNetStateConfig } from './type';\n\nexport const daffAuthorizeNetStateDefaultConfig: DaffAuthorizeNetStateConfig = {\n acceptMaxRetries: 5,\n acceptBackoffTiming: 30,\n};\n","import { createConfigInjectionToken } from '@daffodil/core';\n\nimport { daffAuthorizeNetStateDefaultConfig } from './default';\nimport { DaffAuthorizeNetStateConfig } from './type';\n\nexport const {\n token: DAFF_AUTHORIZE_NET_STATE_CONFIG,\n /**\n * Provider function for {@link DAFF_AUTHORIZE_NET_STATE_CONFIG}.\n */\n provider: provideDaffAuthorizeNetStateConfig,\n} = createConfigInjectionToken<DaffAuthorizeNetStateConfig>(daffAuthorizeNetStateDefaultConfig, 'DAFF_AUTHORIZE_NET_STATE_CONFIG');\n","import { createSingleInjectionToken } from '@daffodil/core';\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 {\n token: DAFF_AUTHORIZENET_ERROR_MATCHER,\n /**\n * Provider function for {@link DAFF_AUTHORIZENET_ERROR_MATCHER}.\n */\n provider: provideDaffAuthorizenetErrorMatcher,\n} = createSingleInjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_AUTHORIZENET_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\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 { DaffAuthorizeNetFacadeInterface } from './authorize-net-facade.interface';\nimport { DaffAuthorizeNetStateRootSlice } from '../reducers/authorize-net-reducers.interface';\nimport { daffAuthorizeNetSelectors } from '../selectors/authorize-net.selector';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthorizeNetFacade implements DaffAuthorizeNetFacadeInterface {\n\n isAcceptJsLoaded$: Observable<boolean>;\n loading$: Observable<boolean>;\n paymentError$: Observable<DaffStateError>;\n acceptJsLoadError$: Observable<DaffStateError>;\n\n constructor(private store: Store<DaffAuthorizeNetStateRootSlice>) {\n const {\n selectIsAcceptJsLoaded,\n selectLoading,\n selectPaymentError,\n selectAcceptJsLoadError,\n } = daffAuthorizeNetSelectors();\n\n this.isAcceptJsLoaded$ = this.store.pipe(select(selectIsAcceptJsLoaded));\n this.loading$ = this.store.pipe(select(selectLoading));\n this.paymentError$ = this.store.pipe(select(selectPaymentError));\n this.acceptJsLoadError$ = this.store.pipe(select(selectAcceptJsLoadError));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n createEffect,\n ofType,\n} from '@ngrx/effects';\nimport {\n defer,\n Observable,\n of,\n} from 'rxjs';\nimport {\n switchMap,\n catchError,\n map,\n tap,\n} from 'rxjs/operators';\n\nimport {\n DaffAcceptJsLoadingService,\n DaffAuthorizeNetTokenRequest,\n} from '@daffodil/authorizenet';\nimport {\n DaffAuthorizeNetDriver,\n DaffAuthorizeNetService,\n DaffAuthorizeNetPaymentId,\n DaffAuthorizeNetAcceptjsMissingError,\n} from '@daffodil/authorizenet/driver';\nimport {\n DaffCartPaymentActionTypes,\n DaffCartPaymentUpdateWithBilling,\n DaffCartPaymentUpdateWithBillingFailure,\n} from '@daffodil/cart/state';\nimport {\n backoff,\n DaffError,\n} from '@daffodil/core';\nimport {\n substream,\n ErrorTransformer,\n} from '@daffodil/core/state';\n\nimport {\n DaffAuthorizeNetActionTypes,\n DaffAuthorizeNetUpdatePayment,\n DaffAuthorizeNetUpdatePaymentFailure,\n DaffLoadAcceptJs,\n DaffAuthorizeNetUpdatePaymentSuccess,\n DaffLoadAcceptJsFailure,\n DaffLoadAcceptJsSuccess,\n} from '../actions/authorizenet.actions';\nimport {\n DAFF_AUTHORIZE_NET_STATE_CONFIG,\n DaffAuthorizeNetStateConfig,\n} from '../config/public_api';\nimport { DAFF_AUTHORIZENET_ERROR_MATCHER } from '../injection-tokens/public_api';\n\n@Injectable()\nexport class DaffAuthorizeNetEffects<T extends DaffAuthorizeNetTokenRequest = DaffAuthorizeNetTokenRequest> {\n\n constructor(\n private actions$: Actions,\n @Inject(DaffAuthorizeNetDriver) private driver: DaffAuthorizeNetService<T>,\n @Inject(DaffAuthorizeNetPaymentId) private authorizeNetPaymentId: string,\n @Inject(DAFF_AUTHORIZENET_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n @Inject(DAFF_AUTHORIZE_NET_STATE_CONFIG) private config: DaffAuthorizeNetStateConfig,\n private acceptJsLoadingService: DaffAcceptJsLoadingService,\n ) {}\n\n\n updatePayment$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(DaffAuthorizeNetActionTypes.UpdatePaymentAction),\n switchMap((action: DaffAuthorizeNetUpdatePayment<T>) =>\n this.driver.generateToken(action.tokenRequest).pipe(\n map(resp => new DaffCartPaymentUpdateWithBilling(\n {\n method: this.authorizeNetPaymentId,\n payment_info: resp,\n },\n action.address,\n )),\n catchError((error: DaffError) =>\n of(new DaffAuthorizeNetUpdatePaymentFailure(this.errorMatcher(error))),\n ),\n ),\n ),\n ));\n\n\n updatePaymentSuccessSubstream$: Observable<any> = createEffect(() => this.actions$.pipe(\n substream(\n [DaffAuthorizeNetActionTypes.UpdatePaymentAction, DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingSuccessAction],\n DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingFailureAction,\n ),\n map(() => new DaffAuthorizeNetUpdatePaymentSuccess()),\n ));\n\n\n updatePaymentFailureSubstream$: Observable<any> = createEffect(() => this.actions$.pipe(\n substream(\n [DaffAuthorizeNetActionTypes.UpdatePaymentAction, DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingFailureAction],\n DaffCartPaymentActionTypes.CartPaymentUpdateWithBillingSuccessAction,\n ),\n map(([updatePaymentAction, updatePaymentFailureAction]: [DaffAuthorizeNetUpdatePayment, DaffCartPaymentUpdateWithBillingFailure]) =>\n new DaffAuthorizeNetUpdatePaymentFailure(this.errorMatcher(updatePaymentFailureAction.payload[0])),\n ),\n ));\n\n\n loadAcceptJs$ = createEffect(() => (maxTries = this.config.acceptMaxRetries, ms = this.config.acceptBackoffTiming): Observable<any> => this.actions$.pipe(\n ofType(DaffAuthorizeNetActionTypes.LoadAcceptJsAction),\n tap((action: DaffLoadAcceptJs) => this.acceptJsLoadingService.load()),\n switchMap(() => defer(() => of(this.acceptJsLoadingService.getAccept())).pipe(\n backoff(maxTries, ms),\n map((Accept) => Accept ? new DaffLoadAcceptJsSuccess() : new DaffLoadAcceptJsFailure(new DaffAuthorizeNetAcceptjsMissingError('Accept.js failed to load.'))),\n catchError((error: DaffError) => of(new DaffLoadAcceptJsFailure(this.errorMatcher(error)))),\n )),\n ));\n}\n","import { inject } from '@angular/core';\nimport {\n ActionReducer,\n combineReducers,\n} from '@ngrx/store';\n\nimport { createSingleInjectionToken } from '@daffodil/core';\nimport { daffComposeReducers } from '@daffodil/core/state';\n\nimport { DAFF_AUTHORIZE_NET_EXTRA_REDUCERS } from './extra.token';\nimport { daffAuthorizeNetReducer } from '../authorize-net/authorize-net.reducer';\nimport { DaffAuthorizeNetReducersState } from '../authorize-net-reducers.interface';\n\nexport const {\n /**\n * An internal token to hold the Daffodil authorizenet reducers.\n * Includes the extra and standard reducers.\n *\n * @docs-private\n */\n token: DAFF_AUTHORIZE_NET_REDUCERS,\n /**\n * Provider function for {@link DAFF_AUTHORIZE_NET_REDUCERS}.\n */\n provider: provideDaffAuthorizeNetReducers,\n} = createSingleInjectionToken<ActionReducer<DaffAuthorizeNetReducersState>>(\n 'DAFF_AUTHORIZE_NET_REDUCERS',\n {\n providedIn: 'any',\n factory: () => daffComposeReducers([\n combineReducers({\n authorizeNet: daffAuthorizeNetReducer,\n }),\n ...inject(DAFF_AUTHORIZE_NET_EXTRA_REDUCERS),\n ]),\n },\n);\n","import {\n ModuleWithProviders,\n NgModule,\n} from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\n\nimport {\n DaffAuthorizeNetStateConfig,\n daffAuthorizeNetStateDefaultConfig,\n provideDaffAuthorizeNetStateConfig,\n} from './config/public_api';\nimport { DaffAuthorizeNetEffects } from './effects/authorize-net.effects';\nimport { DAFF_AUTHORIZENET_STORE_FEATURE_KEY } from './reducers/authorizenet-store-feature-key';\nimport { DAFF_AUTHORIZE_NET_REDUCERS } from './reducers/token/reducers.token';\n\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_AUTHORIZENET_STORE_FEATURE_KEY, DAFF_AUTHORIZE_NET_REDUCERS),\n EffectsModule.forFeature([DaffAuthorizeNetEffects]),\n ],\n})\nexport class DaffAuthorizeNetStateModule {\n static withConfig(config: Partial<DaffAuthorizeNetStateConfig> = {}): ModuleWithProviders<DaffAuthorizeNetStateModule> {\n return {\n ngModule: DaffAuthorizeNetStateModule,\n providers: [\n provideDaffAuthorizeNetStateConfig({\n ...daffAuthorizeNetStateDefaultConfig,\n ...config,\n }),\n ],\n };\n }\n}\n","import { NgModule } from '@angular/core';\nimport { combineReducers } from '@ngrx/store';\n\nimport { DAFF_AUTHORIZENET_PAYMENT_KIND } from '@daffodil/authorizenet';\nimport { DaffAuthorizeNetPaymentDriver } from '@daffodil/authorizenet/driver';\nimport {\n daffPaymentProvideAvailableProcessors,\n daffPaymentProvideExtraReducers,\n daffPaymentReducerFactory,\n DaffPaymentStateModule,\n} from '@daffodil/payment/state';\n\nimport { DaffAuthorizeNetActionTypes } from './actions/authorizenet.actions';\n\n@NgModule({\n imports: [\n DaffPaymentStateModule,\n ],\n providers: [\n daffPaymentProvideAvailableProcessors({\n kind: DAFF_AUTHORIZENET_PAYMENT_KIND,\n action: DaffAuthorizeNetActionTypes.ApplyPaymentAction,\n driver: DaffAuthorizeNetPaymentDriver,\n }),\n ...daffPaymentProvideExtraReducers(combineReducers({\n payment: daffPaymentReducerFactory([DaffAuthorizeNetActionTypes.ApplyPaymentAction]),\n })),\n ],\n})\nexport class DaffAuthorizeNetPaymentStateModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2"],"mappings":";;;;;;;;;;;;;;;;IAYY;AAAZ,CAAA,UAAY,2BAA2B,EAAA;AACrC,IAAA,2BAAA,CAAA,qBAAA,CAAA,GAAA,yCAA+D;AAC/D,IAAA,2BAAA,CAAA,4BAA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24
24
  }
25
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetCreditCardFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
26
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetCreditCardFactory, providedIn: 'root' }); }
25
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetCreditCardFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
26
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetCreditCardFactory, providedIn: 'root' }); }
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAuthorizeNetCreditCardFactory, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAuthorizeNetCreditCardFactory, decorators: [{
29
29
  type: Injectable,
30
30
  args: [{
31
31
  providedIn: 'root',
@@ -39,10 +39,10 @@ class DaffAcceptJsLoadingService {
39
39
  getAccept() {
40
40
  return Accept;
41
41
  }
42
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAcceptJsLoadingService, deps: [{ token: DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
43
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAcceptJsLoadingService, providedIn: 'root' }); }
42
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAcceptJsLoadingService, deps: [{ token: DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
43
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAcceptJsLoadingService, providedIn: 'root' }); }
44
44
  }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.7", ngImport: i0, type: DaffAcceptJsLoadingService, decorators: [{
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffAcceptJsLoadingService, decorators: [{
46
46
  type: Injectable,
47
47
  args: [{
48
48
  providedIn: 'root',
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@daffodil/authorizenet","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/authorizenet"]}}},"version":"0.81.0","description":"An ecommerce package that has multi-platform support and state management features for managing authorize.net payments.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"publishConfig":{"directory":"../../dist/authorizenet"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/common":"19.0.7","@angular/core":"19.0.7","@ngrx/effects":"^19.0.0","@ngrx/entity":"^19.0.0","@ngrx/store":"^19.0.0","@daffodil/core":"0.81.0","@daffodil/cart":"0.81.0","rxjs":"7.8.1"},"module":"fesm2022/daffodil-authorizenet.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","default":"./fesm2022/daffodil-authorizenet.mjs"},"./driver":{"types":"./driver/index.d.ts","default":"./fesm2022/daffodil-authorizenet-driver.mjs"},"./state":{"types":"./state/index.d.ts","default":"./fesm2022/daffodil-authorizenet-state.mjs"},"./testing":{"types":"./testing/index.d.ts","default":"./fesm2022/daffodil-authorizenet-testing.mjs"},"./driver/in-memory":{"types":"./driver/in-memory/index.d.ts","default":"./fesm2022/daffodil-authorizenet-driver-in-memory.mjs"},"./driver/magento":{"types":"./driver/magento/index.d.ts","default":"./fesm2022/daffodil-authorizenet-driver-magento.mjs"},"./driver/testing":{"types":"./driver/testing/index.d.ts","default":"./fesm2022/daffodil-authorizenet-driver-testing.mjs"},"./state/testing":{"types":"./state/testing/index.d.ts","default":"./fesm2022/daffodil-authorizenet-state-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
1
+ {"name":"@daffodil/authorizenet","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/authorizenet"]}}},"version":"0.82.0","description":"An ecommerce package that has multi-platform support and state management features for managing authorize.net payments.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"publishConfig":{"directory":"../../dist/authorizenet"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/common":"^19.0.0","@angular/core":"^19.0.0","@ngrx/effects":"^19.0.0","@ngrx/entity":"^19.0.0","@ngrx/store":"^19.0.0","@daffodil/core":"0.82.0","@daffodil/cart":"0.82.0","rxjs":"7.8.1"},"module":"fesm2022/daffodil-authorizenet.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","default":"./fesm2022/daffodil-authorizenet.mjs"},"./driver":{"types":"./driver/index.d.ts","default":"./fesm2022/daffodil-authorizenet-driver.mjs"},"./state":{"types":"./state/index.d.ts","default":"./fesm2022/daffodil-authorizenet-state.mjs"},"./testing":{"types":"./testing/index.d.ts","default":"./fesm2022/daffodil-authorizenet-testing.mjs"},"./driver/in-memory":{"types":"./driver/in-memory/index.d.ts","default":"./fesm2022/daffodil-authorizenet-driver-in-memory.mjs"},"./driver/magento":{"types":"./driver/magento/index.d.ts","default":"./fesm2022/daffodil-authorizenet-driver-magento.mjs"},"./driver/testing":{"types":"./driver/testing/index.d.ts","default":"./fesm2022/daffodil-authorizenet-driver-testing.mjs"},"./state/testing":{"types":"./state/testing/index.d.ts","default":"./fesm2022/daffodil-authorizenet-state-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}