Skip to content

Commit

Permalink
Merge pull request #57 from PaystackOSS/feat-terminal
Browse files Browse the repository at this point in the history
Chore: Clean up
  • Loading branch information
damilola-paystack authored Jan 24, 2024
2 parents 72fba90 + eeaf0ba commit 14aee15
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 23 deletions.
9 changes: 3 additions & 6 deletions dist/doc/guides/terminal-flutter/create-models.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
const paystack_intent_response = `
// PaystackIntentResponse.kt
const paystack_intent_response = `// PaystackIntentResponse.kt
data class PaystackIntentResponse (
val intentKey: String,
val intentResponseCode: Int,
val intentResponse: TerminalResponse
)`

const terminal_response = `
// TerminalResponse.kt
const terminal_response = `// TerminalResponse.kt
data class TerminalResponse(
val statusCode: String,
val message: String,
val data: String
)`

const transaction_request = `
// TransactionRequest.kt
const transaction_request = `// TransactionRequest.kt
data class TransactionRequest(
val amount: Int,
val offlineReference: String?,
Expand Down
12 changes: 4 additions & 8 deletions dist/doc/guides/terminal-react-native/create-models.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const paystack_intent_response = `
// PaystackIntentResponse.java
const paystack_intent_response = `// PaystackIntentResponse.java
public class PaystackIntentResponse {
private final String intentkey;
private final int intentResponseCode;
Expand All @@ -24,8 +23,7 @@ public class PaystackIntentResponse {
}
}`

const terminal_response = `
// TerminalResponse.java
const terminal_response = `// TerminalResponse.java
public class TerminalResponse {
private final String statusCode;
private final String message;
Expand All @@ -50,8 +48,7 @@ public class TerminalResponse {
}
}`

const transaction_request = `
// TransactionRequest.java
const transaction_request = `// TransactionRequest.java
import java.util.Map;
public class TransactionRequest {
Expand All @@ -70,8 +67,7 @@ public class TransactionRequest {
}
}`

const transaction_response = `
// TransactionResponse.java
const transaction_response = `// TransactionResponse.java
import com.google.gson.annotations.SerializedName;
public class TransactionResponse {
Expand Down
1 change: 0 additions & 1 deletion dist/doc/guides/terminal-react-native/use-module/usage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const js = `const onPress = async () => {
PaystackModule.makePayment(3000, transactionReference => {
console.log('transaction ref: ', transactionReference);
});
};`

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// PaystackIntentResponse.kt
data class PaystackIntentResponse (
val intentKey: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// TerminalResponse.kt
data class TerminalResponse(
val statusCode: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// TransactionRequest.kt
data class TransactionRequest(
val amount: Int,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// PaystackIntentResponse.java
public class PaystackIntentResponse {
private final String intentkey;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// TerminalResponse.java
public class TerminalResponse {
private final String statusCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// TransactionRequest.java
import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// TransactionResponse.java
import com.google.gson.annotations.SerializedName;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const onPress = async () => {
PaystackModule.makePayment(3000, transactionReference => {
console.log('transaction ref: ', transactionReference);

});
};

0 comments on commit 14aee15

Please sign in to comment.