-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathRavePayInitializer.java
More file actions
264 lines (210 loc) · 6.43 KB
/
RavePayInitializer.java
File metadata and controls
264 lines (210 loc) · 6.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
package com.flutterwave.raveandroid;
import com.flutterwave.raveandroid.rave_java_commons.RaveConstants;
import org.parceler.Parcel;
import java.util.ArrayList;
/**
* Created by hamzafetuga on 21/07/2017.
*/
@Parcel
public class RavePayInitializer {
private final ArrayList<Integer> orderedPaymentTypesList = new ArrayList<>();
String phoneNumber = "";
String email;
double amount;
String publicKey;
String encryptionKey;
String txRef;
String narration;
String currency;
String country;
String fName;
String meta;
String subAccounts;
String payment_plan;
int theme;
boolean staging = true;
boolean isPreAuth = false;
boolean displayFee = true;
boolean showStagingLabel;
boolean isPermanent;
int frequency;
int duration;
private boolean isPhoneEditable = true;
private boolean saveCardFeatureAllowed = true;
private boolean usePhoneAndEmailSuppliedToSaveCards = true;
public RavePayInitializer(String email, double amount, String publicKey,
String encryptionKey, String txRef, String narration,
String currency, String country, String fullName, int theme, String phoneNumber,
boolean isPhoneEditable, boolean saveCardFeatureAllowed, boolean usePhoneAndEmailSuppliedToSaveCards,
boolean isPermanent, int duration, int frequency,
boolean staging, String meta, String subAccounts, String payment_plan, boolean isPreAuth,
boolean showStagingLabel, boolean displayFee, ArrayList<Integer> orderedPaymentTypesList) {
this.email = email;
this.amount = amount;
this.publicKey = publicKey;
this.encryptionKey = encryptionKey;
this.txRef = txRef;
this.narration = narration;
this.currency = currency;
this.country = country;
this.fName = fName;
this.isPermanent = isPermanent;
this.duration = duration;
this.frequency = frequency;
this.theme = theme;
this.staging = staging;
this.meta = meta;
this.subAccounts = subAccounts;
this.payment_plan = payment_plan;
this.isPreAuth = isPreAuth;
this.phoneNumber = phoneNumber;
this.isPhoneEditable = isPhoneEditable;
this.saveCardFeatureAllowed = saveCardFeatureAllowed;
this.usePhoneAndEmailSuppliedToSaveCards = usePhoneAndEmailSuppliedToSaveCards;
this.showStagingLabel = showStagingLabel;
this.displayFee = displayFee;
if (!orderedPaymentTypesList.isEmpty())
this.orderedPaymentTypesList.addAll(orderedPaymentTypesList);
else this.orderedPaymentTypesList.add(RaveConstants.PAYMENT_TYPE_CARD);
}
public RavePayInitializer() {
}
public boolean getShowStagingLabel() {
return showStagingLabel;
}
public void showStagingLabel(boolean showStagingLabel) {
this.showStagingLabel = showStagingLabel;
}
public String getMeta() {
return meta;
}
public void setMeta(String meta) {
this.meta = meta;
}
public String getSubAccount() {
return subAccounts;
}
public void setSubAccount(String subAccounts) {
this.subAccounts = subAccounts;
}
public boolean isStaging() {
return staging;
}
public void setStaging(boolean staging) {
this.staging = staging;
}
public ArrayList<Integer> getOrderedPaymentTypesList() {
return orderedPaymentTypesList;
}
public int getTheme() {
return theme;
}
public void setTheme(int theme) {
this.theme = theme;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public double getAmount() {
return amount;
}
public void setAmount(double amount) {
this.amount = amount;
}
public String getPublicKey() {
return publicKey;
}
public void setPublicKey(String publicKey) {
this.publicKey = publicKey;
}
public String getEncryptionKey() {
return encryptionKey;
}
public void setEncryptionKey(String encryptionKey) {
this.encryptionKey = encryptionKey;
}
public String getTxRef() {
return txRef;
}
public void setTxRef(String txRef) {
this.txRef = txRef;
}
public String getNarration() {
return narration;
}
public void setNarration(String narration) {
this.narration = narration;
}
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getfName() {
return fName;
}
public void setfName(String fName) {
this.fName = fName;
}
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public String getPayment_plan() {
return payment_plan;
}
public void setPayment_plan(String payment_plan) {
this.payment_plan = payment_plan;
}
public void setPreAuth(boolean isPreAuth) {
this.isPreAuth = isPreAuth;
}
public boolean getIsPreAuth() {
return isPreAuth;
}
public boolean getIsDisplayFee() {
return displayFee;
}
public void setIsDisplayFee(boolean displayFee) {
this.displayFee = displayFee;
}
public boolean getIsPhoneEditable() {
return isPhoneEditable;
}
public boolean getIsPermanent() {
return isPermanent;
}
public void setPermanent(boolean permanent) {
this.isPermanent = permanent;
}
public int getFrequency() {
return frequency;
}
public void setFrequency(int frequency) {
this.frequency = frequency;
}
public int getDuration() {
return duration;
}
public void setDuration(int duration) {
this.duration = duration;
}
public boolean isSaveCardFeatureAllowed() {
return saveCardFeatureAllowed;
}
public boolean isUsePhoneAndEmailSuppliedToSaveCards() {
return usePhoneAndEmailSuppliedToSaveCards;
}
}