Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update schema
Pacu29d332a08c927
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 62efda1c46..41fd027ec2 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -43,7 +43,7 @@ input AddressCreateInput {city: StringcityArea: StringpostalCode: String- country: String+ country: String!countryArea: Stringphone: StringuserId: ID!@@ -63,7 +63,7 @@ input AddressInput {city: StringcityArea: StringpostalCode: String- country: String+ country: String!countryArea: Stringphone: String}@@ -303,6 +303,11 @@ type Checkout implements Node {availableShippingMethods: [ShippingMethod]}+type CheckoutBillingAddressUpdate {+ errors: [Error]+ checkout: Checkout+}+type CheckoutComplete {errors: [Error]order: Order@@ -394,6 +399,11 @@ type CheckoutShippingAddressUpdate {checkout: Checkout}+type CheckoutShippingMethodUpdate {+ errors: [Error]+ checkout: Checkout+}+type ChoiceValue {raw: Stringverbose: String@@ -858,7 +868,9 @@ type Mutations {checkoutLineDelete(checkoutId: ID!, lineId: ID): CheckoutLineDeletecheckoutCustomerAttach(checkoutId: ID!, customerId: ID!): CheckoutCustomerAttachcheckoutCustomerDetach(checkoutId: ID!): CheckoutCustomerDetach+ checkoutBillingAddressUpdate(billingAddress: AddressInput, checkoutId: ID): CheckoutBillingAddressUpdatecheckoutShippingAddressUpdate(checkoutId: ID, shippingAddress: AddressInput): CheckoutShippingAddressUpdate+ checkoutShippingMethodUpdate(checkoutId: ID, shippingMethodId: ID!): CheckoutShippingMethodUpdatecheckoutEmailUpdate(checkoutId: ID, email: String!): CheckoutEmailUpdatecheckoutPaymentMethodCreate(input: PaymentMethodInput!): CheckoutPaymentMethodCreatecheckoutComplete(checkoutId: ID): CheckoutComplete@@ -889,6 +901,9 @@ type Mutations {pageCreate(input: PageInput!): PageCreatepageDelete(id: ID!): PageDeletepageUpdate(id: ID!, input: PageInput!): PageUpdate+ attributeCreate(id: ID!, input: AttributeCreateInput!, type: AttributeTypeEnum!): AttributeCreate+ attributeDelete(id: ID!): AttributeDelete+ attributeUpdate(id: ID!, input: AttributeUpdateInput!): AttributeUpdatepaymentMethodCapture(amount: Decimal, paymentMethodId: ID!): PaymentMethodCapturepaymentMethodRefund(amount: Decimal, paymentMethodId: ID!): PaymentMethodRefundpaymentMethodVoid(paymentMethodId: ID!): PaymentMethodVoid@@ -1189,23 +1204,23 @@ type PaymentMethod implements Node {isActive: Boolean!created: DateTime!modified: DateTime!- chargeStatus: ChargeStatus!+ chargeStatus: PaymentMethodChargeStatus!billingFirstName: String!billingLastName: String!billingAddress1: String!billingAddress2: String!billingCity: String!- billingPostcode: String!+ billingPostalCode: String!billingCountryCode: String!billingCountryArea: String!billingEmail: String!customerIpAddress: StringextraData: String!token: String!- total: Float!- currency: String!- capturedAmount: Float!- tax: Float!+ totalNet: Money+ totalGross: Money+ total: TaxedMoney+ capturedAmount: Moneycheckout: Checkoutorder: Ordertransactions(before: String, after: String, first: Int, last: Int, id: ID): TransactionCountableConnection@@ -1216,7 +1231,7 @@ type PaymentMethodCapture {paymentMethod: PaymentMethod}-enum ChargeStatus {+enum PaymentMethodChargeStatus {CHARGEDNOT_CHARGEDFULLY_REFUNDED@@ -1237,6 +1252,7 @@ input PaymentMethodInput {gateway: ProvidersEnumcheckoutId: IDtransactionToken: String!+ tax: Decimal!amount: Decimal!billingAddress: AddressInputstorePaymentMethod: Boolean = false@@ -1253,13 +1269,9 @@ type PaymentMethodVoid {}enum PaymentStatusEnum {- WAITING- PREAUTH- CONFIRMED- REJECTED- REFUNDED- ERROR- INPUT+ CHARGED+ NOT_CHARGED+ FULLY_REFUNDED}type PermissionDisplay {@@ -1885,8 +1897,7 @@ type Transaction implements Node {token: String!transactionType: TransactionTransactionType!isSuccess: Boolean!- amount: Float!- currency: String!+ amount: MoneygatewayResponse: JSONString!}@@ -1903,8 +1914,9 @@ type TransactionCountableEdge {enum TransactionTransactionType {AUTH- CHARGE+ CAPTUREREFUND+ CAPTURE_3VOID}@@ -1924,8 +1936,8 @@ type User implements Node {dateJoined: DateTime!defaultShippingAddress: AddressdefaultBillingAddress: Address- orders(before: String, after: String, first: Int, last: Int): OrderCountableConnectioncarts(before: String, after: String, first: Int, last: Int, token: UUID): CheckoutCountableConnection+ orders(before: String, after: String, first: Int, last: Int): OrderCountableConnectionpermissions: [PermissionDisplay]}diff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.tsindex f430833940..99fd794a55 100644--- a/saleor/static/dashboard-next/types/globalTypes.ts+++ b/saleor/static/dashboard-next/types/globalTypes.ts@@ -56,13 +56,9 @@ export enum OrderStatus {}export enum PaymentStatusEnum {- CONFIRMED = "CONFIRMED",- ERROR = "ERROR",- INPUT = "INPUT",- PREAUTH = "PREAUTH",- REFUNDED = "REFUNDED",- REJECTED = "REJECTED",- WAITING = "WAITING",+ CHARGED = "CHARGED",+ FULLY_REFUNDED = "FULLY_REFUNDED",+ NOT_CHARGED = "NOT_CHARGED",}export enum PermissionEnum {@@ -121,7 +117,7 @@ export interface AddressInput {city?: string | null;cityArea?: string | null;postalCode?: string | null;- country?: string | null;+ country: string;countryArea?: string | null;phone?: string | null;}