SubscriptionContractBase
Requires the or
scope.
Represents subscription contract common fields.
Anchor to Fields and connectionsFields and connections
- •
The subscription app that the subscription contract is registered to.
- Anchor to appAdminUrlapp•
Admin Url The URL of the subscription contract page on the subscription app.
- Anchor to currencyCodecurrency•
Code CurrencyCode! non-null The currency that's used for the subscription contract.
- Anchor to customAttributescustom•
Attributes [Attribute!]!non-null A list of the custom attributes to be added to the generated orders.
- Anchor to customercustomer•
The customer to whom the subscription contract belongs.
- Anchor to customerPaymentMethodcustomer•
Payment Method The customer payment method that's used for the subscription contract.
- Anchor to deliveryMethoddelivery•
Method The delivery method for each billing of the subscription contract.
- Anchor to deliveryPricedelivery•
Price MoneyV2! non-null The delivery price for each billing of the subscription contract.
- Anchor to discountsdiscounts•
The list of subscription discounts associated with the subscription contract.
- Anchor to lineslines•Subscription
Line non-nullConnection! The list of subscription lines associated with the subscription contract.
- Anchor to linesCountlines•
Count The number of lines associated with the subscription contract.
- Anchor to notenote•
The note field that will be applied to the generated orders.
- Anchor to ordersorders•Order
Connection! non-null A list of the subscription contract's orders.
- Anchor to updatedAtupdated•
At DateTime! non-null The date and time when the subscription contract was updated.
- Anchor to lineCountline•
Count The number of lines associated with the subscription contract. Use
instead.
{
"app": "",
"appAdminUrl": "",
"currencyCode": "",
"customAttributes": "",
"customer": "",
"customerPaymentMethod": {
"showRevoked": ""
},
"deliveryMethod": "",
"deliveryPrice": "",
"discounts": {
"first": "",
"after": "",
"last": "",
"before": "",
"reverse": ""
},
"lineCount": "",
"lines": {
"first": "",
"after": "",
"last": "",
"before": "",
"reverse": ""
},
"linesCount": "",
"note": "",
"orders": {
"first": "",
"after": "",
"last": "",
"before": "",
"reverse": ""
},
"updatedAt": ""
}
interface SubscriptionContractBase {
app: App
appAdminUrl: URL
currencyCode: CurrencyCode!
customAttributes: [Attribute!]!
customer: Customer
customerPaymentMethod: CustomerPaymentMethod
deliveryMethod: SubscriptionDeliveryMethod
deliveryPrice: MoneyV2!
lineCount: Int!
linesCount: Count
note: String
updatedAt: DateTime!
}