Skip to content

Commit a2b7532

Browse files
Release 8.2.1
1 parent 12d2e79 commit a2b7532

File tree

79 files changed

+1108
-908
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1108
-908
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this dependency to your project's POM:
2121
<dependency>
2222
<groupId>ch.postfinance</groupId>
2323
<artifactId>postfinancecheckout-java-sdk</artifactId>
24-
<version>8.0.0</version>
24+
<version>8.2.1</version>
2525
<scope>compile</scope>
2626
</dependency>
2727
```
@@ -31,7 +31,7 @@ Add this dependency to your project's POM:
3131
Add this dependency to your project's build file:
3232

3333
```groovy
34-
compile "ch.postfinance:postfinancecheckout-java-sdk:8.0.0"
34+
compile "ch.postfinance:postfinancecheckout-java-sdk:8.2.1"
3535
```
3636

3737
### Others
@@ -44,7 +44,7 @@ mvn clean package
4444

4545
Then manually install the following JARs:
4646

47-
* `target/postfinancecheckout-java-sdk-8.0.0.jar`
47+
* `target/postfinancecheckout-java-sdk-8.2.1.jar`
4848
* `target/lib/*.jar`
4949

5050
## 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 = '8.0.0'
5+
version = '8.2.1'
66

77
buildscript {
88
repositories {

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>8.0.0</version>
8+
<version>8.2.1</version>
99
<url>https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html</url>
1010
<description>The SDK for simplifying the integration with PostFinance Checkout API.</description>
1111
<scm>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void intercept(HttpRequest request) throws IOException {
3434

3535
private HttpHeaders getDefaultHeaders() {
3636
HttpHeaders headers = new HttpHeaders();
37-
headers.put("x-meta-sdk-version", "8.0.0");
37+
headers.put("x-meta-sdk-version", "8.2.1");
3838
headers.put("x-meta-sdk-language", "java");
3939
headers.put("x-meta-sdk-provider", "PostFinance Checkout");
4040
headers.put("x-meta-sdk-language-version", System.getProperty("java.version"));

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ public AbstractTokenUpdate customerEmailAddress(String customerEmailAddress) {
6666
}
6767

6868
/**
69-
* The customer email address is the email address of the customer.
69+
* The customer&#39;s email address.
7070
* @return customerEmailAddress
7171
**/
72-
@ApiModelProperty(value = "The customer email address is the email address of the customer.")
72+
@ApiModelProperty(value = "The customer's email address.")
7373
public String getCustomerEmailAddress() {
7474
return customerEmailAddress;
7575
}
@@ -85,10 +85,10 @@ public AbstractTokenUpdate customerId(String customerId) {
8585
}
8686

8787
/**
88-
* The customer ID identifies the customer in the merchant system. In case the customer ID has been provided it has to correspond with the customer ID provided on the transaction. The customer ID will not be changed automatically. The merchant system has to provide it.
88+
* The unique identifier of the customer in the external system.
8989
* @return customerId
9090
**/
91-
@ApiModelProperty(value = "The customer ID identifies the customer in the merchant system. In case the customer ID has been provided it has to correspond with the customer ID provided on the transaction. The customer ID will not be changed automatically. The merchant system has to provide it.")
91+
@ApiModelProperty(value = "The unique identifier of the customer in the external system.")
9292
public String getCustomerId() {
9393
return customerId;
9494
}
@@ -104,10 +104,10 @@ public AbstractTokenUpdate enabledForOneClickPayment(Boolean enabledForOneClickP
104104
}
105105

106106
/**
107-
* When a token is enabled for one-click payments the buyer will be able to select the token within the iFrame or on the payment page to pay with the token. The usage of the token will reduce the number of steps the buyer has to go through. The buyer is linked via the customer ID on the transaction with the token. Means the token will be visible for buyers with the same customer ID. Additionally the payment method has to be configured to allow the one-click payments.
107+
* Whether the token is enabled for one-click payments, which simplify the payment process for the customer. One-click tokens are linked to customers via the customer ID.
108108
* @return enabledForOneClickPayment
109109
**/
110-
@ApiModelProperty(value = "When a token is enabled for one-click payments the buyer will be able to select the token within the iFrame or on the payment page to pay with the token. The usage of the token will reduce the number of steps the buyer has to go through. The buyer is linked via the customer ID on the transaction with the token. Means the token will be visible for buyers with the same customer ID. Additionally the payment method has to be configured to allow the one-click payments.")
110+
@ApiModelProperty(value = "Whether the token is enabled for one-click payments, which simplify the payment process for the customer. One-click tokens are linked to customers via the customer ID.")
111111
public Boolean isEnabledForOneClickPayment() {
112112
return enabledForOneClickPayment;
113113
}
@@ -142,10 +142,10 @@ public AbstractTokenUpdate timeZone(String timeZone) {
142142
}
143143

144144
/**
145-
* The time zone defines in which time zone the customer is located in. The time zone may affects how dates are formatted when interacting with the customer.
145+
* The customer&#39;s time zone, which affects how dates and times are formatted when communicating with the customer.
146146
* @return timeZone
147147
**/
148-
@ApiModelProperty(value = "The time zone defines in which time zone the customer is located in. The time zone may affects how dates are formatted when interacting with the customer.")
148+
@ApiModelProperty(value = "The customer's time zone, which affects how dates and times are formatted when communicating with the customer.")
149149
public String getTimeZone() {
150150
return timeZone;
151151
}
@@ -161,10 +161,10 @@ public AbstractTokenUpdate tokenReference(String tokenReference) {
161161
}
162162

163163
/**
164-
* Use something that it is easy to identify and may help you find the token (e.g. customer id, email address).
164+
* The reference used to identify the payment token (e.g. the customer&#39;s ID or email address).
165165
* @return tokenReference
166166
**/
167-
@ApiModelProperty(value = "Use something that it is easy to identify and may help you find the token (e.g. customer id, email address).")
167+
@ApiModelProperty(value = "The reference used to identify the payment token (e.g. the customer's ID or email address).")
168168
public String getTokenReference() {
169169
return tokenReference;
170170
}

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

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ public AbstractTransactionPending addAllowedPaymentMethodBrandsItem(Long allowed
134134
}
135135

136136
/**
137-
*
137+
* The payment method brands that can be used to authorize the transaction.
138138
* @return allowedPaymentMethodBrands
139139
**/
140-
@ApiModelProperty(value = "")
140+
@ApiModelProperty(value = "The payment method brands that can be used to authorize the transaction.")
141141
public List<Long> getAllowedPaymentMethodBrands() {
142142
return allowedPaymentMethodBrands;
143143
}
@@ -161,10 +161,10 @@ public AbstractTransactionPending addAllowedPaymentMethodConfigurationsItem(Long
161161
}
162162

163163
/**
164-
*
164+
* The payment method configurations that can be used to authorize the transaction.
165165
* @return allowedPaymentMethodConfigurations
166166
**/
167-
@ApiModelProperty(value = "")
167+
@ApiModelProperty(value = "The payment method configurations that can be used to authorize the transaction.")
168168
public List<Long> getAllowedPaymentMethodConfigurations() {
169169
return allowedPaymentMethodConfigurations;
170170
}
@@ -180,10 +180,10 @@ public AbstractTransactionPending billingAddress(AddressCreate billingAddress) {
180180
}
181181

182182
/**
183-
*
183+
* The address associated with the payment method for invoicing and transaction processing purposes.
184184
* @return billingAddress
185185
**/
186-
@ApiModelProperty(value = "")
186+
@ApiModelProperty(value = "The address associated with the payment method for invoicing and transaction processing purposes.")
187187
public AddressCreate getBillingAddress() {
188188
return billingAddress;
189189
}
@@ -199,10 +199,10 @@ public AbstractTransactionPending completionBehavior(TransactionCompletionBehavi
199199
}
200200

201201
/**
202-
* The completion behavior controls when the transaction is completed.
202+
* The behavior that controls when the transaction is completed.
203203
* @return completionBehavior
204204
**/
205-
@ApiModelProperty(value = "The completion behavior controls when the transaction is completed.")
205+
@ApiModelProperty(value = "The behavior that controls when the transaction is completed.")
206206
public TransactionCompletionBehavior getCompletionBehavior() {
207207
return completionBehavior;
208208
}
@@ -218,10 +218,10 @@ public AbstractTransactionPending currency(String currency) {
218218
}
219219

220220
/**
221-
*
221+
* The three-letter code (ISO 4217 format) of the transaction&#39;s currency.
222222
* @return currency
223223
**/
224-
@ApiModelProperty(value = "")
224+
@ApiModelProperty(value = "The three-letter code (ISO 4217 format) of the transaction's currency.")
225225
public String getCurrency() {
226226
return currency;
227227
}
@@ -237,10 +237,10 @@ public AbstractTransactionPending customerEmailAddress(String customerEmailAddre
237237
}
238238

239239
/**
240-
* The customer email address is the email address of the customer. If no email address is provided on the shipping or billing address this address is used.
240+
* The customer&#39;s email address.
241241
* @return customerEmailAddress
242242
**/
243-
@ApiModelProperty(value = "The customer email address is the email address of the customer. If no email address is provided on the shipping or billing address this address is used.")
243+
@ApiModelProperty(value = "The customer's email address.")
244244
public String getCustomerEmailAddress() {
245245
return customerEmailAddress;
246246
}
@@ -256,10 +256,10 @@ public AbstractTransactionPending customerId(String customerId) {
256256
}
257257

258258
/**
259-
*
259+
* The unique identifier of the customer in the external system.
260260
* @return customerId
261261
**/
262-
@ApiModelProperty(value = "")
262+
@ApiModelProperty(value = "The unique identifier of the customer in the external system.")
263263
public String getCustomerId() {
264264
return customerId;
265265
}
@@ -275,10 +275,10 @@ public AbstractTransactionPending failedUrl(String failedUrl) {
275275
}
276276

277277
/**
278-
* The user will be redirected to failed URL when the transaction could not be authorized or completed. In case no failed URL is specified a default failed page will be displayed.
278+
* The URL to redirect the customer back to after they canceled or failed to authenticated their payment.
279279
* @return failedUrl
280280
**/
281-
@ApiModelProperty(value = "The user will be redirected to failed URL when the transaction could not be authorized or completed. In case no failed URL is specified a default failed page will be displayed.")
281+
@ApiModelProperty(value = "The URL to redirect the customer back to after they canceled or failed to authenticated their payment.")
282282
public String getFailedUrl() {
283283
return failedUrl;
284284
}
@@ -294,10 +294,10 @@ public AbstractTransactionPending invoiceMerchantReference(String invoiceMerchan
294294
}
295295

296296
/**
297-
*
297+
* The merchant&#39;s reference used to identify the invoice.
298298
* @return invoiceMerchantReference
299299
**/
300-
@ApiModelProperty(value = "")
300+
@ApiModelProperty(value = "The merchant's reference used to identify the invoice.")
301301
public String getInvoiceMerchantReference() {
302302
return invoiceMerchantReference;
303303
}
@@ -340,10 +340,10 @@ public AbstractTransactionPending addLineItemsItem(LineItemCreate lineItemsItem)
340340
}
341341

342342
/**
343-
*
343+
* The line items purchased by the customer.
344344
* @return lineItems
345345
**/
346-
@ApiModelProperty(value = "")
346+
@ApiModelProperty(value = "The line items purchased by the customer.")
347347
public List<LineItemCreate> getLineItems() {
348348
return lineItems;
349349
}
@@ -359,10 +359,10 @@ public AbstractTransactionPending merchantReference(String merchantReference) {
359359
}
360360

361361
/**
362-
*
362+
* The merchant&#39;s reference used to identify the transaction.
363363
* @return merchantReference
364364
**/
365-
@ApiModelProperty(value = "")
365+
@ApiModelProperty(value = "The merchant's reference used to identify the transaction.")
366366
public String getMerchantReference() {
367367
return merchantReference;
368368
}
@@ -405,10 +405,10 @@ public AbstractTransactionPending shippingAddress(AddressCreate shippingAddress)
405405
}
406406

407407
/**
408-
*
408+
* The address to where the order will be shipped.
409409
* @return shippingAddress
410410
**/
411-
@ApiModelProperty(value = "")
411+
@ApiModelProperty(value = "The address to where the order will be shipped.")
412412
public AddressCreate getShippingAddress() {
413413
return shippingAddress;
414414
}
@@ -424,10 +424,10 @@ public AbstractTransactionPending shippingMethod(String shippingMethod) {
424424
}
425425

426426
/**
427-
*
427+
* The name of the shipping method used to ship the products.
428428
* @return shippingMethod
429429
**/
430-
@ApiModelProperty(value = "")
430+
@ApiModelProperty(value = "The name of the shipping method used to ship the products.")
431431
public String getShippingMethod() {
432432
return shippingMethod;
433433
}
@@ -443,10 +443,10 @@ public AbstractTransactionPending successUrl(String successUrl) {
443443
}
444444

445445
/**
446-
* The user will be redirected to success URL when the transaction could be authorized or completed. In case no success URL is specified a default success page will be displayed.
446+
* The URL to redirect the customer back to after they successfully authenticated their payment.
447447
* @return successUrl
448448
**/
449-
@ApiModelProperty(value = "The user will be redirected to success URL when the transaction could be authorized or completed. In case no success URL is specified a default success page will be displayed.")
449+
@ApiModelProperty(value = "The URL to redirect the customer back to after they successfully authenticated their payment.")
450450
public String getSuccessUrl() {
451451
return successUrl;
452452
}
@@ -462,10 +462,10 @@ public AbstractTransactionPending timeZone(String timeZone) {
462462
}
463463

464464
/**
465-
* The time zone defines in which time zone the customer is located in. The time zone may affects how dates are formatted when interacting with the customer.
465+
* The customer&#39;s time zone, which affects how dates and times are formatted when communicating with the customer.
466466
* @return timeZone
467467
**/
468-
@ApiModelProperty(value = "The time zone defines in which time zone the customer is located in. The time zone may affects how dates are formatted when interacting with the customer.")
468+
@ApiModelProperty(value = "The customer's time zone, which affects how dates and times are formatted when communicating with the customer.")
469469
public String getTimeZone() {
470470
return timeZone;
471471
}
@@ -481,10 +481,10 @@ public AbstractTransactionPending token(Long token) {
481481
}
482482

483483
/**
484-
*
484+
* The payment token that should be used to charge the customer.
485485
* @return token
486486
**/
487-
@ApiModelProperty(value = "")
487+
@ApiModelProperty(value = "The payment token that should be used to charge the customer.")
488488
public Long getToken() {
489489
return token;
490490
}
@@ -500,10 +500,10 @@ public AbstractTransactionPending tokenizationMode(TokenizationMode tokenization
500500
}
501501

502502
/**
503-
* The tokenization mode controls if and how the tokenization of payment information is applied to the transaction.
503+
* The tokenization mode specifies whether and how the tokenization of payment information is applied to the transaction.
504504
* @return tokenizationMode
505505
**/
506-
@ApiModelProperty(value = "The tokenization mode controls if and how the tokenization of payment information is applied to the transaction.")
506+
@ApiModelProperty(value = "The tokenization mode specifies whether and how the tokenization of payment information is applied to the transaction.")
507507
public TokenizationMode getTokenizationMode() {
508508
return tokenizationMode;
509509
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ public AbstractWebhookListenerUpdate enablePayloadSignatureAndState(Boolean enab
6565
}
6666

6767
/**
68-
* Whether signature header and state property are enabled in webhook payload.
68+
* Whether signature header and &#39;state&#39; property are enabled in webhook payload.
6969
* @return enablePayloadSignatureAndState
7070
**/
71-
@ApiModelProperty(value = "Whether signature header and state property are enabled in webhook payload.")
71+
@ApiModelProperty(value = "Whether signature header and 'state' property are enabled in webhook payload.")
7272
public Boolean isEnablePayloadSignatureAndState() {
7373
return enablePayloadSignatureAndState;
7474
}

0 commit comments

Comments
 (0)