All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.numeralasia.payment.model.midtrans.MidChargeRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.0.49
Show newest version
//
// 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 ;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy