2024-05-14 13:07:09 +00:00
|
|
|
definitions:
|
|
|
|
addressparam.BenefactorAddAddressRequest:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
example: tehran
|
|
|
|
type: string
|
|
|
|
city_id:
|
|
|
|
example: 1
|
|
|
|
type: integer
|
|
|
|
lat:
|
|
|
|
example: 22.23
|
|
|
|
type: number
|
|
|
|
lon:
|
|
|
|
example: 22.22
|
|
|
|
type: number
|
2024-05-30 12:57:33 +00:00
|
|
|
name:
|
|
|
|
example: home
|
|
|
|
type: string
|
2024-05-14 13:07:09 +00:00
|
|
|
postal_code:
|
|
|
|
example: "1234567890"
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
addressparam.BenefactorAddAddressResponse:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
$ref: '#/definitions/entity.Address'
|
|
|
|
type: object
|
2024-06-01 00:29:11 +00:00
|
|
|
addressparam.GetAddressResponse:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
$ref: '#/definitions/entity.Address'
|
|
|
|
type: object
|
2024-06-01 18:01:00 +00:00
|
|
|
addressparam.GetAllAddressesResponse:
|
|
|
|
properties:
|
|
|
|
all_addresses:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/entity.Address'
|
|
|
|
type: array
|
|
|
|
type: object
|
2024-05-14 13:07:09 +00:00
|
|
|
addressparam.GetAllCitiesResponse:
|
|
|
|
properties:
|
|
|
|
cities:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/entity.City'
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
addressparam.GetAllProvincesResponse:
|
|
|
|
properties:
|
|
|
|
provinces:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/entity.Province'
|
|
|
|
type: array
|
|
|
|
type: object
|
2024-06-06 17:54:56 +00:00
|
|
|
addressparam.UpdateAddressRequest:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
example: Zanjan Province, Zanjan, Etemadieh, 6th St, Iran
|
|
|
|
type: string
|
|
|
|
city_id:
|
|
|
|
example: 163
|
|
|
|
type: integer
|
|
|
|
lat:
|
|
|
|
example: 123.456
|
|
|
|
type: number
|
|
|
|
lon:
|
|
|
|
example: 123.456
|
|
|
|
type: number
|
|
|
|
name:
|
|
|
|
example: Home
|
|
|
|
type: string
|
|
|
|
postal_code:
|
|
|
|
example: "1234567890"
|
|
|
|
type: string
|
|
|
|
type: object
|
2024-07-02 20:17:40 +00:00
|
|
|
adminkindboxparam.AssignReceiverRequest:
|
2024-07-01 17:13:28 +00:00
|
|
|
properties:
|
2024-07-02 20:17:40 +00:00
|
|
|
receiver_agent_id:
|
2024-07-01 17:13:28 +00:00
|
|
|
type: integer
|
|
|
|
type: object
|
2024-07-09 17:17:04 +00:00
|
|
|
adminkindboxparam.KindBoxGetAllResponse:
|
|
|
|
properties:
|
|
|
|
all_kind_box:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/entity.KindBox'
|
|
|
|
type: array
|
|
|
|
pagination:
|
|
|
|
$ref: '#/definitions/param.PaginationResponse'
|
|
|
|
type: object
|
2024-07-03 17:18:06 +00:00
|
|
|
adminkindboxparam.KindBoxGetResponse:
|
|
|
|
properties:
|
|
|
|
amount:
|
|
|
|
type: integer
|
|
|
|
benefactorID:
|
|
|
|
type: integer
|
|
|
|
deliverAddressID:
|
|
|
|
type: integer
|
|
|
|
deliverReferDate:
|
|
|
|
type: string
|
|
|
|
deliveredAt:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
kindBoxReqID:
|
|
|
|
type: integer
|
|
|
|
kindBoxType:
|
|
|
|
$ref: '#/definitions/entity.KindBoxType'
|
|
|
|
receiverAgentID:
|
|
|
|
type: integer
|
|
|
|
returnAddressID:
|
|
|
|
type: integer
|
|
|
|
returnReferDate:
|
|
|
|
type: string
|
|
|
|
returnReferTimeID:
|
|
|
|
type: integer
|
|
|
|
returnedAt:
|
|
|
|
type: string
|
|
|
|
senderAgentID:
|
|
|
|
type: integer
|
|
|
|
serialNumber:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
$ref: '#/definitions/entity.KindBoxStatus'
|
|
|
|
type: object
|
2024-05-15 07:38:39 +00:00
|
|
|
adminkindboxreqparam.AssignSenderRequest:
|
|
|
|
properties:
|
|
|
|
sender_agent_id:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2024-05-17 20:16:28 +00:00
|
|
|
adminkindboxreqparam.AssignSenderResponse:
|
|
|
|
type: object
|
2024-05-15 07:38:39 +00:00
|
|
|
adminkindboxreqparam.DeliverKindBoxReqResponse:
|
|
|
|
type: object
|
2024-07-03 17:18:06 +00:00
|
|
|
adminkindboxreqparam.DeliveryAwaitingGetAllResponse:
|
|
|
|
properties:
|
|
|
|
all_awaiting_kind_box_req:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/entity.KindBoxReq'
|
|
|
|
type: array
|
|
|
|
pagination:
|
|
|
|
$ref: '#/definitions/param.PaginationResponse'
|
|
|
|
type: object
|
2024-06-10 22:54:16 +00:00
|
|
|
adminkindboxreqparam.DeliveryAwaitingGetResponse:
|
|
|
|
properties:
|
|
|
|
benefactorID:
|
|
|
|
type: integer
|
|
|
|
countAccepted:
|
|
|
|
type: integer
|
|
|
|
countRequested:
|
|
|
|
type: integer
|
|
|
|
deliverAddressID:
|
|
|
|
type: integer
|
|
|
|
deliverReferDate:
|
|
|
|
type: string
|
|
|
|
deliverReferTimeID:
|
|
|
|
type: integer
|
|
|
|
deliveredAt:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
kindBoxType:
|
|
|
|
$ref: '#/definitions/entity.KindBoxType'
|
|
|
|
senderAgentID:
|
|
|
|
type: integer
|
|
|
|
status:
|
|
|
|
$ref: '#/definitions/entity.KindBoxReqStatus'
|
|
|
|
type: object
|
2024-05-15 07:38:39 +00:00
|
|
|
adminkindboxreqparam.KindBoxReqAcceptRequest:
|
|
|
|
properties:
|
|
|
|
count_accepted:
|
|
|
|
type: integer
|
|
|
|
type: object
|
|
|
|
adminkindboxreqparam.KindBoxReqAcceptResponse:
|
|
|
|
properties:
|
|
|
|
count_accepted:
|
|
|
|
type: integer
|
|
|
|
count_requested:
|
|
|
|
type: integer
|
|
|
|
deliver_address_id:
|
|
|
|
type: integer
|
|
|
|
deliver_refer_date:
|
|
|
|
type: string
|
|
|
|
kind_box_req_id:
|
|
|
|
type: integer
|
|
|
|
kind_box_req_status:
|
|
|
|
$ref: '#/definitions/entity.KindBoxReqStatus'
|
|
|
|
type: object
|
2024-07-03 17:18:06 +00:00
|
|
|
adminkindboxreqparam.KindBoxReqAddRequest:
|
|
|
|
properties:
|
|
|
|
benefactor_id:
|
|
|
|
example: 1
|
|
|
|
type: integer
|
|
|
|
count_requested:
|
|
|
|
example: 2
|
|
|
|
type: integer
|
|
|
|
deliver_address_id:
|
|
|
|
example: 1
|
|
|
|
type: integer
|
|
|
|
deliver_refer_date:
|
|
|
|
example: "2025-01-02 15:04:05"
|
|
|
|
type: string
|
|
|
|
kind_box_type:
|
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/entity.KindBoxType'
|
|
|
|
example: 1
|
|
|
|
type: object
|
|
|
|
adminkindboxreqparam.KindBoxReqAddResponse:
|
|
|
|
properties:
|
|
|
|
kindBoxReq:
|
|
|
|
$ref: '#/definitions/entity.KindBoxReq'
|
|
|
|
type: object
|
2024-05-15 07:38:39 +00:00
|
|
|
adminkindboxreqparam.KindBoxReqGetAllResponse:
|
|
|
|
properties:
|
2024-07-03 17:18:06 +00:00
|
|
|
all_awaiting_kind_box_req:
|
2024-05-15 07:38:39 +00:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/entity.KindBoxReq'
|
|
|
|
type: array
|
|
|
|
pagination:
|
|
|
|
$ref: '#/definitions/param.PaginationResponse'
|
|
|
|
type: object
|
|
|
|
adminkindboxreqparam.KindBoxReqRejectRequest:
|
|
|
|
properties:
|
|
|
|
description:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: description
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
adminkindboxreqparam.KindBoxReqRejectResponse:
|
|
|
|
properties:
|
|
|
|
benefactor_id:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
type: integer
|
|
|
|
count_requested:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
type: integer
|
|
|
|
deliver_address_id:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
type: integer
|
|
|
|
deliver_refer_date:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: "2025-01-02 15:04:05"
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
|
|
|
description:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: description
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
|
|
|
id:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
type: integer
|
|
|
|
kind_box_type:
|
2024-05-17 20:16:28 +00:00
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/entity.KindBoxType'
|
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
status:
|
2024-05-17 20:16:28 +00:00
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/entity.KindBoxReqStatus'
|
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
type: object
|
2024-07-10 01:21:03 +00:00
|
|
|
adminkindboxreqparam.KindBoxReqUpdateRequest:
|
|
|
|
properties:
|
|
|
|
count_accepted:
|
|
|
|
example: 3
|
|
|
|
type: integer
|
|
|
|
count_requested:
|
|
|
|
example: 5
|
|
|
|
type: integer
|
|
|
|
deliver_address_id:
|
|
|
|
example: 1
|
|
|
|
type: integer
|
|
|
|
deliver_refer_date:
|
|
|
|
example: "2025-01-02T15:04:05Z"
|
|
|
|
type: string
|
|
|
|
deliver_refer_time_id:
|
|
|
|
example: 1
|
|
|
|
type: integer
|
|
|
|
description:
|
|
|
|
example: description
|
|
|
|
type: string
|
|
|
|
kind_box_type:
|
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/entity.KindBoxType'
|
|
|
|
example: 2
|
|
|
|
sender_agent_id:
|
|
|
|
example: 1
|
|
|
|
type: integer
|
|
|
|
type: object
|
2024-05-21 16:57:21 +00:00
|
|
|
adminserviceparam.AdminInfo:
|
|
|
|
properties:
|
|
|
|
description:
|
2024-05-21 22:10:16 +00:00
|
|
|
example: This is a description
|
2024-05-21 16:57:21 +00:00
|
|
|
type: string
|
|
|
|
email:
|
2024-05-21 22:10:16 +00:00
|
|
|
example: example@gmail.com
|
2024-05-21 16:57:21 +00:00
|
|
|
type: string
|
|
|
|
first_name:
|
2024-05-21 22:10:16 +00:00
|
|
|
example: John
|
2024-05-21 16:57:21 +00:00
|
|
|
type: string
|
|
|
|
gender:
|
2024-05-21 22:10:16 +00:00
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/entity.Gender'
|
|
|
|
example: 1
|
2024-05-21 16:57:21 +00:00
|
|
|
id:
|
2024-05-21 22:10:16 +00:00
|
|
|
example: 1
|
2024-05-21 16:57:21 +00:00
|
|
|
type: integer
|
|
|
|
last_name:
|
2024-05-21 22:10:16 +00:00
|
|
|
example: Doe
|
2024-05-21 16:57:21 +00:00
|
|
|
type: string
|
|
|
|
phone_number:
|
2024-05-21 22:10:16 +00:00
|
|
|
example: "09123456789"
|
2024-05-21 16:57:21 +00:00
|
|
|
type: string
|
|
|
|
role:
|
2024-05-21 22:10:16 +00:00
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/entity.AdminRole'
|
|
|
|
example: 2
|
2024-05-21 16:57:21 +00:00
|
|
|
status:
|
2024-05-21 22:10:16 +00:00
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/entity.AdminStatus'
|
|
|
|
example: 1
|
2024-05-21 16:57:21 +00:00
|
|
|
type: object
|
2024-06-10 14:49:13 +00:00
|
|
|
adminserviceparam.Agent:
|
|
|
|
properties:
|
|
|
|
first_name:
|
|
|
|
example: John
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
example: 1
|
|
|
|
type: integer
|
|
|
|
last_name:
|
|
|
|
example: Doe
|
|
|
|
type: string
|
|
|
|
phone_number:
|
|
|
|
example: "09123456789"
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
adminserviceparam.GetAllAgentResponse:
|
|
|
|
properties:
|
|
|
|
agents:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/adminserviceparam.Agent'
|
|
|
|
type: array
|
|
|
|
type: object
|
2024-05-15 07:38:39 +00:00
|
|
|
adminserviceparam.LoginWithPhoneNumberRequest:
|
|
|
|
properties:
|
|
|
|
password:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: password123
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
|
|
|
phone_number:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: "09123456789"
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
adminserviceparam.LoginWithPhoneNumberResponse:
|
|
|
|
properties:
|
2024-05-21 16:57:21 +00:00
|
|
|
admin_info:
|
|
|
|
$ref: '#/definitions/adminserviceparam.AdminInfo'
|
2024-05-15 07:38:39 +00:00
|
|
|
tokens:
|
|
|
|
$ref: '#/definitions/adminserviceparam.Tokens'
|
|
|
|
type: object
|
|
|
|
adminserviceparam.RegisterRequest:
|
|
|
|
properties:
|
|
|
|
description:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: this is a description
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
|
|
|
email:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: miaad.66@gmail.com
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
|
|
|
first_name:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: miaad
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
|
|
|
gender:
|
2024-05-17 20:16:28 +00:00
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/entity.Gender'
|
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
last_name:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: shahi
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
|
|
|
password:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: Abc123456
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
|
|
|
phone_number:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: "09183723447"
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
|
|
|
role:
|
2024-05-17 20:16:28 +00:00
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/entity.AdminRole'
|
|
|
|
example: 2
|
2024-05-15 07:38:39 +00:00
|
|
|
status:
|
2024-05-17 20:16:28 +00:00
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/entity.AdminStatus'
|
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
type: object
|
|
|
|
adminserviceparam.RegisterResponse:
|
|
|
|
properties:
|
|
|
|
admin:
|
|
|
|
$ref: '#/definitions/entity.Admin'
|
|
|
|
type: object
|
|
|
|
adminserviceparam.Tokens:
|
|
|
|
properties:
|
|
|
|
access_token:
|
|
|
|
type: string
|
|
|
|
refresh_token:
|
|
|
|
type: string
|
|
|
|
type: object
|
2024-05-14 13:07:09 +00:00
|
|
|
benefactoreparam.BenefactroInfo:
|
|
|
|
properties:
|
|
|
|
first_name:
|
|
|
|
example: mehdi
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
example: 1
|
|
|
|
type: integer
|
|
|
|
last_name:
|
|
|
|
example: rez
|
|
|
|
type: string
|
|
|
|
role:
|
|
|
|
example: benefactor
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
benefactoreparam.LoginOrRegisterRequest:
|
|
|
|
properties:
|
|
|
|
phone_number:
|
|
|
|
example: "09198829528"
|
|
|
|
type: string
|
|
|
|
verification_code:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: "12345"
|
2024-05-14 13:07:09 +00:00
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
benefactoreparam.LoginOrRegisterResponse:
|
|
|
|
properties:
|
|
|
|
benefactore_info:
|
|
|
|
$ref: '#/definitions/benefactoreparam.BenefactroInfo'
|
|
|
|
tokens:
|
|
|
|
$ref: '#/definitions/benefactoreparam.Tokens'
|
|
|
|
type: object
|
|
|
|
benefactoreparam.SendOtpRequest:
|
|
|
|
properties:
|
|
|
|
phone_number:
|
|
|
|
example: "09198829528"
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
benefactoreparam.SendOtpResponse:
|
|
|
|
properties:
|
|
|
|
code:
|
|
|
|
description: "this just use in test .env\n\t\tTODO - remove it after test"
|
|
|
|
type: string
|
|
|
|
phone_number:
|
|
|
|
example: "09198829528"
|
|
|
|
type: string
|
|
|
|
type: object
|
|
|
|
benefactoreparam.Tokens:
|
|
|
|
properties:
|
|
|
|
access_token:
|
|
|
|
type: string
|
|
|
|
refresh_token:
|
|
|
|
type: string
|
|
|
|
type: object
|
2024-05-15 07:38:39 +00:00
|
|
|
benefactorkindboxparam.KindBoxGetResponse:
|
|
|
|
properties:
|
|
|
|
amount:
|
|
|
|
type: integer
|
|
|
|
benefactorID:
|
|
|
|
type: integer
|
|
|
|
deliverAddressID:
|
|
|
|
type: integer
|
|
|
|
deliverReferDate:
|
|
|
|
type: string
|
|
|
|
deliveredAt:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
kindBoxReqID:
|
|
|
|
type: integer
|
2024-07-03 17:18:06 +00:00
|
|
|
kindBoxType:
|
|
|
|
$ref: '#/definitions/entity.KindBoxType'
|
2024-05-15 07:38:39 +00:00
|
|
|
receiverAgentID:
|
|
|
|
type: integer
|
|
|
|
returnAddressID:
|
|
|
|
type: integer
|
|
|
|
returnReferDate:
|
|
|
|
type: string
|
2024-06-25 21:58:11 +00:00
|
|
|
returnReferTimeID:
|
|
|
|
type: integer
|
2024-05-15 07:38:39 +00:00
|
|
|
returnedAt:
|
|
|
|
type: string
|
|
|
|
senderAgentID:
|
|
|
|
type: integer
|
|
|
|
serialNumber:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
$ref: '#/definitions/entity.KindBoxStatus'
|
2024-07-03 17:18:06 +00:00
|
|
|
type: object
|
|
|
|
benefactorkindboxparam.KindBoxRegisterEmptyingRequest:
|
|
|
|
properties:
|
|
|
|
return_address_id:
|
|
|
|
example: 1
|
|
|
|
type: integer
|
|
|
|
return_refer_date:
|
|
|
|
example: "2025-01-02T15:04:05Z"
|
|
|
|
type: string
|
|
|
|
return_refer_time_id:
|
|
|
|
example: 1
|
|
|
|
type: integer
|
|
|
|
type: object
|
|
|
|
benefactorkindboxreqparam.GetAllResponse:
|
|
|
|
properties:
|
|
|
|
all_kind_box_req:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/entity.KindBoxReq'
|
|
|
|
type: array
|
|
|
|
pagination:
|
|
|
|
$ref: '#/definitions/param.PaginationResponse'
|
2024-05-15 07:38:39 +00:00
|
|
|
type: object
|
|
|
|
benefactorkindboxreqparam.KindBoxReqAddRequest:
|
|
|
|
properties:
|
|
|
|
benefactor_id:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
type: integer
|
|
|
|
count_requested:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: 2
|
2024-05-15 07:38:39 +00:00
|
|
|
type: integer
|
|
|
|
deliver_address_id:
|
2024-05-17 20:16:28 +00:00
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
type: integer
|
|
|
|
deliver_refer_date:
|
2024-05-31 12:36:48 +00:00
|
|
|
example: "2025-01-02T15:04:05Z"
|
2024-05-15 07:38:39 +00:00
|
|
|
type: string
|
2024-05-31 12:36:48 +00:00
|
|
|
deliver_refer_time_id:
|
|
|
|
example: 1
|
|
|
|
type: integer
|
2024-07-03 17:18:06 +00:00
|
|
|
kind_box_type:
|
2024-05-17 20:16:28 +00:00
|
|
|
allOf:
|
|
|
|
- $ref: '#/definitions/entity.KindBoxType'
|
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
type: object
|
|
|
|
benefactorkindboxreqparam.KindBoxReqAddResponse:
|
|
|
|
properties:
|
|
|
|
kind_box_req:
|
|
|
|
$ref: '#/definitions/entity.KindBoxReq'
|
|
|
|
type: object
|
2024-05-31 14:49:04 +00:00
|
|
|
benefactorkindboxreqparam.KindBoxReqDeleteResponse:
|
|
|
|
type: object
|
2024-05-15 07:38:39 +00:00
|
|
|
benefactorkindboxreqparam.KindBoxReqGetResponse:
|
|
|
|
properties:
|
2024-05-21 22:10:16 +00:00
|
|
|
kind_box_req:
|
|
|
|
$ref: '#/definitions/entity.KindBoxReq'
|
2024-05-15 07:38:39 +00:00
|
|
|
type: object
|
2024-05-14 13:07:09 +00:00
|
|
|
entity.Address:
|
|
|
|
properties:
|
|
|
|
address:
|
|
|
|
type: string
|
|
|
|
benefactorID:
|
|
|
|
type: integer
|
|
|
|
cityID:
|
|
|
|
type: integer
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
lat:
|
|
|
|
type: number
|
|
|
|
lon:
|
|
|
|
type: number
|
2024-05-30 12:57:33 +00:00
|
|
|
name:
|
|
|
|
type: string
|
2024-05-14 13:07:09 +00:00
|
|
|
postalCode:
|
|
|
|
type: string
|
|
|
|
provinceID:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2024-05-15 07:38:39 +00:00
|
|
|
entity.Admin:
|
|
|
|
properties:
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
firstName:
|
|
|
|
type: string
|
|
|
|
gender:
|
|
|
|
$ref: '#/definitions/entity.Gender'
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
lastName:
|
|
|
|
type: string
|
|
|
|
password:
|
|
|
|
type: string
|
|
|
|
phoneNumber:
|
|
|
|
type: string
|
|
|
|
role:
|
|
|
|
$ref: '#/definitions/entity.AdminRole'
|
|
|
|
status:
|
|
|
|
$ref: '#/definitions/entity.AdminStatus'
|
|
|
|
type: object
|
|
|
|
entity.AdminRole:
|
|
|
|
enum:
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
- 3
|
|
|
|
type: integer
|
|
|
|
x-enum-varnames:
|
|
|
|
- AdminSuperAdminRole
|
|
|
|
- AdminAdminRole
|
|
|
|
- AdminAgentRole
|
|
|
|
entity.AdminStatus:
|
|
|
|
enum:
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
type: integer
|
|
|
|
x-enum-varnames:
|
|
|
|
- AdminActiveStatus
|
|
|
|
- AdminInactiveStatus
|
2024-05-14 13:07:09 +00:00
|
|
|
entity.City:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
provinceID:
|
|
|
|
type: integer
|
|
|
|
type: object
|
2024-05-15 07:38:39 +00:00
|
|
|
entity.Gender:
|
|
|
|
enum:
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
type: integer
|
|
|
|
x-enum-varnames:
|
|
|
|
- MaleGender
|
|
|
|
- FemaleGender
|
2024-07-09 17:17:04 +00:00
|
|
|
entity.KindBox:
|
|
|
|
properties:
|
|
|
|
amount:
|
|
|
|
type: integer
|
|
|
|
benefactorID:
|
|
|
|
type: integer
|
|
|
|
deliverAddressID:
|
|
|
|
type: integer
|
|
|
|
deliverReferDate:
|
|
|
|
type: string
|
|
|
|
deliveredAt:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
kindBoxReqID:
|
|
|
|
type: integer
|
|
|
|
kindBoxType:
|
|
|
|
$ref: '#/definitions/entity.KindBoxType'
|
|
|
|
receiverAgentID:
|
|
|
|
type: integer
|
|
|
|
returnAddressID:
|
|
|
|
type: integer
|
|
|
|
returnReferDate:
|
|
|
|
type: string
|
|
|
|
returnReferTimeID:
|
|
|
|
type: integer
|
|
|
|
returnedAt:
|
|
|
|
type: string
|
|
|
|
senderAgentID:
|
|
|
|
type: integer
|
|
|
|
serialNumber:
|
|
|
|
type: string
|
|
|
|
status:
|
|
|
|
$ref: '#/definitions/entity.KindBoxStatus'
|
|
|
|
type: object
|
2024-05-15 07:38:39 +00:00
|
|
|
entity.KindBoxReq:
|
|
|
|
properties:
|
|
|
|
benefactorID:
|
|
|
|
type: integer
|
|
|
|
countAccepted:
|
|
|
|
type: integer
|
|
|
|
countRequested:
|
|
|
|
type: integer
|
|
|
|
deliverAddressID:
|
|
|
|
type: integer
|
|
|
|
deliverReferDate:
|
|
|
|
type: string
|
2024-05-31 12:36:48 +00:00
|
|
|
deliverReferTimeID:
|
|
|
|
type: integer
|
2024-05-15 07:38:39 +00:00
|
|
|
deliveredAt:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
kindBoxType:
|
|
|
|
$ref: '#/definitions/entity.KindBoxType'
|
|
|
|
senderAgentID:
|
|
|
|
type: integer
|
|
|
|
status:
|
|
|
|
$ref: '#/definitions/entity.KindBoxReqStatus'
|
|
|
|
type: object
|
|
|
|
entity.KindBoxReqStatus:
|
|
|
|
enum:
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
- 3
|
|
|
|
- 4
|
|
|
|
- 5
|
|
|
|
type: integer
|
|
|
|
x-enum-varnames:
|
|
|
|
- KindBoxReqPendingStatus
|
|
|
|
- KindBoxReqAcceptedStatus
|
|
|
|
- KindBoxReqAssignedSenderAgentStatus
|
|
|
|
- KindBoxReqRejectedStatus
|
|
|
|
- KindBoxReqDeliveredStatus
|
|
|
|
entity.KindBoxStatus:
|
|
|
|
enum:
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
- 3
|
|
|
|
- 4
|
|
|
|
- 5
|
|
|
|
type: integer
|
|
|
|
x-enum-varnames:
|
|
|
|
- KindBoxDeliveredStatus
|
|
|
|
- KindBoxReadyToReturnStatus
|
|
|
|
- KindBoxAssignedReceiverAgentStatus
|
|
|
|
- KindBoxReturnedStatus
|
|
|
|
- KindBoxEnumeratedStatus
|
|
|
|
entity.KindBoxType:
|
|
|
|
enum:
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
- 3
|
|
|
|
type: integer
|
|
|
|
x-enum-varnames:
|
|
|
|
- KindBoxOnTable
|
|
|
|
- KindBoxCylindrical
|
|
|
|
- KindBoxStandUp
|
2024-05-14 13:07:09 +00:00
|
|
|
entity.Province:
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
type: object
|
2024-05-15 07:38:39 +00:00
|
|
|
param.PaginationResponse:
|
|
|
|
properties:
|
2024-05-21 22:10:16 +00:00
|
|
|
page_number:
|
|
|
|
example: 1
|
2024-05-15 07:38:39 +00:00
|
|
|
type: integer
|
2024-05-21 22:10:16 +00:00
|
|
|
page_size:
|
|
|
|
example: 10
|
2024-05-15 07:38:39 +00:00
|
|
|
type: integer
|
|
|
|
total:
|
2024-05-21 22:10:16 +00:00
|
|
|
example: 100
|
2024-05-15 07:38:39 +00:00
|
|
|
type: integer
|
|
|
|
type: object
|
2024-05-14 13:07:09 +00:00
|
|
|
info:
|
|
|
|
contact: {}
|
|
|
|
paths:
|
|
|
|
/address/:
|
2024-06-01 18:01:00 +00:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/addressparam.GetAllAddressesResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerBenefactor: []
|
|
|
|
summary: Get all benefactor addresses
|
|
|
|
tags:
|
|
|
|
- Address
|
2024-05-14 13:07:09 +00:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2024-05-17 20:16:28 +00:00
|
|
|
description: This endpoint allows an authenticated benefactor to add a new address
|
|
|
|
to their account.
|
2024-05-14 13:07:09 +00:00
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: New address details
|
2024-05-14 13:07:09 +00:00
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/addressparam.BenefactorAddAddressRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
2024-05-17 20:16:28 +00:00
|
|
|
"201":
|
|
|
|
description: Created
|
2024-05-14 13:07:09 +00:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/addressparam.BenefactorAddAddressResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
2024-05-15 07:38:39 +00:00
|
|
|
- AuthBearerBenefactor: []
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Add a new address for a benefactor
|
2024-05-14 13:07:09 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- Address
|
2024-06-01 00:29:11 +00:00
|
|
|
/address/{id}:
|
2024-06-08 14:25:24 +00:00
|
|
|
delete:
|
|
|
|
description: This endpoint is used to delete an address by benefactor
|
|
|
|
parameters:
|
|
|
|
- description: Address ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
responses:
|
|
|
|
"204":
|
|
|
|
description: No Content
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerBenefactor: []
|
|
|
|
summary: Delete address by benefactor
|
|
|
|
tags:
|
|
|
|
- Address
|
2024-06-01 00:29:11 +00:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- description: Address ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/addressparam.GetAddressResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerBenefactor: []
|
|
|
|
summary: Get a benefactor address
|
|
|
|
tags:
|
|
|
|
- Address
|
2024-06-06 17:54:56 +00:00
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- description: Address ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
- description: Edit address details
|
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/addressparam.UpdateAddressRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
|
|
|
description: No Content
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerBenefactor: []
|
|
|
|
summary: Edit benefactor address
|
|
|
|
tags:
|
|
|
|
- Address
|
2024-05-14 13:07:09 +00:00
|
|
|
/address/cities:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/addressparam.GetAllCitiesResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Get all cities
|
2024-05-14 13:07:09 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- Address
|
2024-05-14 13:07:09 +00:00
|
|
|
/address/provinces:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/addressparam.GetAllProvincesResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Get all provinces
|
2024-05-14 13:07:09 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- Address
|
2024-07-09 17:17:04 +00:00
|
|
|
/admin/kindboxes:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Retrieves a list of all KindBoxes with filtering, sorting, and
|
|
|
|
pagination options
|
|
|
|
parameters:
|
|
|
|
- description: Filter by ID
|
|
|
|
in: query
|
|
|
|
name: filter_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by KindBox request ID
|
|
|
|
in: query
|
|
|
|
name: filter_kind_box_req_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by benefactor ID
|
|
|
|
in: query
|
|
|
|
name: filter_benefactor_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by KindBox type
|
|
|
|
enum:
|
|
|
|
- on-table
|
|
|
|
- cylindrical
|
|
|
|
- stand-up
|
|
|
|
in: query
|
|
|
|
name: filter_kind_box_type
|
|
|
|
type: string
|
|
|
|
- description: Filter by amount
|
|
|
|
in: query
|
|
|
|
name: filter_amount
|
|
|
|
type: integer
|
|
|
|
- description: Filter by serial number
|
|
|
|
in: query
|
|
|
|
name: filter_serial_number
|
|
|
|
type: string
|
|
|
|
- description: Filter by status
|
|
|
|
enum:
|
|
|
|
- delivered
|
|
|
|
- ready-to-return
|
|
|
|
- assigned-receiver-agent
|
|
|
|
- returned
|
|
|
|
- enumerated
|
|
|
|
in: query
|
|
|
|
name: filter_status
|
|
|
|
type: string
|
|
|
|
- description: Filter by delivered at
|
|
|
|
format: date-time
|
|
|
|
in: query
|
|
|
|
name: filter_delivered_at
|
|
|
|
type: string
|
|
|
|
- description: Filter by return refer time ID
|
|
|
|
in: query
|
|
|
|
name: filter_return_refer_time_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by return refer date
|
|
|
|
format: date
|
|
|
|
in: query
|
|
|
|
name: filter_return_refer_date
|
|
|
|
type: string
|
|
|
|
- description: Filter by return address ID
|
|
|
|
in: query
|
|
|
|
name: filter_return_address_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by receiver agent ID
|
|
|
|
in: query
|
|
|
|
name: filter_receiver_agent_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by returned at
|
|
|
|
format: date-time
|
|
|
|
in: query
|
|
|
|
name: filter_returned_at
|
|
|
|
type: string
|
|
|
|
- description: Filter by sender agent ID
|
|
|
|
in: query
|
|
|
|
name: filter_sender_agent_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by deliver refer date
|
|
|
|
format: date
|
|
|
|
in: query
|
|
|
|
name: filter_deliver_refer_date
|
|
|
|
type: string
|
|
|
|
- description: Filter by deliver address ID
|
|
|
|
in: query
|
|
|
|
name: filter_deliver_address_id
|
|
|
|
type: integer
|
|
|
|
- description: Page number
|
|
|
|
in: query
|
|
|
|
name: page_number
|
|
|
|
type: integer
|
|
|
|
- description: Page size
|
|
|
|
in: query
|
|
|
|
name: page_size
|
|
|
|
type: integer
|
|
|
|
- description: Sort by field
|
|
|
|
enum:
|
|
|
|
- id
|
|
|
|
- kind_box_req_id
|
|
|
|
- benefactor_id
|
|
|
|
- kind_box_type
|
|
|
|
- amount
|
|
|
|
- serial_number
|
|
|
|
- status
|
|
|
|
- delivered_at
|
|
|
|
- return_refer_time_id
|
|
|
|
- return_refer_date
|
|
|
|
- return_address_id
|
|
|
|
- receiver_agent_id
|
|
|
|
- returned_at
|
|
|
|
- sender_agent_id
|
|
|
|
- deliver_refer_date
|
|
|
|
- deliver_address_id
|
|
|
|
in: query
|
|
|
|
name: sort_field
|
|
|
|
type: string
|
|
|
|
- description: Sort order
|
|
|
|
enum:
|
|
|
|
- asc
|
|
|
|
- desc
|
|
|
|
in: query
|
|
|
|
name: sort_direction
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxparam.KindBoxGetAllResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
|
|
|
summary: Get all KindBoxes by admin
|
|
|
|
tags:
|
|
|
|
- KindBox
|
2024-07-03 17:18:06 +00:00
|
|
|
/admin/kindboxes/{id}:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: This endpoint retrieves a specific kind box by admin
|
|
|
|
parameters:
|
|
|
|
- description: Kind box ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxparam.KindBoxGetResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
|
|
|
summary: Get a specific kind box by admin
|
|
|
|
tags:
|
|
|
|
- KindBox
|
2024-07-02 20:17:40 +00:00
|
|
|
/admin/kindboxes/assign-receiver-agent/{id}:
|
|
|
|
patch:
|
2024-07-01 17:13:28 +00:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
2024-07-02 20:17:40 +00:00
|
|
|
- description: KindBox ID
|
2024-07-01 17:13:28 +00:00
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
2024-07-02 20:17:40 +00:00
|
|
|
- description: Assign Receiver Agent Request Body
|
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxparam.AssignReceiverRequest'
|
2024-07-01 17:13:28 +00:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
2024-07-02 20:17:40 +00:00
|
|
|
"204":
|
|
|
|
description: No Content
|
2024-07-01 17:13:28 +00:00
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
2024-07-02 20:17:40 +00:00
|
|
|
summary: Admin assign receiver agent to kindbox
|
2024-07-01 17:13:28 +00:00
|
|
|
tags:
|
|
|
|
- KindBox
|
2024-05-18 14:45:29 +00:00
|
|
|
/admin/kindboxreqs:
|
2024-05-15 07:38:39 +00:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- description: page_number
|
|
|
|
in: query
|
|
|
|
name: page_number
|
|
|
|
type: integer
|
|
|
|
- description: page_size
|
|
|
|
in: query
|
|
|
|
name: page_size
|
|
|
|
type: integer
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.KindBoxReqGetAllResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Admin get all kindboxreq
|
2024-05-15 07:38:39 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- KindBoxReq
|
2024-07-03 17:18:06 +00:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- description: New kind box request details
|
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.KindBoxReqAddRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.KindBoxReqAddResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
|
|
|
summary: Add a new kind box request for a benefactor by admin
|
|
|
|
tags:
|
|
|
|
- KindBoxReq
|
2024-07-10 01:21:03 +00:00
|
|
|
/admin/kindboxreqs/{id}:
|
|
|
|
put:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- description: KindBoxReq ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
- description: Update KindBoxReq Request Body
|
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.KindBoxReqUpdateRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
|
|
|
description: No Content
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
|
|
|
summary: Update kind box request by admin
|
|
|
|
tags:
|
|
|
|
- KindBoxReq
|
2024-05-15 07:38:39 +00:00
|
|
|
/admin/kindboxreqs/accept-kind-box-req/{id}:
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: KindBoxReq ID
|
2024-05-15 07:38:39 +00:00
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: Accept KindBoxReq Request Body
|
2024-05-15 07:38:39 +00:00
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.KindBoxReqAcceptRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.KindBoxReqAcceptResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Accept kind box request by admin
|
2024-05-15 07:38:39 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- KindBoxReq
|
2024-05-15 07:38:39 +00:00
|
|
|
/admin/kindboxreqs/assign-sender-agent/{id}:
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: KindBoxReq ID
|
2024-05-15 07:38:39 +00:00
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: Assign Sender Agent Request Body
|
2024-05-15 07:38:39 +00:00
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.AssignSenderRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
2024-05-17 20:16:28 +00:00
|
|
|
$ref: '#/definitions/adminkindboxreqparam.AssignSenderResponse'
|
2024-05-15 07:38:39 +00:00
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Admin Assign Sender Agent to kindboxreq
|
2024-05-15 07:38:39 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- KindBoxReq
|
2024-07-03 17:18:06 +00:00
|
|
|
/admin/kindboxreqs/awaiting-delivery:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Retrieves a list of all awaiting KindBox requests with filtering,
|
|
|
|
sorting, and pagination options
|
|
|
|
parameters:
|
|
|
|
- description: Filter by ID
|
|
|
|
in: query
|
|
|
|
name: filter_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by benefactor ID
|
|
|
|
in: query
|
|
|
|
name: filter_benefactor_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by KindBox type
|
|
|
|
enum:
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
- 3
|
|
|
|
format: enum
|
|
|
|
in: query
|
|
|
|
name: filter_kind_box_type
|
|
|
|
type: integer
|
|
|
|
- description: Filter by count requested
|
|
|
|
in: query
|
|
|
|
name: filter_count_requested
|
|
|
|
type: integer
|
|
|
|
- description: Filter by count accepted
|
|
|
|
in: query
|
|
|
|
name: filter_count_accepted
|
|
|
|
type: integer
|
|
|
|
- description: Filter by deliver refer time ID
|
|
|
|
in: query
|
|
|
|
name: filter_deliver_refer_time_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by deliver refer date
|
|
|
|
format: date
|
|
|
|
in: query
|
|
|
|
name: filter_deliver_refer_date
|
|
|
|
type: string
|
|
|
|
- description: Filter by deliver address ID
|
|
|
|
in: query
|
|
|
|
name: filter_deliver_address_id
|
|
|
|
type: integer
|
|
|
|
- description: Page number
|
|
|
|
in: query
|
|
|
|
name: page_number
|
|
|
|
type: integer
|
|
|
|
- description: Page size
|
|
|
|
in: query
|
|
|
|
name: page_size
|
|
|
|
type: integer
|
|
|
|
- description: Sort by field
|
|
|
|
enum:
|
|
|
|
- id
|
|
|
|
- benefactor_id
|
|
|
|
- kind_box_type
|
|
|
|
- count_requested
|
|
|
|
- count_accepted
|
|
|
|
- deliver_refer_time_id
|
|
|
|
- deliver_refer_date
|
|
|
|
- deliver_address_id
|
|
|
|
in: query
|
|
|
|
name: sort_field
|
|
|
|
type: string
|
|
|
|
- description: Sort order
|
|
|
|
enum:
|
|
|
|
- asc
|
|
|
|
- desc
|
|
|
|
in: query
|
|
|
|
name: sort_direction
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.DeliveryAwaitingGetAllResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
|
|
|
summary: Get all awaiting delivery KindBox requests
|
|
|
|
tags:
|
|
|
|
- KindBoxReq
|
2024-06-10 22:54:16 +00:00
|
|
|
/admin/kindboxreqs/awaiting-delivery/{id}:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- description: KindBoxReq ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.DeliveryAwaitingGetResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
|
|
|
summary: Get a kind box reqs that is awaiting delivery by agent
|
|
|
|
tags:
|
|
|
|
- KindBoxReq
|
2024-05-15 07:38:39 +00:00
|
|
|
/admin/kindboxreqs/deliver-kind-box-req/{id}:
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: KindBoxReq ID
|
2024-05-15 07:38:39 +00:00
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.DeliverKindBoxReqResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Admin deliver a kindboxreq
|
2024-05-15 07:38:39 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- KindBoxReq
|
2024-05-15 07:38:39 +00:00
|
|
|
/admin/kindboxreqs/reject-kind-box-req/{id}:
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: KindBoxReq id
|
2024-05-15 07:38:39 +00:00
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: KindBoxReq Reject Request Body
|
2024-05-15 07:38:39 +00:00
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.KindBoxReqRejectRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminkindboxreqparam.KindBoxReqRejectResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Reject a kindboxreq by admin
|
2024-05-15 07:38:39 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- KindBoxReq
|
2024-06-10 14:49:13 +00:00
|
|
|
/admins/agents:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminserviceparam.GetAllAgentResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
|
|
|
summary: Get all agents by admin
|
|
|
|
tags:
|
|
|
|
- Admin
|
2024-05-15 07:38:39 +00:00
|
|
|
/admins/login-by-phone:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: Admin login request body
|
2024-05-15 07:38:39 +00:00
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminserviceparam.LoginWithPhoneNumberRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminserviceparam.LoginWithPhoneNumberResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: "Admin login by\tPhoneNumber"
|
2024-05-15 07:38:39 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- Admin
|
2024-05-15 07:38:39 +00:00
|
|
|
/admins/register:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: Admin Register Request Body
|
2024-05-15 07:38:39 +00:00
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminserviceparam.RegisterRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/adminserviceparam.RegisterResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
2024-05-17 20:16:28 +00:00
|
|
|
security:
|
|
|
|
- AuthBearerAdmin: []
|
|
|
|
summary: Register an admin by super-admin
|
2024-05-15 07:38:39 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- Admin
|
2024-07-03 17:18:06 +00:00
|
|
|
/benefactor/kindboxes:
|
2024-05-15 07:38:39 +00:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactorkindboxparam.KindBoxGetResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerBenefactor: []
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Get all kind boxes for a benefactor
|
2024-05-15 07:38:39 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- KindBox
|
2024-05-15 07:38:39 +00:00
|
|
|
/benefactor/kindboxes/{id}:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2024-05-17 20:16:28 +00:00
|
|
|
description: This endpoint retrieves a specific kind box associated with an
|
|
|
|
authenticated benefactor.
|
2024-05-15 07:38:39 +00:00
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: Kind box ID
|
2024-05-15 07:38:39 +00:00
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactorkindboxparam.KindBoxGetResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerBenefactor: []
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Get a specific kind box for a benefactor
|
2024-05-15 07:38:39 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- KindBox
|
2024-07-03 17:18:06 +00:00
|
|
|
/benefactor/kindboxes/{id}/emptying-requests:
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
|
|
|
- description: KindBox ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
- description: Request body
|
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactorkindboxparam.KindBoxRegisterEmptyingRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
|
|
|
description: No content
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerBenefactor: []
|
|
|
|
summary: Register a new emptying request for a kind box by benefactor
|
|
|
|
tags:
|
|
|
|
- Benefactor
|
2024-05-15 07:38:39 +00:00
|
|
|
/benefactor/kindboxreqs/:
|
2024-07-03 17:18:06 +00:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Retrieves a list of all KindBox requests with filtering, sorting,
|
|
|
|
and pagination options
|
|
|
|
parameters:
|
|
|
|
- description: Filter by ID
|
|
|
|
in: query
|
|
|
|
name: filter_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by benefactor ID
|
|
|
|
in: query
|
|
|
|
name: filter_benefactor_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by KindBox type
|
|
|
|
enum:
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
- 3
|
|
|
|
format: enum
|
|
|
|
in: query
|
|
|
|
name: filter_kind_box_type
|
|
|
|
type: integer
|
|
|
|
- description: Filter by KindBoxReq Status
|
|
|
|
enum:
|
|
|
|
- pending
|
|
|
|
- accepted
|
|
|
|
- assigned-sender-agent
|
|
|
|
- rejected
|
|
|
|
- delivered
|
|
|
|
in: query
|
|
|
|
name: filter_status
|
|
|
|
type: string
|
|
|
|
- description: Filter by count requested
|
|
|
|
in: query
|
|
|
|
name: filter_count_requested
|
|
|
|
type: integer
|
|
|
|
- description: Filter by count accepted
|
|
|
|
in: query
|
|
|
|
name: filter_count_accepted
|
|
|
|
type: integer
|
|
|
|
- description: Filter by deliver refer time ID
|
|
|
|
in: query
|
|
|
|
name: filter_deliver_refer_time_id
|
|
|
|
type: integer
|
|
|
|
- description: Filter by deliver refer date
|
|
|
|
format: date
|
|
|
|
in: query
|
|
|
|
name: filter_deliver_refer_date
|
|
|
|
type: string
|
|
|
|
- description: Filter by deliver address ID
|
|
|
|
in: query
|
|
|
|
name: filter_deliver_address_id
|
|
|
|
type: integer
|
|
|
|
- description: Page number
|
|
|
|
in: query
|
|
|
|
name: page_number
|
|
|
|
type: integer
|
|
|
|
- description: Page size
|
|
|
|
in: query
|
|
|
|
name: page_size
|
|
|
|
type: integer
|
|
|
|
- description: Sort by field
|
|
|
|
enum:
|
|
|
|
- id
|
|
|
|
- benefactor_id
|
|
|
|
- kind_box_type
|
|
|
|
- count_requested
|
|
|
|
- count_accepted
|
|
|
|
- deliver_refer_time_id
|
|
|
|
- deliver_refer_date
|
|
|
|
- deliver_address_id
|
|
|
|
in: query
|
|
|
|
name: sort_field
|
|
|
|
type: string
|
|
|
|
- description: Sort order
|
|
|
|
enum:
|
|
|
|
- asc
|
|
|
|
- desc
|
|
|
|
in: query
|
|
|
|
name: sort_direction
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactorkindboxreqparam.GetAllResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerBenefactor: []
|
|
|
|
summary: Get all KindBox requests
|
|
|
|
tags:
|
|
|
|
- KindBoxReq
|
2024-05-15 07:38:39 +00:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: New kind box request details
|
2024-05-15 07:38:39 +00:00
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactorkindboxreqparam.KindBoxReqAddRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactorkindboxreqparam.KindBoxReqAddResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerBenefactor: []
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Add a new kind box request for a benefactor
|
2024-05-15 07:38:39 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- KindBoxReq
|
2024-05-15 07:38:39 +00:00
|
|
|
/benefactor/kindboxreqs/{id}:
|
2024-05-31 14:49:04 +00:00
|
|
|
delete:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: This endpoint is used to delete benefactor's kindboxreq at pending
|
|
|
|
status
|
|
|
|
parameters:
|
|
|
|
- description: Kind box request ID
|
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactorkindboxreqparam.KindBoxReqDeleteResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerBenefactor: []
|
|
|
|
summary: delete kindboxreq by benefactor
|
|
|
|
tags:
|
|
|
|
- KindBoxReq
|
2024-05-15 07:38:39 +00:00
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: Kind box request ID
|
2024-05-15 07:38:39 +00:00
|
|
|
in: path
|
|
|
|
name: id
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactorkindboxreqparam.KindBoxReqGetResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
security:
|
|
|
|
- AuthBearerBenefactor: []
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Get a kind box request for a benefactor
|
2024-05-15 07:38:39 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- KindBoxReq
|
2024-05-14 13:07:09 +00:00
|
|
|
/benefactor/login-register:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2024-05-17 20:16:28 +00:00
|
|
|
description: This endpoint is used to authenticate an existing benefactor account
|
|
|
|
or register a new one.
|
2024-05-14 13:07:09 +00:00
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: Login or register request details
|
2024-05-14 13:07:09 +00:00
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactoreparam.LoginOrRegisterRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactoreparam.LoginOrRegisterResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Login or register a benefactor
|
2024-05-14 13:07:09 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- Benefactor
|
2024-05-14 13:07:09 +00:00
|
|
|
/benefactor/send-otp:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2024-05-17 20:16:28 +00:00
|
|
|
description: This endpoint sends an OTP to the benefactor's phone number for
|
|
|
|
verification purposes.
|
2024-05-14 13:07:09 +00:00
|
|
|
parameters:
|
2024-05-17 20:16:28 +00:00
|
|
|
- description: Send OTP request details
|
2024-05-14 13:07:09 +00:00
|
|
|
in: body
|
|
|
|
name: Request
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactoreparam.SendOtpRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/benefactoreparam.SendOtpResponse'
|
|
|
|
"400":
|
|
|
|
description: Bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
2024-05-17 20:16:28 +00:00
|
|
|
summary: Send OTP to benefactor
|
2024-05-14 13:07:09 +00:00
|
|
|
tags:
|
2024-05-17 20:16:28 +00:00
|
|
|
- Benefactor
|
2024-05-14 13:07:09 +00:00
|
|
|
securityDefinitions:
|
2024-05-15 07:38:39 +00:00
|
|
|
AuthBearerAdmin:
|
2024-05-17 20:16:28 +00:00
|
|
|
description: Type the word 'Bearer' followed by a space and Admin JWT token
|
2024-05-15 07:38:39 +00:00
|
|
|
in: header
|
2024-05-17 20:16:28 +00:00
|
|
|
name: Authorization
|
2024-05-15 07:38:39 +00:00
|
|
|
type: apiKey
|
|
|
|
AuthBearerBenefactor:
|
2024-05-17 20:16:28 +00:00
|
|
|
description: Type the word 'Bearer' followed by a space and Benefactor JWT token
|
2024-05-14 13:07:09 +00:00
|
|
|
in: header
|
2024-05-17 20:16:28 +00:00
|
|
|
name: Authorization
|
2024-05-14 13:07:09 +00:00
|
|
|
type: apiKey
|
|
|
|
swagger: "2.0"
|