Skip to content

Commit

Permalink
add Point of Interaction fields
Browse files Browse the repository at this point in the history
  • Loading branch information
brunacamposxx committed Oct 23, 2023
1 parent 630a474 commit 12286b5
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.mercadopago.client.payment;

import lombok.Getter;
import lombok.experimental.SuperBuilder;

@Getter
@SuperBuilder
public class PaymentInvoicePeriodRequest {
private int period;
private String type;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.mercadopago.client.payment;

import lombok.Builder;
import lombok.Getter;

@Getter
@Builder
public class PaymentPaymentReferenceRequest {
private String id;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
@Getter
@Builder
public class PaymentPointOfInteractionRequest {

/** Linked to information. */
private final String linkedTo;

/** Type. */
private final String type;

private final PaymentTransactionDataRequest transactionData;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.mercadopago.client.payment;

import lombok.Builder;
import lombok.Getter;

@Getter
@Builder
public class PaymentSubscriptionSequenceRequest {
private int number;
private int total;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.mercadopago.client.payment;

import lombok.Builder;
import lombok.Getter;

@Getter
@Builder
public class PaymentTransactionDataRequest {
private boolean firstTimeUse;
private PaymentSubscriptionSequenceRequest subscriptionSequence;
private String subscriptionId;
private PaymentInvoicePeriodRequest invoicePeriod;
private PaymentPaymentReferenceRequest paymentReference;
private String billingDate;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.mercadopago.resources.payment;

import lombok.Getter;

@Getter
public class PaymentInvoicePeriod {

/** Period. */
public int period;

/** Type. */
public String type;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.mercadopago.resources.payment;

public class PaymentPaymentReference {
public String id;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.mercadopago.resources.payment;

import lombok.Getter;

@Getter
public class PaymentSubscriptionSequence {
/** Number. */
private int number;

/** Total. */
private int total;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.mercadopago.resources.payment;

import com.mercadopago.client.payment.PaymentSubscriptionSequenceRequest;
import lombok.Getter;

/** PaymentTransactionData class. */
Expand All @@ -25,4 +26,22 @@ public class PaymentTransactionData {

/** Ticket Url. */
private String ticketUrl;

/** First time use. */
private boolean firstTimeUse;

/** Subscription sequence. */
private PaymentSubscriptionSequence subscriptionSequence;

/** Subscription id. */
private String subscriptionId;

/** Invoice period. */
private PaymentInvoicePeriod invoicePeriod;

/** Payment reference. */
private PaymentPaymentReference paymentReference;

/** Billing date. */
private String billingDate;
}

0 comments on commit 12286b5

Please sign in to comment.