openmeter / api /spec /packages /aip /src /apps /customer.tsp
Leon4gr45's picture
Upload folder using huggingface_hub
048b1e8 verified
Raw
History Blame Contribute Delete
1.5 kB
import "./app.tsp";
namespace Apps;
/**
* App customer data.
*/
@friendlyName("BillingAppCustomerData")
model AppCustomerData {
/**
* Used if the customer has a linked Stripe app.
*/
@summary("Stripe")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
stripe?: Apps.AppCustomerDataStripe;
/**
* Used if the customer has a linked external invoicing app.
*/
@summary("External invoicing")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
external_invoicing?: Apps.AppCustomerDataExternalInvoicing;
}
/**
* Stripe customer data.
*/
@friendlyName("BillingAppCustomerDataStripe")
model AppCustomerDataStripe {
/**
* The Stripe customer ID used.
*/
@summary("Stripe customer ID")
@example("cus_1234567890")
customer_id?: string;
/**
* The Stripe default payment method ID.
*/
@summary("Stripe default payment method ID")
@example("pm_1234567890")
default_payment_method_id?: string;
/**
* Labels for this Stripe integration on the customer.
*/
@summary("Labels")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
labels?: Common.Labels;
}
/**
* External invoicing customer data.
*/
@friendlyName("BillingAppCustomerDataExternalInvoicing")
model AppCustomerDataExternalInvoicing {
/**
* Labels for this external invoicing integration on the customer.
*/
@summary("Labels")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
labels?: Common.Labels;
}