feat: Admin shipping options routes to Typescript (#891)

This commit is contained in:
Oliver Windall Juhl
2021-12-07 17:07:23 +01:00
committed by GitHub
parent 487356a96f
commit 6579c13111
13 changed files with 393 additions and 124 deletions

View File

@@ -43,6 +43,30 @@ module.exports = async (connection, data = {}) => {
is_return: false,
})
await manager.insert(ShippingOption, {
id: "test-option-req-admin-only",
name: "With req",
profile_id: defaultProfile.id,
region_id: "region",
admin_only: true,
provider_id: "test-ful",
data: {},
price_type: "flat_rate",
amount: 2000,
is_return: false,
})
await manager.insert(ShippingOption, {
id: "test-option-req-return",
name: "With req",
profile_id: defaultProfile.id,
region_id: "region",
is_return: true,
provider_id: "test-ful",
data: {},
price_type: "flat_rate",
amount: 2000,
})
await manager.insert(ShippingOptionRequirement, {
id: "option-req",
shipping_option_id: "test-option-req",