vtex-apps / checkout-graphql Goto Github PK
View Code? Open in Web Editor NEWCheckout v0 GraphQL
Checkout v0 GraphQL
type Cart {
id: ID
profile: Profile
items: [Item]
shipping: Shipping
payment: Payment
coupon: Coupon
totalizers: Totalizers
userAuth: UserAuth
}
type Shipping {
addresses: Addresses
options: ShippingOptions
parcels: [Parcel]
}
type Addresses {
selected: Address
saved: [Address]
}
type ShippingOptions {
delivery: DeliveryOptions
pickups: [Pickup]
}
type DeliveryOptions {
cheapest: DeliveryOption
fastest: DeliveryOption
scheduled: DeliveryOption
all: ExtendedDeliveryOption
}
scalar ItemIndex
scalar Date
type Price {
value: Int
currencyCode: String
}
type Estimate {
type: EstimateType
value: Int
}
type TimeFrame {
start: Date
end: Date
price: Price
tax: Price
}
enum EstimateType {
MINUTE
HOUR
DAY
BUSINESS_DAY
}
interface ShippingOption {
price: Price
estimate: Estimate
timeFrames: [TimeFrame]
selectedTimeFrame: TimeFrame
}
type DeliveryOption implements ShippingOption {
numberOfParcels: Int
price: Price
estimate: Estimate
timeFrames: [TimeFrame]
selectedTimeFrame: TimeFrame
}
type ExtendedDeliveryOption implements ShippingOption {
id: ID
items: [ItemIndex]
price: Price
estimate: Estimate
timeFrames: [TimeFrame]
selectedTimeFrame: TimeFrame
}
type PickupOption implements ShippingOption {
id: ID
price: Price
estimate: Estimate
timeFrames: [TimeFrame]
selectedTimeFrame: TimeFrame
}
type Pickup {
id: ID
name: String
additionalInfo: String
address: Address
distance: Int
pickupOptions: [PickupOption]
}
union SelectedOption = DeliveryOption | ExtendedDeliveryOption | PickupOption
type Parcel {
price: Price
selectedTimeFrame: TimeFrame
selectedOption: SelectedOption
pickupName: String
items: [Item]
seller: Seller
address: Address
}
type Address {
id: ID
addressType: AddressType
city: String
complement: String
country: String
geoCoordinates: [Int]
neighborhood: String
number: String
postalCode: String
receiverName: String
reference: String
state: String
street: String
}
enum AddressType {
RESIDENTIAL
COMMERCIAL
INSTORE
GIFT_REGISTRY
PICKUP
SEARCH
}
updateAddress(address: Address)
selectAddress(address: Address)
selectDeliveryOption(option: Option)
selectPickupOption(pickupId: ID, pcikupOptionId: ID)
// Modo verboso
seletDeliveryOptions(options: [DeliveryOption])
this app allows me to indicate the delivery method of the orderform using a specific pickup point?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.