bzapper 0.9.0 → 0.9.1
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/bzapper/resources/messages.rb +11 -2
- data/lib/bzapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 316cbd15dfc092ac463fe8962cc28654cf759bd05b4beff64e6a416d1efb9bd0
|
|
4
|
+
data.tar.gz: 0a5366e02dde82845b9bfcb3052cf3729c65ff5768f5e2fc2ce09717fed6545e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b0eaebe936d54f02ef34fb9157a2e586b4845b5e516618b6e0cf3035e915a744b53930bf12435f138ebba738bd4f771b20e4cae29720d750cd168dfd00a72dd
|
|
7
|
+
data.tar.gz: 553b87a95d514d5582b6a64cc59abf2d87ee5a0361eb3ce5e509726b92102ebd9d69759f521fd93924b5af7e6252f0359871ec055e0d62e1bbd39a7266566f3a
|
data/README.md
CHANGED
|
@@ -10,13 +10,13 @@ Zero dependências de runtime (só biblioteca padrão: `net/http`, `json`, `open
|
|
|
10
10
|
## Instalação
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
gem install bzapper -v 0.9.
|
|
13
|
+
gem install bzapper -v 0.9.1
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Ou no `Gemfile` — **fixe a versão exata** (cada release declara se muda a superfície pública):
|
|
17
17
|
|
|
18
18
|
```ruby
|
|
19
|
-
gem "bzapper", "0.9.
|
|
19
|
+
gem "bzapper", "0.9.1"
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Hello world
|
|
@@ -871,6 +871,12 @@ module Bzapper
|
|
|
871
871
|
# language, with variations.
|
|
872
872
|
# @param expiry_minutes [Integer, nil] (corpo) Optional — mentions the expiry in the generated
|
|
873
873
|
# text.
|
|
874
|
+
# @param template [String, nil] (corpo) OFFICIAL RAIL ONLY, optional. Name of an approved
|
|
875
|
+
# AUTHENTICATION template to carry the code — used even inside the 24-hour window. Without it,
|
|
876
|
+
# the project's authentication template is used only when the window is closed. Ignored on the
|
|
877
|
+
# unofficial rail.
|
|
878
|
+
# @param language [String, nil] (corpo) Optional language of the authentication template (e.g.
|
|
879
|
+
# `pt_BR`).
|
|
874
880
|
# @param idempotency_key [String, nil] chave de idempotência (senão a SDK gera uma).
|
|
875
881
|
# @param timeout [Numeric, nil] segundos por tentativa (padrão: o do cliente).
|
|
876
882
|
# @return [Hash, Array, nil] o JSON da resposta, inteiro (nil em 204).
|
|
@@ -878,7 +884,8 @@ module Bzapper
|
|
|
878
884
|
def send_otp(to:, code:, instance_id: UNSET, pool_id: UNSET, sticky: UNSET,
|
|
879
885
|
quoted_message_id: UNSET, quoted_participant: UNSET, client_reference: UNSET,
|
|
880
886
|
mentions: UNSET, scheduled_at: UNSET, groups: UNSET, tags: UNSET, force: UNSET,
|
|
881
|
-
body: UNSET, expiry_minutes: UNSET,
|
|
887
|
+
body: UNSET, expiry_minutes: UNSET, template: UNSET, language: UNSET,
|
|
888
|
+
idempotency_key: nil, timeout: nil)
|
|
882
889
|
payload = compact(
|
|
883
890
|
"instance_id" => instance_id,
|
|
884
891
|
"pool_id" => pool_id,
|
|
@@ -894,7 +901,9 @@ module Bzapper
|
|
|
894
901
|
"force" => force,
|
|
895
902
|
"code" => code,
|
|
896
903
|
"body" => body,
|
|
897
|
-
"expiry_minutes" => expiry_minutes
|
|
904
|
+
"expiry_minutes" => expiry_minutes,
|
|
905
|
+
"template" => template,
|
|
906
|
+
"language" => language
|
|
898
907
|
)
|
|
899
908
|
request("POST",
|
|
900
909
|
"/messages/otp",
|
data/lib/bzapper/version.rb
CHANGED