@gofynd/fdk-client-javascript 1.1.3 → 1.1.5
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/README.md +1 -0
- package/index.d.ts +4 -1
- package/index.js +7 -0
- package/package.json +1 -1
- package/partner.d.ts +4 -0
- package/partner.js +7 -0
- package/sdk/application/Common/CommonApplicationModel.js +4 -0
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +5 -5
- package/sdk/application/Lead/LeadApplicationModel.js +4 -1
- package/sdk/partner/OAuthClient.d.ts +14 -0
- package/sdk/partner/OAuthClient.js +112 -0
- package/sdk/partner/PartnerAPIClient.d.ts +12 -0
- package/sdk/partner/PartnerAPIClient.js +42 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +30 -0
- package/sdk/partner/PartnerConfig.js +39 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +5 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +32 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +184 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +19 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +6 -0
- package/sdk/platform/Cart/CartPlatformModel.js +72 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2 -2
- package/sdk/platform/Common/CommonPlatformModel.js +4 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +8 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +3 -1
- package/sdk/platform/Order/OrderPlatformClient.js +5 -0
- package/sdk/platform/Order/OrderPlatformModel.js +1 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +1 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +4 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +42 -7
- package/sdk/platform/PlatformApplicationClient.d.ts +103 -2
- package/sdk/platform/PlatformApplicationClient.js +109 -0
- package/sdk/platform/PlatformClient.d.ts +642 -36
- package/sdk/platform/PlatformClient.js +773 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +134 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +852 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +16 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +81 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +223 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1296 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +97 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +776 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +21 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +130 -0
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicModel.js +5 -0
|
@@ -28,6 +28,8 @@ const Partner = require("./Partner/PartnerPlatformClient");
|
|
|
28
28
|
|
|
29
29
|
const Payment = require("./Payment/PaymentPlatformClient");
|
|
30
30
|
|
|
31
|
+
const Serviceability = require("./Serviceability/ServiceabilityPlatformClient");
|
|
32
|
+
|
|
31
33
|
const Webhook = require("./Webhook/WebhookPlatformClient");
|
|
32
34
|
|
|
33
35
|
const PlatformApplicationClient = require("./PlatformApplicationClient");
|
|
@@ -67,6 +69,8 @@ class PlatformClient {
|
|
|
67
69
|
|
|
68
70
|
this.payment = new Payment(config);
|
|
69
71
|
|
|
72
|
+
this.serviceability = new Serviceability(config);
|
|
73
|
+
|
|
70
74
|
this.webhook = new Webhook(config);
|
|
71
75
|
}
|
|
72
76
|
application(applicationId) {
|
|
@@ -848,6 +852,14 @@ class PlatformClient {
|
|
|
848
852
|
* @typedef ApplyCouponRequest
|
|
849
853
|
* @property {string} coupon_code
|
|
850
854
|
*/
|
|
855
|
+
/**
|
|
856
|
+
* @typedef Article
|
|
857
|
+
* @property {string} article_id
|
|
858
|
+
* @property {string} [code]
|
|
859
|
+
* @property {Object} [meta]
|
|
860
|
+
* @property {string} [type]
|
|
861
|
+
* @property {number} [value]
|
|
862
|
+
*/
|
|
851
863
|
/**
|
|
852
864
|
* @typedef ArticlePriceInfo
|
|
853
865
|
* @property {BasePrice} [base]
|
|
@@ -1063,6 +1075,11 @@ class PlatformClient {
|
|
|
1063
1075
|
* @property {string} [uid]
|
|
1064
1076
|
* @property {string} [user_type]
|
|
1065
1077
|
*/
|
|
1078
|
+
/**
|
|
1079
|
+
* @typedef Collection
|
|
1080
|
+
* @property {string} collected_by
|
|
1081
|
+
* @property {string} refund_by
|
|
1082
|
+
*/
|
|
1066
1083
|
/**
|
|
1067
1084
|
* @typedef CompareObject
|
|
1068
1085
|
* @property {number} [equals]
|
|
@@ -1762,6 +1779,58 @@ class PlatformClient {
|
|
|
1762
1779
|
* @property {boolean} [cancellation_allowed]
|
|
1763
1780
|
* @property {boolean} [return_allowed]
|
|
1764
1781
|
*/
|
|
1782
|
+
/**
|
|
1783
|
+
* @typedef PriceAdjustment
|
|
1784
|
+
* @property {boolean} [allowed_refund]
|
|
1785
|
+
* @property {string} [apply_expiry]
|
|
1786
|
+
* @property {Article[]} article_ids
|
|
1787
|
+
* @property {boolean} article_level_distribution
|
|
1788
|
+
* @property {string} cart_id
|
|
1789
|
+
* @property {number} [cart_value]
|
|
1790
|
+
* @property {Collection} collection
|
|
1791
|
+
* @property {string} [id]
|
|
1792
|
+
* @property {boolean} is_authenticated
|
|
1793
|
+
* @property {string} message
|
|
1794
|
+
* @property {Object} [meta]
|
|
1795
|
+
* @property {string} type
|
|
1796
|
+
* @property {number} value
|
|
1797
|
+
*/
|
|
1798
|
+
/**
|
|
1799
|
+
* @typedef PriceAdjustmentAdd
|
|
1800
|
+
* @property {boolean} [allowed_refund]
|
|
1801
|
+
* @property {string} [apply_expiry]
|
|
1802
|
+
* @property {Article[]} article_ids
|
|
1803
|
+
* @property {boolean} article_level_distribution
|
|
1804
|
+
* @property {string} cart_id
|
|
1805
|
+
* @property {number} [cart_value]
|
|
1806
|
+
* @property {Collection} collection
|
|
1807
|
+
* @property {string} [created_by]
|
|
1808
|
+
* @property {boolean} is_authenticated
|
|
1809
|
+
* @property {string} message
|
|
1810
|
+
* @property {Object} [meta]
|
|
1811
|
+
* @property {string} type
|
|
1812
|
+
* @property {number} value
|
|
1813
|
+
*/
|
|
1814
|
+
/**
|
|
1815
|
+
* @typedef PriceAdjustmentResponse
|
|
1816
|
+
* @property {PriceAdjustment} [data]
|
|
1817
|
+
*/
|
|
1818
|
+
/**
|
|
1819
|
+
* @typedef PriceAdjustmentUpdate
|
|
1820
|
+
* @property {boolean} [allowed_refund]
|
|
1821
|
+
* @property {string} [apply_expiry]
|
|
1822
|
+
* @property {Article[]} article_ids
|
|
1823
|
+
* @property {boolean} article_level_distribution
|
|
1824
|
+
* @property {string} cart_id
|
|
1825
|
+
* @property {number} [cart_value]
|
|
1826
|
+
* @property {Collection} collection
|
|
1827
|
+
* @property {boolean} is_authenticated
|
|
1828
|
+
* @property {string} message
|
|
1829
|
+
* @property {Object} [meta]
|
|
1830
|
+
* @property {string} [modified_by]
|
|
1831
|
+
* @property {string} type
|
|
1832
|
+
* @property {number} value
|
|
1833
|
+
*/
|
|
1765
1834
|
/**
|
|
1766
1835
|
* @typedef PriceRange
|
|
1767
1836
|
* @property {number} [max]
|
|
@@ -1930,7 +1999,7 @@ class PlatformClient {
|
|
|
1930
1999
|
*/
|
|
1931
2000
|
/**
|
|
1932
2001
|
* @typedef PromotionsResponse
|
|
1933
|
-
* @property {PromotionListItem} [items]
|
|
2002
|
+
* @property {PromotionListItem[]} [items]
|
|
1934
2003
|
* @property {Page} [page]
|
|
1935
2004
|
*/
|
|
1936
2005
|
/**
|
|
@@ -4010,7 +4079,7 @@ class PlatformClient {
|
|
|
4010
4079
|
*/
|
|
4011
4080
|
/**
|
|
4012
4081
|
* @typedef NetQuantity
|
|
4013
|
-
* @property {
|
|
4082
|
+
* @property {string} [unit]
|
|
4014
4083
|
* @property {number} [value]
|
|
4015
4084
|
*/
|
|
4016
4085
|
/**
|
|
@@ -4875,7 +4944,7 @@ class PlatformClient {
|
|
|
4875
4944
|
/**
|
|
4876
4945
|
* @typedef Trader
|
|
4877
4946
|
* @property {string[]} [address]
|
|
4878
|
-
* @property {
|
|
4947
|
+
* @property {string} name
|
|
4879
4948
|
* @property {string} [type]
|
|
4880
4949
|
*/
|
|
4881
4950
|
/**
|
|
@@ -5104,14 +5173,18 @@ class PlatformClient {
|
|
|
5104
5173
|
* @property {number} [__v]
|
|
5105
5174
|
* @property {string} [_id]
|
|
5106
5175
|
* @property {string} [capital]
|
|
5176
|
+
* @property {string} [country_code]
|
|
5107
5177
|
* @property {string} [currency]
|
|
5108
5178
|
* @property {LocationDefaultCurrency} [default_currency]
|
|
5109
5179
|
* @property {LocationDefaultLanguage} [default_language]
|
|
5110
5180
|
* @property {string} [iso2]
|
|
5111
5181
|
* @property {string} [iso3]
|
|
5182
|
+
* @property {string} [latitude]
|
|
5183
|
+
* @property {string} [longitude]
|
|
5112
5184
|
* @property {string} [name]
|
|
5113
5185
|
* @property {string} [parent]
|
|
5114
5186
|
* @property {string} [phone_code]
|
|
5187
|
+
* @property {string} [state_code]
|
|
5115
5188
|
* @property {string} [type]
|
|
5116
5189
|
* @property {number} [uid]
|
|
5117
5190
|
*/
|
|
@@ -6434,6 +6507,7 @@ class PlatformClient {
|
|
|
6434
6507
|
* @property {string} [name]
|
|
6435
6508
|
* @property {string} [owner]
|
|
6436
6509
|
* @property {ApplicationRedirections[]} [redirections]
|
|
6510
|
+
* @property {string} [slug]
|
|
6437
6511
|
* @property {string} [token]
|
|
6438
6512
|
* @property {string} [updated_at]
|
|
6439
6513
|
* @property {ApplicationWebsite} [website]
|
|
@@ -6449,13 +6523,13 @@ class PlatformClient {
|
|
|
6449
6523
|
/**
|
|
6450
6524
|
* @typedef ApplicationDetail
|
|
6451
6525
|
* @property {string} [_id]
|
|
6452
|
-
* @property {SecureUrl} banner
|
|
6453
|
-
* @property {string} description
|
|
6526
|
+
* @property {SecureUrl} [banner]
|
|
6527
|
+
* @property {string} [description]
|
|
6454
6528
|
* @property {Domain} [domain]
|
|
6455
6529
|
* @property {Domain[]} [domains]
|
|
6456
|
-
* @property {SecureUrl} favicon
|
|
6457
|
-
* @property {SecureUrl} logo
|
|
6458
|
-
* @property {SecureUrl} mobile_logo
|
|
6530
|
+
* @property {SecureUrl} [favicon]
|
|
6531
|
+
* @property {SecureUrl} [logo]
|
|
6532
|
+
* @property {SecureUrl} [mobile_logo]
|
|
6459
6533
|
* @property {string} name
|
|
6460
6534
|
*/
|
|
6461
6535
|
/**
|
|
@@ -6467,7 +6541,7 @@ class PlatformClient {
|
|
|
6467
6541
|
* @property {BusinessHighlights} [business_highlights]
|
|
6468
6542
|
* @property {string} [copyright_text]
|
|
6469
6543
|
* @property {string} [created_at]
|
|
6470
|
-
* @property {Links} [links]
|
|
6544
|
+
* @property {Links[]} [links]
|
|
6471
6545
|
* @property {SocialLinks} [social_links]
|
|
6472
6546
|
* @property {InformationSupport} [support]
|
|
6473
6547
|
* @property {string} [updated_at]
|
|
@@ -6926,7 +7000,7 @@ class PlatformClient {
|
|
|
6926
7000
|
* @property {string} [city]
|
|
6927
7001
|
* @property {string} [country]
|
|
6928
7002
|
* @property {string} [loc]
|
|
6929
|
-
* @property {InformationPhone} [phone]
|
|
7003
|
+
* @property {InformationPhone[]} [phone]
|
|
6930
7004
|
* @property {number} [pincode]
|
|
6931
7005
|
*/
|
|
6932
7006
|
/**
|
|
@@ -10725,7 +10799,7 @@ class PlatformClient {
|
|
|
10725
10799
|
* @property {number} gst_fee
|
|
10726
10800
|
* @property {string} [gst_tag]
|
|
10727
10801
|
* @property {number} [gst_tax_percentage]
|
|
10728
|
-
* @property {string} gstin_code
|
|
10802
|
+
* @property {string} [gstin_code]
|
|
10729
10803
|
* @property {string} [hsn_code]
|
|
10730
10804
|
* @property {string} [hsn_code_id]
|
|
10731
10805
|
* @property {string} [igst_gst_fee]
|
|
@@ -12917,6 +12991,22 @@ class PlatformClient {
|
|
|
12917
12991
|
* @property {string} status
|
|
12918
12992
|
* @property {boolean} [success]
|
|
12919
12993
|
*/
|
|
12994
|
+
/**
|
|
12995
|
+
* @typedef Payout
|
|
12996
|
+
* @property {PayoutCustomer} customers
|
|
12997
|
+
* @property {boolean} is_active
|
|
12998
|
+
* @property {boolean} is_default
|
|
12999
|
+
* @property {PayoutMoreAttributes} more_attributes
|
|
13000
|
+
* @property {PayoutAggregator[]} [payouts_aggregators]
|
|
13001
|
+
* @property {string} transfer_type
|
|
13002
|
+
* @property {string} unique_transfer_no
|
|
13003
|
+
*/
|
|
13004
|
+
/**
|
|
13005
|
+
* @typedef PayoutAggregator
|
|
13006
|
+
* @property {number} [aggregator_fund_id]
|
|
13007
|
+
* @property {number} [aggregator_id]
|
|
13008
|
+
* @property {number} [payout_details_id]
|
|
13009
|
+
*/
|
|
12920
13010
|
/**
|
|
12921
13011
|
* @typedef PayoutBankDetails
|
|
12922
13012
|
* @property {string} [account_holder]
|
|
@@ -12930,6 +13020,26 @@ class PlatformClient {
|
|
|
12930
13020
|
* @property {number} [pincode]
|
|
12931
13021
|
* @property {string} [state]
|
|
12932
13022
|
*/
|
|
13023
|
+
/**
|
|
13024
|
+
* @typedef PayoutCustomer
|
|
13025
|
+
* @property {string} [email]
|
|
13026
|
+
* @property {number} [id]
|
|
13027
|
+
* @property {string} [mobile]
|
|
13028
|
+
* @property {string} [name]
|
|
13029
|
+
* @property {string} [unique_external_id]
|
|
13030
|
+
*/
|
|
13031
|
+
/**
|
|
13032
|
+
* @typedef PayoutMoreAttributes
|
|
13033
|
+
* @property {string} [account_holder]
|
|
13034
|
+
* @property {string} [account_no]
|
|
13035
|
+
* @property {string} [account_type]
|
|
13036
|
+
* @property {string} [bank_name]
|
|
13037
|
+
* @property {string} [branch_name]
|
|
13038
|
+
* @property {string} [city]
|
|
13039
|
+
* @property {string} [country]
|
|
13040
|
+
* @property {string} [ifsc_code]
|
|
13041
|
+
* @property {string} [state]
|
|
13042
|
+
*/
|
|
12933
13043
|
/**
|
|
12934
13044
|
* @typedef PayoutRequest
|
|
12935
13045
|
* @property {string} aggregator
|
|
@@ -12954,13 +13064,8 @@ class PlatformClient {
|
|
|
12954
13064
|
*/
|
|
12955
13065
|
/**
|
|
12956
13066
|
* @typedef PayoutsResponse
|
|
12957
|
-
* @property {
|
|
12958
|
-
* @property {boolean}
|
|
12959
|
-
* @property {boolean} is_default
|
|
12960
|
-
* @property {Object} more_attributes
|
|
12961
|
-
* @property {Object[]} payouts_aggregators
|
|
12962
|
-
* @property {string} transfer_type
|
|
12963
|
-
* @property {Object} unique_transfer_no
|
|
13067
|
+
* @property {Payout[]} items
|
|
13068
|
+
* @property {boolean} success
|
|
12964
13069
|
*/
|
|
12965
13070
|
/**
|
|
12966
13071
|
* @typedef PollingPaymentLinkResponse
|
|
@@ -13276,6 +13381,656 @@ class PlatformClient {
|
|
|
13276
13381
|
* @property {RewardUser} [user]
|
|
13277
13382
|
*/
|
|
13278
13383
|
|
|
13384
|
+
/**
|
|
13385
|
+
* @typedef AddressResponse
|
|
13386
|
+
* @property {string} [address1]
|
|
13387
|
+
* @property {string} [address2]
|
|
13388
|
+
* @property {string} [city]
|
|
13389
|
+
* @property {string} [country]
|
|
13390
|
+
* @property {string} [landmark]
|
|
13391
|
+
* @property {number} [latitude]
|
|
13392
|
+
* @property {number} [longitude]
|
|
13393
|
+
* @property {number} [pincode]
|
|
13394
|
+
* @property {string} [state]
|
|
13395
|
+
*/
|
|
13396
|
+
/**
|
|
13397
|
+
* @typedef ApplicationCompanyDpViewRequest
|
|
13398
|
+
* @property {string} [dp_id]
|
|
13399
|
+
*/
|
|
13400
|
+
/**
|
|
13401
|
+
* @typedef ApplicationCompanyDpViewResponse
|
|
13402
|
+
* @property {string} application_id
|
|
13403
|
+
* @property {number} company_id
|
|
13404
|
+
* @property {number} [courier_partner_id]
|
|
13405
|
+
* @property {boolean} success
|
|
13406
|
+
*/
|
|
13407
|
+
/**
|
|
13408
|
+
* @typedef ApplicationSelfShipConfig
|
|
13409
|
+
* @property {SelfShipResponse} [self_ship]
|
|
13410
|
+
*/
|
|
13411
|
+
/**
|
|
13412
|
+
* @typedef ApplicationSelfShipConfigResponse
|
|
13413
|
+
* @property {ApplicationSelfShipConfig} [data]
|
|
13414
|
+
* @property {ServiceabilityErrorResponse} [error]
|
|
13415
|
+
* @property {boolean} success
|
|
13416
|
+
*/
|
|
13417
|
+
/**
|
|
13418
|
+
* @typedef ApplicationServiceabilityConfig
|
|
13419
|
+
* @property {string} channel_id
|
|
13420
|
+
* @property {string} channel_type
|
|
13421
|
+
* @property {string} serviceability_type
|
|
13422
|
+
*/
|
|
13423
|
+
/**
|
|
13424
|
+
* @typedef ApplicationServiceabilityConfigResponse
|
|
13425
|
+
* @property {ApplicationServiceabilityConfig} [data]
|
|
13426
|
+
* @property {ServiceabilityErrorResponse} [error]
|
|
13427
|
+
* @property {boolean} success
|
|
13428
|
+
*/
|
|
13429
|
+
/**
|
|
13430
|
+
* @typedef CommonError
|
|
13431
|
+
* @property {Object} [error]
|
|
13432
|
+
* @property {string} [status_code]
|
|
13433
|
+
* @property {string} [success]
|
|
13434
|
+
*/
|
|
13435
|
+
/**
|
|
13436
|
+
* @typedef CompanyDpAccountListResponse
|
|
13437
|
+
* @property {Dp1[]} items
|
|
13438
|
+
* @property {Page} page
|
|
13439
|
+
* @property {boolean} success
|
|
13440
|
+
*/
|
|
13441
|
+
/**
|
|
13442
|
+
* @typedef CompanyDpAccountRequest
|
|
13443
|
+
* @property {Dp1[]} data
|
|
13444
|
+
*/
|
|
13445
|
+
/**
|
|
13446
|
+
* @typedef CompanyDpAccountResponse
|
|
13447
|
+
* @property {boolean} success
|
|
13448
|
+
*/
|
|
13449
|
+
/**
|
|
13450
|
+
* @typedef CompanyStoreView_PageItems
|
|
13451
|
+
* @property {number} current
|
|
13452
|
+
* @property {boolean} has_next
|
|
13453
|
+
* @property {number} item_total
|
|
13454
|
+
* @property {number} size
|
|
13455
|
+
* @property {string} type
|
|
13456
|
+
*/
|
|
13457
|
+
/**
|
|
13458
|
+
* @typedef CompanyStoreView_Response
|
|
13459
|
+
* @property {Object[]} [items]
|
|
13460
|
+
* @property {CompanyStoreView_PageItems[]} page
|
|
13461
|
+
*/
|
|
13462
|
+
/**
|
|
13463
|
+
* @typedef ContactNumberResponse
|
|
13464
|
+
* @property {number} [country_code]
|
|
13465
|
+
* @property {string} [number]
|
|
13466
|
+
*/
|
|
13467
|
+
/**
|
|
13468
|
+
* @typedef CreatedByResponse
|
|
13469
|
+
* @property {string} [user_id]
|
|
13470
|
+
* @property {string} [username]
|
|
13471
|
+
*/
|
|
13472
|
+
/**
|
|
13473
|
+
* @typedef CreateZoneData
|
|
13474
|
+
* @property {string} [assignment_preference]
|
|
13475
|
+
* @property {GetZoneDataViewChannels[]} channels
|
|
13476
|
+
* @property {number} company_id
|
|
13477
|
+
* @property {boolean} is_active
|
|
13478
|
+
* @property {ZoneMappingType[]} mapping
|
|
13479
|
+
* @property {string} name
|
|
13480
|
+
* @property {ZoneProductTypes} product
|
|
13481
|
+
* @property {string} region_type
|
|
13482
|
+
* @property {string} slug
|
|
13483
|
+
* @property {number[]} store_ids
|
|
13484
|
+
*/
|
|
13485
|
+
/**
|
|
13486
|
+
* @typedef DocumentsResponse
|
|
13487
|
+
* @property {string} [legal_name]
|
|
13488
|
+
* @property {string} [type]
|
|
13489
|
+
* @property {string} [value]
|
|
13490
|
+
* @property {boolean} [verified]
|
|
13491
|
+
*/
|
|
13492
|
+
/**
|
|
13493
|
+
* @typedef Dp
|
|
13494
|
+
* @property {number} [area_code]
|
|
13495
|
+
* @property {boolean} [assign_dp_from_sb]
|
|
13496
|
+
* @property {string} [external_account_id]
|
|
13497
|
+
* @property {number} [fm_priority]
|
|
13498
|
+
* @property {string} [internal_account_id]
|
|
13499
|
+
* @property {number} [lm_priority]
|
|
13500
|
+
* @property {string[]} [operations]
|
|
13501
|
+
* @property {string} [payment_mode]
|
|
13502
|
+
* @property {number} [rvp_priority]
|
|
13503
|
+
* @property {string} [transport_mode]
|
|
13504
|
+
*/
|
|
13505
|
+
/**
|
|
13506
|
+
* @typedef Dp1
|
|
13507
|
+
* @property {string} account_id
|
|
13508
|
+
* @property {string} dp_id
|
|
13509
|
+
* @property {boolean} is_self_ship
|
|
13510
|
+
* @property {string} name
|
|
13511
|
+
* @property {string} plan_id
|
|
13512
|
+
* @property {Object} plan_rules
|
|
13513
|
+
* @property {string} stage
|
|
13514
|
+
*/
|
|
13515
|
+
/**
|
|
13516
|
+
* @typedef DpAccountFailureResponse
|
|
13517
|
+
* @property {ErrorResponse[]} error
|
|
13518
|
+
* @property {number} status_code
|
|
13519
|
+
* @property {boolean} success
|
|
13520
|
+
*/
|
|
13521
|
+
/**
|
|
13522
|
+
* @typedef DPApplicationRuleRequest
|
|
13523
|
+
* @property {string[]} shipping_rules
|
|
13524
|
+
*/
|
|
13525
|
+
/**
|
|
13526
|
+
* @typedef DPApplicationRuleResponse
|
|
13527
|
+
* @property {DpRuleResponse[]} data
|
|
13528
|
+
* @property {boolean} status_code
|
|
13529
|
+
* @property {boolean} success
|
|
13530
|
+
*/
|
|
13531
|
+
/**
|
|
13532
|
+
* @typedef DPCompanyRuleRequest
|
|
13533
|
+
* @property {string[]} rule_ids
|
|
13534
|
+
*/
|
|
13535
|
+
/**
|
|
13536
|
+
* @typedef DPCompanyRuleResponse
|
|
13537
|
+
* @property {DpRuleResponse[]} data
|
|
13538
|
+
* @property {number} status_code
|
|
13539
|
+
* @property {boolean} success
|
|
13540
|
+
*/
|
|
13541
|
+
/**
|
|
13542
|
+
* @typedef DpIds
|
|
13543
|
+
* @property {boolean} enabled
|
|
13544
|
+
* @property {Object} [meta]
|
|
13545
|
+
* @property {number} priority
|
|
13546
|
+
*/
|
|
13547
|
+
/**
|
|
13548
|
+
* @typedef DpMultipleRuleSuccessResponse
|
|
13549
|
+
* @property {DpRule[]} items
|
|
13550
|
+
* @property {Page} page
|
|
13551
|
+
* @property {boolean} success
|
|
13552
|
+
*/
|
|
13553
|
+
/**
|
|
13554
|
+
* @typedef DpRule
|
|
13555
|
+
* @property {number} [company_id]
|
|
13556
|
+
* @property {Object[]} conditions
|
|
13557
|
+
* @property {Object} dp_ids
|
|
13558
|
+
* @property {boolean} [is_active]
|
|
13559
|
+
* @property {string} name
|
|
13560
|
+
*/
|
|
13561
|
+
/**
|
|
13562
|
+
* @typedef DpRuleRequest
|
|
13563
|
+
* @property {number} [company_id]
|
|
13564
|
+
* @property {Object[]} conditions
|
|
13565
|
+
* @property {Object} dp_ids
|
|
13566
|
+
* @property {boolean} [is_active]
|
|
13567
|
+
* @property {string} name
|
|
13568
|
+
*/
|
|
13569
|
+
/**
|
|
13570
|
+
* @typedef DpRuleResponse
|
|
13571
|
+
* @property {number} company_id
|
|
13572
|
+
* @property {string[]} conditions
|
|
13573
|
+
* @property {Object} [created_by]
|
|
13574
|
+
* @property {string} [created_on]
|
|
13575
|
+
* @property {Object} dp_ids
|
|
13576
|
+
* @property {boolean} [is_active]
|
|
13577
|
+
* @property {Object} [modified_by]
|
|
13578
|
+
* @property {string} [modified_on]
|
|
13579
|
+
* @property {string} name
|
|
13580
|
+
* @property {string} uid
|
|
13581
|
+
*/
|
|
13582
|
+
/**
|
|
13583
|
+
* @typedef DpRuleSuccessResponse
|
|
13584
|
+
* @property {DpRule} data
|
|
13585
|
+
* @property {number} status_code
|
|
13586
|
+
* @property {boolean} success
|
|
13587
|
+
*/
|
|
13588
|
+
/**
|
|
13589
|
+
* @typedef DpRulesUpdateRequest
|
|
13590
|
+
* @property {Object[]} conditions
|
|
13591
|
+
* @property {Object} dp_ids
|
|
13592
|
+
* @property {boolean} is_active
|
|
13593
|
+
* @property {string} name
|
|
13594
|
+
*/
|
|
13595
|
+
/**
|
|
13596
|
+
* @typedef DpRuleUpdateSuccessResponse
|
|
13597
|
+
* @property {DpRuleResponse} data
|
|
13598
|
+
* @property {number} status_code
|
|
13599
|
+
* @property {boolean} success
|
|
13600
|
+
*/
|
|
13601
|
+
/**
|
|
13602
|
+
* @typedef DpSchemaInRuleListing
|
|
13603
|
+
* @property {string} account_id
|
|
13604
|
+
* @property {string} dp_id
|
|
13605
|
+
* @property {boolean} is_self_ship
|
|
13606
|
+
* @property {string} name
|
|
13607
|
+
* @property {string} plan_id
|
|
13608
|
+
* @property {Object} plan_rules
|
|
13609
|
+
* @property {number} priority
|
|
13610
|
+
* @property {string} stage
|
|
13611
|
+
*/
|
|
13612
|
+
/**
|
|
13613
|
+
* @typedef EinvoiceResponse
|
|
13614
|
+
* @property {boolean} [enabled]
|
|
13615
|
+
*/
|
|
13616
|
+
/**
|
|
13617
|
+
* @typedef EntityRegionView_Error
|
|
13618
|
+
* @property {string} [message]
|
|
13619
|
+
* @property {string} [type]
|
|
13620
|
+
* @property {string} [value]
|
|
13621
|
+
*/
|
|
13622
|
+
/**
|
|
13623
|
+
* @typedef EntityRegionView_Items
|
|
13624
|
+
* @property {string} name
|
|
13625
|
+
* @property {string} sub_type
|
|
13626
|
+
* @property {string} uid
|
|
13627
|
+
*/
|
|
13628
|
+
/**
|
|
13629
|
+
* @typedef EntityRegionView_page
|
|
13630
|
+
* @property {number} current
|
|
13631
|
+
* @property {boolean} has_next
|
|
13632
|
+
* @property {number} item_total
|
|
13633
|
+
* @property {number} size
|
|
13634
|
+
* @property {string} type
|
|
13635
|
+
*/
|
|
13636
|
+
/**
|
|
13637
|
+
* @typedef EntityRegionView_Request
|
|
13638
|
+
* @property {string[]} [parent_id]
|
|
13639
|
+
* @property {string[]} sub_type
|
|
13640
|
+
*/
|
|
13641
|
+
/**
|
|
13642
|
+
* @typedef EntityRegionView_Response
|
|
13643
|
+
* @property {EntityRegionView_Error} error
|
|
13644
|
+
* @property {EntityRegionView_Items[]} [items]
|
|
13645
|
+
* @property {EntityRegionView_page} page
|
|
13646
|
+
* @property {boolean} success
|
|
13647
|
+
*/
|
|
13648
|
+
/**
|
|
13649
|
+
* @typedef Error
|
|
13650
|
+
* @property {string} [message]
|
|
13651
|
+
* @property {string} [type]
|
|
13652
|
+
* @property {string} [value]
|
|
13653
|
+
*/
|
|
13654
|
+
/**
|
|
13655
|
+
* @typedef ErrorResponse
|
|
13656
|
+
* @property {string} message
|
|
13657
|
+
* @property {string} type
|
|
13658
|
+
* @property {string} value
|
|
13659
|
+
*/
|
|
13660
|
+
/**
|
|
13661
|
+
* @typedef EwayBillResponse
|
|
13662
|
+
* @property {boolean} [enabled]
|
|
13663
|
+
*/
|
|
13664
|
+
/**
|
|
13665
|
+
* @typedef FailureResponse
|
|
13666
|
+
* @property {ErrorResponse[]} error
|
|
13667
|
+
* @property {number} status_code
|
|
13668
|
+
* @property {boolean} success
|
|
13669
|
+
*/
|
|
13670
|
+
/**
|
|
13671
|
+
* @typedef GetSingleZoneDataViewResponse
|
|
13672
|
+
* @property {GetZoneDataViewItems} data
|
|
13673
|
+
*/
|
|
13674
|
+
/**
|
|
13675
|
+
* @typedef GetStoresViewResponse
|
|
13676
|
+
* @property {ItemResponse[]} [items]
|
|
13677
|
+
* @property {ServiceabilityPageResponse} page
|
|
13678
|
+
*/
|
|
13679
|
+
/**
|
|
13680
|
+
* @typedef GetZoneDataViewChannels
|
|
13681
|
+
* @property {string} channel_id
|
|
13682
|
+
* @property {string} channel_type
|
|
13683
|
+
*/
|
|
13684
|
+
/**
|
|
13685
|
+
* @typedef GetZoneDataViewItems
|
|
13686
|
+
* @property {string} [assignment_preference]
|
|
13687
|
+
* @property {GetZoneDataViewChannels[]} channels
|
|
13688
|
+
* @property {number} [company_id]
|
|
13689
|
+
* @property {boolean} is_active
|
|
13690
|
+
* @property {ZoneMappingType[]} mapping
|
|
13691
|
+
* @property {string} name
|
|
13692
|
+
* @property {number} pincodes_count
|
|
13693
|
+
* @property {ZoneProductTypes} product
|
|
13694
|
+
* @property {string} region_type
|
|
13695
|
+
* @property {string} slug
|
|
13696
|
+
* @property {number[]} store_ids
|
|
13697
|
+
* @property {number} stores_count
|
|
13698
|
+
* @property {string} zone_id
|
|
13699
|
+
*/
|
|
13700
|
+
/**
|
|
13701
|
+
* @typedef GetZoneFromApplicationIdViewResponse
|
|
13702
|
+
* @property {ListViewItems[]} items
|
|
13703
|
+
* @property {ZoneDataItem[]} page
|
|
13704
|
+
*/
|
|
13705
|
+
/**
|
|
13706
|
+
* @typedef GetZoneFromPincodeViewRequest
|
|
13707
|
+
* @property {string} country
|
|
13708
|
+
* @property {string} pincode
|
|
13709
|
+
*/
|
|
13710
|
+
/**
|
|
13711
|
+
* @typedef GetZoneFromPincodeViewResponse
|
|
13712
|
+
* @property {string} serviceability_type
|
|
13713
|
+
* @property {Zone[]} zones
|
|
13714
|
+
*/
|
|
13715
|
+
/**
|
|
13716
|
+
* @typedef GstCredentialsResponse
|
|
13717
|
+
* @property {EinvoiceResponse} [e_invoice]
|
|
13718
|
+
* @property {EwayBillResponse} [e_waybill]
|
|
13719
|
+
*/
|
|
13720
|
+
/**
|
|
13721
|
+
* @typedef IntegrationTypeResponse
|
|
13722
|
+
* @property {string} [inventory]
|
|
13723
|
+
* @property {string} [order]
|
|
13724
|
+
*/
|
|
13725
|
+
/**
|
|
13726
|
+
* @typedef ItemResponse
|
|
13727
|
+
* @property {string} [_cls]
|
|
13728
|
+
* @property {Object} [_custom_json]
|
|
13729
|
+
* @property {AddressResponse} [address]
|
|
13730
|
+
* @property {string} [code]
|
|
13731
|
+
* @property {number} [company]
|
|
13732
|
+
* @property {number} [company_id]
|
|
13733
|
+
* @property {ContactNumberResponse[]} [contact_numbers]
|
|
13734
|
+
* @property {CreatedByResponse} [created_by]
|
|
13735
|
+
* @property {string} [created_on]
|
|
13736
|
+
* @property {string} [display_name]
|
|
13737
|
+
* @property {DocumentsResponse[]} [documents]
|
|
13738
|
+
* @property {GstCredentialsResponse} [gst_credentials]
|
|
13739
|
+
* @property {IntegrationTypeResponse} [integration_type]
|
|
13740
|
+
* @property {LogisticsResponse} [logistics]
|
|
13741
|
+
* @property {ManagerResponse} [manager]
|
|
13742
|
+
* @property {ModifiedByResponse} [modified_by]
|
|
13743
|
+
* @property {string} [modified_on]
|
|
13744
|
+
* @property {string} [name]
|
|
13745
|
+
* @property {string[]} [notification_emails]
|
|
13746
|
+
* @property {ProductReturnConfigResponse} [product_return_config]
|
|
13747
|
+
* @property {string} [stage]
|
|
13748
|
+
* @property {string} [store_type]
|
|
13749
|
+
* @property {string} [sub_type]
|
|
13750
|
+
* @property {TimmingResponse[]} [timing]
|
|
13751
|
+
* @property {number} [uid]
|
|
13752
|
+
* @property {ModifiedByResponse} [verified_by]
|
|
13753
|
+
* @property {string} [verified_on]
|
|
13754
|
+
* @property {WarningsResponse} [warnings]
|
|
13755
|
+
*/
|
|
13756
|
+
/**
|
|
13757
|
+
* @typedef ListViewChannels
|
|
13758
|
+
* @property {string} channel_id
|
|
13759
|
+
* @property {string} channel_type
|
|
13760
|
+
*/
|
|
13761
|
+
/**
|
|
13762
|
+
* @typedef ListViewItems
|
|
13763
|
+
* @property {ListViewChannels[]} channels
|
|
13764
|
+
* @property {number} company_id
|
|
13765
|
+
* @property {boolean} is_active
|
|
13766
|
+
* @property {string} name
|
|
13767
|
+
* @property {number} pincodes_count
|
|
13768
|
+
* @property {ListViewProduct} product
|
|
13769
|
+
* @property {string} slug
|
|
13770
|
+
* @property {number} stores_count
|
|
13771
|
+
* @property {string} zone_id
|
|
13772
|
+
*/
|
|
13773
|
+
/**
|
|
13774
|
+
* @typedef ListViewProduct
|
|
13775
|
+
* @property {number} count
|
|
13776
|
+
* @property {string} type
|
|
13777
|
+
*/
|
|
13778
|
+
/**
|
|
13779
|
+
* @typedef ListViewResponse
|
|
13780
|
+
* @property {ListViewItems[]} items
|
|
13781
|
+
* @property {ZoneDataItem} page
|
|
13782
|
+
* @property {ListViewSummary} summary
|
|
13783
|
+
*/
|
|
13784
|
+
/**
|
|
13785
|
+
* @typedef ListViewSummary
|
|
13786
|
+
* @property {number} total_active_zones
|
|
13787
|
+
* @property {number} total_pincodes_served
|
|
13788
|
+
* @property {number} total_zones
|
|
13789
|
+
*/
|
|
13790
|
+
/**
|
|
13791
|
+
* @typedef LogisticsResponse
|
|
13792
|
+
* @property {Dp} [dp]
|
|
13793
|
+
* @property {boolean} [override]
|
|
13794
|
+
*/
|
|
13795
|
+
/**
|
|
13796
|
+
* @typedef ManagerResponse
|
|
13797
|
+
* @property {string} [email]
|
|
13798
|
+
* @property {MobileNo} [mobile_no]
|
|
13799
|
+
* @property {string} [name]
|
|
13800
|
+
*/
|
|
13801
|
+
/**
|
|
13802
|
+
* @typedef MobileNo
|
|
13803
|
+
* @property {number} [country_code]
|
|
13804
|
+
* @property {string} [number]
|
|
13805
|
+
*/
|
|
13806
|
+
/**
|
|
13807
|
+
* @typedef ModifiedByResponse
|
|
13808
|
+
* @property {string} [user_id]
|
|
13809
|
+
* @property {string} [username]
|
|
13810
|
+
*/
|
|
13811
|
+
/**
|
|
13812
|
+
* @typedef OpeningClosing
|
|
13813
|
+
* @property {number} [hour]
|
|
13814
|
+
* @property {number} [minute]
|
|
13815
|
+
*/
|
|
13816
|
+
/**
|
|
13817
|
+
* @typedef Page
|
|
13818
|
+
* @property {number} [current]
|
|
13819
|
+
* @property {boolean} [has_next]
|
|
13820
|
+
* @property {boolean} [has_previous]
|
|
13821
|
+
* @property {number} [item_total]
|
|
13822
|
+
* @property {string} [next_id]
|
|
13823
|
+
* @property {number} [size]
|
|
13824
|
+
* @property {string} type
|
|
13825
|
+
*/
|
|
13826
|
+
/**
|
|
13827
|
+
* @typedef PincodeBulkViewResponse
|
|
13828
|
+
* @property {string} batch_id
|
|
13829
|
+
* @property {string} s3_url
|
|
13830
|
+
*/
|
|
13831
|
+
/**
|
|
13832
|
+
* @typedef PincodeCodStatusListingPage
|
|
13833
|
+
* @property {number} current
|
|
13834
|
+
* @property {boolean} has_next
|
|
13835
|
+
* @property {number} item_total
|
|
13836
|
+
* @property {number} size
|
|
13837
|
+
* @property {string} type
|
|
13838
|
+
*/
|
|
13839
|
+
/**
|
|
13840
|
+
* @typedef PincodeCodStatusListingRequest
|
|
13841
|
+
* @property {string} [country]
|
|
13842
|
+
* @property {number} [current]
|
|
13843
|
+
* @property {boolean} [is_active]
|
|
13844
|
+
* @property {number} [page_size]
|
|
13845
|
+
* @property {number} [pincode]
|
|
13846
|
+
*/
|
|
13847
|
+
/**
|
|
13848
|
+
* @typedef PincodeCodStatusListingResponse
|
|
13849
|
+
* @property {string} country
|
|
13850
|
+
* @property {PincodeCodStatusListingResponse[]} data
|
|
13851
|
+
* @property {Error[]} [errors]
|
|
13852
|
+
* @property {PincodeCodStatusListingPage} page
|
|
13853
|
+
* @property {boolean} success
|
|
13854
|
+
* @property {PincodeCodStatusListingSummary} summary
|
|
13855
|
+
*/
|
|
13856
|
+
/**
|
|
13857
|
+
* @typedef PincodeCodStatusListingSummary
|
|
13858
|
+
* @property {number} total_active_pincodes
|
|
13859
|
+
* @property {number} total_inactive_pincodes
|
|
13860
|
+
*/
|
|
13861
|
+
/**
|
|
13862
|
+
* @typedef PincodeMopBulkData
|
|
13863
|
+
* @property {string} batch_id
|
|
13864
|
+
* @property {string} s3_url
|
|
13865
|
+
*/
|
|
13866
|
+
/**
|
|
13867
|
+
* @typedef PincodeMopData
|
|
13868
|
+
* @property {string} action
|
|
13869
|
+
* @property {string} country
|
|
13870
|
+
* @property {number[]} pincodes
|
|
13871
|
+
*/
|
|
13872
|
+
/**
|
|
13873
|
+
* @typedef PincodeMOPresponse
|
|
13874
|
+
* @property {string} action
|
|
13875
|
+
* @property {string} batch_id
|
|
13876
|
+
* @property {string} country
|
|
13877
|
+
* @property {number[]} [pincodes]
|
|
13878
|
+
* @property {number} status_code
|
|
13879
|
+
* @property {boolean} success
|
|
13880
|
+
* @property {PincodeMopUpdateResponse[]} [updated_pincodes]
|
|
13881
|
+
*/
|
|
13882
|
+
/**
|
|
13883
|
+
* @typedef PincodeMopUpdateAuditHistoryPaging
|
|
13884
|
+
* @property {number} [current]
|
|
13885
|
+
* @property {boolean} [has_next]
|
|
13886
|
+
* @property {number} [item_total]
|
|
13887
|
+
* @property {number} [size]
|
|
13888
|
+
* @property {string} [type]
|
|
13889
|
+
*/
|
|
13890
|
+
/**
|
|
13891
|
+
* @typedef PincodeMopUpdateAuditHistoryRequest
|
|
13892
|
+
* @property {string} entity_type
|
|
13893
|
+
* @property {string} [file_name]
|
|
13894
|
+
*/
|
|
13895
|
+
/**
|
|
13896
|
+
* @typedef PincodeMopUpdateAuditHistoryResponse
|
|
13897
|
+
* @property {string} [batch_id]
|
|
13898
|
+
* @property {string} [entity_type]
|
|
13899
|
+
* @property {string} [error_file_s3_url]
|
|
13900
|
+
* @property {string} [file_name]
|
|
13901
|
+
* @property {string} [s3_url]
|
|
13902
|
+
* @property {boolean} [success]
|
|
13903
|
+
* @property {string} [updated_at]
|
|
13904
|
+
* @property {string} [updated_by]
|
|
13905
|
+
*/
|
|
13906
|
+
/**
|
|
13907
|
+
* @typedef PincodeMopUpdateAuditHistoryResponseData
|
|
13908
|
+
* @property {PincodeMopUpdateAuditHistoryResponse[]} data
|
|
13909
|
+
* @property {string} [entity_type]
|
|
13910
|
+
* @property {PincodeMopUpdateAuditHistoryPaging} page
|
|
13911
|
+
*/
|
|
13912
|
+
/**
|
|
13913
|
+
* @typedef PincodeMopUpdateResponse
|
|
13914
|
+
* @property {string} channel_id
|
|
13915
|
+
* @property {string} country
|
|
13916
|
+
* @property {boolean} is_active
|
|
13917
|
+
* @property {number} pincode
|
|
13918
|
+
*/
|
|
13919
|
+
/**
|
|
13920
|
+
* @typedef ProductReturnConfigResponse
|
|
13921
|
+
* @property {boolean} [on_same_store]
|
|
13922
|
+
*/
|
|
13923
|
+
/**
|
|
13924
|
+
* @typedef ReAssignStoreRequest
|
|
13925
|
+
* @property {Object[]} articles
|
|
13926
|
+
* @property {Object} configuration
|
|
13927
|
+
* @property {string} identifier
|
|
13928
|
+
* @property {string[]} ignored_locations
|
|
13929
|
+
* @property {string} to_pincode
|
|
13930
|
+
*/
|
|
13931
|
+
/**
|
|
13932
|
+
* @typedef ReAssignStoreResponse
|
|
13933
|
+
* @property {Object[]} [articles]
|
|
13934
|
+
* @property {Object} error
|
|
13935
|
+
* @property {boolean} success
|
|
13936
|
+
* @property {string} to_pincode
|
|
13937
|
+
*/
|
|
13938
|
+
/**
|
|
13939
|
+
* @typedef SelfShipResponse
|
|
13940
|
+
* @property {boolean} is_active
|
|
13941
|
+
* @property {number} tat
|
|
13942
|
+
*/
|
|
13943
|
+
/**
|
|
13944
|
+
* @typedef ServiceabilityErrorResponse
|
|
13945
|
+
* @property {string} message
|
|
13946
|
+
* @property {string} type
|
|
13947
|
+
* @property {string} value
|
|
13948
|
+
*/
|
|
13949
|
+
/**
|
|
13950
|
+
* @typedef ServiceabilityPageResponse
|
|
13951
|
+
* @property {number} [current]
|
|
13952
|
+
* @property {boolean} [has_next]
|
|
13953
|
+
* @property {number} [item_total]
|
|
13954
|
+
* @property {number} [size]
|
|
13955
|
+
* @property {string} [type]
|
|
13956
|
+
*/
|
|
13957
|
+
/**
|
|
13958
|
+
* @typedef TimmingResponse
|
|
13959
|
+
* @property {OpeningClosing} [closing]
|
|
13960
|
+
* @property {boolean} [open]
|
|
13961
|
+
* @property {OpeningClosing} [opening]
|
|
13962
|
+
* @property {string} [weekday]
|
|
13963
|
+
*/
|
|
13964
|
+
/**
|
|
13965
|
+
* @typedef UpdateZoneData
|
|
13966
|
+
* @property {string} [assignment_preference]
|
|
13967
|
+
* @property {GetZoneDataViewChannels[]} channels
|
|
13968
|
+
* @property {number} company_id
|
|
13969
|
+
* @property {boolean} is_active
|
|
13970
|
+
* @property {ZoneMappingType[]} mapping
|
|
13971
|
+
* @property {string} name
|
|
13972
|
+
* @property {ZoneProductTypes} product
|
|
13973
|
+
* @property {string} region_type
|
|
13974
|
+
* @property {string} slug
|
|
13975
|
+
* @property {number[]} store_ids
|
|
13976
|
+
* @property {string} zone_id
|
|
13977
|
+
*/
|
|
13978
|
+
/**
|
|
13979
|
+
* @typedef WarningsResponse
|
|
13980
|
+
* @property {string} [store_address]
|
|
13981
|
+
*/
|
|
13982
|
+
/**
|
|
13983
|
+
* @typedef Zone
|
|
13984
|
+
* @property {string} assignment_preference
|
|
13985
|
+
* @property {boolean} is_active
|
|
13986
|
+
* @property {string} name
|
|
13987
|
+
* @property {string} slug
|
|
13988
|
+
* @property {number[]} store_ids
|
|
13989
|
+
* @property {string[]} tags
|
|
13990
|
+
* @property {string} type
|
|
13991
|
+
* @property {string} zone_id
|
|
13992
|
+
*/
|
|
13993
|
+
/**
|
|
13994
|
+
* @typedef ZoneDataItem
|
|
13995
|
+
* @property {number} current
|
|
13996
|
+
* @property {boolean} has_next
|
|
13997
|
+
* @property {number} item_total
|
|
13998
|
+
* @property {number} size
|
|
13999
|
+
* @property {string} type
|
|
14000
|
+
*/
|
|
14001
|
+
/**
|
|
14002
|
+
* @typedef ZoneMappingType
|
|
14003
|
+
* @property {string} country
|
|
14004
|
+
* @property {string[]} [pincode]
|
|
14005
|
+
* @property {string[]} [state]
|
|
14006
|
+
*/
|
|
14007
|
+
/**
|
|
14008
|
+
* @typedef ZoneProductTypes
|
|
14009
|
+
* @property {string[]} tags
|
|
14010
|
+
* @property {string} type
|
|
14011
|
+
*/
|
|
14012
|
+
/**
|
|
14013
|
+
* @typedef ZoneRequest
|
|
14014
|
+
* @property {CreateZoneData} data
|
|
14015
|
+
* @property {string} identifier
|
|
14016
|
+
*/
|
|
14017
|
+
/**
|
|
14018
|
+
* @typedef ZoneResponse
|
|
14019
|
+
* @property {number} status_code
|
|
14020
|
+
* @property {boolean} success
|
|
14021
|
+
* @property {string} zone_id
|
|
14022
|
+
*/
|
|
14023
|
+
/**
|
|
14024
|
+
* @typedef ZoneSuccessResponse
|
|
14025
|
+
* @property {number} status_code
|
|
14026
|
+
* @property {boolean} success
|
|
14027
|
+
*/
|
|
14028
|
+
/**
|
|
14029
|
+
* @typedef ZoneUpdateRequest
|
|
14030
|
+
* @property {UpdateZoneData} data
|
|
14031
|
+
* @property {string} identifier
|
|
14032
|
+
*/
|
|
14033
|
+
|
|
13279
14034
|
/**
|
|
13280
14035
|
* @typedef Attribution
|
|
13281
14036
|
* @property {string} [campaign_cookie_expiry]
|