Skip to content

Match SMS response models to API responses - #16

Merged
DarkGL merged 1 commit into
mainfrom
fix/sms-response-models
Nov 22, 2026
Merged

DarkGL merged 1 commit into
mainfrom
fix/sms-response-models

Conversation

@DarkGL

@DarkGL DarkGL commented Nov 22, 2026

Copy link
Copy Markdown
Member

Modele SMS nie zgadzały się z odpowiedziami API i rzucały TypeError:

  • SmsNumber czytał value_net, a API zwraca value (netto) i value_gross. Jest nowe pole valueGross, a valueNet jest równe value.
  • SmsTransaction: lista transakcji nie zawiera send_number ani value, a code może być null. Te pola są teraz nullable.
  • SmsService: lista usług nie zawiera description.
  • SmsServiceCheckCodeData: API zwraca from jako string, a pole jest typu int.

Dane testowe miały zły kształt, więc testy tego nie łapały. Poprawiłem je. Na main pada 8 testów, tutaj przechodzi 25/25.

@DarkGL
DarkGL merged commit ae42dff into main Nov 22, 2026
7 checks passed
@DarkGL
DarkGL deleted the fix/sms-response-models branch November 22, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant