Enlarge search payments n refunds range from 1 year to 3 years (#171)

* Enlarge search payments n refunds range from 1 year to 3 years

* Update payment-details.service.ts

* Update payments.service.ts
This commit is contained in:
Aleksandra Usacheva 2020-03-05 17:45:31 +03:00 committed by GitHub
parent 8276b9850a
commit f8f7257aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ export class PaymentsService extends PartialFetcher<PaymentSearchResult, Payment
continuationToken: string
): Observable<FetchResult<PaymentSearchResult>> {
return this.paymentSearchService.searchPaymentsByDuration(
{ amount: 1, unit: 'y' },
{ amount: 3, unit: 'y' },
params,
this.searchLimit,
continuationToken

View File

@ -10,7 +10,7 @@ import { PaymentSearchService } from '../../api/search';
export class PaymentDetailsService {
payment$ = this.route.params.pipe(
switchMap(({ invoiceID, paymentID }) =>
this.paymentSearchService.getPaymentByDuration({ amount: 1, unit: 'y' }, invoiceID, paymentID)
this.paymentSearchService.getPaymentByDuration({ amount: 3, unit: 'y' }, invoiceID, paymentID)
),
catchError(() => {
this.snackBar.open(this.transloco.translate('httpError'), 'OK');

View File

@ -19,7 +19,7 @@ export class RefundsService extends PartialFetcher<RefundSearchResult, RefundsSe
continuationToken: string
): Observable<FetchResult<RefundSearchResult>> {
return this.refundSearchService.searchRefundsByDuration(
{ amount: 1, unit: 'y' },
{ amount: 3, unit: 'y' },
invoiceID,
paymentID,
this.searchLimit,