@daffodil/payment 0.77.0 → 0.78.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/README.md +12 -2
- package/driver/in-memory/backend/payment.service.d.ts +3 -1
- package/driver/in-memory/collection-name.const.d.ts +1 -0
- package/driver/in-memory/driver/payment.service.d.ts +4 -6
- package/esm2022/driver/in-memory/backend/payment.service.mjs +3 -1
- package/esm2022/driver/in-memory/collection-name.const.mjs +2 -0
- package/esm2022/driver/in-memory/driver/payment-driver.module.mjs +4 -1
- package/esm2022/driver/in-memory/driver/payment.service.mjs +10 -9
- package/fesm2022/daffodil-payment-driver-in-memory.mjs +11 -8
- package/fesm2022/daffodil-payment-driver-in-memory.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
# @daffodil/payment
|
|
2
|
+
`@daffodil/payment` contains the main features required to support payment in an Angular app.
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
## Overview
|
|
5
|
+
`@daffodil/payment` doesn't inherently support any particular payment methods but instead provide base models and extension points that are utilized by other libraries.
|
|
4
6
|
|
|
5
7
|
See [@daffodil/authorizenet](../authorizenet/README.md) for an example of such a library.
|
|
6
8
|
|
|
7
9
|
## Installation
|
|
10
|
+
To install `@daffodil/payment`, use the following commands in your terminal.
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
Install with npm:
|
|
13
|
+
```bash
|
|
10
14
|
npm install @daffodil/payment --save
|
|
11
15
|
```
|
|
16
|
+
|
|
17
|
+
Install with yarn:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
yarn add @daffodil/payment
|
|
21
|
+
```
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { InMemoryDbService, RequestInfoUtilities, ParsedRequestUrl, RequestInfo } from 'angular-in-memory-web-api';
|
|
2
|
+
import { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';
|
|
2
3
|
import { DaffPaymentResponseKindFactory } from '@daffodil/payment/testing';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* An in-memory service that delegates payment queries to child backends
|
|
6
7
|
* via the {@link DAFF_PAYMENT_IN_MEMORY_BACKENDS}.
|
|
7
8
|
*/
|
|
8
|
-
export declare class DaffPaymentInMemoryBackendService implements InMemoryDbService {
|
|
9
|
+
export declare class DaffPaymentInMemoryBackendService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
|
|
9
10
|
private factory;
|
|
11
|
+
readonly collectionName = "payment";
|
|
10
12
|
constructor(factory: DaffPaymentResponseKindFactory);
|
|
11
13
|
/**
|
|
12
14
|
* Automatically called as part of the InMemoryDbService to parse incoming urls to match the InMemory backend urls.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME = "payment";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
3
5
|
import { DaffPaymentRequest, DaffPaymentResponse } from '@daffodil/payment';
|
|
4
6
|
import { DaffPaymentDriverInterface } from '@daffodil/payment/driver';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
@@ -8,13 +10,9 @@ import * as i0 from "@angular/core";
|
|
|
8
10
|
*
|
|
9
11
|
* @inheritdoc
|
|
10
12
|
*/
|
|
11
|
-
export declare class DaffPaymentInMemoryDriver implements DaffPaymentDriverInterface {
|
|
13
|
+
export declare class DaffPaymentInMemoryDriver extends DaffInMemoryDriverBase implements DaffPaymentDriverInterface {
|
|
12
14
|
private http;
|
|
13
|
-
|
|
14
|
-
* @docs-private
|
|
15
|
-
*/
|
|
16
|
-
url: string;
|
|
17
|
-
constructor(http: HttpClient);
|
|
15
|
+
constructor(http: HttpClient, config: InMemoryBackendConfig);
|
|
18
16
|
generateToken(request: DaffPaymentRequest): Observable<DaffPaymentResponse>;
|
|
19
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DaffPaymentInMemoryDriver, never>;
|
|
20
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<DaffPaymentInMemoryDriver>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core';
|
|
2
2
|
import { STATUS, } from 'angular-in-memory-web-api';
|
|
3
3
|
import { DaffPaymentResponseKindFactory } from '@daffodil/payment/testing';
|
|
4
|
+
import { DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME } from '../collection-name.const';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
import * as i1 from "@daffodil/payment/testing";
|
|
6
7
|
/**
|
|
@@ -10,6 +11,7 @@ import * as i1 from "@daffodil/payment/testing";
|
|
|
10
11
|
export class DaffPaymentInMemoryBackendService {
|
|
11
12
|
constructor(factory) {
|
|
12
13
|
this.factory = factory;
|
|
14
|
+
this.collectionName = DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME;
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* Automatically called as part of the InMemoryDbService to parse incoming urls to match the InMemory backend urls.
|
|
@@ -49,4 +51,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImpor
|
|
|
49
51
|
providedIn: 'root',
|
|
50
52
|
}]
|
|
51
53
|
}], ctorParameters: () => [{ type: i1.DaffPaymentResponseKindFactory }] });
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9wYXltZW50L2RyaXZlci9pbi1tZW1vcn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RlUmVzcG9uc2UkKCgpID0+ICh7XG4gICAgICBzdGF0dXM6IFNUQVRVUy5PSyxcbiAgICAgIGJvZHk6IHRoaXMuZmFjdG9yeS5jcmVhdGUoKSxcbiAgICB9KSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME = 'payment';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGVjdGlvbi1uYW1lLmNvbnN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9wYXltZW50L2RyaXZlci9pbi1tZW1vcnkvc3JjL2NvbGxlY3Rpb24tbmFtZS5jb25zdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxzQ0FBc0MsR0FBRyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgREFGRl9QQVlNRU5UX0lOX01FTU9SWV9DT0xMRUNUSU9OX05BTUUgPSAncGF5bWVudCc7XG4iXX0=
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
|
2
2
|
import { NgModule, } from '@angular/core';
|
|
3
|
+
import { provideDaffInMemoryBackends } from '@daffodil/driver/in-memory';
|
|
3
4
|
import { DaffPaymentDriver } from '@daffodil/payment/driver';
|
|
4
5
|
import { DaffPaymentTestingModule } from '@daffodil/payment/testing';
|
|
5
6
|
import { DaffPaymentInMemoryDriver } from './payment.service';
|
|
7
|
+
import { DaffPaymentInMemoryBackendService } from '../backend/payment.service';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
/**
|
|
8
10
|
* Provides the {@link DaffPaymentInMemoryDriver} as the {@link DaffPaymentDriver}.
|
|
@@ -16,6 +18,7 @@ export class DaffPaymentInMemoryDriverModule {
|
|
|
16
18
|
provide: DaffPaymentDriver,
|
|
17
19
|
useExisting: DaffPaymentInMemoryDriver,
|
|
18
20
|
},
|
|
21
|
+
provideDaffInMemoryBackends(DaffPaymentInMemoryBackendService),
|
|
19
22
|
],
|
|
20
23
|
};
|
|
21
24
|
}
|
|
@@ -34,4 +37,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImpor
|
|
|
34
37
|
],
|
|
35
38
|
}]
|
|
36
39
|
}] });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1kcml2ZXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9wYXltZW50L2RyaXZlci9pbi1tZW1vcnkvc3JjL2RyaXZlci9wYXltZW50LWRyaXZlci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFDTCxRQUFRLEdBRVQsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDekUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDN0QsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFFckUsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDOUQsT0FBTyxFQUFFLGlDQUFpQyxFQUFFLE1BQU0sNEJBQTRCLENBQUM7O0FBRS9FOztHQUVHO0FBT0gsTUFBTSxPQUFPLCtCQUErQjtJQUMxQyxNQUFNLENBQUMsT0FBTzt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cuLi9iYWNrZW5kL3BheW1lbnQuc2VydmljZSc7XG5cbi8qKlxuICogUHJvdmlkZXMgdGhlIHtAbGluayBEYWZmUGF5bWVudEluTWVtb3J5RHJpdmVyfSBhcyB0aGUge0BsaW5rIERhZmZQYXltZW50RHJpdmVyfS5cbiAqL1xuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBEYWZmUGF5bWVudFRlc3RpbmdNb2R1bGUsXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIERhZmZQYXltZW50SW5NZW1vcnlEcml2ZXJNb2R1bGUge1xuICBzdGF0aWMgZm9yUm9vdCgpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPERhZmZQYXltZW50SW5NZW1vcnlEcml2ZXJNb2R1bGU+IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmdNb2R1bGU6IERhZmZQYXltZW50SW5NZW1vcnlEcml2ZXJNb2R1bGUsXG4gICAgICBwcm92aWRlcnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IERhZmZQYXltZW50RHJpdmVyLFxuICAgICAgICAgIHVzZUV4aXN0aW5nOiBEYWZmUGF5bWVudEluTWVtb3J5RHJpdmVyLFxuICAgICAgICB9LFxuICAgICAgICBwcm92aWRlRGFmZkluTWVtb3J5QmFja2VuZHMoRGFmZlBheW1lbnRJbk1lbW9yeUJhY2tlbmRTZXJ2aWNlKSxcbiAgICAgIF0sXG4gICAgfTtcbiAgfVxufVxuIl19
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Injectable } from '@angular/core';
|
|
3
|
+
import { InMemoryBackendConfig } from 'angular-in-memory-web-api';
|
|
4
|
+
import { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';
|
|
5
|
+
import { DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME } from '../collection-name.const';
|
|
3
6
|
import * as i0 from "@angular/core";
|
|
4
7
|
import * as i1 from "@angular/common/http";
|
|
8
|
+
import * as i2 from "angular-in-memory-web-api";
|
|
5
9
|
/**
|
|
6
10
|
* The payment inmemory driver to mock the payment backend service.
|
|
7
11
|
*
|
|
8
12
|
* @inheritdoc
|
|
9
13
|
*/
|
|
10
|
-
export class DaffPaymentInMemoryDriver {
|
|
11
|
-
constructor(http) {
|
|
14
|
+
export class DaffPaymentInMemoryDriver extends DaffInMemoryDriverBase {
|
|
15
|
+
constructor(http, config) {
|
|
16
|
+
super(config, DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME);
|
|
12
17
|
this.http = http;
|
|
13
|
-
/**
|
|
14
|
-
* @docs-private
|
|
15
|
-
*/
|
|
16
|
-
this.url = '/api/payment';
|
|
17
18
|
}
|
|
18
19
|
generateToken(request) {
|
|
19
20
|
return this.http.get(this.url);
|
|
20
21
|
}
|
|
21
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPaymentInMemoryDriver, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
22
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPaymentInMemoryDriver, deps: [{ token: i1.HttpClient }, { token: i2.InMemoryBackendConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
22
23
|
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPaymentInMemoryDriver, providedIn: 'root' }); }
|
|
23
24
|
}
|
|
24
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPaymentInMemoryDriver, decorators: [{
|
|
@@ -26,5 +27,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImpor
|
|
|
26
27
|
args: [{
|
|
27
28
|
providedIn: 'root',
|
|
28
29
|
}]
|
|
29
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.InMemoryBackendConfig }] });
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9wYXltZW50L2RyaXZlci9pbi1tZW1vcnkvc3JjL2RyaXZlci9wYXltZW50LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFHbEUsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFPcEUsT0FBTyxFQUFFLHNDQUFzQyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7Ozs7QUFFbEY7Ozs7R0FJRztBQUlILE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxzQkFBc0I7SUFDbkUsWUFDVSxJQUFnQixFQUN4QixNQUE2QjtRQUU3QixLQUFLLENBQUMsTUFBTSxFQUFFLHNDQUFzQyxDQUFDLENBQUM7UUFIOUMsU0FBSSxHQUFKLElBQUksQ0FBWTtJQUkxQixDQUFDO0lBRUQsYUFBYSxDQUFDLE9BQTJCO1FBQ3ZDLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQXNCLElBQUksQ0FBQyxHQUFHLENBQUMsQ0F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heW1lbnRJbk1lbW9yeURyaXZlciBleHRlbmRzIERhZmZJbk1lbW9yeURyaXZlckJhc2UgaW1wbGVtZW50cyBEYWZmUGF5bWVudERyaXZlckludGVyZmFjZSB7XG4gIGNvbnN0cnVjdG9yKFxuICAgIHByaXZhdGUgaHR0cDogSHR0cENsaWVudCxcbiAgICBjb25maWc6IEluTWVtb3J5QmFja2VuZENvbmZpZyxcbiAgKSB7XG4gICAgc3VwZXIoY29uZmlnLCBEQUZGX1BBWU1FTlRfSU5fTUVNT1JZX0NPTExFQ1RJT05fTkFNRSk7XG4gIH1cblxuICBnZW5lcmF0ZVRva2VuKHJlcXVlc3Q6IERhZmZQYXltZW50UmVxdWVzdCk6IE9ic2VydmFibGU8RGFmZlBheW1lbnRSZXNwb25zZT4ge1xuICAgIHJldHVybiB0aGlzLmh0dHAuZ2V0PERhZmZQYXltZW50UmVzcG9uc2U+KHRoaXMudXJsKTtcbiAgfVxufVxuIl19
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from 'angular-in-memory-web-api';
|
|
3
4
|
import { STATUS } from 'angular-in-memory-web-api';
|
|
4
5
|
import * as i1 from '@daffodil/payment/testing';
|
|
5
6
|
import { DaffPaymentTestingModule } from '@daffodil/payment/testing';
|
|
6
7
|
import * as i1$1 from '@angular/common/http';
|
|
8
|
+
import { DaffInMemoryDriverBase, provideDaffInMemoryBackends } from '@daffodil/driver/in-memory';
|
|
7
9
|
import { CommonModule } from '@angular/common';
|
|
8
10
|
import { DaffPaymentDriver } from '@daffodil/payment/driver';
|
|
9
11
|
|
|
12
|
+
const DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME = 'payment';
|
|
13
|
+
|
|
10
14
|
/**
|
|
11
15
|
* An in-memory service that delegates payment queries to child backends
|
|
12
16
|
* via the {@link DAFF_PAYMENT_IN_MEMORY_BACKENDS}.
|
|
@@ -14,6 +18,7 @@ import { DaffPaymentDriver } from '@daffodil/payment/driver';
|
|
|
14
18
|
class DaffPaymentInMemoryBackendService {
|
|
15
19
|
constructor(factory) {
|
|
16
20
|
this.factory = factory;
|
|
21
|
+
this.collectionName = DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME;
|
|
17
22
|
}
|
|
18
23
|
/**
|
|
19
24
|
* Automatically called as part of the InMemoryDbService to parse incoming urls to match the InMemory backend urls.
|
|
@@ -59,18 +64,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImpor
|
|
|
59
64
|
*
|
|
60
65
|
* @inheritdoc
|
|
61
66
|
*/
|
|
62
|
-
class DaffPaymentInMemoryDriver {
|
|
63
|
-
constructor(http) {
|
|
67
|
+
class DaffPaymentInMemoryDriver extends DaffInMemoryDriverBase {
|
|
68
|
+
constructor(http, config) {
|
|
69
|
+
super(config, DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME);
|
|
64
70
|
this.http = http;
|
|
65
|
-
/**
|
|
66
|
-
* @docs-private
|
|
67
|
-
*/
|
|
68
|
-
this.url = '/api/payment';
|
|
69
71
|
}
|
|
70
72
|
generateToken(request) {
|
|
71
73
|
return this.http.get(this.url);
|
|
72
74
|
}
|
|
73
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPaymentInMemoryDriver, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
75
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPaymentInMemoryDriver, deps: [{ token: i1$1.HttpClient }, { token: i2.InMemoryBackendConfig }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
74
76
|
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPaymentInMemoryDriver, providedIn: 'root' }); }
|
|
75
77
|
}
|
|
76
78
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImport: i0, type: DaffPaymentInMemoryDriver, decorators: [{
|
|
@@ -78,7 +80,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.2", ngImpor
|
|
|
78
80
|
args: [{
|
|
79
81
|
providedIn: 'root',
|
|
80
82
|
}]
|
|
81
|
-
}], ctorParameters: () => [{ type: i1$1.HttpClient }] });
|
|
83
|
+
}], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: i2.InMemoryBackendConfig }] });
|
|
82
84
|
|
|
83
85
|
/**
|
|
84
86
|
* Provides the {@link DaffPaymentInMemoryDriver} as the {@link DaffPaymentDriver}.
|
|
@@ -92,6 +94,7 @@ class DaffPaymentInMemoryDriverModule {
|
|
|
92
94
|
provide: DaffPaymentDriver,
|
|
93
95
|
useExisting: DaffPaymentInMemoryDriver,
|
|
94
96
|
},
|
|
97
|
+
provideDaffInMemoryBackends(DaffPaymentInMemoryBackendService),
|
|
95
98
|
],
|
|
96
99
|
};
|
|
97
100
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-payment-driver-in-memory.mjs","sources":["../../../libs/payment/driver/in-memory/src/backend/payment.service.ts","../../../libs/payment/driver/in-memory/src/driver/payment.service.ts","../../../libs/payment/driver/in-memory/src/driver/payment-driver.module.ts","../../../libs/payment/driver/in-memory/src/daffodil-payment-driver-in-memory.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport {\n InMemoryDbService,\n RequestInfoUtilities,\n ParsedRequestUrl,\n STATUS,\n RequestInfo,\n} from 'angular-in-memory-web-api';\n\nimport { DaffPaymentResponseKindFactory } from '@daffodil/payment/testing';\n\n/**\n * An in-memory service that delegates payment queries to child backends\n * via the {@link DAFF_PAYMENT_IN_MEMORY_BACKENDS}.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentInMemoryBackendService implements InMemoryDbService {\n constructor(\n private factory: DaffPaymentResponseKindFactory,\n ) {}\n\n /**\n * Automatically called as part of the InMemoryDbService to parse incoming urls to match the InMemory backend urls.\n *\n * @param url initial url\n * @param utils utility to parse url\n * @returns ParsedRequestUrl\n * @docs-private\n */\n parseRequestUrl(url: string, utils: RequestInfoUtilities): ParsedRequestUrl {\n return utils.parseRequestUrl(url);\n }\n\n /**\n * @docs-private\n */\n createDb(): any {\n return {};\n }\n\n /**\n * Generates a token from a processor backend.\n *\n * @param reqInfo request object\n * @returns An http response object\n */\n get(reqInfo: RequestInfo) {\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.OK,\n body: this.factory.create(),\n }));\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport {\n DaffPaymentRequest,\n DaffPaymentResponse,\n} from '@daffodil/payment';\nimport { DaffPaymentDriverInterface } from '@daffodil/payment/driver';\n\n/**\n * The payment inmemory driver to mock the payment backend service.\n *\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentInMemoryDriver implements DaffPaymentDriverInterface {\n
|
|
1
|
+
{"version":3,"file":"daffodil-payment-driver-in-memory.mjs","sources":["../../../libs/payment/driver/in-memory/src/collection-name.const.ts","../../../libs/payment/driver/in-memory/src/backend/payment.service.ts","../../../libs/payment/driver/in-memory/src/driver/payment.service.ts","../../../libs/payment/driver/in-memory/src/driver/payment-driver.module.ts","../../../libs/payment/driver/in-memory/src/daffodil-payment-driver-in-memory.ts"],"sourcesContent":["export const DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME = 'payment';\n","import { Injectable } from '@angular/core';\nimport {\n InMemoryDbService,\n RequestInfoUtilities,\n ParsedRequestUrl,\n STATUS,\n RequestInfo,\n} from 'angular-in-memory-web-api';\n\nimport { DaffInMemorySingleRouteableBackend } from '@daffodil/driver/in-memory';\nimport { DaffPaymentResponseKindFactory } from '@daffodil/payment/testing';\n\nimport { DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME } from '../collection-name.const';\n\n/**\n * An in-memory service that delegates payment queries to child backends\n * via the {@link DAFF_PAYMENT_IN_MEMORY_BACKENDS}.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentInMemoryBackendService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {\n readonly collectionName = DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME;\n\n constructor(\n private factory: DaffPaymentResponseKindFactory,\n ) {}\n\n /**\n * Automatically called as part of the InMemoryDbService to parse incoming urls to match the InMemory backend urls.\n *\n * @param url initial url\n * @param utils utility to parse url\n * @returns ParsedRequestUrl\n * @docs-private\n */\n parseRequestUrl(url: string, utils: RequestInfoUtilities): ParsedRequestUrl {\n return utils.parseRequestUrl(url);\n }\n\n /**\n * @docs-private\n */\n createDb(): any {\n return {};\n }\n\n /**\n * Generates a token from a processor backend.\n *\n * @param reqInfo request object\n * @returns An http response object\n */\n get(reqInfo: RequestInfo) {\n return reqInfo.utils.createResponse$(() => ({\n status: STATUS.OK,\n body: this.factory.create(),\n }));\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { InMemoryBackendConfig } from 'angular-in-memory-web-api';\nimport { Observable } from 'rxjs';\n\nimport { DaffInMemoryDriverBase } from '@daffodil/driver/in-memory';\nimport {\n DaffPaymentRequest,\n DaffPaymentResponse,\n} from '@daffodil/payment';\nimport { DaffPaymentDriverInterface } from '@daffodil/payment/driver';\n\nimport { DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME } from '../collection-name.const';\n\n/**\n * The payment inmemory driver to mock the payment backend service.\n *\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPaymentInMemoryDriver extends DaffInMemoryDriverBase implements DaffPaymentDriverInterface {\n constructor(\n private http: HttpClient,\n config: InMemoryBackendConfig,\n ) {\n super(config, DAFF_PAYMENT_IN_MEMORY_COLLECTION_NAME);\n }\n\n generateToken(request: DaffPaymentRequest): Observable<DaffPaymentResponse> {\n return this.http.get<DaffPaymentResponse>(this.url);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport { provideDaffInMemoryBackends } from '@daffodil/driver/in-memory';\nimport { DaffPaymentDriver } from '@daffodil/payment/driver';\nimport { DaffPaymentTestingModule } from '@daffodil/payment/testing';\n\nimport { DaffPaymentInMemoryDriver } from './payment.service';\nimport { DaffPaymentInMemoryBackendService } from '../backend/payment.service';\n\n/**\n * Provides the {@link DaffPaymentInMemoryDriver} as the {@link DaffPaymentDriver}.\n */\n@NgModule({\n imports: [\n CommonModule,\n DaffPaymentTestingModule,\n ],\n})\nexport class DaffPaymentInMemoryDriverModule {\n static forRoot(): ModuleWithProviders<DaffPaymentInMemoryDriverModule> {\n return {\n ngModule: DaffPaymentInMemoryDriverModule,\n providers: [\n {\n provide: DaffPaymentDriver,\n useExisting: DaffPaymentInMemoryDriver,\n },\n provideDaffInMemoryBackends(DaffPaymentInMemoryBackendService),\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAAO,MAAM,sCAAsC,GAAG,SAAS;;ACc/D;;;AAGG;MAIU,iCAAiC,CAAA;AAG5C,IAAA,WAAA,CACU,OAAuC,EAAA;QAAvC,IAAO,CAAA,OAAA,GAAP,OAAO,CAAgC;QAHxC,IAAc,CAAA,cAAA,GAAG,sCAAsC,CAAC;KAI7D;AAEJ;;;;;;;AAOG;IACH,eAAe,CAAC,GAAW,EAAE,KAA2B,EAAA;AACtD,QAAA,OAAO,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;KACnC;AAED;;AAEG;IACH,QAAQ,GAAA;AACN,QAAA,OAAO,EAAE,CAAC;KACX;AAED;;;;;AAKG;AACH,IAAA,GAAG,C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EAAA,UAAA,EAAA,CAAA;kBAN3C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,wBAAwB;AACzB,qBAAA;AACF,iBAAA,CAAA;;;ACrBD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/payment","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/payment"]}}},"version":"0.
|
|
1
|
+
{"name":"@daffodil/payment","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/payment"]}}},"version":"0.78.0","description":"A client-side Angular package for managing ecommerce payments agnostic to the ecommerce platform.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/common":"^18.2.2","@angular/core":"^18.2.2","@daffodil/core":"0.78.0","@ngrx/effects":"^18.0.2","@ngrx/store":"^18.0.2","rxjs":"7.8.1"},"optionalDependencies":{"@apollo/client":"^3.0.0","@daffodil/driver":"0.78.0","apollo-angular":"^7.1.2","@faker-js/faker":"^7.6.0"},"module":"fesm2022/daffodil-payment.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/daffodil-payment.mjs","esm":"./esm2022/daffodil-payment.mjs","default":"./fesm2022/daffodil-payment.mjs"},"./driver":{"types":"./driver/index.d.ts","esm2022":"./esm2022/driver/daffodil-payment-driver.mjs","esm":"./esm2022/driver/daffodil-payment-driver.mjs","default":"./fesm2022/daffodil-payment-driver.mjs"},"./state":{"types":"./state/index.d.ts","esm2022":"./esm2022/state/daffodil-payment-state.mjs","esm":"./esm2022/state/daffodil-payment-state.mjs","default":"./fesm2022/daffodil-payment-state.mjs"},"./testing":{"types":"./testing/index.d.ts","esm2022":"./esm2022/testing/daffodil-payment-testing.mjs","esm":"./esm2022/testing/daffodil-payment-testing.mjs","default":"./fesm2022/daffodil-payment-testing.mjs"},"./driver/in-memory":{"types":"./driver/in-memory/index.d.ts","esm2022":"./esm2022/driver/in-memory/daffodil-payment-driver-in-memory.mjs","esm":"./esm2022/driver/in-memory/daffodil-payment-driver-in-memory.mjs","default":"./fesm2022/daffodil-payment-driver-in-memory.mjs"},"./driver/testing":{"types":"./driver/testing/index.d.ts","esm2022":"./esm2022/driver/testing/daffodil-payment-driver-testing.mjs","esm":"./esm2022/driver/testing/daffodil-payment-driver-testing.mjs","default":"./fesm2022/daffodil-payment-driver-testing.mjs"},"./state/testing":{"types":"./state/testing/index.d.ts","esm2022":"./esm2022/state/testing/daffodil-payment-state-testing.mjs","esm":"./esm2022/state/testing/daffodil-payment-state-testing.mjs","default":"./fesm2022/daffodil-payment-state-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
|