Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Merge branch 'master' into fix/remove_sample_payload_webhook_for_any_events
Maciej Korycinskib1543766db1a
diff --cc saleor/graphql/schema.graphqlindex 9ccdededea,9412bd3bb7..9cec657587--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@@ -4988,17 -4989,6 +4989,18 @@@ input WebhookFilterInputisActive: Boolean}+enum WebhookSampleEventTypeEnum {+ ORDER_CREATED+ ORDER_FULLY_PAID+ ORDER_UPDATED+ ORDER_CANCELLED+ ORDER_FULFILLED+ CUSTOMER_CREATED+ PRODUCT_CREATED+ CHECKOUT_QUANTITY_CHANGED++ FULFILLMENT_CREATED+}+enum WebhookSortField {NAMESERVICE_ACCOUNTdiff --cc tests/api/test_webhook.pyindex a23d192e9d,423a630528..27c012eaa9--- a/tests/api/test_webhook.py+++ b/tests/api/test_webhook.py@@@ -622,15 -619,16 +622,16 @@@ SAMPLE_PAYLOAD_QUERY = ""@pytest.mark.parametrize("event_type, has_access",[- (WebhookEventTypeEnum.ORDER_CREATED, True),- (WebhookEventTypeEnum.ORDER_CREATED, True),- (WebhookEventTypeEnum.ORDER_FULLY_PAID, True),- (WebhookEventTypeEnum.ORDER_UPDATED, True),- (WebhookEventTypeEnum.ORDER_CANCELLED, True),- (WebhookEventTypeEnum.ORDER_FULFILLED, True),- (WebhookEventTypeEnum.CUSTOMER_CREATED, False),- (WebhookEventTypeEnum.PRODUCT_CREATED, False),- (WebhookEventTypeEnum.CHECKOUT_QUANTITY_CHANGED, False),- (WebhookEventTypeEnum.FULFILLMENT_CREATED, True),+ (WebhookSampleEventTypeEnum.ORDER_CREATED, True),+ (WebhookSampleEventTypeEnum.ORDER_CREATED, True),+ (WebhookSampleEventTypeEnum.ORDER_FULLY_PAID, True),+ (WebhookSampleEventTypeEnum.ORDER_UPDATED, True),+ (WebhookSampleEventTypeEnum.ORDER_CANCELLED, True),+ (WebhookSampleEventTypeEnum.ORDER_FULFILLED, True),+ (WebhookSampleEventTypeEnum.CUSTOMER_CREATED, False),+ (WebhookSampleEventTypeEnum.PRODUCT_CREATED, False),+ (WebhookSampleEventTypeEnum.CHECKOUT_QUANTITY_CHANGED, False),++ (WebhookSampleEventTypeEnum.FULFILLMENT_CREATED, True),],)def test_sample_payload_query_by_service_account(@@@ -659,15 -657,16 +660,16 @@@@pytest.mark.parametrize("event_type, has_access",[- (WebhookEventTypeEnum.ORDER_CREATED, False),- (WebhookEventTypeEnum.ORDER_CREATED, False),- (WebhookEventTypeEnum.ORDER_FULLY_PAID, False),- (WebhookEventTypeEnum.ORDER_UPDATED, False),- (WebhookEventTypeEnum.ORDER_CANCELLED, False),- (WebhookEventTypeEnum.ORDER_FULFILLED, False),- (WebhookEventTypeEnum.CUSTOMER_CREATED, True),- (WebhookEventTypeEnum.PRODUCT_CREATED, True),- (WebhookEventTypeEnum.CHECKOUT_QUANTITY_CHANGED, True),- (WebhookEventTypeEnum.FULFILLMENT_CREATED, False),+ (WebhookSampleEventTypeEnum.ORDER_CREATED, False),+ (WebhookSampleEventTypeEnum.ORDER_CREATED, False),+ (WebhookSampleEventTypeEnum.ORDER_FULLY_PAID, False),+ (WebhookSampleEventTypeEnum.ORDER_UPDATED, False),+ (WebhookSampleEventTypeEnum.ORDER_CANCELLED, False),+ (WebhookSampleEventTypeEnum.ORDER_FULFILLED, False),+ (WebhookSampleEventTypeEnum.CUSTOMER_CREATED, True),+ (WebhookSampleEventTypeEnum.PRODUCT_CREATED, True),+ (WebhookSampleEventTypeEnum.CHECKOUT_QUANTITY_CHANGED, True),++ (WebhookSampleEventTypeEnum.FULFILLMENT_CREATED, False),],)def test_sample_payload_query_by_staff(