@gradientedge/commercetools-utils 4.30.1 → 4.30.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.
|
@@ -13,10 +13,6 @@ 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;
|
|
20
16
|
readonly paymentMethodInfo: PaymentMethodInfo;
|
|
21
17
|
readonly paymentStatus: PaymentStatus;
|
|
22
18
|
readonly transactions: Transaction[];
|
|
@@ -30,10 +26,6 @@ export interface PaymentDraft {
|
|
|
30
26
|
readonly externalId?: string;
|
|
31
27
|
readonly interfaceId?: string;
|
|
32
28
|
readonly amountPlanned: Money;
|
|
33
|
-
readonly amountAuthorized?: Money;
|
|
34
|
-
readonly authorizedUntil?: string;
|
|
35
|
-
readonly amountPaid?: Money;
|
|
36
|
-
readonly amountRefunded?: Money;
|
|
37
29
|
readonly paymentMethodInfo?: PaymentMethodInfo;
|
|
38
30
|
readonly paymentStatus?: PaymentStatusDraft;
|
|
39
31
|
readonly transactions?: TransactionDraft[];
|
|
@@ -77,7 +69,7 @@ export interface PaymentUpdate {
|
|
|
77
69
|
readonly version: number;
|
|
78
70
|
readonly actions: PaymentUpdateAction[];
|
|
79
71
|
}
|
|
80
|
-
export declare type PaymentUpdateAction = PaymentAddInterfaceInteractionAction | PaymentAddTransactionAction | PaymentChangeAmountPlannedAction | PaymentChangeTransactionInteractionIdAction | PaymentChangeTransactionStateAction | PaymentChangeTransactionTimestampAction |
|
|
72
|
+
export declare type PaymentUpdateAction = PaymentAddInterfaceInteractionAction | PaymentAddTransactionAction | PaymentChangeAmountPlannedAction | PaymentChangeTransactionInteractionIdAction | PaymentChangeTransactionStateAction | PaymentChangeTransactionTimestampAction | PaymentSetAnonymousIdAction | PaymentSetCustomFieldAction | PaymentSetCustomTypeAction | PaymentSetCustomerAction | PaymentSetExternalIdAction | PaymentSetInterfaceIdAction | PaymentSetKeyAction | PaymentSetMethodInfoInterfaceAction | PaymentSetMethodInfoMethodAction | PaymentSetMethodInfoNameAction | PaymentSetStatusInterfaceCodeAction | PaymentSetStatusInterfaceTextAction | PaymentSetTransactionCustomFieldAction | PaymentSetTransactionCustomTypeAction | PaymentTransitionStateAction;
|
|
81
73
|
export interface Transaction {
|
|
82
74
|
readonly id: string;
|
|
83
75
|
readonly timestamp?: string;
|
|
@@ -125,23 +117,10 @@ export interface PaymentChangeTransactionTimestampAction {
|
|
|
125
117
|
readonly transactionId: string;
|
|
126
118
|
readonly timestamp: string;
|
|
127
119
|
}
|
|
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
|
-
}
|
|
136
120
|
export interface PaymentSetAnonymousIdAction {
|
|
137
121
|
readonly action: 'setAnonymousId';
|
|
138
122
|
readonly anonymousId?: string;
|
|
139
123
|
}
|
|
140
|
-
export interface PaymentSetAuthorizationAction {
|
|
141
|
-
readonly action: 'setAuthorization';
|
|
142
|
-
readonly amount?: Money;
|
|
143
|
-
readonly until?: string;
|
|
144
|
-
}
|
|
145
124
|
export interface PaymentSetCustomFieldAction {
|
|
146
125
|
readonly action: 'setCustomField';
|
|
147
126
|
readonly name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/commercetools-utils",
|
|
3
|
-
"version": "4.30.
|
|
3
|
+
"version": "4.30.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",
|