chore: fix typos (#4877)
* Chore: Fix typos * Add generated resources --------- Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
1 parent
359bd290ba
commit
a0bbc1893b
36 files changed
+52
-53
No files matched your search
@@ -238,7 +238,7 @@ describe("POST /admin/discounts", () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe("succesfully creates a dynamic discount without setting valid duration", () => {
|
||||
describe("successfully creates a dynamic discount without setting valid duration", () => {
|
||||
let subject
|
||||
|
||||
beforeAll(async () => {
|
||||
|
||||
@@ -27,7 +27,7 @@ describe("POST /store/carts/:id/payment-session/update", () => {
|
||||
)
|
||||
})
|
||||
|
||||
it("calls CartService retrive", () => {
|
||||
it("calls CartService retrieve", () => {
|
||||
expect(CartServiceMock.retrieveWithTotals).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ describe("POST /store/carts/:id/payment-session/update", () => {
|
||||
)
|
||||
})
|
||||
|
||||
it("calls CartService retrive", () => {
|
||||
it("calls CartService retrieve", () => {
|
||||
expect(CartServiceMock.retrieveWithTotals).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ export class productDomainImprovedIndexes1679950645254
|
||||
{
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
// If you want to reset it to 'on' run 'set enable_nestloop to on;'
|
||||
// Improve large IN queries, since we have separate queries everytime it is better to turn it off
|
||||
// Improve large IN queries, since we have separate queries every time it is better to turn it off
|
||||
await queryRunner.query(`
|
||||
/* You can turn of this settings if you are in a context with lots of variants) set enable_nestloop to off; */
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ export class CustomShippingOption extends SoftDeletableEntity {
|
||||
/**
|
||||
* @schema CustomShippingOption
|
||||
* title: "Custom Shipping Option"
|
||||
* description: "Custom Shipping Options are overriden Shipping Options. Admins can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option."
|
||||
* description: "Custom Shipping Options are overridden Shipping Options. Admins can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option."
|
||||
* type: object
|
||||
* required:
|
||||
* - cart_id
|
||||
@@ -73,7 +73,7 @@ export class CustomShippingOption extends SoftDeletableEntity {
|
||||
* type: string
|
||||
* example: so_01G1G5V27GYX4QXNARRQCW1N8T
|
||||
* shipping_option:
|
||||
* description: The details of the overriden shipping options.
|
||||
* description: The details of the overridden shipping options.
|
||||
* x-expandable: "shipping_option"
|
||||
* nullable: true
|
||||
* $ref: "#/components/schemas/ShippingOption"
|
||||
|
||||
@@ -46,7 +46,7 @@ class AuthService extends TransactionBaseService {
|
||||
* @param {string} token - the api_token of the user to authenticate
|
||||
* @return {AuthenticateResult}
|
||||
* success: whether authentication succeeded
|
||||
* user: the user document if authentication succeded
|
||||
* user: the user document if authentication succeeded
|
||||
* error: a string with the error message
|
||||
*/
|
||||
async authenticateAPIToken(token: string): Promise<AuthenticateResult> {
|
||||
@@ -89,7 +89,7 @@ class AuthService extends TransactionBaseService {
|
||||
* @param {string} password - the password of the user
|
||||
* @return {AuthenticateResult}
|
||||
* success: whether authentication succeeded
|
||||
* user: the user document if authentication succeded
|
||||
* user: the user document if authentication succeeded
|
||||
* error: a string with the error message
|
||||
*/
|
||||
async authenticate(
|
||||
@@ -138,7 +138,7 @@ class AuthService extends TransactionBaseService {
|
||||
* @param {string} password - the password of the user
|
||||
* @return {{ success: (bool), customer: (object | undefined) }}
|
||||
* success: whether authentication succeeded
|
||||
* user: the user document if authentication succeded
|
||||
* user: the user document if authentication succeeded
|
||||
* error: a string with the error message
|
||||
*/
|
||||
async authenticateCustomer(
|
||||
|
||||
@@ -605,7 +605,7 @@ class CartService extends TransactionBaseService {
|
||||
* @param cartId - the id of the cart that we will add to
|
||||
* @param lineItem - the line item to add.
|
||||
* @param config
|
||||
* validateSalesChannels - should check if product belongs to the same sales chanel as cart
|
||||
* validateSalesChannels - should check if product belongs to the same sales channel as cart
|
||||
* (if cart has associated sales channel)
|
||||
* @return the result of the update operation
|
||||
* @deprecated Use {@link addOrUpdateLineItems} instead.
|
||||
@@ -746,7 +746,7 @@ class CartService extends TransactionBaseService {
|
||||
* @param cartId - the id of the cart that we will add to
|
||||
* @param lineItems - the line items to add.
|
||||
* @param config
|
||||
* validateSalesChannels - should check if product belongs to the same sales chanel as cart
|
||||
* validateSalesChannels - should check if product belongs to the same sales channel as cart
|
||||
* (if cart has associated sales channel)
|
||||
* @return the result of the update operation
|
||||
*/
|
||||
@@ -1985,7 +1985,7 @@ class CartService extends TransactionBaseService {
|
||||
/**
|
||||
* Removes a payment session from the cart.
|
||||
* @param cartId - the id of the cart to remove from
|
||||
* @param providerId - the id of the provider whoose payment session
|
||||
* @param providerId - the id of the provider whose payment session
|
||||
* should be removed.
|
||||
* @return the resulting cart.
|
||||
*/
|
||||
@@ -2037,7 +2037,7 @@ class CartService extends TransactionBaseService {
|
||||
/**
|
||||
* Refreshes a payment session on a cart
|
||||
* @param cartId - the id of the cart to remove from
|
||||
* @param providerId - the id of the provider whoose payment session
|
||||
* @param providerId - the id of the provider whose payment session
|
||||
* should be removed.
|
||||
* @return {Promise<void>} the resulting cart.
|
||||
*/
|
||||
|
||||
@@ -34,7 +34,7 @@ type CalculateOptionPriceInput = {
|
||||
}
|
||||
|
||||
/**
|
||||
* Helps retrive fulfillment providers
|
||||
* Helps retrieve fulfillment providers
|
||||
*/
|
||||
class FulfillmentProviderService extends TransactionBaseService {
|
||||
protected readonly container_: FulfillmentProviderContainer
|
||||
|
||||
@@ -720,7 +720,7 @@ export default class NewTotalsService extends TransactionBaseService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate and return the shipping method totals legacy using teh tax rate
|
||||
* Calculate and return the shipping method totals legacy using the tax rate
|
||||
* @param shippingMethod
|
||||
* @param calculationContext
|
||||
* @param taxRate
|
||||
|
||||
@@ -211,7 +211,7 @@ class NotificationService extends TransactionBaseService {
|
||||
* method. Persists the Notification in the database.
|
||||
* @param event - the name of the event
|
||||
* @param eventData - the data the event was sent with
|
||||
* @param providerId - the provider that should hande the event.
|
||||
* @param providerId - the provider that should handle the event.
|
||||
* @return the created notification
|
||||
*/
|
||||
async send(
|
||||
|
||||
@@ -850,8 +850,7 @@ class OrderService extends TransactionBaseService {
|
||||
* have been created in regards to the shipment.
|
||||
* @param orderId - the id of the order that has been shipped
|
||||
* @param fulfillmentId - the fulfillment that has now been shipped
|
||||
* @param trackingLinks - array of tracking numebers
|
||||
* associated with the shipment
|
||||
* @param trackingLinks - array of tracking numbers associated with the shipment
|
||||
* @param config - the config of the order that has been shipped
|
||||
* @return the resulting order following the update.
|
||||
*/
|
||||
@@ -1957,8 +1956,8 @@ class OrderService extends TransactionBaseService {
|
||||
* Handles receiving a return. This will create a
|
||||
* refund to the customer. If the returned items don't match the requested
|
||||
* items the return status will be updated to requires_action. This behaviour
|
||||
* is useful in sitautions where a custom refund amount is requested, but the
|
||||
* retuned items are not matching the requested items. Setting the
|
||||
* is useful in situations where a custom refund amount is requested, but the
|
||||
* returned items are not matching the requested items. Setting the
|
||||
* allowMismatch argument to true, will process the return, ignoring any
|
||||
* mismatches.
|
||||
* @param orderId - the order to return.
|
||||
|
||||
@@ -516,7 +516,7 @@ class ProductCategoryService extends TransactionBaseService {
|
||||
| UpdateProductCategoryInput
|
||||
): Promise<CreateProductCategoryInput | UpdateProductCategoryInput> {
|
||||
// Typeorm only updates mpath when the category entity of the parent
|
||||
// is passed into create/save. For this reason, everytime we create a
|
||||
// is passed into create/save. For this reason, every time we create a
|
||||
// category, we must fetch the entity and push to create
|
||||
const parentCategoryId = productCategoryInput.parent_category_id
|
||||
|
||||
|
||||
@@ -566,8 +566,8 @@ class ReturnService extends TransactionBaseService {
|
||||
* Registers a previously requested return as received. This will create a
|
||||
* refund to the customer. If the returned items don't match the requested
|
||||
* items the return status will be updated to requires_action. This behaviour
|
||||
* is useful in sitautions where a custom refund amount is requested, but the
|
||||
* retuned items are not matching the requested items. Setting the
|
||||
* is useful in situations where a custom refund amount is requested, but the
|
||||
* returned items are not matching the requested items. Setting the
|
||||
* allowMismatch argument to true, will process the return, ignoring any
|
||||
* mismatches.
|
||||
* @param returnId - the orderId to return to
|
||||
|
||||
Reference in new issue
Block a user