Skip to content

Sapa

Provides the closed Sapa facade from storage, provider registry, and clock layers.

const Sapa: {
layer: Layer.Layer<SapaService, never,
| AccessContributionStore
| CatalogStore
| CheckoutProviderRegistry
| CheckoutStore
| Clock
| CreditLotStore
| CustomerStore
| FulfillmentObligationStore
| IdGenerator
| LicenseCredentialStore
| MeteredInvoiceStore
| MeteredUsageStore
| OfferDefinitionStore
| PaymentRefundStore
| PaymentSettlementStore
| SapaInstallation
| SeatAssignmentStore
| SeatCapacityStore
| SnapshotProtection
| SubscriptionHistoryStore>;
makeConfigured: typeof makeConfiguredSapaLayer;
make: (capabilityManifestLayer, merchantAccessPolicyLayer?) => Layer.Layer<SapaService, never,
| AccessContributionStore
| CatalogStore
| CheckoutProviderRegistry
| CheckoutStore
| Clock
| CreditLotStore
| CustomerStore
| FulfillmentObligationStore
| IdGenerator
| LicenseCredentialStore
| MeteredInvoiceStore
| MeteredUsageStore
| OfferDefinitionStore
| PaymentRefundStore
| PaymentSettlementStore
| SapaInstallation
| SeatAssignmentStore
| SeatCapacityStore
| SnapshotProtection
| SubscriptionHistoryStore>;
makeWithDownloads: (capabilityManifestLayer, downloadAssetLayer, downloadPolicy, merchantAccessPolicyLayer?) => Layer.Layer<SapaService, never,
| AccessContributionStore
| CatalogStore
| CheckoutProviderRegistry
| CheckoutStore
| Clock
| CreditLotStore
| CustomerStore
| FulfillmentObligationStore
| IdGenerator
| LicenseCredentialStore
| MeteredInvoiceStore
| MeteredUsageStore
| OfferDefinitionStore
| PaymentRefundStore
| PaymentSettlementStore
| SapaInstallation
| SeatAssignmentStore
| SeatCapacityStore
| SnapshotProtection
| SubscriptionHistoryStore>;
makeWithLicensing: (capabilityManifestLayer, cryptoLayer, licensePolicy, merchantAccessPolicyLayer?) => Layer.Layer<SapaService, never,
| AccessContributionStore
| CatalogStore
| CheckoutProviderRegistry
| CheckoutStore
| Clock
| CreditLotStore
| CustomerStore
| FulfillmentObligationStore
| IdGenerator
| LicenseCredentialStore
| MeteredInvoiceStore
| MeteredUsageStore
| OfferDefinitionStore
| PaymentRefundStore
| PaymentSettlementStore
| SapaInstallation
| SeatAssignmentStore
| SeatCapacityStore
| SnapshotProtection
| SubscriptionHistoryStore>;
};
layer: Layer.Layer<SapaService, never,
| AccessContributionStore
| CatalogStore
| CheckoutProviderRegistry
| CheckoutStore
| Clock
| CreditLotStore
| CustomerStore
| FulfillmentObligationStore
| IdGenerator
| LicenseCredentialStore
| MeteredInvoiceStore
| MeteredUsageStore
| OfferDefinitionStore
| PaymentRefundStore
| PaymentSettlementStore
| SapaInstallation
| SeatAssignmentStore
| SeatCapacityStore
| SnapshotProtection
| SubscriptionHistoryStore>;
makeConfigured: typeof makeConfiguredSapaLayer;

Builds the facade from exact request-scoped capability composition.

make: (capabilityManifestLayer, merchantAccessPolicyLayer?) => Layer.Layer<SapaService, never,
| AccessContributionStore
| CatalogStore
| CheckoutProviderRegistry
| CheckoutStore
| Clock
| CreditLotStore
| CustomerStore
| FulfillmentObligationStore
| IdGenerator
| LicenseCredentialStore
| MeteredInvoiceStore
| MeteredUsageStore
| OfferDefinitionStore
| PaymentRefundStore
| PaymentSettlementStore
| SapaInstallation
| SeatAssignmentStore
| SeatCapacityStore
| SnapshotProtection
| SubscriptionHistoryStore>;

Builds the facade from a trusted manifest Layer derived from composed capabilities.

Layer.Layer<OfferCapabilityManifest>

Layer.Layer<MerchantAccessPolicyRegistry>

Layer.Layer<SapaService, never, | AccessContributionStore | CatalogStore | CheckoutProviderRegistry | CheckoutStore | Clock | CreditLotStore | CustomerStore | FulfillmentObligationStore | IdGenerator | LicenseCredentialStore | MeteredInvoiceStore | MeteredUsageStore | OfferDefinitionStore | PaymentRefundStore | PaymentSettlementStore | SapaInstallation | SeatAssignmentStore | SeatCapacityStore | SnapshotProtection | SubscriptionHistoryStore>

makeWithDownloads: (capabilityManifestLayer, downloadAssetLayer, downloadPolicy, merchantAccessPolicyLayer?) => Layer.Layer<SapaService, never,
| AccessContributionStore
| CatalogStore
| CheckoutProviderRegistry
| CheckoutStore
| Clock
| CreditLotStore
| CustomerStore
| FulfillmentObligationStore
| IdGenerator
| LicenseCredentialStore
| MeteredInvoiceStore
| MeteredUsageStore
| OfferDefinitionStore
| PaymentRefundStore
| PaymentSettlementStore
| SapaInstallation
| SeatAssignmentStore
| SeatCapacityStore
| SnapshotProtection
| SubscriptionHistoryStore>;

Builds the facade with exact request-scoped download asset implementations.

Layer.Layer<OfferCapabilityManifest>

Layer.Layer<DownloadAssetRegistry>

DownloadAuthorizationPolicy

Layer.Layer<MerchantAccessPolicyRegistry>

Layer.Layer<SapaService, never, | AccessContributionStore | CatalogStore | CheckoutProviderRegistry | CheckoutStore | Clock | CreditLotStore | CustomerStore | FulfillmentObligationStore | IdGenerator | LicenseCredentialStore | MeteredInvoiceStore | MeteredUsageStore | OfferDefinitionStore | PaymentRefundStore | PaymentSettlementStore | SapaInstallation | SeatAssignmentStore | SeatCapacityStore | SnapshotProtection | SubscriptionHistoryStore>

makeWithLicensing: (capabilityManifestLayer, cryptoLayer, licensePolicy, merchantAccessPolicyLayer?) => Layer.Layer<SapaService, never,
| AccessContributionStore
| CatalogStore
| CheckoutProviderRegistry
| CheckoutStore
| Clock
| CreditLotStore
| CustomerStore
| FulfillmentObligationStore
| IdGenerator
| LicenseCredentialStore
| MeteredInvoiceStore
| MeteredUsageStore
| OfferDefinitionStore
| PaymentRefundStore
| PaymentSettlementStore
| SapaInstallation
| SeatAssignmentStore
| SeatCapacityStore
| SnapshotProtection
| SubscriptionHistoryStore>;

Builds the facade with request-scoped cryptographic license operations.

Layer.Layer<OfferCapabilityManifest>

Layer.Layer<Crypto>

LicenseIssuancePolicy

Layer.Layer<MerchantAccessPolicyRegistry>

Layer.Layer<SapaService, never, | AccessContributionStore | CatalogStore | CheckoutProviderRegistry | CheckoutStore | Clock | CreditLotStore | CustomerStore | FulfillmentObligationStore | IdGenerator | LicenseCredentialStore | MeteredInvoiceStore | MeteredUsageStore | OfferDefinitionStore | PaymentRefundStore | PaymentSettlementStore | SapaInstallation | SeatAssignmentStore | SeatCapacityStore | SnapshotProtection | SubscriptionHistoryStore>