@xsolla/payment-client-core 0.1.6 → 0.1.8
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/esm2020/lib/core/country/country-iso-code.enum.mjs +6 -0
- package/esm2020/lib/core/payment/finance-details/cart-summary.interface.mjs +1 -1
- package/esm2020/lib/core/payment/finance-details/finance-details.interface.mjs +2 -0
- package/esm2020/lib/core/payment/finance-details/finance-details.service.mjs +25 -12
- package/esm2020/lib/core/payment/finance-details/price.helpers.mjs +2 -2
- package/esm2020/lib/core/payment/finance-details/status/field-with-amount-and-currency.interface.mjs +2 -0
- package/esm2020/lib/core/payment/finance-details/status/fields-with-currency.mjs +16 -0
- package/esm2020/lib/core/payment/finance-details/status/finance-info.interface.mjs +2 -0
- package/esm2020/lib/core/payment/finance-details/status/status-finance-details-adapter.service.mjs +290 -0
- package/esm2020/lib/core/payment/finance-details/summary/default-image-patterns.const.mjs +10 -0
- package/esm2020/lib/core/payment/finance-details/summary/sales-tax-details-key.enum.mjs +7 -0
- package/esm2020/lib/core/payment/finance-details/summary/summary-finance-details-adapter.service.mjs +264 -0
- package/esm2020/lib/core/payment/finance-details/vat-details-key.enum.mjs +14 -0
- package/esm2020/lib/core/payment/form/controls/phone-control.config.mjs +8 -0
- package/esm2020/lib/core/payment/form/converters/converters-map.mjs +3 -1
- package/esm2020/lib/core/payment/form/converters/phone.converter.mjs +37 -0
- package/esm2020/lib/core/payment/form/form.module.mjs +6 -1
- package/esm2020/lib/core/payment/form/validators/max-length-validator.mjs +6 -0
- package/esm2020/lib/core/payment/form/validators/min-length-validator.mjs +6 -0
- package/esm2020/lib/core/payment/form/validators/phone-validator.mjs +6 -0
- package/esm2020/lib/core/payment/payment.interface.mjs +1 -1
- package/esm2020/lib/core/payment/payment.service.mjs +2 -2
- package/esm2020/lib/core/payment/status/status-finance-info.interface.mjs +2 -0
- package/esm2020/lib/core/payment/status/status-order.interface.mjs +2 -0
- package/esm2020/lib/core/payment/status/status.interface.mjs +1 -1
- package/esm2020/lib/core/payment/status/status.service.mjs +10 -6
- package/esm2020/lib/core/payment/xps-summary.interface.mjs +1 -1
- package/esm2020/lib/core/session/session.service.mjs +57 -0
- package/esm2020/lib/core/type-guards/is-null.function.mjs +4 -0
- package/esm2020/lib/core/type-guards/is-undefined.function.mjs +4 -0
- package/esm2020/lib/core-library.module.mjs +1 -4
- package/esm2020/lib/core-library.service.mjs +4 -1
- package/fesm2015/xsolla-payment-client-core.mjs +829 -352
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +812 -344
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/country/country-iso-code.enum.d.ts +4 -0
- package/lib/core/payment/finance-details/cart-summary.interface.d.ts +2 -2
- package/lib/core/payment/finance-details/finance-details.interface.d.ts +11 -0
- package/lib/core/payment/finance-details/finance-details.service.d.ts +12 -5
- package/lib/core/payment/finance-details/price.helpers.d.ts +3 -3
- package/lib/core/payment/finance-details/status/field-with-amount-and-currency.interface.d.ts +7 -0
- package/lib/core/payment/finance-details/status/fields-with-currency.d.ts +1 -0
- package/lib/core/payment/finance-details/status/finance-info.interface.d.ts +4 -0
- package/lib/core/payment/finance-details/status/status-finance-details-adapter.service.d.ts +31 -0
- package/lib/core/payment/finance-details/summary/sales-tax-details-key.enum.d.ts +5 -0
- package/lib/core/payment/finance-details/summary/summary-finance-details-adapter.service.d.ts +24 -0
- package/lib/core/payment/finance-details/vat-details-key.enum.d.ts +12 -0
- package/lib/core/payment/form/controls/phone-control.config.d.ts +6 -0
- package/lib/core/payment/form/converters/phone.converter.d.ts +13 -0
- package/lib/core/payment/form/validators/max-length-validator.d.ts +2 -0
- package/lib/core/payment/form/validators/min-length-validator.d.ts +2 -0
- package/lib/core/payment/form/validators/phone-validator.d.ts +2 -0
- package/lib/core/payment/payment.interface.d.ts +1 -1
- package/lib/core/payment/payment.service.d.ts +1 -1
- package/lib/core/payment/status/status-finance-info.interface.d.ts +4 -0
- package/lib/core/payment/status/status-order.interface.d.ts +12 -0
- package/lib/core/payment/status/status.interface.d.ts +4 -16
- package/lib/core/payment/status/status.service.d.ts +3 -1
- package/lib/core/payment/xps-summary.interface.d.ts +1 -1
- package/lib/core/session/session.service.d.ts +18 -0
- package/lib/core/type-guards/is-null.function.d.ts +1 -0
- package/lib/core/type-guards/is-undefined.function.d.ts +1 -0
- package/lib/core-library.service.d.ts +1 -0
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.1.8.tgz +0 -0
- package/esm2020/lib/core/payment/finance-details/default-image-patterns.const.mjs +0 -10
- package/esm2020/lib/core/payment/finance-details/finance-details-response.token.mjs +0 -8
- package/esm2020/lib/core/payment/finance-details/finance-details.class.mjs +0 -237
- package/lib/core/payment/finance-details/finance-details-response.token.d.ts +0 -7
- package/lib/core/payment/finance-details/finance-details.class.d.ts +0 -29
- package/xsolla-payment-client-core-0.1.6.tgz +0 -0
- /package/lib/core/payment/finance-details/{default-image-patterns.const.d.ts → summary/default-image-patterns.const.d.ts} +0 -0
|
@@ -2,8 +2,8 @@ import { CartLine } from './cart-line.interface';
|
|
|
2
2
|
export interface CartSummary {
|
|
3
3
|
transactionDetails?: CartLine[];
|
|
4
4
|
shipping?: CartLine[];
|
|
5
|
-
subtotal?: CartLine;
|
|
6
|
-
subtotalPayment?: CartLine;
|
|
5
|
+
subtotal?: CartLine | null;
|
|
6
|
+
subtotalPayment?: CartLine | null;
|
|
7
7
|
subtotalDetails?: CartLine[];
|
|
8
8
|
total: CartLine;
|
|
9
9
|
totalDetails?: CartLine[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { XpsFinance } from '../xps-finance.interface';
|
|
2
|
+
import { XpsPurchase } from '../xps-purchase.interface';
|
|
3
|
+
import { CartItem } from './cart-item.interface';
|
|
4
|
+
import { CartSummary } from './cart-summary.interface';
|
|
5
|
+
export interface FinanceDetails {
|
|
6
|
+
purchase?: XpsPurchase | null;
|
|
7
|
+
finance?: XpsFinance | null;
|
|
8
|
+
cartItems: CartItem[] | null;
|
|
9
|
+
cartSummary: CartSummary;
|
|
10
|
+
paymentCountry: string;
|
|
11
|
+
}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { EmitDataService } from '../emit-data.service.abstract';
|
|
2
|
+
import { Status } from '../status/status.interface';
|
|
2
3
|
import { XpsSummary } from '../xps-summary.interface';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { FinanceDetails } from './finance-details.interface';
|
|
5
|
+
import { StatusFinanceDetailsAdapterService } from './status/status-finance-details-adapter.service';
|
|
6
|
+
import { SummaryFinanceDetailsAdapterService } from './summary/summary-finance-details-adapter.service';
|
|
7
|
+
import { SessionService } from '../../session/session.service';
|
|
5
8
|
import * as i0 from "@angular/core";
|
|
6
9
|
export declare class FinanceDetailsService extends EmitDataService<FinanceDetails> {
|
|
7
|
-
private readonly
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
private readonly sessionService;
|
|
11
|
+
private readonly summaryFinanceDetailsAdapterService;
|
|
12
|
+
private readonly statusFinanceDetailsAdapterService;
|
|
13
|
+
private readonly purchaseSessionKey;
|
|
14
|
+
constructor(sessionService: SessionService, summaryFinanceDetailsAdapterService: SummaryFinanceDetailsAdapterService, statusFinanceDetailsAdapterService: StatusFinanceDetailsAdapterService);
|
|
15
|
+
emitWithSummary(summary?: XpsSummary): void;
|
|
16
|
+
emitWithStatus(status?: Status): void;
|
|
10
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<FinanceDetailsService, never>;
|
|
11
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<FinanceDetailsService>;
|
|
12
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Price } from './price.interface';
|
|
2
2
|
export declare function extractMoneyCurrency<T>(money: (T & {
|
|
3
|
-
amount
|
|
4
|
-
currency
|
|
3
|
+
amount?: null | number;
|
|
4
|
+
currency?: string;
|
|
5
5
|
}) | undefined, allowZero?: boolean): Price;
|
|
6
|
-
export declare function createPriceOrUndefined(amount: number | undefined | null, currency: string): Price | undefined;
|
|
6
|
+
export declare function createPriceOrUndefined(amount: number | undefined | null, currency: string | undefined): Price | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fieldsWithCurrency: Set<string>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Status } from '../../status/status.interface';
|
|
2
|
+
import { FinanceDetails } from '../finance-details.interface';
|
|
3
|
+
import { XpsPurchase } from '../../xps-purchase.interface';
|
|
4
|
+
import { SummaryFinanceDetailsAdapterService } from '../summary/summary-finance-details-adapter.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class StatusFinanceDetailsAdapterService {
|
|
7
|
+
private readonly summarFinanceDetailsAdapterService;
|
|
8
|
+
constructor(summarFinanceDetailsAdapterService: SummaryFinanceDetailsAdapterService);
|
|
9
|
+
getFinanceDetails(status: Status, purchase: XpsPurchase | null): FinanceDetails;
|
|
10
|
+
private fillFinanceInfo;
|
|
11
|
+
private addAmountAndCurrencyToField;
|
|
12
|
+
private getCartItems;
|
|
13
|
+
private convertStatusFinanceToSummaryFinance;
|
|
14
|
+
private getCartSummary;
|
|
15
|
+
private getTotal;
|
|
16
|
+
private getSubtotalPayment;
|
|
17
|
+
private getInitialCurrencySubtotal;
|
|
18
|
+
private getTotalDetails;
|
|
19
|
+
private getSubtotalDetails;
|
|
20
|
+
private getTaxesForSubtotalDetails;
|
|
21
|
+
private getVatNotIncludingKeyDetails;
|
|
22
|
+
private getVatNotIncludingTitleDetails;
|
|
23
|
+
private getVatIncludingKeyDetails;
|
|
24
|
+
private geVatIncludingTitleDetails;
|
|
25
|
+
private isGhana;
|
|
26
|
+
private isIndia;
|
|
27
|
+
private getTransactionDetails;
|
|
28
|
+
private getPercents;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusFinanceDetailsAdapterService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StatusFinanceDetailsAdapterService>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { XpsSummary } from '../../xps-summary.interface';
|
|
2
|
+
import { FinanceDetails } from '../finance-details.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SummaryFinanceDetailsAdapterService {
|
|
5
|
+
getFinanceDetails(summary: XpsSummary): FinanceDetails;
|
|
6
|
+
private shouldShowZeroIndirectTaxRate;
|
|
7
|
+
private isSalesTaxes;
|
|
8
|
+
private getCartItems;
|
|
9
|
+
private getCartSummary;
|
|
10
|
+
private getPaymentCountry;
|
|
11
|
+
private getTaxForItem;
|
|
12
|
+
private getSubtotalDetails;
|
|
13
|
+
private getTaxesForSubtotalDetails;
|
|
14
|
+
private getVatLabelForSubtotalDetails;
|
|
15
|
+
private getTaxesForTotalDetails;
|
|
16
|
+
private getVatNotIncludingKeyForDetails;
|
|
17
|
+
private getVatIncludingKeyForDetails;
|
|
18
|
+
private getVatLabelForTotalDetails;
|
|
19
|
+
private isIndia;
|
|
20
|
+
private isGhana;
|
|
21
|
+
private isDefaultImage;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SummaryFinanceDetailsAdapterService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SummaryFinanceDetailsAdapterService>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum VatDetailsKey {
|
|
2
|
+
vat = "vat",
|
|
3
|
+
vatPercent = "vat-percent",
|
|
4
|
+
vatIncluding = "vat-including",
|
|
5
|
+
vatPercentIncluding = "vat-percent-including",
|
|
6
|
+
vatIndia = "vat-india",
|
|
7
|
+
vatIndiaPercent = "vat-india-percent",
|
|
8
|
+
vatIndiaIncluding = "vat-india-including",
|
|
9
|
+
vatIndiaPercentIncluding = "vat-india-percent-including",
|
|
10
|
+
vatGhana = "vat-ghana",
|
|
11
|
+
vatGhanaIncluding = "vat-ghana-including"
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { Converter } from './converter.abstract';
|
|
3
|
+
import { SyncService } from '../../sync/sync.service';
|
|
4
|
+
import { Field } from '../../field.interface';
|
|
5
|
+
import { PhoneControlConfig } from '../controls/phone-control.config';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PhoneConverter extends Converter {
|
|
8
|
+
constructor(syncService: SyncService);
|
|
9
|
+
getValidators(field: Field): ValidatorFn[];
|
|
10
|
+
protected createControlConfig(field: Field): PhoneControlConfig;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneConverter, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PhoneConverter>;
|
|
13
|
+
}
|
|
@@ -4,7 +4,7 @@ import { NextAction } from './actions/next-action.interface';
|
|
|
4
4
|
import { Status } from './status/status.interface';
|
|
5
5
|
import { Field } from './field.interface';
|
|
6
6
|
import { ControlConfig } from './form/controls/control-config';
|
|
7
|
-
import { FinanceDetails } from './finance-details/finance-details.
|
|
7
|
+
import { FinanceDetails } from './finance-details/finance-details.interface';
|
|
8
8
|
import { InputEventName } from './form/input-event.enum';
|
|
9
9
|
import { FormFieldsStatus } from './form/form-fields-status.interface';
|
|
10
10
|
import { FormState } from './form/form-state.interface';
|
|
@@ -9,7 +9,7 @@ import { StatusService } from './status/status.service';
|
|
|
9
9
|
import { NextActionService } from './actions/next-action.service';
|
|
10
10
|
import { ControlConfig } from './form/controls/control-config';
|
|
11
11
|
import { ControlConfigService } from './form/controls/control-config.service';
|
|
12
|
-
import { FinanceDetails } from './finance-details/finance-details.
|
|
12
|
+
import { FinanceDetails } from './finance-details/finance-details.interface';
|
|
13
13
|
import { FinanceDetailsService } from './finance-details/finance-details.service';
|
|
14
14
|
import { NextAction } from './actions/next-action.interface';
|
|
15
15
|
import { Field } from './field.interface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { StatusFinanceInfo } from './status-finance-info.interface';
|
|
2
|
+
import { StatusOrder } from './status-order.interface';
|
|
3
3
|
import { StatusEnum } from './status.enum';
|
|
4
4
|
import { TitleClass } from './title-class.enum';
|
|
5
5
|
import { WebSocketClientType } from './web-socket-client-type.enum';
|
|
@@ -11,9 +11,7 @@ export interface Status {
|
|
|
11
11
|
webSocketUrl: string;
|
|
12
12
|
webSocketChannelName: string;
|
|
13
13
|
webSocketClientType: WebSocketClientType;
|
|
14
|
-
financeInfo:
|
|
15
|
-
[key: string]: FinanceInfoField;
|
|
16
|
-
};
|
|
14
|
+
financeInfo: StatusFinanceInfo;
|
|
17
15
|
isCancelUser: boolean;
|
|
18
16
|
backUrlSettings: {
|
|
19
17
|
backUrl: string;
|
|
@@ -48,15 +46,5 @@ export interface Status {
|
|
|
48
46
|
isSuccess?: boolean;
|
|
49
47
|
isCanceled?: boolean;
|
|
50
48
|
paymentCountryIso: string;
|
|
51
|
-
order?:
|
|
52
|
-
lineitems?: LineItem[];
|
|
53
|
-
shipping?: {
|
|
54
|
-
currency: string;
|
|
55
|
-
amount: number;
|
|
56
|
-
};
|
|
57
|
-
contained_taxes?: {
|
|
58
|
-
sales_tax?: boolean;
|
|
59
|
-
user_vat?: boolean;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
49
|
+
order?: StatusOrder;
|
|
62
50
|
}
|
|
@@ -4,13 +4,15 @@ import { ListenStatusService } from './listen-status/listen-status.service';
|
|
|
4
4
|
import { Status } from './status.interface';
|
|
5
5
|
import { NextActionService } from '../actions/next-action.service';
|
|
6
6
|
import { UrlService } from '../../url/url.service';
|
|
7
|
+
import { FinanceDetailsService } from '../finance-details/finance-details.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class StatusService {
|
|
9
10
|
private readonly urlService;
|
|
10
11
|
private readonly statusRequestService;
|
|
12
|
+
private readonly financeDetailsService;
|
|
11
13
|
private readonly listenStatusService;
|
|
12
14
|
private readonly nextActionService;
|
|
13
|
-
constructor(urlService: UrlService, statusRequestService: StatusRequestService, listenStatusService: ListenStatusService, nextActionService: NextActionService);
|
|
15
|
+
constructor(urlService: UrlService, statusRequestService: StatusRequestService, financeDetailsService: FinanceDetailsService, listenStatusService: ListenStatusService, nextActionService: NextActionService);
|
|
14
16
|
getStatus(params: StatusRequestParams): Promise<Status>;
|
|
15
17
|
getStatusWithUrlSearchParams(url?: string): Promise<Status>;
|
|
16
18
|
private getRequestParamsFromUrl;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ExtendedWindow } from '../extended-window.interface';
|
|
2
|
+
import { SettingsService } from '../settings/settings.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SessionService {
|
|
5
|
+
private readonly window;
|
|
6
|
+
private readonly settingsService;
|
|
7
|
+
private cache;
|
|
8
|
+
constructor(window: ExtendedWindow, settingsService: SettingsService);
|
|
9
|
+
/**
|
|
10
|
+
* @param {string} key must be uniq entire all app
|
|
11
|
+
* @param {unknown} value can be anything
|
|
12
|
+
*/
|
|
13
|
+
set(key: string, value: unknown): void;
|
|
14
|
+
get<T>(key: string): T | null;
|
|
15
|
+
private getStorageKey;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SessionService>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isNull(value: unknown): value is null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isUndefined(value: unknown): value is undefined;
|
|
@@ -50,6 +50,7 @@ export declare class CoreLibraryService {
|
|
|
50
50
|
init(configuration: InitConfiguration): Promise<void>;
|
|
51
51
|
getStatus(url?: string): Promise<Status>;
|
|
52
52
|
setCountry(country: string): void;
|
|
53
|
+
getCountry(): string;
|
|
53
54
|
createPayment(config: PaymentConfig): Payment;
|
|
54
55
|
getCreditCardService(): CreditCard;
|
|
55
56
|
get cardTypeUpdates$(): Observable<CreditCardState>;
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* default image for purchase item is set on Publisher Account side.
|
|
3
|
-
* for purchase checkout items the image url is converted into base64 string.
|
|
4
|
-
* to determine default image fixed templates are used
|
|
5
|
-
*/
|
|
6
|
-
export const defaultImagePatterns = [
|
|
7
|
-
/^data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAAAAADmVT4XAAACMUlEQVR4Ae3YgYqdMBSE4fP/,
|
|
8
|
-
/virtual_item_default_image/,
|
|
9
|
-
];
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1pbWFnZS1wYXR0ZXJucy5jb25zdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3BheW1lbnQtY2xpZW50LWNvcmUvc3JjL2xpYi9jb3JlL3BheW1lbnQvZmluYW5jZS1kZXRhaWxzL2RlZmF1bHQtaW1hZ2UtcGF0dGVybnMuY29uc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7R0FJRztBQUNILE1BQU0sQ0FBQyxNQUFNLG9CQUFvQixHQUFHO0lBQ2xDLGlHQUFpRztJQUNqRyw0QkFBNEI7Q0FDN0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogZGVmYXVsdCBpbWFnZSBmb3IgcHVyY2hhc2UgaXRlbSBpcyBzZXQgb24gUHVibGlzaGVyIEFjY291bnQgc2lkZS5cbiAqIGZvciBwdXJjaGFzZSBjaGVja291dCBpdGVtcyB0aGUgaW1hZ2UgdXJsIGlzIGNvbnZlcnRlZCBpbnRvIGJhc2U2NCBzdHJpbmcuXG4gKiB0byBkZXRlcm1pbmUgZGVmYXVsdCBpbWFnZSBmaXhlZCB0ZW1wbGF0ZXMgYXJlIHVzZWRcbiAqL1xuZXhwb3J0IGNvbnN0IGRlZmF1bHRJbWFnZVBhdHRlcm5zID0gW1xuICAvXmRhdGE6aW1hZ2VcXC9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFJQUFBQUNBQ0FBQUFBRG1WVDRYQUFBQ01VbEVRVlI0QWUzWWdZcWRNQlNFNGZQLyxcbiAgL3ZpcnR1YWxfaXRlbV9kZWZhdWx0X2ltYWdlLyxcbl07XG4iXX0=
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { FinanceDetails } from './finance-details.class';
|
|
3
|
-
export const financeDetailsResponseFactoryToken = new InjectionToken('FinanceDetails');
|
|
4
|
-
export const financeDetailsResponseFactoryProvider = {
|
|
5
|
-
provide: financeDetailsResponseFactoryToken,
|
|
6
|
-
useValue: (...args) => new FinanceDetails(...args),
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmluYW5jZS1kZXRhaWxzLXJlc3BvbnNlLnRva2VuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvcGF5bWVudC1jbGllbnQtY29yZS9zcmMvbGliL2NvcmUvcGF5bWVudC9maW5hbmNlLWRldGFpbHMvZmluYW5jZS1kZXRhaWxzLXJlc3BvbnNlLnRva2VuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQWlCLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQVF6RCxNQUFNLENBQUMsTUFBTSxrQ0FBa0MsR0FDN0MsSUFBSSxjQUFjLENBQWdDLGdCQUFnQixDQUFDLENBQUM7QUFFdEUsTUFBTSxDQUFDLE1BQU0scUNBQXFDLEdBQWtCO0lBQ2xFLE9BQU8sRUFBRSxrQ0FBa0M7SUFDM0MsUUFBUSxFQUFFLENBQUMsR0FBRyxJQUF3QixFQUFFLEVBQUUsQ0FBQyxJQUFJLGNBQWMsQ0FBQyxHQUFHLElBQUksQ0FBQztDQUN2RSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4sIFZhbHVlUHJvdmlkZXIgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEZpbmFuY2VEZXRhaWxzIH0gZnJvbSAnLi9maW5hbmNlLWRldGFpbHMuY2xhc3MnO1xuXG50eXBlIFJlc3BvbnNlUGFyYW1ldGVycyA9IENvbnN0cnVjdG9yUGFyYW1ldGVyczx0eXBlb2YgRmluYW5jZURldGFpbHM+O1xuXG5leHBvcnQgdHlwZSBGaW5hbmNlRGV0YWlsc1Jlc3BvbnNlRmFjdG9yeSA9IChcbiAgLi4uYXJnczogUmVzcG9uc2VQYXJhbWV0ZXJzXG4pID0+IEZpbmFuY2VEZXRhaWxzO1xuXG5leHBvcnQgY29uc3QgZmluYW5jZURldGFpbHNSZXNwb25zZUZhY3RvcnlUb2tlbjogSW5qZWN0aW9uVG9rZW48RmluYW5jZURldGFpbHNSZXNwb25zZUZhY3Rvcnk+ID1cbiAgbmV3IEluamVjdGlvblRva2VuPEZpbmFuY2VEZXRhaWxzUmVzcG9uc2VGYWN0b3J5PignRmluYW5jZURldGFpbHMnKTtcblxuZXhwb3J0IGNvbnN0IGZpbmFuY2VEZXRhaWxzUmVzcG9uc2VGYWN0b3J5UHJvdmlkZXI6IFZhbHVlUHJvdmlkZXIgPSB7XG4gIHByb3ZpZGU6IGZpbmFuY2VEZXRhaWxzUmVzcG9uc2VGYWN0b3J5VG9rZW4sXG4gIHVzZVZhbHVlOiAoLi4uYXJnczogUmVzcG9uc2VQYXJhbWV0ZXJzKSA9PiBuZXcgRmluYW5jZURldGFpbHMoLi4uYXJncyksXG59O1xuIl19
|