Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 45c1775

Browse files
Release 4.12.0.
1 parent 7dbdb2a commit 45c1775

File tree

8 files changed

+70
-4
lines changed

8 files changed

+70
-4
lines changed

.github/workflows/api-docs.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: API docs
2+
3+
on:
4+
push:
5+
tags: ['[0-9]+.[0-9]+*']
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
api-docs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
with:
17+
path: code
18+
persist-credentials: false
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '10.x'
23+
cache: 'npm'
24+
cache-dependency-path: code/package-lock.json
25+
- name: Build API docs
26+
run: npm ci && npm run build && npm run typedoc
27+
working-directory: code
28+
- name: Checkout pages
29+
uses: actions/checkout@v3
30+
with:
31+
ref: gh-pages
32+
path: pages
33+
- name: Deploy pages
34+
run: |
35+
SDK_VERSION_FOLDER=`echo "$SDK_VERSION" | awk --field-separator '.' '{print $1".x";}'`
36+
37+
# Create .nojekyll if it doesn't exist yet
38+
touch .nojekyll
39+
40+
mkdir -p "$SDK_VERSION_FOLDER"
41+
rsync --quiet --archive --checksum --delete --exclude .git ../code/docs/ "$SDK_VERSION_FOLDER/"
42+
# Remove .nojekyll generated by TypeDoc
43+
if [ -f "$SDK_VERSION_FOLDER/.nojekyll" ]; then rm "$SDK_VERSION_FOLDER/.nojekyll"; fi
44+
if [ -e latest ]; then rm -r latest; fi
45+
ln -s "$SDK_VERSION_FOLDER" latest
46+
47+
git config user.email "$USER_EMAIL"
48+
git config user.name "$USER_NAME"
49+
git add --all .
50+
# Only commit when there are changes
51+
git diff --quiet && git diff --staged --quiet || git commit --message "Generated API docs for version ${SDK_VERSION}"
52+
git push
53+
shell: bash
54+
working-directory: pages
55+
env:
56+
SDK_VERSION: ${{ github.ref_name }}
57+
USER_EMAIL: ${{ github.event.pusher.email }}
58+
USER_NAME: ${{ github.event.pusher.name }}

__tests__/unit/utils/communicator.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe("communicator", () => {
148148
expect(error).not.toBeNull();
149149
expect(error!.status).toBe(200);
150150
expect(error!.body).toBe(responseBody);
151-
expect(error!.message).toBe("Unexpected token N in JSON at position 0");
151+
expect(error!.message).toMatch(/Unexpected token .*/);
152152

153153
expect(response).toBeNull();
154154

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "connect-sdk-nodejs",
3-
"version": "4.11.0",
3+
"version": "4.12.0",
44
"description": "SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
55
"homepage": "https://github.com/Ingenico-ePayments/connect-sdk-nodejs#readme",
66
"bugs": {

schemas/payment/CreatePaymentRequest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,6 +1908,9 @@
19081908
"SchemeTokenData" : {
19091909
"type" : "object",
19101910
"properties" : {
1911+
"cardholderName" : {
1912+
"type" : "string"
1913+
},
19111914
"cryptogram" : {
19121915
"type" : "string"
19131916
},

src/model/domain/hostedcheckout/definitions/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { GPayThreeDSecure, Payment, PaymentCreationReferences } from "../../paym
77

88
export interface CreatedPaymentOutput {
99
displayedData?: DisplayedData | null;
10+
isCheckedRememberMe?: boolean | null;
1011
payment?: Payment | null;
1112
paymentCreationReferences?: PaymentCreationReferences | null;
1213
/**

src/model/domain/payment/definitions/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ export interface PaymentAccountOnFile {
658658
}
659659

660660
export interface PaymentCreationOutput extends PaymentCreationReferences {
661+
isCheckedRememberMe?: boolean | null;
661662
isNewToken?: boolean | null;
662663
token?: string | null;
663664
tokenizationSucceeded?: boolean | null;
@@ -736,6 +737,7 @@ export interface PaymentReferences {
736737
merchantReference?: string | null;
737738
paymentReference?: string | null;
738739
providerId?: string | null;
740+
providerMerchantId?: string | null;
739741
providerReference?: string | null;
740742
referenceOrigPayment?: string | null;
741743
}
@@ -744,6 +746,7 @@ export interface PaymentStatusOutput extends OrderStatusOutput {
744746
isAuthorized?: boolean | null;
745747
isRefundable?: boolean | null;
746748
isRetriable?: boolean | null;
749+
providerRawOutput?: KeyValuePair[] | null;
747750
threeDSecureStatus?: string | null;
748751
}
749752

@@ -904,6 +907,7 @@ export interface RefundPaymentProduct840SpecificOutput {
904907
}
905908

906909
export interface SchemeTokenData {
910+
cardholderName?: string | null;
907911
cryptogram?: string | null;
908912
eci?: string | null;
909913
networkToken?: string | null;

src/utils/headers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface ServerMetaInfo {
1818
export function serverMetaInfo(sdkContext: SdkContext): Header {
1919
const info: ServerMetaInfo = {
2020
sdkCreator: "Ingenico",
21-
sdkIdentifier: "NodejsServerSDK/v4.11.0",
21+
sdkIdentifier: "NodejsServerSDK/v4.12.0",
2222
platformIdentifier: process.env["OS"] + " Node.js/" + process.versions.node
2323
};
2424
if (sdkContext.getIntegrator() !== null) {

0 commit comments

Comments
 (0)