From 2aeb5851fa53e33690c3671d9ed4506396d27897 Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Thu, 18 Apr 2024 11:55:16 -0300 Subject: [PATCH 1/6] ajust version --- .gitignore | 4 ++++ README.md | 2 +- pom.xml | 2 +- .../PaymentAdditionalInfoItemRequest.java | 2 ++ .../PreferenceCategoryDescriptorRequest.java | 4 ++++ .../payment/PaymentAdditionalInfoItem.java | 24 +++++++++++++++++++ .../PreferenceCategoryDescriptor.java | 4 ++++ 7 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java create mode 100644 src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java diff --git a/.gitignore b/.gitignore index 7bb6ae36..18464855 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,7 @@ gradle-app.setting ### Gradle Patch ### # Java heap dump *.hprof + +### Docs +*.html +docs/ diff --git a/README.md b/README.md index c2ce5fc0..8ec0eaf5 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ already. com.mercadopago sdk-java - 2.1.20 + 2.1.21 ``` diff --git a/pom.xml b/pom.xml index 14f90a1b..085809eb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.mercadopago sdk-java - 2.1.20 + 2.1.21 jar Mercadopago SDK diff --git a/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java b/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java new file mode 100644 index 00000000..ef78ffe5 --- /dev/null +++ b/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java @@ -0,0 +1,2 @@ +package com.mercadopago.client.payment;public class PaymentAdditionalInfoItemRequest { +} diff --git a/src/main/java/com/mercadopago/client/preference/PreferenceCategoryDescriptorRequest.java b/src/main/java/com/mercadopago/client/preference/PreferenceCategoryDescriptorRequest.java index 925ca171..4c85a8e4 100644 --- a/src/main/java/com/mercadopago/client/preference/PreferenceCategoryDescriptorRequest.java +++ b/src/main/java/com/mercadopago/client/preference/PreferenceCategoryDescriptorRequest.java @@ -1,5 +1,6 @@ package com.mercadopago.client.preference; +import java.time.OffsetDateTime; import lombok.Builder; import lombok.Getter; @@ -12,4 +13,7 @@ public class PreferenceCategoryDescriptorRequest { /** Flight information. */ private final PreferenceRouteRequest route; + + /** Date of event */ + private final OffsetDateTime eventDate; } diff --git a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java new file mode 100644 index 00000000..756309f3 --- /dev/null +++ b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java @@ -0,0 +1,24 @@ +package com.mercadopago.resources.payment; + +import com.mercadopago.resources.common.Address; +import java.time.OffsetDateTime; +import lombok.Getter; + +/** PaymentAdditionalInfoPayer class. */ +@Getter +public class PaymentAdditionalInfoPayer { + /** Payer's name. */ + private String firstName; + + /** Payer's last name. */ + private String lastName; + + /** Payer's phone. */ + private PaymentPhone phone; + + /** Payer's address. */ + private Address address; + + /** Date of registration of the payer on your site. */ + private OffsetDateTime registrationDate; +} diff --git a/src/main/java/com/mercadopago/resources/preference/PreferenceCategoryDescriptor.java b/src/main/java/com/mercadopago/resources/preference/PreferenceCategoryDescriptor.java index ad4e34ca..f08ae5fd 100644 --- a/src/main/java/com/mercadopago/resources/preference/PreferenceCategoryDescriptor.java +++ b/src/main/java/com/mercadopago/resources/preference/PreferenceCategoryDescriptor.java @@ -1,5 +1,6 @@ package com.mercadopago.resources.preference; +import java.time.OffsetDateTime; import lombok.Getter; /** Item information related to the category. */ @@ -10,4 +11,7 @@ public class PreferenceCategoryDescriptor { /** Flight information. */ private PreferenceRoute route; + + /** Date of event */ + private OffsetDateTime eventDate; } From 62150e37c5025d71de8372cb4d4294ecb5f3f22b Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Thu, 18 Apr 2024 11:57:08 -0300 Subject: [PATCH 2/6] ajust event data payment --- .../PaymentAdditionalInfoItemRequest.java | 18 +++++++++++++++++- .../payment/PaymentAdditionalInfoRequest.java | 2 +- .../payment/PaymentAdditionalInfo.java | 3 ++- .../payment/PaymentAdditionalInfoItem.java | 18 ++++-------------- 4 files changed, 24 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java b/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java index ef78ffe5..96cdcb0c 100644 --- a/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java +++ b/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java @@ -1,2 +1,18 @@ -package com.mercadopago.client.payment;public class PaymentAdditionalInfoItemRequest { +package com.mercadopago.client.payment; + + +import java.time.OffsetDateTime; +import lombok.Builder; +import lombok.Getter; + +@Getter +@Builder +public class PaymentAdditionalInfoItemRequest extends PaymentItemRequest { + + /** + * Date of event + */ + private OffsetDateTime eventDate; } + + diff --git a/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoRequest.java b/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoRequest.java index d3a64faf..f5694b2c 100644 --- a/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoRequest.java +++ b/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoRequest.java @@ -12,7 +12,7 @@ public class PaymentAdditionalInfoRequest { private final String ipAddress; /** Items. */ - private final List items; + private final List items; /** Payer. */ private final PaymentAdditionalInfoPayerRequest payer; diff --git a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java index 059afc10..a55d0402 100644 --- a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java +++ b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java @@ -2,6 +2,7 @@ import java.util.List; import lombok.Getter; +import lombok.Setter; /** PaymentAdditionalInfo class. */ @Getter @@ -10,7 +11,7 @@ public class PaymentAdditionalInfo { private String ipAddress; /** List of items to be paid. */ - private List items; + private List items; /** Payer's information. */ private PaymentAdditionalInfoPayer payer; diff --git a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java index 756309f3..352a1bf3 100644 --- a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java +++ b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java @@ -4,21 +4,11 @@ import java.time.OffsetDateTime; import lombok.Getter; -/** PaymentAdditionalInfoPayer class. */ +/** PaymentAdditionalInfoIten class. */ @Getter -public class PaymentAdditionalInfoPayer { - /** Payer's name. */ - private String firstName; +public class PaymentAdditionalInfoItem extends PaymentItem { - /** Payer's last name. */ - private String lastName; - /** Payer's phone. */ - private PaymentPhone phone; - - /** Payer's address. */ - private Address address; - - /** Date of registration of the payer on your site. */ - private OffsetDateTime registrationDate; + /** Date of event */ + private OffsetDateTime eventDate; } From 0209ac232d37d1445e5b7504da1d4c8fb29127ce Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Thu, 18 Apr 2024 12:00:29 -0300 Subject: [PATCH 3/6] ajust imports --- .../com/mercadopago/resources/payment/PaymentAdditionalInfo.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java index a55d0402..96e65667 100644 --- a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java +++ b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java @@ -2,7 +2,6 @@ import java.util.List; import lombok.Getter; -import lombok.Setter; /** PaymentAdditionalInfo class. */ @Getter From 3f35969b2e13a3f76b8f1f433b6aa13adaa0b601 Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Thu, 18 Apr 2024 12:23:04 -0300 Subject: [PATCH 4/6] ajust event date payment --- .../PaymentAdditionalInfoItemRequest.java | 16 ---------------- .../payment/PaymentAdditionalInfoRequest.java | 2 +- .../payment/PaymentAdditionalInfoItem.java | 2 ++ 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java b/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java index 96cdcb0c..139597f9 100644 --- a/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java +++ b/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java @@ -1,18 +1,2 @@ -package com.mercadopago.client.payment; - - -import java.time.OffsetDateTime; -import lombok.Builder; -import lombok.Getter; - -@Getter -@Builder -public class PaymentAdditionalInfoItemRequest extends PaymentItemRequest { - - /** - * Date of event - */ - private OffsetDateTime eventDate; -} diff --git a/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoRequest.java b/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoRequest.java index f5694b2c..d3a64faf 100644 --- a/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoRequest.java +++ b/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoRequest.java @@ -12,7 +12,7 @@ public class PaymentAdditionalInfoRequest { private final String ipAddress; /** Items. */ - private final List items; + private final List items; /** Payer. */ private final PaymentAdditionalInfoPayerRequest payer; diff --git a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java index 352a1bf3..10fc00f8 100644 --- a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java +++ b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java @@ -2,10 +2,12 @@ import com.mercadopago.resources.common.Address; import java.time.OffsetDateTime; +import lombok.Builder; import lombok.Getter; /** PaymentAdditionalInfoIten class. */ @Getter +@Builder public class PaymentAdditionalInfoItem extends PaymentItem { From 9ec63ddf5bb72d52245a038b30f5b2153d0dc7fd Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Thu, 18 Apr 2024 13:12:32 -0300 Subject: [PATCH 5/6] ajust event date payment --- .../client/payment/PaymentAdditionalInfoItemRequest.java | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java diff --git a/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java b/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java deleted file mode 100644 index 139597f9..00000000 --- a/src/main/java/com/mercadopago/client/payment/PaymentAdditionalInfoItemRequest.java +++ /dev/null @@ -1,2 +0,0 @@ - - From 7f5e54af718fe2aae338ebfcaf6a305d8e8ffc28 Mon Sep 17 00:00:00 2001 From: VickieAranha Date: Thu, 18 Apr 2024 13:27:26 -0300 Subject: [PATCH 6/6] ajust payment --- .../resources/payment/PaymentAdditionalInfo.java | 2 +- .../payment/PaymentAdditionalInfoItem.java | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java diff --git a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java index 96e65667..059afc10 100644 --- a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java +++ b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfo.java @@ -10,7 +10,7 @@ public class PaymentAdditionalInfo { private String ipAddress; /** List of items to be paid. */ - private List items; + private List items; /** Payer's information. */ private PaymentAdditionalInfoPayer payer; diff --git a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java b/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java deleted file mode 100644 index 10fc00f8..00000000 --- a/src/main/java/com/mercadopago/resources/payment/PaymentAdditionalInfoItem.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.mercadopago.resources.payment; - -import com.mercadopago.resources.common.Address; -import java.time.OffsetDateTime; -import lombok.Builder; -import lombok.Getter; - -/** PaymentAdditionalInfoIten class. */ -@Getter -@Builder -public class PaymentAdditionalInfoItem extends PaymentItem { - - - /** Date of event */ - private OffsetDateTime eventDate; -}