Skip to content

Commit 7ea53bb

Browse files
authored
start design
1 parent 032ea02 commit 7ea53bb

23 files changed

Lines changed: 856 additions & 0 deletions

javaSDK/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.flutterwave</groupId>
8+
<artifactId>javaSDK</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
<properties>
12+
<maven.compiler.source>8</maven.compiler.source>
13+
<maven.compiler.target>8</maven.compiler.target>
14+
</properties>
15+
16+
</project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.flutterwave.bean;
2+
3+
public class Authorization {
4+
5+
private String mode;
6+
private String endpoint;
7+
private String transfer_reference;
8+
private String transfer_account;
9+
private String transfer_bank;
10+
private String account_expiration;
11+
private String transfer_note;
12+
private String transfer_amount;
13+
private String redirect_url;
14+
private String redirect;
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.flutterwave.bean;
2+
3+
public class Card {
4+
5+
private String first_6digits;
6+
private String last_4digits;
7+
private String issuer;
8+
private String country;
9+
private String type;
10+
private String expiry;
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.flutterwave.bean;
2+
3+
public class Customer {
4+
5+
private int id;
6+
private String phone_number;
7+
private String name;
8+
private String email;
9+
private String created_at;
10+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.flutterwave.bean;
2+
3+
import java.math.BigDecimal;
4+
5+
public class Data {
6+
7+
private int id;
8+
private String tx_ref;
9+
private String flw_ref;
10+
private String device_fingerprint;
11+
private BigDecimal amount;
12+
private BigDecimal charged_amount;
13+
private BigDecimal app_fee;
14+
private BigDecimal merchant_fee;
15+
private String processor_response;
16+
private String auth_model;
17+
private String currency;
18+
private String ip;
19+
private String narration;
20+
private String status;
21+
private String auth_url;
22+
private String payment_type;
23+
private String fraud_status;
24+
private String charge_type;
25+
private String created_at;
26+
private int account_id;
27+
private Customer customer;
28+
private Card card;
29+
private Meta Meta;
30+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.flutterwave.bean;
2+
3+
public class Meta {
4+
5+
private Authorization authorization;
6+
private String flightID;
7+
}
Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,278 @@
1+
package com.flutterwave.bean;
2+
3+
import java.math.BigDecimal;
4+
5+
public class RequestBean {
6+
7+
private String tx_ref;
8+
private BigDecimal amount;
9+
private String account_bank;
10+
private String account_number;
11+
private String currency;
12+
private String email;
13+
private String phone_number;
14+
private String fullname;
15+
private String client_ip;
16+
private String redirect_url;
17+
private String device_fingerprint;
18+
private String billing_address;
19+
private String billing_city;
20+
private String billing_zip;
21+
private String billing_state;
22+
private String billing_country;
23+
private String shipping_name;
24+
private String shipping_address;
25+
private String shipping_city;
26+
private String shipping_zip;
27+
private String shipping_state;
28+
private String shipping_country;
29+
private String card_number;
30+
private String cvv;
31+
private String expiry_month;
32+
private String billing_name;
33+
private String debit_currency;
34+
private String expiry_year;
35+
private Meta meta;
36+
private int is_permanent;
37+
38+
public String getTx_ref() {
39+
return tx_ref;
40+
}
41+
42+
public void setTx_ref(String tx_ref) {
43+
this.tx_ref = tx_ref;
44+
}
45+
46+
47+
public String getAccount_bank() {
48+
return account_bank;
49+
}
50+
51+
public void setAccount_bank(String account_bank) {
52+
this.account_bank = account_bank;
53+
}
54+
55+
public String getAccount_number() {
56+
return account_number;
57+
}
58+
59+
public void setAccount_number(String account_number) {
60+
this.account_number = account_number;
61+
}
62+
63+
public String getCurrency() {
64+
return currency;
65+
}
66+
67+
public void setCurrency(String currency) {
68+
this.currency = currency;
69+
}
70+
71+
public String getEmail() {
72+
return email;
73+
}
74+
75+
public void setEmail(String email) {
76+
this.email = email;
77+
}
78+
79+
public String getPhone_number() {
80+
return phone_number;
81+
}
82+
83+
public void setPhone_number(String phone_number) {
84+
this.phone_number = phone_number;
85+
}
86+
87+
public String getFullname() {
88+
return fullname;
89+
}
90+
91+
public void setFullname(String fullname) {
92+
this.fullname = fullname;
93+
}
94+
95+
public String getClient_ip() {
96+
return client_ip;
97+
}
98+
99+
public void setClient_ip(String client_ip) {
100+
this.client_ip = client_ip;
101+
}
102+
103+
public String getRedirect_url() {
104+
return redirect_url;
105+
}
106+
107+
public void setRedirect_url(String redirect_url) {
108+
this.redirect_url = redirect_url;
109+
}
110+
111+
public String getDevice_fingerprint() {
112+
return device_fingerprint;
113+
}
114+
115+
public void setDevice_fingerprint(String device_fingerprint) {
116+
this.device_fingerprint = device_fingerprint;
117+
}
118+
119+
public String getBilling_address() {
120+
return billing_address;
121+
}
122+
123+
public void setBilling_address(String billing_address) {
124+
this.billing_address = billing_address;
125+
}
126+
127+
public String getBilling_city() {
128+
return billing_city;
129+
}
130+
131+
public void setBilling_city(String billing_city) {
132+
this.billing_city = billing_city;
133+
}
134+
135+
public String getBilling_zip() {
136+
return billing_zip;
137+
}
138+
139+
public void setBilling_zip(String billing_zip) {
140+
this.billing_zip = billing_zip;
141+
}
142+
143+
public String getBilling_state() {
144+
return billing_state;
145+
}
146+
147+
public void setBilling_state(String billing_state) {
148+
this.billing_state = billing_state;
149+
}
150+
151+
public String getBilling_country() {
152+
return billing_country;
153+
}
154+
155+
public void setBilling_country(String billing_country) {
156+
this.billing_country = billing_country;
157+
}
158+
159+
public String getShipping_name() {
160+
return shipping_name;
161+
}
162+
163+
public void setShipping_name(String shipping_name) {
164+
this.shipping_name = shipping_name;
165+
}
166+
167+
public String getShipping_address() {
168+
return shipping_address;
169+
}
170+
171+
public void setShipping_address(String shipping_address) {
172+
this.shipping_address = shipping_address;
173+
}
174+
175+
public String getShipping_city() {
176+
return shipping_city;
177+
}
178+
179+
public void setShipping_city(String shipping_city) {
180+
this.shipping_city = shipping_city;
181+
}
182+
183+
public String getShipping_zip() {
184+
return shipping_zip;
185+
}
186+
187+
public void setShipping_zip(String shipping_zip) {
188+
this.shipping_zip = shipping_zip;
189+
}
190+
191+
public String getShipping_state() {
192+
return shipping_state;
193+
}
194+
195+
public void setShipping_state(String shipping_state) {
196+
this.shipping_state = shipping_state;
197+
}
198+
199+
public String getShipping_country() {
200+
return shipping_country;
201+
}
202+
203+
public void setShipping_country(String shipping_country) {
204+
this.shipping_country = shipping_country;
205+
}
206+
207+
public String getCard_number() {
208+
return card_number;
209+
}
210+
211+
public void setCard_number(String card_number) {
212+
this.card_number = card_number;
213+
}
214+
215+
public String getCvv() {
216+
return cvv;
217+
}
218+
219+
public void setCvv(String cvv) {
220+
this.cvv = cvv;
221+
}
222+
223+
public String getExpiry_month() {
224+
return expiry_month;
225+
}
226+
227+
public void setExpiry_month(String expiry_month) {
228+
this.expiry_month = expiry_month;
229+
}
230+
231+
public String getExpiry_year() {
232+
return expiry_year;
233+
}
234+
235+
public void setExpiry_year(String expiry_year) {
236+
this.expiry_year = expiry_year;
237+
}
238+
239+
public Meta getMeta() {
240+
return meta;
241+
}
242+
243+
public void setMeta(Meta meta) {
244+
this.meta = meta;
245+
}
246+
247+
public int getIs_permanent() {
248+
return is_permanent;
249+
}
250+
251+
public void setIs_permanent(int is_permanent) {
252+
this.is_permanent = is_permanent;
253+
}
254+
255+
public BigDecimal getAmount() {
256+
return amount;
257+
}
258+
259+
public void setAmount(BigDecimal amount) {
260+
this.amount = amount;
261+
}
262+
263+
public String getBilling_name() {
264+
return billing_name;
265+
}
266+
267+
public void setBilling_name(String billing_name) {
268+
this.billing_name = billing_name;
269+
}
270+
271+
public String getDebit_currency() {
272+
return debit_currency;
273+
}
274+
275+
public void setDebit_currency(String debit_currency) {
276+
this.debit_currency = debit_currency;
277+
}
278+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.flutterwave.bean;
2+
3+
public class ResponseBean {
4+
5+
private boolean status;
6+
private String message;
7+
private Data data;
8+
}

0 commit comments

Comments
 (0)