@daffodil/authorizenet 0.70.0 → 0.72.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/services/accept-js-loading.service.mjs +4 -4
- 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/testing/authorize-net-testing.module.mjs +5 -5
- package/esm2022/state/testing/mock-authorize-net-facade.mjs +4 -4
- package/esm2022/testing/daffodil-authorizenet-testing.mjs +5 -0
- package/esm2022/testing/factories/credit-card.factory.mjs +33 -0
- package/esm2022/testing/factories/public_api.mjs +2 -0
- package/esm2022/testing/index.mjs +2 -0
- package/esm2022/testing/public_api.mjs +2 -0
- 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 +40 -0
- package/fesm2022/daffodil-authorizenet-testing.mjs.map +1 -0
- package/fesm2022/daffodil-authorizenet.mjs +3 -3
- package/fesm2022/daffodil-authorizenet.mjs.map +1 -1
- package/package.json +1 -1
- package/testing/factories/credit-card.factory.d.ts +20 -0
- package/testing/factories/public_api.d.ts +1 -0
- package/testing/index.d.ts +1 -0
- package/testing/public_api.d.ts +1 -0
|
@@ -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<\nboolean\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;AAC3C,SAAA;KACF;IAED,SAAS,GAAA;AACP,QAAA,OAAO,MAAM,CAAC;KACf;
|
|
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<\nboolean\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;AAC3C,SAAA;KACF;IAED,SAAS,GAAA;AACP,QAAA,OAAO,MAAM,CAAC;KACf;kIAtBU,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,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,cAFzB,MAAM,EAAA,CAAA,CAAA,EAAA;;4FAEP,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.72.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":"^17.0.0","@angular/core":"^17.0.0","@ngrx/effects":"^17.0.0","@ngrx/entity":"^17.0.0","@ngrx/store":"^17.0.0","@daffodil/core":"0.72.0","@daffodil/cart":"0.72.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"}}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DaffAuthorizeNetCreditCard } from '@daffodil/authorizenet';
|
|
2
|
+
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Mock class for {@link DaffAuthorizeNetCreditCard}.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MockDaffAuthorizeNetCreditCard implements DaffAuthorizeNetCreditCard {
|
|
8
|
+
cardnumber: string;
|
|
9
|
+
month: string;
|
|
10
|
+
year: string;
|
|
11
|
+
securitycode: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Model factory for {@link DaffAuthorizeNetCreditCard}.
|
|
15
|
+
*/
|
|
16
|
+
export declare class DaffAuthorizeNetCreditCardFactory extends DaffModelFactory<DaffAuthorizeNetCreditCard, typeof MockDaffAuthorizeNetCreditCard> {
|
|
17
|
+
constructor();
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthorizeNetCreditCardFactory, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthorizeNetCreditCardFactory>;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './credit-card.factory';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public_api';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './factories/public_api';
|