1
0
mirror of synced 2024-12-01 09:26:03 +03:00
Commit Graph

145 Commits

Author SHA1 Message Date
Ruslan Efanov
bf7e5cdb93 refactoring 2022-10-26 12:14:42 +03:00
Ruslan Efanov
fa11f4ffd3 fix creating errors from response 2022-10-25 17:32:46 +03:00
Ruslan Efanov
0823d7e591 add ClientError model, fix using APIError 2022-10-25 12:39:01 +03:00
Ruslan Efanov
987d9cd6de add model of error for response 2022-10-25 10:47:02 +03:00
5405924b9b add in_app_id and transport_message_id fields 2022-10-11 10:10:22 +03:00
Tyschitskaya Maria
3baf86c345 edit voice audio message struct 2022-06-14 16:53:10 +03:00
Tyschitskaya Maria
a670e8561f add voice audio message struct 2022-06-14 16:35:00 +03:00
e870447e75
make originator unmarshalable (#77) 2021-12-01 14:50:32 +03:00
tishmaria90
97bec2e80f
Add logger to client (#75) 2021-11-22 16:16:01 +03:00
1306d648f6
Mock data in tests (#76)
* mock all data in tests
* update test matrix config
2021-11-22 16:08:53 +03:00
Alex Lushpai
b5df3a70bc
Previous message may not be present when deleted 2021-07-27 15:57:22 +03:00
Alexander Kulinich
3cf31358d9 previous message may not be present when deleted 2021-07-27 15:31:49 +03:00
Alexander Kulinich
125e3ba0b3 remove unused parameter ChannelSettings.SpamAllowed 2021-02-02 17:45:03 +03:00
DanielWeiser
ebded3077b
TransportResponse types (#70) 2021-01-15 14:51:24 +03:00
kovtun-retailcrm
14af54f7a1
Async status passthrough 2020-12-23 11:54:46 +03:00
Alexander Kulinich
7089c56787
Update v1/types.go
Co-authored-by: Sergey Linnik <linniksa@gmail.com>
2020-08-10 18:33:49 +03:00
Alexander Kulinich
73e617a073 added fields WebhookData.Attachments and ChannelSettings.Suggestions 2020-08-07 13:53:33 +03:00
Alex Lushpai
485233cd2f
ReplyDeadline в методе отправки сообщения 2020-06-18 17:15:38 +03:00
Akolzin Dmitry
988ff62f30 update channel features 2020-06-11 14:41:08 +03:00
Akolzin Dmitry
b821553586 update struct for templates 2020-06-11 14:00:09 +03:00
Akolzin Dmitry
4206ad2695 Templates fields, additional validation in UpdateTemplate 2020-05-11 17:41:17 +03:00
Alexander Kulinich
86b792b86b added field MessageDataProduct.Unit and MessageDataProduct.Quantity mark deprecated 2020-04-29 18:32:48 +03:00
bb46781244 check correct decoding from json 2020-04-08 14:17:21 +03:00
f144d5c1c1 go1.14 fixes 2020-04-08 14:06:15 +03:00
d5a94653da fixes in template (un)marshaling and tests 2020-04-08 13:50:02 +03:00
99d9784f73 templates list data type fix, WIP tests 2020-04-08 13:11:46 +03:00
ef0905e3ac remove reduntant package 2020-04-07 17:27:04 +03:00
a962419c30 support for template methods and data structures 2020-04-07 16:34:40 +03:00
7f757fc0d1 add discount field to MessageOrder 2020-03-18 15:50:44 +03:00
Roman Shakhov
dc99c480a9 ReplyDeadline в методе отправки сообщения 2020-03-11 16:11:23 +03:00
2f5017452f Feature: initialization with provided http client 2019-10-18 17:02:41 +03:00
Rinat Magrov
221f51ed6c ref #61525 Добавить external_id в клиент апи транспортов 2019-08-22 17:30:08 +03:00
1fadd9756f add audio message type 2019-08-15 16:12:47 +03:00
a603acbe4e don't log file data while uploading 2019-08-14 14:18:12 +03:00
Akolzin Dmitry
4cb19e6e4f add note 2019-03-18 19:18:55 +03:00
Vitaliy Chesnokov
fcda8a6684 Use customer property instead of deprecated user, add originator type 2019-03-12 18:25:40 +03:00
DmitryZagorulko
19de0e513c add omitempty originator 2019-02-04 14:44:34 +03:00
DmitryZagorulko
5bceed0fc7 increase timeout 2019-02-04 12:38:30 +03:00
DmitryZagorulko
017cea7180 improve test 2019-01-31 17:14:03 +03:00
DmitryZagorulko
ef8efa7354 add avatar url in channel settings 2019-01-31 17:10:51 +03:00
DmitryZagorulko
9634ccb674 add originator in SendData struct 2019-01-30 16:54:56 +03:00
DmitryZagorulko
017341ea1a add comment attribute to file channel settings 2019-01-29 13:36:17 +03:00
DmitryZagorulko
4e6b7856f2 add omitempty url tag 2019-01-18 09:52:16 +03:00
DmitryZagorulko
9849d07c2e improve channels request struct 2019-01-16 16:49:41 +03:00
DmitryZagorulko
5ee1c2dfd5 improve channels request struct 2019-01-16 16:20:26 +03:00
Sergey Linnik
3f50782ad4
Add omitempty to channel settings 2018-12-22 11:46:33 +03:00
DmitryZagorulko
91c42735fb fix payments tag 2018-12-20 15:00:53 +03:00
Alex Lushpai
2512dddb84
Merge pull request #41 from DmitryZagorulko/master
improve debug log
2018-12-17 16:41:55 +03:00
Alexander Kulinich
5416fba428 add height & width in FileItem struct 2018-12-17 15:18:30 +03:00
DmitryZagorulko
b53ee938ed improve debug log 2018-12-17 14:47:25 +03:00
DmitryZagorulko
e1848b45b4 improve PostRequest method 2018-12-05 17:14:51 +03:00
DmitryZagorulko
64cfb815df add MaxCharsCount in channel settings 2018-12-05 10:57:45 +03:00
DmitryZagorulko
19384abc06 improve WebhookData struct 2018-11-16 16:09:34 +03:00
DmitryZagorulko
0708b63ef2 add caption in FileItem struct 2018-11-15 17:24:06 +03:00
DmitryZagorulko
e11dcc8312 improve FullFileResponse struct 2018-11-15 15:31:54 +03:00
DmitryZagorulko
82d2f2fc46 improve file and image elem in channel settings struct, minor fixes 2018-11-15 15:31:54 +03:00
Alex Lushpai
7b25148c1a add files & images support 2018-11-15 15:31:54 +03:00
Alex Lushpai
7b29b9d33d remove currency constants 2018-11-08 10:15:48 +03:00
Alex Lushpai
fa349ed1ca add mark message read feature, change struct used for messagedit, refactoring 2018-10-03 09:48:17 +03:00
Alex Lushpai
bba31eee24 channels list method 2018-10-01 18:17:15 +03:00
Alex Lushpai
02a4d24b24 order product image 2018-09-26 15:45:48 +03:00
Alex Lushpai
af3a3f86ee add currency codes 2018-09-20 11:37:16 +03:00
Alex Lushpai
4c882fa250 add oneof for order status 2018-09-20 11:26:02 +03:00
Alex Lushpai
0c1f70a796 add delivery & payment data for order struct 2018-09-19 18:12:51 +03:00
Alex Lushpai
43b1437674 structured cost & quantity 2018-09-13 22:25:38 +03:00
Alex Lushpai
f069f93b17 add product & order to channel settings 2018-09-13 20:32:42 +03:00
Alex Lushpai
fccc723e0d message types 2018-09-13 17:03:30 +03:00
Alex Lushpai
47c7131270 update order & product structs 2018-09-12 10:35:46 +03:00
Alex Lushpai
65a3347f16 add product & order data to message struct 2018-09-12 00:18:53 +03:00
Alex Lushpai
5643dd7db7 update channel name example 2018-09-10 12:06:57 +03:00
Alex Lushpai
0789e72134 add name field to channel 2018-09-10 11:33:52 +03:00
Alex Lushpai
50c54ce145 add email to user struct & update TravisCI config 2018-08-31 11:14:06 +03:00
Alex Lushpai
349cf3561d export types 2018-08-28 16:44:11 +03:00
Alex Lushpai
a7d64a9d7d add user/bot name & photo for webhook 2018-08-28 15:30:12 +03:00
Alex Lushpai
9d750e73f6 update features, remove events 2018-08-21 13:38:02 +03:00
Alex Lushpai
35db168bd0 cleanup available values 2018-08-17 15:36:13 +03:00
Alex Lushpai
6913796dd9 add constants with feature values 2018-08-17 15:13:45 +03:00
Alex Lushpai
66b92cbe82 add transport features 2018-08-16 16:53:41 +03:00
Alex Lushpai
7dd44201bf update api endpoint 2018-07-21 18:56:25 +03:00
Alex Lushpai
bd7b959455 quotation from transport to mg 2018-07-13 15:15:51 +03:00
DmitryZagorulko
6d0e4a26ff add element in WebhookData struct 2018-07-13 14:23:46 +03:00
Alex Lushpai
cf09d91d98 add debug mode 2018-06-20 15:27:59 +03:00
Alex Lushpai
c53db59f44 json tag 2018-06-01 19:19:13 +03:00
Alex Lushpai
87bad23621 fix test run 2018-06-01 18:27:10 +03:00
Alex Lushpai
ba8b1b34dd add external_channel_id 2018-06-01 18:13:56 +03:00
Alex Lushpai
1034b7e62a update data types 2018-06-01 17:57:24 +03:00
Alex Lushpai
7afe683dce activity callback struct 2018-06-01 17:48:36 +03:00
Alex Lushpai
4ee3787af1 change field type 2018-06-01 15:24:53 +03:00
Alex Lushpai
d56bc65d93 message struct update 2018-06-01 13:41:09 +03:00
Alex Lushpai
2dbada55f6 update fields for webhook 2018-05-29 15:21:56 +03:00
Alex Lushpai
5deaaff05c fix for webhook struct 2018-05-29 13:51:10 +03:00
Alex Lushpai
226ea79b32 update WebhookRequest 2018-05-29 13:44:33 +03:00
Alex Lushpai
027b00df73 add webhook structs 2018-05-29 12:51:38 +03:00
Alex Lushpai
2b5f24ff75
Messages methods & tests (#2) 2018-05-21 17:56:42 +03:00
Alex Lushpai
11ed32136e
Init (#1)
* Channels methods
* Messages methods
* Partial tests
* Docs
2018-05-17 17:26:18 +03:00