Skip to content

Commit ebbc6a5

Browse files
Release 4.0.6
1 parent 38b8892 commit ebbc6a5

File tree

9 files changed

+991
-299
lines changed

9 files changed

+991
-299
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Add this dependency to your project's POM:
2323
<dependency>
2424
<groupId>ch.postfinance</groupId>
2525
<artifactId>postfinancecheckout-java-sdk</artifactId>
26-
<version>4.0.5</version>
26+
<version>4.0.6</version>
2727
<scope>compile</scope>
2828
</dependency>
2929
```
@@ -33,7 +33,7 @@ Add this dependency to your project's POM:
3333
Add this dependency to your project's build file:
3434

3535
```groovy
36-
compile "ch.postfinance:postfinancecheckout-java-sdk:4.0.5"
36+
compile "ch.postfinance:postfinancecheckout-java-sdk:4.0.6"
3737
```
3838

3939
### Others
@@ -46,7 +46,7 @@ mvn clean package
4646

4747
Then manually install the following JARs:
4848

49-
* `target/postfinancecheckout-java-sdk-4.0.5.jar`
49+
* `target/postfinancecheckout-java-sdk-4.0.6.jar`
5050
* `target/lib/*.jar`
5151

5252
## Usage

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'ch.postfinance'
5-
version = '4.0.5'
5+
version = '4.0.6'
66

77
buildscript {
88
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "ch.postfinance",
44
name := "postfinancecheckout-java-sdk",
5-
version := "4.0.5",
5+
version := "4.0.6",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>postfinancecheckout-java-sdk</artifactId>
66
<packaging>jar</packaging>
77
<name>postfinancecheckout-java-sdk</name>
8-
<version>4.0.5</version>
8+
<version>4.0.6</version>
99
<url>https://www.postfinance.ch/checkout</url>
1010
<description>The SDK for simplifying the integration with PostFinance Checkout API.</description>
1111
<scm>

src/main/java/ch/postfinance/sdk/ApiClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,14 @@ public InternalTransferBankTransactionService getInternalTransferBankTransaction
293293
return this.internalTransferBankTransactionService;
294294
}
295295

296+
private InvoiceReconciliationRecordInvoiceLinkService invoiceReconciliationRecordInvoiceLinkService;
297+
public InvoiceReconciliationRecordInvoiceLinkService getInvoiceReconciliationRecordInvoiceLinkService() {
298+
if (this.invoiceReconciliationRecordInvoiceLinkService == null) {
299+
this.invoiceReconciliationRecordInvoiceLinkService = new InvoiceReconciliationRecordInvoiceLinkService(this);
300+
}
301+
return this.invoiceReconciliationRecordInvoiceLinkService;
302+
}
303+
296304
private InvoiceReconciliationRecordService invoiceReconciliationRecordService;
297305
public InvoiceReconciliationRecordService getInvoiceReconciliationRecordService() {
298306
if (this.invoiceReconciliationRecordService == null) {

src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecord.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ public class InvoiceReconciliationRecord extends TransactionAwareEntity {
108108
protected String paymentFeeCurrency = null;
109109

110110

111+
@JsonProperty("paymentReason")
112+
protected String paymentReason = null;
113+
114+
111115
@JsonProperty("plannedPurgeDate")
112116
protected OffsetDateTime plannedPurgeDate = null;
113117

@@ -321,6 +325,16 @@ public String getPaymentFeeCurrency() {
321325
}
322326

323327

328+
/**
329+
*
330+
* @return paymentReason
331+
**/
332+
@ApiModelProperty(value = "")
333+
public String getPaymentReason() {
334+
return paymentReason;
335+
}
336+
337+
324338
/**
325339
* The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
326340
* @return plannedPurgeDate
@@ -480,6 +494,7 @@ public boolean equals(java.lang.Object o) {
480494
Objects.equals(this.participantNumber, invoiceReconciliationRecord.participantNumber) &&
481495
Objects.equals(this.paymentFeeAmount, invoiceReconciliationRecord.paymentFeeAmount) &&
482496
Objects.equals(this.paymentFeeCurrency, invoiceReconciliationRecord.paymentFeeCurrency) &&
497+
Objects.equals(this.paymentReason, invoiceReconciliationRecord.paymentReason) &&
483498
Objects.equals(this.plannedPurgeDate, invoiceReconciliationRecord.plannedPurgeDate) &&
484499
Objects.equals(this.postCode, invoiceReconciliationRecord.postCode) &&
485500
Objects.equals(this.referenceNumber, invoiceReconciliationRecord.referenceNumber) &&
@@ -498,7 +513,7 @@ public boolean equals(java.lang.Object o) {
498513

499514
@Override
500515
public int hashCode() {
501-
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());
516+
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());
502517
}
503518

504519

@@ -526,6 +541,7 @@ public String toString() {
526541
sb.append(" participantNumber: ").append(toIndentedString(participantNumber)).append("\n");
527542
sb.append(" paymentFeeAmount: ").append(toIndentedString(paymentFeeAmount)).append("\n");
528543
sb.append(" paymentFeeCurrency: ").append(toIndentedString(paymentFeeCurrency)).append("\n");
544+
sb.append(" paymentReason: ").append(toIndentedString(paymentReason)).append("\n");
529545
sb.append(" plannedPurgeDate: ").append(toIndentedString(plannedPurgeDate)).append("\n");
530546
sb.append(" postCode: ").append(toIndentedString(postCode)).append("\n");
531547
sb.append(" referenceNumber: ").append(toIndentedString(referenceNumber)).append("\n");
Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
/**
2+
* PostFinance Checkout SDK
3+
*
4+
* This library allows to interact with the PostFinance Checkout payment service.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
20+
package ch.postfinance.sdk.model;
21+
22+
import java.util.Objects;
23+
import java.util.Arrays;
24+
import ch.postfinance.sdk.model.InvoiceReconciliationRecord;
25+
import ch.postfinance.sdk.model.TransactionInvoice;
26+
import com.fasterxml.jackson.annotation.JsonProperty;
27+
import com.fasterxml.jackson.annotation.JsonCreator;
28+
import com.fasterxml.jackson.annotation.JsonValue;
29+
import io.swagger.annotations.ApiModel;
30+
import io.swagger.annotations.ApiModelProperty;
31+
import java.math.BigDecimal;
32+
import java.time.OffsetDateTime;
33+
import java.util.*;
34+
import java.time.OffsetDateTime;
35+
36+
/**
37+
*
38+
*/
39+
@ApiModel(description = "")
40+
41+
public class InvoiceReconciliationRecordInvoiceLink {
42+
43+
@JsonProperty("amount")
44+
protected BigDecimal amount = null;
45+
46+
47+
@JsonProperty("createdOn")
48+
protected OffsetDateTime createdOn = null;
49+
50+
51+
@JsonProperty("id")
52+
protected Long id = null;
53+
54+
55+
@JsonProperty("invoice")
56+
protected TransactionInvoice invoice = null;
57+
58+
59+
@JsonProperty("linkedSpaceId")
60+
protected Long linkedSpaceId = null;
61+
62+
63+
@JsonProperty("record")
64+
protected InvoiceReconciliationRecord record = null;
65+
66+
67+
68+
/**
69+
*
70+
* @return amount
71+
**/
72+
@ApiModelProperty(value = "")
73+
public BigDecimal getAmount() {
74+
return amount;
75+
}
76+
77+
78+
/**
79+
* The created on date indicates the date on which the entity was stored into the database.
80+
* @return createdOn
81+
**/
82+
@ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
83+
public OffsetDateTime getCreatedOn() {
84+
return createdOn;
85+
}
86+
87+
88+
/**
89+
* The ID is the primary key of the entity. The ID identifies the entity uniquely.
90+
* @return id
91+
**/
92+
@ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
93+
public Long getId() {
94+
return id;
95+
}
96+
97+
98+
/**
99+
*
100+
* @return invoice
101+
**/
102+
@ApiModelProperty(value = "")
103+
public TransactionInvoice getInvoice() {
104+
return invoice;
105+
}
106+
107+
108+
/**
109+
* The linked space id holds the ID of the space to which the entity belongs to.
110+
* @return linkedSpaceId
111+
**/
112+
@ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
113+
public Long getLinkedSpaceId() {
114+
return linkedSpaceId;
115+
}
116+
117+
118+
/**
119+
*
120+
* @return record
121+
**/
122+
@ApiModelProperty(value = "")
123+
public InvoiceReconciliationRecord getRecord() {
124+
return record;
125+
}
126+
127+
128+
129+
@Override
130+
public boolean equals(java.lang.Object o) {
131+
if (this == o) {
132+
return true;
133+
}
134+
if (o == null || getClass() != o.getClass()) {
135+
return false;
136+
}
137+
InvoiceReconciliationRecordInvoiceLink invoiceReconciliationRecordInvoiceLink = (InvoiceReconciliationRecordInvoiceLink) o;
138+
return Objects.equals(this.amount, invoiceReconciliationRecordInvoiceLink.amount) &&
139+
Objects.equals(this.createdOn, invoiceReconciliationRecordInvoiceLink.createdOn) &&
140+
Objects.equals(this.id, invoiceReconciliationRecordInvoiceLink.id) &&
141+
Objects.equals(this.invoice, invoiceReconciliationRecordInvoiceLink.invoice) &&
142+
Objects.equals(this.linkedSpaceId, invoiceReconciliationRecordInvoiceLink.linkedSpaceId) &&
143+
Objects.equals(this.record, invoiceReconciliationRecordInvoiceLink.record);
144+
}
145+
146+
@Override
147+
public int hashCode() {
148+
return Objects.hash(amount, createdOn, id, invoice, linkedSpaceId, record);
149+
}
150+
151+
152+
@Override
153+
public String toString() {
154+
StringBuilder sb = new StringBuilder();
155+
sb.append("class InvoiceReconciliationRecordInvoiceLink {\n");
156+
157+
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
158+
sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n");
159+
sb.append(" id: ").append(toIndentedString(id)).append("\n");
160+
sb.append(" invoice: ").append(toIndentedString(invoice)).append("\n");
161+
sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n");
162+
sb.append(" record: ").append(toIndentedString(record)).append("\n");
163+
sb.append("}");
164+
return sb.toString();
165+
}
166+
167+
/**
168+
* Convert the given object to string with each line indented by 4 spaces
169+
* (except the first line).
170+
*/
171+
private String toIndentedString(java.lang.Object o) {
172+
if (o == null) {
173+
return "null";
174+
}
175+
return o.toString().replace("\n", "\n ");
176+
}
177+
178+
}
179+

0 commit comments

Comments
 (0)