diff --git a/forage-android/src/main/java/com/joinforage/forage/android/ForageSDKInterface.kt b/forage-android/src/main/java/com/joinforage/forage/android/ForageSDKInterface.kt index 5c12c695..d1467e61 100644 --- a/forage-android/src/main/java/com/joinforage/forage/android/ForageSDKInterface.kt +++ b/forage-android/src/main/java/com/joinforage/forage/android/ForageSDKInterface.kt @@ -166,22 +166,3 @@ data class DeferPaymentCaptureParams( val foragePinEditText: ForagePINEditText, val paymentRef: String ) - -/** - * A model that represents the parameters that Forage requires to collect a card PIN and defer - * the refund of the payment to the server. - * [PosDeferPaymentRefundParams] are passed to the - * [deferPaymentRefund][com.joinforage.forage.android.pos.ForageTerminalSDK.deferPaymentRefund] method. - * - * @property foragePinEditText A reference to a [ForagePINEditText] instance. - * [setForageConfig][com.joinforage.forage.android.ui.ForageElement.setForageConfig] must - * be called on the instance before it can be passed. - * @property paymentRef A unique string identifier for a previously created - * [`Payment`](https://docs.joinforage.app/reference/payments) in Forage's - * database, returned by the - * [Create a `Payment`](https://docs.joinforage.app/reference/create-a-payment) endpoint. - */ -data class PosDeferPaymentRefundParams( - val foragePinEditText: ForagePINEditText, - val paymentRef: String -) diff --git a/forage-android/src/main/java/com/joinforage/forage/android/pos/ForageTerminalSDK.kt b/forage-android/src/main/java/com/joinforage/forage/android/pos/ForageTerminalSDK.kt index 90944700..bb4a2a10 100644 --- a/forage-android/src/main/java/com/joinforage/forage/android/pos/ForageTerminalSDK.kt +++ b/forage-android/src/main/java/com/joinforage/forage/android/pos/ForageTerminalSDK.kt @@ -6,7 +6,6 @@ import com.joinforage.forage.android.DeferPaymentCaptureParams import com.joinforage.forage.android.ForageConfigNotSetException import com.joinforage.forage.android.ForageSDK import com.joinforage.forage.android.ForageSDKInterface -import com.joinforage.forage.android.PosDeferPaymentRefundParams import com.joinforage.forage.android.TokenizeEBTCardParams import com.joinforage.forage.android.VaultType import com.joinforage.forage.android.core.telemetry.CustomerPerceivedResponseMonitor diff --git a/forage-android/src/main/java/com/joinforage/forage/android/pos/PosMethodParams.kt b/forage-android/src/main/java/com/joinforage/forage/android/pos/PosMethodParams.kt index 9802e951..ca71a4a9 100644 --- a/forage-android/src/main/java/com/joinforage/forage/android/pos/PosMethodParams.kt +++ b/forage-android/src/main/java/com/joinforage/forage/android/pos/PosMethodParams.kt @@ -51,6 +51,25 @@ data class PosTokenizeCardParams( val reusable: Boolean = true ) +/** + * A model that represents the parameters that Forage requires to collect a card PIN and defer + * the refund of the payment to the server. + * [PosDeferPaymentRefundParams] are passed to the + * [deferPaymentRefund][com.joinforage.forage.android.pos.ForageTerminalSDK.deferPaymentRefund] method. + * + * @property foragePinEditText A reference to a [ForagePINEditText] instance. + * [setPosForageConfig][com.joinforage.forage.android.ui.ForageElement.setPosForageConfig] must + * be called on the instance before it can be passed. + * @property paymentRef A unique string identifier for a previously created + * [`Payment`](https://docs.joinforage.app/reference/payments) in Forage's + * database, returned by the + * [Create a `Payment`](https://docs.joinforage.app/reference/create-a-payment) endpoint. + */ +data class PosDeferPaymentRefundParams( + val foragePinEditText: ForagePINEditText, + val paymentRef: String +) + /** * A model that represents the parameters that [ForageTerminalSDK] requires to refund a Payment. * [PosRefundPaymentParams] are passed to the diff --git a/forage-android/src/test/java/com/joinforage/forage/android/pos/ForageTerminalSDKTest.kt b/forage-android/src/test/java/com/joinforage/forage/android/pos/ForageTerminalSDKTest.kt index 83b1c792..49b86534 100644 --- a/forage-android/src/test/java/com/joinforage/forage/android/pos/ForageTerminalSDKTest.kt +++ b/forage-android/src/test/java/com/joinforage/forage/android/pos/ForageTerminalSDKTest.kt @@ -4,7 +4,6 @@ import com.joinforage.forage.android.CapturePaymentParams import com.joinforage.forage.android.CheckBalanceParams import com.joinforage.forage.android.DeferPaymentCaptureParams import com.joinforage.forage.android.ForageSDK -import com.joinforage.forage.android.PosDeferPaymentRefundParams import com.joinforage.forage.android.TokenizeEBTCardParams import com.joinforage.forage.android.VaultType import com.joinforage.forage.android.core.telemetry.Log