@gofynd/fdk-client-javascript 1.3.1 → 1.3.3-beta.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.
@@ -44,6 +44,12 @@ export = PaymentPlatformModel;
44
44
  * @property {number} status_code - HTTP status code
45
45
  * @property {boolean} success - Successful or failure
46
46
  */
47
+ /**
48
+ * @typedef CODChargesLimitsResponse
49
+ * @property {number} [cod_charge] - Cod charges to be applied on order.
50
+ * @property {number} [max_cart_value] - Max allowed cart value for cod order.
51
+ * @property {number} [min_cart_value] - Min allowed cart value for cod order.
52
+ */
47
53
  /**
48
54
  * @typedef CODdata
49
55
  * @property {boolean} is_active - COD option is active or not
@@ -444,6 +450,7 @@ export = PaymentPlatformModel;
444
450
  * @property {string} [card_reference] - Card_reference
445
451
  * @property {string} [card_token] - Card_token
446
452
  * @property {string} [card_type] - Card_type
453
+ * @property {number} [cod_charges] - Cod charges to be applied on order.
447
454
  * @property {number} [cod_limit] - Cod limit
448
455
  * @property {number} [cod_limit_per_order] - Cod limit per order
449
456
  * @property {string} [code] - Code
@@ -464,6 +471,7 @@ export = PaymentPlatformModel;
464
471
  * @property {string} [merchant_code] - Merchant code
465
472
  * @property {string} [name] - Name
466
473
  * @property {string} [nickname] - Nickname
474
+ * @property {Object} [product_cod_data] - Product cod configurations.
467
475
  * @property {number} [remaining_limit] - Remaining limit
468
476
  * @property {number} [retry_count] - Retry_count
469
477
  * @property {number} [timeout] - Timeout
@@ -690,6 +698,11 @@ export = PaymentPlatformModel;
690
698
  * @property {number} [status_code] - HTTP status code
691
699
  * @property {boolean} [success] - Successful or failure
692
700
  */
701
+ /**
702
+ * @typedef ProductCODData
703
+ * @property {Object} [cod_charges] - Cod charges and its allowed limits.
704
+ * @property {Object} [items] - Item id with its cod availability.
705
+ */
693
706
  /**
694
707
  * @typedef RefundAccountResponse
695
708
  * @property {Object} [data] - Refund account data.
@@ -865,7 +878,7 @@ export = PaymentPlatformModel;
865
878
  declare class PaymentPlatformModel {
866
879
  }
867
880
  declare namespace PaymentPlatformModel {
868
- export { AddBeneficiaryDetailsOTPRequest, AddressDetail, BankDetailsForOTP, CancelOrResendPaymentLinkRequest, CancelPaymentLinkResponse, CODdata, Code, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeletePayoutResponse, DeleteSubscriptionPaymentMethodResponse, EdcAddRequest, EdcAggregatorAndModelListResponse, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcDeviceListResponse, EdcDeviceStatsResponse, EdcDeviceUpdateResponse, EdcModelData, EdcUpdateRequest, ErrorCodeAndDescription, ErrorCodeDescription, ErrorDescription, ErrorResponse, GetOauthUrlResponse, GetPaymentCode, GetPaymentCodeResponse, GetPaymentLinkResponse, GetUserCODLimitResponse, HttpErrorCodeAndResponse, IfscCodeResponse, IntentApp, IntentAppErrorList, LinkStatus, MerchantOnBoardingRequest, MerchantOnBoardingResponse, MerchnatPaymentModeRequest, MerchnatPaymentModeResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, NotFoundResourceError, OrderBeneficiaryDetails, OrderBeneficiaryResponse, OrderDetail, Page, PaymentCode, PaymentConfirmationRequest, PaymentConfirmationResponse, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayConfigResponse, PaymentGatewayToBeReviewed, PaymentInitializationRequest, PaymentInitializationResponse, PaymentModeList, PaymentModeLogo, PaymentObjectListSerializer, PaymentOptions, PaymentOptionsResponse, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, PaymentStatusBulkHandlerRequest, PaymentStatusBulkHandlerResponse, PaymentStatusObject, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, Payout, PayoutAggregator, PayoutBankDetails, PayoutCustomer, PayoutMoreAttributes, PayoutRequest, PayoutResponse, PayoutsResponse, PollingPaymentLinkResponse, RefundAccountResponse, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, RepaymentDetailsSerialiserPayAll, RepaymentRequestDetails, RepaymentResponse, ResendOrCancelPaymentRequest, ResendOrCancelPaymentResponse, ResendPaymentLinkResponse, RevokeOAuthToken, RootPaymentMode, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, SetCODForUserRequest, SetCODOptionResponse, StatisticsData, SubscriptionConfigResponse, SubscriptionPaymentMethodResponse, UpdatePayoutRequest, UpdatePayoutResponse, ValidateCustomerRequest, ValidateCustomerResponse };
881
+ export { AddBeneficiaryDetailsOTPRequest, AddressDetail, BankDetailsForOTP, CancelOrResendPaymentLinkRequest, CancelPaymentLinkResponse, CODChargesLimitsResponse, CODdata, Code, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeletePayoutResponse, DeleteSubscriptionPaymentMethodResponse, EdcAddRequest, EdcAggregatorAndModelListResponse, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcDeviceListResponse, EdcDeviceStatsResponse, EdcDeviceUpdateResponse, EdcModelData, EdcUpdateRequest, ErrorCodeAndDescription, ErrorCodeDescription, ErrorDescription, ErrorResponse, GetOauthUrlResponse, GetPaymentCode, GetPaymentCodeResponse, GetPaymentLinkResponse, GetUserCODLimitResponse, HttpErrorCodeAndResponse, IfscCodeResponse, IntentApp, IntentAppErrorList, LinkStatus, MerchantOnBoardingRequest, MerchantOnBoardingResponse, MerchnatPaymentModeRequest, MerchnatPaymentModeResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, NotFoundResourceError, OrderBeneficiaryDetails, OrderBeneficiaryResponse, OrderDetail, Page, PaymentCode, PaymentConfirmationRequest, PaymentConfirmationResponse, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayConfigResponse, PaymentGatewayToBeReviewed, PaymentInitializationRequest, PaymentInitializationResponse, PaymentModeList, PaymentModeLogo, PaymentObjectListSerializer, PaymentOptions, PaymentOptionsResponse, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, PaymentStatusBulkHandlerRequest, PaymentStatusBulkHandlerResponse, PaymentStatusObject, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, Payout, PayoutAggregator, PayoutBankDetails, PayoutCustomer, PayoutMoreAttributes, PayoutRequest, PayoutResponse, PayoutsResponse, PollingPaymentLinkResponse, ProductCODData, RefundAccountResponse, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, RepaymentDetailsSerialiserPayAll, RepaymentRequestDetails, RepaymentResponse, ResendOrCancelPaymentRequest, ResendOrCancelPaymentResponse, ResendPaymentLinkResponse, RevokeOAuthToken, RootPaymentMode, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, SetCODForUserRequest, SetCODOptionResponse, StatisticsData, SubscriptionConfigResponse, SubscriptionPaymentMethodResponse, UpdatePayoutRequest, UpdatePayoutResponse, ValidateCustomerRequest, ValidateCustomerResponse };
869
882
  }
870
883
  /** @returns {AddBeneficiaryDetailsOTPRequest} */
871
884
  declare function AddBeneficiaryDetailsOTPRequest(): AddBeneficiaryDetailsOTPRequest;
@@ -986,6 +999,22 @@ type CancelPaymentLinkResponse = {
986
999
  */
987
1000
  success: boolean;
988
1001
  };
1002
+ /** @returns {CODChargesLimitsResponse} */
1003
+ declare function CODChargesLimitsResponse(): CODChargesLimitsResponse;
1004
+ type CODChargesLimitsResponse = {
1005
+ /**
1006
+ * - Cod charges to be applied on order.
1007
+ */
1008
+ cod_charge?: number;
1009
+ /**
1010
+ * - Max allowed cart value for cod order.
1011
+ */
1012
+ max_cart_value?: number;
1013
+ /**
1014
+ * - Min allowed cart value for cod order.
1015
+ */
1016
+ min_cart_value?: number;
1017
+ };
989
1018
  /** @returns {CODdata} */
990
1019
  declare function CODdata(): CODdata;
991
1020
  type CODdata = {
@@ -2077,6 +2106,10 @@ type PaymentModeList = {
2077
2106
  * - Card_type
2078
2107
  */
2079
2108
  card_type?: string;
2109
+ /**
2110
+ * - Cod charges to be applied on order.
2111
+ */
2112
+ cod_charges?: number;
2080
2113
  /**
2081
2114
  * - Cod limit
2082
2115
  */
@@ -2151,6 +2184,10 @@ type PaymentModeList = {
2151
2184
  * - Nickname
2152
2185
  */
2153
2186
  nickname?: string;
2187
+ /**
2188
+ * - Product cod configurations.
2189
+ */
2190
+ product_cod_data?: any;
2154
2191
  /**
2155
2192
  * - Remaining limit
2156
2193
  */
@@ -2725,6 +2762,18 @@ type PollingPaymentLinkResponse = {
2725
2762
  */
2726
2763
  success?: boolean;
2727
2764
  };
2765
+ /** @returns {ProductCODData} */
2766
+ declare function ProductCODData(): ProductCODData;
2767
+ type ProductCODData = {
2768
+ /**
2769
+ * - Cod charges and its allowed limits.
2770
+ */
2771
+ cod_charges?: any;
2772
+ /**
2773
+ * - Item id with its cod availability.
2774
+ */
2775
+ items?: any;
2776
+ };
2728
2777
  /** @returns {RefundAccountResponse} */
2729
2778
  declare function RefundAccountResponse(): RefundAccountResponse;
2730
2779
  type RefundAccountResponse = {
@@ -50,6 +50,13 @@ const Joi = require("joi");
50
50
  * @property {boolean} success - Successful or failure
51
51
  */
52
52
 
53
+ /**
54
+ * @typedef CODChargesLimitsResponse
55
+ * @property {number} [cod_charge] - Cod charges to be applied on order.
56
+ * @property {number} [max_cart_value] - Max allowed cart value for cod order.
57
+ * @property {number} [min_cart_value] - Min allowed cart value for cod order.
58
+ */
59
+
53
60
  /**
54
61
  * @typedef CODdata
55
62
  * @property {boolean} is_active - COD option is active or not
@@ -501,6 +508,7 @@ const Joi = require("joi");
501
508
  * @property {string} [card_reference] - Card_reference
502
509
  * @property {string} [card_token] - Card_token
503
510
  * @property {string} [card_type] - Card_type
511
+ * @property {number} [cod_charges] - Cod charges to be applied on order.
504
512
  * @property {number} [cod_limit] - Cod limit
505
513
  * @property {number} [cod_limit_per_order] - Cod limit per order
506
514
  * @property {string} [code] - Code
@@ -521,6 +529,7 @@ const Joi = require("joi");
521
529
  * @property {string} [merchant_code] - Merchant code
522
530
  * @property {string} [name] - Name
523
531
  * @property {string} [nickname] - Nickname
532
+ * @property {Object} [product_cod_data] - Product cod configurations.
524
533
  * @property {number} [remaining_limit] - Remaining limit
525
534
  * @property {number} [retry_count] - Retry_count
526
535
  * @property {number} [timeout] - Timeout
@@ -769,6 +778,12 @@ const Joi = require("joi");
769
778
  * @property {boolean} [success] - Successful or failure
770
779
  */
771
780
 
781
+ /**
782
+ * @typedef ProductCODData
783
+ * @property {Object} [cod_charges] - Cod charges and its allowed limits.
784
+ * @property {Object} [items] - Item id with its cod availability.
785
+ */
786
+
772
787
  /**
773
788
  * @typedef RefundAccountResponse
774
789
  * @property {Object} [data] - Refund account data.
@@ -1025,6 +1040,15 @@ class PaymentPlatformModel {
1025
1040
  });
1026
1041
  }
1027
1042
 
1043
+ /** @returns {CODChargesLimitsResponse} */
1044
+ static CODChargesLimitsResponse() {
1045
+ return Joi.object({
1046
+ cod_charge: Joi.number().allow(null),
1047
+ max_cart_value: Joi.number().allow(null),
1048
+ min_cart_value: Joi.number().allow(null),
1049
+ });
1050
+ }
1051
+
1028
1052
  /** @returns {CODdata} */
1029
1053
  static CODdata() {
1030
1054
  return Joi.object({
@@ -1575,6 +1599,7 @@ class PaymentPlatformModel {
1575
1599
  card_reference: Joi.string().allow("").allow(null),
1576
1600
  card_token: Joi.string().allow("").allow(null),
1577
1601
  card_type: Joi.string().allow("").allow(null),
1602
+ cod_charges: Joi.number().allow(null),
1578
1603
  cod_limit: Joi.number().allow(null),
1579
1604
  cod_limit_per_order: Joi.number().allow(null),
1580
1605
  code: Joi.string().allow("").allow(null),
@@ -1595,6 +1620,7 @@ class PaymentPlatformModel {
1595
1620
  merchant_code: Joi.string().allow("").allow(null),
1596
1621
  name: Joi.string().allow("").allow(null),
1597
1622
  nickname: Joi.string().allow("").allow(null),
1623
+ product_cod_data: Joi.any().allow(null),
1598
1624
  remaining_limit: Joi.number().allow(null),
1599
1625
  retry_count: Joi.number().allow(null),
1600
1626
  timeout: Joi.number().allow(null),
@@ -1878,6 +1904,14 @@ class PaymentPlatformModel {
1878
1904
  });
1879
1905
  }
1880
1906
 
1907
+ /** @returns {ProductCODData} */
1908
+ static ProductCODData() {
1909
+ return Joi.object({
1910
+ cod_charges: Joi.any().allow(null),
1911
+ items: Joi.any().allow(null),
1912
+ });
1913
+ }
1914
+
1881
1915
  /** @returns {RefundAccountResponse} */
1882
1916
  static RefundAccountResponse() {
1883
1917
  return Joi.object({