Skip to content

Releases: unzerdev/java-sdk

5.1.0

08 Feb 09:57
51671e4

Choose a tag to compare

Google Pay payment method is added to Java SDK.

Added

  • Added GooglePay payment method.

Fixed

  • Fixed Unzer:updateCharge and Unzer:updateAuthorization used wrong endpoints
  • SEPA Direct Debit is restored from deprecation. See: com.unzer.payment.paymenttypes.SepaDirectDebit

5.0.0

05 Dec 08:59
6874592

Choose a tag to compare

Consists of internal refactorings and improvements.

Added

  • Added com.unzer.payment.Resource interface.

Changed

  • Renamed AbstractTransaction -> BaseTransaction
  • Refactored UrlUtil: moved Resource URL construction logic to Resource-classes.
  • Every Unzer Payment Gateway resource implements Resource instead of PaymentType: Customer, Basket, Payment, etc.
  • Renamed com.unzer.payment.CustomerCompanyData to CompanyInfo
  • Renamed property and methods of com.unzer.payment.Customer.Customer to match class name:
    • property companyData-> companyInfo
    • method getCompanyData() -> getCompanyInfo()
    • method setCompanyData() -> setCompanyInfo()

Removed

  • Removed PaymentType::getId() and PaymentType::getTypeUrl() methods. Use Resource::getId() and Resource::getUrl() instead.

4.4.0

27 Oct 07:30
6395a5d

Choose a tag to compare

Added

  • Added Paylater Direct Debit payment method

Deprecated

  • Deprecated Sepa Direct Debit and Sepa Direct Debit Secured payment methods. Please, use Paylater Direct Debit instead.

4.3.0

31 Aug 14:00
3ff70e4

Choose a tag to compare

This release adds support for PayU payment method and fixes some LinkPay issues

Added

  • Added PayU payment method support
  • Added BasePaypage.Action set of constants for Authorize and Charge actions for Paypage/Linkpay
  • Added Authorize support for Linkpay: Linkpay.setAction(BasePaypage.Action.AUTHORIZE)

Deprecated

  • Deprecated Paypage.Action. Use BasePaypage.Action instead

4.2.0

18 Jul 12:37
af67efa

Choose a tag to compare

This Java SDK version delivers Unzer Paylater Installment to Java projects.

Added

  • Add Paylater Installment support:
    • Add com.unzer.payment.service.PaymentService.fetchPaylaterInstallmentPlans() to get available installment plans.
    • Add payment type com.unzer.payment.paymenttypes.PaylaterInstallment.
  • com.unzer.payment.fetchPayment now fetches chargeback transactions of the payment. See com.unzer.payment.Payment.chargebackList
  • Added field paypageId to payment and its transactions (authorize, charge, cancel, chargeback). See: com.unzer.payment.AbstractPayment.paypageId, com.unzer.payment.AbstractTransaction.paypageId

Changed

  • Refactored internal class com.unzer.payment.communication.mapper.JsonToBusinessClassMapper:
    • Unified parameter names to src and output
    • Changed parameters order. First parameter is src, second is output
  • Renamed internal classes at com.unzer.payment.communication.json:
    • JsonPayment -> ApiPayment
    • JsonTransaction -> ApiTransaction

Deprecated

  • Installment Secured:
    • method com.unzer.payment.Unzer.installmentSecuredRates()
    • class com.unzer.payment.business.paymenttypes.InstallmentSecuredRatePlan
    • class com.unzer.payment.business.paymenttypes.InstallmentSecuredRate

4.1.0

30 Mar 09:24
e0365a6

Choose a tag to compare

Added

  • Added com.unzer.payment.Unzer.fetchPaypage

Changed

  • Changed return value for com.unzer.payment.Paypage.getTypeUrl. Was: paypage/charge or paypage/authorize, now: paypage

4.0.0

16 Feb 09:55
edbeb38

Choose a tag to compare

This release brings liability and exemption type support to Java SDK

Added

  • Added Liability and ExemptionType fields to AdditionalTransactionData.CardTransactionData

Removed

  • Removed resource version.properties. Version is set at generate-sources phase.
  • Removed class com.unzer.payment.exceptions.PropertiesException
  • Removed deprecated method com.unzer.payment.util.SDKInfo::getVersion(). Please, use com.unzer.payment.util.SDKInfo.VERSION instead

Changed

  • Enriched request and response logging

Fixed

  • Fixed AdditionalTransactionData.RecurrenceType field is empty for fetched transactions.

3.1.1

12 Jan 15:01
3f2e9e6

Choose a tag to compare

This release updates dependencies with security issues

Changed

  • Upgraded Apache HttpClient from version 4 to version 5.
  • Made HttpCommunicationException unchecked exception.
  • Updated jackson-core dependency.

3.1.0

13 Dec 13:05
9fb16ad

Choose a tag to compare

This release introduces Unzer PayPal Express in Java SDK.

Added

  • Added Paypal-Express support:
    • Extended AdditionalTransactionData with paypal.checkoutType field. See com.unzer.payment.models.AdditionalTransactionData.setPaypal.
    • Defined RESUMED value for com.unzer.payment.AbstractTransaction.Status
    • Added com.unzer.payment.Unzer::updateCharge(), com.unzer.payment.Unzer::updateAuthorization() which must be invoked after Paypal-Express transaction is resumed.
  • Added fields orderId and invoiceId to Authorize, Charge and Cancel transactions.
  • Added authorize support for Paypage. Use Paypage::setAction(Paypage.Action.AUTHORIZE)
  • Added new capture (charge authorization) methods. See: com.unzer.payment.Unzer.chargeAuthorization(charge) and com.unzer.payment.Unzer.chargeAuthorization(paymentId, charge)

Changed

  • Reduced multiple com.unzer.payment.service.PaymentService.chargeAuthorization methods to one with Charge argument.

Deprecated

  • Deprecated com.unzer.payment.paymenttypes.Invoice. Use com.unzer.payment.paymenttypes.PaylaterInvoice instead
  • Deprecated behavioral methods for data objects. Please, use Unzer facade instead. List of deprecations:
    • AbstractTransaction (base class of Authorization, Cancel, Charge, Payout, Recurring, Shipment, MarketplaceAuthorization, MarketplaceCharge, MarketplacePayment, MarketplaceCancel):
      • getUnzer/setUnzer
    • Charge:
      • cancel
    • Authorization:
      • charge
      • cancel
    • Payment:
      • charge
      • authorize
      • cancel
    • MarketplaceCharge:
      • cancel
    • MarketplaceAuthorization:
      • charge
      • cancel
    • MarketplacePayment:
      • marketplaceFullChargesCancel
      • fullChargeAuthorizations
      • marketplaceFullAuthorizeCancel
    • AbstractPayment:
      • fetchBasket, fetchMetadata, fetchCustomer, fetchPaymentType

3.0.0

27 Oct 10:42
bfaff71

Choose a tag to compare

This release switches Java SDK version to a traditional 3-digit semantic versioning style.

Changes

  • Removed first digit at semver: API_VERSION. MAJOR.MINOR.PATCH