diff --git a/changes.md b/changes.md index b9383613cac..71a6410f897 100644 --- a/changes.md +++ b/changes.md @@ -1,449 +1,9 @@ **Api changes** -
-Added Method(s) - -- added method `$apiRoot->withProjectKey()->head()` -- added method `$apiRoot->withProjectKey()->associateRoles()->head()` -- added method `$apiRoot->withProjectKey()->businessUnits()->head()` -- added method `$apiRoot->withProjectKey()->categories()->head()` -- added method `$apiRoot->withProjectKey()->carts()->head()` -- added method `$apiRoot->withProjectKey()->cartDiscounts()->head()` -- added method `$apiRoot->withProjectKey()->channels()->head()` -- added method `$apiRoot->withProjectKey()->customers()->head()` -- added method `$apiRoot->withProjectKey()->customerGroups()->head()` -- added method `$apiRoot->withProjectKey()->customObjects()->head()` -- added method `$apiRoot->withProjectKey()->discountCodes()->head()` -- added method `$apiRoot->withProjectKey()->inventory()->head()` -- added method `$apiRoot->withProjectKey()->messages()->head()` -- added method `$apiRoot->withProjectKey()->orders()->head()` -- added method `$apiRoot->withProjectKey()->payments()->head()` -- added method `$apiRoot->withProjectKey()->productDiscounts()->head()` -- added method `$apiRoot->withProjectKey()->productProjections()->head()` -- added method `$apiRoot->withProjectKey()->productSelections()->head()` -- added method `$apiRoot->withProjectKey()->quotes()->head()` -- added method `$apiRoot->withProjectKey()->quoteRequests()->head()` -- added method `$apiRoot->withProjectKey()->stagedQuotes()->head()` -- added method `$apiRoot->withProjectKey()->reviews()->head()` -- added method `$apiRoot->withProjectKey()->shippingMethods()->head()` -- added method `$apiRoot->withProjectKey()->shoppingLists()->head()` -- added method `$apiRoot->withProjectKey()->states()->head()` -- added method `$apiRoot->withProjectKey()->subscriptions()->head()` -- added method `$apiRoot->withProjectKey()->taxCategories()->head()` -- added method `$apiRoot->withProjectKey()->types()->head()` -- added method `$apiRoot->withProjectKey()->zones()->head()` -- added method `$apiRoot->withProjectKey()->extensions()->head()` -- added method `$apiRoot->withProjectKey()->apiClients()->head()` -- added method `$apiRoot->withProjectKey()->stores()->head()` -- added method `$apiRoot->withProjectKey()->standalonePrices()->head()` -- added method `$apiRoot->withProjectKey()->attributeGroups()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->businessUnits()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->businessUnits()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->businessUnits()->withId()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->approvalRules()->get()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->approvalRules()->post()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->approvalFlows()->get()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->carts()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->orders()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->quotes()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->quoteRequests()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->approvalRules()->withId()->get()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->approvalRules()->withId()->post()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->approvalRules()->withKey()->get()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->approvalRules()->withKey()->post()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->approvalFlows()->withId()->get()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->approvalFlows()->withId()->post()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->carts()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->carts()->withId()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->orders()->withOrderNumber()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->orders()->withId()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->quotes()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->quotes()->withId()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->quoteRequests()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->asAssociate()->withAssociateIdValue()->inBusinessUnitKeyWithBusinessUnitKeyValue()->quoteRequests()->withId()->head()` -- added method `$apiRoot->withProjectKey()->associateRoles()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->associateRoles()->withId()->head()` -- added method `$apiRoot->withProjectKey()->businessUnits()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->businessUnits()->withId()->head()` -- added method `$apiRoot->withProjectKey()->categories()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->categories()->withId()->head()` -- added method `$apiRoot->withProjectKey()->carts()->withCustomerId()->head()` -- added method `$apiRoot->withProjectKey()->carts()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->carts()->withId()->head()` -- added method `$apiRoot->withProjectKey()->cartDiscounts()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->cartDiscounts()->withId()->head()` -- added method `$apiRoot->withProjectKey()->channels()->withId()->head()` -- added method `$apiRoot->withProjectKey()->customers()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->customers()->withId()->head()` -- added method `$apiRoot->withProjectKey()->customerGroups()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->customerGroups()->withId()->head()` -- added method `$apiRoot->withProjectKey()->discountCodes()->withId()->head()` -- added method `$apiRoot->withProjectKey()->inventory()->withId()->head()` -- added method `$apiRoot->withProjectKey()->inventory()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->messages()->withId()->head()` -- added method `$apiRoot->withProjectKey()->orders()->withOrderNumber()->head()` -- added method `$apiRoot->withProjectKey()->orders()->edits()->head()` -- added method `$apiRoot->withProjectKey()->orders()->withId()->head()` -- added method `$apiRoot->withProjectKey()->orders()->edits()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->orders()->edits()->withId()->head()` -- added method `$apiRoot->withProjectKey()->payments()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->payments()->withId()->head()` -- added method `$apiRoot->withProjectKey()->productDiscounts()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->productDiscounts()->withId()->head()` -- added method `$apiRoot->withProjectKey()->productProjections()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->productProjections()->withId()->head()` -- added method `$apiRoot->withProjectKey()->productSelections()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->productSelections()->withId()->head()` -- added method `$apiRoot->withProjectKey()->quotes()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->quotes()->withId()->head()` -- added method `$apiRoot->withProjectKey()->quoteRequests()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->quoteRequests()->withId()->head()` -- added method `$apiRoot->withProjectKey()->stagedQuotes()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->stagedQuotes()->withId()->head()` -- added method `$apiRoot->withProjectKey()->reviews()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->reviews()->withId()->head()` -- added method `$apiRoot->withProjectKey()->shippingMethods()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->shippingMethods()->matchingCart()->head()` -- added method `$apiRoot->withProjectKey()->shippingMethods()->matchingCartLocation()->head()` -- added method `$apiRoot->withProjectKey()->shippingMethods()->matchingOrderedit()->head()` -- added method `$apiRoot->withProjectKey()->shippingMethods()->matchingLocation()->head()` -- added method `$apiRoot->withProjectKey()->shippingMethods()->withId()->head()` -- added method `$apiRoot->withProjectKey()->shoppingLists()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->shoppingLists()->withId()->head()` -- added method `$apiRoot->withProjectKey()->states()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->states()->withId()->head()` -- added method `$apiRoot->withProjectKey()->subscriptions()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->subscriptions()->withId()->head()` -- added method `$apiRoot->withProjectKey()->taxCategories()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->taxCategories()->withId()->head()` -- added method `$apiRoot->withProjectKey()->types()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->types()->withId()->head()` -- added method `$apiRoot->withProjectKey()->zones()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->zones()->withId()->head()` -- added method `$apiRoot->withProjectKey()->me()->activeCart()->head()` -- added method `$apiRoot->withProjectKey()->me()->businessUnits()->head()` -- added method `$apiRoot->withProjectKey()->me()->carts()->head()` -- added method `$apiRoot->withProjectKey()->me()->orders()->head()` -- added method `$apiRoot->withProjectKey()->me()->payments()->head()` -- added method `$apiRoot->withProjectKey()->me()->quoteRequests()->head()` -- added method `$apiRoot->withProjectKey()->me()->quotes()->head()` -- added method `$apiRoot->withProjectKey()->me()->shoppingLists()->head()` -- added method `$apiRoot->withProjectKey()->me()->businessUnits()->withId()->head()` -- added method `$apiRoot->withProjectKey()->me()->businessUnits()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->me()->carts()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->me()->carts()->withId()->head()` -- added method `$apiRoot->withProjectKey()->me()->orders()->withId()->head()` -- added method `$apiRoot->withProjectKey()->me()->payments()->withId()->head()` -- added method `$apiRoot->withProjectKey()->me()->quoteRequests()->withId()->head()` -- added method `$apiRoot->withProjectKey()->me()->quoteRequests()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->me()->quotes()->withId()->head()` -- added method `$apiRoot->withProjectKey()->me()->quotes()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->me()->shoppingLists()->withId()->head()` -- added method `$apiRoot->withProjectKey()->me()->shoppingLists()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->extensions()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->extensions()->withId()->head()` -- added method `$apiRoot->withProjectKey()->apiClients()->withId()->head()` -- added method `$apiRoot->withProjectKey()->stores()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->stores()->withId()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->carts()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->orders()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->customers()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->shoppingLists()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->cartDiscounts()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->carts()->withCustomerId()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->carts()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->carts()->withId()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->orders()->withOrderNumber()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->orders()->withId()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->me()->carts()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->me()->orders()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->me()->activeCart()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->me()->shoppingLists()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->me()->carts()->withId()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->me()->orders()->withId()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->me()->shoppingLists()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->me()->shoppingLists()->withId()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->customers()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->customers()->withId()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->shippingMethods()->matchingCart()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->shoppingLists()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->shoppingLists()->withId()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->productProjections()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->productProjections()->withId()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->cartDiscounts()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->cartDiscounts()->withId()->head()` -- added method `$apiRoot->withProjectKey()->standalonePrices()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->standalonePrices()->withId()->head()` -- added method `$apiRoot->withProjectKey()->attributeGroups()->withKey()->head()` -- added method `$apiRoot->withProjectKey()->attributeGroups()->withId()->head()` -
- - -
-Removed Type(s) - -- :warning: removed type `NotEnabledError` -- :warning: removed type `GraphQLNotEnabledError` -- :warning: removed type `CustomerMessagePayload` -
- - -
-Added Type(s) - -- added type `ApprovalFlow` -- added type `ApprovalFlowApproval` -- added type `ApprovalFlowApproveAction` -- added type `ApprovalFlowPagedQueryResponse` -- added type `ApprovalFlowRejectAction` -- added type `ApprovalFlowRejection` -- added type `ApprovalFlowSetCustomFieldAction` -- added type `ApprovalFlowSetCustomTypeAction` -- added type `ApprovalFlowStatus` -- added type `ApprovalFlowUpdate` -- added type `ApprovalFlowUpdateAction` -- added type `ApprovalRule` -- added type `ApprovalRuleDraft` -- added type `ApprovalRulePagedQueryResponse` -- added type `ApprovalRuleSetApproversAction` -- added type `ApprovalRuleSetDescriptionAction` -- added type `ApprovalRuleSetKeyAction` -- added type `ApprovalRuleSetNameAction` -- added type `ApprovalRuleSetPredicateAction` -- added type `ApprovalRuleSetRequestersAction` -- added type `ApprovalRuleSetStatusAction` -- added type `ApprovalRuleStatus` -- added type `ApprovalRuleUpdate` -- added type `ApprovalRuleUpdateAction` -- added type `ApproverConjunction` -- added type `ApproverConjunctionDraft` -- added type `ApproverDisjunction` -- added type `ApproverDisjunctionDraft` -- added type `ApproverHierarchy` -- added type `ApproverHierarchyDraft` -- added type `RuleApprover` -- added type `RuleApproverDraft` -- added type `RuleRequester` -- added type `RuleRequesterDraft` -- added type `CartDiscountTotalPriceTarget` -- added type `DiscountOnTotalPrice` -- added type `DiscountedTotalPricePortion` -- added type `CustomerEmailTokenReference` -- added type `CustomerPasswordTokenReference` -- added type `ApprovalFlowApprovedMessage` -- added type `ApprovalFlowCompletedMessage` -- added type `ApprovalFlowCreatedMessage` -- added type `ApprovalFlowRejectedMessage` -- added type `ApprovalRuleApproversSetMessage` -- added type `ApprovalRuleCreatedMessage` -- added type `ApprovalRuleDescriptionSetMessage` -- added type `ApprovalRuleKeySetMessage` -- added type `ApprovalRuleNameSetMessage` -- added type `ApprovalRulePredicateSetMessage` -- added type `ApprovalRuleRequestersSetMessage` -- added type `ApprovalRuleStatusSetMessage` -- added type `BusinessUnitAddressCustomFieldAddedMessage` -- added type `BusinessUnitAddressCustomFieldChangedMessage` -- added type `BusinessUnitAddressCustomFieldRemovedMessage` -- added type `BusinessUnitAddressCustomTypeRemovedMessage` -- added type `BusinessUnitAddressCustomTypeSetMessage` -- added type `BusinessUnitCustomFieldAddedMessage` -- added type `BusinessUnitCustomFieldChangedMessage` -- added type `BusinessUnitCustomFieldRemovedMessage` -- added type `BusinessUnitCustomTypeRemovedMessage` -- added type `BusinessUnitCustomTypeSetMessage` -- added type `CartDiscountCreatedMessage` -- added type `CartDiscountDeletedMessage` -- added type `CartDiscountStoreAddedMessage` -- added type `CartDiscountStoreRemovedMessage` -- added type `CartDiscountStoresSetMessage` -- added type `CustomerEmailTokenCreatedMessage` -- added type `CustomerGroupCustomFieldAddedMessage` -- added type `CustomerGroupCustomFieldChangedMessage` -- added type `CustomerGroupCustomFieldRemovedMessage` -- added type `CustomerGroupCustomTypeRemovedMessage` -- added type `CustomerGroupCustomTypeSetMessage` -- added type `CustomerPasswordTokenCreatedMessage` -- added type `ApprovalFlowApprovedMessagePayload` -- added type `ApprovalFlowCompletedMessagePayload` -- added type `ApprovalFlowCreatedMessagePayload` -- added type `ApprovalFlowRejectedMessagePayload` -- added type `ApprovalRuleApproversSetMessagePayload` -- added type `ApprovalRuleCreatedMessagePayload` -- added type `ApprovalRuleDescriptionSetMessagePayload` -- added type `ApprovalRuleKeySetMessagePayload` -- added type `ApprovalRuleNameSetMessagePayload` -- added type `ApprovalRulePredicateSetMessagePayload` -- added type `ApprovalRuleRequestersSetMessagePayload` -- added type `ApprovalRuleStatusSetMessagePayload` -- added type `BusinessUnitAddressCustomFieldAddedMessagePayload` -- added type `BusinessUnitAddressCustomFieldChangedMessagePayload` -- added type `BusinessUnitAddressCustomFieldRemovedMessagePayload` -- added type `BusinessUnitAddressCustomTypeRemovedMessagePayload` -- added type `BusinessUnitAddressCustomTypeSetMessagePayload` -- added type `BusinessUnitCustomFieldAddedMessagePayload` -- added type `BusinessUnitCustomFieldChangedMessagePayload` -- added type `BusinessUnitCustomFieldRemovedMessagePayload` -- added type `BusinessUnitCustomTypeRemovedMessagePayload` -- added type `BusinessUnitCustomTypeSetMessagePayload` -- added type `CartDiscountCreatedMessagePayload` -- added type `CartDiscountDeletedMessagePayload` -- added type `CartDiscountStoreAddedMessagePayload` -- added type `CartDiscountStoreRemovedMessagePayload` -- added type `CartDiscountStoresSetMessagePayload` -- added type `CustomerEmailTokenCreatedMessagePayload` -- added type `CustomerGroupCustomFieldAddedMessagePayload` -- added type `CustomerGroupCustomFieldChangedMessagePayload` -- added type `CustomerGroupCustomFieldRemovedMessagePayload` -- added type `CustomerGroupCustomTypeRemovedMessagePayload` -- added type `CustomerGroupCustomTypeSetMessagePayload` -- added type `CustomerPasswordTokenCreatedMessagePayload` -
- - -
-Changed MethodResponseBody(s) - -- :warning: changed response body for `200: application/json` of method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` from type `CartDiscount` to `CartDiscountPagedQueryResponse` -
- - -
-Added Enum(s) - -- added enum `CreateApprovalRules` to type `Permission` -- added enum `UpdateApprovalRules` to type `Permission` -- added enum `UpdateApprovalFlows` to type `Permission` -- added enum `approval-flow` to type `ReferenceTypeId` -- added enum `approval-rule` to type `ReferenceTypeId` -- added enum `customer-email-token` to type `ReferenceTypeId` -- added enum `customer-password-token` to type `ReferenceTypeId` -- added enum `associate-role` to type `AttributeReferenceTypeId` -- added enum `business-unit` to type `AttributeReferenceTypeId` -- added enum `cart-discount` to type `AttributeReferenceTypeId` -- added enum `approval-flow` to type `ChangeSubscriptionResourceTypeId` -- added enum `approval-rule` to type `ChangeSubscriptionResourceTypeId` -- added enum `approval-flow` to type `MessageSubscriptionResourceTypeId` -- added enum `approval-rule` to type `MessageSubscriptionResourceTypeId` -- added enum `customer-email-token` to type `MessageSubscriptionResourceTypeId` -- added enum `customer-group` to type `MessageSubscriptionResourceTypeId` -- added enum `customer-password-token` to type `MessageSubscriptionResourceTypeId` -- added enum `approval-flow` to type `CustomFieldReferenceValue` -- added enum `approval-flow` to type `ResourceTypeId` -
- - -
-Added QueryParameter(s) - -- added query parameter `expand` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` -- added query parameter `sort` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` -- added query parameter `limit` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` -- added query parameter `offset` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` -- added query parameter `withTotal` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` -- added query parameter `where` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` -- added query parameter `/^var[.][a-zA-Z0-9]+$/` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` -- added query parameter `expand` to method `post /{projectKey}/in-store/key={storeKey}/cart-discounts` -
- - -
-Added Property(s) - -- added property `discountOnTotalPrice` to type `Cart` -- added property `discountOnTotalPrice` to type `StagedOrder` -- added property `custom` to type `StagedOrderAddParcelToDeliveryAction` -- added property `discountOnTotalPrice` to type `Order` -- added property `custom` to type `OrderAddParcelToDeliveryAction` -
- - -
-Added Resource(s) - -- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules` -- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-flows` -- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules/{ID}` -- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules/key={key}` -- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-flows/{ID}` -
- -**Import changes** - -
-Added Property(s) - -- added property `product` to type `ProductVariantPatch` -
- -**History changes** - -
-Removed Type(s) - -- :warning: removed type `ChannelRole` -- :warning: removed type `StateRole` -- :warning: removed type `StateType` -
- - -
-Added Type(s) - -- added type `AttributeLocalizedEnumValue` -- added type `AttributePlainEnumValue` -- added type `ChannelRoleEnum` -- added type `StateRoleEnum` -- added type `StateTypeEnum` -
- - -
-Removed Property(s) - -- :warning: removed property `previousValue` from type `AddAddressChange` -- :warning: removed property `previousValue` from type `AddLocationChange` -- :warning: removed property `nextValue` from type `RemoveLocationChange` -- :warning: removed property `nextValue` from type `RemoveTaxRateChange` -
- - -
-Changed Property(s) - -- :warning: changed property `previousValue` of type `AddChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `nextValue` of type `AddChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `nextValue` of type `AddLocalizedEnumValueChange` from type `LocalizedEnumValue` to `AttributeLocalizedEnumValue` -- :warning: changed property `nextValue` of type `AddPlainEnumValueChange` from type `EnumValue` to `AttributePlainEnumValue` -- :warning: changed property `previousValue` of type `AddStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` -- :warning: changed property `nextValue` of type `AddStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` -- :warning: changed property `previousValue` of type `ChangeStateTypeChange` from type `StateType` to `StateTypeEnum` -- :warning: changed property `nextValue` of type `ChangeStateTypeChange` from type `StateType` to `StateTypeEnum` -- :warning: changed property `previousValue` of type `RemoveChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `nextValue` of type `RemoveChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `previousValue` of type `RemoveStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` -- :warning: changed property `nextValue` of type `RemoveStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` -- :warning: changed property `previousValue` of type `SetChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `nextValue` of type `SetChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]` -- :warning: changed property `previousValue` of type `SetNameChange` from type `LocalizedString` to `string` -- :warning: changed property `nextValue` of type `SetNameChange` from type `LocalizedString` to `string` -- :warning: changed property `previousValue` of type `SetStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` -- :warning: changed property `nextValue` of type `SetStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]` -
- -
Added Property(s) -- added property `businessUnit` to type `Record` -
- - -
-Added QueryParameter(s) - -- added query parameter `businessUnit` to method `get /{projectKey}` -- added query parameter `businessUnit` to method `get /{projectKey}/{resourceType}` -- added query parameter `businessUnit` to method `get /{projectKey}/{resourceType}/{ID}` +- added property `perMethodExternalTaxRate` to type `CartAddLineItemAction` +- added property `shippingMode` to type `MyCartDraft`
diff --git a/lib/commercetools-api/src/Models/Cart/CartAddLineItemAction.php b/lib/commercetools-api/src/Models/Cart/CartAddLineItemAction.php index f7368e0cce8..291bd53a54e 100644 --- a/lib/commercetools-api/src/Models/Cart/CartAddLineItemAction.php +++ b/lib/commercetools-api/src/Models/Cart/CartAddLineItemAction.php @@ -28,6 +28,7 @@ interface CartAddLineItemAction extends CartUpdateAction public const FIELD_EXTERNAL_PRICE = 'externalPrice'; public const FIELD_EXTERNAL_TOTAL_PRICE = 'externalTotalPrice'; public const FIELD_EXTERNAL_TAX_RATE = 'externalTaxRate'; + public const FIELD_PER_METHOD_EXTERNAL_TAX_RATE = 'perMethodExternalTaxRate'; public const FIELD_INVENTORY_MODE = 'inventoryMode'; public const FIELD_SHIPPING_DETAILS = 'shippingDetails'; public const FIELD_CUSTOM = 'custom'; @@ -129,6 +130,14 @@ public function getExternalTotalPrice(); */ public function getExternalTaxRate(); + /** + *

Sets the external Tax Rates for individual Shipping Methods, if the Cart has the External TaxMode and Multiple ShippingMode.

+ * + + * @return null|MethodExternalTaxRateDraftCollection + */ + public function getPerMethodExternalTaxRate(); + /** *

Inventory mode specific to the Line Item only, and valid for the entire quantity of the Line Item. * Set only if the inventory mode should be different from the inventoryMode specified on the Cart.

@@ -209,6 +218,11 @@ public function setExternalTotalPrice(?ExternalLineItemTotalPrice $externalTotal */ public function setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate): void; + /** + * @param ?MethodExternalTaxRateDraftCollection $perMethodExternalTaxRate + */ + public function setPerMethodExternalTaxRate(?MethodExternalTaxRateDraftCollection $perMethodExternalTaxRate): void; + /** * @param ?string $inventoryMode */ diff --git a/lib/commercetools-api/src/Models/Cart/CartAddLineItemActionBuilder.php b/lib/commercetools-api/src/Models/Cart/CartAddLineItemActionBuilder.php index 4ad68af3821..38cbe56c47e 100644 --- a/lib/commercetools-api/src/Models/Cart/CartAddLineItemActionBuilder.php +++ b/lib/commercetools-api/src/Models/Cart/CartAddLineItemActionBuilder.php @@ -93,6 +93,12 @@ final class CartAddLineItemActionBuilder implements Builder */ private $externalTaxRate; + /** + + * @var ?MethodExternalTaxRateDraftCollection + */ + private $perMethodExternalTaxRate; + /** * @var ?string @@ -241,6 +247,17 @@ public function getExternalTaxRate() return $this->externalTaxRate instanceof ExternalTaxRateDraftBuilder ? $this->externalTaxRate->build() : $this->externalTaxRate; } + /** + *

Sets the external Tax Rates for individual Shipping Methods, if the Cart has the External TaxMode and Multiple ShippingMode.

+ * + + * @return null|MethodExternalTaxRateDraftCollection + */ + public function getPerMethodExternalTaxRate() + { + return $this->perMethodExternalTaxRate; + } + /** *

Inventory mode specific to the Line Item only, and valid for the entire quantity of the Line Item. * Set only if the inventory mode should be different from the inventoryMode specified on the Cart.

@@ -396,6 +413,17 @@ public function withExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate) return $this; } + /** + * @param ?MethodExternalTaxRateDraftCollection $perMethodExternalTaxRate + * @return $this + */ + public function withPerMethodExternalTaxRate(?MethodExternalTaxRateDraftCollection $perMethodExternalTaxRate) + { + $this->perMethodExternalTaxRate = $perMethodExternalTaxRate; + + return $this; + } + /** * @param ?string $inventoryMode * @return $this @@ -520,6 +548,7 @@ public function build(): CartAddLineItemAction $this->externalPrice instanceof MoneyBuilder ? $this->externalPrice->build() : $this->externalPrice, $this->externalTotalPrice instanceof ExternalLineItemTotalPriceBuilder ? $this->externalTotalPrice->build() : $this->externalTotalPrice, $this->externalTaxRate instanceof ExternalTaxRateDraftBuilder ? $this->externalTaxRate->build() : $this->externalTaxRate, + $this->perMethodExternalTaxRate, $this->inventoryMode, $this->shippingDetails instanceof ItemShippingDetailsDraftBuilder ? $this->shippingDetails->build() : $this->shippingDetails, $this->custom instanceof CustomFieldsDraftBuilder ? $this->custom->build() : $this->custom diff --git a/lib/commercetools-api/src/Models/Cart/CartAddLineItemActionModel.php b/lib/commercetools-api/src/Models/Cart/CartAddLineItemActionModel.php index 0875eed07c2..9493464df93 100644 --- a/lib/commercetools-api/src/Models/Cart/CartAddLineItemActionModel.php +++ b/lib/commercetools-api/src/Models/Cart/CartAddLineItemActionModel.php @@ -99,6 +99,12 @@ final class CartAddLineItemActionModel extends JsonObjectModel implements CartAd */ protected $externalTaxRate; + /** + * + * @var ?MethodExternalTaxRateDraftCollection + */ + protected $perMethodExternalTaxRate; + /** * * @var ?string @@ -133,6 +139,7 @@ public function __construct( ?Money $externalPrice = null, ?ExternalLineItemTotalPrice $externalTotalPrice = null, ?ExternalTaxRateDraft $externalTaxRate = null, + ?MethodExternalTaxRateDraftCollection $perMethodExternalTaxRate = null, ?string $inventoryMode = null, ?ItemShippingDetailsDraft $shippingDetails = null, ?CustomFieldsDraft $custom = null, @@ -149,6 +156,7 @@ public function __construct( $this->externalPrice = $externalPrice; $this->externalTotalPrice = $externalTotalPrice; $this->externalTaxRate = $externalTaxRate; + $this->perMethodExternalTaxRate = $perMethodExternalTaxRate; $this->inventoryMode = $inventoryMode; $this->shippingDetails = $shippingDetails; $this->custom = $custom; @@ -411,6 +419,26 @@ public function getExternalTaxRate() return $this->externalTaxRate; } + /** + *

Sets the external Tax Rates for individual Shipping Methods, if the Cart has the External TaxMode and Multiple ShippingMode.

+ * + * + * @return null|MethodExternalTaxRateDraftCollection + */ + public function getPerMethodExternalTaxRate() + { + if (is_null($this->perMethodExternalTaxRate)) { + /** @psalm-var ?list $data */ + $data = $this->raw(self::FIELD_PER_METHOD_EXTERNAL_TAX_RATE); + if (is_null($data)) { + return null; + } + $this->perMethodExternalTaxRate = MethodExternalTaxRateDraftCollection::fromArray($data); + } + + return $this->perMethodExternalTaxRate; + } + /** *

Inventory mode specific to the Line Item only, and valid for the entire quantity of the Line Item. * Set only if the inventory mode should be different from the inventoryMode specified on the Cart.

@@ -563,6 +591,14 @@ public function setExternalTaxRate(?ExternalTaxRateDraft $externalTaxRate): void $this->externalTaxRate = $externalTaxRate; } + /** + * @param ?MethodExternalTaxRateDraftCollection $perMethodExternalTaxRate + */ + public function setPerMethodExternalTaxRate(?MethodExternalTaxRateDraftCollection $perMethodExternalTaxRate): void + { + $this->perMethodExternalTaxRate = $perMethodExternalTaxRate; + } + /** * @param ?string $inventoryMode */ diff --git a/lib/commercetools-api/src/Models/Cart/CartDraft.php b/lib/commercetools-api/src/Models/Cart/CartDraft.php index d574886410f..4539fa016f1 100644 --- a/lib/commercetools-api/src/Models/Cart/CartDraft.php +++ b/lib/commercetools-api/src/Models/Cart/CartDraft.php @@ -181,7 +181,8 @@ public function getInventoryMode(); public function getBillingAddress(); /** - *

Shipping address for a Cart with Single ShippingMode. Determines eligible ShippingMethod rates and Tax Rates of Line Items.

+ *

Shipping address for a Cart with Single ShippingMode. Determines eligible ShippingMethod rates and Tax Rates of Line Items. + * Must be one of the itemShippingAddresses when that field is also provided.

* * @return null|BaseAddress diff --git a/lib/commercetools-api/src/Models/Cart/CartDraftBuilder.php b/lib/commercetools-api/src/Models/Cart/CartDraftBuilder.php index 19c2b529cae..9cf5421ff30 100644 --- a/lib/commercetools-api/src/Models/Cart/CartDraftBuilder.php +++ b/lib/commercetools-api/src/Models/Cart/CartDraftBuilder.php @@ -386,7 +386,8 @@ public function getBillingAddress() } /** - *

Shipping address for a Cart with Single ShippingMode. Determines eligible ShippingMethod rates and Tax Rates of Line Items.

+ *

Shipping address for a Cart with Single ShippingMode. Determines eligible ShippingMethod rates and Tax Rates of Line Items. + * Must be one of the itemShippingAddresses when that field is also provided.

* * @return null|BaseAddress diff --git a/lib/commercetools-api/src/Models/Cart/CartDraftModel.php b/lib/commercetools-api/src/Models/Cart/CartDraftModel.php index 8ca2b2d112c..cde73a0693e 100644 --- a/lib/commercetools-api/src/Models/Cart/CartDraftModel.php +++ b/lib/commercetools-api/src/Models/Cart/CartDraftModel.php @@ -600,7 +600,8 @@ public function getBillingAddress() } /** - *

Shipping address for a Cart with Single ShippingMode. Determines eligible ShippingMethod rates and Tax Rates of Line Items.

+ *

Shipping address for a Cart with Single ShippingMode. Determines eligible ShippingMethod rates and Tax Rates of Line Items. + * Must be one of the itemShippingAddresses when that field is also provided.

* * * @return null|BaseAddress diff --git a/lib/commercetools-api/src/Models/Cart/CustomLineItem.php b/lib/commercetools-api/src/Models/Cart/CustomLineItem.php index bb7e6ef1648..43bbffe0be5 100644 --- a/lib/commercetools-api/src/Models/Cart/CustomLineItem.php +++ b/lib/commercetools-api/src/Models/Cart/CustomLineItem.php @@ -79,7 +79,8 @@ public function getMoney(); public function getTaxedPrice(); /** - *

Taxed price of the Shipping Method that is automatically set after perMethodTaxRate is set.

+ *

Total taxed prices based on the quantity of the Custom Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/Cart/CustomLineItemBuilder.php b/lib/commercetools-api/src/Models/Cart/CustomLineItemBuilder.php index aa1691a1885..4e269f3d59d 100644 --- a/lib/commercetools-api/src/Models/Cart/CustomLineItemBuilder.php +++ b/lib/commercetools-api/src/Models/Cart/CustomLineItemBuilder.php @@ -191,7 +191,8 @@ public function getTaxedPrice() } /** - *

Taxed price of the Shipping Method that is automatically set after perMethodTaxRate is set.

+ *

Total taxed prices based on the quantity of the Custom Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/Cart/CustomLineItemModel.php b/lib/commercetools-api/src/Models/Cart/CustomLineItemModel.php index 6e9a3d6e6ea..627d234e74a 100644 --- a/lib/commercetools-api/src/Models/Cart/CustomLineItemModel.php +++ b/lib/commercetools-api/src/Models/Cart/CustomLineItemModel.php @@ -280,7 +280,8 @@ public function getTaxedPrice() } /** - *

Taxed price of the Shipping Method that is automatically set after perMethodTaxRate is set.

+ *

Total taxed prices based on the quantity of the Custom Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/Cart/ItemShippingTarget.php b/lib/commercetools-api/src/Models/Cart/ItemShippingTarget.php index f01ac46b4fc..d844dd82120 100644 --- a/lib/commercetools-api/src/Models/Cart/ItemShippingTarget.php +++ b/lib/commercetools-api/src/Models/Cart/ItemShippingTarget.php @@ -37,7 +37,7 @@ public function getQuantity(); /** *

User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

- *

It connects Line Item quantities with individual shipping addresses.

+ *

It connects Line Item or Custom Line Item quantities with individual Shipping Methods.

* * @return null|string diff --git a/lib/commercetools-api/src/Models/Cart/ItemShippingTargetBuilder.php b/lib/commercetools-api/src/Models/Cart/ItemShippingTargetBuilder.php index f74d26d8b2b..d16c84c617e 100644 --- a/lib/commercetools-api/src/Models/Cart/ItemShippingTargetBuilder.php +++ b/lib/commercetools-api/src/Models/Cart/ItemShippingTargetBuilder.php @@ -64,7 +64,7 @@ public function getQuantity() /** *

User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

- *

It connects Line Item quantities with individual shipping addresses.

+ *

It connects Line Item or Custom Line Item quantities with individual Shipping Methods.

* * @return null|string diff --git a/lib/commercetools-api/src/Models/Cart/ItemShippingTargetModel.php b/lib/commercetools-api/src/Models/Cart/ItemShippingTargetModel.php index 9579c244ab4..b8b701fc213 100644 --- a/lib/commercetools-api/src/Models/Cart/ItemShippingTargetModel.php +++ b/lib/commercetools-api/src/Models/Cart/ItemShippingTargetModel.php @@ -95,7 +95,7 @@ public function getQuantity() /** *

User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

- *

It connects Line Item quantities with individual shipping addresses.

+ *

It connects Line Item or Custom Line Item quantities with individual Shipping Methods.

* * * @return null|string diff --git a/lib/commercetools-api/src/Models/Cart/LineItem.php b/lib/commercetools-api/src/Models/Cart/LineItem.php index 1f67a29789e..0fc5f1ee727 100644 --- a/lib/commercetools-api/src/Models/Cart/LineItem.php +++ b/lib/commercetools-api/src/Models/Cart/LineItem.php @@ -165,7 +165,8 @@ public function getDiscountedPricePerQuantity(); public function getTaxedPrice(); /** - *

Taxed price of the Shipping Method that is automatically set after perMethodTaxRate is set.

+ *

Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/Cart/LineItemBuilder.php b/lib/commercetools-api/src/Models/Cart/LineItemBuilder.php index feeef90016b..8e7cae64adc 100644 --- a/lib/commercetools-api/src/Models/Cart/LineItemBuilder.php +++ b/lib/commercetools-api/src/Models/Cart/LineItemBuilder.php @@ -348,7 +348,8 @@ public function getTaxedPrice() } /** - *

Taxed price of the Shipping Method that is automatically set after perMethodTaxRate is set.

+ *

Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/Cart/LineItemModel.php b/lib/commercetools-api/src/Models/Cart/LineItemModel.php index 10cb9a11638..fba5f2bd4da 100644 --- a/lib/commercetools-api/src/Models/Cart/LineItemModel.php +++ b/lib/commercetools-api/src/Models/Cart/LineItemModel.php @@ -531,7 +531,8 @@ public function getTaxedPrice() } /** - *

Taxed price of the Shipping Method that is automatically set after perMethodTaxRate is set.

+ *

Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/Cart/MethodTaxedPrice.php b/lib/commercetools-api/src/Models/Cart/MethodTaxedPrice.php index c2fa6e009f7..3e3778fb1b2 100644 --- a/lib/commercetools-api/src/Models/Cart/MethodTaxedPrice.php +++ b/lib/commercetools-api/src/Models/Cart/MethodTaxedPrice.php @@ -17,7 +17,7 @@ interface MethodTaxedPrice extends JsonObject public const FIELD_TAXED_PRICE = 'taxedPrice'; /** - *

User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

+ *

User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

* * @return null|string @@ -25,7 +25,7 @@ interface MethodTaxedPrice extends JsonObject public function getShippingMethodKey(); /** - *

Taxed price for the Shipping Method.

+ *

Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by shippingMethodKey.

* * @return null|TaxedItemPrice diff --git a/lib/commercetools-api/src/Models/Cart/MethodTaxedPriceBuilder.php b/lib/commercetools-api/src/Models/Cart/MethodTaxedPriceBuilder.php index 412b179964c..a5392d5f1f9 100644 --- a/lib/commercetools-api/src/Models/Cart/MethodTaxedPriceBuilder.php +++ b/lib/commercetools-api/src/Models/Cart/MethodTaxedPriceBuilder.php @@ -33,7 +33,7 @@ final class MethodTaxedPriceBuilder implements Builder private $taxedPrice; /** - *

User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

+ *

User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

* * @return null|string @@ -44,7 +44,7 @@ public function getShippingMethodKey() } /** - *

Taxed price for the Shipping Method.

+ *

Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by shippingMethodKey.

* * @return null|TaxedItemPrice diff --git a/lib/commercetools-api/src/Models/Cart/MethodTaxedPriceModel.php b/lib/commercetools-api/src/Models/Cart/MethodTaxedPriceModel.php index 15175e582db..e51543e7c86 100644 --- a/lib/commercetools-api/src/Models/Cart/MethodTaxedPriceModel.php +++ b/lib/commercetools-api/src/Models/Cart/MethodTaxedPriceModel.php @@ -44,7 +44,7 @@ public function __construct( } /** - *

User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

+ *

User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

* * * @return null|string @@ -64,7 +64,7 @@ public function getShippingMethodKey() } /** - *

Taxed price for the Shipping Method.

+ *

Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by shippingMethodKey.

* * * @return null|TaxedItemPrice diff --git a/lib/commercetools-api/src/Models/Me/MyCartDraft.php b/lib/commercetools-api/src/Models/Me/MyCartDraft.php index 5a8b2ef18af..acd894a438b 100644 --- a/lib/commercetools-api/src/Models/Me/MyCartDraft.php +++ b/lib/commercetools-api/src/Models/Me/MyCartDraft.php @@ -30,6 +30,7 @@ interface MyCartDraft extends JsonObject public const FIELD_SHIPPING_ADDRESS = 'shippingAddress'; public const FIELD_SHIPPING_METHOD = 'shippingMethod'; public const FIELD_ITEM_SHIPPING_ADDRESSES = 'itemShippingAddresses'; + public const FIELD_SHIPPING_MODE = 'shippingMode'; public const FIELD_DISCOUNT_CODES = 'discountCodes'; public const FIELD_COUNTRY = 'country'; public const FIELD_LOCALE = 'locale'; @@ -126,6 +127,17 @@ public function getShippingMethod(); */ public function getItemShippingAddresses(); + /** + * + * + + * @return null|string + */ + public function getShippingMode(); + /** *

code of the existing DiscountCodes to add to the Cart.

* @@ -225,6 +237,11 @@ public function setShippingMethod(?ShippingMethodResourceIdentifier $shippingMet */ public function setItemShippingAddresses(?BaseAddressCollection $itemShippingAddresses): void; + /** + * @param ?string $shippingMode + */ + public function setShippingMode(?string $shippingMode): void; + /** * @param ?array $discountCodes */ diff --git a/lib/commercetools-api/src/Models/Me/MyCartDraftBuilder.php b/lib/commercetools-api/src/Models/Me/MyCartDraftBuilder.php index 4fb1bea6ca3..6892911dc69 100644 --- a/lib/commercetools-api/src/Models/Me/MyCartDraftBuilder.php +++ b/lib/commercetools-api/src/Models/Me/MyCartDraftBuilder.php @@ -97,6 +97,12 @@ final class MyCartDraftBuilder implements Builder */ private $itemShippingAddresses; + /** + + * @var ?string + */ + private $shippingMode; + /** * @var ?array @@ -250,6 +256,20 @@ public function getItemShippingAddresses() return $this->itemShippingAddresses; } + /** + * + * + + * @return null|string + */ + public function getShippingMode() + { + return $this->shippingMode; + } + /** *

code of the existing DiscountCodes to add to the Cart.

* @@ -430,6 +450,17 @@ public function withItemShippingAddresses(?BaseAddressCollection $itemShippingAd return $this; } + /** + * @param ?string $shippingMode + * @return $this + */ + public function withShippingMode(?string $shippingMode) + { + $this->shippingMode = $shippingMode; + + return $this; + } + /** * @param ?array $discountCodes * @return $this @@ -565,6 +596,7 @@ public function build(): MyCartDraft $this->shippingAddress instanceof BaseAddressBuilder ? $this->shippingAddress->build() : $this->shippingAddress, $this->shippingMethod instanceof ShippingMethodResourceIdentifierBuilder ? $this->shippingMethod->build() : $this->shippingMethod, $this->itemShippingAddresses, + $this->shippingMode, $this->discountCodes, $this->country, $this->locale, diff --git a/lib/commercetools-api/src/Models/Me/MyCartDraftModel.php b/lib/commercetools-api/src/Models/Me/MyCartDraftModel.php index 36dbe12dd3d..a53750acf87 100644 --- a/lib/commercetools-api/src/Models/Me/MyCartDraftModel.php +++ b/lib/commercetools-api/src/Models/Me/MyCartDraftModel.php @@ -96,6 +96,12 @@ final class MyCartDraftModel extends JsonObjectModel implements MyCartDraft */ protected $itemShippingAddresses; + /** + * + * @var ?string + */ + protected $shippingMode; + /** * * @var ?array @@ -142,6 +148,7 @@ public function __construct( ?BaseAddress $shippingAddress = null, ?ShippingMethodResourceIdentifier $shippingMethod = null, ?BaseAddressCollection $itemShippingAddresses = null, + ?string $shippingMode = null, ?array $discountCodes = null, ?string $country = null, ?string $locale = null, @@ -159,6 +166,7 @@ public function __construct( $this->shippingAddress = $shippingAddress; $this->shippingMethod = $shippingMethod; $this->itemShippingAddresses = $itemShippingAddresses; + $this->shippingMode = $shippingMode; $this->discountCodes = $discountCodes; $this->country = $country; $this->locale = $locale; @@ -393,6 +401,29 @@ public function getItemShippingAddresses() return $this->itemShippingAddresses; } + /** + * + * + * + * @return null|string + */ + public function getShippingMode() + { + if (is_null($this->shippingMode)) { + /** @psalm-var ?string $data */ + $data = $this->raw(self::FIELD_SHIPPING_MODE); + if (is_null($data)) { + return null; + } + $this->shippingMode = (string) $data; + } + + return $this->shippingMode; + } + /** *

code of the existing DiscountCodes to add to the Cart.

* @@ -587,6 +618,14 @@ public function setItemShippingAddresses(?BaseAddressCollection $itemShippingAdd $this->itemShippingAddresses = $itemShippingAddresses; } + /** + * @param ?string $shippingMode + */ + public function setShippingMode(?string $shippingMode): void + { + $this->shippingMode = $shippingMode; + } + /** * @param ?array $discountCodes */ diff --git a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessage.php b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessage.php index cfd5fe66f72..cdc9e214279 100644 --- a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessage.php +++ b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessage.php @@ -65,7 +65,8 @@ public function getTotalPrice(); public function getTaxedPrice(); /** - *

Taxed price of the Shipping Methods in a Cart with Multiple ShippingMode.

+ *

Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessageBuilder.php b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessageBuilder.php index ad77eda5e4c..56563951824 100644 --- a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessageBuilder.php +++ b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessageBuilder.php @@ -296,7 +296,8 @@ public function getTaxedPrice() } /** - *

Taxed price of the Shipping Methods in a Cart with Multiple ShippingMode.

+ *

Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessageModel.php b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessageModel.php index 2d396446670..2e7bdc89122 100644 --- a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessageModel.php +++ b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessageModel.php @@ -513,7 +513,8 @@ public function getTaxedPrice() } /** - *

Taxed price of the Shipping Methods in a Cart with Multiple ShippingMode.

+ *

Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayload.php b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayload.php index 93eff9cde2d..593d1ecf3d7 100644 --- a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayload.php +++ b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayload.php @@ -65,7 +65,8 @@ public function getTotalPrice(); public function getTaxedPrice(); /** - *

Taxed price of the Shipping Methods in a Cart with Multiple ShippingMode.

+ *

Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayloadBuilder.php b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayloadBuilder.php index 19a6439bcb2..08e939b8688 100644 --- a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayloadBuilder.php +++ b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayloadBuilder.php @@ -118,7 +118,8 @@ public function getTaxedPrice() } /** - *

Taxed price of the Shipping Methods in a Cart with Multiple ShippingMode.

+ *

Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayloadModel.php b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayloadModel.php index b0d680acc22..1b29505f3a6 100644 --- a/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayloadModel.php +++ b/lib/commercetools-api/src/Models/Message/OrderLineItemDiscountSetMessagePayloadModel.php @@ -211,7 +211,8 @@ public function getTaxedPrice() } /** - *

Taxed price of the Shipping Methods in a Cart with Multiple ShippingMode.

+ *

Total taxed prices based on the quantity of Line Item assigned to each Shipping Method. Only applicable for Carts with Multiple ShippingMode. + * Automatically set after perMethodTaxRate is set.

* * * @return null|MethodTaxedPriceCollection diff --git a/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTier.php b/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTier.php index b3b6010b5e9..c39adf91626 100644 --- a/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTier.php +++ b/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTier.php @@ -20,7 +20,7 @@ interface CartScoreTier extends ShippingRatePriceTier public const FIELD_IS_MATCHING = 'isMatching'; /** - *

Abstract value for categorizing a Cart. The range starts at 0. The default price covers 0, tiers start at 1. See Using Tiered Shipping Rates for details and examples.

+ *

Abstract value for categorizing a Cart. The range starts at 0. The default price covers 0, tiers start at 1. See Tiered shipping rates for details and examples.

* * @return null|int diff --git a/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTierBuilder.php b/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTierBuilder.php index de0904eb27c..d4f68b98664 100644 --- a/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTierBuilder.php +++ b/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTierBuilder.php @@ -47,7 +47,7 @@ final class CartScoreTierBuilder implements Builder private $isMatching; /** - *

Abstract value for categorizing a Cart. The range starts at 0. The default price covers 0, tiers start at 1. See Using Tiered Shipping Rates for details and examples.

+ *

Abstract value for categorizing a Cart. The range starts at 0. The default price covers 0, tiers start at 1. See Tiered shipping rates for details and examples.

* * @return null|int diff --git a/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTierModel.php b/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTierModel.php index e78c99e8599..34fd25d7774 100644 --- a/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTierModel.php +++ b/lib/commercetools-api/src/Models/ShippingMethod/CartScoreTierModel.php @@ -89,7 +89,7 @@ public function getType() } /** - *

Abstract value for categorizing a Cart. The range starts at 0. The default price covers 0, tiers start at 1. See Using Tiered Shipping Rates for details and examples.

+ *

Abstract value for categorizing a Cart. The range starts at 0. The default price covers 0, tiers start at 1. See Tiered shipping rates for details and examples.

* * * @return null|int diff --git a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRate.php b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRate.php index 60aa9207310..5552ff95610 100644 --- a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRate.php +++ b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRate.php @@ -28,7 +28,7 @@ interface ShippingRate extends JsonObject public function getPrice(); /** - *

Shipping is free if the sum of the (Custom) Line Item Prices reaches the specified value.

+ *

Free shipping is applied if the sum of the (Custom) Line Item Prices reaches the specified value.

* * @return null|TypedMoney diff --git a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateBuilder.php b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateBuilder.php index ac70baf1e39..37a1643fd19 100644 --- a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateBuilder.php +++ b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateBuilder.php @@ -58,7 +58,7 @@ public function getPrice() } /** - *

Shipping is free if the sum of the (Custom) Line Item Prices reaches the specified value.

+ *

Free shipping is applied if the sum of the (Custom) Line Item Prices reaches the specified value.

* * @return null|TypedMoney diff --git a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraft.php b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraft.php index a3211aa75b6..3ac687367df 100644 --- a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraft.php +++ b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraft.php @@ -27,7 +27,7 @@ interface ShippingRateDraft extends JsonObject public function getPrice(); /** - *

Shipping is free if the sum of the (Custom) Line Item Prices reaches the specified value.

+ *

Free shipping is applied if the sum of the (Custom) Line Item Prices reaches the specified value.

* * @return null|Money diff --git a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraftBuilder.php b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraftBuilder.php index f02b6b5b1cc..0aaffeec56d 100644 --- a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraftBuilder.php +++ b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraftBuilder.php @@ -52,7 +52,7 @@ public function getPrice() } /** - *

Shipping is free if the sum of the (Custom) Line Item Prices reaches the specified value.

+ *

Free shipping is applied if the sum of the (Custom) Line Item Prices reaches the specified value.

* * @return null|Money diff --git a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraftModel.php b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraftModel.php index 66a685ac594..65830e57949 100644 --- a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraftModel.php +++ b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateDraftModel.php @@ -75,7 +75,7 @@ public function getPrice() } /** - *

Shipping is free if the sum of the (Custom) Line Item Prices reaches the specified value.

+ *

Free shipping is applied if the sum of the (Custom) Line Item Prices reaches the specified value.

* * * @return null|Money diff --git a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateModel.php b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateModel.php index 2b60b123f90..227061122e2 100644 --- a/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateModel.php +++ b/lib/commercetools-api/src/Models/ShippingMethod/ShippingRateModel.php @@ -83,7 +83,7 @@ public function getPrice() } /** - *

Shipping is free if the sum of the (Custom) Line Item Prices reaches the specified value.

+ *

Free shipping is applied if the sum of the (Custom) Line Item Prices reaches the specified value.

* * * @return null|TypedMoney diff --git a/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraft.php b/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraft.php index cb0d517545f..b5f079e2eed 100644 --- a/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraft.php +++ b/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraft.php @@ -21,7 +21,7 @@ interface ReturnItemDraft extends JsonObject /** - * @return null|float + * @return null|int */ public function getQuantity(); @@ -52,9 +52,9 @@ public function getComment(); public function getShipmentState(); /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void; + public function setQuantity(?int $quantity): void; /** * @param ?string $lineItemId diff --git a/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraftBuilder.php b/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraftBuilder.php index ca8af276573..06b49f538b1 100644 --- a/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraftBuilder.php +++ b/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraftBuilder.php @@ -22,7 +22,7 @@ final class ReturnItemDraftBuilder implements Builder { /** - * @var ?float + * @var ?int */ private $quantity; @@ -52,7 +52,7 @@ final class ReturnItemDraftBuilder implements Builder /** - * @return null|float + * @return null|int */ public function getQuantity() { @@ -98,10 +98,10 @@ public function getShipmentState() } /** - * @param ?float $quantity + * @param ?int $quantity * @return $this */ - public function withQuantity(?float $quantity) + public function withQuantity(?int $quantity) { $this->quantity = $quantity; diff --git a/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraftModel.php b/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraftModel.php index 660c5048dd4..89dc6a7490f 100644 --- a/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraftModel.php +++ b/lib/commercetools-import/src/Models/OrderPatches/ReturnItemDraftModel.php @@ -21,7 +21,7 @@ final class ReturnItemDraftModel extends JsonObjectModel implements ReturnItemDr { /** * - * @var ?float + * @var ?int */ protected $quantity; @@ -54,7 +54,7 @@ final class ReturnItemDraftModel extends JsonObjectModel implements ReturnItemDr * @psalm-suppress MissingParamType */ public function __construct( - ?float $quantity = null, + ?int $quantity = null, ?string $lineItemId = null, ?string $customLineItemId = null, ?string $comment = null, @@ -69,17 +69,17 @@ public function __construct( /** * - * @return null|float + * @return null|int */ public function getQuantity() { if (is_null($this->quantity)) { - /** @psalm-var ?float $data */ + /** @psalm-var ?int $data */ $data = $this->raw(self::FIELD_QUANTITY); if (is_null($data)) { return null; } - $this->quantity = (float) $data; + $this->quantity = (int) $data; } return $this->quantity; @@ -161,9 +161,9 @@ public function getShipmentState() /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void + public function setQuantity(?int $quantity): void { $this->quantity = $quantity; } diff --git a/lib/commercetools-import/src/Models/Orders/CustomLineItemDraft.php b/lib/commercetools-import/src/Models/Orders/CustomLineItemDraft.php index f787948dfbb..d86db31d1c6 100644 --- a/lib/commercetools-import/src/Models/Orders/CustomLineItemDraft.php +++ b/lib/commercetools-import/src/Models/Orders/CustomLineItemDraft.php @@ -69,7 +69,7 @@ public function getSlug(); /** - * @return null|float + * @return null|int */ public function getQuantity(); @@ -137,9 +137,9 @@ public function setTotalPrice(?TypedMoney $totalPrice): void; public function setSlug(?string $slug): void; /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void; + public function setQuantity(?int $quantity): void; /** * @param ?ItemStateCollection $state diff --git a/lib/commercetools-import/src/Models/Orders/CustomLineItemDraftBuilder.php b/lib/commercetools-import/src/Models/Orders/CustomLineItemDraftBuilder.php index c4d1a504db0..cd1c48560a0 100644 --- a/lib/commercetools-import/src/Models/Orders/CustomLineItemDraftBuilder.php +++ b/lib/commercetools-import/src/Models/Orders/CustomLineItemDraftBuilder.php @@ -60,7 +60,7 @@ final class CustomLineItemDraftBuilder implements Builder /** - * @var ?float + * @var ?int */ private $quantity; @@ -154,7 +154,7 @@ public function getSlug() /** - * @return null|float + * @return null|int */ public function getQuantity() { @@ -273,10 +273,10 @@ public function withSlug(?string $slug) } /** - * @param ?float $quantity + * @param ?int $quantity * @return $this */ - public function withQuantity(?float $quantity) + public function withQuantity(?int $quantity) { $this->quantity = $quantity; diff --git a/lib/commercetools-import/src/Models/Orders/CustomLineItemDraftModel.php b/lib/commercetools-import/src/Models/Orders/CustomLineItemDraftModel.php index 5ccd8712c1d..28b68c5723e 100644 --- a/lib/commercetools-import/src/Models/Orders/CustomLineItemDraftModel.php +++ b/lib/commercetools-import/src/Models/Orders/CustomLineItemDraftModel.php @@ -59,7 +59,7 @@ final class CustomLineItemDraftModel extends JsonObjectModel implements CustomLi /** * - * @var ?float + * @var ?int */ protected $quantity; @@ -109,7 +109,7 @@ public function __construct( ?CustomLineItemTaxedPrice $taxedPrice = null, ?TypedMoney $totalPrice = null, ?string $slug = null, - ?float $quantity = null, + ?int $quantity = null, ?ItemStateCollection $state = null, ?TaxCategoryKeyReference $taxCategory = null, ?TaxRate $taxRate = null, @@ -234,17 +234,17 @@ public function getSlug() /** * - * @return null|float + * @return null|int */ public function getQuantity() { if (is_null($this->quantity)) { - /** @psalm-var ?float $data */ + /** @psalm-var ?int $data */ $data = $this->raw(self::FIELD_QUANTITY); if (is_null($data)) { return null; } - $this->quantity = (float) $data; + $this->quantity = (int) $data; } return $this->quantity; @@ -406,9 +406,9 @@ public function setSlug(?string $slug): void } /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void + public function setQuantity(?int $quantity): void { $this->quantity = $quantity; } diff --git a/lib/commercetools-import/src/Models/Orders/DeliveryItem.php b/lib/commercetools-import/src/Models/Orders/DeliveryItem.php index 1211e3debe4..3341f9eaea8 100644 --- a/lib/commercetools-import/src/Models/Orders/DeliveryItem.php +++ b/lib/commercetools-import/src/Models/Orders/DeliveryItem.php @@ -24,7 +24,7 @@ public function getId(); /** - * @return null|float + * @return null|int */ public function getQuantity(); @@ -34,7 +34,7 @@ public function getQuantity(); public function setId(?string $id): void; /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void; + public function setQuantity(?int $quantity): void; } diff --git a/lib/commercetools-import/src/Models/Orders/DeliveryItemBuilder.php b/lib/commercetools-import/src/Models/Orders/DeliveryItemBuilder.php index 52795b91d53..9ac5246166c 100644 --- a/lib/commercetools-import/src/Models/Orders/DeliveryItemBuilder.php +++ b/lib/commercetools-import/src/Models/Orders/DeliveryItemBuilder.php @@ -28,7 +28,7 @@ final class DeliveryItemBuilder implements Builder /** - * @var ?float + * @var ?int */ private $quantity; @@ -43,7 +43,7 @@ public function getId() /** - * @return null|float + * @return null|int */ public function getQuantity() { @@ -62,10 +62,10 @@ public function withId(?string $id) } /** - * @param ?float $quantity + * @param ?int $quantity * @return $this */ - public function withQuantity(?float $quantity) + public function withQuantity(?int $quantity) { $this->quantity = $quantity; diff --git a/lib/commercetools-import/src/Models/Orders/DeliveryItemModel.php b/lib/commercetools-import/src/Models/Orders/DeliveryItemModel.php index cc2ce127289..dc15e6f52cc 100644 --- a/lib/commercetools-import/src/Models/Orders/DeliveryItemModel.php +++ b/lib/commercetools-import/src/Models/Orders/DeliveryItemModel.php @@ -27,7 +27,7 @@ final class DeliveryItemModel extends JsonObjectModel implements DeliveryItem /** * - * @var ?float + * @var ?int */ protected $quantity; @@ -37,7 +37,7 @@ final class DeliveryItemModel extends JsonObjectModel implements DeliveryItem */ public function __construct( ?string $id = null, - ?float $quantity = null + ?int $quantity = null ) { $this->id = $id; $this->quantity = $quantity; @@ -63,17 +63,17 @@ public function getId() /** * - * @return null|float + * @return null|int */ public function getQuantity() { if (is_null($this->quantity)) { - /** @psalm-var ?float $data */ + /** @psalm-var ?int $data */ $data = $this->raw(self::FIELD_QUANTITY); if (is_null($data)) { return null; } - $this->quantity = (float) $data; + $this->quantity = (int) $data; } return $this->quantity; @@ -89,9 +89,9 @@ public function setId(?string $id): void } /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void + public function setQuantity(?int $quantity): void { $this->quantity = $quantity; } diff --git a/lib/commercetools-import/src/Models/Orders/ItemShippingTarget.php b/lib/commercetools-import/src/Models/Orders/ItemShippingTarget.php index 6fe4df5467b..5529ed3399d 100644 --- a/lib/commercetools-import/src/Models/Orders/ItemShippingTarget.php +++ b/lib/commercetools-import/src/Models/Orders/ItemShippingTarget.php @@ -28,7 +28,7 @@ public function getAddressKey(); *

Maps to ItemShippingTarget.quantity.

* - * @return null|float + * @return null|int */ public function getQuantity(); @@ -38,7 +38,7 @@ public function getQuantity(); public function setAddressKey(?string $addressKey): void; /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void; + public function setQuantity(?int $quantity): void; } diff --git a/lib/commercetools-import/src/Models/Orders/ItemShippingTargetBuilder.php b/lib/commercetools-import/src/Models/Orders/ItemShippingTargetBuilder.php index 4ffacd04cb2..79b50d793d6 100644 --- a/lib/commercetools-import/src/Models/Orders/ItemShippingTargetBuilder.php +++ b/lib/commercetools-import/src/Models/Orders/ItemShippingTargetBuilder.php @@ -28,7 +28,7 @@ final class ItemShippingTargetBuilder implements Builder /** - * @var ?float + * @var ?int */ private $quantity; @@ -47,7 +47,7 @@ public function getAddressKey() *

Maps to ItemShippingTarget.quantity.

* - * @return null|float + * @return null|int */ public function getQuantity() { @@ -66,10 +66,10 @@ public function withAddressKey(?string $addressKey) } /** - * @param ?float $quantity + * @param ?int $quantity * @return $this */ - public function withQuantity(?float $quantity) + public function withQuantity(?int $quantity) { $this->quantity = $quantity; diff --git a/lib/commercetools-import/src/Models/Orders/ItemShippingTargetModel.php b/lib/commercetools-import/src/Models/Orders/ItemShippingTargetModel.php index 33e6d2253e6..d52cb1349d0 100644 --- a/lib/commercetools-import/src/Models/Orders/ItemShippingTargetModel.php +++ b/lib/commercetools-import/src/Models/Orders/ItemShippingTargetModel.php @@ -27,7 +27,7 @@ final class ItemShippingTargetModel extends JsonObjectModel implements ItemShipp /** * - * @var ?float + * @var ?int */ protected $quantity; @@ -37,7 +37,7 @@ final class ItemShippingTargetModel extends JsonObjectModel implements ItemShipp */ public function __construct( ?string $addressKey = null, - ?float $quantity = null + ?int $quantity = null ) { $this->addressKey = $addressKey; $this->quantity = $quantity; @@ -67,17 +67,17 @@ public function getAddressKey() *

Maps to ItemShippingTarget.quantity.

* * - * @return null|float + * @return null|int */ public function getQuantity() { if (is_null($this->quantity)) { - /** @psalm-var ?float $data */ + /** @psalm-var ?int $data */ $data = $this->raw(self::FIELD_QUANTITY); if (is_null($data)) { return null; } - $this->quantity = (float) $data; + $this->quantity = (int) $data; } return $this->quantity; @@ -93,9 +93,9 @@ public function setAddressKey(?string $addressKey): void } /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void + public function setQuantity(?int $quantity): void { $this->quantity = $quantity; } diff --git a/lib/commercetools-import/src/Models/Orders/ItemState.php b/lib/commercetools-import/src/Models/Orders/ItemState.php index 5057523da99..7a74fba0445 100644 --- a/lib/commercetools-import/src/Models/Orders/ItemState.php +++ b/lib/commercetools-import/src/Models/Orders/ItemState.php @@ -19,7 +19,7 @@ interface ItemState extends JsonObject /** - * @return null|float + * @return null|int */ public function getQuantity(); @@ -32,9 +32,9 @@ public function getQuantity(); public function getState(); /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void; + public function setQuantity(?int $quantity): void; /** * @param ?StateKeyReference $state diff --git a/lib/commercetools-import/src/Models/Orders/ItemStateBuilder.php b/lib/commercetools-import/src/Models/Orders/ItemStateBuilder.php index cf64fd0033c..64cce9efa8f 100644 --- a/lib/commercetools-import/src/Models/Orders/ItemStateBuilder.php +++ b/lib/commercetools-import/src/Models/Orders/ItemStateBuilder.php @@ -24,7 +24,7 @@ final class ItemStateBuilder implements Builder { /** - * @var ?float + * @var ?int */ private $quantity; @@ -36,7 +36,7 @@ final class ItemStateBuilder implements Builder /** - * @return null|float + * @return null|int */ public function getQuantity() { @@ -55,10 +55,10 @@ public function getState() } /** - * @param ?float $quantity + * @param ?int $quantity * @return $this */ - public function withQuantity(?float $quantity) + public function withQuantity(?int $quantity) { $this->quantity = $quantity; diff --git a/lib/commercetools-import/src/Models/Orders/ItemStateModel.php b/lib/commercetools-import/src/Models/Orders/ItemStateModel.php index 5d044c550d6..a41aa021c50 100644 --- a/lib/commercetools-import/src/Models/Orders/ItemStateModel.php +++ b/lib/commercetools-import/src/Models/Orders/ItemStateModel.php @@ -23,7 +23,7 @@ final class ItemStateModel extends JsonObjectModel implements ItemState { /** * - * @var ?float + * @var ?int */ protected $quantity; @@ -38,7 +38,7 @@ final class ItemStateModel extends JsonObjectModel implements ItemState * @psalm-suppress MissingParamType */ public function __construct( - ?float $quantity = null, + ?int $quantity = null, ?StateKeyReference $state = null ) { $this->quantity = $quantity; @@ -47,17 +47,17 @@ public function __construct( /** * - * @return null|float + * @return null|int */ public function getQuantity() { if (is_null($this->quantity)) { - /** @psalm-var ?float $data */ + /** @psalm-var ?int $data */ $data = $this->raw(self::FIELD_QUANTITY); if (is_null($data)) { return null; } - $this->quantity = (float) $data; + $this->quantity = (int) $data; } return $this->quantity; @@ -86,9 +86,9 @@ public function getState() /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void + public function setQuantity(?int $quantity): void { $this->quantity = $quantity; } diff --git a/lib/commercetools-import/src/Models/Orders/LineItemImportDraft.php b/lib/commercetools-import/src/Models/Orders/LineItemImportDraft.php index e3329f073b6..1b07c613317 100644 --- a/lib/commercetools-import/src/Models/Orders/LineItemImportDraft.php +++ b/lib/commercetools-import/src/Models/Orders/LineItemImportDraft.php @@ -66,7 +66,7 @@ public function getPrice(); *

Maps to LineItem.quantity.

* - * @return null|float + * @return null|int */ public function getQuantity(); @@ -141,9 +141,9 @@ public function setVariant(?LineItemProductVariantImportDraft $variant): void; public function setPrice(?LineItemPrice $price): void; /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void; + public function setQuantity(?int $quantity): void; /** * @param ?ItemStateCollection $state diff --git a/lib/commercetools-import/src/Models/Orders/LineItemImportDraftBuilder.php b/lib/commercetools-import/src/Models/Orders/LineItemImportDraftBuilder.php index dc44952123b..36d7950a9a0 100644 --- a/lib/commercetools-import/src/Models/Orders/LineItemImportDraftBuilder.php +++ b/lib/commercetools-import/src/Models/Orders/LineItemImportDraftBuilder.php @@ -56,7 +56,7 @@ final class LineItemImportDraftBuilder implements Builder /** - * @var ?float + * @var ?int */ private $quantity; @@ -144,7 +144,7 @@ public function getPrice() *

Maps to LineItem.quantity.

* - * @return null|float + * @return null|int */ public function getQuantity() { @@ -264,10 +264,10 @@ public function withPrice(?LineItemPrice $price) } /** - * @param ?float $quantity + * @param ?int $quantity * @return $this */ - public function withQuantity(?float $quantity) + public function withQuantity(?int $quantity) { $this->quantity = $quantity; diff --git a/lib/commercetools-import/src/Models/Orders/LineItemImportDraftModel.php b/lib/commercetools-import/src/Models/Orders/LineItemImportDraftModel.php index d0257a35d8a..c340f2f3875 100644 --- a/lib/commercetools-import/src/Models/Orders/LineItemImportDraftModel.php +++ b/lib/commercetools-import/src/Models/Orders/LineItemImportDraftModel.php @@ -55,7 +55,7 @@ final class LineItemImportDraftModel extends JsonObjectModel implements LineItem /** * - * @var ?float + * @var ?int */ protected $quantity; @@ -104,7 +104,7 @@ public function __construct( ?LocalizedString $name = null, ?LineItemProductVariantImportDraft $variant = null, ?LineItemPrice $price = null, - ?float $quantity = null, + ?int $quantity = null, ?ItemStateCollection $state = null, ?ChannelKeyReference $supplyChannel = null, ?ChannelKeyReference $distributionChannel = null, @@ -213,17 +213,17 @@ public function getPrice() *

Maps to LineItem.quantity.

* * - * @return null|float + * @return null|int */ public function getQuantity() { if (is_null($this->quantity)) { - /** @psalm-var ?float $data */ + /** @psalm-var ?int $data */ $data = $this->raw(self::FIELD_QUANTITY); if (is_null($data)) { return null; } - $this->quantity = (float) $data; + $this->quantity = (int) $data; } return $this->quantity; @@ -390,9 +390,9 @@ public function setPrice(?LineItemPrice $price): void } /** - * @param ?float $quantity + * @param ?int $quantity */ - public function setQuantity(?float $quantity): void + public function setQuantity(?int $quantity): void { $this->quantity = $quantity; } diff --git a/lib/commercetools-import/src/Models/Orders/ParcelMeasurements.php b/lib/commercetools-import/src/Models/Orders/ParcelMeasurements.php index 068397cbe67..b899bbcc98c 100644 --- a/lib/commercetools-import/src/Models/Orders/ParcelMeasurements.php +++ b/lib/commercetools-import/src/Models/Orders/ParcelMeasurements.php @@ -20,45 +20,45 @@ interface ParcelMeasurements extends JsonObject /** - * @return null|float + * @return null|int */ public function getHeightInMillimeter(); /** - * @return null|float + * @return null|int */ public function getLengthInMillimeter(); /** - * @return null|float + * @return null|int */ public function getWidthInMillimeter(); /** - * @return null|float + * @return null|int */ public function getWeightInGram(); /** - * @param ?float $heightInMillimeter + * @param ?int $heightInMillimeter */ - public function setHeightInMillimeter(?float $heightInMillimeter): void; + public function setHeightInMillimeter(?int $heightInMillimeter): void; /** - * @param ?float $lengthInMillimeter + * @param ?int $lengthInMillimeter */ - public function setLengthInMillimeter(?float $lengthInMillimeter): void; + public function setLengthInMillimeter(?int $lengthInMillimeter): void; /** - * @param ?float $widthInMillimeter + * @param ?int $widthInMillimeter */ - public function setWidthInMillimeter(?float $widthInMillimeter): void; + public function setWidthInMillimeter(?int $widthInMillimeter): void; /** - * @param ?float $weightInGram + * @param ?int $weightInGram */ - public function setWeightInGram(?float $weightInGram): void; + public function setWeightInGram(?int $weightInGram): void; } diff --git a/lib/commercetools-import/src/Models/Orders/ParcelMeasurementsBuilder.php b/lib/commercetools-import/src/Models/Orders/ParcelMeasurementsBuilder.php index 171c93d641b..c9636843ff7 100644 --- a/lib/commercetools-import/src/Models/Orders/ParcelMeasurementsBuilder.php +++ b/lib/commercetools-import/src/Models/Orders/ParcelMeasurementsBuilder.php @@ -22,31 +22,31 @@ final class ParcelMeasurementsBuilder implements Builder { /** - * @var ?float + * @var ?int */ private $heightInMillimeter; /** - * @var ?float + * @var ?int */ private $lengthInMillimeter; /** - * @var ?float + * @var ?int */ private $widthInMillimeter; /** - * @var ?float + * @var ?int */ private $weightInGram; /** - * @return null|float + * @return null|int */ public function getHeightInMillimeter() { @@ -55,7 +55,7 @@ public function getHeightInMillimeter() /** - * @return null|float + * @return null|int */ public function getLengthInMillimeter() { @@ -64,7 +64,7 @@ public function getLengthInMillimeter() /** - * @return null|float + * @return null|int */ public function getWidthInMillimeter() { @@ -73,7 +73,7 @@ public function getWidthInMillimeter() /** - * @return null|float + * @return null|int */ public function getWeightInGram() { @@ -81,10 +81,10 @@ public function getWeightInGram() } /** - * @param ?float $heightInMillimeter + * @param ?int $heightInMillimeter * @return $this */ - public function withHeightInMillimeter(?float $heightInMillimeter) + public function withHeightInMillimeter(?int $heightInMillimeter) { $this->heightInMillimeter = $heightInMillimeter; @@ -92,10 +92,10 @@ public function withHeightInMillimeter(?float $heightInMillimeter) } /** - * @param ?float $lengthInMillimeter + * @param ?int $lengthInMillimeter * @return $this */ - public function withLengthInMillimeter(?float $lengthInMillimeter) + public function withLengthInMillimeter(?int $lengthInMillimeter) { $this->lengthInMillimeter = $lengthInMillimeter; @@ -103,10 +103,10 @@ public function withLengthInMillimeter(?float $lengthInMillimeter) } /** - * @param ?float $widthInMillimeter + * @param ?int $widthInMillimeter * @return $this */ - public function withWidthInMillimeter(?float $widthInMillimeter) + public function withWidthInMillimeter(?int $widthInMillimeter) { $this->widthInMillimeter = $widthInMillimeter; @@ -114,10 +114,10 @@ public function withWidthInMillimeter(?float $widthInMillimeter) } /** - * @param ?float $weightInGram + * @param ?int $weightInGram * @return $this */ - public function withWeightInGram(?float $weightInGram) + public function withWeightInGram(?int $weightInGram) { $this->weightInGram = $weightInGram; diff --git a/lib/commercetools-import/src/Models/Orders/ParcelMeasurementsModel.php b/lib/commercetools-import/src/Models/Orders/ParcelMeasurementsModel.php index 7c1baa77e9b..f34f2982e91 100644 --- a/lib/commercetools-import/src/Models/Orders/ParcelMeasurementsModel.php +++ b/lib/commercetools-import/src/Models/Orders/ParcelMeasurementsModel.php @@ -21,25 +21,25 @@ final class ParcelMeasurementsModel extends JsonObjectModel implements ParcelMea { /** * - * @var ?float + * @var ?int */ protected $heightInMillimeter; /** * - * @var ?float + * @var ?int */ protected $lengthInMillimeter; /** * - * @var ?float + * @var ?int */ protected $widthInMillimeter; /** * - * @var ?float + * @var ?int */ protected $weightInGram; @@ -48,10 +48,10 @@ final class ParcelMeasurementsModel extends JsonObjectModel implements ParcelMea * @psalm-suppress MissingParamType */ public function __construct( - ?float $heightInMillimeter = null, - ?float $lengthInMillimeter = null, - ?float $widthInMillimeter = null, - ?float $weightInGram = null + ?int $heightInMillimeter = null, + ?int $lengthInMillimeter = null, + ?int $widthInMillimeter = null, + ?int $weightInGram = null ) { $this->heightInMillimeter = $heightInMillimeter; $this->lengthInMillimeter = $lengthInMillimeter; @@ -61,17 +61,17 @@ public function __construct( /** * - * @return null|float + * @return null|int */ public function getHeightInMillimeter() { if (is_null($this->heightInMillimeter)) { - /** @psalm-var ?float $data */ + /** @psalm-var ?int $data */ $data = $this->raw(self::FIELD_HEIGHT_IN_MILLIMETER); if (is_null($data)) { return null; } - $this->heightInMillimeter = (float) $data; + $this->heightInMillimeter = (int) $data; } return $this->heightInMillimeter; @@ -79,17 +79,17 @@ public function getHeightInMillimeter() /** * - * @return null|float + * @return null|int */ public function getLengthInMillimeter() { if (is_null($this->lengthInMillimeter)) { - /** @psalm-var ?float $data */ + /** @psalm-var ?int $data */ $data = $this->raw(self::FIELD_LENGTH_IN_MILLIMETER); if (is_null($data)) { return null; } - $this->lengthInMillimeter = (float) $data; + $this->lengthInMillimeter = (int) $data; } return $this->lengthInMillimeter; @@ -97,17 +97,17 @@ public function getLengthInMillimeter() /** * - * @return null|float + * @return null|int */ public function getWidthInMillimeter() { if (is_null($this->widthInMillimeter)) { - /** @psalm-var ?float $data */ + /** @psalm-var ?int $data */ $data = $this->raw(self::FIELD_WIDTH_IN_MILLIMETER); if (is_null($data)) { return null; } - $this->widthInMillimeter = (float) $data; + $this->widthInMillimeter = (int) $data; } return $this->widthInMillimeter; @@ -115,17 +115,17 @@ public function getWidthInMillimeter() /** * - * @return null|float + * @return null|int */ public function getWeightInGram() { if (is_null($this->weightInGram)) { - /** @psalm-var ?float $data */ + /** @psalm-var ?int $data */ $data = $this->raw(self::FIELD_WEIGHT_IN_GRAM); if (is_null($data)) { return null; } - $this->weightInGram = (float) $data; + $this->weightInGram = (int) $data; } return $this->weightInGram; @@ -133,33 +133,33 @@ public function getWeightInGram() /** - * @param ?float $heightInMillimeter + * @param ?int $heightInMillimeter */ - public function setHeightInMillimeter(?float $heightInMillimeter): void + public function setHeightInMillimeter(?int $heightInMillimeter): void { $this->heightInMillimeter = $heightInMillimeter; } /** - * @param ?float $lengthInMillimeter + * @param ?int $lengthInMillimeter */ - public function setLengthInMillimeter(?float $lengthInMillimeter): void + public function setLengthInMillimeter(?int $lengthInMillimeter): void { $this->lengthInMillimeter = $lengthInMillimeter; } /** - * @param ?float $widthInMillimeter + * @param ?int $widthInMillimeter */ - public function setWidthInMillimeter(?float $widthInMillimeter): void + public function setWidthInMillimeter(?int $widthInMillimeter): void { $this->widthInMillimeter = $widthInMillimeter; } /** - * @param ?float $weightInGram + * @param ?int $weightInGram */ - public function setWeightInGram(?float $weightInGram): void + public function setWeightInGram(?int $weightInGram): void { $this->weightInGram = $weightInGram; } diff --git a/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInput.php b/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInput.php index 6754fc4ac28..824b7128e36 100644 --- a/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInput.php +++ b/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInput.php @@ -17,12 +17,12 @@ interface ScoreShippingRateInput extends ShippingRateInput /** - * @return null|float + * @return null|int */ public function getScore(); /** - * @param ?float $score + * @param ?int $score */ - public function setScore(?float $score): void; + public function setScore(?int $score): void; } diff --git a/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInputBuilder.php b/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInputBuilder.php index 5ab106df174..e258d99ee67 100644 --- a/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInputBuilder.php +++ b/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInputBuilder.php @@ -22,13 +22,13 @@ final class ScoreShippingRateInputBuilder implements Builder { /** - * @var ?float + * @var ?int */ private $score; /** - * @return null|float + * @return null|int */ public function getScore() { @@ -36,10 +36,10 @@ public function getScore() } /** - * @param ?float $score + * @param ?int $score * @return $this */ - public function withScore(?float $score) + public function withScore(?int $score) { $this->score = $score; diff --git a/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInputModel.php b/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInputModel.php index ac4e97e2655..af1580f723f 100644 --- a/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInputModel.php +++ b/lib/commercetools-import/src/Models/Orders/ScoreShippingRateInputModel.php @@ -28,7 +28,7 @@ final class ScoreShippingRateInputModel extends JsonObjectModel implements Score /** * - * @var ?float + * @var ?int */ protected $score; @@ -37,7 +37,7 @@ final class ScoreShippingRateInputModel extends JsonObjectModel implements Score * @psalm-suppress MissingParamType */ public function __construct( - ?float $score = null, + ?int $score = null, ?string $type = null ) { $this->score = $score; @@ -64,17 +64,17 @@ public function getType() /** * - * @return null|float + * @return null|int */ public function getScore() { if (is_null($this->score)) { - /** @psalm-var ?float $data */ + /** @psalm-var ?int $data */ $data = $this->raw(self::FIELD_SCORE); if (is_null($data)) { return null; } - $this->score = (float) $data; + $this->score = (int) $data; } return $this->score; @@ -82,9 +82,9 @@ public function getScore() /** - * @param ?float $score + * @param ?int $score */ - public function setScore(?float $score): void + public function setScore(?int $score): void { $this->score = $score; } diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..c793a7b940a --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +e51b47918951e660bf17a187815e2282587b1509 diff --git a/references.txt b/references.txt index 92cd30a23f0..55c2e7265a9 100644 --- a/references.txt +++ b/references.txt @@ -188,3 +188,16 @@ d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7 47e18782ed2049ecdae7413ff7df9c3a796b8132 14cae25763d9bd24ec49dc1a4698532d5a21a7ef de74b7108b22564877be0b8f52e66b3febc1760f +de74b7108b22564877be0b8f52e66b3febc1760f +477146620493d849e6dd23e6faee889be5b0836a +b29097130599fc8a4f618beb7a276feaea4e31a6 +bd1f09f643bdb7b0840feca64b19caa6e55d766a +c640bc7c38e111f9df252979cc5c2ab22568a3d8 +8242aca6c3e58147ce99c6a1dbd08e35818b1563 +2e6876d6e80db67518bc18caed1e630372cae607 +455326d83ec0750dfaec9afc7ec640f15412a68f +bbed21a27bf83c8ac16f323969d71a8855623523 +e3a178953d3d929a58092a0c86d666fee6400c75 +d10443de67d8c8e684b4e63415b5720fc3bcf169 +886f8d7e51ee9afd3dea683e0b6ed042eec469f1 +5b5166eedb28e48364c82c3fcf2d795983fe9fa8