@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.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.
Files changed (189) hide show
  1. package/README.md +26 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +8 -0
  4. package/sdk/application/ApplicationClient.js +14 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
  6. package/sdk/application/Cart/CartApplicationClient.js +20 -20
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
  8. package/sdk/application/Cart/CartApplicationModel.js +783 -552
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
  10. package/sdk/application/Cart/CartApplicationValidator.js +100 -114
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
  15. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
  16. package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  18. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
  20. package/sdk/application/Common/CommonApplicationModel.js +59 -58
  21. package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
  22. package/sdk/application/Common/CommonApplicationValidator.js +3 -3
  23. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
  24. package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
  25. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
  26. package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
  27. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
  28. package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
  29. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
  30. package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
  31. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
  33. package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
  34. package/sdk/application/Content/ContentApplicationClient.js +16 -16
  35. package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
  36. package/sdk/application/Content/ContentApplicationModel.js +341 -277
  37. package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
  38. package/sdk/application/Content/ContentApplicationValidator.js +11 -10
  39. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  40. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  41. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
  42. package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
  46. package/sdk/application/Lead/LeadApplicationModel.js +110 -67
  47. package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
  48. package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
  49. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
  50. package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
  51. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
  52. package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
  53. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
  54. package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
  55. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
  56. package/sdk/application/Order/OrderApplicationClient.js +10 -10
  57. package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
  58. package/sdk/application/Order/OrderApplicationModel.js +391 -317
  59. package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
  60. package/sdk/application/Order/OrderApplicationValidator.js +15 -14
  61. package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
  62. package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
  63. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
  64. package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
  65. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
  66. package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
  69. package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
  70. package/sdk/application/Share/ShareApplicationModel.js +53 -37
  71. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
  72. package/sdk/application/Share/ShareApplicationValidator.js +2 -1
  73. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
  75. package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
  76. package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
  77. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
  78. package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
  79. package/sdk/application/User/UserApplicationClient.d.ts +36 -36
  80. package/sdk/application/User/UserApplicationClient.js +36 -36
  81. package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
  82. package/sdk/application/User/UserApplicationModel.js +298 -244
  83. package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
  84. package/sdk/application/User/UserApplicationValidator.js +40 -40
  85. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  86. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  87. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
  88. package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
  89. package/sdk/common/Clickstream.js +95 -15
  90. package/sdk/common/Constant.d.ts +9 -0
  91. package/sdk/common/Constant.js +11 -0
  92. package/sdk/common/Utility.js +19 -0
  93. package/sdk/common/utils.js +8 -1
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
  95. package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
  96. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
  97. package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
  98. package/sdk/partner/PartnerClient.d.ts +8 -0
  99. package/sdk/partner/PartnerClient.js +14 -0
  100. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
  101. package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
  102. package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
  103. package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
  104. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  105. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  106. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
  107. package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
  108. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
  109. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
  110. package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
  111. package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
  112. package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
  113. package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
  114. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
  115. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
  116. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
  117. package/sdk/platform/Cart/CartPlatformModel.js +8 -8
  118. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
  119. package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
  120. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
  121. package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
  122. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
  123. package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
  124. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
  125. package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
  128. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
  129. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
  130. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
  131. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
  132. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
  133. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
  134. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  135. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
  136. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
  137. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
  139. package/sdk/platform/Content/ContentPlatformModel.js +28 -15
  140. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
  141. package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  145. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
  147. package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
  149. package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
  150. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
  151. package/sdk/platform/Order/OrderPlatformClient.js +165 -0
  152. package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
  153. package/sdk/platform/Order/OrderPlatformModel.js +359 -41
  154. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
  155. package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
  156. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
  157. package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
  158. package/sdk/platform/PlatformClient.d.ts +8 -0
  159. package/sdk/platform/PlatformClient.js +14 -0
  160. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
  161. package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
  162. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
  163. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
  164. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
  165. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
  166. package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
  167. package/sdk/platform/Share/SharePlatformModel.js +7 -7
  168. package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
  169. package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
  170. package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
  171. package/sdk/platform/User/UserPlatformModel.js +9 -9
  172. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
  173. package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
  174. package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
  175. package/sdk/public/Billing/BillingPublicClient.js +80 -0
  176. package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
  177. package/sdk/public/Billing/BillingPublicModel.js +252 -87
  178. package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
  179. package/sdk/public/Billing/BillingPublicValidator.js +12 -0
  180. package/sdk/public/PublicClient.d.ts +0 -2
  181. package/sdk/public/PublicClient.js +0 -4
  182. package/sdk/public/index.d.ts +0 -1
  183. package/sdk/public/index.js +0 -2
  184. package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
  185. package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
  186. package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
  187. package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
  188. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
  189. package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
@@ -99,13 +99,13 @@ const Joi = require("joi");
99
99
 
100
100
  /**
101
101
  * @typedef Page
102
- * @property {number} [item_total]
103
- * @property {string} [next_id]
104
- * @property {boolean} [has_previous]
105
- * @property {boolean} [has_next]
106
- * @property {number} [current]
107
- * @property {string} type
108
- * @property {number} [size]
102
+ * @property {number} [item_total] - The total number of items on the page.
103
+ * @property {string} [next_id] - The identifier for the next page.
104
+ * @property {boolean} [has_previous] - Indicates whether there is a previous page.
105
+ * @property {boolean} [has_next] - Indicates whether there is a next page.
106
+ * @property {number} [current] - The current page number.
107
+ * @property {string} type - The type of the page, such as 'PageType'.
108
+ * @property {number} [size] - The number of items per page.
109
109
  */
110
110
 
111
111
  /**
@@ -114,7 +114,7 @@ export = ThemePlatformModel;
114
114
  */
115
115
  /**
116
116
  * @typedef Action
117
- * @property {string} [type]
117
+ * @property {string} [type] - Type of action to be taken e.g, page.
118
118
  * @property {ActionPage} [page]
119
119
  * @property {ActionPage} [popup]
120
120
  */
@@ -532,9 +532,9 @@ export = ThemePlatformModel;
532
532
  */
533
533
  /**
534
534
  * @typedef ActionPage
535
- * @property {Object} [params]
536
- * @property {Object} [query]
537
- * @property {string} [url]
535
+ * @property {Object} [params] - Parameters that should be considered in path.
536
+ * @property {Object} [query] - Query parameter if any to be added to the action.
537
+ * @property {string} [url] - The URL for the action.
538
538
  * @property {PageType} type
539
539
  */
540
540
  /**
@@ -549,6 +549,7 @@ export = ThemePlatformModel;
549
549
  * | "category"
550
550
  * | "collection"
551
551
  * | "collections"
552
+ * | "custom"
552
553
  * | "contact-us"
553
554
  * | "external"
554
555
  * | "faq"
@@ -779,6 +780,9 @@ type SEObreadcrumb = {
779
780
  /** @returns {Action} */
780
781
  declare function Action(): Action;
781
782
  type Action = {
783
+ /**
784
+ * - Type of action to be taken e.g, page.
785
+ */
782
786
  type?: string;
783
787
  page?: ActionPage;
784
788
  popup?: ActionPage;
@@ -1593,8 +1597,17 @@ type CompanyPrivateTheme = {
1593
1597
  /** @returns {ActionPage} */
1594
1598
  declare function ActionPage(): ActionPage;
1595
1599
  type ActionPage = {
1600
+ /**
1601
+ * - Parameters that should be considered in path.
1602
+ */
1596
1603
  params?: any;
1604
+ /**
1605
+ * - Query parameter if any to be added to the action.
1606
+ */
1597
1607
  query?: any;
1608
+ /**
1609
+ * - The URL for the action.
1610
+ */
1598
1611
  url?: string;
1599
1612
  type: PageType;
1600
1613
  };
@@ -1604,4 +1617,4 @@ type ActionPage = {
1604
1617
  * @returns {PageType}
1605
1618
  */
1606
1619
  declare function PageType(): PageType;
1607
- type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
1620
+ type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
@@ -131,7 +131,7 @@ const Joi = require("joi");
131
131
 
132
132
  /**
133
133
  * @typedef Action
134
- * @property {string} [type]
134
+ * @property {string} [type] - Type of action to be taken e.g, page.
135
135
  * @property {ActionPage} [page]
136
136
  * @property {ActionPage} [popup]
137
137
  */
@@ -612,9 +612,9 @@ const Joi = require("joi");
612
612
 
613
613
  /**
614
614
  * @typedef ActionPage
615
- * @property {Object} [params]
616
- * @property {Object} [query]
617
- * @property {string} [url]
615
+ * @property {Object} [params] - Parameters that should be considered in path.
616
+ * @property {Object} [query] - Query parameter if any to be added to the action.
617
+ * @property {string} [url] - The URL for the action.
618
618
  * @property {PageType} type
619
619
  */
620
620
 
@@ -630,6 +630,7 @@ const Joi = require("joi");
630
630
  * | "category"
631
631
  * | "collection"
632
632
  * | "collections"
633
+ * | "custom"
633
634
  * | "contact-us"
634
635
  * | "external"
635
636
  * | "faq"
@@ -1480,6 +1481,8 @@ class ThemePlatformModel {
1480
1481
 
1481
1482
  "collections",
1482
1483
 
1484
+ "custom",
1485
+
1483
1486
  "contact-us",
1484
1487
 
1485
1488
  "external",
@@ -457,18 +457,18 @@ export = UserPlatformModel;
457
457
  */
458
458
  /**
459
459
  * @typedef PhoneNumber
460
- * @property {string} [phone] - Phone number
461
- * @property {number} [country_code] - Country code
462
- * @property {boolean} [active] - Is the phone number active
463
- * @property {boolean} [primary] - Is it a primary phone number
464
- * @property {boolean} [verified] - Is the phone number verified
460
+ * @property {string} [phone] - Phone number of the user.
461
+ * @property {number} [country_code] - Country code for mobile number.
462
+ * @property {boolean} [active] - Is the phone number active.
463
+ * @property {boolean} [primary] - Is it a primary phone number.
464
+ * @property {boolean} [verified] - Is the phone number verified.
465
465
  */
466
466
  /**
467
467
  * @typedef Email
468
- * @property {string} [email] - Email address
469
- * @property {boolean} [active] - Is the email active
470
- * @property {boolean} [primary] - Is it a primary email
471
- * @property {boolean} [verified] - Is the email verified
468
+ * @property {string} [email] - Email address.
469
+ * @property {boolean} [active] - Is the email active.
470
+ * @property {boolean} [primary] - Is it a primary email.
471
+ * @property {boolean} [verified] - Is the email verified.
472
472
  */
473
473
  declare class UserPlatformModel {
474
474
  }
@@ -1131,23 +1131,23 @@ type UserSearchSchema = {
1131
1131
  declare function PhoneNumber(): PhoneNumber;
1132
1132
  type PhoneNumber = {
1133
1133
  /**
1134
- * - Phone number
1134
+ * - Phone number of the user.
1135
1135
  */
1136
1136
  phone?: string;
1137
1137
  /**
1138
- * - Country code
1138
+ * - Country code for mobile number.
1139
1139
  */
1140
1140
  country_code?: number;
1141
1141
  /**
1142
- * - Is the phone number active
1142
+ * - Is the phone number active.
1143
1143
  */
1144
1144
  active?: boolean;
1145
1145
  /**
1146
- * - Is it a primary phone number
1146
+ * - Is it a primary phone number.
1147
1147
  */
1148
1148
  primary?: boolean;
1149
1149
  /**
1150
- * - Is the phone number verified
1150
+ * - Is the phone number verified.
1151
1151
  */
1152
1152
  verified?: boolean;
1153
1153
  };
@@ -1155,19 +1155,19 @@ type PhoneNumber = {
1155
1155
  declare function Email(): Email;
1156
1156
  type Email = {
1157
1157
  /**
1158
- * - Email address
1158
+ * - Email address.
1159
1159
  */
1160
1160
  email?: string;
1161
1161
  /**
1162
- * - Is the email active
1162
+ * - Is the email active.
1163
1163
  */
1164
1164
  active?: boolean;
1165
1165
  /**
1166
- * - Is it a primary email
1166
+ * - Is it a primary email.
1167
1167
  */
1168
1168
  primary?: boolean;
1169
1169
  /**
1170
- * - Is the email verified
1170
+ * - Is the email verified.
1171
1171
  */
1172
1172
  verified?: boolean;
1173
1173
  };
@@ -516,19 +516,19 @@ const Joi = require("joi");
516
516
 
517
517
  /**
518
518
  * @typedef PhoneNumber
519
- * @property {string} [phone] - Phone number
520
- * @property {number} [country_code] - Country code
521
- * @property {boolean} [active] - Is the phone number active
522
- * @property {boolean} [primary] - Is it a primary phone number
523
- * @property {boolean} [verified] - Is the phone number verified
519
+ * @property {string} [phone] - Phone number of the user.
520
+ * @property {number} [country_code] - Country code for mobile number.
521
+ * @property {boolean} [active] - Is the phone number active.
522
+ * @property {boolean} [primary] - Is it a primary phone number.
523
+ * @property {boolean} [verified] - Is the phone number verified.
524
524
  */
525
525
 
526
526
  /**
527
527
  * @typedef Email
528
- * @property {string} [email] - Email address
529
- * @property {boolean} [active] - Is the email active
530
- * @property {boolean} [primary] - Is it a primary email
531
- * @property {boolean} [verified] - Is the email verified
528
+ * @property {string} [email] - Email address.
529
+ * @property {boolean} [active] - Is the email active.
530
+ * @property {boolean} [primary] - Is it a primary email.
531
+ * @property {boolean} [verified] - Is the email verified.
532
532
  */
533
533
 
534
534
  class UserPlatformModel {
@@ -41,13 +41,13 @@ export = WebhookPlatformModel;
41
41
  */
42
42
  /**
43
43
  * @typedef Page
44
- * @property {number} [item_total]
45
- * @property {string} [next_id]
46
- * @property {boolean} [has_previous]
47
- * @property {boolean} [has_next]
48
- * @property {number} [current]
49
- * @property {string} type
50
- * @property {number} [size]
44
+ * @property {number} [item_total] - The total number of items on the page.
45
+ * @property {string} [next_id] - The identifier for the next page.
46
+ * @property {boolean} [has_previous] - Indicates whether there is a previous page.
47
+ * @property {boolean} [has_next] - Indicates whether there is a next page.
48
+ * @property {number} [current] - The current page number.
49
+ * @property {string} type - The type of the page, such as 'PageType'.
50
+ * @property {number} [size] - The number of items per page.
51
51
  */
52
52
  /**
53
53
  * @typedef PingWebhook
@@ -352,12 +352,33 @@ type EventProcessReportObject = {
352
352
  /** @returns {Page} */
353
353
  declare function Page(): Page;
354
354
  type Page = {
355
+ /**
356
+ * - The total number of items on the page.
357
+ */
355
358
  item_total?: number;
359
+ /**
360
+ * - The identifier for the next page.
361
+ */
356
362
  next_id?: string;
363
+ /**
364
+ * - Indicates whether there is a previous page.
365
+ */
357
366
  has_previous?: boolean;
367
+ /**
368
+ * - Indicates whether there is a next page.
369
+ */
358
370
  has_next?: boolean;
371
+ /**
372
+ * - The current page number.
373
+ */
359
374
  current?: number;
375
+ /**
376
+ * - The type of the page, such as 'PageType'.
377
+ */
360
378
  type: string;
379
+ /**
380
+ * - The number of items per page.
381
+ */
361
382
  size?: number;
362
383
  };
363
384
  /** @returns {PingWebhook} */
@@ -47,13 +47,13 @@ const Joi = require("joi");
47
47
 
48
48
  /**
49
49
  * @typedef Page
50
- * @property {number} [item_total]
51
- * @property {string} [next_id]
52
- * @property {boolean} [has_previous]
53
- * @property {boolean} [has_next]
54
- * @property {number} [current]
55
- * @property {string} type
56
- * @property {number} [size]
50
+ * @property {number} [item_total] - The total number of items on the page.
51
+ * @property {string} [next_id] - The identifier for the next page.
52
+ * @property {boolean} [has_previous] - Indicates whether there is a previous page.
53
+ * @property {boolean} [has_next] - Indicates whether there is a next page.
54
+ * @property {number} [current] - The current page number.
55
+ * @property {string} type - The type of the page, such as 'PageType'.
56
+ * @property {number} [size] - The number of items per page.
57
57
  */
58
58
 
59
59
  /**
@@ -5,6 +5,7 @@ declare class Billing {
5
5
  _relativeUrls: {
6
6
  getPlanDetails: string;
7
7
  getStandardPlans: string;
8
+ getTenureConfig: string;
8
9
  planList: string;
9
10
  };
10
11
  _urls: {};
@@ -30,6 +31,16 @@ declare class Billing {
30
31
  * @description: Get Standard/Public Plans. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getStandardPlans/).
31
32
  */
32
33
  getStandardPlans({ platform, requestHeaders }?: BillingPublicValidator.GetStandardPlansParam, { responseHeaders }?: object): Promise<BillingPublicModel.DetailList>;
34
+ /**
35
+ * @param {BillingPublicValidator.GetTenureConfigParam} arg - Arg object.
36
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
37
+ * @param {import("../PublicAPIClient").Options} - Options
38
+ * @returns {Promise<BillingPublicModel.TenureConfigResponse>} - Success response
39
+ * @name getTenureConfig
40
+ * @summary: Get Tenure Configuration
41
+ * @description: Retrieve the tenure configuration for a specific country. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getTenureConfig/).
42
+ */
43
+ getTenureConfig({ countryCode, requestHeaders }?: BillingPublicValidator.GetTenureConfigParam, { responseHeaders }?: object): Promise<BillingPublicModel.TenureConfigResponse>;
33
44
  /**
34
45
  * @param {BillingPublicValidator.PlanListParam} arg - Arg object.
35
46
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -16,6 +16,8 @@ class Billing {
16
16
  this._relativeUrls = {
17
17
  getPlanDetails: "/service/public/billing/v1.0/plan/details/{plan_id}",
18
18
  getStandardPlans: "/service/public/billing/v1.0/plan/detailed-list/",
19
+ getTenureConfig:
20
+ "/service/public/billing/v1.0/tenure-config/{country_code}",
19
21
  planList: "/service/public/billing/v1.0/plan/list",
20
22
  };
21
23
  this._urls = Object.entries(this._relativeUrls).reduce(
@@ -192,6 +194,84 @@ class Billing {
192
194
  return response;
193
195
  }
194
196
 
197
+ /**
198
+ * @param {BillingPublicValidator.GetTenureConfigParam} arg - Arg object.
199
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
200
+ * @param {import("../PublicAPIClient").Options} - Options
201
+ * @returns {Promise<BillingPublicModel.TenureConfigResponse>} - Success response
202
+ * @name getTenureConfig
203
+ * @summary: Get Tenure Configuration
204
+ * @description: Retrieve the tenure configuration for a specific country. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getTenureConfig/).
205
+ */
206
+ async getTenureConfig(
207
+ { countryCode, requestHeaders } = { requestHeaders: {} },
208
+ { responseHeaders } = { responseHeaders: false }
209
+ ) {
210
+ const { error } = BillingPublicValidator.getTenureConfig().validate(
211
+ { countryCode },
212
+ { abortEarly: false, allowUnknown: true }
213
+ );
214
+ if (error) {
215
+ return Promise.reject(new FDKClientValidationError(error));
216
+ }
217
+
218
+ // Showing warrnings if extra unknown parameters are found
219
+ const {
220
+ error: warrning,
221
+ } = BillingPublicValidator.getTenureConfig().validate(
222
+ { countryCode },
223
+ { abortEarly: false, allowUnknown: false }
224
+ );
225
+ if (warrning) {
226
+ Logger({
227
+ level: "WARN",
228
+ message: `Parameter Validation warrnings for public > Billing > getTenureConfig \n ${warrning}`,
229
+ });
230
+ }
231
+
232
+ const query_params = {};
233
+
234
+ const xHeaders = {};
235
+
236
+ const response = await PublicAPIClient.execute(
237
+ this._conf,
238
+ "get",
239
+ constructUrl({
240
+ url: this._urls["getTenureConfig"],
241
+ params: { countryCode },
242
+ }),
243
+ query_params,
244
+ undefined,
245
+ { ...xHeaders, ...requestHeaders },
246
+ { responseHeaders }
247
+ );
248
+
249
+ let responseData = response;
250
+ if (responseHeaders) {
251
+ responseData = response[0];
252
+ }
253
+
254
+ const {
255
+ error: res_error,
256
+ } = BillingPublicModel.TenureConfigResponse().validate(responseData, {
257
+ abortEarly: false,
258
+ allowUnknown: true,
259
+ });
260
+
261
+ if (res_error) {
262
+ if (this._conf.options.strictResponseCheck === true) {
263
+ return Promise.reject(new FDKResponseValidationError(res_error));
264
+ } else {
265
+ Logger({
266
+ level: "WARN",
267
+ message: `Response Validation Warnings for public > Billing > getTenureConfig \n ${res_error}`,
268
+ });
269
+ }
270
+ }
271
+
272
+ return response;
273
+ }
274
+
195
275
  /**
196
276
  * @param {BillingPublicValidator.PlanListParam} arg - Arg object.
197
277
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`