@shopware-ag/acceptance-test-suite 11.8.1 → 11.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +72 -31
- package/dist/index.d.ts +72 -31
- package/dist/index.mjs +378 -303
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -274,10 +274,10 @@ type Tag = components['schemas']['Tag'] & {
|
|
|
274
274
|
type Rule = components['schemas']['Rule'] & {
|
|
275
275
|
id: string;
|
|
276
276
|
};
|
|
277
|
-
type Currency$
|
|
277
|
+
type Currency$2 = components['schemas']['Currency'] & {
|
|
278
278
|
id: string;
|
|
279
279
|
};
|
|
280
|
-
type Country = Omit<components['schemas']['Country'], 'states'> & {
|
|
280
|
+
type Country$1 = Omit<components['schemas']['Country'], 'states'> & {
|
|
281
281
|
id: string;
|
|
282
282
|
states: [
|
|
283
283
|
{
|
|
@@ -319,10 +319,10 @@ type Order = Omit<components['schemas']['Order'], 'deliveries' | 'price'> & {
|
|
|
319
319
|
};
|
|
320
320
|
deliveries: Record<string, unknown>[];
|
|
321
321
|
};
|
|
322
|
-
type ShippingMethod = components['schemas']['ShippingMethod'] & {
|
|
322
|
+
type ShippingMethod$1 = components['schemas']['ShippingMethod'] & {
|
|
323
323
|
id: string;
|
|
324
324
|
};
|
|
325
|
-
type PaymentMethod = components['schemas']['PaymentMethod'] & {
|
|
325
|
+
type PaymentMethod$1 = components['schemas']['PaymentMethod'] & {
|
|
326
326
|
id: string;
|
|
327
327
|
};
|
|
328
328
|
type StateMachine = components['schemas']['StateMachine'] & {
|
|
@@ -380,7 +380,7 @@ interface RegistrationData {
|
|
|
380
380
|
department: string;
|
|
381
381
|
vatRegNo: string;
|
|
382
382
|
}
|
|
383
|
-
type Language$
|
|
383
|
+
type Language$2 = components['schemas']['Language'] & {
|
|
384
384
|
id: string;
|
|
385
385
|
};
|
|
386
386
|
type CustomFieldSet = components['schemas']['CustomFieldSet'] & {
|
|
@@ -394,7 +394,7 @@ type CustomField = Omit<components['schemas']['CustomField'], 'config'> & {
|
|
|
394
394
|
};
|
|
395
395
|
};
|
|
396
396
|
};
|
|
397
|
-
type Tax = components['schemas']['Tax'] & {
|
|
397
|
+
type Tax$1 = components['schemas']['Tax'] & {
|
|
398
398
|
id: string;
|
|
399
399
|
};
|
|
400
400
|
declare enum RuleType {
|
|
@@ -646,25 +646,25 @@ declare class TestDataService {
|
|
|
646
646
|
*
|
|
647
647
|
* @param overrides - Specific data overrides that will be applied to the payment method data struct.
|
|
648
648
|
*/
|
|
649
|
-
createBasicPaymentMethod(overrides?: Partial<PaymentMethod>): Promise<PaymentMethod>;
|
|
649
|
+
createBasicPaymentMethod(overrides?: Partial<PaymentMethod$1>): Promise<PaymentMethod$1>;
|
|
650
650
|
/**
|
|
651
651
|
* Creates a payment method with one randomly generated image.
|
|
652
652
|
*
|
|
653
653
|
* @param overrides - Specific data overrides that will be applied to the payment method data struct.
|
|
654
654
|
*/
|
|
655
|
-
createPaymentMethodWithImage(overrides?: Partial<PaymentMethod>): Promise<PaymentMethod>;
|
|
655
|
+
createPaymentMethodWithImage(overrides?: Partial<PaymentMethod$1>): Promise<PaymentMethod$1>;
|
|
656
656
|
/**
|
|
657
657
|
* Creates a new basic shipping method with random delivery time.
|
|
658
658
|
*
|
|
659
659
|
* @param overrides - Specific data overrides that will be applied to the shipping method data struct.
|
|
660
660
|
*/
|
|
661
|
-
createBasicShippingMethod(overrides?: Partial<ShippingMethod>): Promise<ShippingMethod>;
|
|
661
|
+
createBasicShippingMethod(overrides?: Partial<ShippingMethod$1>): Promise<ShippingMethod$1>;
|
|
662
662
|
/**
|
|
663
663
|
* Creates a shipping method with one randomly generated image.
|
|
664
664
|
*
|
|
665
665
|
* @param overrides - Specific data overrides that will be applied to the shipping method data struct.
|
|
666
666
|
*/
|
|
667
|
-
createShippingMethodWithImage(overrides?: Partial<ShippingMethod>): Promise<ShippingMethod>;
|
|
667
|
+
createShippingMethodWithImage(overrides?: Partial<ShippingMethod$1>): Promise<ShippingMethod$1>;
|
|
668
668
|
/**
|
|
669
669
|
* Creates a new basic rule with the condition cart amount >= 1.
|
|
670
670
|
*
|
|
@@ -683,14 +683,14 @@ declare class TestDataService {
|
|
|
683
683
|
*
|
|
684
684
|
* @param overrides - Specific data overrides that will be applied to the country data struct.
|
|
685
685
|
*/
|
|
686
|
-
createCountry(overrides?: Partial<Country>): Promise<Country>;
|
|
686
|
+
createCountry(overrides?: Partial<Country$1>): Promise<Country$1>;
|
|
687
687
|
/**
|
|
688
688
|
* Creates a random currency with default rounding of 2 decimals
|
|
689
689
|
*
|
|
690
690
|
* @param roundingDecimals - Decimals of the rounding shown in Storefront, default value 2
|
|
691
691
|
* @param overrides - Specific data overrides that will be applied to the currency data struct.
|
|
692
692
|
*/
|
|
693
|
-
createCurrency(overrides?: Partial<Currency$
|
|
693
|
+
createCurrency(overrides?: Partial<Currency$2>, roundingDecimals?: number): Promise<Currency$2>;
|
|
694
694
|
/**
|
|
695
695
|
* Creates a random customer group
|
|
696
696
|
*
|
|
@@ -733,7 +733,7 @@ declare class TestDataService {
|
|
|
733
733
|
*
|
|
734
734
|
* @param overrides - Specific data overrides that will be applied to the tax data struct.
|
|
735
735
|
*/
|
|
736
|
-
createTaxRate(overrides?: Partial<Tax>): Promise<Tax>;
|
|
736
|
+
createTaxRate(overrides?: Partial<Tax$1>): Promise<Tax$1>;
|
|
737
737
|
/**
|
|
738
738
|
* Assigns a media resource as the download of a digital product.
|
|
739
739
|
*
|
|
@@ -846,13 +846,13 @@ declare class TestDataService {
|
|
|
846
846
|
* Retrieves a language based on its code.
|
|
847
847
|
* @param languageCode
|
|
848
848
|
*/
|
|
849
|
-
getLanguageData(languageCode: string): Promise<Language$
|
|
849
|
+
getLanguageData(languageCode: string): Promise<Language$2>;
|
|
850
850
|
/**
|
|
851
851
|
* Retrieves a currency based on its ISO code.
|
|
852
852
|
*
|
|
853
853
|
* @param isoCode - The ISO code of the currency, for example "EUR".
|
|
854
854
|
*/
|
|
855
|
-
getCurrency(isoCode: string): Promise<Currency$
|
|
855
|
+
getCurrency(isoCode: string): Promise<Currency$2>;
|
|
856
856
|
/**
|
|
857
857
|
* Retrieves a rule based on its name.
|
|
858
858
|
*
|
|
@@ -864,7 +864,7 @@ declare class TestDataService {
|
|
|
864
864
|
*
|
|
865
865
|
* @param name - The name of the shipping method. Default is "Standard".
|
|
866
866
|
*/
|
|
867
|
-
getShippingMethod(name?: string): Promise<ShippingMethod>;
|
|
867
|
+
getShippingMethod(name?: string): Promise<ShippingMethod$1>;
|
|
868
868
|
/**
|
|
869
869
|
* Retrieves all delivery time resources.
|
|
870
870
|
*/
|
|
@@ -874,7 +874,7 @@ declare class TestDataService {
|
|
|
874
874
|
*
|
|
875
875
|
* @param name - The name of the payment method. Default is "Invoice".
|
|
876
876
|
*/
|
|
877
|
-
getPaymentMethod(name?: string): Promise<PaymentMethod>;
|
|
877
|
+
getPaymentMethod(name?: string): Promise<PaymentMethod$1>;
|
|
878
878
|
/**
|
|
879
879
|
* Retrieves the address of a customer by its uuid.
|
|
880
880
|
*
|
|
@@ -940,7 +940,7 @@ declare class TestDataService {
|
|
|
940
940
|
*
|
|
941
941
|
* @param languageId - The id of the property group.
|
|
942
942
|
*/
|
|
943
|
-
getLanguageById(languageId: string): Promise<Language$
|
|
943
|
+
getLanguageById(languageId: string): Promise<Language$2>;
|
|
944
944
|
/**
|
|
945
945
|
* Adds an entity reference to the registry of created records.
|
|
946
946
|
* All entities added to the registry will be deleted by the cleanup call.
|
|
@@ -988,25 +988,25 @@ declare class TestDataService {
|
|
|
988
988
|
*
|
|
989
989
|
* @param iso2 - The iso2 code of the country, for example "DE".
|
|
990
990
|
*/
|
|
991
|
-
getCountryId(iso2: string): Promise<Country>;
|
|
991
|
+
getCountryId(iso2: string): Promise<Country$1>;
|
|
992
992
|
/**
|
|
993
993
|
* Retrieves a country based on its iso2 code.
|
|
994
994
|
*
|
|
995
995
|
* @param iso2 - The iso2 code of the country, for example "DE".
|
|
996
996
|
*/
|
|
997
|
-
getCountry(iso2: string): Promise<Country>;
|
|
998
|
-
getCountryStruct(overrides?: Partial<Country>): Partial<Country>;
|
|
999
|
-
getCurrencyStruct(overrides: Partial<Currency$
|
|
997
|
+
getCountry(iso2: string): Promise<Country$1>;
|
|
998
|
+
getCountryStruct(overrides?: Partial<Country$1>): Partial<Country$1>;
|
|
999
|
+
getCurrencyStruct(overrides: Partial<Currency$2> | undefined, roundingDecimals: number): Partial<Currency$2>;
|
|
1000
1000
|
getBasicProductStruct(taxId?: string, currencyId?: string, overrides?: Partial<Product>): Partial<Product>;
|
|
1001
1001
|
getBasicRuleStruct(overrides: Partial<Rule> | undefined, conditionType: string, operator: string, amount: number): Partial<Rule>;
|
|
1002
1002
|
getProductPriceRangeStruct(currencyId: string, ruleId: string): Partial<Product>;
|
|
1003
1003
|
getBasicManufacturerStruct(overrides?: Partial<Manufacturer>): Partial<Manufacturer>;
|
|
1004
|
-
getBasicPaymentMethodStruct(overrides?: Partial<PaymentMethod>): {
|
|
1004
|
+
getBasicPaymentMethodStruct(overrides?: Partial<PaymentMethod$1>): {
|
|
1005
1005
|
id: string;
|
|
1006
1006
|
name: string;
|
|
1007
1007
|
technicalName: string;
|
|
1008
1008
|
active: boolean;
|
|
1009
|
-
} & Partial<PaymentMethod>;
|
|
1009
|
+
} & Partial<PaymentMethod$1>;
|
|
1010
1010
|
getBasicCategoryStruct(overrides?: Partial<Category$1>, parentId?: string): {
|
|
1011
1011
|
id: string;
|
|
1012
1012
|
name: string;
|
|
@@ -1018,15 +1018,15 @@ declare class TestDataService {
|
|
|
1018
1018
|
active: boolean;
|
|
1019
1019
|
} & Partial<Category$1>;
|
|
1020
1020
|
getBasicCustomerStruct(salesChannelId: string, customerGroupId: string, languageId: string, countryId: string, defaultPaymentMethodId: string, salutationId: string, overrides?: Partial<Customer>): Partial<Customer>;
|
|
1021
|
-
getBasicOrderDeliveryStruct(deliveryState: StateMachineState, shippingMethod: ShippingMethod, customerAddress: CustomerAddress): Partial<OrderDelivery>;
|
|
1022
|
-
getBasicShippingMethodStruct(deliveryTimeId: string, overrides?: Partial<ShippingMethod>): {
|
|
1021
|
+
getBasicOrderDeliveryStruct(deliveryState: StateMachineState, shippingMethod: ShippingMethod$1, customerAddress: CustomerAddress): Partial<OrderDelivery>;
|
|
1022
|
+
getBasicShippingMethodStruct(deliveryTimeId: string, overrides?: Partial<ShippingMethod$1>): {
|
|
1023
1023
|
id: string;
|
|
1024
1024
|
name: string;
|
|
1025
1025
|
technicalName: string;
|
|
1026
1026
|
deliveryTimeId: string;
|
|
1027
1027
|
active: boolean;
|
|
1028
|
-
} & Partial<ShippingMethod>;
|
|
1029
|
-
getBasicOrderStruct(lineItems: SimpleLineItem[], languageId: string, currency: Currency$
|
|
1028
|
+
} & Partial<ShippingMethod$1>;
|
|
1029
|
+
getBasicOrderStruct(lineItems: SimpleLineItem[], languageId: string, currency: Currency$2, paymentMethod: PaymentMethod$1, shippingMethod: ShippingMethod$1, orderState: StateMachineState, deliveryState: StateMachineState, transactionState: StateMachineState, customer: Customer, customerAddress: CustomerAddress, salesChannelId?: string, overrides?: Partial<Order>): Partial<Order>;
|
|
1030
1030
|
getBasicProductLineItemStruct(lineItem: SimpleLineItem): {
|
|
1031
1031
|
productId: string;
|
|
1032
1032
|
referencedId: string;
|
|
@@ -1105,7 +1105,7 @@ declare class TestDataService {
|
|
|
1105
1105
|
getBasicCustomFieldSetStruct(overrides?: Partial<CustomFieldSet>): Partial<CustomFieldSet>;
|
|
1106
1106
|
getBasicCustomFieldStruct(overrides?: Partial<CustomField>): Partial<CustomField>;
|
|
1107
1107
|
getSalesChannelDomainStruct(salesChannelId: string, currencyId: string, languageId: string, snippetSetId: string, overrides?: Partial<SalesChannelDomain>): Partial<SalesChannelDomain>;
|
|
1108
|
-
getTaxStruct(overrides: Partial<Tax>): Partial<Tax>;
|
|
1108
|
+
getTaxStruct(overrides: Partial<Tax$1>): Partial<Tax$1>;
|
|
1109
1109
|
getBasicCrossSellingStruct(productId: string, overrides?: Partial<ProductCrossSelling>): never;
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
@@ -1154,6 +1154,44 @@ interface DefaultSalesChannelTypes {
|
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
1156
|
|
|
1157
|
+
interface Country {
|
|
1158
|
+
id: string;
|
|
1159
|
+
}
|
|
1160
|
+
interface Currency$1 {
|
|
1161
|
+
id: string;
|
|
1162
|
+
}
|
|
1163
|
+
interface Language$1 {
|
|
1164
|
+
id: string;
|
|
1165
|
+
translationCode: {
|
|
1166
|
+
id: string;
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
interface PaymentMethod {
|
|
1170
|
+
id: string;
|
|
1171
|
+
}
|
|
1172
|
+
interface ShippingMethod {
|
|
1173
|
+
id: string;
|
|
1174
|
+
}
|
|
1175
|
+
interface SnippetSet {
|
|
1176
|
+
id: string;
|
|
1177
|
+
}
|
|
1178
|
+
interface Tax {
|
|
1179
|
+
id: string;
|
|
1180
|
+
}
|
|
1181
|
+
interface Theme {
|
|
1182
|
+
id: string;
|
|
1183
|
+
}
|
|
1184
|
+
interface ShopwareDataFixtureTypes {
|
|
1185
|
+
Country: Country;
|
|
1186
|
+
Currency: Currency$1;
|
|
1187
|
+
Language: Language$1;
|
|
1188
|
+
PaymentMethod: PaymentMethod;
|
|
1189
|
+
ShippingMethod: ShippingMethod;
|
|
1190
|
+
SnippetSet: SnippetSet;
|
|
1191
|
+
Tax: Tax;
|
|
1192
|
+
Theme: Theme;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1157
1195
|
interface PageObject {
|
|
1158
1196
|
readonly page: Page;
|
|
1159
1197
|
url(...args: unknown[]): string;
|
|
@@ -2418,7 +2456,7 @@ interface FeatureFixtureTypes {
|
|
|
2418
2456
|
FeatureService: FeatureService;
|
|
2419
2457
|
}
|
|
2420
2458
|
|
|
2421
|
-
interface FixtureTypes extends ApiContextTypes, PageContextTypes, ActorFixtureTypes, TestDataFixtureTypes, HelperFixtureTypes, FeatureFixtureTypes, DefaultSalesChannelTypes, StorefrontPageTypes, AdministrationPageTypes, DataFixtureTypes {
|
|
2459
|
+
interface FixtureTypes extends ApiContextTypes, PageContextTypes, ActorFixtureTypes, TestDataFixtureTypes, HelperFixtureTypes, FeatureFixtureTypes, DefaultSalesChannelTypes, ShopwareDataFixtureTypes, StorefrontPageTypes, AdministrationPageTypes, DataFixtureTypes {
|
|
2422
2460
|
}
|
|
2423
2461
|
|
|
2424
2462
|
type Language = components['schemas']['Language'] & {
|
|
@@ -2438,8 +2476,11 @@ declare const getPaymentMethodId: (adminApiContext: AdminApiContext, handlerId?:
|
|
|
2438
2476
|
/**
|
|
2439
2477
|
* Gives the default shipping method back called Standard
|
|
2440
2478
|
* @param adminApiContext - An AdminApiContext entity
|
|
2479
|
+
*
|
|
2480
|
+
* @deprecated - Use getShippingMethodId instead
|
|
2441
2481
|
*/
|
|
2442
2482
|
declare const getDefaultShippingMethodId: (adminApiContext: AdminApiContext) => Promise<string>;
|
|
2483
|
+
declare const getShippingMethodId: (name: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
2443
2484
|
declare const getCountryId: (iso2: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
2444
2485
|
declare const getThemeId: (technicalName: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
2445
2486
|
declare const getSalutationId: (salutationKey: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
@@ -2525,4 +2566,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
2525
2566
|
AddProductToWishlist: Task;
|
|
2526
2567
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
2527
2568
|
|
|
2528
|
-
export { type AccountData, type Address, AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CategoryCustomizableLinkData, type CategoryData, type CmsPage, type Country, type CreatedRecord, type Currency$
|
|
2569
|
+
export { type AccountData, type Address, AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CategoryCustomizableLinkData, type CategoryData, type CmsPage, type Country$1 as Country, type CreatedRecord, type Currency$2 as Currency, type CustomField, type CustomFieldData, type CustomFieldSet, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Language$2 as Language, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod$1 as PaymentMethod, type Price, type Product, type ProductCrossSelling, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type RuleAssignmentEntity, RuleType, type SalesChannel, type SalesChannelAnalytics, type SalesChannelDomain, type SalesChannelRecord, type Salutation, type ShippingMethod$1 as ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type TagData, type Task, type Tax$1 as Tax, type TaxRules, TestDataService, type VariantListingConfig, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getShippingMethodId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
package/dist/index.d.ts
CHANGED
|
@@ -274,10 +274,10 @@ type Tag = components['schemas']['Tag'] & {
|
|
|
274
274
|
type Rule = components['schemas']['Rule'] & {
|
|
275
275
|
id: string;
|
|
276
276
|
};
|
|
277
|
-
type Currency$
|
|
277
|
+
type Currency$2 = components['schemas']['Currency'] & {
|
|
278
278
|
id: string;
|
|
279
279
|
};
|
|
280
|
-
type Country = Omit<components['schemas']['Country'], 'states'> & {
|
|
280
|
+
type Country$1 = Omit<components['schemas']['Country'], 'states'> & {
|
|
281
281
|
id: string;
|
|
282
282
|
states: [
|
|
283
283
|
{
|
|
@@ -319,10 +319,10 @@ type Order = Omit<components['schemas']['Order'], 'deliveries' | 'price'> & {
|
|
|
319
319
|
};
|
|
320
320
|
deliveries: Record<string, unknown>[];
|
|
321
321
|
};
|
|
322
|
-
type ShippingMethod = components['schemas']['ShippingMethod'] & {
|
|
322
|
+
type ShippingMethod$1 = components['schemas']['ShippingMethod'] & {
|
|
323
323
|
id: string;
|
|
324
324
|
};
|
|
325
|
-
type PaymentMethod = components['schemas']['PaymentMethod'] & {
|
|
325
|
+
type PaymentMethod$1 = components['schemas']['PaymentMethod'] & {
|
|
326
326
|
id: string;
|
|
327
327
|
};
|
|
328
328
|
type StateMachine = components['schemas']['StateMachine'] & {
|
|
@@ -380,7 +380,7 @@ interface RegistrationData {
|
|
|
380
380
|
department: string;
|
|
381
381
|
vatRegNo: string;
|
|
382
382
|
}
|
|
383
|
-
type Language$
|
|
383
|
+
type Language$2 = components['schemas']['Language'] & {
|
|
384
384
|
id: string;
|
|
385
385
|
};
|
|
386
386
|
type CustomFieldSet = components['schemas']['CustomFieldSet'] & {
|
|
@@ -394,7 +394,7 @@ type CustomField = Omit<components['schemas']['CustomField'], 'config'> & {
|
|
|
394
394
|
};
|
|
395
395
|
};
|
|
396
396
|
};
|
|
397
|
-
type Tax = components['schemas']['Tax'] & {
|
|
397
|
+
type Tax$1 = components['schemas']['Tax'] & {
|
|
398
398
|
id: string;
|
|
399
399
|
};
|
|
400
400
|
declare enum RuleType {
|
|
@@ -646,25 +646,25 @@ declare class TestDataService {
|
|
|
646
646
|
*
|
|
647
647
|
* @param overrides - Specific data overrides that will be applied to the payment method data struct.
|
|
648
648
|
*/
|
|
649
|
-
createBasicPaymentMethod(overrides?: Partial<PaymentMethod>): Promise<PaymentMethod>;
|
|
649
|
+
createBasicPaymentMethod(overrides?: Partial<PaymentMethod$1>): Promise<PaymentMethod$1>;
|
|
650
650
|
/**
|
|
651
651
|
* Creates a payment method with one randomly generated image.
|
|
652
652
|
*
|
|
653
653
|
* @param overrides - Specific data overrides that will be applied to the payment method data struct.
|
|
654
654
|
*/
|
|
655
|
-
createPaymentMethodWithImage(overrides?: Partial<PaymentMethod>): Promise<PaymentMethod>;
|
|
655
|
+
createPaymentMethodWithImage(overrides?: Partial<PaymentMethod$1>): Promise<PaymentMethod$1>;
|
|
656
656
|
/**
|
|
657
657
|
* Creates a new basic shipping method with random delivery time.
|
|
658
658
|
*
|
|
659
659
|
* @param overrides - Specific data overrides that will be applied to the shipping method data struct.
|
|
660
660
|
*/
|
|
661
|
-
createBasicShippingMethod(overrides?: Partial<ShippingMethod>): Promise<ShippingMethod>;
|
|
661
|
+
createBasicShippingMethod(overrides?: Partial<ShippingMethod$1>): Promise<ShippingMethod$1>;
|
|
662
662
|
/**
|
|
663
663
|
* Creates a shipping method with one randomly generated image.
|
|
664
664
|
*
|
|
665
665
|
* @param overrides - Specific data overrides that will be applied to the shipping method data struct.
|
|
666
666
|
*/
|
|
667
|
-
createShippingMethodWithImage(overrides?: Partial<ShippingMethod>): Promise<ShippingMethod>;
|
|
667
|
+
createShippingMethodWithImage(overrides?: Partial<ShippingMethod$1>): Promise<ShippingMethod$1>;
|
|
668
668
|
/**
|
|
669
669
|
* Creates a new basic rule with the condition cart amount >= 1.
|
|
670
670
|
*
|
|
@@ -683,14 +683,14 @@ declare class TestDataService {
|
|
|
683
683
|
*
|
|
684
684
|
* @param overrides - Specific data overrides that will be applied to the country data struct.
|
|
685
685
|
*/
|
|
686
|
-
createCountry(overrides?: Partial<Country>): Promise<Country>;
|
|
686
|
+
createCountry(overrides?: Partial<Country$1>): Promise<Country$1>;
|
|
687
687
|
/**
|
|
688
688
|
* Creates a random currency with default rounding of 2 decimals
|
|
689
689
|
*
|
|
690
690
|
* @param roundingDecimals - Decimals of the rounding shown in Storefront, default value 2
|
|
691
691
|
* @param overrides - Specific data overrides that will be applied to the currency data struct.
|
|
692
692
|
*/
|
|
693
|
-
createCurrency(overrides?: Partial<Currency$
|
|
693
|
+
createCurrency(overrides?: Partial<Currency$2>, roundingDecimals?: number): Promise<Currency$2>;
|
|
694
694
|
/**
|
|
695
695
|
* Creates a random customer group
|
|
696
696
|
*
|
|
@@ -733,7 +733,7 @@ declare class TestDataService {
|
|
|
733
733
|
*
|
|
734
734
|
* @param overrides - Specific data overrides that will be applied to the tax data struct.
|
|
735
735
|
*/
|
|
736
|
-
createTaxRate(overrides?: Partial<Tax>): Promise<Tax>;
|
|
736
|
+
createTaxRate(overrides?: Partial<Tax$1>): Promise<Tax$1>;
|
|
737
737
|
/**
|
|
738
738
|
* Assigns a media resource as the download of a digital product.
|
|
739
739
|
*
|
|
@@ -846,13 +846,13 @@ declare class TestDataService {
|
|
|
846
846
|
* Retrieves a language based on its code.
|
|
847
847
|
* @param languageCode
|
|
848
848
|
*/
|
|
849
|
-
getLanguageData(languageCode: string): Promise<Language$
|
|
849
|
+
getLanguageData(languageCode: string): Promise<Language$2>;
|
|
850
850
|
/**
|
|
851
851
|
* Retrieves a currency based on its ISO code.
|
|
852
852
|
*
|
|
853
853
|
* @param isoCode - The ISO code of the currency, for example "EUR".
|
|
854
854
|
*/
|
|
855
|
-
getCurrency(isoCode: string): Promise<Currency$
|
|
855
|
+
getCurrency(isoCode: string): Promise<Currency$2>;
|
|
856
856
|
/**
|
|
857
857
|
* Retrieves a rule based on its name.
|
|
858
858
|
*
|
|
@@ -864,7 +864,7 @@ declare class TestDataService {
|
|
|
864
864
|
*
|
|
865
865
|
* @param name - The name of the shipping method. Default is "Standard".
|
|
866
866
|
*/
|
|
867
|
-
getShippingMethod(name?: string): Promise<ShippingMethod>;
|
|
867
|
+
getShippingMethod(name?: string): Promise<ShippingMethod$1>;
|
|
868
868
|
/**
|
|
869
869
|
* Retrieves all delivery time resources.
|
|
870
870
|
*/
|
|
@@ -874,7 +874,7 @@ declare class TestDataService {
|
|
|
874
874
|
*
|
|
875
875
|
* @param name - The name of the payment method. Default is "Invoice".
|
|
876
876
|
*/
|
|
877
|
-
getPaymentMethod(name?: string): Promise<PaymentMethod>;
|
|
877
|
+
getPaymentMethod(name?: string): Promise<PaymentMethod$1>;
|
|
878
878
|
/**
|
|
879
879
|
* Retrieves the address of a customer by its uuid.
|
|
880
880
|
*
|
|
@@ -940,7 +940,7 @@ declare class TestDataService {
|
|
|
940
940
|
*
|
|
941
941
|
* @param languageId - The id of the property group.
|
|
942
942
|
*/
|
|
943
|
-
getLanguageById(languageId: string): Promise<Language$
|
|
943
|
+
getLanguageById(languageId: string): Promise<Language$2>;
|
|
944
944
|
/**
|
|
945
945
|
* Adds an entity reference to the registry of created records.
|
|
946
946
|
* All entities added to the registry will be deleted by the cleanup call.
|
|
@@ -988,25 +988,25 @@ declare class TestDataService {
|
|
|
988
988
|
*
|
|
989
989
|
* @param iso2 - The iso2 code of the country, for example "DE".
|
|
990
990
|
*/
|
|
991
|
-
getCountryId(iso2: string): Promise<Country>;
|
|
991
|
+
getCountryId(iso2: string): Promise<Country$1>;
|
|
992
992
|
/**
|
|
993
993
|
* Retrieves a country based on its iso2 code.
|
|
994
994
|
*
|
|
995
995
|
* @param iso2 - The iso2 code of the country, for example "DE".
|
|
996
996
|
*/
|
|
997
|
-
getCountry(iso2: string): Promise<Country>;
|
|
998
|
-
getCountryStruct(overrides?: Partial<Country>): Partial<Country>;
|
|
999
|
-
getCurrencyStruct(overrides: Partial<Currency$
|
|
997
|
+
getCountry(iso2: string): Promise<Country$1>;
|
|
998
|
+
getCountryStruct(overrides?: Partial<Country$1>): Partial<Country$1>;
|
|
999
|
+
getCurrencyStruct(overrides: Partial<Currency$2> | undefined, roundingDecimals: number): Partial<Currency$2>;
|
|
1000
1000
|
getBasicProductStruct(taxId?: string, currencyId?: string, overrides?: Partial<Product>): Partial<Product>;
|
|
1001
1001
|
getBasicRuleStruct(overrides: Partial<Rule> | undefined, conditionType: string, operator: string, amount: number): Partial<Rule>;
|
|
1002
1002
|
getProductPriceRangeStruct(currencyId: string, ruleId: string): Partial<Product>;
|
|
1003
1003
|
getBasicManufacturerStruct(overrides?: Partial<Manufacturer>): Partial<Manufacturer>;
|
|
1004
|
-
getBasicPaymentMethodStruct(overrides?: Partial<PaymentMethod>): {
|
|
1004
|
+
getBasicPaymentMethodStruct(overrides?: Partial<PaymentMethod$1>): {
|
|
1005
1005
|
id: string;
|
|
1006
1006
|
name: string;
|
|
1007
1007
|
technicalName: string;
|
|
1008
1008
|
active: boolean;
|
|
1009
|
-
} & Partial<PaymentMethod>;
|
|
1009
|
+
} & Partial<PaymentMethod$1>;
|
|
1010
1010
|
getBasicCategoryStruct(overrides?: Partial<Category$1>, parentId?: string): {
|
|
1011
1011
|
id: string;
|
|
1012
1012
|
name: string;
|
|
@@ -1018,15 +1018,15 @@ declare class TestDataService {
|
|
|
1018
1018
|
active: boolean;
|
|
1019
1019
|
} & Partial<Category$1>;
|
|
1020
1020
|
getBasicCustomerStruct(salesChannelId: string, customerGroupId: string, languageId: string, countryId: string, defaultPaymentMethodId: string, salutationId: string, overrides?: Partial<Customer>): Partial<Customer>;
|
|
1021
|
-
getBasicOrderDeliveryStruct(deliveryState: StateMachineState, shippingMethod: ShippingMethod, customerAddress: CustomerAddress): Partial<OrderDelivery>;
|
|
1022
|
-
getBasicShippingMethodStruct(deliveryTimeId: string, overrides?: Partial<ShippingMethod>): {
|
|
1021
|
+
getBasicOrderDeliveryStruct(deliveryState: StateMachineState, shippingMethod: ShippingMethod$1, customerAddress: CustomerAddress): Partial<OrderDelivery>;
|
|
1022
|
+
getBasicShippingMethodStruct(deliveryTimeId: string, overrides?: Partial<ShippingMethod$1>): {
|
|
1023
1023
|
id: string;
|
|
1024
1024
|
name: string;
|
|
1025
1025
|
technicalName: string;
|
|
1026
1026
|
deliveryTimeId: string;
|
|
1027
1027
|
active: boolean;
|
|
1028
|
-
} & Partial<ShippingMethod>;
|
|
1029
|
-
getBasicOrderStruct(lineItems: SimpleLineItem[], languageId: string, currency: Currency$
|
|
1028
|
+
} & Partial<ShippingMethod$1>;
|
|
1029
|
+
getBasicOrderStruct(lineItems: SimpleLineItem[], languageId: string, currency: Currency$2, paymentMethod: PaymentMethod$1, shippingMethod: ShippingMethod$1, orderState: StateMachineState, deliveryState: StateMachineState, transactionState: StateMachineState, customer: Customer, customerAddress: CustomerAddress, salesChannelId?: string, overrides?: Partial<Order>): Partial<Order>;
|
|
1030
1030
|
getBasicProductLineItemStruct(lineItem: SimpleLineItem): {
|
|
1031
1031
|
productId: string;
|
|
1032
1032
|
referencedId: string;
|
|
@@ -1105,7 +1105,7 @@ declare class TestDataService {
|
|
|
1105
1105
|
getBasicCustomFieldSetStruct(overrides?: Partial<CustomFieldSet>): Partial<CustomFieldSet>;
|
|
1106
1106
|
getBasicCustomFieldStruct(overrides?: Partial<CustomField>): Partial<CustomField>;
|
|
1107
1107
|
getSalesChannelDomainStruct(salesChannelId: string, currencyId: string, languageId: string, snippetSetId: string, overrides?: Partial<SalesChannelDomain>): Partial<SalesChannelDomain>;
|
|
1108
|
-
getTaxStruct(overrides: Partial<Tax>): Partial<Tax>;
|
|
1108
|
+
getTaxStruct(overrides: Partial<Tax$1>): Partial<Tax$1>;
|
|
1109
1109
|
getBasicCrossSellingStruct(productId: string, overrides?: Partial<ProductCrossSelling>): never;
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
@@ -1154,6 +1154,44 @@ interface DefaultSalesChannelTypes {
|
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
1156
|
|
|
1157
|
+
interface Country {
|
|
1158
|
+
id: string;
|
|
1159
|
+
}
|
|
1160
|
+
interface Currency$1 {
|
|
1161
|
+
id: string;
|
|
1162
|
+
}
|
|
1163
|
+
interface Language$1 {
|
|
1164
|
+
id: string;
|
|
1165
|
+
translationCode: {
|
|
1166
|
+
id: string;
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
interface PaymentMethod {
|
|
1170
|
+
id: string;
|
|
1171
|
+
}
|
|
1172
|
+
interface ShippingMethod {
|
|
1173
|
+
id: string;
|
|
1174
|
+
}
|
|
1175
|
+
interface SnippetSet {
|
|
1176
|
+
id: string;
|
|
1177
|
+
}
|
|
1178
|
+
interface Tax {
|
|
1179
|
+
id: string;
|
|
1180
|
+
}
|
|
1181
|
+
interface Theme {
|
|
1182
|
+
id: string;
|
|
1183
|
+
}
|
|
1184
|
+
interface ShopwareDataFixtureTypes {
|
|
1185
|
+
Country: Country;
|
|
1186
|
+
Currency: Currency$1;
|
|
1187
|
+
Language: Language$1;
|
|
1188
|
+
PaymentMethod: PaymentMethod;
|
|
1189
|
+
ShippingMethod: ShippingMethod;
|
|
1190
|
+
SnippetSet: SnippetSet;
|
|
1191
|
+
Tax: Tax;
|
|
1192
|
+
Theme: Theme;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1157
1195
|
interface PageObject {
|
|
1158
1196
|
readonly page: Page;
|
|
1159
1197
|
url(...args: unknown[]): string;
|
|
@@ -2418,7 +2456,7 @@ interface FeatureFixtureTypes {
|
|
|
2418
2456
|
FeatureService: FeatureService;
|
|
2419
2457
|
}
|
|
2420
2458
|
|
|
2421
|
-
interface FixtureTypes extends ApiContextTypes, PageContextTypes, ActorFixtureTypes, TestDataFixtureTypes, HelperFixtureTypes, FeatureFixtureTypes, DefaultSalesChannelTypes, StorefrontPageTypes, AdministrationPageTypes, DataFixtureTypes {
|
|
2459
|
+
interface FixtureTypes extends ApiContextTypes, PageContextTypes, ActorFixtureTypes, TestDataFixtureTypes, HelperFixtureTypes, FeatureFixtureTypes, DefaultSalesChannelTypes, ShopwareDataFixtureTypes, StorefrontPageTypes, AdministrationPageTypes, DataFixtureTypes {
|
|
2422
2460
|
}
|
|
2423
2461
|
|
|
2424
2462
|
type Language = components['schemas']['Language'] & {
|
|
@@ -2438,8 +2476,11 @@ declare const getPaymentMethodId: (adminApiContext: AdminApiContext, handlerId?:
|
|
|
2438
2476
|
/**
|
|
2439
2477
|
* Gives the default shipping method back called Standard
|
|
2440
2478
|
* @param adminApiContext - An AdminApiContext entity
|
|
2479
|
+
*
|
|
2480
|
+
* @deprecated - Use getShippingMethodId instead
|
|
2441
2481
|
*/
|
|
2442
2482
|
declare const getDefaultShippingMethodId: (adminApiContext: AdminApiContext) => Promise<string>;
|
|
2483
|
+
declare const getShippingMethodId: (name: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
2443
2484
|
declare const getCountryId: (iso2: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
2444
2485
|
declare const getThemeId: (technicalName: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
2445
2486
|
declare const getSalutationId: (salutationKey: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
@@ -2525,4 +2566,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
2525
2566
|
AddProductToWishlist: Task;
|
|
2526
2567
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
2527
2568
|
|
|
2528
|
-
export { type AccountData, type Address, AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CategoryCustomizableLinkData, type CategoryData, type CmsPage, type Country, type CreatedRecord, type Currency$
|
|
2569
|
+
export { type AccountData, type Address, AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CategoryCustomizableLinkData, type CategoryData, type CmsPage, type Country$1 as Country, type CreatedRecord, type Currency$2 as Currency, type CustomField, type CustomFieldData, type CustomFieldSet, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Language$2 as Language, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod$1 as PaymentMethod, type Price, type Product, type ProductCrossSelling, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type RuleAssignmentEntity, RuleType, type SalesChannel, type SalesChannelAnalytics, type SalesChannelDomain, type SalesChannelRecord, type Salutation, type ShippingMethod$1 as ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type TagData, type Task, type Tax$1 as Tax, type TaxRules, TestDataService, type VariantListingConfig, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getShippingMethodId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|