@finteqhub/sdk-js 0.13.1 → 0.14.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  Notable changes to `@finteqhub/sdk-js`. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
4
4
 
5
+ ## 0.14.0
6
+
7
+ ### Breaking changes
8
+
9
+ - `transactionType` was removed from the `SubmitData` type. It was declared on two of the three variants (the saved-card variant with `customerAccountId` and the generic `Record<string, string>` one) but never read by the SDK: `submitForm` spreads the data straight into the request body. TypeScript callers that pass `transactionType` in an object literal now hit the excess property check and need to drop it; JavaScript callers are unaffected, since the spread still forwards whatever the caller supplies.
10
+
11
+ `transactionType` is unchanged on `OperationSession`, where the API returns it as part of the session. `TxType` is also unchanged: it is unused inside the SDK, but it is re-exported from the package root and stays part of the public API.
12
+
5
13
  ## 0.13.1
6
14
 
7
15
  ### Changed
@@ -118,7 +118,6 @@ export declare type SubmitData = {
118
118
  payer: Payer;
119
119
  };
120
120
  paymentMethod: string;
121
- transactionType: string;
122
121
  } | {
123
122
  credentials: {
124
123
  billingAddress: Address;
@@ -129,7 +128,6 @@ export declare type SubmitData = {
129
128
  } | {
130
129
  credentials: Record<string, string>;
131
130
  paymentMethod: string;
132
- transactionType: string;
133
131
  };
134
132
  export declare type ProcessOperationRedirectResponse = {
135
133
  type: "redirect";
@@ -1,3 +1,3 @@
1
1
  export declare const SDK_HEADER_NAME = "x-pgw-sdk";
2
- export declare const SDK_VERSION = "0.13.1";
2
+ export declare const SDK_VERSION = "0.14.0-beta.6";
3
3
  export declare const SDK_HEADER_VALUE: string;
@@ -1,3 +1,3 @@
1
1
  export const SDK_HEADER_NAME = "x-pgw-sdk";
2
- export const SDK_VERSION = "0.13.1";
2
+ export const SDK_VERSION = "0.14.0-beta.6";
3
3
  export const SDK_HEADER_VALUE = `sdk-js/${SDK_VERSION}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finteqhub/sdk-js",
3
- "version": "0.13.1",
3
+ "version": "0.14.0-beta.6",
4
4
  "description": "SDK for interacting with FinteqHub processing API",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",