com.numeralasia.payment.model.midtrans.MidChargeRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of payment-model Show documentation
Show all versions of payment-model Show documentation
Payment-Model
Model Class for representating an object for payment through midtrans, this is used for accessing model api if you use Numeral Asia payment service
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.numeralasia.payment.model.midtrans;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
public class MidChargeRequest {
@JsonProperty("transaction_details")
MidTransactionDetails transactionDetails ;
@JsonProperty("customer_details")
MidCustomerDetails customerDetails ;
@JsonProperty("item_details")
List itemDetails = new ArrayList<>();
@JsonProperty("custom_expiry")
CustomExpiry customExpiry ;
@JsonProperty("credit_card")
CreditCard creditCard = new CreditCard();
@JsonProperty("enabled_payments")
List enabledPayments = new ArrayList<>();
public MidChargeRequest() {
}
public MidChargeRequest(MidTransactionDetails transactionDetails, MidCustomerDetails customerDetails) {
this.transactionDetails = transactionDetails ;
this.customerDetails = customerDetails ;
}
public MidChargeRequest(MidTransactionDetails transactionDetails, List itemDetails, MidCustomerDetails customerDetails) {
this.transactionDetails = transactionDetails ;
this.customerDetails = customerDetails ;
this.itemDetails = itemDetails ;
}
}