@mitumba/sdk 5.34.0 → 5.35.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.mjs CHANGED
@@ -2371,6 +2371,18 @@ var StoresModule = class {
2371
2371
  async getStats(storeId, options) {
2372
2372
  return this.client.get(`/listings/stores/${storeId}/stats`, void 0, options);
2373
2373
  }
2374
+ /** Where the shop owner's identity verification stands. Owner only (403 otherwise). */
2375
+ async getVerification(storeId, options) {
2376
+ return this.client.get(`/listings/stores/${storeId}/verification`, void 0, options);
2377
+ }
2378
+ /**
2379
+ * Submit an identity document for review: upload it first with `documents.upload` (purpose
2380
+ * `identity_document`, this store). Owner only. 400 `invalid_document` for any other document,
2381
+ * 409 `already_verified` or `no_seller_profile`.
2382
+ */
2383
+ async submitVerification(storeId, documentId, options) {
2384
+ return this.client.post(`/listings/stores/${storeId}/verification`, { document_id: documentId }, options);
2385
+ }
2374
2386
  /**
2375
2387
  * Get store settings.
2376
2388
  */
@@ -3001,8 +3013,12 @@ var AdminModule = class {
3001
3013
  async approveVerification(userId, options) {
3002
3014
  return this.client.post(`/admin/verifications/${userId}/approve`, void 0, options);
3003
3015
  }
3016
+ /**
3017
+ * Reject a seller's verification. `reason` (1–500 characters) is required and shown to the seller.
3018
+ * 409 `already_decided` when already rejected.
3019
+ */
3004
3020
  async rejectVerification(userId, reason, options) {
3005
- return this.client.post(`/admin/verifications/${userId}/reject`, reason ? { reason } : void 0, options);
3021
+ return this.client.post(`/admin/verifications/${userId}/reject`, { reason }, options);
3006
3022
  }
3007
3023
  // ── STI ──
3008
3024
  async adjustSti(userId, input, options) {
@@ -3753,6 +3769,9 @@ var ORDER_STATUSES = [
3753
3769
  // src/types/pay.ts
3754
3770
  var PAYMENT_STATUSES = ["initiated", "funded", "failed", "refunded", "cancelled"];
3755
3771
 
3772
+ // src/types/stores.ts
3773
+ var SELLER_VERIFICATION_STATUSES = ["unverified", "pending", "verified", "rejected"];
3774
+
3756
3775
  // src/types/disputes.ts
3757
3776
  var DISPUTE_REASONS = ["not_received", "not_as_described", "damaged", "counterfeit", "wrong_item"];
3758
3777
  var DESIRED_RESOLUTIONS = ["refund", "replacement", "partial_refund"];
@@ -4041,6 +4060,6 @@ var MitumbaClient = class {
4041
4060
  }
4042
4061
  };
4043
4062
 
4044
- export { APIClient, APIError, AdminModule, AuthModule, BALE_ORDER_STATUSES, BusinessesModule, CONDITIONS, CartModule, CheckoutsModule, DEFAULT_SHARE_ORIGIN, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, DOCUMENT_PURPOSES, DisputesModule, DocumentsModule, IDBTokenStore, IamModule, LISTING_STATUSES, ListingsModule, MailerModule, MarketsModule, MemoryTokenStore, MessagesModule, MitumbaClient, NotificationsModule, OAuthModule, ORDER_STATUSES, OrdersModule, PAYMENT_STATUSES, PayModule, RealtimeProtocolError, RealtimeUnavailableError, ReportsModule, ReviewsModule, SearchModule, SettingsModule, StoresModule, TWO_FACTOR_METHOD_TYPES, UploadsModule, VaziModule, WholesaleModule, WishlistsModule, activeMarkets, baleShareUrl, cartLineAvailability, categoriesBySection, categorySection, checkoutRefusal, createTokenStore, findMarket, findRegion, formatAmount, formatMoney, formatMoneyCompact, formatPhone, isCartLineBuyable, isConditionAllowed, isConsentRequired, isDocumentId, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, partitionCart, regionById, stepUpRequired, storeShareUrl };
4063
+ export { APIClient, APIError, AdminModule, AuthModule, BALE_ORDER_STATUSES, BusinessesModule, CONDITIONS, CartModule, CheckoutsModule, DEFAULT_SHARE_ORIGIN, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, DOCUMENT_PURPOSES, DisputesModule, DocumentsModule, IDBTokenStore, IamModule, LISTING_STATUSES, ListingsModule, MailerModule, MarketsModule, MemoryTokenStore, MessagesModule, MitumbaClient, NotificationsModule, OAuthModule, ORDER_STATUSES, OrdersModule, PAYMENT_STATUSES, PayModule, RealtimeProtocolError, RealtimeUnavailableError, ReportsModule, ReviewsModule, SELLER_VERIFICATION_STATUSES, SearchModule, SettingsModule, StoresModule, TWO_FACTOR_METHOD_TYPES, UploadsModule, VaziModule, WholesaleModule, WishlistsModule, activeMarkets, baleShareUrl, cartLineAvailability, categoriesBySection, categorySection, checkoutRefusal, createTokenStore, findMarket, findRegion, formatAmount, formatMoney, formatMoneyCompact, formatPhone, isCartLineBuyable, isConditionAllowed, isConsentRequired, isDocumentId, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, partitionCart, regionById, stepUpRequired, storeShareUrl };
4045
4064
  //# sourceMappingURL=index.mjs.map
4046
4065
  //# sourceMappingURL=index.mjs.map