Repository navigation
fix: align with the regenerated API spec (2.1.1) - #4
Merged
Merged
Conversation
- waitCode: getState `response` may be absent (no number issued yet) — keep polling instead of an "Undefined array key" warning; retry ApiError TRY_AGAIN_LATER / ERROR_UNDEFINED / INTERVAL_CONCURRENT_REQUESTS_ERROR. - PHPStan types: Profile number int|null / country string|null, optional Operation response, RentSms code string|int, nullable free-list and payment-order fields. - Error table: add "0", ACCOUNT_CLEANED, USER_NOT_ACTIVATED, ERROR_UNDEFINED, FORWARD_NOT_SUPPORTED; drop dead codes; NoNumberError only for NO_NUMBER. - MockOnlineSim follows the backend (rent reservation, revise/close answers, missing vs wrong key, webhook params, free list, payment history). - Docs and CHANGELOG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
waitCode: getStateresponsemay be absent (no number issued yet) — keep polling instead of an "Undefined array key" warning (src/Numbers.php).waitCoderetriesApiErrorTRY_AGAIN_LATER(HTTP 429),ERROR_UNDEFINED,INTERVAL_CONCURRENT_REQUESTS_ERRORuntil the deadline; otherApiErrorat once.Profilenumberint|null /countrystring|null (were swapped), optionalOperation.response,RentSms.codestring|int (integer0fornotify, kept as sent), nullablecountry_text/country_original, ordercurrency/form_text.paylistas a JSON array is kept as the list."0",ACCOUNT_CLEANED,USER_NOT_ACTIVATED,ERROR_UNDEFINED,FORWARD_NOT_SUPPORTEDadded;ERROR_NO_KEY,NO_NUMBER_FOR_FORWARD,ACCOUNT_IDENTIFICATION_REQUIRED,API_DISABLEDdropped;NoNumberErroronly forNO_NUMBER; HTTP 429 →ApiErrortest.MockOnlineSimmirrors the JS reference: setOperationRevise / setOperationOk tzid rules, missing key 200 vs wrong key 456, getNum extra fields, rent reservation + first non-notify SMS charges,sumnumber vs string, extend refusalsTRY_AGAIN_LATER, closeRentNum rules, webhook-log params, anyscheme://URL, payment history forms/buttons, free list 44-first / count clamp / ISOcreated_at/ignore/content.Proposed version: 2.1.1 (patch). Not released.
🤖 Generated with Claude Code