Boutique

Système de boutique permettant aux groupes de mettre en vente des produits.

Types

ShopItem

  • createdAt: DateTime
  • description: String
  • descriptionHtml: String
  • endsAt: DateTime?
  • group: Group
  • id: ID
  • itemOptions: [ ShopItemOption]
    • id: ID
    • name: String
    • options: [ String]
    • otherToggle: Boolean
    • required: Boolean
    • shopItem: ShopItem
  • localID: LocalID
  • lydiaAccount: LydiaAccount?
  • max: Int
  • name: String
  • paymentMethods: [ PaymentMethod]
  • pictures: [ Picture]
    • id: ID
    • path: String
    • position: Int
  • price: Float
  • shopPayments: [ ShopPayment]
  • slug: String
  • startsAt: DateTime?
  • stock: Int
  • stockLeft: Int
  • uid: String
  • updatedAt: DateTime
  • visibility: GroupRestricted | Private | Public | SchoolRestricted | Unlisted

N
ShopItemOptionInput

  • id: String
  • name: String
  • options: [ String]
  • otherToggle: Boolean
  • required: Boolean

ShopPayment

  • createdAt: DateTime
  • id: ID
  • paid: Boolean
  • paymentMethod: Card | Cash | Check | Lydia | Other | PayPal | Transfer
  • quantity: Int
  • shopItem: ShopItem
  • shopItemAnswer: ShopItemAnswer?
    • id: ID
    • options: [ String]
    • shopPayment: ShopPayment
    • shopPaymentId: String
  • totalPrice: Float
  • updatedAt: DateTime
  • user: User

Queries

shopItem(​slug:  String) →  ShopItem

Mutations

deleteItemPicture(​groupUid:  String, ​itemId:  String, ​pictureId:  String) →  Boolean

deleteShopOption(​optionIds:  [ String]) →  Boolean

paidShopPayment(​paymentMethod:  PaymentMethod?, ​phone:  String?, ​shopPaymentId:  ID) →  Result< ShopPayment>

updateItemPicture(​file:  File, ​groupUid:  String, ​itemId:  String) →  Picture

upsertShopItem(​...) →  Result< ShopItem>

upsertShopOptions(​itemOptions:  [ ShopItemOptionInput], ​shopItemId:  String) →  Boolean

Churros API, version 1.71.0 (at 242e0c3)

Made with <3 by net7 net7

Documentation generated with Graphinx