@commercengine/storefront-sdk 0.12.1 → 0.12.3

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +49 -17
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -4286,17 +4286,21 @@ interface components {
4286
4286
  expiry_month?: string;
4287
4287
  token_supported_gateways?: string[];
4288
4288
  card_fingerprint?: string;
4289
- cvv_less_details?: {
4289
+ cvv_less_details?: ({
4290
4290
  gateway?: string;
4291
4291
  gateway_reference_ids?: string[];
4292
- }[];
4292
+ } & {
4293
+ [key: string]: unknown;
4294
+ })[];
4293
4295
  cvv_less_supported_gateways?: string[];
4294
4296
  provision_token_id?: string;
4295
4297
  card_isin?: string;
4296
4298
  expiry_year?: string;
4299
+ } & {
4300
+ [key: string]: unknown;
4297
4301
  };
4298
4302
  extended_card_type: string;
4299
- tokens?: {
4303
+ tokens?: ({
4300
4304
  tokenization_status?: string;
4301
4305
  last_four_digits?: string;
4302
4306
  provider_category?: string;
@@ -4309,7 +4313,9 @@ interface components {
4309
4313
  provision_token_id?: string;
4310
4314
  card_isin?: string;
4311
4315
  expiry_year?: string;
4312
- }[];
4316
+ } & {
4317
+ [key: string]: unknown;
4318
+ })[];
4313
4319
  nickname: string;
4314
4320
  provider_category: string;
4315
4321
  vault_provider: string;
@@ -4336,10 +4342,13 @@ interface components {
4336
4342
  name_on_card: string;
4337
4343
  country_code: string;
4338
4344
  atm_pin_auth_support?: boolean;
4345
+ direct_otp_support?: boolean;
4339
4346
  card_number: string;
4340
4347
  card_isin: string;
4341
4348
  card_brand: string;
4342
4349
  card_issuer_country: string;
4350
+ } & {
4351
+ [key: string]: unknown;
4343
4352
  };
4344
4353
  /** JuspayCardPaymentMethod */
4345
4354
  JuspayCardPaymentMethod: {
@@ -4385,19 +4394,24 @@ interface components {
4385
4394
  JusPayExpressCheckout: components["schemas"]["JusPayNewCard"] | components["schemas"]["JusPaySavedCardToken"] | components["schemas"]["JuspayNetBanking"] | components["schemas"]["JuspayUpiCollect"] | components["schemas"]["JuspayUpiIntent"];
4386
4395
  /** JusPayExpressCheckoutCommonField */
4387
4396
  JusPayExpressCheckoutCommonField: {
4397
+ /** @description The slug of the payment provider in Commerce Engine. */
4388
4398
  payment_provider_slug: string;
4389
4399
  /** @constant */
4390
4400
  integration_type: "express-checkout";
4401
+ /** @description The reference ID of the payment gateway. When provided, payments will always be routed through this gateway. */
4391
4402
  gateway_reference_id: string;
4403
+ /** @description The URL to which the customer will be redirected after the payment is complete. */
4392
4404
  return_url: string;
4393
- redirect_after_payment?: boolean;
4394
- get_client_auth_token?: boolean;
4395
4405
  };
4396
4406
  /** JusPayExpressCheckoutResponse */
4397
4407
  JusPayExpressCheckoutResponse: {
4408
+ /** @description The transaction ID of the payment. */
4398
4409
  txn_id: string;
4410
+ /** @description The transaction UUID of the payment. */
4399
4411
  txn_uuid: string;
4412
+ /** @description The status of the payment. */
4400
4413
  status: string;
4414
+ /** @description The order ID of the payment. */
4401
4415
  order_id: string;
4402
4416
  juspay: {
4403
4417
  client_auth_token?: string;
@@ -4407,6 +4421,17 @@ interface components {
4407
4421
  offers: Record<string, never>[];
4408
4422
  };
4409
4423
  payment: {
4424
+ sdk_params?: {
4425
+ tr?: string;
4426
+ merchant_vpa?: string;
4427
+ customer_last_name?: string;
4428
+ merchant_name?: string;
4429
+ /** @description The UPI intent URL of the payment. This URL is used to redirect the customer to the UPI app for payment. */
4430
+ pg_intent_url?: string;
4431
+ amount?: string;
4432
+ tid?: string;
4433
+ customer_first_name?: string;
4434
+ };
4410
4435
  authentication?: {
4411
4436
  /** @constant */
4412
4437
  method: "GET";
@@ -4432,12 +4457,18 @@ interface components {
4432
4457
  };
4433
4458
  /** JusPayHyperCheckout */
4434
4459
  JusPayHyperCheckout: {
4460
+ /** @description The slug of the payment provider in Commerce Engine. */
4435
4461
  payment_provider_slug: string;
4436
4462
  /** @constant */
4437
4463
  integration_type: "hyper-checkout";
4464
+ /** @description The reference ID of the payment gateway. When provided, payments will always be routed through this gateway. */
4438
4465
  gateway_reference_id: string;
4466
+ /** @description The URL to which the customer will be redirected after the payment is complete. */
4439
4467
  return_url: string;
4440
- /** @enum {unknown} */
4468
+ /**
4469
+ * @description The action to be performed. `paymentPage` is the default option that you should select when using hyper-checkout.
4470
+ * @enum {string}
4471
+ */
4441
4472
  action: "paymentPage";
4442
4473
  };
4443
4474
  /** JusPayHyperCheckoutResponse */
@@ -4523,13 +4554,10 @@ interface components {
4523
4554
  };
4524
4555
  /** JusPayNewCard */
4525
4556
  JusPayNewCard: components["schemas"]["JusPayExpressCheckoutCommonField"] & {
4526
- /** @constant */
4527
- auth_type: "OTP";
4557
+ /** @description Whether to save the card to the locker. If true, the card will be saved to the locker and can be used for future payments as per RBI regulations. */
4528
4558
  save_to_locker: boolean;
4529
4559
  /** @constant */
4530
4560
  payment_method_type: "CARD";
4531
- /** @enum {unknown} */
4532
- payment_method: "VISA" | "MASTER";
4533
4561
  card_number: string;
4534
4562
  card_exp_month: string;
4535
4563
  card_exp_year: string;
@@ -4582,6 +4610,7 @@ interface components {
4582
4610
  name: string;
4583
4611
  payment_instructions?: string | null;
4584
4612
  type: string;
4613
+ /** @description The slug of the payment provider in Commerce Engine. */
4585
4614
  payment_provider_slug: string;
4586
4615
  details: components["schemas"]["JuspayPaymentMethodDetail"][];
4587
4616
  order_params?: Record<string, never>;
@@ -4590,14 +4619,18 @@ interface components {
4590
4619
  JuspayPaymentMethodDetail: components["schemas"]["JuspayUpiPaymentMethod"] | components["schemas"]["JuspayCardPaymentMethod"] | components["schemas"]["JuspayNetbankingPaymentMethod"] | components["schemas"]["JuspayWalletPaymentMethod"];
4591
4620
  /** JusPaySavedCardToken */
4592
4621
  JusPaySavedCardToken: components["schemas"]["JusPayExpressCheckoutCommonField"] & {
4593
- /** @constant */
4594
- auth_type: "OTP";
4622
+ /** @description Whether to save the card to the locker. If true, the card will be saved to the locker and can be used for future payments as per RBI regulations. */
4595
4623
  save_to_locker: boolean;
4596
4624
  /** @constant */
4597
4625
  payment_method_type: "CARD";
4598
- /** @enum {unknown} */
4599
- payment_method: "VISA" | "MASTER";
4626
+ /**
4627
+ * @description Payment method of the card. Please check which payment method is supported by the gateway.
4628
+ * @enum {string}
4629
+ */
4630
+ payment_method: "VISA" | "MASTER" | "RUPAY" | "AMEX" | "DINERS" | "DISCOVER" | "JCB" | "MAESTRO";
4631
+ /** @description Token of the card. This is the token that is used to identify the card in the gateway. */
4600
4632
  card_token: string;
4633
+ /** @description Security code of the card. This is the security code that is used to identify the card in the gateway. */
4601
4634
  card_security_code: string;
4602
4635
  };
4603
4636
  /** JuspayUpiCollect */
@@ -4614,7 +4647,6 @@ interface components {
4614
4647
  payment_method_type: "UPI";
4615
4648
  /** @constant */
4616
4649
  payment_method: "UPI_PAY";
4617
- sdk_params: boolean;
4618
4650
  upi_app: string;
4619
4651
  };
4620
4652
  /** JuspayUpiPaymentMethod */
@@ -9465,7 +9497,7 @@ interface operations {
9465
9497
  parameters: {
9466
9498
  query?: {
9467
9499
  /** @description Filter payment methods by type. Accepts multiple payment method types separated by commas. Example: payment_method=upi_collect,card,wallet. Available payment method types include: upi_collect, card, wallet. */
9468
- payment_method?: string;
9500
+ payment_methods?: string;
9469
9501
  };
9470
9502
  header?: never;
9471
9503
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercengine/storefront-sdk",
3
- "version": "0.12.1",
3
+ "version": "0.12.3",
4
4
  "description": "TypeScript SDK for the Storefront API",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",