Commit Graph

98 Commits

Author SHA1 Message Date
sinhluu d1fc6632eb Merge pull request 'feat: onpoint - update OR payload' (#22) from feat/onpoint-update-or-payload into master
Reviewed-on: #22
2024-12-17 09:02:35 +00:00
Sinh a37bcd610d feat: onpoint - update OR payload 2024-12-17 16:00:35 +07:00
sinhluu 08029dfd8e Merge pull request 'chore: onpoint - add more info to the error' (#21) from chore/onpoint-add-error-detail into master
Reviewed-on: #21
2024-12-16 08:55:07 +00:00
Sinh 3cb41cb650 chore: onpoint - add more info to the error 2024-12-16 15:54:53 +07:00
sinhluu 5c20536492 Merge pull request 'feat: update URLs and authentication base across files' (#20) from viettel-ffm into master
Reviewed-on: #20
2024-07-18 09:16:25 +00:00
Sinh 4b621b9b41 feat: update URLs and authentication base across files
- Update production URLs in `viettel_ffm.go`
- Change the authentication base URLs for staging and production

Signed-off-by: Sinh <luuvansinh555@gmail.com>
2024-07-18 16:15:58 +07:00
sinhluu 91e69993af Merge pull request 'viettel-ffm' (#19) from viettel-ffm into master
Reviewed-on: #19
2024-07-11 03:04:15 +00:00
Sinh b7195b364f feat: refactor webhook handling for ViettelFFM partner API
- Add structs `Webhook`, `WebhookData` to handle webhook data in ViettelFFM partner API

Signed-off-by: Sinh <luuvansinh555@gmail.com>
2024-06-26 16:53:44 +07:00
Sinh 624cb96239 update VTP FFM model 2024-06-25 14:53:10 +07:00
Sinh e5619ae68c update VTP FFM api path 2024-06-25 14:13:40 +07:00
Sinh 00ec7e1f2f update VTP FFM model 2024-06-21 15:37:59 +07:00
Sinh fa6198d7e3 update VTP FFM model 2024-06-21 15:23:51 +07:00
Sinh d70f298734 change api path 2024-06-21 14:36:53 +07:00
Sinh ee60175a4d feat: integrate VTP FFM 2024-06-21 14:32:52 +07:00
Sinh baf7be0820 update model 2024-06-20 10:09:35 +07:00
Sinh 178652fcef feat: refactor logistics functions in Viettel FFM module
- Add a new type `CancelORPayload` to the file `model.go`
- Add a new constant `pathCancelOR` in the `viettel_ffm.go` file
- Change the method from `POST` to `PUT` in the `UpdateORLogisticInfo` function in `viettel_ffm.go`
- Add a new function `CancelOR` in the `viettel_ffm.go` file

Signed-off-by: Sinh <luuvansinh555@gmail.com>
2024-06-18 16:02:52 +07:00
Sinh 1034d2e077 feat: refactor ViettelFFM partner API integration
- Add the `const.go` file defining `ENV` type and constants `EnvStaging` and `EnvProd`
- Update `go.mod` to use `go 1.20` instead of `go 1.17`
- Introduce `model.go` file for ViettelFFM partner API structs
- Implement client methods for creating outbound requests and updating logistics information
- Implement an authentication method for the client with `AuthRes` struct
- Define constants for base URLs and authentication paths in ViettelFFM client
- Implement helper methods for getting base URL and making HTTP requests via NATS
- Update `util/httputil/const.go` to include `HeaderKeyAuthorization` constant

Signed-off-by: Sinh <luuvansinh555@gmail.com>
2024-06-14 17:31:02 +07:00
sinhluu 756740a2d7 feat(onpoint): get inventories (#17)
Co-authored-by: Sinh <luuvansinh555@gmail.com>
Reviewed-on: #17
2024-05-08 07:26:17 +00:00
sinhluu 9fb4f0c6f3 Merge pull request 'feat(jnt): update create order response' (#18) from jnt-update-response into master
Reviewed-on: #18
2024-04-15 03:50:25 +00:00
Sinh ac8aa89d70 feat(jnt): update create order response 2024-04-15 10:50:04 +07:00
sinhluu d4915875e9 Merge pull request 'change code best' (#16) from change-code-best into master
Reviewed-on: #16
2024-02-05 03:42:33 +00:00
Sinh a33809e092 change code best 2024-02-05 10:39:55 +07:00
sinhluu d549cc5103 Merge pull request 'onpoint' (#15) from onpoint into master
Reviewed-on: #15
2023-12-19 03:43:57 +00:00
Sinh 1c6be73d04 fix(onpoint): update order item model 2023-12-08 09:10:20 +07:00
Sinh a9b7f39b09 update onpoint 2023-12-01 14:39:56 +07:00
Sinh 71e2f0b842 update onpoint status 2023-11-09 09:58:57 +07:00
sinhluu aa202e8fcb Merge pull request 'jtexpress' (#13) from jtexpress into master
Reviewed-on: #13
2023-10-25 02:19:50 +00:00
Sinh 51afbc9c0e Merge branch 'master' of https://git.selly.red/Selly-Modules/3pl into jtexpress 2023-10-23 15:43:02 +07:00
Sinh 83201d37af update jtexpress 2023-10-23 15:42:55 +07:00
sinhluu 007796e668 Merge pull request 'kiotviet' (#11) from kiotviet into master
Reviewed-on: #11
2023-10-20 09:15:33 +00:00
Sinh fb417551f4 change json tag 2023-10-20 16:15:14 +07:00
Sinh efd91a81dd update nats 2023-10-20 16:12:29 +07:00
Sinh 8a0e7c2cb7 update parse response 2023-10-16 10:23:45 +07:00
Sinh 89d2f1c8fb fix cancel j&t 2023-10-13 14:12:22 +07:00
Sinh 6bf4914ade change body form data 2023-10-13 11:36:13 +07:00
Sinh 844b01604a jtexpress update create order 2023-10-13 10:42:03 +07:00
Sinh 03b68fd7e4 kiotviet get list webhooks 2023-10-12 16:24:02 +07:00
Sinh cd317aa9a2 update webhook payload 2023-10-12 11:04:46 +07:00
Sinh fc532e5b0c add kiotviet const 2023-10-11 14:00:36 +07:00
Sinh 1f4c6890eb add kiotviet 2023-10-06 17:12:11 +07:00
Sinh 5257cd21bc change host jtexpress 2023-10-06 09:25:43 +07:00
Sinh a929e52324 fix jtexpress digest 2023-09-14 15:23:50 +07:00
Sinh 9e15bfc101 update jt express 2023-09-14 14:07:34 +07:00
Sinh b15d883542 add jt express 2023-09-13 17:42:06 +07:00
sinhluu 94d6e0c606 Merge pull request 'update odn logistic info' (#10) from change-api-tnc-to-odn into master
Reviewed-on: #10
2023-08-23 06:49:54 +00:00
Sinh 7d1d63039d update odn logistic info 2023-08-23 13:49:24 +07:00
Sinh 5b1b55ee78 update odn logistic info 2023-08-23 13:48:16 +07:00
sinhluu ba6851fe19 Merge pull request 'update handle err OR' (#9) from change-api-tnc-to-odn into master
Reviewed-on: #9
2023-08-23 04:28:59 +00:00
Sinh 4b8e6c4178 update handle err OR 2023-08-23 11:28:30 +07:00
sinhluu 13eec58c2b Merge pull request 'change api odn host' (#8) from change-api-tnc-to-odn into master
Reviewed-on: #8
2023-08-22 06:52:11 +00:00