Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-mobile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
G
beasy-mobile
Commits
69fa0ea7
Commit
69fa0ea7
authored
Sep 06, 2025
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: api and types for the payment feature
parent
9f4890e5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
api.ts
src/features/pay/api.ts
+6
-0
types.ts
src/features/pay/types.ts
+36
-0
No files found.
src/features/pay/api.ts
0 → 100644
View file @
69fa0ea7
import
{
axiosInstance
}
from
"@/axios"
;
import
type
{
DjangoPaginated
,
PaymentType
}
from
"./types"
;
export
const
getPaymentTypes
=
()
=>
{
return
axiosInstance
.
get
<
DjangoPaginated
<
Record
<
string
,
PaymentType
>>>
(
"/operateur/"
);
};
src/features/pay/types.ts
0 → 100644
View file @
69fa0ea7
export
type
PaymentTypeCode
=
"OM"
|
"FLOOZ"
|
"MTN"
|
"WAVE"
|
"CB"
;
export
interface
PaymentType
{
reference
:
number
;
nom
:
string
;
description
:
string
;
code
:
PaymentTypeCode
;
etat
:
boolean
;
type_operateur
:
string
;
}
export
interface
DjangoPaginated
<
T
>
{
count
:
number
;
next
:
string
|
null
;
previous
:
string
|
null
;
results
:
T
;
}
export
interface
Merchant
{
marchand_id
:
string
;
nom
:
string
;
code
:
string
;
adresse
:
string
;
url_succes
:
string
;
url_echec
:
string
;
entreprise
:
number
;
user
:
number
;
}
export
interface
IuserInformations
{
username
:
string
;
email
:
string
;
first_name
:
string
;
last_name
:
string
;
marchand
:
Merchant
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment