Skip to content

Commit

Permalink
Update schema and types
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-zeglen committed Dec 1, 2020
1 parent 50ddf99 commit ccdf554
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
13 changes: 3 additions & 10 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2860,7 +2860,6 @@ type Order implements Node & ObjectWithMetadata {
totalBalance: Money!
userEmail: String
isShippingRequired: Boolean!
linesAvailableForRefund: [OrderLineAvailableForRefund]!
}

enum OrderAction {
Expand Down Expand Up @@ -3101,11 +3100,6 @@ type OrderLine implements Node {
allocations: [Allocation!]
}

type OrderLineAvailableForRefund {
quantity: Int
orderLine: OrderLine
}

input OrderLineCreateInput {
quantity: Int!
variantId: ID!
Expand All @@ -3128,19 +3122,18 @@ type OrderRefund {
}

input OrderRefundFulfillmentLineInput {
fulfillmentLineId: ID
fulfillmentLineId: ID!
quantity: Int!
}

input OrderRefundLineInput {
orderLineId: ID
orderLineId: ID!
quantity: Int!
}

input OrderRefundProductsInput {
orderLines: [OrderRefundLineInput!]
fulfillmentLines: [OrderRefundFulfillmentLineInput!]
notifyCustomer: Boolean
amountToRefund: PositiveDecimal
includeShippingCosts: Boolean = false
}
Expand Down Expand Up @@ -4645,7 +4638,6 @@ enum ShippingErrorCode {
REQUIRED
UNIQUE
DUPLICATED_INPUT_ITEM
ZIP_CODE_RULE_EXISTS
}

type ShippingMethod implements Node & ObjectWithMetadata {
Expand Down Expand Up @@ -4859,6 +4851,7 @@ input ShippingZoneUpdateInput {

type Shop {
availablePaymentGateways(currency: String): [PaymentGateway!]!
availableShippingMethods(channel: String!, address: AddressInput): [ShippingMethod]
geolocalization: Geolocalization
authorizationKeys: [AuthorizationKey]!
countries(languageCode: LanguageCodeEnum): [CountryDisplay!]!
Expand Down
6 changes: 2 additions & 4 deletions src/types/globalTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,6 @@ export enum ShippingErrorCode {
NOT_FOUND = "NOT_FOUND",
REQUIRED = "REQUIRED",
UNIQUE = "UNIQUE",
ZIP_CODE_RULE_EXISTS = "ZIP_CODE_RULE_EXISTS",
}

export enum ShippingMethodTypeEnum {
Expand Down Expand Up @@ -1358,19 +1357,18 @@ export interface OrderLineInput {
}

export interface OrderRefundFulfillmentLineInput {
fulfillmentLineId?: string | null;
fulfillmentLineId: string;
quantity: number;
}

export interface OrderRefundLineInput {
orderLineId?: string | null;
orderLineId: string;
quantity: number;
}

export interface OrderRefundProductsInput {
orderLines?: OrderRefundLineInput[] | null;
fulfillmentLines?: OrderRefundFulfillmentLineInput[] | null;
notifyCustomer?: boolean | null;
amountToRefund?: any | null;
includeShippingCosts?: boolean | null;
}
Expand Down

0 comments on commit ccdf554

Please sign in to comment.