@gradientedge/commercetools-utils 4.23.1 → 4.23.2

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.
@@ -77,7 +77,7 @@ export interface PaymentUpdate {
77
77
  readonly version: number;
78
78
  readonly actions: PaymentUpdateAction[];
79
79
  }
80
- export declare type PaymentUpdateAction = PaymentAddInterfaceInteractionAction | PaymentAddTransactionAction | PaymentChangeAmountPlannedAction | PaymentChangeTransactionInteractionIdAction | PaymentChangeTransactionStateAction | PaymentChangeTransactionTimestampAction | PaymentSetAnonymousIdAction | PaymentSetCustomFieldAction | PaymentSetCustomTypeAction | PaymentSetCustomerAction | PaymentSetInterfaceIdAction | PaymentSetKeyAction | PaymentSetMethodInfoInterfaceAction | PaymentSetMethodInfoMethodAction | PaymentSetMethodInfoNameAction | PaymentSetStatusInterfaceCodeAction | PaymentSetStatusInterfaceTextAction | PaymentSetTransactionCustomFieldAction | PaymentSetTransactionCustomTypeAction | PaymentTransitionStateAction;
80
+ export declare type PaymentUpdateAction = PaymentAddInterfaceInteractionAction | PaymentAddTransactionAction | PaymentChangeAmountPlannedAction | PaymentChangeTransactionInteractionIdAction | PaymentChangeTransactionStateAction | PaymentChangeTransactionTimestampAction | PaymentSetAmountPaidAction | PaymentSetAmountRefundedAction | PaymentSetAnonymousIdAction | PaymentSetAuthorizationAction | PaymentSetCustomFieldAction | PaymentSetCustomTypeAction | PaymentSetCustomerAction | PaymentSetExternalIdAction | PaymentSetInterfaceIdAction | PaymentSetKeyAction | PaymentSetMethodInfoInterfaceAction | PaymentSetMethodInfoMethodAction | PaymentSetMethodInfoNameAction | PaymentSetStatusInterfaceCodeAction | PaymentSetStatusInterfaceTextAction | PaymentSetTransactionCustomFieldAction | PaymentSetTransactionCustomTypeAction | PaymentTransitionStateAction;
81
81
  export interface Transaction {
82
82
  readonly id: string;
83
83
  readonly timestamp?: string;
@@ -125,10 +125,23 @@ export interface PaymentChangeTransactionTimestampAction {
125
125
  readonly transactionId: string;
126
126
  readonly timestamp: string;
127
127
  }
128
+ export interface PaymentSetAmountPaidAction {
129
+ readonly action: 'setAmountPaid';
130
+ readonly amount?: Money;
131
+ }
132
+ export interface PaymentSetAmountRefundedAction {
133
+ readonly action: 'setAmountRefunded';
134
+ readonly amount?: Money;
135
+ }
128
136
  export interface PaymentSetAnonymousIdAction {
129
137
  readonly action: 'setAnonymousId';
130
138
  readonly anonymousId?: string;
131
139
  }
140
+ export interface PaymentSetAuthorizationAction {
141
+ readonly action: 'setAuthorization';
142
+ readonly amount?: Money;
143
+ readonly until?: string;
144
+ }
132
145
  export interface PaymentSetCustomFieldAction {
133
146
  readonly action: 'setCustomField';
134
147
  readonly name: string;
@@ -143,6 +156,10 @@ export interface PaymentSetCustomerAction {
143
156
  readonly action: 'setCustomer';
144
157
  readonly customer?: CustomerResourceIdentifier;
145
158
  }
159
+ export interface PaymentSetExternalIdAction {
160
+ readonly action: 'setExternalId';
161
+ readonly externalId?: string;
162
+ }
146
163
  export interface PaymentSetInterfaceIdAction {
147
164
  readonly action: 'setInterfaceId';
148
165
  readonly interfaceId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/commercetools-utils",
3
- "version": "4.23.1",
3
+ "version": "4.23.2",
4
4
  "description": "Provide utility classes and functions for interacting with the commercetools API",
5
5
  "main": "./dist/ge-commercetools-utils-node.cjs.js",
6
6
  "module": "./dist/ge-commercetools-utils-node.esm.js",