Skip to content

Commit

Permalink
Merge pull request #267 from mercadopago/feature/add-address-fields
Browse files Browse the repository at this point in the history
Add Point of Interaction and Address Object
  • Loading branch information
brunacamposxx authored Oct 30, 2023
2 parents a3ecb32 + 48f33ea commit fdd5b35
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.mercadopago.client.payment;

import lombok.Builder;
import lombok.Getter;

@Getter
@Builder
public class PaymentInvoicePeriodRequest {
/** Period. */
private int period;
/** Type. */
private String type;
}
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 PaymentPaymentReferenceRequest {
/** Payment ID reference. */
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;
/** Transaction data. */
private final PaymentTransactionDataRequest transactionData;

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

import lombok.Builder;
import lombok.Getter;

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

import lombok.Builder;
import lombok.Getter;

@Getter
@Builder
public class PaymentTransactionDataRequest {
/** First time use. */
private boolean firstTimeUse;
/** Subscription sequence. */
private PaymentSubscriptionSequenceRequest subscriptionSequence;
/** Subscription id. */
private String subscriptionId;
/** Invoice period. */
private PaymentInvoicePeriodRequest invoicePeriod;
/** Payment reference. */
private PaymentPaymentReferenceRequest paymentReference;
/** Billing date. */
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. */
private int period;

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

import lombok.Getter;

@Getter
public class PaymentPaymentReference {
/** Payment ID reference. */
private 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
Expand Up @@ -25,4 +25,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 fdd5b35

Please sign in to comment.