• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sgerrand / ex_teya / 36240723094
100%

Build:
DEFAULT BRANCH: main
Ran 26 Sep 2026 12:03PM UTC
Jobs 1
Files 24
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Sep 2026 12:03PM UTC coverage: 100.0%. Remained the same
36240723094

push

github

web-flow
feat: add MOTO payments, POSLink receipt text, store configs and ePOS registration (#45)

* feat: add MOTO payments, POSLink receipt text, store configs and ePOS registration

Item 6 from the API documentation review: endpoints in Teya's specs that
the library did not cover.

- Teya.Moto.create/2 posts a mail or telephone order to
  /v1/transactions/moto. The card details go encrypted with a key Teya
  provides, and the docs say plainly that handling them at all puts the
  caller within PCI DSS scope.
- Teya.POSLink.Payment.receipt_text/2 returns the plain-text receipt for
  a successful payment or refund.
- Teya.POSLink.Store.terminal_configs/3 reads the settings that apply to
  a terminal, and put_config/4 sets one for every terminal in a store,
  such as PAT_ENABLED.
- Teya.POSLink.Epos.register/2 exchanges a signed-in user's token for the
  machine credentials the library is then configured with. The endpoint
  takes a user's token, not the library's own, so Client.request/3 gains
  a :token option that sends a given bearer token instead of asking the
  auth process; register/2 raises if the user's token is missing.

* fix(client): take a caller's token only through its own function

Review of the new endpoints.

ePOS registration's user token went in through a :token option that
Client.request/3 read from the options every resource function passes
along, so any endpoint could have its token replaced by a caller —
token: nil, or a card token mistaken for one. It now goes through
Client.request_with_token/4, which only registration uses. The bearer
token is also set after the configured :req_options, so an :auth among
them cannot send other credentials to Teya in its place.

Path segments in the new functions are URL-encoded, so a key holding
"/", "?" or "#" cannot change which endpoint is called. put_config/4
sends a boolean or a number as the string the API takes, instead of a
JSON value it refuses. register/2 has a default for its options, so
ca... (continued)

33 of 33 new or added lines in 5 files covered. (100.0%)

332 of 332 relevant lines covered (100.0%)

23.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36240723094.1 26 Sep 2026 12:03PM UTC 24
100.0
GitHub Action Run
Source Files on build 36240723094
  • Tree
  • List 24
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36240723094
  • 5e904760 on github
  • Prev Build on main (#36190828621)
  • Next Build on main (#36250840579)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc