@c1m-public/channel-client 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ZEWL4PBM.js → chunk-CXNWN5M5.js} +12 -30
- package/dist/{chunk-IESKKOTS.js → chunk-IDWCPTIC.js} +1 -1
- package/dist/{chunk-2VFLXYHH.js → chunk-JV3I6LIR.js} +1 -1
- package/dist/dash-next.d.ts +1 -1
- package/dist/dash-next.js +3 -3
- package/dist/dash.d.ts +1 -1
- package/dist/dash.js +2 -2
- package/dist/index.d.ts +24 -21
- package/dist/index.js +1 -1
- package/dist/next.d.ts +10 -14
- package/dist/next.js +2 -2
- package/dist/site.d.ts +1 -1
- package/dist/{types-Iuoc_GMq.d.ts → types-SZWnEWzJ.d.ts} +49 -59
- package/package.json +1 -1
|
@@ -218,6 +218,7 @@ function buildChannelClient(options, viewer) {
|
|
|
218
218
|
if (signedVisitor) {
|
|
219
219
|
for (const [key, value] of Object.entries(signedVisitor)) headers.set(key, value);
|
|
220
220
|
}
|
|
221
|
+
if (options.receiptPage) headers.set("X-Receipt-Page", "1");
|
|
221
222
|
const effectiveSession = session ?? viewer;
|
|
222
223
|
if (effectiveSession) headers.set("X-End-User-Token", effectiveSession);
|
|
223
224
|
if (init.body !== void 0 && !isFormDataBody(init.body) && !headers.has("Content-Type")) {
|
|
@@ -349,6 +350,14 @@ function buildChannelClient(options, viewer) {
|
|
|
349
350
|
body: JSON.stringify({ token: required(token2, "token") })
|
|
350
351
|
})
|
|
351
352
|
},
|
|
353
|
+
/**
|
|
354
|
+
* A purchase by its receipt link (workspace token). The token is the
|
|
355
|
+
* credential; pass the customer's session to learn whether they made the
|
|
356
|
+
* purchase. Answers are never cached: render them per request.
|
|
357
|
+
*/
|
|
358
|
+
receipts: {
|
|
359
|
+
get: (token2, options2 = {}) => request("channel.receipts.get", `/receipts/${encodePath(required(token2, "token"))}`, { cache: "no-store" }, options2.endUserToken?.trim() || void 0)
|
|
360
|
+
},
|
|
352
361
|
/** Tenant-level data exposed only to a dash-scoped channel token. */
|
|
353
362
|
dash: {
|
|
354
363
|
profile: () => request("channel.dash.profile", "/dash/profile"),
|
|
@@ -693,25 +702,10 @@ function buildChannelClient(options, viewer) {
|
|
|
693
702
|
body: JSON.stringify({ kind: "shipping" })
|
|
694
703
|
}, customerSession)
|
|
695
704
|
},
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
setup: (input, mutation) => request("channel.account.payment_methods.setup", "/account/payment-methods/setup", {
|
|
705
|
+
billing: {
|
|
706
|
+
portal: (input) => request("channel.account.billing.portal", "/account/billing/portal", {
|
|
699
707
|
method: "POST",
|
|
700
|
-
headers: mutationHeaders(mutation),
|
|
701
708
|
body: JSON.stringify(input)
|
|
702
|
-
}, customerSession),
|
|
703
|
-
confirm: (input, mutation) => request("channel.account.payment_methods.confirm", "/account/payment-methods/confirm", {
|
|
704
|
-
method: "POST",
|
|
705
|
-
headers: mutationHeaders(mutation),
|
|
706
|
-
body: JSON.stringify(input)
|
|
707
|
-
}, customerSession),
|
|
708
|
-
setDefault: (methodId, mutation) => request("channel.account.payment_methods.default", `/account/payment-methods/${encodePath(methodId)}/default`, {
|
|
709
|
-
method: "POST",
|
|
710
|
-
headers: mutationHeaders(mutation)
|
|
711
|
-
}, customerSession),
|
|
712
|
-
delete: (methodId, mutation) => request("channel.account.payment_methods.delete", `/account/payment-methods/${encodePath(methodId)}`, {
|
|
713
|
-
method: "DELETE",
|
|
714
|
-
headers: mutationHeaders(mutation)
|
|
715
709
|
}, customerSession)
|
|
716
710
|
},
|
|
717
711
|
subscriptions: {
|
|
@@ -722,19 +716,7 @@ function buildChannelClient(options, viewer) {
|
|
|
722
716
|
}, customerSession),
|
|
723
717
|
list: (params = {}) => request("channel.account.subscriptions.list", appendQuery("/account/subscriptions", params), {}, customerSession),
|
|
724
718
|
get: (agreementId) => request("channel.account.subscriptions.get", `/account/subscriptions/${encodePath(agreementId)}`, {}, customerSession),
|
|
725
|
-
source: (agreementId) => request("channel.account.subscriptions.source", `/account/subscriptions/${encodePath(agreementId)}/source`, {}, customerSession)
|
|
726
|
-
cancel: (agreementId, params = {}, mutation) => request("channel.account.subscriptions.cancel", appendQuery(`/account/subscriptions/${encodePath(agreementId)}/cancel`, params), {
|
|
727
|
-
method: "POST",
|
|
728
|
-
headers: mutationHeaders(mutation)
|
|
729
|
-
}, customerSession),
|
|
730
|
-
portal: (input = {}, mutation) => request("channel.account.subscriptions.portal", "/account/subscriptions/portal", {
|
|
731
|
-
method: "POST",
|
|
732
|
-
headers: mutationHeaders(mutation),
|
|
733
|
-
body: JSON.stringify(input)
|
|
734
|
-
}, customerSession),
|
|
735
|
-
invoices: {
|
|
736
|
-
list: (agreementId, params = {}) => request("channel.account.subscriptions.invoices.list", appendQuery(`/account/subscriptions/${encodePath(agreementId)}/invoices`, params), {}, customerSession)
|
|
737
|
-
}
|
|
719
|
+
source: (agreementId) => request("channel.account.subscriptions.source", `/account/subscriptions/${encodePath(agreementId)}/source`, {}, customerSession)
|
|
738
720
|
},
|
|
739
721
|
giving: {
|
|
740
722
|
list: () => request("channel.account.giving.list", "/account/giving", {}, customerSession),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isChannelAPIError, createChannelClient } from './chunk-
|
|
1
|
+
import { isChannelAPIError, createChannelClient } from './chunk-CXNWN5M5.js';
|
|
2
2
|
import { parseChannelWebhookEvent, isChannelWebhookVerificationError, isChannelWebhookEventType, ChannelConfigurationError } from './chunk-XPO7C3DW.js';
|
|
3
3
|
import 'server-only';
|
|
4
4
|
|
package/dist/dash-next.d.ts
CHANGED
package/dist/dash-next.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createNextChannelClient } from './chunk-
|
|
2
|
-
import { narrow } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { createNextChannelClient } from './chunk-IDWCPTIC.js';
|
|
2
|
+
import { narrow } from './chunk-JV3I6LIR.js';
|
|
3
|
+
import './chunk-CXNWN5M5.js';
|
|
4
4
|
import './chunk-XPO7C3DW.js';
|
|
5
5
|
import 'server-only';
|
|
6
6
|
|
package/dist/dash.d.ts
CHANGED
package/dist/dash.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createDashChannelClient, narrow as narrowToDash } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { createDashChannelClient, narrow as narrowToDash } from './chunk-JV3I6LIR.js';
|
|
2
|
+
import './chunk-CXNWN5M5.js';
|
|
3
3
|
import './chunk-XPO7C3DW.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistGateStatus, k as WaitlistFormSettings, l as WaitlistSubmission, m as WaitlistAcknowledgement, n as WaitlistVerification, o as WaitlistUnsubscription, F as FileRequestView, p as FileRequestUploadInput, q as FileRequestUploadTicket, r as FileRequestCompleteInput, s as FileRequestReceivedFile, t as FileRequestClosed, D as DashProfileResponse,
|
|
2
|
-
export {
|
|
1
|
+
import { i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistGateStatus, k as WaitlistFormSettings, l as WaitlistSubmission, m as WaitlistAcknowledgement, n as WaitlistVerification, o as WaitlistUnsubscription, F as FileRequestView, p as FileRequestUploadInput, q as FileRequestUploadTicket, r as FileRequestCompleteInput, s as FileRequestReceivedFile, t as FileRequestClosed, u as ChannelReceiptResponse, D as DashProfileResponse, v as DashInitResponse, w as DashPlansResponse, L as ListResponse, x as DashDirectoryRegion, y as DashDirectoryEntry, z as DashDirectoryProfileResponse, B as DashLead, E as DashLeadPortalRequestLinkInput, G as DashLeadPortalRequestLinkResponse, H as DashLeadPortalView, I as DashMovingQuoteInput, J as DashMovingQuoteReceipt, K as DashMovingAddressList, M as DashMovingAddress, N as DashMovingDistance, S as SiteAccess, Q as SiteDocument, R as PublicWorkspaceInit, T as LightInitResponse, U as PublicPageSummary, V as PublicPage, X as Product, Y as ProductAsset, Z as SlotsResponse, _ as DownloadResponse, aY as BeginUploadInput, aZ as CompleteUploadInput, $ as ArtworkMutationReceipt, a_ as DecisionInput, a0 as PublicConfiguration, a1 as PublicConfigurationQuoteInput, a2 as PublicConfigurationQuote, a3 as CatalogCategory, a4 as CatalogProductsResponse, a5 as CatalogCollection, a6 as CatalogBrand, a7 as CartLookupResponse, A as AddCartItemInput, C as CartResponse, a8 as UpdateCartItemInput, a9 as MergeCartInput, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, aa as Review, ab as ReviewSummaryResponse, ac as PublicSubmitReviewInput, ad as ThemeResponse, ae as MenuResponse, af as BlogPost, ag as BlogPostResponse, ah as GivingEntry, ai as StartGivingInput, aj as StartGivingResponse, ak as SubscriptionPlanListResponse, al as SubscriptionPlanResponse, am as BookingService, an as BookingServiceResponse, ao as BookingAvailabilityParams, ap as BookingAvailabilityResponse, aq as BookingQuoteParams, ar as BookingQuoteResponse, as as CreateBookingHoldInput, at as BookingHoldResponse, au as PublicPaymentLinkResponse, av as PaymentLinkCheckoutInput, aw as PaymentLinkCheckoutResponse, ax as PaymentLinkRedemptionStatusResponse, ay as PrintSettingsResponse, az as PrintOptionsSelection, aA as PrintQuoteResponse, aB as PrintIntakeInput, aC as PrintJob, aD as DiningMenu, aE as CustomerSignupResponse, aF as SendCodeResponse, aG as CustomerSession, aH as CustomerResponse, aI as CustomerAuthSession, aJ as CustomerSecurityActivityPage, O as Order, aK as OrderSummary, aL as SavedAddress, aM as SavedAddressResponse, aN as SavedAddressInput, aO as SavedAddressUpdateInput, aP as AccountBillingPortalInput, aQ as AccountBillingPortalResponse, aR as StartSubscriptionInput, aS as SubscriptionCheckoutResponse, aT as SubscriptionListResponse, aU as SubscriptionAgreementResponse, aV as SubscriptionSourceResponse, aW as GivingIntentListResponse, aX as LeadResponse, a$ as Slot } from './types-SZWnEWzJ.js';
|
|
2
|
+
export { b0 as BookingAvailability, b1 as BookingCancellationPolicy, b2 as BookingCustomerInput, b3 as BookingFreeSpan, b4 as BookingHold, b5 as BookingIntakeQuestion, b6 as BookingPriceQuote, b7 as BookingServicePricing, b8 as BookingTimeRange, b9 as CatalogProduct, ba as ChannelReceipt, bb as ChannelReceiptLine, bc as ChannelReceiptRecurring, bd as CheckoutAddress, be as CheckoutStatus, bf as ConfigDocument, bg as ConfigQuote, bh as ConfigSelectionRequest, bi as Customer, bj as CustomerSecurityActivity, bk as DashBrandingInfo, bl as DashDirectoryProfile, bm as DashLeadPortalMatch, bn as DashLeadPortalMovingSummary, bo as DashLeadPortalRequest, bp as DashLeadPortalRequestStatus, bq as DashLocaleInfo, br as DashPlan, bs as DashPlanLimitValue, bt as DashPlanPricing, bu as DashPublicPage, bv as DashPublicProfileInfo, bw as DashTenantInfo, bx as DiningAvailability, by as DiningAvailabilityRule, bz as DiningComboChoice, bA as DiningComboGroup, bB as DiningItemSize, bC as DiningMenuItem, bD as DiningModifier, bE as DiningModifierGroup, bF as DiningOffer, bG as DiningOfferBadge, bH as FileRequestTokenInput, bI as GivingIntent, bJ as Menu, bK as MenuItem, bL as OrderItem, bM as PaymentLinkRedemptionStatus, bN as PaymentMethodOption, bO as PaymentReadiness, bP as PrintBranding, bQ as PrintIntakeLimits, bR as PrintJobFile, bS as PrintPaperSize, bT as PrintPerPagePricing, bU as PrintPriceBreakdown, bV as PrintPriceLine, bW as PrintPricing, bX as PrintPricingOption, bY as ProductLineConfiguration, bZ as PublicGate, b_ as PublicPaymentLink, b$ as PublicSiteSignals, c0 as ShippingMethodOption, c1 as SiteGatedDocument, c2 as SiteRef, c3 as SiteResolvedDocument, c4 as SiteSubject, c5 as SubscriptionAgreement, c6 as SubscriptionPlanOffer, c7 as SubscriptionSourceDisplay, c8 as WaitlistAttribution, c9 as WorkspaceInfo } from './types-SZWnEWzJ.js';
|
|
3
3
|
export { AnyChannelWebhookEvent, CHANNEL_WEBHOOK_EVENT_ID_HEADER, CHANNEL_WEBHOOK_EVENT_TYPES, CHANNEL_WEBHOOK_SIGNATURE_HEADER, CHANNEL_WEBHOOK_TIMESTAMP_HEADER, ChannelWebhookEvent, ChannelWebhookEventDataMap, ChannelWebhookEventType, ChannelWebhookVerificationCode, ChannelWebhookVerificationError, DEFAULT_TOLERANCE_SECONDS, FulfillmentEventData, LeadCreatedEventData, MenuUpdatedEventData, OrderEventData, PagePublishedEventData, ParseChannelWebhookEventOptions, ParsedChannelWebhookEvent, ProductEventData, ReviewPublishedEventData, ReviewSubmittedEventData, UnknownChannelWebhookEvent, VerifyChannelWebhookSignatureOptions, isChannelWebhookEventType, isChannelWebhookVerificationError, isKnownChannelWebhookEvent, parseChannelWebhookEvent, verifyChannelWebhookSignature } from './webhooks.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -69,6 +69,13 @@ interface CreateChannelClientOptions {
|
|
|
69
69
|
signal?: AbortSignal;
|
|
70
70
|
/** Verified visitor metadata from the hosting edge. Never accept these values from an untrusted caller. */
|
|
71
71
|
visitor?: ChannelVisitor;
|
|
72
|
+
/**
|
|
73
|
+
* Set when the site serves `/receipt/{token}` and reads it with
|
|
74
|
+
* `receipts.get`. Purchases started through this client then return there
|
|
75
|
+
* (and its email links point there); without it they return to the site's
|
|
76
|
+
* own success pages.
|
|
77
|
+
*/
|
|
78
|
+
receiptPage?: boolean;
|
|
72
79
|
}
|
|
73
80
|
interface ChannelVisitor {
|
|
74
81
|
ip?: string;
|
|
@@ -76,7 +83,7 @@ interface ChannelVisitor {
|
|
|
76
83
|
userAgent?: string;
|
|
77
84
|
}
|
|
78
85
|
type ChannelRequestOutcome = "success" | "api_error" | "network_error" | "timeout" | "invalid_response" | "cancelled";
|
|
79
|
-
type ChannelOperation = "channel.commerce.artwork.list" | "channel.commerce.artwork.download" | "channel.commerce.artwork.decide" | "channel.commerce.artwork.uploads.begin" | "channel.commerce.artwork.uploads.complete" | "channel.ping" | "channel.geo.detect" | "channel.site.access" | "channel.site.resolve" | "channel.init.get" | "channel.init.light" | "channel.pages.list" | "channel.pages.get" | "channel.catalog.products.list" | "channel.catalog.products.get" | "channel.catalog.products.media" | "channel.catalog.products.configuration.get" | "channel.catalog.products.configuration.quote" | "channel.reviews.list" | "channel.reviews.summary" | "channel.reviews.submit" | "channel.theme.get" | "channel.menus.get" | "channel.blog.get" | "channel.blog.list" | "channel.payments.availability" | "channel.giving.entries.list" | "channel.giving.entries.get" | "channel.giving.start" | "channel.subscriptions.plans.list" | "channel.subscriptions.plans.get" | "channel.subscriptions.start" | "channel.book.services.list" | "channel.book.services.get" | "channel.book.availability.get" | "channel.book.quote.get" | "channel.book.holds.create" | "channel.book.holds.checkout" | "channel.book.holds.get" | "channel.book.holds.release" | "channel.payment_links.get" | "channel.payment_links.checkout" | "channel.payment_links.redemptions.get" | "channel.print.settings" | "channel.print.quote" | "channel.print.intake" | "channel.menu.boards.menu" | "channel.auth.check" | "channel.auth.signup" | "channel.auth.send_code" | "channel.auth.verify_code" | "channel.auth.refresh" | "channel.auth.me" | "channel.auth.me.update" | "channel.auth.logout" | "channel.auth.sessions.list" | "channel.auth.sessions.revoke" | "channel.auth.sessions.revoke_others" | "channel.auth.sessions.revoke_all" | "channel.auth.security_activity.list" | "channel.account.addresses.list" | "channel.account.addresses.create" | "channel.account.addresses.get" | "channel.account.addresses.update" | "channel.account.addresses.delete" | "channel.account.addresses.set_default" | "channel.account.giving.list" | "channel.account.orders.list" | "channel.account.orders.summary" | "channel.account.orders.get" | "channel.account.
|
|
86
|
+
type ChannelOperation = "channel.commerce.artwork.list" | "channel.commerce.artwork.download" | "channel.commerce.artwork.decide" | "channel.commerce.artwork.uploads.begin" | "channel.commerce.artwork.uploads.complete" | "channel.ping" | "channel.geo.detect" | "channel.site.access" | "channel.site.resolve" | "channel.init.get" | "channel.init.light" | "channel.pages.list" | "channel.pages.get" | "channel.catalog.products.list" | "channel.catalog.products.get" | "channel.catalog.products.media" | "channel.catalog.products.configuration.get" | "channel.catalog.products.configuration.quote" | "channel.reviews.list" | "channel.reviews.summary" | "channel.reviews.submit" | "channel.theme.get" | "channel.menus.get" | "channel.blog.get" | "channel.blog.list" | "channel.payments.availability" | "channel.giving.entries.list" | "channel.giving.entries.get" | "channel.giving.start" | "channel.subscriptions.plans.list" | "channel.subscriptions.plans.get" | "channel.subscriptions.start" | "channel.book.services.list" | "channel.book.services.get" | "channel.book.availability.get" | "channel.book.quote.get" | "channel.book.holds.create" | "channel.book.holds.checkout" | "channel.book.holds.get" | "channel.book.holds.release" | "channel.payment_links.get" | "channel.payment_links.checkout" | "channel.payment_links.redemptions.get" | "channel.print.settings" | "channel.print.quote" | "channel.print.intake" | "channel.menu.boards.menu" | "channel.auth.check" | "channel.auth.signup" | "channel.auth.send_code" | "channel.auth.verify_code" | "channel.auth.refresh" | "channel.auth.me" | "channel.auth.me.update" | "channel.auth.logout" | "channel.auth.sessions.list" | "channel.auth.sessions.revoke" | "channel.auth.sessions.revoke_others" | "channel.auth.sessions.revoke_all" | "channel.auth.security_activity.list" | "channel.account.addresses.list" | "channel.account.addresses.create" | "channel.account.addresses.get" | "channel.account.addresses.update" | "channel.account.addresses.delete" | "channel.account.addresses.set_default" | "channel.account.giving.list" | "channel.account.orders.list" | "channel.account.orders.summary" | "channel.account.orders.get" | "channel.account.billing.portal" | "channel.account.subscriptions.list" | "channel.account.subscriptions.get" | "channel.account.subscriptions.source" | "channel.catalog.brands.list" | "channel.catalog.categories.list" | "channel.catalog.categories.products" | "channel.catalog.collections.list" | "channel.catalog.collections.products" | "channel.catalog.collections.get" | "channel.cart.get" | "channel.cart.items.add" | "channel.cart.items.update" | "channel.cart.items.remove" | "channel.cart.clear" | "channel.cart.merge" | "channel.checkout.options" | "channel.checkout.status" | "channel.checkout.customer.set" | "channel.checkout.addresses.set" | "channel.checkout.fulfillment.set" | "channel.checkout.pay" | "channel.checkout.cancel" | "channel.dash.profile" | "channel.dash.init" | "channel.waitlist.status" | "channel.waitlist.form" | "channel.waitlist.submit" | "channel.file_requests.view" | "channel.file_requests.uploads.begin" | "channel.file_requests.uploads.complete" | "channel.file_requests.close" | "channel.receipts.get" | "channel.dash.waitlist.status" | "channel.dash.waitlist.form" | "channel.dash.waitlist.submit" | "channel.dash.plans" | "channel.dash.directory.regions" | "channel.dash.directory.browse" | "channel.dash.directory.get" | "channel.dash.leads.capture" | "channel.dash.lead_portal.my_quotes" | "channel.dash.lead_portal.request_link" | "channel.dash.quote_requests.moving.capture" | "channel.dash.addresses.lookup" | "channel.dash.addresses.resolve" | "channel.dash.addresses.distance" | "channel.leads.capture";
|
|
80
87
|
interface ChannelRequestObservation {
|
|
81
88
|
operation: ChannelOperation;
|
|
82
89
|
method: string;
|
|
@@ -131,11 +138,6 @@ interface ChannelCheckoutStatusParams {
|
|
|
131
138
|
interface ChannelSubscriptionListParams extends ChannelListParams {
|
|
132
139
|
status?: string;
|
|
133
140
|
}
|
|
134
|
-
interface ChannelSubscriptionCancelParams {
|
|
135
|
-
immediate?: boolean;
|
|
136
|
-
}
|
|
137
|
-
interface ChannelInvoiceListParams extends ChannelListParams {
|
|
138
|
-
}
|
|
139
141
|
declare class ChannelAPIError extends Error {
|
|
140
142
|
readonly status: number;
|
|
141
143
|
readonly code: string;
|
|
@@ -200,6 +202,16 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
|
|
|
200
202
|
readonly complete: (input: FileRequestCompleteInput, mutation?: ChannelMutationOptions) => Promise<FileRequestReceivedFile>;
|
|
201
203
|
readonly close: (token: string, mutation?: ChannelMutationOptions) => Promise<FileRequestClosed>;
|
|
202
204
|
};
|
|
205
|
+
/**
|
|
206
|
+
* A purchase by its receipt link (workspace token). The token is the
|
|
207
|
+
* credential; pass the customer's session to learn whether they made the
|
|
208
|
+
* purchase. Answers are never cached: render them per request.
|
|
209
|
+
*/
|
|
210
|
+
readonly receipts: {
|
|
211
|
+
readonly get: (token: string, options?: {
|
|
212
|
+
endUserToken?: string;
|
|
213
|
+
}) => Promise<ChannelReceiptResponse>;
|
|
214
|
+
};
|
|
203
215
|
/** Tenant-level data exposed only to a dash-scoped channel token. */
|
|
204
216
|
readonly dash: {
|
|
205
217
|
readonly profile: () => Promise<DashProfileResponse>;
|
|
@@ -440,23 +452,14 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
|
|
|
440
452
|
}>;
|
|
441
453
|
readonly setDefault: (addressId: string, mutation?: ChannelMutationOptions) => Promise<SavedAddressResponse>;
|
|
442
454
|
};
|
|
443
|
-
readonly
|
|
444
|
-
readonly
|
|
445
|
-
readonly setup: (input: PaymentMethodSetupInput, mutation?: ChannelMutationOptions) => Promise<PaymentMethodSetupResult>;
|
|
446
|
-
readonly confirm: (input: PaymentMethodConfirmInput, mutation?: ChannelMutationOptions) => Promise<SavedPaymentMethod>;
|
|
447
|
-
readonly setDefault: (methodId: string, mutation?: ChannelMutationOptions) => Promise<PaymentMethodMutationResponse>;
|
|
448
|
-
readonly delete: (methodId: string, mutation?: ChannelMutationOptions) => Promise<PaymentMethodMutationResponse>;
|
|
455
|
+
readonly billing: {
|
|
456
|
+
readonly portal: (input: AccountBillingPortalInput) => Promise<AccountBillingPortalResponse>;
|
|
449
457
|
};
|
|
450
458
|
readonly subscriptions: {
|
|
451
|
-
readonly start: (input: StartSubscriptionInput, mutation?: ChannelMutationOptions) => Promise<
|
|
459
|
+
readonly start: (input: StartSubscriptionInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionCheckoutResponse>;
|
|
452
460
|
readonly list: (params?: ChannelSubscriptionListParams) => Promise<SubscriptionListResponse>;
|
|
453
461
|
readonly get: (agreementId: string) => Promise<SubscriptionAgreementResponse>;
|
|
454
462
|
readonly source: (agreementId: string) => Promise<SubscriptionSourceResponse>;
|
|
455
|
-
readonly cancel: (agreementId: string, params?: ChannelSubscriptionCancelParams, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
|
|
456
|
-
readonly portal: (input?: SubscriptionPortalInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionPortalResponse>;
|
|
457
|
-
readonly invoices: {
|
|
458
|
-
readonly list: (agreementId: string, params?: ChannelInvoiceListParams) => Promise<SubscriptionInvoiceListResponse>;
|
|
459
|
-
};
|
|
460
463
|
};
|
|
461
464
|
readonly giving: {
|
|
462
465
|
readonly list: () => Promise<GivingIntentListResponse>;
|
|
@@ -470,4 +473,4 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
|
|
|
470
473
|
};
|
|
471
474
|
};
|
|
472
475
|
|
|
473
|
-
export { AddCartItemInput, type ArtworkCompleteInput, ArtworkMutationReceipt, type ArtworkProofDecision, type ArtworkSlot, type ArtworkSlotsResponse, type ArtworkUploadInput, type ArtworkUploadTicket, BlogPost, BlogPostResponse, BookingAvailabilityParams, BookingAvailabilityResponse, BookingHoldResponse, BookingQuoteParams, BookingQuoteResponse, BookingService, BookingServiceResponse, CartLookupResponse, CartResponse, CatalogBrand, CatalogCategory, CatalogCollection, CatalogProductsResponse, ChannelAPIError, type ChannelCheckoutStatusParams, ChannelConfigurationError, ChannelGeo, type
|
|
476
|
+
export { AccountBillingPortalInput, AccountBillingPortalResponse, AddCartItemInput, type ArtworkCompleteInput, ArtworkMutationReceipt, type ArtworkProofDecision, type ArtworkSlot, type ArtworkSlotsResponse, type ArtworkUploadInput, type ArtworkUploadTicket, BlogPost, BlogPostResponse, BookingAvailabilityParams, BookingAvailabilityResponse, BookingHoldResponse, BookingQuoteParams, BookingQuoteResponse, BookingService, BookingServiceResponse, CartLookupResponse, CartResponse, CatalogBrand, CatalogCategory, CatalogCollection, CatalogProductsResponse, ChannelAPIError, type ChannelCheckoutStatusParams, ChannelConfigurationError, ChannelGeo, type ChannelLeadInput, type ChannelListParams, type ChannelMutationOptions, type ChannelOperation, ChannelPing, type ChannelProductListParams, ChannelReceiptResponse, type ChannelRequestObservation, type ChannelRequestObserver, type ChannelRequestOutcome, type ChannelRetryPolicy, type ChannelSiteResolveParams, type ChannelSubscriptionListParams, type ChannelVisitor, CheckoutAddressesInput, CheckoutCancelInput, CheckoutCustomerInput, CheckoutFulfillmentInput, CheckoutOptions, CheckoutPayInput, CheckoutPayResponse, CheckoutStatusResponse, CreateBookingHoldInput, type CreateChannelClientOptions, CustomerAuthSession, CustomerResponse, CustomerSecurityActivityPage, CustomerSession, CustomerSignupResponse, DEFAULT_CHANNEL_API_URL, DashDirectoryEntry, type DashDirectoryListParams, DashDirectoryProfileResponse, DashDirectoryRegion, DashInitResponse, DashLead, DashLeadPortalRequestLinkInput, DashLeadPortalRequestLinkResponse, DashLeadPortalView, DashMovingAddress, DashMovingAddressList, DashMovingDistance, DashMovingQuoteInput, DashMovingQuoteReceipt, DashPlansResponse, DashProfileResponse, DiningMenu, DownloadResponse, FileRequestClosed, FileRequestCompleteInput, FileRequestReceivedFile, FileRequestUploadInput, FileRequestUploadTicket, FileRequestView, GivingEntry, GivingIntentListResponse, LeadResponse, LightInitResponse, ListResponse, MenuResponse, MergeCartInput, Order, OrderSummary, PaymentCollectionAvailability, PaymentLinkCheckoutInput, PaymentLinkCheckoutResponse, PaymentLinkRedemptionStatusResponse, PrintIntakeInput, PrintJob, PrintOptionsSelection, PrintQuoteResponse, PrintSettingsResponse, Product, ProductAsset, PublicConfiguration, PublicConfigurationQuote, PublicConfigurationQuoteInput, PublicPage, PublicPageSummary, PublicPaymentLinkResponse, PublicSubmitReviewInput, PublicWorkspaceInit, type RequiredIdempotency, Review, ReviewSummaryResponse, SavedAddress, SavedAddressInput, SavedAddressResponse, SavedAddressUpdateInput, SendCodeResponse, SiteAccess, SiteDocument, SlotsResponse, StartGivingInput, StartGivingResponse, StartSubscriptionInput, SubscriptionAgreementResponse, SubscriptionCheckoutResponse, SubscriptionListResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, SubscriptionSourceResponse, ThemeResponse, UpdateCartItemInput, type UploadTicket, WaitlistAcknowledgement, WaitlistFormSettings, WaitlistGateStatus, WaitlistSubmission, WaitlistUnsubscription, WaitlistVerification, createChannelClient, isChannelAPIError, isChannelConfigurationError };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-
|
|
1
|
+
export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-CXNWN5M5.js';
|
|
2
2
|
export { CHANNEL_WEBHOOK_EVENT_ID_HEADER, CHANNEL_WEBHOOK_EVENT_TYPES, CHANNEL_WEBHOOK_SIGNATURE_HEADER, CHANNEL_WEBHOOK_TIMESTAMP_HEADER, ChannelConfigurationError, ChannelWebhookVerificationError, DEFAULT_TOLERANCE_SECONDS, isChannelConfigurationError, isChannelWebhookEventType, isChannelWebhookVerificationError, isKnownChannelWebhookEvent, parseChannelWebhookEvent, verifyChannelWebhookSignature } from './chunk-XPO7C3DW.js';
|
package/dist/next.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createChannelClient, ChannelCheckoutStatusParams, ChannelMutationOptions, CreateChannelClientOptions, ChannelVisitor, DashDirectoryListParams, ChannelLeadInput, ChannelSiteResolveParams, ChannelListParams, ChannelProductListParams, ArtworkUploadInput, UploadTicket, ArtworkCompleteInput, ArtworkProofDecision, RequiredIdempotency, ChannelSubscriptionListParams
|
|
2
|
-
import { O as Order, A as AddCartItemInput, C as CartResponse, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistGateStatus, k as WaitlistFormSettings, l as WaitlistSubmission, m as WaitlistAcknowledgement, n as WaitlistVerification, o as WaitlistUnsubscription, F as FileRequestView, p as FileRequestUploadInput, q as FileRequestUploadTicket, r as FileRequestCompleteInput, s as FileRequestReceivedFile, t as FileRequestClosed, D as DashProfileResponse,
|
|
1
|
+
import { createChannelClient, ChannelCheckoutStatusParams, ChannelMutationOptions, CreateChannelClientOptions, ChannelVisitor, DashDirectoryListParams, ChannelLeadInput, ChannelSiteResolveParams, ChannelListParams, ChannelProductListParams, ArtworkUploadInput, UploadTicket, ArtworkCompleteInput, ArtworkProofDecision, RequiredIdempotency, ChannelSubscriptionListParams } from './index.js';
|
|
2
|
+
import { O as Order, A as AddCartItemInput, C as CartResponse, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistGateStatus, k as WaitlistFormSettings, l as WaitlistSubmission, m as WaitlistAcknowledgement, n as WaitlistVerification, o as WaitlistUnsubscription, F as FileRequestView, p as FileRequestUploadInput, q as FileRequestUploadTicket, r as FileRequestCompleteInput, s as FileRequestReceivedFile, t as FileRequestClosed, u as ChannelReceiptResponse, D as DashProfileResponse, v as DashInitResponse, w as DashPlansResponse, L as ListResponse, x as DashDirectoryRegion, y as DashDirectoryEntry, z as DashDirectoryProfileResponse, B as DashLead, E as DashLeadPortalRequestLinkInput, G as DashLeadPortalRequestLinkResponse, H as DashLeadPortalView, I as DashMovingQuoteInput, J as DashMovingQuoteReceipt, K as DashMovingAddressList, M as DashMovingAddress, N as DashMovingDistance, S as SiteAccess, Q as SiteDocument, R as PublicWorkspaceInit, T as LightInitResponse, U as PublicPageSummary, V as PublicPage, X as Product, Y as ProductAsset, Z as SlotsResponse, _ as DownloadResponse, $ as ArtworkMutationReceipt, a0 as PublicConfiguration, a1 as PublicConfigurationQuoteInput, a2 as PublicConfigurationQuote, a3 as CatalogCategory, a4 as CatalogProductsResponse, a5 as CatalogCollection, a6 as CatalogBrand, a7 as CartLookupResponse, a8 as UpdateCartItemInput, a9 as MergeCartInput, aa as Review, ab as ReviewSummaryResponse, ac as PublicSubmitReviewInput, ad as ThemeResponse, ae as MenuResponse, af as BlogPost, ag as BlogPostResponse, ah as GivingEntry, ai as StartGivingInput, aj as StartGivingResponse, ak as SubscriptionPlanListResponse, al as SubscriptionPlanResponse, am as BookingService, an as BookingServiceResponse, ao as BookingAvailabilityParams, ap as BookingAvailabilityResponse, aq as BookingQuoteParams, ar as BookingQuoteResponse, as as CreateBookingHoldInput, at as BookingHoldResponse, au as PublicPaymentLinkResponse, av as PaymentLinkCheckoutInput, aw as PaymentLinkCheckoutResponse, ax as PaymentLinkRedemptionStatusResponse, ay as PrintSettingsResponse, az as PrintOptionsSelection, aA as PrintQuoteResponse, aB as PrintIntakeInput, aC as PrintJob, aD as DiningMenu, aE as CustomerSignupResponse, aF as SendCodeResponse, aG as CustomerSession, aH as CustomerResponse, aI as CustomerAuthSession, aJ as CustomerSecurityActivityPage, aK as OrderSummary, aL as SavedAddress, aM as SavedAddressResponse, aN as SavedAddressInput, aO as SavedAddressUpdateInput, aP as AccountBillingPortalInput, aQ as AccountBillingPortalResponse, aR as StartSubscriptionInput, aS as SubscriptionCheckoutResponse, aT as SubscriptionListResponse, aU as SubscriptionAgreementResponse, aV as SubscriptionSourceResponse, aW as GivingIntentListResponse, aX as LeadResponse } from './types-SZWnEWzJ.js';
|
|
3
3
|
import { ChannelWebhookEventDataMap, ChannelWebhookEvent } from './webhooks.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -304,6 +304,11 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
|
|
|
304
304
|
readonly complete: (input: FileRequestCompleteInput, mutation?: ChannelMutationOptions) => Promise<FileRequestReceivedFile>;
|
|
305
305
|
readonly close: (token: string, mutation?: ChannelMutationOptions) => Promise<FileRequestClosed>;
|
|
306
306
|
};
|
|
307
|
+
readonly receipts: {
|
|
308
|
+
readonly get: (token: string, options?: {
|
|
309
|
+
endUserToken?: string;
|
|
310
|
+
}) => Promise<ChannelReceiptResponse>;
|
|
311
|
+
};
|
|
307
312
|
readonly dash: {
|
|
308
313
|
readonly profile: () => Promise<DashProfileResponse>;
|
|
309
314
|
readonly init: () => Promise<DashInitResponse>;
|
|
@@ -530,23 +535,14 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
|
|
|
530
535
|
}>;
|
|
531
536
|
readonly setDefault: (addressId: string, mutation?: ChannelMutationOptions) => Promise<SavedAddressResponse>;
|
|
532
537
|
};
|
|
533
|
-
readonly
|
|
534
|
-
readonly
|
|
535
|
-
readonly setup: (input: PaymentMethodSetupInput, mutation?: ChannelMutationOptions) => Promise<PaymentMethodSetupResult>;
|
|
536
|
-
readonly confirm: (input: PaymentMethodConfirmInput, mutation?: ChannelMutationOptions) => Promise<SavedPaymentMethod>;
|
|
537
|
-
readonly setDefault: (methodId: string, mutation?: ChannelMutationOptions) => Promise<PaymentMethodMutationResponse>;
|
|
538
|
-
readonly delete: (methodId: string, mutation?: ChannelMutationOptions) => Promise<PaymentMethodMutationResponse>;
|
|
538
|
+
readonly billing: {
|
|
539
|
+
readonly portal: (input: AccountBillingPortalInput) => Promise<AccountBillingPortalResponse>;
|
|
539
540
|
};
|
|
540
541
|
readonly subscriptions: {
|
|
541
|
-
readonly start: (input: StartSubscriptionInput, mutation?: ChannelMutationOptions) => Promise<
|
|
542
|
+
readonly start: (input: StartSubscriptionInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionCheckoutResponse>;
|
|
542
543
|
readonly list: (params?: ChannelSubscriptionListParams) => Promise<SubscriptionListResponse>;
|
|
543
544
|
readonly get: (agreementId: string) => Promise<SubscriptionAgreementResponse>;
|
|
544
545
|
readonly source: (agreementId: string) => Promise<SubscriptionSourceResponse>;
|
|
545
|
-
readonly cancel: (agreementId: string, params?: ChannelSubscriptionCancelParams, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
|
|
546
|
-
readonly portal: (input?: SubscriptionPortalInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionPortalResponse>;
|
|
547
|
-
readonly invoices: {
|
|
548
|
-
readonly list: (agreementId: string, params?: ChannelInvoiceListParams) => Promise<SubscriptionInvoiceListResponse>;
|
|
549
|
-
};
|
|
550
546
|
};
|
|
551
547
|
readonly giving: {
|
|
552
548
|
readonly list: () => Promise<GivingIntentListResponse>;
|
package/dist/next.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CHANNEL_CATALOG_CACHE_TAG, CHANNEL_SITE_CACHE_TAG, cartCookie, createCart, createChannelWebhookRoute, createCustomerSession, createNextChannelClient, defaultChannelCacheTags, safePublishedPath, sessionCookie } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { CHANNEL_CATALOG_CACHE_TAG, CHANNEL_SITE_CACHE_TAG, cartCookie, createCart, createChannelWebhookRoute, createCustomerSession, createNextChannelClient, defaultChannelCacheTags, safePublishedPath, sessionCookie } from './chunk-IDWCPTIC.js';
|
|
2
|
+
import './chunk-CXNWN5M5.js';
|
|
3
3
|
import './chunk-XPO7C3DW.js';
|
package/dist/site.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c2 as SiteRef, bZ as PublicGate, b$ as PublicSiteSignals } from './types-SZWnEWzJ.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Site signals: what a public site serves, decided from the `signals` block
|
|
@@ -968,35 +968,11 @@ type SavedAddressUpdateInput = SavedAddressInput;
|
|
|
968
968
|
interface SavedAddressResponse {
|
|
969
969
|
address: SavedAddress;
|
|
970
970
|
}
|
|
971
|
-
interface
|
|
972
|
-
|
|
973
|
-
provider: string;
|
|
974
|
-
status: string;
|
|
975
|
-
is_default: boolean;
|
|
976
|
-
display_brand?: string;
|
|
977
|
-
display_last4?: string;
|
|
978
|
-
exp_month?: number;
|
|
979
|
-
exp_year?: number;
|
|
980
|
-
created_at: string;
|
|
981
|
-
updated_at: string;
|
|
971
|
+
interface AccountBillingPortalInput {
|
|
972
|
+
return_url: string;
|
|
982
973
|
}
|
|
983
|
-
interface
|
|
984
|
-
|
|
985
|
-
consent: boolean;
|
|
986
|
-
consent_version: "saved_payment_method_v1";
|
|
987
|
-
}
|
|
988
|
-
interface PaymentMethodSetupResult {
|
|
989
|
-
type: string;
|
|
990
|
-
client_secret?: string;
|
|
991
|
-
publishable_key?: string;
|
|
992
|
-
}
|
|
993
|
-
interface PaymentMethodConfirmInput {
|
|
994
|
-
provider: string;
|
|
995
|
-
setup_intent_id?: string;
|
|
996
|
-
payment_method_id?: string;
|
|
997
|
-
}
|
|
998
|
-
interface PaymentMethodMutationResponse {
|
|
999
|
-
success: boolean;
|
|
974
|
+
interface AccountBillingPortalResponse {
|
|
975
|
+
url: string;
|
|
1000
976
|
}
|
|
1001
977
|
interface SubscriptionAgreement {
|
|
1002
978
|
id: string;
|
|
@@ -1017,42 +993,20 @@ interface SubscriptionAgreement {
|
|
|
1017
993
|
interface SubscriptionAgreementResponse {
|
|
1018
994
|
agreement: SubscriptionAgreement;
|
|
1019
995
|
}
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
996
|
+
/**
|
|
997
|
+
* A started subscription (`subscriptions.start`). The first period is paid on
|
|
998
|
+
* Stripe Checkout: send the customer to `checkout_url`; the agreement is not
|
|
999
|
+
* active until that payment settles.
|
|
1000
|
+
*/
|
|
1001
|
+
interface SubscriptionCheckoutResponse {
|
|
1002
|
+
agreement: SubscriptionAgreement;
|
|
1003
|
+
checkout_url: string;
|
|
1025
1004
|
}
|
|
1026
1005
|
interface SubscriptionListResponse {
|
|
1027
1006
|
items: SubscriptionAgreement[];
|
|
1028
1007
|
has_more: boolean;
|
|
1029
1008
|
next_cursor?: string;
|
|
1030
1009
|
}
|
|
1031
|
-
interface SubscriptionInvoice {
|
|
1032
|
-
id: string;
|
|
1033
|
-
workspace_id: string;
|
|
1034
|
-
agreement_id: string;
|
|
1035
|
-
source_kind: string;
|
|
1036
|
-
source_id: string;
|
|
1037
|
-
invoice_number: string;
|
|
1038
|
-
status: string;
|
|
1039
|
-
currency: string;
|
|
1040
|
-
subtotal_cents: number;
|
|
1041
|
-
tax_cents: number;
|
|
1042
|
-
total_cents: number;
|
|
1043
|
-
paid_cents: number;
|
|
1044
|
-
period_start?: string;
|
|
1045
|
-
period_end?: string;
|
|
1046
|
-
paid_at?: string;
|
|
1047
|
-
payment_id?: string;
|
|
1048
|
-
created_at: string;
|
|
1049
|
-
updated_at: string;
|
|
1050
|
-
}
|
|
1051
|
-
interface SubscriptionInvoiceListResponse {
|
|
1052
|
-
items: SubscriptionInvoice[];
|
|
1053
|
-
has_more: boolean;
|
|
1054
|
-
next_cursor?: string;
|
|
1055
|
-
}
|
|
1056
1010
|
interface SubscriptionSourceDisplay {
|
|
1057
1011
|
source_app: string;
|
|
1058
1012
|
source_kind: string;
|
|
@@ -1779,5 +1733,41 @@ interface BookingQuoteParams {
|
|
|
1779
1733
|
/** RFC 3339; omit for a fixed-length service. */
|
|
1780
1734
|
endsAt?: string;
|
|
1781
1735
|
}
|
|
1736
|
+
/** One bought item on a receipt: no addresses, no options. */
|
|
1737
|
+
interface ChannelReceiptLine {
|
|
1738
|
+
name: string;
|
|
1739
|
+
quantity: number;
|
|
1740
|
+
amount_cents: number;
|
|
1741
|
+
/** The item's picture, an absolute http(s) URL, when it has one. */
|
|
1742
|
+
image_url?: string;
|
|
1743
|
+
}
|
|
1744
|
+
/** How a recurring purchase repeats. */
|
|
1745
|
+
interface ChannelReceiptRecurring {
|
|
1746
|
+
interval: string;
|
|
1747
|
+
next_payment_at?: string;
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* A purchase as its receipt link shows it (`channel.receipts.get`). Never
|
|
1751
|
+
* cache or index it. `viewer_owns` is true only when the customer session
|
|
1752
|
+
* sent with the read made the purchase.
|
|
1753
|
+
*/
|
|
1754
|
+
interface ChannelReceipt {
|
|
1755
|
+
kind: "shop_order" | "gift" | "subscription" | "booking" | "payment_link";
|
|
1756
|
+
record_id: string;
|
|
1757
|
+
status: "pending" | "paid" | "failed" | "cancelled";
|
|
1758
|
+
title: string;
|
|
1759
|
+
reference: string;
|
|
1760
|
+
amount_cents: number;
|
|
1761
|
+
currency: string;
|
|
1762
|
+
masked_email: string;
|
|
1763
|
+
viewer_owns: boolean;
|
|
1764
|
+
lines?: ChannelReceiptLine[];
|
|
1765
|
+
paid_at?: string;
|
|
1766
|
+
starts_at?: string;
|
|
1767
|
+
recurring?: ChannelReceiptRecurring;
|
|
1768
|
+
}
|
|
1769
|
+
interface ChannelReceiptResponse {
|
|
1770
|
+
receipt: ChannelReceipt;
|
|
1771
|
+
}
|
|
1782
1772
|
|
|
1783
|
-
export type {
|
|
1773
|
+
export type { ArtworkMutationReceipt as $, AddCartItemInput as A, DashLead as B, CartResponse as C, DashProfileResponse as D, DashLeadPortalRequestLinkInput as E, FileRequestView as F, DashLeadPortalRequestLinkResponse as G, DashLeadPortalView as H, DashMovingQuoteInput as I, DashMovingQuoteReceipt as J, DashMovingAddressList as K, ListResponse as L, DashMovingAddress as M, DashMovingDistance as N, Order as O, PaymentCollectionAvailability as P, SiteDocument as Q, PublicWorkspaceInit as R, SiteAccess as S, LightInitResponse as T, PublicPageSummary as U, PublicPage as V, WaitlistGateStatus as W, Product as X, ProductAsset as Y, SlotsResponse as Z, DownloadResponse as _, CheckoutOptions as a, Slot as a$, PublicConfiguration as a0, PublicConfigurationQuoteInput as a1, PublicConfigurationQuote as a2, CatalogCategory as a3, CatalogProductsResponse as a4, CatalogCollection as a5, CatalogBrand as a6, CartLookupResponse as a7, UpdateCartItemInput as a8, MergeCartInput as a9, PrintQuoteResponse as aA, PrintIntakeInput as aB, PrintJob as aC, DiningMenu as aD, CustomerSignupResponse as aE, SendCodeResponse as aF, CustomerSession as aG, CustomerResponse as aH, CustomerAuthSession as aI, CustomerSecurityActivityPage as aJ, OrderSummary as aK, SavedAddress as aL, SavedAddressResponse as aM, SavedAddressInput as aN, SavedAddressUpdateInput as aO, AccountBillingPortalInput as aP, AccountBillingPortalResponse as aQ, StartSubscriptionInput as aR, SubscriptionCheckoutResponse as aS, SubscriptionListResponse as aT, SubscriptionAgreementResponse as aU, SubscriptionSourceResponse as aV, GivingIntentListResponse as aW, LeadResponse as aX, BeginUploadInput as aY, CompleteUploadInput as aZ, DecisionInput as a_, Review as aa, ReviewSummaryResponse as ab, PublicSubmitReviewInput as ac, ThemeResponse as ad, MenuResponse as ae, BlogPost as af, BlogPostResponse as ag, GivingEntry as ah, StartGivingInput as ai, StartGivingResponse as aj, SubscriptionPlanListResponse as ak, SubscriptionPlanResponse as al, BookingService as am, BookingServiceResponse as an, BookingAvailabilityParams as ao, BookingAvailabilityResponse as ap, BookingQuoteParams as aq, BookingQuoteResponse as ar, CreateBookingHoldInput as as, BookingHoldResponse as at, PublicPaymentLinkResponse as au, PaymentLinkCheckoutInput as av, PaymentLinkCheckoutResponse as aw, PaymentLinkRedemptionStatusResponse as ax, PrintSettingsResponse as ay, PrintOptionsSelection as az, CheckoutStatusResponse as b, PublicSiteSignals as b$, BookingAvailability as b0, BookingCancellationPolicy as b1, BookingCustomerInput as b2, BookingFreeSpan as b3, BookingHold as b4, BookingIntakeQuestion as b5, BookingPriceQuote as b6, BookingServicePricing as b7, BookingTimeRange as b8, CatalogProduct as b9, DiningComboGroup as bA, DiningItemSize as bB, DiningMenuItem as bC, DiningModifier as bD, DiningModifierGroup as bE, DiningOffer as bF, DiningOfferBadge as bG, FileRequestTokenInput as bH, GivingIntent as bI, Menu as bJ, MenuItem as bK, OrderItem as bL, PaymentLinkRedemptionStatus as bM, PaymentMethodOption as bN, PaymentReadiness as bO, PrintBranding as bP, PrintIntakeLimits as bQ, PrintJobFile as bR, PrintPaperSize as bS, PrintPerPagePricing as bT, PrintPriceBreakdown as bU, PrintPriceLine as bV, PrintPricing as bW, PrintPricingOption as bX, ProductLineConfiguration as bY, PublicGate as bZ, PublicPaymentLink as b_, ChannelReceipt as ba, ChannelReceiptLine as bb, ChannelReceiptRecurring as bc, CheckoutAddress as bd, CheckoutStatus as be, ConfigDocument as bf, ConfigQuote as bg, ConfigSelectionRequest as bh, Customer as bi, CustomerSecurityActivity as bj, DashBrandingInfo as bk, DashDirectoryProfile as bl, DashLeadPortalMatch as bm, DashLeadPortalMovingSummary as bn, DashLeadPortalRequest as bo, DashLeadPortalRequestStatus as bp, DashLocaleInfo as bq, DashPlan as br, DashPlanLimitValue as bs, DashPlanPricing as bt, DashPublicPage as bu, DashPublicProfileInfo as bv, DashTenantInfo as bw, DiningAvailability as bx, DiningAvailabilityRule as by, DiningComboChoice as bz, CheckoutCustomerInput as c, ShippingMethodOption as c0, SiteGatedDocument as c1, SiteRef as c2, SiteResolvedDocument as c3, SiteSubject as c4, SubscriptionAgreement as c5, SubscriptionPlanOffer as c6, SubscriptionSourceDisplay as c7, WaitlistAttribution as c8, WorkspaceInfo as c9, CheckoutAddressesInput as d, CheckoutFulfillmentInput as e, CheckoutPayInput as f, CheckoutPayResponse as g, CheckoutCancelInput as h, ChannelPing as i, ChannelGeo as j, WaitlistFormSettings as k, WaitlistSubmission as l, WaitlistAcknowledgement as m, WaitlistVerification as n, WaitlistUnsubscription as o, FileRequestUploadInput as p, FileRequestUploadTicket as q, FileRequestCompleteInput as r, FileRequestReceivedFile as s, FileRequestClosed as t, ChannelReceiptResponse as u, DashInitResponse as v, DashPlansResponse as w, DashDirectoryRegion as x, DashDirectoryEntry as y, DashDirectoryProfileResponse as z };
|