@commercetools/connect-payments-sdk 0.20.0 → 0.20.1

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
@@ -1,5 +1,11 @@
1
1
  # @commercetools/connect-payments-sdk
2
2
 
3
+ ## 0.20.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 7fc7ae1: Fix UpdatePayment type. Use CustomFieldsDraft instead of CustomFields
8
+
3
9
  ## 0.20.0
4
10
 
5
11
  ### Minor Changes
@@ -4,6 +4,6 @@ export { SessionService as CommercetoolsSessionService, Session } from './types/
4
4
  export { AuthorizationService as CommercetoolsAuthorizationService } from './types/authorization.type';
5
5
  export { OrderService as CommercetoolsOrderService } from './types/order.type';
6
6
  export { CommercetoolsClient } from './types/api.type';
7
- export { CustomFields, Cart, Order, OrderPagedQueryResponse, Payment, PaymentDraft, Money, LineItem, CustomLineItem, Address, Transaction, TransactionType, TransactionState, ShippingInfo, } from '@commercetools/platform-sdk';
7
+ export { CustomFieldsDraft, Cart, Order, OrderPagedQueryResponse, Payment, PaymentDraft, Money, LineItem, CustomLineItem, Address, Transaction, TransactionType, TransactionState, ShippingInfo, } from '@commercetools/platform-sdk';
8
8
  export * as CurrencyConverters from './helpers/currency.converter';
9
9
  export * as TaxRateConverter from './helpers/taxrate.converter';
@@ -1,4 +1,4 @@
1
- import { CustomFields, Money, Payment, PaymentDraft, TransactionState, TransactionType } from '@commercetools/platform-sdk';
1
+ import { CustomFieldsDraft, Money, Payment, PaymentDraft, TransactionState, TransactionType } from '@commercetools/platform-sdk';
2
2
  import { CommercetoolsAPI } from './api.type';
3
3
  import { Logger } from '../../logger';
4
4
  export type PaymentAmount = {
@@ -30,10 +30,10 @@ export type TransactionData = {
30
30
  export type UpdatePayment = {
31
31
  id: string;
32
32
  pspReference?: string;
33
- pspInteractions?: CustomFields[];
33
+ pspInteractions?: CustomFieldsDraft[];
34
34
  transaction?: TransactionData;
35
35
  paymentMethod?: string;
36
- customFields?: CustomFields;
36
+ customFields?: CustomFieldsDraft;
37
37
  };
38
38
  /**
39
39
  * Payment service interface exposes methods to interact with the commercetools platform API.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools/connect-payments-sdk",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "Payment SDK for commercetools payment connectors",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",