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

Commit

Permalink
Release 4.12.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments committed Jun 28, 2023
1 parent 7dbdb2a commit 45c1775
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 4 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/api-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: API docs

on:
push:
tags: ['[0-9]+.[0-9]+*']

permissions:
contents: write

jobs:
api-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: code
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '10.x'
cache: 'npm'
cache-dependency-path: code/package-lock.json
- name: Build API docs
run: npm ci && npm run build && npm run typedoc
working-directory: code
- name: Checkout pages
uses: actions/checkout@v3
with:
ref: gh-pages
path: pages
- name: Deploy pages
run: |
SDK_VERSION_FOLDER=`echo "$SDK_VERSION" | awk --field-separator '.' '{print $1".x";}'`
# Create .nojekyll if it doesn't exist yet
touch .nojekyll
mkdir -p "$SDK_VERSION_FOLDER"
rsync --quiet --archive --checksum --delete --exclude .git ../code/docs/ "$SDK_VERSION_FOLDER/"
# Remove .nojekyll generated by TypeDoc
if [ -f "$SDK_VERSION_FOLDER/.nojekyll" ]; then rm "$SDK_VERSION_FOLDER/.nojekyll"; fi
if [ -e latest ]; then rm -r latest; fi
ln -s "$SDK_VERSION_FOLDER" latest
git config user.email "$USER_EMAIL"
git config user.name "$USER_NAME"
git add --all .
# Only commit when there are changes
git diff --quiet && git diff --staged --quiet || git commit --message "Generated API docs for version ${SDK_VERSION}"
git push
shell: bash
working-directory: pages
env:
SDK_VERSION: ${{ github.ref_name }}
USER_EMAIL: ${{ github.event.pusher.email }}
USER_NAME: ${{ github.event.pusher.name }}
2 changes: 1 addition & 1 deletion __tests__/unit/utils/communicator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ describe("communicator", () => {
expect(error).not.toBeNull();
expect(error!.status).toBe(200);
expect(error!.body).toBe(responseBody);
expect(error!.message).toBe("Unexpected token N in JSON at position 0");
expect(error!.message).toMatch(/Unexpected token .*/);

expect(response).toBeNull();

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "connect-sdk-nodejs",
"version": "4.11.0",
"version": "4.12.0",
"description": "SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
"homepage": "https://github.com/Ingenico-ePayments/connect-sdk-nodejs#readme",
"bugs": {
Expand Down
3 changes: 3 additions & 0 deletions schemas/payment/CreatePaymentRequest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1908,6 +1908,9 @@
"SchemeTokenData" : {
"type" : "object",
"properties" : {
"cardholderName" : {
"type" : "string"
},
"cryptogram" : {
"type" : "string"
},
Expand Down
1 change: 1 addition & 0 deletions src/model/domain/hostedcheckout/definitions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { GPayThreeDSecure, Payment, PaymentCreationReferences } from "../../paym

export interface CreatedPaymentOutput {
displayedData?: DisplayedData | null;
isCheckedRememberMe?: boolean | null;
payment?: Payment | null;
paymentCreationReferences?: PaymentCreationReferences | null;
/**
Expand Down
4 changes: 4 additions & 0 deletions src/model/domain/payment/definitions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ export interface PaymentAccountOnFile {
}

export interface PaymentCreationOutput extends PaymentCreationReferences {
isCheckedRememberMe?: boolean | null;
isNewToken?: boolean | null;
token?: string | null;
tokenizationSucceeded?: boolean | null;
Expand Down Expand Up @@ -736,6 +737,7 @@ export interface PaymentReferences {
merchantReference?: string | null;
paymentReference?: string | null;
providerId?: string | null;
providerMerchantId?: string | null;
providerReference?: string | null;
referenceOrigPayment?: string | null;
}
Expand All @@ -744,6 +746,7 @@ export interface PaymentStatusOutput extends OrderStatusOutput {
isAuthorized?: boolean | null;
isRefundable?: boolean | null;
isRetriable?: boolean | null;
providerRawOutput?: KeyValuePair[] | null;
threeDSecureStatus?: string | null;
}

Expand Down Expand Up @@ -904,6 +907,7 @@ export interface RefundPaymentProduct840SpecificOutput {
}

export interface SchemeTokenData {
cardholderName?: string | null;
cryptogram?: string | null;
eci?: string | null;
networkToken?: string | null;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface ServerMetaInfo {
export function serverMetaInfo(sdkContext: SdkContext): Header {
const info: ServerMetaInfo = {
sdkCreator: "Ingenico",
sdkIdentifier: "NodejsServerSDK/v4.11.0",
sdkIdentifier: "NodejsServerSDK/v4.12.0",
platformIdentifier: process.env["OS"] + " Node.js/" + process.versions.node
};
if (sdkContext.getIntegrator() !== null) {
Expand Down

0 comments on commit 45c1775

Please sign in to comment.