@gradientedge/commercetools-utils 4.23.0 → 4.23.3

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.
@@ -25,6 +25,7 @@ export * from './review';
25
25
  export * from './scalar-types';
26
26
  export * from './shipping-method';
27
27
  export * from './shopping-list';
28
+ export * from './standalone-price';
28
29
  export * from './state';
29
30
  export * from './store';
30
31
  export * from './subscription';
@@ -13,6 +13,10 @@ export interface Payment extends BaseResource {
13
13
  readonly anonymousId?: string;
14
14
  readonly interfaceId?: string;
15
15
  readonly amountPlanned: TypedMoney;
16
+ readonly amountAuthorized?: TypedMoney;
17
+ readonly authorizedUntil?: string;
18
+ readonly amountPaid?: TypedMoney;
19
+ readonly amountRefunded?: TypedMoney;
16
20
  readonly paymentMethodInfo: PaymentMethodInfo;
17
21
  readonly paymentStatus: PaymentStatus;
18
22
  readonly transactions: Transaction[];
@@ -73,7 +77,7 @@ export interface PaymentUpdate {
73
77
  readonly version: number;
74
78
  readonly actions: PaymentUpdateAction[];
75
79
  }
76
- 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;
77
81
  export interface Transaction {
78
82
  readonly id: string;
79
83
  readonly timestamp?: string;
@@ -121,10 +125,23 @@ export interface PaymentChangeTransactionTimestampAction {
121
125
  readonly transactionId: string;
122
126
  readonly timestamp: string;
123
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
+ }
124
136
  export interface PaymentSetAnonymousIdAction {
125
137
  readonly action: 'setAnonymousId';
126
138
  readonly anonymousId?: string;
127
139
  }
140
+ export interface PaymentSetAuthorizationAction {
141
+ readonly action: 'setAuthorization';
142
+ readonly amount?: Money;
143
+ readonly until?: string;
144
+ }
128
145
  export interface PaymentSetCustomFieldAction {
129
146
  readonly action: 'setCustomField';
130
147
  readonly name: string;
@@ -139,6 +156,10 @@ export interface PaymentSetCustomerAction {
139
156
  readonly action: 'setCustomer';
140
157
  readonly customer?: CustomerResourceIdentifier;
141
158
  }
159
+ export interface PaymentSetExternalIdAction {
160
+ readonly action: 'setExternalId';
161
+ readonly externalId?: string;
162
+ }
142
163
  export interface PaymentSetInterfaceIdAction {
143
164
  readonly action: 'setInterfaceId';
144
165
  readonly interfaceId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/commercetools-utils",
3
- "version": "4.23.0",
3
+ "version": "4.23.3",
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",