bfocus 0.2.2__tar.gz → 0.2.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: bfocus
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: SDK oficial em Python da API pública do bFocus: clientes, produtos, release notes, base de conhecimento e agentes de IA.
5
5
  Project-URL: Homepage, https://bfocus.com.br
6
6
  Project-URL: Repository, https://github.com/bernisoftware/bfocus-python
@@ -421,6 +421,11 @@ class Customers(_Resource):
421
421
  *,
422
422
  name: MaybeUnset[Optional[str]] = UNSET,
423
423
  document: MaybeUnset[Optional[str]] = UNSET,
424
+ kind: MaybeUnset[Optional[str]] = UNSET,
425
+ legal_name: MaybeUnset[Optional[str]] = UNSET,
426
+ state_registration: MaybeUnset[Optional[str]] = UNSET,
427
+ municipal_registration: MaybeUnset[Optional[str]] = UNSET,
428
+ id_document: MaybeUnset[Optional[str]] = UNSET,
424
429
  email: MaybeUnset[Optional[str]] = UNSET,
425
430
  phone: MaybeUnset[Optional[str]] = UNSET,
426
431
  website: MaybeUnset[Optional[str]] = UNSET,
@@ -433,12 +438,22 @@ class Customers(_Resource):
433
438
 
434
439
  ``PUT /customers/{external_id}``. Só os campos informados mudam; ``None`` limpa.
435
440
  ``custom_fields``, quando enviado, **substitui** a lista inteira.
441
+
442
+ ``kind`` é o tipo do CONTRATANTE: ``"pj"`` (empresa) ou ``"pf"`` (pessoa física). Não
443
+ enviando, o bFocus deduz do documento. ``legal_name`` (razão social),
444
+ ``state_registration`` e ``municipal_registration`` são de PJ; ``id_document`` (RG), de
445
+ PF — mandar o do outro tipo não quebra nada, só não faz sentido.
436
446
  """
437
447
  ext = path_segment(external_id, "external_id")
438
448
  body = compact(
439
449
  {
440
450
  "name": name,
441
451
  "document": document,
452
+ "kind": kind,
453
+ "legal_name": legal_name,
454
+ "state_registration": state_registration,
455
+ "municipal_registration": municipal_registration,
456
+ "id_document": id_document,
442
457
  "email": email,
443
458
  "phone": phone,
444
459
  "website": website,
@@ -1,3 +1,3 @@
1
1
  """Versão da SDK. O ``scripts/release-sdks.sh`` bumpa esta linha e o ``pyproject.toml``."""
2
2
 
3
- __version__ = "0.2.2"
3
+ __version__ = "0.2.3"
@@ -221,7 +221,17 @@ class CustomField(TypedDict):
221
221
  class Customer(TypedDict):
222
222
  id: str
223
223
  external_id: str
224
+ #: O nome usado em tudo. Na PJ é o nome fantasia; a razão social fica em ``legal_name``.
224
225
  name: str
226
+ #: Tipo do CONTRATANTE: ``"pj"`` (empresa) ou ``"pf"`` (pessoa física); ``None`` = não dá
227
+ #: para saber. Cliente é a CONTA, não a pessoa: uma conta PF pode ter várias pessoas dentro.
228
+ kind: Optional[Literal["pj", "pf"]]
229
+ #: Só PJ.
230
+ legal_name: Optional[str]
231
+ state_registration: Optional[str]
232
+ municipal_registration: Optional[str]
233
+ #: Só PF: RG e órgão emissor (texto livre — o formato varia por estado).
234
+ id_document: Optional[str]
225
235
  document: Optional[str]
226
236
  email: Optional[str]
227
237
  phone: Optional[str]
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bfocus"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  description = "SDK oficial em Python da API pública do bFocus: clientes, produtos, release notes, base de conhecimento e agentes de IA."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -54,6 +54,11 @@
54
54
  "id": "00000000-0000-4000-8000-000000000001",
55
55
  "external_id": "ERP 1042",
56
56
  "name": "Padaria Estrela",
57
+ "kind": null,
58
+ "legal_name": null,
59
+ "state_registration": null,
60
+ "municipal_registration": null,
61
+ "id_document": null,
57
62
  "document": null,
58
63
  "email": "contato@padaria.example",
59
64
  "phone": null,
@@ -85,6 +90,11 @@
85
90
  "id": "00000000-0000-4000-8000-000000000001",
86
91
  "external_id": "ERP 1042",
87
92
  "name": "Padaria Estrela",
93
+ "kind": null,
94
+ "legal_name": null,
95
+ "state_registration": null,
96
+ "municipal_registration": null,
97
+ "id_document": null,
88
98
  "document": null,
89
99
  "email": "contato@padaria.example",
90
100
  "phone": null,
@@ -135,6 +145,11 @@
135
145
  "id": "00000000-0000-4000-8000-000000000001",
136
146
  "external_id": "ERP 1042",
137
147
  "name": "Padaria Estrela",
148
+ "kind": null,
149
+ "legal_name": null,
150
+ "state_registration": null,
151
+ "municipal_registration": null,
152
+ "id_document": null,
138
153
  "document": null,
139
154
  "email": "contato@padaria.example",
140
155
  "phone": null,
@@ -166,6 +181,11 @@
166
181
  "id": "00000000-0000-4000-8000-000000000001",
167
182
  "external_id": "ERP 1042",
168
183
  "name": "Padaria Estrela",
184
+ "kind": null,
185
+ "legal_name": null,
186
+ "state_registration": null,
187
+ "municipal_registration": null,
188
+ "id_document": null,
169
189
  "document": null,
170
190
  "email": "contato@padaria.example",
171
191
  "phone": null,
@@ -213,6 +233,11 @@
213
233
  "id": "00000000-0000-4000-8000-000000000001",
214
234
  "external_id": "ERP 1042",
215
235
  "name": "Padaria Estrela",
236
+ "kind": null,
237
+ "legal_name": null,
238
+ "state_registration": null,
239
+ "municipal_registration": null,
240
+ "id_document": null,
216
241
  "document": null,
217
242
  "email": "contato@padaria.example",
218
243
  "phone": null,
@@ -244,6 +269,11 @@
244
269
  "id": "00000000-0000-4000-8000-000000000001",
245
270
  "external_id": "ERP 1042",
246
271
  "name": "Padaria Estrela",
272
+ "kind": null,
273
+ "legal_name": null,
274
+ "state_registration": null,
275
+ "municipal_registration": null,
276
+ "id_document": null,
247
277
  "document": null,
248
278
  "email": "contato@padaria.example",
249
279
  "phone": null,
@@ -338,6 +368,11 @@
338
368
  "id": "00000000-0000-4000-8000-000000000002",
339
369
  "external_id": "ERP 1043",
340
370
  "name": "Mercado Sol",
371
+ "kind": null,
372
+ "legal_name": null,
373
+ "state_registration": null,
374
+ "municipal_registration": null,
375
+ "id_document": null,
341
376
  "document": null,
342
377
  "email": "contato@padaria.example",
343
378
  "phone": null,
@@ -370,6 +405,11 @@
370
405
  "id": "00000000-0000-4000-8000-000000000002",
371
406
  "external_id": "ERP 1043",
372
407
  "name": "Mercado Sol",
408
+ "kind": null,
409
+ "legal_name": null,
410
+ "state_registration": null,
411
+ "municipal_registration": null,
412
+ "id_document": null,
373
413
  "document": null,
374
414
  "email": "contato@padaria.example",
375
415
  "phone": null,
@@ -419,6 +459,11 @@
419
459
  "id": "00000000-0000-4000-8000-000000000001",
420
460
  "external_id": "ERP 1042",
421
461
  "name": "Padaria Estrela",
462
+ "kind": null,
463
+ "legal_name": null,
464
+ "state_registration": null,
465
+ "municipal_registration": null,
466
+ "id_document": null,
422
467
  "document": null,
423
468
  "email": "contato@padaria.example",
424
469
  "phone": null,
@@ -472,6 +517,11 @@
472
517
  "id": "00000000-0000-4000-8000-000000000002",
473
518
  "external_id": "ERP 1043",
474
519
  "name": "Mercado Sol",
520
+ "kind": null,
521
+ "legal_name": null,
522
+ "state_registration": null,
523
+ "municipal_registration": null,
524
+ "id_document": null,
475
525
  "document": null,
476
526
  "email": "contato@padaria.example",
477
527
  "phone": null,
@@ -503,6 +553,11 @@
503
553
  "id": "00000000-0000-4000-8000-000000000001",
504
554
  "external_id": "ERP 1042",
505
555
  "name": "Padaria Estrela",
556
+ "kind": null,
557
+ "legal_name": null,
558
+ "state_registration": null,
559
+ "municipal_registration": null,
560
+ "id_document": null,
506
561
  "document": null,
507
562
  "email": "contato@padaria.example",
508
563
  "phone": null,
@@ -528,6 +583,11 @@
528
583
  "id": "00000000-0000-4000-8000-000000000002",
529
584
  "external_id": "ERP 1043",
530
585
  "name": "Mercado Sol",
586
+ "kind": null,
587
+ "legal_name": null,
588
+ "state_registration": null,
589
+ "municipal_registration": null,
590
+ "id_document": null,
531
591
  "document": null,
532
592
  "email": "contato@padaria.example",
533
593
  "phone": null,
@@ -1722,6 +1782,11 @@
1722
1782
  "id": "00000000-0000-4000-8000-000000000001",
1723
1783
  "external_id": "ERP 1042",
1724
1784
  "name": "Padaria Estrela",
1785
+ "kind": null,
1786
+ "legal_name": null,
1787
+ "state_registration": null,
1788
+ "municipal_registration": null,
1789
+ "id_document": null,
1725
1790
  "document": null,
1726
1791
  "email": "contato@padaria.example",
1727
1792
  "phone": null,
@@ -1760,6 +1825,11 @@
1760
1825
  "id": "00000000-0000-4000-8000-000000000001",
1761
1826
  "external_id": "ERP 1042",
1762
1827
  "name": "Padaria Estrela",
1828
+ "kind": null,
1829
+ "legal_name": null,
1830
+ "state_registration": null,
1831
+ "municipal_registration": null,
1832
+ "id_document": null,
1763
1833
  "document": null,
1764
1834
  "email": "contato@padaria.example",
1765
1835
  "phone": null,
@@ -1861,6 +1931,11 @@
1861
1931
  "id": "00000000-0000-4000-8000-000000000001",
1862
1932
  "external_id": "ERP 1042",
1863
1933
  "name": "Padaria Estrela",
1934
+ "kind": null,
1935
+ "legal_name": null,
1936
+ "state_registration": null,
1937
+ "municipal_registration": null,
1938
+ "id_document": null,
1864
1939
  "document": null,
1865
1940
  "email": "contato@padaria.example",
1866
1941
  "phone": null,
@@ -1893,6 +1968,11 @@
1893
1968
  "id": "00000000-0000-4000-8000-000000000001",
1894
1969
  "external_id": "ERP 1042",
1895
1970
  "name": "Padaria Estrela",
1971
+ "kind": null,
1972
+ "legal_name": null,
1973
+ "state_registration": null,
1974
+ "municipal_registration": null,
1975
+ "id_document": null,
1896
1976
  "document": null,
1897
1977
  "email": "contato@padaria.example",
1898
1978
  "phone": null,
@@ -3657,6 +3737,11 @@
3657
3737
  "id": "00000000-0000-4000-8000-000000000001",
3658
3738
  "external_id": "ERP 1042",
3659
3739
  "name": "Padaria Estrela",
3740
+ "kind": null,
3741
+ "legal_name": null,
3742
+ "state_registration": null,
3743
+ "municipal_registration": null,
3744
+ "id_document": null,
3660
3745
  "document": null,
3661
3746
  "email": "contato@padaria.example",
3662
3747
  "phone": null,
@@ -3688,6 +3773,11 @@
3688
3773
  "id": "00000000-0000-4000-8000-000000000001",
3689
3774
  "external_id": "ERP 1042",
3690
3775
  "name": "Padaria Estrela",
3776
+ "kind": null,
3777
+ "legal_name": null,
3778
+ "state_registration": null,
3779
+ "municipal_registration": null,
3780
+ "id_document": null,
3691
3781
  "document": null,
3692
3782
  "email": "contato@padaria.example",
3693
3783
  "phone": null,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes