From 7668959a9e4a19b0dfb58f902bba3ddcd91a7bf9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:28:18 +0000 Subject: [PATCH 1/2] chore(deps): update module flamingo.me/graphql to v1.12.0 --- go.mod | 12 ++++++------ go.sum | 10 ++++++++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 41e4caa81..6fc574012 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module flamingo.me/flamingo-commerce/v3 -go 1.22.0 +go 1.22.5 toolchain go1.23.4 @@ -8,9 +8,9 @@ require ( flamingo.me/dingo v0.3.0 flamingo.me/flamingo/v3 v3.11.0 flamingo.me/form v1.1.2 - flamingo.me/graphql v1.11.3 + flamingo.me/graphql v1.12.0 flamingo.me/pugtemplate v1.3.1 - github.com/99designs/gqlgen v0.17.49 + github.com/99designs/gqlgen v0.17.53 github.com/Rhymond/go-money v1.0.14 github.com/gavv/httpexpect/v2 v2.16.0 github.com/go-playground/form/v4 v4.2.1 @@ -162,15 +162,15 @@ require ( go.uber.org/multierr v1.10.0 // indirect go.uber.org/zap v1.27.0 // indirect golang.org/x/crypto v0.31.0 // indirect - golang.org/x/net v0.27.0 // indirect + golang.org/x/net v0.29.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect golang.org/x/sync v0.10.0 // indirect golang.org/x/sys v0.28.0 // indirect - golang.org/x/tools v0.22.0 // indirect + golang.org/x/tools v0.24.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/api v0.126.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect - google.golang.org/protobuf v1.34.1 // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect moul.io/http2curl/v2 v2.3.0 // indirect diff --git a/go.sum b/go.sum index 2df25d0bc..8f02cd1bd 100644 --- a/go.sum +++ b/go.sum @@ -51,10 +51,14 @@ flamingo.me/form v1.1.2 h1:o7ToYehtOuklO16vrqT2Qao40BqbB3A9vZmeoszGzLQ= flamingo.me/form v1.1.2/go.mod h1:mySaZb3vV/EwI4tWfN+ygywkTLLYuBM6U5LN9t8AN1w= flamingo.me/graphql v1.11.3 h1:trV4OSwWy/1xF4JzU7jBiTisI45waNq3v5l4uSdGf6w= flamingo.me/graphql v1.11.3/go.mod h1:sAOYw76IvoEj++RPAG+qm9YrMWf/dAF6d+wsA8DQW6s= +flamingo.me/graphql v1.12.0 h1:n27wRfoSGuELyM9FOeNM7tH6gtVMSGbCUZQA1gv/mNk= +flamingo.me/graphql v1.12.0/go.mod h1:baJRRZrrMal/uaJRvdC/SXZtdMLg4KQzlXz4cfn2NlM= flamingo.me/pugtemplate v1.3.1 h1:8MLUESaVBC3Ftm9j3kuFd/p8zcwfIoACuFkVg0t9GhY= flamingo.me/pugtemplate v1.3.1/go.mod h1:hjPNkdBus+BuUrtuOQMGAtPT54YozvJRm9JA9VanzT4= github.com/99designs/gqlgen v0.17.49 h1:b3hNGexHd33fBSAd4NDT/c3NCcQzcAVkknhN9ym36YQ= github.com/99designs/gqlgen v0.17.49/go.mod h1:tC8YFVZMed81x7UJ7ORUwXF4Kn6SXuucFqQBhN8+BU0= +github.com/99designs/gqlgen v0.17.53 h1:FJOJaF96d7Y5EBpoaLG96fz1NR6B8bFdCZI1yZwYArM= +github.com/99designs/gqlgen v0.17.53/go.mod h1:77/+pVe6zlTsz++oUg2m8VLgzdUPHxjoAG3BxI5y8Rc= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 h1:bvDV9vkmnHYOMsOr4WLk+Vo07yKIzd94sVoIqshQ4bU= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= @@ -729,6 +733,8 @@ golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= +golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= +golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -870,6 +876,8 @@ golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA= golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c= +golang.org/x/tools v0.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24= +golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -966,6 +974,8 @@ google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= From fe51c23356191597e6728be1b97d935986229228 Mon Sep 17 00:00:00 2001 From: Thorsten Essig Date: Thu, 9 Jan 2025 15:44:54 +0100 Subject: [PATCH 2/2] chore: regenerate graphql --- .../projecttest/graphql/generated.go | 1902 +++++++++++++---- 1 file changed, 1475 insertions(+), 427 deletions(-) diff --git a/test/integrationtest/projecttest/graphql/generated.go b/test/integrationtest/projecttest/graphql/generated.go index da73dbc94..7249bcb48 100644 --- a/test/integrationtest/projecttest/graphql/generated.go +++ b/test/integrationtest/projecttest/graphql/generated.go @@ -5737,851 +5737,1899 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) func (ec *executionContext) field_Commerce_Cart_AppliedDiscounts_byCampaignCode_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["campaignCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("campaignCode")) - arg0, err = ec.unmarshalOString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_AppliedDiscounts_byCampaignCode_argsCampaignCode(ctx, rawArgs) + if err != nil { + return nil, err } args["campaignCode"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_AppliedDiscounts_byCampaignCode_argsCampaignCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["campaignCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("campaignCode")) + if tmp, ok := rawArgs["campaignCode"]; ok { + return ec.unmarshalOString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_AppliedDiscounts_byType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["filterType"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filterType")) - arg0, err = ec.unmarshalOString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_AppliedDiscounts_byType_argsFilterType(ctx, rawArgs) + if err != nil { + return nil, err } args["filterType"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_AppliedDiscounts_byType_argsFilterType( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["filterType"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filterType")) + if tmp, ok := rawArgs["filterType"]; ok { + return ec.unmarshalOString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Cart_getByExternalReference_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["ref"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ref")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Cart_getByExternalReference_argsRef(ctx, rawArgs) + if err != nil { + return nil, err } args["ref"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Cart_getByExternalReference_argsRef( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ref"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ref")) + if tmp, ok := rawArgs["ref"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Cart_getByItemID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["itemID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Cart_getByItemID_argsItemID(ctx, rawArgs) + if err != nil { + return nil, err } args["itemID"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Cart_getByItemID_argsItemID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["itemID"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) + if tmp, ok := rawArgs["itemID"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Cart_getDeliveryByCode_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["deliveryCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Cart_getDeliveryByCode_argsDeliveryCode(ctx, rawArgs) + if err != nil { + return nil, err } args["deliveryCode"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Cart_getDeliveryByCode_argsDeliveryCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["deliveryCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) + if tmp, ok := rawArgs["deliveryCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Cart_getDeliveryByItemID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["itemID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Cart_getDeliveryByItemID_argsItemID(ctx, rawArgs) + if err != nil { + return nil, err } args["itemID"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Cart_getDeliveryByItemID_argsItemID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["itemID"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) + if tmp, ok := rawArgs["itemID"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Cart_getTotalItemsByType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["typeCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("typeCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Cart_getTotalItemsByType_argsTypeCode(ctx, rawArgs) + if err != nil { + return nil, err } args["typeCode"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Cart_getTotalItemsByType_argsTypeCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["typeCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("typeCode")) + if tmp, ok := rawArgs["typeCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Cart_getTotalQty_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["marketPlaceCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketPlaceCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Cart_getTotalQty_argsMarketPlaceCode(ctx, rawArgs) + if err != nil { + return nil, err } args["marketPlaceCode"] = arg0 - var arg1 string - if tmp, ok := rawArgs["variantCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("variantCode")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Commerce_Cart_Cart_getTotalQty_argsVariantCode(ctx, rawArgs) + if err != nil { + return nil, err } args["variantCode"] = arg1 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Cart_getTotalQty_argsMarketPlaceCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["marketPlaceCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("marketPlaceCode")) + if tmp, ok := rawArgs["marketPlaceCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Commerce_Cart_Cart_getTotalQty_argsVariantCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["variantCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("variantCode")) + if tmp, ok := rawArgs["variantCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Cart_hasDeliveryForCode_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["deliveryCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Cart_hasDeliveryForCode_argsDeliveryCode(ctx, rawArgs) + if err != nil { + return nil, err } args["deliveryCode"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Cart_hasDeliveryForCode_argsDeliveryCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["deliveryCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) + if tmp, ok := rawArgs["deliveryCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_CustomAttributes_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["key"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_CustomAttributes_get_argsKey(ctx, rawArgs) + if err != nil { + return nil, err } args["key"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_CustomAttributes_get_argsKey( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["key"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) + if tmp, ok := rawArgs["key"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["deliveryCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode_argsDeliveryCode(ctx, rawArgs) + if err != nil { + return nil, err } args["deliveryCode"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_DecoratedCart_getDecoratedDeliveryByCode_argsDeliveryCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["deliveryCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) + if tmp, ok := rawArgs["deliveryCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Item_getAdditionalData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["key"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Item_getAdditionalData_argsKey(ctx, rawArgs) + if err != nil { + return nil, err } args["key"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Item_getAdditionalData_argsKey( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["key"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) + if tmp, ok := rawArgs["key"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Item_hasAdditionalDataKey_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["key"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Item_hasAdditionalDataKey_argsKey(ctx, rawArgs) + if err != nil { + return nil, err } args["key"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Item_hasAdditionalDataKey_argsKey( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["key"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) + if tmp, ok := rawArgs["key"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitPriceAmountByMethods_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 []string - if tmp, ok := rawArgs["methods"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("methods")) - arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitPriceAmountByMethods_argsMethods(ctx, rawArgs) + if err != nil { + return nil, err } args["methods"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitPriceAmountByMethods_argsMethods( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["methods"] + if !ok { + var zeroVal []string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("methods")) + if tmp, ok := rawArgs["methods"]; ok { + return ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) + } + + var zeroVal []string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitValueAmountByMethods_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 []string - if tmp, ok := rawArgs["methods"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("methods")) - arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitValueAmountByMethods_argsMethods(ctx, rawArgs) + if err != nil { + return nil, err } args["methods"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Summary_sumPaymentSelectionCartSplitValueAmountByMethods_argsMethods( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["methods"] + if !ok { + var zeroVal []string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("methods")) + if tmp, ok := rawArgs["methods"]; ok { + return ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) + } + + var zeroVal []string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Cart_Taxes_getByType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["taxType"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxType")) - arg0, err = ec.unmarshalOString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Cart_Taxes_getByType_argsTaxType(ctx, rawArgs) + if err != nil { + return nil, err } args["taxType"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Cart_Taxes_getByType_argsTaxType( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["taxType"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("taxType")) + if tmp, ok := rawArgs["taxType"]; ok { + return ec.unmarshalOString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Category_Attributes_get_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["code"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("code")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Category_Attributes_get_argsCode(ctx, rawArgs) + if err != nil { + return nil, err } args["code"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Category_Attributes_get_argsCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["code"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("code")) + if tmp, ok := rawArgs["code"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Category_Attributes_has_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["code"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("code")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Category_Attributes_has_argsCode(ctx, rawArgs) + if err != nil { + return nil, err } args["code"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Category_Attributes_has_argsCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["code"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("code")) + if tmp, ok := rawArgs["code"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Customer_Result_getAddress_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Customer_Result_getAddress_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Customer_Result_getAddress_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Price_Charges_getByChargeQualifierForced_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 domain.ChargeQualifier - if tmp, ok := rawArgs["qualifier"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("qualifier")) - arg0, err = ec.unmarshalNCommerce_Price_ChargeQualifierInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐChargeQualifier(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Price_Charges_getByChargeQualifierForced_argsQualifier(ctx, rawArgs) + if err != nil { + return nil, err } args["qualifier"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Price_Charges_getByChargeQualifierForced_argsQualifier( + ctx context.Context, + rawArgs map[string]interface{}, +) (domain.ChargeQualifier, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["qualifier"] + if !ok { + var zeroVal domain.ChargeQualifier + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("qualifier")) + if tmp, ok := rawArgs["qualifier"]; ok { + return ec.unmarshalNCommerce_Price_ChargeQualifierInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐChargeQualifier(ctx, tmp) + } + + var zeroVal domain.ChargeQualifier + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Price_Charges_getByTypeForced_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["ctype"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ctype")) - arg0, err = ec.unmarshalOString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Price_Charges_getByTypeForced_argsCtype(ctx, rawArgs) + if err != nil { + return nil, err } args["ctype"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Price_Charges_getByTypeForced_argsCtype( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ctype"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ctype")) + if tmp, ok := rawArgs["ctype"]; ok { + return ec.unmarshalOString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Price_Charges_hasChargeQualifier_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 domain.ChargeQualifier - if tmp, ok := rawArgs["qualifier"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("qualifier")) - arg0, err = ec.unmarshalNCommerce_Price_ChargeQualifierInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐChargeQualifier(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Price_Charges_hasChargeQualifier_argsQualifier(ctx, rawArgs) + if err != nil { + return nil, err } args["qualifier"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Price_Charges_hasChargeQualifier_argsQualifier( + ctx context.Context, + rawArgs map[string]interface{}, +) (domain.ChargeQualifier, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["qualifier"] + if !ok { + var zeroVal domain.ChargeQualifier + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("qualifier")) + if tmp, ok := rawArgs["qualifier"]; ok { + return ec.unmarshalNCommerce_Price_ChargeQualifierInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋpriceᚋdomainᚐChargeQualifier(ctx, tmp) + } + + var zeroVal domain.ChargeQualifier + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Price_Charges_hasType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["ctype"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ctype")) - arg0, err = ec.unmarshalOString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Price_Charges_hasType_argsCtype(ctx, rawArgs) + if err != nil { + return nil, err } args["ctype"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Price_Charges_hasType_argsCtype( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ctype"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ctype")) + if tmp, ok := rawArgs["ctype"]; ok { + return ec.unmarshalOString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Product_Attributes_getAttribute_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["key"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Product_Attributes_getAttribute_argsKey(ctx, rawArgs) + if err != nil { + return nil, err } args["key"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Product_Attributes_getAttribute_argsKey( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["key"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) + if tmp, ok := rawArgs["key"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Product_Attributes_getAttributesByKey_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 []string - if tmp, ok := rawArgs["keys"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keys")) - arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Product_Attributes_getAttributesByKey_argsKeys(ctx, rawArgs) + if err != nil { + return nil, err } args["keys"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Product_Attributes_getAttributesByKey_argsKeys( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["keys"] + if !ok { + var zeroVal []string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("keys")) + if tmp, ok := rawArgs["keys"]; ok { + return ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) + } + + var zeroVal []string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Product_Attributes_hasAttribute_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["key"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Product_Attributes_hasAttribute_argsKey(ctx, rawArgs) + if err != nil { + return nil, err } args["key"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Product_Attributes_hasAttribute_argsKey( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["key"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) + if tmp, ok := rawArgs["key"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Commerce_Product_Media_getMedia_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["usage"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("usage")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Commerce_Product_Media_getMedia_argsUsage(ctx, rawArgs) + if err != nil { + return nil, err } args["usage"] = arg0 return args, nil } +func (ec *executionContext) field_Commerce_Product_Media_getMedia_argsUsage( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["usage"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("usage")) + if tmp, ok := rawArgs["usage"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_AddToCart_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 dto.AddToCart - if tmp, ok := rawArgs["addToCartInput"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addToCartInput")) - arg0, err = ec.unmarshalNCommerce_Cart_AddToCartInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐAddToCart(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_AddToCart_argsAddToCartInput(ctx, rawArgs) + if err != nil { + return nil, err } args["addToCartInput"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_AddToCart_argsAddToCartInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (dto.AddToCart, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["addToCartInput"] + if !ok { + var zeroVal dto.AddToCart + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("addToCartInput")) + if tmp, ok := rawArgs["addToCartInput"]; ok { + return ec.unmarshalNCommerce_Cart_AddToCartInput2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐAddToCart(ctx, tmp) + } + + var zeroVal dto.AddToCart + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_ApplyCouponCodeOrGiftCard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["code"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("code")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_ApplyCouponCodeOrGiftCard_argsCode(ctx, rawArgs) + if err != nil { + return nil, err } args["code"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_ApplyCouponCodeOrGiftCard_argsCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["code"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("code")) + if tmp, ok := rawArgs["code"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_DeleteCartDelivery_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["deliveryCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_DeleteCartDelivery_argsDeliveryCode(ctx, rawArgs) + if err != nil { + return nil, err } args["deliveryCode"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_DeleteCartDelivery_argsDeliveryCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["deliveryCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) + if tmp, ok := rawArgs["deliveryCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_DeleteItem_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["itemID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_DeleteItem_argsItemID(ctx, rawArgs) + if err != nil { + return nil, err } args["itemID"] = arg0 - var arg1 string - if tmp, ok := rawArgs["deliveryCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_Commerce_Cart_DeleteItem_argsDeliveryCode(ctx, rawArgs) + if err != nil { + return nil, err } args["deliveryCode"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_DeleteItem_argsItemID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["itemID"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) + if tmp, ok := rawArgs["itemID"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_Commerce_Cart_DeleteItem_argsDeliveryCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["deliveryCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) + if tmp, ok := rawArgs["deliveryCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_RemoveCouponCode_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["couponCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("couponCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_RemoveCouponCode_argsCouponCode(ctx, rawArgs) + if err != nil { + return nil, err } args["couponCode"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_RemoveCouponCode_argsCouponCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["couponCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("couponCode")) + if tmp, ok := rawArgs["couponCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_RemoveGiftCard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["giftCardCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("giftCardCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_RemoveGiftCard_argsGiftCardCode(ctx, rawArgs) + if err != nil { + return nil, err } args["giftCardCode"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_RemoveGiftCard_argsGiftCardCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["giftCardCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("giftCardCode")) + if tmp, ok := rawArgs["giftCardCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateAdditionalData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 []*dto.KeyValue - if tmp, ok := rawArgs["additionalData"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("additionalData")) - arg0, err = ec.unmarshalNCommerce_Cart_KeyValueInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValueᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_UpdateAdditionalData_argsAdditionalData(ctx, rawArgs) + if err != nil { + return nil, err } args["additionalData"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateAdditionalData_argsAdditionalData( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*dto.KeyValue, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["additionalData"] + if !ok { + var zeroVal []*dto.KeyValue + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("additionalData")) + if tmp, ok := rawArgs["additionalData"]; ok { + return ec.unmarshalNCommerce_Cart_KeyValueInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐKeyValueᚄ(ctx, tmp) + } + + var zeroVal []*dto.KeyValue + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateBillingAddress_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *forms.AddressForm - if tmp, ok := rawArgs["addressForm"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressForm")) - arg0, err = ec.unmarshalOCommerce_Cart_AddressFormInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐAddressForm(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_UpdateBillingAddress_argsAddressForm(ctx, rawArgs) + if err != nil { + return nil, err } args["addressForm"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateBillingAddress_argsAddressForm( + ctx context.Context, + rawArgs map[string]interface{}, +) (*forms.AddressForm, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["addressForm"] + if !ok { + var zeroVal *forms.AddressForm + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("addressForm")) + if tmp, ok := rawArgs["addressForm"]; ok { + return ec.unmarshalOCommerce_Cart_AddressFormInput2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐAddressForm(ctx, tmp) + } + + var zeroVal *forms.AddressForm + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateDeliveriesAdditionalData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 []*dto.DeliveryAdditionalData - if tmp, ok := rawArgs["data"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("data")) - arg0, err = ec.unmarshalNCommerce_Cart_DeliveryAdditionalDataInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryAdditionalDataᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_UpdateDeliveriesAdditionalData_argsData(ctx, rawArgs) + if err != nil { + return nil, err } args["data"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateDeliveriesAdditionalData_argsData( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*dto.DeliveryAdditionalData, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["data"] + if !ok { + var zeroVal []*dto.DeliveryAdditionalData + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("data")) + if tmp, ok := rawArgs["data"]; ok { + return ec.unmarshalNCommerce_Cart_DeliveryAdditionalDataInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryAdditionalDataᚄ(ctx, tmp) + } + + var zeroVal []*dto.DeliveryAdditionalData + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateDeliveryAddresses_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 []*forms.DeliveryForm - if tmp, ok := rawArgs["deliveryAdresses"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryAdresses")) - arg0, err = ec.unmarshalOCommerce_Cart_DeliveryAddressInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐDeliveryFormᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_UpdateDeliveryAddresses_argsDeliveryAdresses(ctx, rawArgs) + if err != nil { + return nil, err } args["deliveryAdresses"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateDeliveryAddresses_argsDeliveryAdresses( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*forms.DeliveryForm, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["deliveryAdresses"] + if !ok { + var zeroVal []*forms.DeliveryForm + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryAdresses")) + if tmp, ok := rawArgs["deliveryAdresses"]; ok { + return ec.unmarshalOCommerce_Cart_DeliveryAddressInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋcontrollerᚋformsᚐDeliveryFormᚄ(ctx, tmp) + } + + var zeroVal []*forms.DeliveryForm + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateDeliveryShippingOptions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 []*dto.DeliveryShippingOption - if tmp, ok := rawArgs["shippingOptions"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("shippingOptions")) - arg0, err = ec.unmarshalOCommerce_Cart_DeliveryShippingOptionInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryShippingOptionᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_UpdateDeliveryShippingOptions_argsShippingOptions(ctx, rawArgs) + if err != nil { + return nil, err } args["shippingOptions"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateDeliveryShippingOptions_argsShippingOptions( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*dto.DeliveryShippingOption, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["shippingOptions"] + if !ok { + var zeroVal []*dto.DeliveryShippingOption + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("shippingOptions")) + if tmp, ok := rawArgs["shippingOptions"]; ok { + return ec.unmarshalOCommerce_Cart_DeliveryShippingOptionInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐDeliveryShippingOptionᚄ(ctx, tmp) + } + + var zeroVal []*dto.DeliveryShippingOption + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateItemBundleConfig_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["itemID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_UpdateItemBundleConfig_argsItemID(ctx, rawArgs) + if err != nil { + return nil, err } args["itemID"] = arg0 - var arg1 []*dto.ChoiceConfiguration - if tmp, ok := rawArgs["bundleConfig"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bundleConfig")) - arg1, err = ec.unmarshalNCommerce_Cart_ChoiceConfigurationInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐChoiceConfigurationᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_Commerce_Cart_UpdateItemBundleConfig_argsBundleConfig(ctx, rawArgs) + if err != nil { + return nil, err } args["bundleConfig"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateItemBundleConfig_argsItemID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["itemID"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) + if tmp, ok := rawArgs["itemID"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateItemBundleConfig_argsBundleConfig( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*dto.ChoiceConfiguration, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["bundleConfig"] + if !ok { + var zeroVal []*dto.ChoiceConfiguration + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("bundleConfig")) + if tmp, ok := rawArgs["bundleConfig"]; ok { + return ec.unmarshalNCommerce_Cart_ChoiceConfigurationInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋcartᚋinterfacesᚋgraphqlᚋdtoᚐChoiceConfigurationᚄ(ctx, tmp) + } + + var zeroVal []*dto.ChoiceConfiguration + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateItemQty_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["itemID"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) - arg0, err = ec.unmarshalNID2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_UpdateItemQty_argsItemID(ctx, rawArgs) + if err != nil { + return nil, err } args["itemID"] = arg0 - var arg1 string - if tmp, ok := rawArgs["deliveryCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_Commerce_Cart_UpdateItemQty_argsDeliveryCode(ctx, rawArgs) + if err != nil { + return nil, err } args["deliveryCode"] = arg1 - var arg2 int - if tmp, ok := rawArgs["qty"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("qty")) - arg2, err = ec.unmarshalNInt2int(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Mutation_Commerce_Cart_UpdateItemQty_argsQty(ctx, rawArgs) + if err != nil { + return nil, err } args["qty"] = arg2 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateItemQty_argsItemID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["itemID"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("itemID")) + if tmp, ok := rawArgs["itemID"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateItemQty_argsDeliveryCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["deliveryCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) + if tmp, ok := rawArgs["deliveryCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateItemQty_argsQty( + ctx context.Context, + rawArgs map[string]interface{}, +) (int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["qty"] + if !ok { + var zeroVal int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("qty")) + if tmp, ok := rawArgs["qty"]; ok { + return ec.unmarshalNInt2int(ctx, tmp) + } + + var zeroVal int + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateSelectedPayment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["gateway"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gateway")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Cart_UpdateSelectedPayment_argsGateway(ctx, rawArgs) + if err != nil { + return nil, err } args["gateway"] = arg0 - var arg1 string - if tmp, ok := rawArgs["method"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("method")) - arg1, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_Commerce_Cart_UpdateSelectedPayment_argsMethod(ctx, rawArgs) + if err != nil { + return nil, err } args["method"] = arg1 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateSelectedPayment_argsGateway( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["gateway"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("gateway")) + if tmp, ok := rawArgs["gateway"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_Commerce_Cart_UpdateSelectedPayment_argsMethod( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["method"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("method")) + if tmp, ok := rawArgs["method"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_Commerce_Checkout_StartPlaceOrder_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["returnUrl"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("returnUrl")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_Commerce_Checkout_StartPlaceOrder_argsReturnURL(ctx, rawArgs) + if err != nil { + return nil, err } args["returnUrl"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_Commerce_Checkout_StartPlaceOrder_argsReturnURL( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["returnUrl"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("returnUrl")) + if tmp, ok := rawArgs["returnUrl"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Query_Commerce_Cart_QtyRestriction_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["marketplaceCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketplaceCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_Commerce_Cart_QtyRestriction_argsMarketplaceCode(ctx, rawArgs) + if err != nil { + return nil, err } args["marketplaceCode"] = arg0 - var arg1 *string - if tmp, ok := rawArgs["variantCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("variantCode")) - arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_Commerce_Cart_QtyRestriction_argsVariantCode(ctx, rawArgs) + if err != nil { + return nil, err } args["variantCode"] = arg1 - var arg2 string - if tmp, ok := rawArgs["deliveryCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) - arg2, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_Commerce_Cart_QtyRestriction_argsDeliveryCode(ctx, rawArgs) + if err != nil { + return nil, err } args["deliveryCode"] = arg2 return args, nil } +func (ec *executionContext) field_Query_Commerce_Cart_QtyRestriction_argsMarketplaceCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["marketplaceCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("marketplaceCode")) + if tmp, ok := rawArgs["marketplaceCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_Commerce_Cart_QtyRestriction_argsVariantCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["variantCode"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("variantCode")) + if tmp, ok := rawArgs["variantCode"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_Commerce_Cart_QtyRestriction_argsDeliveryCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["deliveryCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("deliveryCode")) + if tmp, ok := rawArgs["deliveryCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Query_Commerce_CategoryTree_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["activeCategoryCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activeCategoryCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_Commerce_CategoryTree_argsActiveCategoryCode(ctx, rawArgs) + if err != nil { + return nil, err } args["activeCategoryCode"] = arg0 return args, nil } +func (ec *executionContext) field_Query_Commerce_CategoryTree_argsActiveCategoryCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["activeCategoryCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("activeCategoryCode")) + if tmp, ok := rawArgs["activeCategoryCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Query_Commerce_Category_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["categoryCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_Commerce_Category_argsCategoryCode(ctx, rawArgs) + if err != nil { + return nil, err } args["categoryCode"] = arg0 - var arg1 *searchdto.CommerceSearchRequest - if tmp, ok := rawArgs["categorySearchRequest"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categorySearchRequest")) - arg1, err = ec.unmarshalOCommerce_Search_Request2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRequest(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_Commerce_Category_argsCategorySearchRequest(ctx, rawArgs) + if err != nil { + return nil, err } args["categorySearchRequest"] = arg1 return args, nil } +func (ec *executionContext) field_Query_Commerce_Category_argsCategoryCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["categoryCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryCode")) + if tmp, ok := rawArgs["categoryCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_Commerce_Category_argsCategorySearchRequest( + ctx context.Context, + rawArgs map[string]interface{}, +) (*searchdto.CommerceSearchRequest, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["categorySearchRequest"] + if !ok { + var zeroVal *searchdto.CommerceSearchRequest + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("categorySearchRequest")) + if tmp, ok := rawArgs["categorySearchRequest"]; ok { + return ec.unmarshalOCommerce_Search_Request2ᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRequest(ctx, tmp) + } + + var zeroVal *searchdto.CommerceSearchRequest + return zeroVal, nil +} func (ec *executionContext) field_Query_Commerce_Product_Search_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 searchdto.CommerceSearchRequest - if tmp, ok := rawArgs["searchRequest"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("searchRequest")) - arg0, err = ec.unmarshalNCommerce_Search_Request2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRequest(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_Commerce_Product_Search_argsSearchRequest(ctx, rawArgs) + if err != nil { + return nil, err } args["searchRequest"] = arg0 return args, nil } +func (ec *executionContext) field_Query_Commerce_Product_Search_argsSearchRequest( + ctx context.Context, + rawArgs map[string]interface{}, +) (searchdto.CommerceSearchRequest, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["searchRequest"] + if !ok { + var zeroVal searchdto.CommerceSearchRequest + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("searchRequest")) + if tmp, ok := rawArgs["searchRequest"]; ok { + return ec.unmarshalNCommerce_Search_Request2flamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋsearchᚋinterfacesᚋgraphqlᚋsearchdtoᚐCommerceSearchRequest(ctx, tmp) + } + + var zeroVal searchdto.CommerceSearchRequest + return zeroVal, nil +} func (ec *executionContext) field_Query_Commerce_Product_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["marketPlaceCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("marketPlaceCode")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_Commerce_Product_argsMarketPlaceCode(ctx, rawArgs) + if err != nil { + return nil, err } args["marketPlaceCode"] = arg0 - var arg1 *string - if tmp, ok := rawArgs["variantMarketPlaceCode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("variantMarketPlaceCode")) - arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_Commerce_Product_argsVariantMarketPlaceCode(ctx, rawArgs) + if err != nil { + return nil, err } args["variantMarketPlaceCode"] = arg1 - var arg2 []*graphqlproductdto.ChoiceConfiguration - if tmp, ok := rawArgs["bundleConfiguration"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bundleConfiguration")) - arg2, err = ec.unmarshalOCommerce_Product_ChoiceConfigurationInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐChoiceConfigurationᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_Commerce_Product_argsBundleConfiguration(ctx, rawArgs) + if err != nil { + return nil, err } args["bundleConfiguration"] = arg2 return args, nil } +func (ec *executionContext) field_Query_Commerce_Product_argsMarketPlaceCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["marketPlaceCode"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("marketPlaceCode")) + if tmp, ok := rawArgs["marketPlaceCode"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_Commerce_Product_argsVariantMarketPlaceCode( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["variantMarketPlaceCode"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("variantMarketPlaceCode")) + if tmp, ok := rawArgs["variantMarketPlaceCode"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_Commerce_Product_argsBundleConfiguration( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*graphqlproductdto.ChoiceConfiguration, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["bundleConfiguration"] + if !ok { + var zeroVal []*graphqlproductdto.ChoiceConfiguration + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("bundleConfiguration")) + if tmp, ok := rawArgs["bundleConfiguration"]; ok { + return ec.unmarshalOCommerce_Product_ChoiceConfigurationInput2ᚕᚖflamingoᚗmeᚋflamingoᚑcommerceᚋv3ᚋproductᚋinterfacesᚋgraphqlᚋproductᚋdtoᚐChoiceConfigurationᚄ(ctx, tmp) + } + + var zeroVal []*graphqlproductdto.ChoiceConfiguration + return zeroVal, nil +} func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["name"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) + if err != nil { + return nil, err } args["name"] = arg0 return args, nil } +func (ec *executionContext) field_Query___type_argsName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["name"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + if tmp, ok := rawArgs["name"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["includeDeprecated"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) + if err != nil { + return nil, err } args["includeDeprecated"] = arg0 return args, nil } +func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + if tmp, ok := rawArgs["includeDeprecated"]; ok { + return ec.unmarshalOBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["includeDeprecated"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) + if err != nil { + return nil, err } args["includeDeprecated"] = arg0 return args, nil } +func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + if tmp, ok := rawArgs["includeDeprecated"]; ok { + return ec.unmarshalOBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} // endregion ***************************** args.gotpl *****************************