Skip to content

Commit

Permalink
Release 4.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sauliususoniswallee committed Jun 22, 2022
1 parent 38b8892 commit ebbc6a5
Show file tree
Hide file tree
Showing 9 changed files with 991 additions and 299 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>ch.postfinance</groupId>
<artifactId>postfinancecheckout-java-sdk</artifactId>
<version>4.0.5</version>
<version>4.0.6</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -33,7 +33,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "ch.postfinance:postfinancecheckout-java-sdk:4.0.5"
compile "ch.postfinance:postfinancecheckout-java-sdk:4.0.6"
```

### Others
Expand All @@ -46,7 +46,7 @@ mvn clean package

Then manually install the following JARs:

* `target/postfinancecheckout-java-sdk-4.0.5.jar`
* `target/postfinancecheckout-java-sdk-4.0.6.jar`
* `target/lib/*.jar`

## Usage
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'ch.postfinance'
version = '4.0.5'
version = '4.0.6'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "ch.postfinance",
name := "postfinancecheckout-java-sdk",
version := "4.0.5",
version := "4.0.6",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>postfinancecheckout-java-sdk</artifactId>
<packaging>jar</packaging>
<name>postfinancecheckout-java-sdk</name>
<version>4.0.5</version>
<version>4.0.6</version>
<url>https://www.postfinance.ch/checkout</url>
<description>The SDK for simplifying the integration with PostFinance Checkout API.</description>
<scm>
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/ch/postfinance/sdk/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,14 @@ public InternalTransferBankTransactionService getInternalTransferBankTransaction
return this.internalTransferBankTransactionService;
}

private InvoiceReconciliationRecordInvoiceLinkService invoiceReconciliationRecordInvoiceLinkService;
public InvoiceReconciliationRecordInvoiceLinkService getInvoiceReconciliationRecordInvoiceLinkService() {
if (this.invoiceReconciliationRecordInvoiceLinkService == null) {
this.invoiceReconciliationRecordInvoiceLinkService = new InvoiceReconciliationRecordInvoiceLinkService(this);
}
return this.invoiceReconciliationRecordInvoiceLinkService;
}

private InvoiceReconciliationRecordService invoiceReconciliationRecordService;
public InvoiceReconciliationRecordService getInvoiceReconciliationRecordService() {
if (this.invoiceReconciliationRecordService == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ public class InvoiceReconciliationRecord extends TransactionAwareEntity {
protected String paymentFeeCurrency = null;


@JsonProperty("paymentReason")
protected String paymentReason = null;


@JsonProperty("plannedPurgeDate")
protected OffsetDateTime plannedPurgeDate = null;

Expand Down Expand Up @@ -321,6 +325,16 @@ public String getPaymentFeeCurrency() {
}


/**
*
* @return paymentReason
**/
@ApiModelProperty(value = "")
public String getPaymentReason() {
return paymentReason;
}


/**
* The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
* @return plannedPurgeDate
Expand Down Expand Up @@ -480,6 +494,7 @@ public boolean equals(java.lang.Object o) {
Objects.equals(this.participantNumber, invoiceReconciliationRecord.participantNumber) &&
Objects.equals(this.paymentFeeAmount, invoiceReconciliationRecord.paymentFeeAmount) &&
Objects.equals(this.paymentFeeCurrency, invoiceReconciliationRecord.paymentFeeCurrency) &&
Objects.equals(this.paymentReason, invoiceReconciliationRecord.paymentReason) &&
Objects.equals(this.plannedPurgeDate, invoiceReconciliationRecord.plannedPurgeDate) &&
Objects.equals(this.postCode, invoiceReconciliationRecord.postCode) &&
Objects.equals(this.referenceNumber, invoiceReconciliationRecord.referenceNumber) &&
Expand All @@ -498,7 +513,7 @@ public boolean equals(java.lang.Object o) {

@Override
public int hashCode() {
return Objects.hash(id, linkedSpaceId, linkedTransaction, address, amount, city, country, createdOn, currency, discardedBy, discardedOn, environment, familyName, givenName, iban, lastResolutionFailure, participantNumber, paymentFeeAmount, paymentFeeCurrency, plannedPurgeDate, postCode, referenceNumber, rejectionStatus, resolvedBy, resolvedOn, senderBankAccount, state, street, type, uniqueId, valueDate, version, super.hashCode());
return Objects.hash(id, linkedSpaceId, linkedTransaction, address, amount, city, country, createdOn, currency, discardedBy, discardedOn, environment, familyName, givenName, iban, lastResolutionFailure, participantNumber, paymentFeeAmount, paymentFeeCurrency, paymentReason, plannedPurgeDate, postCode, referenceNumber, rejectionStatus, resolvedBy, resolvedOn, senderBankAccount, state, street, type, uniqueId, valueDate, version, super.hashCode());
}


Expand Down Expand Up @@ -526,6 +541,7 @@ public String toString() {
sb.append(" participantNumber: ").append(toIndentedString(participantNumber)).append("\n");
sb.append(" paymentFeeAmount: ").append(toIndentedString(paymentFeeAmount)).append("\n");
sb.append(" paymentFeeCurrency: ").append(toIndentedString(paymentFeeCurrency)).append("\n");
sb.append(" paymentReason: ").append(toIndentedString(paymentReason)).append("\n");
sb.append(" plannedPurgeDate: ").append(toIndentedString(plannedPurgeDate)).append("\n");
sb.append(" postCode: ").append(toIndentedString(postCode)).append("\n");
sb.append(" referenceNumber: ").append(toIndentedString(referenceNumber)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
/**
* PostFinance Checkout SDK
*
* This library allows to interact with the PostFinance Checkout payment service.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


package ch.postfinance.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import ch.postfinance.sdk.model.InvoiceReconciliationRecord;
import ch.postfinance.sdk.model.TransactionInvoice;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.*;
import java.time.OffsetDateTime;

/**
*
*/
@ApiModel(description = "")

public class InvoiceReconciliationRecordInvoiceLink {

@JsonProperty("amount")
protected BigDecimal amount = null;


@JsonProperty("createdOn")
protected OffsetDateTime createdOn = null;


@JsonProperty("id")
protected Long id = null;


@JsonProperty("invoice")
protected TransactionInvoice invoice = null;


@JsonProperty("linkedSpaceId")
protected Long linkedSpaceId = null;


@JsonProperty("record")
protected InvoiceReconciliationRecord record = null;



/**
*
* @return amount
**/
@ApiModelProperty(value = "")
public BigDecimal getAmount() {
return amount;
}


/**
* The created on date indicates the date on which the entity was stored into the database.
* @return createdOn
**/
@ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}


/**
* The ID is the primary key of the entity. The ID identifies the entity uniquely.
* @return id
**/
@ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
public Long getId() {
return id;
}


/**
*
* @return invoice
**/
@ApiModelProperty(value = "")
public TransactionInvoice getInvoice() {
return invoice;
}


/**
* The linked space id holds the ID of the space to which the entity belongs to.
* @return linkedSpaceId
**/
@ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}


/**
*
* @return record
**/
@ApiModelProperty(value = "")
public InvoiceReconciliationRecord getRecord() {
return record;
}



@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InvoiceReconciliationRecordInvoiceLink invoiceReconciliationRecordInvoiceLink = (InvoiceReconciliationRecordInvoiceLink) o;
return Objects.equals(this.amount, invoiceReconciliationRecordInvoiceLink.amount) &&
Objects.equals(this.createdOn, invoiceReconciliationRecordInvoiceLink.createdOn) &&
Objects.equals(this.id, invoiceReconciliationRecordInvoiceLink.id) &&
Objects.equals(this.invoice, invoiceReconciliationRecordInvoiceLink.invoice) &&
Objects.equals(this.linkedSpaceId, invoiceReconciliationRecordInvoiceLink.linkedSpaceId) &&
Objects.equals(this.record, invoiceReconciliationRecordInvoiceLink.record);
}

@Override
public int hashCode() {
return Objects.hash(amount, createdOn, id, invoice, linkedSpaceId, record);
}


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InvoiceReconciliationRecordInvoiceLink {\n");

sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" invoice: ").append(toIndentedString(invoice)).append("\n");
sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n");
sb.append(" record: ").append(toIndentedString(record)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}

}

Loading

0 comments on commit ebbc6a5

Please sign in to comment.