Move mollie code ( srvice ) uit farmmapslib halen ( is open source ), naar farmmaps
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Peter (extern) 2021-01-13 17:29:48 +01:00
parent ed5a74ed07
commit 41b1295f9e
5 changed files with 2 additions and 71 deletions

View File

@ -31,7 +31,6 @@ import { StateSerializerService } from './services/state-serializer.service';
import { PackageService } from './services/package.service';
import { PackagePreloadStrategy } from './services/package-preload-strategy.service';
import { SenmlService } from './services/senml-service';
import { MollieService } from './services/mollie.service';
export {
FolderService,
@ -54,8 +53,7 @@ export {
SchemaService,
PackageService,
SenmlService,
PackagePreloadStrategy,
MollieService
PackagePreloadStrategy
};
@NgModule({

View File

@ -56,8 +56,6 @@ import { SecureOAuthStorage} from './shared/secureOAuthStorage';
import { GradientComponent } from './components/gradient/gradient.component';
import { GradientSelectComponent } from './components/gradient-select/gradient-select.component';
import { AppMenuComponent } from './components/app-menu/app-menu.component';
import { IMolliePaymentRequest, MolliePaymentRequest } from './models/mollie.payment.request';
import { IMolliePaymentResponse } from './models/mollie.payment.response';
export {
SafePipe,
@ -98,10 +96,7 @@ export {
ISenMLItem,
IDataLayer,
IColor,
IGradientstop,
IMolliePaymentRequest,
MolliePaymentRequest,
IMolliePaymentResponse
IGradientstop
};
@NgModule({

View File

@ -1,16 +0,0 @@
import { IItem } from "./item";
export interface IMolliePaymentRequest {
templatePackageItem?: IItem,
redirectUrl?: string,
locale?: string,
}
export class MolliePaymentRequest implements IMolliePaymentRequest {
public templatePackageItem?: IItem;
public redirectUrl?: string;
public locale?: string;
constructor() {
}
}

View File

@ -1,19 +0,0 @@
export interface IMolliePaymentResponse {
createdAt?: Date,
expiresAt?: Date,
currency?: string,
amount?: string,
checkoutUrl?: string,
}
export class MolliePaymentResponse implements IMolliePaymentResponse {
public createdAt?: Date;
public expiresAt?: Date;
public currency?: string;
public amount?: string;
public checkoutUrl?: string;
constructor() {
}
}

View File

@ -1,27 +0,0 @@
import { Injectable } from '@angular/core';
import { HttpClient } from "@angular/common/http";
import { AppConfig } from "../shared/app.config";
import { Observable } from 'rxjs';
import { IMolliePaymentResponse } from '../models/mollie.payment.response';
import { IMolliePaymentRequest } from '../models/mollie.payment.request';
@Injectable({
providedIn: 'root',
})
export class MollieService {
constructor(
public httpClient: HttpClient,
public appConfig: AppConfig) {
}
ApiEndpoint() {
return this.appConfig.getConfig("apiEndPoint");
}
createMolliePayment(paymentRequest: IMolliePaymentRequest): Observable<IMolliePaymentResponse> {
return this.httpClient.post<IMolliePaymentResponse>(
`${this.ApiEndpoint()}/api/v1/payments/create`,
paymentRequest);
}
}