Skip to content

Commit e75ac8b

Browse files
committed
Release 2.1.0
1 parent 2aca0cd commit e75ac8b

File tree

62 files changed

+1192
-222
lines changed

Some content is hidden

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

62 files changed

+1192
-222
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ account dashboard](https://checkout.postfinance.ch/account/select). Set `space_i
3030
'use strict';
3131
import { PostFinanceCheckout } from 'postfinancecheckout';
3232

33-
let macVersion: number = 1;
3433
let spaceId: number = 405;
3534
let userId: number = 512;
3635
let apiSecret: string = 'FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ=';
3736

3837
let config = {
39-
mac_version: macVersion,
4038
space_id: spaceId,
4139
user_id: userId,
4240
api_secret: apiSecret
@@ -53,13 +51,11 @@ To get started with sending transactions, please review the example below:
5351
'use strict';
5452
import { PostFinanceCheckout } from 'postfinancecheckout';
5553

56-
let macVersion: number = 1;
5754
let spaceId: number = 405;
5855
let userId: number = 512;
5956
let apiSecret: string = 'FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ=';
6057

6158
let config = {
62-
mac_version: macVersion,
6359
space_id: spaceId,
6460
user_id: userId,
6561
api_secret: apiSecret
@@ -86,7 +82,7 @@ transaction.lineItems=[lineItem];
8682
transaction.autoConfirmationEnabled=true;
8783
transaction.currency='EUR';
8884

89-
transactionService.create(spaceId, transaction).then(function (response) {
85+
transactionService.create(spaceId, transaction).then((response) => {
9086
let transactionCreate: PostFinanceCheckout.model.Transaction = response.body;
9187
transactionPaymentPageService.paymentPageUrl(spaceId, <number> transactionCreate.id).then(function (response) {
9288
let pageUrl: string = response.body;

index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ import { TransactionCompletionService as TransactionCompletionServiceApiImport }
240240
import { TransactionIframeService as TransactionIframeServiceApiImport } from "./src/api/TransactionIframeService";
241241
import { TransactionInvoiceCommentService as TransactionInvoiceCommentServiceApiImport } from "./src/api/TransactionInvoiceCommentService";
242242
import { TransactionInvoiceService as TransactionInvoiceServiceApiImport } from "./src/api/TransactionInvoiceService";
243+
import { TransactionLightboxService as TransactionLightboxServiceApiImport } from "./src/api/TransactionLightboxService";
243244
import { TransactionMobileSdkService as TransactionMobileSdkServiceApiImport } from "./src/api/TransactionMobileSdkService";
244245
import { TransactionPaymentPageService as TransactionPaymentPageServiceApiImport } from "./src/api/TransactionPaymentPageService";
245246
import { TransactionService as TransactionServiceApiImport } from "./src/api/TransactionService";
@@ -737,6 +738,8 @@ export namespace PostFinanceCheckout {
737738
export const TransactionInvoiceCommentService = TransactionInvoiceCommentServiceApiImport;
738739
export type TransactionInvoiceService = TransactionInvoiceServiceApiImport;
739740
export const TransactionInvoiceService = TransactionInvoiceServiceApiImport;
741+
export type TransactionLightboxService = TransactionLightboxServiceApiImport;
742+
export const TransactionLightboxService = TransactionLightboxServiceApiImport;
740743
export type TransactionMobileSdkService = TransactionMobileSdkServiceApiImport;
741744
export const TransactionMobileSdkService = TransactionMobileSdkServiceApiImport;
742745
export type TransactionPaymentPageService = TransactionPaymentPageServiceApiImport;

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "postfinancecheckout",
33
"title": "PostFinance Checkout",
4-
"version": "2.0.8",
4+
"version": "2.1.0",
55
"description": "TypeScript/JavaScript client for PostFinance Checkout",
66
"homepage": "http://github.com/pfpayments/typescript-sdk",
77
"repository": {
@@ -14,9 +14,9 @@
1414
"main": "index.js",
1515
"types": "index.d.ts",
1616
"scripts": {
17-
"clean": "rm -Rfv ./node_modules/ ./src/**/*.js ./tests/*.d.ts ./tests/*.js",
17+
"clean": "rm -Rf ./node_modules/ ./src/**/*.js ./test/*.d.ts ./test/*.js",
1818
"build": "tsc --project ./tsconfig.json",
19-
"test": "rm -frv ./tests/*.d.ts && mocha --require ts-node/register --timeout 3000 tests/*.ts tests/*.js",
19+
"test": "rm -fr ./test/*.d.ts && mocha --require ts-node/register --timeout 10000 test/*.ts test/*.js",
2020
"prepublishOnly": "npm run clean && npm i && npm run build"
2121
},
2222
"author": "customweb GmbH",

src/api/AccountService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AccountService {
2323

2424
protected authentications = {
2525
'default': <Authentication>new VoidAuth({})
26-
}
26+
};
2727

2828
constructor(configuration: any) {
2929
this.setDefaultAuthentication(new VoidAuth(configuration))

src/api/ApplicationUserService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ApplicationUserService {
2424

2525
protected authentications = {
2626
'default': <Authentication>new VoidAuth({})
27-
}
27+
};
2828

2929
constructor(configuration: any) {
3030
this.setDefaultAuthentication(new VoidAuth(configuration))

src/api/ChargeAttemptService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ChargeAttemptService {
2121

2222
protected authentications = {
2323
'default': <Authentication>new VoidAuth({})
24-
}
24+
};
2525

2626
constructor(configuration: any) {
2727
this.setDefaultAuthentication(new VoidAuth(configuration))

src/api/ChargeFlowLevelPaymentLinkService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ChargeFlowLevelPaymentLinkService {
2121

2222
protected authentications = {
2323
'default': <Authentication>new VoidAuth({})
24-
}
24+
};
2525

2626
constructor(configuration: any) {
2727
this.setDefaultAuthentication(new VoidAuth(configuration))

src/api/ChargeFlowLevelService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ChargeFlowLevelService {
2121

2222
protected authentications = {
2323
'default': <Authentication>new VoidAuth({})
24-
}
24+
};
2525

2626
constructor(configuration: any) {
2727
this.setDefaultAuthentication(new VoidAuth(configuration))

src/api/ChargeFlowService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ChargeFlowService {
2222

2323
protected authentications = {
2424
'default': <Authentication>new VoidAuth({})
25-
}
25+
};
2626

2727
constructor(configuration: any) {
2828
this.setDefaultAuthentication(new VoidAuth(configuration))

src/api/ConditionTypeService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ConditionTypeService {
1919

2020
protected authentications = {
2121
'default': <Authentication>new VoidAuth({})
22-
}
22+
};
2323

2424
constructor(configuration: any) {
2525
this.setDefaultAuthentication(new VoidAuth(configuration))

0 commit comments

Comments
 (0)