@miden-npm/angular 2.0.0 → 2.0.1

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/index.d.ts CHANGED
@@ -234,6 +234,33 @@ interface IAuthorizeCardPaymentPayload {
234
234
  paymentReference: string;
235
235
  isCheckout: boolean;
236
236
  }
237
+ interface IDeviceInformation {
238
+ httpBrowserLanguage: string;
239
+ httpBrowserJavaEnabled: boolean;
240
+ httpBrowserJavaScriptEnabled: boolean;
241
+ httpBrowserColorDepth: string;
242
+ httpBrowserScreenHeight: string;
243
+ httpBrowserScreenWidth: string;
244
+ httpBrowserTimeDifference: string;
245
+ userAgentBrowserValue: string;
246
+ deviceChannel: 'BROWSER' | 'MOBILE' | 'API';
247
+ deviceIpAddress: string;
248
+ httpAcceptContent: string;
249
+ }
250
+ interface IAuthorizeCardPaymentPayloadMiden {
251
+ customerId: string;
252
+ amount: string;
253
+ currency: string;
254
+ narration: string;
255
+ encryptedCardDetails: string;
256
+ billingDetails: IBillingDetails;
257
+ redirectUrl: string;
258
+ paymentReference: string;
259
+ isCheckout: boolean;
260
+ postBackUrl: string;
261
+ saveCard: boolean;
262
+ deviceInformation: IDeviceInformation;
263
+ }
237
264
  interface ThreeDsHtml {
238
265
  paReq?: string;
239
266
  termUrl?: string;
@@ -577,9 +604,7 @@ declare class CheckoutService {
577
604
  setBillingInfo(info: any): void;
578
605
  createPaymentLink(payload: IPaymentObject, environment: string, secretKey: string, caller?: 'buzapay' | 'miden'): Observable<IApiResponse<any>>;
579
606
  generatePaymentAccount(environment: string, { merchantId, ...rest }: IGeneratePaymentAccountPayload, caller?: 'buzapay' | 'miden'): Observable<IApiResponse<IPaymentAccountResponse>>;
580
- authorizeCardPayment(environment: string, { merchantId, ...rest }: IAuthorizeCardPaymentPayload & {
581
- merchantId: string;
582
- }, caller?: 'buzapay' | 'miden'): Observable<ICheckoutApiResponse>;
607
+ authorizeCardPayment(environment: string, { merchantId, ...rest }: any, caller?: 'buzapay' | 'miden'): Observable<ICheckoutApiResponse>;
583
608
  getPaymentReferenceDetails(environment: string, paymentReference: string, caller?: 'buzapay' | 'miden'): Observable<IApiResponse<IPaymentReferenceDetail>>;
584
609
  generateStableCoinAddress(environment: string, { merchantId, ...rest }: IGenerateStableCoinAddress, caller?: 'buzapay' | 'miden'): Observable<IApiResponse<IGenerateStableCoinAddressResponse>>;
585
610
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutService, never>;
@@ -740,6 +765,7 @@ declare const restrictToNumericKeys: (event: KeyboardEvent) => void;
740
765
 
741
766
  declare const checkObjectTruthy: <T extends object>(obj: T) => boolean;
742
767
  declare const getQueryParams: (url: string) => Record<string, string>;
768
+ declare function buildDeviceInformation(partial?: Partial<IDeviceInformation>): IDeviceInformation;
743
769
 
744
770
  declare const currencySign: (currency: string) => string;
745
771
  declare const formatAmount: (value: number | string, currency?: string) => string;
@@ -773,5 +799,5 @@ declare enum CardSchemes {
773
799
  declare function cardType(cardNumber: string): string;
774
800
  declare function detect(cardNumber: string): CardSchemes;
775
801
 
776
- export { BZP_CONFIG, BZP_CORRELATION_ID, BackComponent, ButtonComponent, CardComponent, CardSchemes, CheckoutService, CircleCountdownComponent, CopyComponent, CurrencyAmountComponent, EncryptService, HintComponent, IconArrowSwapComponent, IconBuzapayIconComponent, IconCardsComponent, IconCheckCircleComponent, IconChevronDownComponent, IconChevronLeftComponent, IconChevronUpComponent, IconCloseComponent, IconCoinComponent, IconCopySuccessComponent, IconCourthouseComponent, IconLoaderComponent, IconLockComponent, IconMidenLogoComponent, IconQrCodeComponent, IconUsdcComponent, IconUsdtComponent, ImageComponent, InputComponent, InputErrorComponent, LabelInfoComponent, MidenPGAngular, PayByCardComponent, PayByStableCoinComponent, PayByTransferComponent, RadioGroupComponent, ResourceService, SelectComponent, SuccessComponent, apiBaseUrl, cardType, checkObjectTruthy, currencySign, detect, formatAmount, getBaseUrl, getQueryParams, getValidationErrorMessage, provideMidenPG, restrictToNumericKeys, truncateString, urlValidator };
777
- export type { BzpConfig, BzpEnvironment, IApiResponse, IAuthorizeCardPaymentPayload, IBillingDetails, ICardDetails, ICheckoutApiResponse, ICountry, IErrorObject, IGeneratePaymentAccountPayload, IGenerateStableCoinAddress, IGenerateStableCoinAddressResponse, IPagination, IPaymentAccountResponse, IPaymentObject, IPaymentReferenceDetail, ISelectOption, IState, ISuccessObject, ThreeDsHtml };
802
+ export { BZP_CONFIG, BZP_CORRELATION_ID, BackComponent, ButtonComponent, CardComponent, CardSchemes, CheckoutService, CircleCountdownComponent, CopyComponent, CurrencyAmountComponent, EncryptService, HintComponent, IconArrowSwapComponent, IconBuzapayIconComponent, IconCardsComponent, IconCheckCircleComponent, IconChevronDownComponent, IconChevronLeftComponent, IconChevronUpComponent, IconCloseComponent, IconCoinComponent, IconCopySuccessComponent, IconCourthouseComponent, IconLoaderComponent, IconLockComponent, IconMidenLogoComponent, IconQrCodeComponent, IconUsdcComponent, IconUsdtComponent, ImageComponent, InputComponent, InputErrorComponent, LabelInfoComponent, MidenPGAngular, PayByCardComponent, PayByStableCoinComponent, PayByTransferComponent, RadioGroupComponent, ResourceService, SelectComponent, SuccessComponent, apiBaseUrl, buildDeviceInformation, cardType, checkObjectTruthy, currencySign, detect, formatAmount, getBaseUrl, getQueryParams, getValidationErrorMessage, provideMidenPG, restrictToNumericKeys, truncateString, urlValidator };
803
+ export type { BzpConfig, BzpEnvironment, IApiResponse, IAuthorizeCardPaymentPayload, IAuthorizeCardPaymentPayloadMiden, IBillingDetails, ICardDetails, ICheckoutApiResponse, ICountry, IDeviceInformation, IErrorObject, IGeneratePaymentAccountPayload, IGenerateStableCoinAddress, IGenerateStableCoinAddressResponse, IPagination, IPaymentAccountResponse, IPaymentObject, IPaymentReferenceDetail, ISelectOption, IState, ISuccessObject, ThreeDsHtml };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "registry": "https://registry.npmjs.org",
5
5
  "access": "public"
6
6
  },
7
- "version": "2.0.0",
7
+ "version": "2.0.1",
8
8
  "main": "./fesm2022/miden-npm-angular.mjs",
9
9
  "module": "fesm2022/miden-npm-angular.mjs",
10
10
  "types": "./index.d.ts",