Primer · JSON-LD Context

Primer Context

JSON-LD context defining the semantic vocabulary for Primer from Primer.

16 Classes 27 Properties 3 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
primer: https://primer.io/docs/api-reference/
xsd: http://www.w3.org/2001/XMLSchema#

Classes

Payment ClientSession PaymentInstrument ClientSessionAPIRequest PaymentCreationAPIRequest PaymentAPIResponse PaymentRefundAPIRequest PaymentCaptureAPIRequest PaymentStatus PENDING AUTHORIZED SETTLING SETTLED DECLINED CANCELLED FAILED

Properties

Property Type Container
paymentId string
amount integer
currencyCode string
status string
orderId string
paymentMethodType string
processorMerchantId string
paymentMethodToken string
customer
email string
firstName string
lastName string
billingAddress
shippingAddress
addressLine1 string
city string
state string
postalCode string
countryCode string
lineItems list
name string
description string
quantity integer
unitAmount integer
webhook
createdAt dateTime
updatedAt dateTime

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "schema": "https://schema.org/",
    "primer": "https://primer.io/docs/api-reference/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "Payment": "schema:PaymentChargeSpecification",
    "ClientSession": "primer:client-session",
    "PaymentInstrument": "primer:payment-instruments",

    "paymentId": { "@id": "schema:identifier", "@type": "xsd:string" },
    "amount": { "@id": "schema:price", "@type": "xsd:integer" },
    "currencyCode": { "@id": "schema:priceCurrency", "@type": "xsd:string" },
    "status": { "@id": "schema:orderStatus", "@type": "xsd:string" },
    "orderId": { "@id": "schema:orderNumber", "@type": "xsd:string" },

    "paymentMethodType": { "@id": "primer:paymentMethodType", "@type": "xsd:string" },
    "processorMerchantId": { "@id": "primer:processorMerchantId", "@type": "xsd:string" },
    "paymentMethodToken": { "@id": "primer:paymentMethodToken", "@type": "xsd:string" },

    "ClientSessionAPIRequest": "primer:ClientSessionAPIRequest",
    "PaymentCreationAPIRequest": "primer:PaymentCreationAPIRequest",
    "PaymentAPIResponse": "primer:PaymentAPIResponse",
    "PaymentRefundAPIRequest": "primer:PaymentRefundAPIRequest",
    "PaymentCaptureAPIRequest": "primer:PaymentCaptureAPIRequest",

    "PaymentStatus": "primer:PaymentStatus",
    "PENDING": "primer:PENDING",
    "AUTHORIZED": "primer:AUTHORIZED",
    "SETTLING": "primer:SETTLING",
    "SETTLED": "primer:SETTLED",
    "DECLINED": "primer:DECLINED",
    "CANCELLED": "primer:CANCELLED",
    "FAILED": "primer:FAILED",

    "customer": { "@id": "schema:customer" },
    "email": { "@id": "schema:email", "@type": "xsd:string" },
    "firstName": { "@id": "schema:givenName", "@type": "xsd:string" },
    "lastName": { "@id": "schema:familyName", "@type": "xsd:string" },

    "billingAddress": { "@id": "schema:billingAddress" },
    "shippingAddress": { "@id": "schema:deliveryAddress" },
    "addressLine1": { "@id": "schema:streetAddress", "@type": "xsd:string" },
    "city": { "@id": "schema:addressLocality", "@type": "xsd:string" },
    "state": { "@id": "schema:addressRegion", "@type": "xsd:string" },
    "postalCode": { "@id": "schema:postalCode", "@type": "xsd:string" },
    "countryCode": { "@id": "schema:addressCountry", "@type": "xsd:string" },

    "lineItems": { "@id": "schema:orderedItem", "@container": "@list" },
    "name": { "@id": "schema:name", "@type": "xsd:string" },
    "description": { "@id": "schema:description", "@type": "xsd:string" },
    "quantity": { "@id": "schema:orderQuantity", "@type": "xsd:integer" },
    "unitAmount": { "@id": "schema:price", "@type": "xsd:integer" },

    "webhook": { "@id": "primer:webhook" },
    "createdAt": { "@id": "schema:dateCreated", "@type": "xsd:dateTime" },
    "updatedAt": { "@id": "schema:dateModified", "@type": "xsd:dateTime" }
  }
}