@mitumba/sdk 5.10.0 → 5.11.0

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/dist/index.d.mts CHANGED
@@ -1278,7 +1278,9 @@ interface BecomeSellerInput {
1278
1278
  business_name?: string;
1279
1279
  id_number?: string;
1280
1280
  kra_pin?: string;
1281
+ /** Contact / payout phone in any common local form; stored on the business in E.164. Invalid is a 400. */
1281
1282
  phone?: string;
1283
+ /** A region name from `sdk.markets.regions()`; stored canonically. Invalid is a 400. */
1282
1284
  county?: string;
1283
1285
  town?: string;
1284
1286
  categories?: string[];
@@ -1292,7 +1294,9 @@ interface BecomeBaleSellerInput {
1292
1294
  business_name?: string;
1293
1295
  kra_pin?: string;
1294
1296
  id_number?: string;
1297
+ /** Contact / payout phone in any common local form; stored on the business in E.164. Invalid is a 400. */
1295
1298
  phone?: string;
1299
+ /** A region name from `sdk.markets.regions()`; stored canonically. Invalid is a 400. */
1296
1300
  county?: string;
1297
1301
  }
1298
1302
  interface UserProfile {
@@ -2552,8 +2556,11 @@ interface Business {
2552
2556
  seller_type: 'individual' | 'business';
2553
2557
  kra_pin: string | null;
2554
2558
  id_number: string | null;
2559
+ /** Canonical region name (e.g. `Trans-Nzoia`), from `sdk.markets.regions()`. */
2555
2560
  county: string | null;
2556
2561
  town: string | null;
2562
+ /** Contact / payout phone in E.164, e.g. `+254712345678`. */
2563
+ phone: string | null;
2557
2564
  categories: string | null;
2558
2565
  condition_grades: string | null;
2559
2566
  delivery_method: 'self' | 'mitumba-logistics';
@@ -2568,8 +2575,17 @@ interface UpdateBusinessInput {
2568
2575
  name?: string;
2569
2576
  kra_pin?: string;
2570
2577
  id_number?: string;
2571
- county?: string;
2578
+ /**
2579
+ * A region name from `sdk.markets.regions()`; known alternative spellings are accepted and stored
2580
+ * canonically. Anything else is a 400 `invalid_county`. `null` or blank clears it.
2581
+ */
2582
+ county?: string | null;
2572
2583
  town?: string;
2584
+ /**
2585
+ * Contact / payout phone in any common local form (`0712 345 678`, `+254 712 345 678`); stored in
2586
+ * E.164. An invalid number is a 400 `invalid_phone`. `null` or blank clears it.
2587
+ */
2588
+ phone?: string | null;
2573
2589
  categories?: string[];
2574
2590
  condition_grades?: string[];
2575
2591
  delivery_method?: 'self' | 'mitumba-logistics';
package/dist/index.d.ts CHANGED
@@ -1278,7 +1278,9 @@ interface BecomeSellerInput {
1278
1278
  business_name?: string;
1279
1279
  id_number?: string;
1280
1280
  kra_pin?: string;
1281
+ /** Contact / payout phone in any common local form; stored on the business in E.164. Invalid is a 400. */
1281
1282
  phone?: string;
1283
+ /** A region name from `sdk.markets.regions()`; stored canonically. Invalid is a 400. */
1282
1284
  county?: string;
1283
1285
  town?: string;
1284
1286
  categories?: string[];
@@ -1292,7 +1294,9 @@ interface BecomeBaleSellerInput {
1292
1294
  business_name?: string;
1293
1295
  kra_pin?: string;
1294
1296
  id_number?: string;
1297
+ /** Contact / payout phone in any common local form; stored on the business in E.164. Invalid is a 400. */
1295
1298
  phone?: string;
1299
+ /** A region name from `sdk.markets.regions()`; stored canonically. Invalid is a 400. */
1296
1300
  county?: string;
1297
1301
  }
1298
1302
  interface UserProfile {
@@ -2552,8 +2556,11 @@ interface Business {
2552
2556
  seller_type: 'individual' | 'business';
2553
2557
  kra_pin: string | null;
2554
2558
  id_number: string | null;
2559
+ /** Canonical region name (e.g. `Trans-Nzoia`), from `sdk.markets.regions()`. */
2555
2560
  county: string | null;
2556
2561
  town: string | null;
2562
+ /** Contact / payout phone in E.164, e.g. `+254712345678`. */
2563
+ phone: string | null;
2557
2564
  categories: string | null;
2558
2565
  condition_grades: string | null;
2559
2566
  delivery_method: 'self' | 'mitumba-logistics';
@@ -2568,8 +2575,17 @@ interface UpdateBusinessInput {
2568
2575
  name?: string;
2569
2576
  kra_pin?: string;
2570
2577
  id_number?: string;
2571
- county?: string;
2578
+ /**
2579
+ * A region name from `sdk.markets.regions()`; known alternative spellings are accepted and stored
2580
+ * canonically. Anything else is a 400 `invalid_county`. `null` or blank clears it.
2581
+ */
2582
+ county?: string | null;
2572
2583
  town?: string;
2584
+ /**
2585
+ * Contact / payout phone in any common local form (`0712 345 678`, `+254 712 345 678`); stored in
2586
+ * E.164. An invalid number is a 400 `invalid_phone`. `null` or blank clears it.
2587
+ */
2588
+ phone?: string | null;
2573
2589
  categories?: string[];
2574
2590
  condition_grades?: string[];
2575
2591
  delivery_method?: 'self' | 'mitumba-logistics';