@commercetools/platform-sdk
Advanced tools
Comparing version 2.5.0 to 2.6.0
# @commercetools/platform-sdk | ||
## 2.6.0 | ||
### Minor Changes | ||
- [#241](https://github.com/commercetools/commercetools-sdk-typescript/pull/241) [`85f5be3`](https://github.com/commercetools/commercetools-sdk-typescript/commit/85f5be349a9b0fa46539259981bfd8d5fc2ffdc6) Thanks [@ajimae](https://github.com/ajimae)! - Releasing the TS SDK with the following changelogs | ||
- added functionalities to extend client user agent | ||
- custom field added to OrderFromCardDraft | ||
### Patch Changes | ||
- Updated dependencies [[`85f5be3`](https://github.com/commercetools/commercetools-sdk-typescript/commit/85f5be349a9b0fa46539259981bfd8d5fc2ffdc6)]: | ||
- @commercetools/sdk-client-v2@1.3.0 | ||
## 2.5.0 | ||
@@ -4,0 +18,0 @@ |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { OrderEditApply } from '../../models/order-edit'; | ||
import { OrderEdit, OrderEditApply } from '../../models/order-edit'; | ||
import { executeRequest } from '../../shared/utils/common-types'; | ||
@@ -32,3 +32,3 @@ import { ApiRequest } from '../../shared/utils/requests-utils'; | ||
}; | ||
}): ApiRequest<void>; | ||
}): ApiRequest<OrderEdit>; | ||
} |
@@ -26,5 +26,2 @@ /** | ||
}); | ||
/** | ||
* Retrieves the representation of an extension by its id. | ||
*/ | ||
get(methodArgs?: { | ||
@@ -31,0 +28,0 @@ queryArgs?: { |
@@ -26,5 +26,2 @@ /** | ||
}); | ||
/** | ||
* Retrieves the representation of an extension by its key. | ||
*/ | ||
get(methodArgs?: { | ||
@@ -31,0 +28,0 @@ queryArgs?: { |
@@ -46,5 +46,2 @@ /** | ||
}): ApiRequest<ExtensionPagedQueryResponse>; | ||
/** | ||
* Currently, a maximum of 25 extensions can be created per project. | ||
*/ | ||
post(methodArgs: { | ||
@@ -51,0 +48,0 @@ queryArgs?: { |
@@ -10,2 +10,3 @@ /** | ||
import { ByProjectKeyInventoryByIDRequestBuilder } from './by-project-key-inventory-by-id-request-builder'; | ||
import { ByProjectKeyInventoryKeyByKeyRequestBuilder } from './by-project-key-inventory-key-by-key-request-builder'; | ||
export declare class ByProjectKeyInventoryRequestBuilder { | ||
@@ -29,2 +30,5 @@ protected readonly args: { | ||
}): ByProjectKeyInventoryByIDRequestBuilder; | ||
withKey(childPathArgs: { | ||
key: string; | ||
}): ByProjectKeyInventoryKeyByKeyRequestBuilder; | ||
get(methodArgs?: { | ||
@@ -31,0 +35,0 @@ queryArgs?: { |
@@ -7,3 +7,3 @@ /** | ||
import { ProductsInStorePagedQueryResponse } from '../../models/product-selection'; | ||
import { executeRequest } from '../../shared/utils/common-types'; | ||
import { executeRequest, QueryParam } from '../../shared/utils/common-types'; | ||
import { ApiRequest } from '../../shared/utils/requests-utils'; | ||
@@ -31,2 +31,6 @@ export declare class ByProjectKeyInStoreKeyByStoreKeyProductSelectionAssignmentsRequestBuilder { | ||
get(methodArgs?: { | ||
queryArgs?: { | ||
expand?: string | string[]; | ||
[key: string]: QueryParam; | ||
}; | ||
headers?: { | ||
@@ -33,0 +37,0 @@ [key: string]: string | string[]; |
@@ -647,8 +647,2 @@ /** | ||
/** | ||
* The currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | ||
* | ||
* | ||
*/ | ||
readonly currencyCode: string; | ||
/** | ||
* amount in the smallest indivisible unit of a currency, such as | ||
@@ -663,2 +657,8 @@ * | ||
/** | ||
* The currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | ||
* | ||
* | ||
*/ | ||
readonly currencyCode: string; | ||
/** | ||
* number of digits after the decimal separator | ||
@@ -679,8 +679,2 @@ * | ||
/** | ||
* The currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | ||
* | ||
* | ||
*/ | ||
readonly currencyCode: string; | ||
/** | ||
* amount in the smallest indivisible unit of a currency, such as | ||
@@ -695,2 +689,8 @@ * | ||
/** | ||
* The currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | ||
* | ||
* | ||
*/ | ||
readonly currencyCode: string; | ||
/** | ||
* number of digits after the decimal separator | ||
@@ -742,10 +742,5 @@ * | ||
/** | ||
* amount in the smallest indivisible unit of a currency, such as | ||
* | ||
* * cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as 500). | ||
* * the value in the major unit for currencies without minor units, like JPY (5 JPY is specified as 5). | ||
* | ||
* | ||
*/ | ||
readonly centAmount: number; | ||
readonly centAmount?: number; | ||
/** | ||
@@ -752,0 +747,0 @@ * The currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). |
@@ -12,2 +12,3 @@ /** | ||
export declare type AnonymousCartSignInMode = 'MergeWithExistingCustomerCart' | 'UseAsNewActiveCustomerCart'; | ||
export declare type AuthenticationMode = 'ExternalAuth' | 'Password'; | ||
export interface Customer extends BaseResource { | ||
@@ -59,5 +60,6 @@ /** | ||
/** | ||
* Only present with the default `authenticationMode`, `Password`. | ||
* | ||
*/ | ||
readonly password: string; | ||
readonly password?: string; | ||
/** | ||
@@ -154,2 +156,7 @@ * | ||
readonly stores?: StoreKeyReference[]; | ||
/** | ||
* Defines whether a Customer has a password. | ||
* | ||
*/ | ||
readonly authenticationMode?: AuthenticationMode; | ||
} | ||
@@ -215,5 +222,6 @@ export interface CustomerChangePassword { | ||
/** | ||
* Only optional with `authenticationMode` set to `ExternalAuth`. | ||
* | ||
*/ | ||
readonly password: string; | ||
readonly password?: string; | ||
/** | ||
@@ -331,2 +339,7 @@ * | ||
readonly stores?: StoreResourceIdentifier[]; | ||
/** | ||
* Defines whether a password is required for the Customer that is used for platform-internal authentication. | ||
* | ||
*/ | ||
readonly authenticationMode?: AuthenticationMode; | ||
} | ||
@@ -485,3 +498,3 @@ export interface CustomerEmailVerify { | ||
} | ||
export declare type CustomerUpdateAction = CustomerAddAddressAction | CustomerAddBillingAddressIdAction | CustomerAddShippingAddressIdAction | CustomerAddStoreAction | CustomerChangeAddressAction | CustomerChangeEmailAction | CustomerRemoveAddressAction | CustomerRemoveBillingAddressIdAction | CustomerRemoveShippingAddressIdAction | CustomerRemoveStoreAction | CustomerSetAddressCustomFieldAction | CustomerSetAddressCustomTypeAction | CustomerSetCompanyNameAction | CustomerSetCustomFieldAction | CustomerSetCustomTypeAction | CustomerSetCustomerGroupAction | CustomerSetCustomerNumberAction | CustomerSetDateOfBirthAction | CustomerSetDefaultBillingAddressAction | CustomerSetDefaultShippingAddressAction | CustomerSetExternalIdAction | CustomerSetFirstNameAction | CustomerSetKeyAction | CustomerSetLastNameAction | CustomerSetLocaleAction | CustomerSetMiddleNameAction | CustomerSetSalutationAction | CustomerSetStoresAction | CustomerSetTitleAction | CustomerSetVatIdAction; | ||
export declare type CustomerUpdateAction = CustomerAddAddressAction | CustomerAddBillingAddressIdAction | CustomerAddShippingAddressIdAction | CustomerAddStoreAction | CustomerChangeAddressAction | CustomerChangeEmailAction | CustomerRemoveAddressAction | CustomerRemoveBillingAddressIdAction | CustomerRemoveShippingAddressIdAction | CustomerRemoveStoreAction | CustomerSetAddressCustomFieldAction | CustomerSetAddressCustomTypeAction | CustomerSetAuthenticationModeAction | CustomerSetCompanyNameAction | CustomerSetCustomFieldAction | CustomerSetCustomTypeAction | CustomerSetCustomerGroupAction | CustomerSetCustomerNumberAction | CustomerSetDateOfBirthAction | CustomerSetDefaultBillingAddressAction | CustomerSetDefaultShippingAddressAction | CustomerSetExternalIdAction | CustomerSetFirstNameAction | CustomerSetKeyAction | CustomerSetLastNameAction | CustomerSetLocaleAction | CustomerSetMiddleNameAction | CustomerSetSalutationAction | CustomerSetStoresAction | CustomerSetTitleAction | CustomerSetVatIdAction; | ||
export interface MyCustomerChangePassword { | ||
@@ -650,2 +663,14 @@ /** | ||
} | ||
export interface CustomerSetAuthenticationModeAction { | ||
readonly action: 'setAuthenticationMode'; | ||
/** | ||
* | ||
*/ | ||
readonly authMode: AuthenticationMode; | ||
/** | ||
* Required when `authMode` is `Password` | ||
* | ||
*/ | ||
readonly password?: string; | ||
} | ||
export interface CustomerSetCompanyNameAction { | ||
@@ -652,0 +677,0 @@ readonly action: 'setCompanyName'; |
@@ -9,19 +9,27 @@ /** | ||
/** | ||
* Unique ID of the Extension. | ||
* | ||
* | ||
*/ | ||
readonly id: string; | ||
/** | ||
* Current version of the Extension. | ||
* | ||
* | ||
*/ | ||
readonly version: number; | ||
/** | ||
* Date and time (UTC) the Extension was initially created. | ||
* | ||
* | ||
*/ | ||
readonly createdAt: string; | ||
/** | ||
* Date and time (UTC) the Extension was last updated. | ||
* | ||
* | ||
*/ | ||
readonly lastModifiedAt: string; | ||
/** | ||
* Present on resources created after 2019-02-01 except for [events not tracked](/client-logging#events-tracked). | ||
* Present on resources created after 1 February 2019 except for [events not tracked](/../api/client-logging#events-tracked). | ||
* | ||
@@ -32,3 +40,3 @@ * | ||
/** | ||
* Present on resources created after 2019-02-01 except for [events not tracked](/client-logging#events-tracked). | ||
* Present on resources created after 1 February 2019 except for [events not tracked](/../api/client-logging#events-tracked). | ||
* | ||
@@ -39,34 +47,60 @@ * | ||
/** | ||
* User-defined unique identifier for the Extension. | ||
* Keys can only contain alphanumeric characters, underscores, and hyphens. | ||
* | ||
* | ||
*/ | ||
readonly key?: string; | ||
/** | ||
* Information necessary for the commercetools Platform to call the Extension. | ||
* | ||
* | ||
*/ | ||
readonly destination: ExtensionDestination; | ||
/** | ||
* Describes what triggers the Extension. | ||
* | ||
* | ||
*/ | ||
readonly triggers: ExtensionTrigger[]; | ||
/** | ||
* The maximum time the commercetools platform waits for a response from the extension. | ||
* If not present, `2000` (2 seconds) is used. | ||
* Maximum time (in milliseconds) the commercetools Platform waits for a response from the Extension. | ||
* If no timeout is provided, the default value is used for all types of Extensions. | ||
* The maximum value is 10000 ms (10 seconds) for `payment` Extensions and 2000 ms (2 seconds) for all other Extensions. | ||
* | ||
* | ||
*/ | ||
readonly timeoutInMs?: number; | ||
} | ||
/** | ||
* An Extension gets called during any of the following requests of an API call, but before the result is persisted. | ||
* | ||
*/ | ||
export declare type ExtensionAction = 'Create' | 'Update'; | ||
/** | ||
* Generic type for destinations. | ||
*/ | ||
export declare type ExtensionDestination = AWSLambdaDestination | HttpDestination; | ||
/** | ||
* We recommend creating an Identify and Access Management (IAM) user with an `accessKey` and `accessSecret` pair, specifically for each Extension that only has the `lambda:InvokeFunction` permission on this function. | ||
* | ||
*/ | ||
export interface AWSLambdaDestination { | ||
readonly type: 'AWSLambda'; | ||
/** | ||
* Amazon Resource Name (ARN) of the Lambda function in the format `arn:aws:lambda:<region>:<accountid>:function:<functionName>`. | ||
* | ||
* | ||
*/ | ||
readonly arn: string; | ||
/** | ||
* Partially hidden on retrieval for security reasons. | ||
* | ||
* | ||
*/ | ||
readonly accessKey: string; | ||
/** | ||
* Partially hidden on retrieval for security reasons. | ||
* | ||
* | ||
*/ | ||
@@ -77,22 +111,29 @@ readonly accessSecret: string; | ||
/** | ||
* User-specific unique identifier for the extension | ||
* User-defined unique identifier for the Extension. | ||
* Keys can only contain alphanumeric characters, underscores, and hyphens. | ||
* | ||
* | ||
*/ | ||
readonly key?: string; | ||
/** | ||
* Details where the extension can be reached | ||
* Defines where the Extension can be reached. | ||
* | ||
* | ||
*/ | ||
readonly destination: ExtensionDestination; | ||
/** | ||
* Describes what triggers the extension | ||
* Describes what triggers the Extension. | ||
* | ||
* | ||
*/ | ||
readonly triggers: ExtensionTrigger[]; | ||
/** | ||
* The maximum time the commercetools platform waits for a response from the extension. | ||
* The maximum value is 2000 ms (2 seconds). | ||
* This limit can be increased per project after we review the performance impact. | ||
* Please contact Support via the [Support Portal](https://support.commercetools.com) and provide the region, project key and use case. | ||
* Maximum time (in milliseconds) the commercetools Platform waits for a response from the Extension. | ||
* If no timeout is provided, the default value is used for all types of Extensions. | ||
* The maximum value is 10000 ms (10 seconds) for `payment` Extensions and 2000 ms (2 seconds) for all other Extensions. | ||
* | ||
* This limit can be increased per Project after we review the performance impact. | ||
* Please contact our support via the [support portal](https://support.commercetools.com) and provide the Region, Project key, and use case. | ||
* | ||
* | ||
*/ | ||
@@ -103,40 +144,70 @@ readonly timeoutInMs?: number; | ||
/** | ||
* `Create` or `Update` request. | ||
* | ||
* | ||
*/ | ||
readonly action: ExtensionAction; | ||
/** | ||
* Expanded reference to the resource that triggered the Extension. | ||
* | ||
* | ||
*/ | ||
readonly resource: Reference; | ||
} | ||
/** | ||
* [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with `results` containing an array of [Extension](ctp:api:type:Extension). | ||
* | ||
*/ | ||
export interface ExtensionPagedQueryResponse { | ||
/** | ||
* Number of results requested in the query request. | ||
* | ||
* | ||
*/ | ||
readonly limit: number; | ||
/** | ||
* Offset supplied by the client or server default. It is the number of elements skipped, not a page number. | ||
* | ||
* | ||
*/ | ||
readonly count: number; | ||
readonly offset: number; | ||
/** | ||
* Actual number of results returned. | ||
* | ||
* | ||
*/ | ||
readonly total?: number; | ||
readonly count: number; | ||
/** | ||
* Total number of results matching the query. | ||
* This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency). | ||
* This field is returned by default. | ||
* For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`. | ||
* When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries). | ||
* | ||
* | ||
*/ | ||
readonly offset: number; | ||
readonly total?: number; | ||
/** | ||
* Extensions matching the query. | ||
* | ||
* | ||
*/ | ||
readonly results: Extension[]; | ||
} | ||
/** | ||
* Extensions are available for: | ||
* | ||
*/ | ||
export declare type ExtensionResourceTypeId = 'cart' | 'customer' | 'order' | 'payment'; | ||
export interface ExtensionTrigger { | ||
/** | ||
* `cart`, `order`, `payment`, and `customer` are supported. | ||
* | ||
* | ||
*/ | ||
readonly resourceTypeId: ExtensionResourceTypeId; | ||
/** | ||
* `Create` and `Update` requests are supported. | ||
* | ||
* | ||
*/ | ||
@@ -147,7 +218,11 @@ readonly actions: ExtensionAction[]; | ||
/** | ||
* Expected version of the Extension on which the changes should be applied. If the expected version does not match the actual version, a [409 Conflict](/../api/errors#409-conflict) will be returned. | ||
* | ||
* | ||
*/ | ||
readonly version: number; | ||
/** | ||
* Update actions to be performed on the Extension. | ||
* | ||
* | ||
*/ | ||
@@ -157,10 +232,18 @@ readonly actions: ExtensionUpdateAction[]; | ||
export declare type ExtensionUpdateAction = ExtensionChangeDestinationAction | ExtensionChangeTriggersAction | ExtensionSetKeyAction | ExtensionSetTimeoutInMsAction; | ||
/** | ||
* We recommend an encrypted `HTTPS` connection for production setups. However, we also accept unencrypted `HTTP` connections for development purposes. HTTP redirects will not be followed and cache headers will be ignored. | ||
* | ||
*/ | ||
export interface HttpDestination { | ||
readonly type: 'HTTP'; | ||
/** | ||
* URL to the target destination. | ||
* | ||
* | ||
*/ | ||
readonly url: string; | ||
/** | ||
* Authentication methods (such as `Basic` or `Bearer`). | ||
* | ||
* | ||
*/ | ||
@@ -170,13 +253,30 @@ readonly authentication?: HttpDestinationAuthentication; | ||
export declare type HttpDestinationAuthentication = AuthorizationHeaderAuthentication | AzureFunctionsAuthentication; | ||
/** | ||
* The `Authorization` header will be set to the content of `headerValue`. The authentication scheme (such as `Basic` or `Bearer`) should be included in the `headerValue`. | ||
* | ||
* For example, the `headerValue` for [Basic Authentication](https://datatracker.ietf.org/doc/html/rfc7617) should be set to `Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==`. | ||
* | ||
*/ | ||
export interface AuthorizationHeaderAuthentication { | ||
readonly type: 'AuthorizationHeader'; | ||
/** | ||
* Partially hidden on retrieval for security reasons. | ||
* | ||
* | ||
*/ | ||
readonly headerValue: string; | ||
} | ||
/** | ||
* To protect your Azure Function, set its `authLevel` to `function` and provide the functions key. The commercetools Platform will set the `x-functions-key` header. For more information, see the [Azure Functions documentation](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook#keys). | ||
* | ||
* To protect the secret key from being exposed, remove the code parameter and secret key from the URL. For example, use `https://foo.azurewebsites.net/api/bar` instead of | ||
* `https://foo.azurewebsites.net/api/bar?code=secret`. | ||
* | ||
*/ | ||
export interface AzureFunctionsAuthentication { | ||
readonly type: 'AzureFunctions'; | ||
/** | ||
* Partially hidden on retrieval for security reasons. | ||
* | ||
* | ||
*/ | ||
@@ -188,3 +288,5 @@ readonly key: string; | ||
/** | ||
* New value to set. Must not be empty. | ||
* | ||
* | ||
*/ | ||
@@ -196,3 +298,5 @@ readonly destination: ExtensionDestination; | ||
/** | ||
* New value to set. Must not be empty. | ||
* | ||
* | ||
*/ | ||
@@ -204,4 +308,5 @@ readonly triggers: ExtensionTrigger[]; | ||
/** | ||
* If `key` is absent or `null`, this field will be removed if it exists. | ||
* Value to set. If empty, any existing value will be removed. | ||
* | ||
* | ||
*/ | ||
@@ -213,9 +318,12 @@ readonly key?: string; | ||
/** | ||
* The maximum time the commercetools platform waits for a response from the extension. | ||
* The maximum value is 2000 ms (2 seconds). | ||
* This limit can be increased per project after we review the performance impact. | ||
* Please contact Support via the support and provide the region, project key and use case. | ||
* Value to set. If not defined, the maximum value is used. | ||
* If no timeout is provided, the default value is used for all types of Extensions. | ||
* The maximum value is 10000 ms (10 seconds) for `payment` Extensions and 2000 ms (2 seconds) for all other Extensions. | ||
* | ||
* This limit can be increased per Project after we review the performance impact. | ||
* Please contact our support via the [Support Portal](https://support.commercetools.com/) and provide the Region, Project key, and use case. | ||
* | ||
* | ||
*/ | ||
readonly timeoutInMs?: number; | ||
} |
@@ -40,4 +40,11 @@ /** | ||
/** | ||
* User-defined unique identifier for the InventoryEntry. | ||
* Keys can only contain alphanumeric characters, underscores, and hyphens. | ||
* | ||
* | ||
*/ | ||
readonly key?: string; | ||
/** | ||
* | ||
*/ | ||
readonly sku: string; | ||
@@ -82,4 +89,11 @@ /** | ||
/** | ||
* User-defined unique identifier for the InventoryEntry. | ||
* Keys can only contain alphanumeric characters, underscores, and hyphens. | ||
* | ||
* | ||
*/ | ||
readonly key?: string; | ||
/** | ||
* | ||
*/ | ||
readonly supplyChannel?: ChannelResourceIdentifier; | ||
@@ -142,3 +156,3 @@ /** | ||
} | ||
export declare type InventoryEntryUpdateAction = InventoryEntryAddQuantityAction | InventoryEntryChangeQuantityAction | InventoryEntryRemoveQuantityAction | InventoryEntrySetCustomFieldAction | InventoryEntrySetCustomTypeAction | InventoryEntrySetExpectedDeliveryAction | InventoryEntrySetRestockableInDaysAction | InventoryEntrySetSupplyChannelAction; | ||
export declare type InventoryEntryUpdateAction = InventoryEntryAddQuantityAction | InventoryEntryChangeQuantityAction | InventoryEntryRemoveQuantityAction | InventoryEntrySetCustomFieldAction | InventoryEntrySetCustomTypeAction | InventoryEntrySetExpectedDeliveryAction | InventoryEntrySetKeyAction | InventoryEntrySetRestockableInDaysAction | InventoryEntrySetSupplyChannelAction; | ||
export interface InventoryPagedQueryResponse { | ||
@@ -227,2 +241,11 @@ /** | ||
} | ||
export interface InventoryEntrySetKeyAction { | ||
readonly action: 'setKey'; | ||
/** | ||
* Value to set. If empty, any existing value will be removed. | ||
* | ||
* | ||
*/ | ||
readonly key?: string; | ||
} | ||
export interface InventoryEntrySetRestockableInDaysAction { | ||
@@ -229,0 +252,0 @@ readonly action: 'setRestockableInDays'; |
@@ -156,3 +156,3 @@ /** | ||
*/ | ||
readonly custom?: CustomFields; | ||
readonly custom?: CustomFieldsDraft; | ||
/** | ||
@@ -403,3 +403,3 @@ * | ||
*/ | ||
readonly custom?: CustomFields; | ||
readonly custom?: CustomFieldsDraft; | ||
} | ||
@@ -406,0 +406,0 @@ export interface MyCartAddDiscountCodeAction { |
@@ -362,3 +362,3 @@ /** | ||
*/ | ||
readonly custom?: CustomFields; | ||
readonly custom?: CustomFieldsDraft; | ||
} | ||
@@ -365,0 +365,0 @@ export interface StagedOrderAddDiscountCodeAction { |
@@ -414,2 +414,11 @@ /** | ||
readonly state?: StateResourceIdentifier; | ||
/** | ||
* [Custom Fields](/../api/projects/custom-fields) to be added to the Order. | ||
* | ||
* - If provided, only the Custom Fields given here are added to the Order and the Custom Fields on the referenced [Cart](/../api/projects/carts#cart) are ignored. | ||
* - If not provided, the Custom Fields on the referenced [Cart](/../api/projects/carts#cart) are added to the Order automatically. | ||
* | ||
* | ||
*/ | ||
readonly custom?: CustomFieldsDraft; | ||
} | ||
@@ -480,4 +489,9 @@ export interface OrderImportDraft { | ||
/** | ||
* This reference can point to a state in a custom workflow. | ||
* | ||
*/ | ||
readonly state?: StateReference; | ||
/** | ||
* | ||
*/ | ||
readonly shipmentState?: ShipmentState; | ||
@@ -496,2 +510,6 @@ /** | ||
*/ | ||
readonly paymentInfo?: PaymentInfo; | ||
/** | ||
* | ||
*/ | ||
readonly completedAt?: string; | ||
@@ -498,0 +516,0 @@ /** |
@@ -6,2 +6,3 @@ /** | ||
*/ | ||
import { LastModifiedBy } from './common'; | ||
import { MessagesConfiguration, MessagesConfigurationDraft } from './message'; | ||
@@ -174,7 +175,7 @@ import { CustomFieldLocalizedEnumValue } from './type'; | ||
/** | ||
* Date and time (UTC) the Project was last updated. | ||
* Date and time (UTC) the Project was last updated. Only present on Projects last modified after 1 February 2019. | ||
* | ||
* | ||
*/ | ||
readonly lastModifiedAt: string; | ||
readonly lastModifiedAt?: string; | ||
/** | ||
@@ -185,3 +186,3 @@ * Present on resources created after 1 February 2019 except for [events not tracked](/../api/client-logging#events-tracked). | ||
*/ | ||
readonly lastModifiedBy?: string; | ||
readonly lastModifiedBy?: LastModifiedBy; | ||
} | ||
@@ -188,0 +189,0 @@ export declare type ShippingRateInputType = CartClassificationType | CartScoreType | CartValueType; |
@@ -54,3 +54,3 @@ /** | ||
/** | ||
* User-specific unique identifier for the shipping method. | ||
* User-specific unique identifier for the shipping method | ||
* | ||
@@ -57,0 +57,0 @@ */ |
@@ -7,3 +7,3 @@ { | ||
"name": "@commercetools/platform-sdk", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "Typescript definitions and sdk for commercetools platform", | ||
@@ -27,3 +27,3 @@ "keywords": ["commercetools", "typescript", "sdk"], | ||
"dependencies": { | ||
"@commercetools/sdk-client-v2": "^1.2.0", | ||
"@commercetools/sdk-client-v2": "^1.3.0", | ||
"@commercetools/sdk-middleware-auth": "^6.0.4", | ||
@@ -30,0 +30,0 @@ "@commercetools/sdk-middleware-http": "^6.0.4", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2707738
218
73479