Repository navigation
Aligned with the regenerated backend API spec.
Fixed
- Decoding:
NumberOperation.responseis optional (absent when no number could be issued; a getState item without it no longer fails to decode, which madewaitCodepoll until its timeout);PaymentOrder.currency/formText,FreeCountry.countryText/countryOriginalandFreeNumber.countryOriginalacceptnull(String?);Profile.numberisInt?andProfile.countryisString?(they were swapped). The changed models decode leniently. RentSms.code: the integer0of anotifySMS is normalised to"0"; rentsumis read from a number or a decimal string.user.paymentHistory()no longer dropspaylistwhen the server sends it as a JSON array (ids 0, 1, 2…): its items are kept under the keys"0","1","2"…numbers.waitCoderetries.apiTRY_AGAIN_LATER(HTTP 429 rate limit),ERROR_UNDEFINEDandINTERVAL_CONCURRENT_REQUESTS_ERRORuntil its timeout instead of throwing at once.- Error messages:
"0"(ban not applied, the operation already has an SMS),ACCOUNT_CLEANED,USER_NOT_ACTIVATED,ERROR_UNDEFINED,FORWARD_NOT_SUPPORTEDadded;ERROR_NO_KEY,NO_NUMBER_FOR_FORWARD,ACCOUNT_IDENTIFICATION_REQUIRED,API_DISABLED(no longer sent) removed;.noNumberonly forNO_NUMBER;ERROR_WRONG_KEYreads "Wrong or missing API key". MockOnlineSimfollows the backend:setOperationReviseanswers{"tzid":"N","response":"1"}andERROR_WRONG_TZID/ERROR_NO_TZID;setOperationOktzid0→ERROR_NO_TZID; a missing key is HTTP 200ERROR_WRONG_KEY(456 only for a wrong key, also on public endpoints);getNumwithnumberaddstitle,response_text,guard_interval_remaining_seconds. Rent:getRentNumreserves the price (status0) and the first non-notifySMS confirms and charges it, unknown country →UNDEFINED_COUNTRY,suma number in getRentNum/extendRentState and a string in getRentState,guard_interval_remaining_secondswithnumber;extendRentStaterefusals are allTRY_AGAIN_LATER;closeRentNumunknown tzid →ERROR_NO_OPERATIONS, releases the reservation of an unconfirmed rent.MockRentgainsstatusandinitialDays. Webhook-log params:code""without a code, rentnumberin full digits, renttime_leftin minutes,time_startper type.profile.phpaccepts anyscheme://…URL.getPaymentHistoryaddsforms/buttons/domains;getFreeListlists 44 first, clampscountto 10..500, sends ISO-8601created_atandignore/content.- Docs: rent reservation and
sum, available = balance − max(zbalance, 0),bananswer"0",nexterrors, webhooknumber/timeLeft/timeStart, thewaitCoderetry policy, the mock's behaviour.