Commit Graph

14 Commits

Author SHA1 Message Date
Sinh 5fc7fa9843 chore(vtp): change stg domain 2024-12-20 10:48:47 +07:00
Sinh dd1d93a020 chore(vtp): change OR api path 2024-12-19 17:47:45 +07:00
Sinh a37bcd610d feat: onpoint - update OR payload 2024-12-17 16:00:35 +07: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
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