-
Notifications
You must be signed in to change notification settings - Fork 4
Customer_Attributes
An object representing the resources data.
public struct Attributes: Codable
Codable
The ID of the store this order belongs to.
public let storeId: Int
The full name of the customer.
public let name: String
The email address of the customer.
public let email: String
The email marketing status of the customer. One of:
public let status: String
-
subscribed
- This customer is subscribed to marketing emails. -
unsubscribed
- This customer has unsubscribed from marketing emails. -
archived
- This customer has been archived and will no longer recieve marketing emails. -
requires_verification
- The customers email address need to be verified (happens automatically). -
invalid_email
- The customers email address has failed validation. -
bounced
- The customers email has hard bounced.
The city of the customer.
public let city: String?
The region of the customer.
public let region: String?
The country of the customer.
public let country: String?
A positive integer in cents representing the total revenue from the customer (USD).
public let totalRevenueCurrency: Int
A positive integer in cents representing the monthly recurring revenue from the customer (USD).
public let mrr: Int
The formatted status of the customer.
public let statusFormatted: String
The formatted country of the customer.
public let countryFormatted: String?
A human-readable string representing the total revenue from the customer (e.g. $9.99).
public let totalRevenueCurrencyFormatted: String
A human-readable string representing the monthly recurring revenue from the customer (e.g. $9.99).
public let mrrFormatted: String
An ISO-8601 formatted date-time string indicating when the object was created.
public let createdAt: String
An ISO-8601 formatted date-time string indicating when the object was last updated.
public let updatedAt: String
A boolean indicating if the returned subscription object was created within test mode.
public let testMode: Bool
Generated at 2023-03-27T19:40:46+0000 using swift-doc 1.0.0-rc.1.
Types
- ActivateLicense
- ActivateLicense.Instance
- ActivateLicense.LicenseKey
- ActivateLicense.Meta
- Checkout
- Checkout.APIResponse
- Checkout.Attributes
- Checkout.CheckoutData
- Checkout.CheckoutData.BillingAddress
- Checkout.CheckoutOptions
- Checkout.Included
- Checkout.ProductOptions
- Customer
- Customer.APIResponse
- Customer.Attributes
- Customer.Included
- DeactivateLicense
- DeactivateLicense.LicenseKey
- DeactivateLicense.Meta
- Discount
- Discount.APIResponse
- Discount.Attributes
- Discount.Included
- DiscountRedemption
- DiscountRedemption.APIResponse
- DiscountRedemption.Attributes
- DiscountRedemption.Included
- ErrorDetail
- File
- File.APIResponse
- File.Attributes
- File.Included
- LemonSqueezy
- LemonSqueezyAPIDataAndIncluded
- LemonSqueezyAPIDataIncludedAndMeta
- LemonSqueezyAPIError
- LemonSqueezyError
- LicenseKey
- LicenseKey.APIResponse
- LicenseKey.Attributes
- LicenseKey.Included
- LicenseKeyInstance
- LicenseKeyInstance.APIResponse
- LicenseKeyInstance.Attributes
- LicenseKeyInstance.Included
- Meta
- Meta.Page
- Order
- Order.APIResponse
- Order.Attributes
- Order.FirstOrderItem
- Order.Included
- OrderItem
- OrderItem.APIResponse
- OrderItem.Attributes
- OrderItem.Included
- Product
- Product.APIResponse
- Product.Attributes
- Product.Included
- Store
- Store.APIResponse
- Store.Attributes
- Store.Included
- Subscription
- Subscription.APIResponse
- Subscription.Attributes
- Subscription.Included
- Subscription.Pause
- Subscription.Urls
- User
- User.APIResponse
- User.Attributes
- User.Included
- ValidateLicense
- ValidateLicense.Instance
- ValidateLicense.LicenseKey
- ValidateLicense.Meta
- Variant
- Variant.APIResponse
- Variant.Attributes
- Variant.Included
Global Functions
- activateLicense(licenseKey:instanceName:)
- cancelSubscription(_:)
- createCheckout(body:)
- deactivateLicense(licenseKey:instanceId:)
- getCheckout(_:queryItems:)
- getCheckouts(pageNumber:pageSize:queryItems:)
- getCustomer(_:queryItems:)
- getCustomers(pageNumber:pageSize:queryItems:)
- getDiscount(_:queryItems:)
- getDiscountRedemption(_:queryItems:)
- getDiscountRedemptions(pageNumber:pageSize:queryItems:)
- getDiscounts(pageNumber:pageSize:queryItems:)
- getFile(_:queryItems:)
- getFiles(pageNumber:pageSize:queryItems:)
- getLicenseKey(_:queryItems:)
- getLicenseKeyInstance(_:queryItems:)
- getLicenseKeyInstances(pageNumber:pageSize:queryItems:)
- getLicenseKeys(pageNumber:pageSize:queryItems:)
- getMe()
- getOrder(_:queryItems:)
- getOrderItem(_:queryItems:)
- getOrderItems(pageNumber:pageSize:queryItems:)
- getOrders(pageNumber:pageSize:queryItems:)
- getProduct(_:queryItems:)
- getProducts(pageNumber:pageSize:queryItems:)
- getStore(_:queryItems:)
- getStores(pageNumber:pageSize:queryItems:)
- getSubscription(_:queryItems:)
- getSubscriptions(pageNumber:pageSize:queryItems:)
- getVariant(_:queryItems:)
- getVariants(pageNumber:pageSize:queryItems:)
- updateSubscription(_:body:)
- validateLicense(licenseKey:instanceId:)