Skip to content

Commit 9bb80da

Browse files
committed
updates
1 parent d228a1f commit 9bb80da

109 files changed

Lines changed: 699 additions & 14 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/.DS_Store

0 Bytes
Binary file not shown.

src/main/.DS_Store

0 Bytes
Binary file not shown.

src/main/java/.DS_Store

0 Bytes
Binary file not shown.

src/main/java/com/.DS_Store

0 Bytes
Binary file not shown.
-6 KB
Binary file not shown.
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+
import lombok.Getter;
4+
import lombok.NoArgsConstructor;
5+
import lombok.Setter;
6+
7+
@Getter
8+
@Setter
9+
@NoArgsConstructor
10+
public class Account {
11+
12+
private String account_number;
13+
private String bank_code;
14+
private String account_name;
15+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package com.flutterwave.bean;
2+
3+
import lombok.Getter;
4+
import lombok.NoArgsConstructor;
5+
import lombok.Setter;
6+
7+
import java.math.BigDecimal;
8+
9+
@Getter
10+
@Setter
11+
@NoArgsConstructor
12+
public class BankAccountRequest extends Shared{
13+
14+
public BankAccountRequest(String tx_ref, BigDecimal amount, String account_bank, String account_number,
15+
String currency, String email, String phone_number, String fullname){
16+
17+
this.setTx_ref(tx_ref);
18+
this.setAmount(amount);
19+
this.setAccount_bank(account_bank);
20+
this.setAccount_number(account_number);
21+
this.setCurrency(currency);
22+
this.setEmail(email);
23+
this.setPhone_number(phone_number);
24+
this.setFullname(fullname);
25+
26+
}
27+
28+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package com.flutterwave.bean;
2+
3+
import lombok.Getter;
4+
import lombok.NoArgsConstructor;
5+
import lombok.Setter;
6+
7+
import java.math.BigDecimal;
8+
import java.util.Optional;
9+
10+
/**
11+
* @author Cleopatra Douglas
12+
*/
13+
@Getter
14+
@Setter
15+
@NoArgsConstructor
16+
public class GhanaMobileMoneyRequestRequest extends MobileMoneyRequest {
17+
18+
public GhanaMobileMoneyRequestRequest(String tx_ref, BigDecimal amount, String currency, String voucher, String network,
19+
String email, String phone_number, String fullname, String client_ip,
20+
String device_fingerprint, Optional<Meta> meta){
21+
this.setTx_ref(tx_ref);
22+
this.setAmount(amount);
23+
this.setCurrency(currency);
24+
this.setVoucher(voucher);
25+
this.setNetwork(network);
26+
this.setEmail(email);
27+
this.setPhone_number(phone_number);
28+
this.setFullname(fullname);
29+
this.setClient_ip(client_ip);
30+
this.setDevice_fingerprint(device_fingerprint);
31+
meta.ifPresent(this::setMeta);
32+
33+
}
34+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.flutterwave.bean;
2+
3+
import lombok.Getter;
4+
import lombok.NoArgsConstructor;
5+
import lombok.Setter;
6+
7+
@Getter
8+
@Setter
9+
@NoArgsConstructor
10+
public class Meta {
11+
12+
private String flightID;
13+
private String metaname;
14+
private String metavalue;
15+
private String name;
16+
private String tools;
17+
private String sideNote;
18+
private Authorization authorization;
19+
private String values;
20+
private String random;
21+
private PageInfo page_info;
22+
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.flutterwave.bean;
2+
3+
import lombok.Getter;
4+
import lombok.NoArgsConstructor;
5+
import lombok.Setter;
6+
7+
import java.math.BigDecimal;
8+
9+
@Getter
10+
@Setter
11+
@NoArgsConstructor
12+
public class MpesaRequest extends MobileMoneyRequest {
13+
14+
public MpesaRequest(String tx_ref, BigDecimal amount, String currency, String email, String phone_number, String fullname){
15+
this.setTx_ref(tx_ref);
16+
this.setAmount(amount);
17+
this.setCurrency(currency);
18+
this.setEmail(email);
19+
this.setPhone_number(phone_number);
20+
this.setFullname(fullname);
21+
}
22+
23+
}

0 commit comments

Comments
 (0)