@daffodil/authorizenet 0.76.0 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/driver/in-memory/backend/authorize-net.service.mjs +4 -4
- package/esm2022/driver/in-memory/drivers/authorize-net-driver.module.mjs +5 -5
- package/esm2022/driver/in-memory/drivers/authorize-net.service.mjs +4 -4
- package/esm2022/driver/magento/authorize-net.module.mjs +5 -5
- package/esm2022/driver/magento/authorize-net.service.mjs +4 -4
- package/esm2022/driver/magento/payment.service.mjs +4 -4
- package/esm2022/driver/testing/drivers/authorize-net-driver.module.mjs +5 -5
- package/esm2022/driver/testing/drivers/authorize-net.service.mjs +4 -4
- package/esm2022/models/acceptJs/accept.mjs +1 -1
- package/esm2022/services/accept-js-loading.service.mjs +4 -4
- package/esm2022/services/accept-js-production.token.mjs +1 -1
- package/esm2022/state/authorize-net-state.module.mjs +5 -5
- package/esm2022/state/effects/authorize-net.effects.mjs +4 -4
- package/esm2022/state/facades/authorize-net.facade.mjs +4 -4
- package/esm2022/state/payment-state.module.mjs +5 -5
- package/esm2022/state/reducers/authorize-net/authorize-net.reducer.mjs +1 -1
- package/esm2022/state/testing/authorize-net-testing.module.mjs +5 -5
- package/esm2022/state/testing/mock-authorize-net-facade.mjs +4 -4
- package/esm2022/testing/factories/credit-card.factory.mjs +4 -4
- package/fesm2022/daffodil-authorizenet-driver-in-memory.mjs +10 -10
- package/fesm2022/daffodil-authorizenet-driver-in-memory.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-driver-magento.mjs +10 -10
- package/fesm2022/daffodil-authorizenet-driver-magento.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-driver-testing.mjs +7 -7
- package/fesm2022/daffodil-authorizenet-driver-testing.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-state-testing.mjs +7 -7
- package/fesm2022/daffodil-authorizenet-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-state.mjs +14 -14
- package/fesm2022/daffodil-authorizenet-state.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet-testing.mjs +3 -3
- package/fesm2022/daffodil-authorizenet-testing.mjs.map +1 -1
- package/fesm2022/daffodil-authorizenet.mjs +3 -3
- package/fesm2022/daffodil-authorizenet.mjs.map +1 -1
- package/package.json +1 -1
- package/state/reducers/token/extra.token.d.ts +1 -1
- package/state/reducers/token/reducers.token.d.ts +1 -1
|
@@ -33,10 +33,10 @@ class DaffAcceptJsLoadingService {
|
|
|
33
33
|
getAccept() {
|
|
34
34
|
return Accept;
|
|
35
35
|
}
|
|
36
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
37
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
36
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffAcceptJsLoadingService, deps: [{ token: DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
37
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffAcceptJsLoadingService, providedIn: 'root' }); }
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffAcceptJsLoadingService, decorators: [{
|
|
40
40
|
type: Injectable,
|
|
41
41
|
args: [{
|
|
42
42
|
providedIn: 'root',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-authorizenet.mjs","sources":["../../../libs/authorizenet/src/services/accept-js-production.token.ts","../../../libs/authorizenet/src/services/accept-js-loading.service.ts","../../../libs/authorizenet/src/constants/kind.ts","../../../libs/authorizenet/src/daffodil-authorizenet.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/**\n * A token that represents the version to use for Accept.JS calls.\n * A \"true\" value configures the package to use the production AcceptJs endpoint,\n * and a \"false\" value configures it to use the Sandbox AcceptJs endpoint.\n * By default, we assume you're using the sandbox (false).\n */\nexport const DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION = new InjectionToken<\
|
|
1
|
+
{"version":3,"file":"daffodil-authorizenet.mjs","sources":["../../../libs/authorizenet/src/services/accept-js-production.token.ts","../../../libs/authorizenet/src/services/accept-js-loading.service.ts","../../../libs/authorizenet/src/constants/kind.ts","../../../libs/authorizenet/src/daffodil-authorizenet.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/**\n * A token that represents the version to use for Accept.JS calls.\n * A \"true\" value configures the package to use the production AcceptJs endpoint,\n * and a \"false\" value configures it to use the Sandbox AcceptJs endpoint.\n * By default, we assume you're using the sandbox (false).\n */\nexport const DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION = new InjectionToken<\n boolean\n>('DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION', {\n providedIn: 'root',\n factory: () => false,\n});\n","import { DOCUMENT } from '@angular/common';\nimport {\n Inject,\n Injectable,\n} from '@angular/core';\n\nimport { DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION } from './accept-js-production.token';\nimport { AcceptType } from '../models/acceptJs/accept';\n\nconst ACCEPT_JS_SANDBOX_URL = 'https://jstest.authorize.net/v1/Accept.js';\nconst ACCEPT_JS_PRODUCTION_URL = 'https://js.authorize.net/v1/Accept.js';\n\nexport declare let Accept: AcceptType;\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAcceptJsLoadingService {\n constructor(\n @Inject(DAFF_AUTHORIZENET_ACCEPT_JS_PRODUCTION) private production: boolean,\n @Inject(DOCUMENT) private doc,\n ) {}\n\n load(): void {\n if (typeof Accept === 'undefined') {\n const acceptJsScript = this.doc.createElement('script');\n acceptJsScript.async = true;\n acceptJsScript.setAttribute('type', 'text/javascript');\n acceptJsScript.setAttribute(\n 'src',\n this.production ? ACCEPT_JS_PRODUCTION_URL : ACCEPT_JS_SANDBOX_URL,\n );\n acceptJsScript.setAttribute('charset', 'utf-8');\n this.doc.body.appendChild(acceptJsScript);\n }\n }\n\n getAccept(): AcceptType {\n return Accept;\n }\n}\n","export const DAFF_AUTHORIZENET_PAYMENT_KIND = 'daffAuthorizenet';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAEA;;;;;AAKG;MACU,sCAAsC,GAAG,IAAI,cAAc,CAEtE,wCAAwC,EAAE;AAC1C,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,KAAK;AACrB,CAAA;;ACJD,MAAM,qBAAqB,GAAG,2CAA2C,CAAC;AAC1E,MAAM,wBAAwB,GAAG,uCAAuC,CAAC;MAO5D,0BAA0B,CAAA;IACrC,WAC0D,CAAA,UAAmB,EACjD,GAAG,EAAA;QAD2B,IAAU,CAAA,UAAA,GAAV,UAAU,CAAS;QACjD,IAAG,CAAA,GAAA,GAAH,GAAG,CAAA;KAC3B;IAEJ,IAAI,GAAA;AACF,QAAA,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YACjC,MAAM,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AACxD,YAAA,cAAc,CAAC,KAAK,GAAG,IAAI,CAAC;AAC5B,YAAA,cAAc,CAAC,YAAY,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AACvD,YAAA,cAAc,CAAC,YAAY,CACzB,KAAK,EACL,IAAI,CAAC,UAAU,GAAG,wBAAwB,GAAG,qBAAqB,CACnE,CAAC;AACF,YAAA,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;YAChD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;SAC3C;KACF;IAED,SAAS,GAAA;AACP,QAAA,OAAO,MAAM,CAAC;KACf;iIAtBU,0BAA0B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAE3B,sCAAsC,EAAA,EAAA,EAAA,KAAA,EACtC,QAAQ,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAHP,uBAAA,SAAA,IAAA,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,EAAA;;2FAEP,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAHtC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;0BAGI,MAAM;2BAAC,sCAAsC,CAAA;;0BAC7C,MAAM;2BAAC,QAAQ,CAAA;;;ACpBb,MAAM,8BAA8B,GAAG;;ACA9C;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/authorizenet","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/authorizenet"]}}},"version":"0.
|
|
1
|
+
{"name":"@daffodil/authorizenet","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/authorizenet"]}}},"version":"0.77.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":"^18.2.2","@angular/core":"^18.2.2","@ngrx/effects":"^18.0.2","@ngrx/entity":"^18.0.2","@ngrx/store":"^18.0.2","@daffodil/core":"0.77.0","@daffodil/cart":"0.77.0","rxjs":"7.8.1"},"module":"fesm2022/daffodil-authorizenet.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/daffodil-authorizenet.mjs","esm":"./esm2022/daffodil-authorizenet.mjs","default":"./fesm2022/daffodil-authorizenet.mjs"},"./driver":{"types":"./driver/index.d.ts","esm2022":"./esm2022/driver/daffodil-authorizenet-driver.mjs","esm":"./esm2022/driver/daffodil-authorizenet-driver.mjs","default":"./fesm2022/daffodil-authorizenet-driver.mjs"},"./state":{"types":"./state/index.d.ts","esm2022":"./esm2022/state/daffodil-authorizenet-state.mjs","esm":"./esm2022/state/daffodil-authorizenet-state.mjs","default":"./fesm2022/daffodil-authorizenet-state.mjs"},"./testing":{"types":"./testing/index.d.ts","esm2022":"./esm2022/testing/daffodil-authorizenet-testing.mjs","esm":"./esm2022/testing/daffodil-authorizenet-testing.mjs","default":"./fesm2022/daffodil-authorizenet-testing.mjs"},"./driver/in-memory":{"types":"./driver/in-memory/index.d.ts","esm2022":"./esm2022/driver/in-memory/daffodil-authorizenet-driver-in-memory.mjs","esm":"./esm2022/driver/in-memory/daffodil-authorizenet-driver-in-memory.mjs","default":"./fesm2022/daffodil-authorizenet-driver-in-memory.mjs"},"./driver/magento":{"types":"./driver/magento/index.d.ts","esm2022":"./esm2022/driver/magento/daffodil-authorizenet-driver-magento.mjs","esm":"./esm2022/driver/magento/daffodil-authorizenet-driver-magento.mjs","default":"./fesm2022/daffodil-authorizenet-driver-magento.mjs"},"./driver/testing":{"types":"./driver/testing/index.d.ts","esm2022":"./esm2022/driver/testing/daffodil-authorizenet-driver-testing.mjs","esm":"./esm2022/driver/testing/daffodil-authorizenet-driver-testing.mjs","default":"./fesm2022/daffodil-authorizenet-driver-testing.mjs"},"./state/testing":{"types":"./state/testing/index.d.ts","esm2022":"./esm2022/state/testing/daffodil-authorizenet-state-testing.mjs","esm":"./esm2022/state/testing/daffodil-authorizenet-state-testing.mjs","default":"./fesm2022/daffodil-authorizenet-state-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
|
|
@@ -6,7 +6,7 @@ import { DaffAuthorizeNetReducersState } from '../authorize-net-reducers.interfa
|
|
|
6
6
|
*
|
|
7
7
|
* Prefer using {@link daffAuthorizeNetProvideExtraReducers}.
|
|
8
8
|
*/
|
|
9
|
-
export declare const DAFF_AUTHORIZE_NET_EXTRA_REDUCERS: InjectionToken<ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action
|
|
9
|
+
export declare const DAFF_AUTHORIZE_NET_EXTRA_REDUCERS: InjectionToken<ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action<string>>[]>;
|
|
10
10
|
/**
|
|
11
11
|
* Provides additional reducers that run after the standard Daffodil authorizenet reducers.
|
|
12
12
|
*
|
|
@@ -7,4 +7,4 @@ import { DaffAuthorizeNetReducersState } from '../authorize-net-reducers.interfa
|
|
|
7
7
|
*
|
|
8
8
|
* @docs-private
|
|
9
9
|
*/
|
|
10
|
-
export declare const DAFF_AUTHORIZE_NET_REDUCERS: InjectionToken<ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action
|
|
10
|
+
export declare const DAFF_AUTHORIZE_NET_REDUCERS: InjectionToken<ActionReducer<DaffAuthorizeNetReducersState, import("@ngrx/store").Action<string>>>;
|