Skip to content

Commit

Permalink
feat(customer-payment): add support for customer payments (#2344)
Browse files Browse the repository at this point in the history
* feat: add `@daffodil/customer-payment`

* feat: add `@daffodil/customer-payment-authorizenet`
  • Loading branch information
griest024 committed Jul 26, 2023
1 parent 3aa4727 commit 49f6cf6
Show file tree
Hide file tree
Showing 221 changed files with 6,094 additions and 0 deletions.
74 changes: 74 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2183,6 +2183,80 @@
}
}
}
},
"customer-payment": {
"projectType": "library",
"root": "libs/customer-payment",
"sourceRoot": "libs/customer-payment/src",
"prefix": "@daffodil",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "libs/customer-payment/tsconfig.lib.json",
"project": "libs/customer-payment/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "libs/customer-payment/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "libs/customer-payment/test.ts",
"tsConfig": "libs/customer-payment/tsconfig.spec.json",
"karmaConfig": "libs/customer-payment/karma.conf.js"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"libs/customer-payment/**/*.ts",
"libs/customer-payment/**/*.html"
]
}
}
}
},
"customer-payment-authorizenet": {
"projectType": "library",
"root": "libs/customer-payment-authorizenet",
"sourceRoot": "libs/customer-payment-authorizenet/src",
"prefix": "@daffodil",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "libs/customer-payment-authorizenet/tsconfig.lib.json",
"project": "libs/customer-payment-authorizenet/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "libs/customer-payment-authorizenet/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "libs/customer-payment-authorizenet/test.ts",
"tsConfig": "libs/customer-payment-authorizenet/tsconfig.spec.json",
"karmaConfig": "libs/customer-payment-authorizenet/karma.conf.js"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"libs/customer-payment-authorizenet/**/*.ts",
"libs/customer-payment-authorizenet/**/*.html"
]
}
}
}
}
},
"defaultProject": "demo",
Expand Down
52 changes: 52 additions & 0 deletions libs/customer-payment-authorizenet/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
module.exports = {
extends: '../../.eslintrc.js',
ignorePatterns: [
'!**/*'
],
overrides: [
{
files: [
'*.ts'
],
parserOptions: {
project: [
'libs/customer/tsconfig.lib.json',
'libs/customer/tsconfig.spec.json'
],
createDefaultProgram: true
},
rules: {
'@angular-eslint/component-class-suffix': [
'error',
{
suffixes: [
'Component'
]
}
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'lib',
style: 'kebab-case'
}
],
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'lib',
style: 'camelCase'
}
],
}
},
{
files: [
'*.html'
],
rules: {}
}
]
}
9 changes: 9 additions & 0 deletions libs/customer-payment-authorizenet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# @daffodil/customer-payment

`@daffodil/customer-payment` contains the main features required to support customer management in an Angular app. It supports loading a customer and saved payments.

## Installation

```
npm install @daffodil/customer-payment --save
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/customer-payment-authorizenet/driver/magento",
"deleteDestPath": false,
"lib": {
"entryFile": "src/index.ts"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "@daffodil/customer-payment-authorizenet/driver/magento"
}
Loading

0 comments on commit 49f6cf6

Please sign in to comment.