@fairmint/open-captable-protocol-daml-js 0.2.36 → 0.2.37
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/README.md +1 -1
- package/generated/paymentStreams-factory-contract-id.json +22 -0
- package/generated/{subscriptions-factory-contract-id.json.d.ts → paymentStreams-factory-contract-id.json.d.ts} +2 -2
- package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.d.ts +225 -0
- package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.js +354 -0
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/module.d.ts +18 -18
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/module.js +27 -27
- package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.d.ts +52 -0
- package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.js +74 -0
- package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.d.ts +103 -0
- package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.js +161 -0
- package/lib/CantonPayments/PaymentStream/Types/ActivePaymentStreamData/module.d.ts +25 -0
- package/lib/CantonPayments/PaymentStream/Types/ActivePaymentStreamData/module.js +32 -0
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/module.d.ts +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/module.js +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/module.d.ts +3 -3
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/module.js +3 -3
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/module.d.ts +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/module.js +3 -3
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/module.d.ts +1 -1
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/module.d.ts +4 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/module.js +4 -2
- package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStream}/module.d.ts +8 -8
- package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStream}/module.js +6 -6
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/module.d.ts +4 -4
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/module.js +2 -2
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/module.d.ts +10 -10
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/module.js +8 -8
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposal → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/module.d.ts +11 -11
- package/lib/CantonPayments/PaymentStream/Types/PaymentStreamProposal/module.js +42 -0
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposalChanges → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/module.d.ts +11 -11
- package/lib/CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges/module.js +42 -0
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/PaymentStreamStats}/module.d.ts +6 -6
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/PaymentStreamStats}/module.js +4 -4
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/PaymentStreamTime}/module.d.ts +4 -4
- package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/PaymentStreamTime}/module.js +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessFreeTrialResult/module.d.ts +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessFreeTrialResult/module.js +2 -2
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessorContext/module.d.ts +1 -1
- package/lib/CantonPayments/PaymentStream/Types/index.d.ts +30 -0
- package/lib/CantonPayments/PaymentStream/Types/index.js +37 -0
- package/lib/CantonPayments/PaymentStream/index.d.ts +10 -0
- package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/index.js +6 -6
- package/lib/CantonPayments/index.d.ts +2 -0
- package/lib/CantonPayments/index.js +9 -0
- package/lib/Fairmint/OpenCapTable/ConvertibleIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Document/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationExercise/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/EquityCompensationIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Issuer/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/IssuerAuthorizedSharesAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Stakeholder/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockCancellation/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClass/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockClassAuthorizedSharesAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockIssuance/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockLegendTemplate/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlan/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/StockPlanPoolAdjustment/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/Valuation/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/VestingTerms/module.js +1 -1
- package/lib/Fairmint/OpenCapTable/WarrantIssuance/module.js +1 -1
- package/lib/Fairmint/index.d.ts +0 -1
- package/lib/Fairmint/index.js +0 -2
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -0
- package/package.json +12 -12
- package/generated/subscriptions-factory-contract-id.json +0 -22
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.d.ts +0 -224
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +0 -353
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.d.ts +0 -103
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +0 -161
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +0 -52
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +0 -74
- package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.d.ts +0 -25
- package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.js +0 -32
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.js +0 -42
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.js +0 -42
- package/lib/Fairmint/Subscriptions/Types/index.d.ts +0 -30
- package/lib/Fairmint/Subscriptions/Types/index.js +0 -37
- package/lib/Fairmint/Subscriptions/index.d.ts +0 -10
- /package/lib/{Fairmint/Subscriptions/ActiveSubscription → CantonPayments/PaymentStream/ActivePaymentStream}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/ActiveSubscription → CantonPayments/PaymentStream/ActivePaymentStream}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/PartyMigrationProposal/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/ProposedSubscription → CantonPayments/PaymentStream/PaymentStreamFactory}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/ProposedSubscription → CantonPayments/PaymentStream/PaymentStreamFactory}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/SubscriptionFactory → CantonPayments/PaymentStream/ProposedPaymentStream}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/SubscriptionFactory → CantonPayments/PaymentStream/ProposedPaymentStream}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ActiveSubscriptionData → CantonPayments/PaymentStream/Types/ActivePaymentStreamData}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ActiveSubscriptionData → CantonPayments/PaymentStream/Types/ActivePaymentStreamData}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/Approvals/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/LockFundsInput/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PartyRole/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentContext/module.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/PaymentResult/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ProcessFreeTrialResult → CantonPayments/PaymentStream/Types/PaymentStream}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ProcessFreeTrialResult → CantonPayments/PaymentStream/Types/PaymentStream}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ProcessorContext → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/ProcessorContext → CantonPayments/PaymentStream/Types/PaymentStreamAmount}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/Subscription → CantonPayments/PaymentStream/Types/PaymentStreamChanges}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionAmount → CantonPayments/PaymentStream/Types/PaymentStreamProposal}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionChanges → CantonPayments/PaymentStream/Types/PaymentStreamProposalChanges}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposal → CantonPayments/PaymentStream/Types/PaymentStreamStats}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposal → CantonPayments/PaymentStream/Types/PaymentStreamStats}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposalChanges → CantonPayments/PaymentStream/Types/PaymentStreamTime}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionProposalChanges → CantonPayments/PaymentStream/Types/PaymentStreamTime}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/ProcessFreeTrialResult}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionStats → CantonPayments/PaymentStream/Types/ProcessFreeTrialResult}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/ProcessorContext}/index.d.ts +0 -0
- /package/lib/{Fairmint/Subscriptions/Types/SubscriptionTime → CantonPayments/PaymentStream/Types/ProcessorContext}/index.js +0 -0
- /package/lib/{Fairmint/Subscriptions → CantonPayments/PaymentStream}/Types/ProcessorContext/module.js +0 -0
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
// Generated from Fairmint/Subscriptions/ActiveSubscription.daml
|
|
2
|
-
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
-
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
-
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
-
import * as damlTypes from '@daml/types';
|
|
7
|
-
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
8
|
-
import * as damlLedger from '@daml/ledger';
|
|
9
|
-
|
|
10
|
-
import * as pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 from '../../..';
|
|
11
|
-
import * as pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 from '../../../DA/Types';
|
|
12
|
-
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
13
|
-
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../DA/Time/Types';
|
|
14
|
-
|
|
15
|
-
import * as Fairmint_Subscriptions_Types_Approvals from '../../../Fairmint/Subscriptions/Types/Approvals/module';
|
|
16
|
-
import * as Fairmint_Subscriptions_Types_LockFundsInput from '../../../Fairmint/Subscriptions/Types/LockFundsInput/module';
|
|
17
|
-
import * as Fairmint_Subscriptions_Types_PartyRole from '../../../Fairmint/Subscriptions/Types/PartyRole/module';
|
|
18
|
-
import * as Fairmint_Subscriptions_Types_PaymentContext from '../../../Fairmint/Subscriptions/Types/PaymentContext/module';
|
|
19
|
-
import * as Fairmint_Subscriptions_Types_PaymentResult from '../../../Fairmint/Subscriptions/Types/PaymentResult/module';
|
|
20
|
-
import * as Fairmint_Subscriptions_Types_ProcessFreeTrialResult from '../../../Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module';
|
|
21
|
-
import * as Fairmint_Subscriptions_Types_ProcessorContext from '../../../Fairmint/Subscriptions/Types/ProcessorContext/module';
|
|
22
|
-
import * as Fairmint_Subscriptions_Types_Subscription from '../../../Fairmint/Subscriptions/Types/Subscription/module';
|
|
23
|
-
import * as Fairmint_Subscriptions_Types_SubscriptionChanges from '../../../Fairmint/Subscriptions/Types/SubscriptionChanges/module';
|
|
24
|
-
import * as Fairmint_Subscriptions_Types_SubscriptionStats from '../../../Fairmint/Subscriptions/Types/SubscriptionStats/module';
|
|
25
|
-
|
|
26
|
-
export declare type SubscriptionChangeProposal_Reject = {
|
|
27
|
-
actor: damlTypes.Party;
|
|
28
|
-
description: damlTypes.Optional<string>;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export declare const SubscriptionChangeProposal_Reject:
|
|
32
|
-
damlTypes.Serializable<SubscriptionChangeProposal_Reject> & {
|
|
33
|
-
}
|
|
34
|
-
;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export declare type SubscriptionChangeProposal_Apply = {
|
|
38
|
-
actor: damlTypes.Party;
|
|
39
|
-
activeSubscriptionCid: damlTypes.ContractId<ActiveSubscription>;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export declare const SubscriptionChangeProposal_Apply:
|
|
43
|
-
damlTypes.Serializable<SubscriptionChangeProposal_Apply> & {
|
|
44
|
-
}
|
|
45
|
-
;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export declare type SubscriptionChangeProposal_Approve = {
|
|
49
|
-
actor: damlTypes.Party;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export declare const SubscriptionChangeProposal_Approve:
|
|
53
|
-
damlTypes.Serializable<SubscriptionChangeProposal_Approve> & {
|
|
54
|
-
}
|
|
55
|
-
;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export declare type SubscriptionChangeProposal = {
|
|
59
|
-
subscription: Fairmint_Subscriptions_Types_Subscription.Subscription;
|
|
60
|
-
processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext;
|
|
61
|
-
subscriptionChanges: Fairmint_Subscriptions_Types_SubscriptionChanges.SubscriptionChanges;
|
|
62
|
-
approvals: Fairmint_Subscriptions_Types_Approvals.Approvals;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export declare interface SubscriptionChangeProposalInterface {
|
|
66
|
-
SubscriptionChangeProposal_Approve: damlTypes.Choice<SubscriptionChangeProposal, SubscriptionChangeProposal_Approve, damlTypes.ContractId<SubscriptionChangeProposal>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionChangeProposal, undefined>>;
|
|
67
|
-
SubscriptionChangeProposal_Apply: damlTypes.Choice<SubscriptionChangeProposal, SubscriptionChangeProposal_Apply, damlTypes.ContractId<ActiveSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionChangeProposal, undefined>>;
|
|
68
|
-
SubscriptionChangeProposal_Reject: damlTypes.Choice<SubscriptionChangeProposal, SubscriptionChangeProposal_Reject, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionChangeProposal, undefined>>;
|
|
69
|
-
Archive: damlTypes.Choice<SubscriptionChangeProposal, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<SubscriptionChangeProposal, undefined>>;
|
|
70
|
-
}
|
|
71
|
-
export declare const SubscriptionChangeProposal:
|
|
72
|
-
damlTypes.Template<SubscriptionChangeProposal, undefined, '#Subscriptions-v09:Fairmint.Subscriptions.ActiveSubscription:SubscriptionChangeProposal'> &
|
|
73
|
-
damlTypes.ToInterface<SubscriptionChangeProposal, never> &
|
|
74
|
-
SubscriptionChangeProposalInterface;
|
|
75
|
-
|
|
76
|
-
export declare namespace SubscriptionChangeProposal {
|
|
77
|
-
export type CreateEvent = damlLedger.CreateEvent<SubscriptionChangeProposal, undefined, typeof SubscriptionChangeProposal.templateId>
|
|
78
|
-
export type ArchiveEvent = damlLedger.ArchiveEvent<SubscriptionChangeProposal, typeof SubscriptionChangeProposal.templateId>
|
|
79
|
-
export type Event = damlLedger.Event<SubscriptionChangeProposal, undefined, typeof SubscriptionChangeProposal.templateId>
|
|
80
|
-
export type QueryResult = damlLedger.QueryResult<SubscriptionChangeProposal, undefined, typeof SubscriptionChangeProposal.templateId>
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
export declare type ActiveSubscription_ChangeParty = {
|
|
86
|
-
partyType: Fairmint_Subscriptions_Types_PartyRole.PartyRole;
|
|
87
|
-
oldParty: damlTypes.Party;
|
|
88
|
-
newParty: damlTypes.Party;
|
|
89
|
-
changePartyPaymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export declare const ActiveSubscription_ChangeParty:
|
|
93
|
-
damlTypes.Serializable<ActiveSubscription_ChangeParty> & {
|
|
94
|
-
}
|
|
95
|
-
;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
export declare type ActiveSubscription_ArchiveInactiveSubscription = {
|
|
99
|
-
actor: damlTypes.Party;
|
|
100
|
-
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export declare const ActiveSubscription_ArchiveInactiveSubscription:
|
|
104
|
-
damlTypes.Serializable<ActiveSubscription_ArchiveInactiveSubscription> & {
|
|
105
|
-
}
|
|
106
|
-
;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
export declare type ActiveSubscription_WithdrawFunds = {
|
|
110
|
-
amountToKeepLocked: damlTypes.Numeric;
|
|
111
|
-
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export declare const ActiveSubscription_WithdrawFunds:
|
|
115
|
-
damlTypes.Serializable<ActiveSubscription_WithdrawFunds> & {
|
|
116
|
-
}
|
|
117
|
-
;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
export declare type ActiveSubscription_AddFunds = {
|
|
121
|
-
actor: damlTypes.Party;
|
|
122
|
-
lockFundsInput: Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput;
|
|
123
|
-
description: damlTypes.Optional<string>;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
export declare const ActiveSubscription_AddFunds:
|
|
127
|
-
damlTypes.Serializable<ActiveSubscription_AddFunds> & {
|
|
128
|
-
}
|
|
129
|
-
;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
export declare type ActiveSubscription_Refund = {
|
|
133
|
-
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
134
|
-
recipientAmuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
|
|
135
|
-
recipientFeaturedAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
export declare const ActiveSubscription_Refund:
|
|
139
|
-
damlTypes.Serializable<ActiveSubscription_Refund> & {
|
|
140
|
-
}
|
|
141
|
-
;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
export declare type ActiveSubscription_Cancel = {
|
|
145
|
-
actor: damlTypes.Party;
|
|
146
|
-
disregardAvailablePaidPeriod: boolean;
|
|
147
|
-
description: damlTypes.Optional<string>;
|
|
148
|
-
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
export declare const ActiveSubscription_Cancel:
|
|
152
|
-
damlTypes.Serializable<ActiveSubscription_Cancel> & {
|
|
153
|
-
}
|
|
154
|
-
;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
export declare type ActiveSubscription_ProposeChanges = {
|
|
158
|
-
actor: damlTypes.Party;
|
|
159
|
-
subscriptionChanges: Fairmint_Subscriptions_Types_SubscriptionChanges.SubscriptionChanges;
|
|
160
|
-
description: damlTypes.Optional<string>;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
export declare const ActiveSubscription_ProposeChanges:
|
|
164
|
-
damlTypes.Serializable<ActiveSubscription_ProposeChanges> & {
|
|
165
|
-
}
|
|
166
|
-
;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
export declare type ActiveSubscription_ProcessPayment = {
|
|
170
|
-
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
|
|
171
|
-
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext;
|
|
172
|
-
skipProcessorPayment: boolean;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
export declare const ActiveSubscription_ProcessPayment:
|
|
176
|
-
damlTypes.Serializable<ActiveSubscription_ProcessPayment> & {
|
|
177
|
-
}
|
|
178
|
-
;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
export declare type ActiveSubscription_ProcessFreeTrial = {
|
|
182
|
-
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
|
|
183
|
-
featuredAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
export declare const ActiveSubscription_ProcessFreeTrial:
|
|
187
|
-
damlTypes.Serializable<ActiveSubscription_ProcessFreeTrial> & {
|
|
188
|
-
}
|
|
189
|
-
;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
export declare type ActiveSubscription = {
|
|
193
|
-
subscription: Fairmint_Subscriptions_Types_Subscription.Subscription;
|
|
194
|
-
processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext;
|
|
195
|
-
processedAndPaidUntil: damlTypes.Time;
|
|
196
|
-
lockedAmuletCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.LockedAmulet>;
|
|
197
|
-
stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats;
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
export declare interface ActiveSubscriptionInterface {
|
|
201
|
-
ActiveSubscription_ProcessFreeTrial: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ProcessFreeTrial, Fairmint_Subscriptions_Types_ProcessFreeTrialResult.ProcessFreeTrialResult<ActiveSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
202
|
-
ActiveSubscription_ProcessPayment: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ProcessPayment, Fairmint_Subscriptions_Types_PaymentResult.ProcessPaymentResult<ActiveSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
203
|
-
ActiveSubscription_ProposeChanges: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ProposeChanges, damlTypes.ContractId<SubscriptionChangeProposal>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
204
|
-
ActiveSubscription_Cancel: damlTypes.Choice<ActiveSubscription, ActiveSubscription_Cancel, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.Optional<damlTypes.ContractId<ActiveSubscription>>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
205
|
-
ActiveSubscription_Refund: damlTypes.Choice<ActiveSubscription, ActiveSubscription_Refund, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
206
|
-
ActiveSubscription_AddFunds: damlTypes.Choice<ActiveSubscription, ActiveSubscription_AddFunds, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<ActiveSubscription>, damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
207
|
-
ActiveSubscription_WithdrawFunds: damlTypes.Choice<ActiveSubscription, ActiveSubscription_WithdrawFunds, pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2<damlTypes.ContractId<ActiveSubscription>, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
208
|
-
ActiveSubscription_ArchiveInactiveSubscription: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ArchiveInactiveSubscription, damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
209
|
-
ActiveSubscription_ChangeParty: damlTypes.Choice<ActiveSubscription, ActiveSubscription_ChangeParty, damlTypes.ContractId<ActiveSubscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
210
|
-
Archive: damlTypes.Choice<ActiveSubscription, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<ActiveSubscription, undefined>>;
|
|
211
|
-
}
|
|
212
|
-
export declare const ActiveSubscription:
|
|
213
|
-
damlTypes.Template<ActiveSubscription, undefined, '#Subscriptions-v09:Fairmint.Subscriptions.ActiveSubscription:ActiveSubscription'> &
|
|
214
|
-
damlTypes.ToInterface<ActiveSubscription, never> &
|
|
215
|
-
ActiveSubscriptionInterface;
|
|
216
|
-
|
|
217
|
-
export declare namespace ActiveSubscription {
|
|
218
|
-
export type CreateEvent = damlLedger.CreateEvent<ActiveSubscription, undefined, typeof ActiveSubscription.templateId>
|
|
219
|
-
export type ArchiveEvent = damlLedger.ArchiveEvent<ActiveSubscription, typeof ActiveSubscription.templateId>
|
|
220
|
-
export type Event = damlLedger.Event<ActiveSubscription, undefined, typeof ActiveSubscription.templateId>
|
|
221
|
-
export type QueryResult = damlLedger.QueryResult<ActiveSubscription, undefined, typeof ActiveSubscription.templateId>
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
-
function __export(m) {
|
|
4
|
-
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
-
}
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
-
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
-
var damlTypes = require('@daml/types');
|
|
12
|
-
/* eslint-disable-next-line no-unused-vars */
|
|
13
|
-
var damlLedger = require('@daml/ledger');
|
|
14
|
-
|
|
15
|
-
var pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = require('../../..');
|
|
16
|
-
var pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('../../../DA/Types');
|
|
17
|
-
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
18
|
-
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../DA/Time/Types');
|
|
19
|
-
|
|
20
|
-
var Fairmint_Subscriptions_Types_Approvals = require('../../../Fairmint/Subscriptions/Types/Approvals/module');
|
|
21
|
-
var Fairmint_Subscriptions_Types_LockFundsInput = require('../../../Fairmint/Subscriptions/Types/LockFundsInput/module');
|
|
22
|
-
var Fairmint_Subscriptions_Types_PartyRole = require('../../../Fairmint/Subscriptions/Types/PartyRole/module');
|
|
23
|
-
var Fairmint_Subscriptions_Types_PaymentContext = require('../../../Fairmint/Subscriptions/Types/PaymentContext/module');
|
|
24
|
-
var Fairmint_Subscriptions_Types_PaymentResult = require('../../../Fairmint/Subscriptions/Types/PaymentResult/module');
|
|
25
|
-
var Fairmint_Subscriptions_Types_ProcessFreeTrialResult = require('../../../Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module');
|
|
26
|
-
var Fairmint_Subscriptions_Types_ProcessorContext = require('../../../Fairmint/Subscriptions/Types/ProcessorContext/module');
|
|
27
|
-
var Fairmint_Subscriptions_Types_Subscription = require('../../../Fairmint/Subscriptions/Types/Subscription/module');
|
|
28
|
-
var Fairmint_Subscriptions_Types_SubscriptionChanges = require('../../../Fairmint/Subscriptions/Types/SubscriptionChanges/module');
|
|
29
|
-
var Fairmint_Subscriptions_Types_SubscriptionStats = require('../../../Fairmint/Subscriptions/Types/SubscriptionStats/module');
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
exports.SubscriptionChangeProposal_Reject = {
|
|
33
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
34
|
-
encode: function (__typed__) {
|
|
35
|
-
return {
|
|
36
|
-
actor: damlTypes.Party.encode(__typed__.actor),
|
|
37
|
-
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
,
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
exports.SubscriptionChangeProposal_Apply = {
|
|
46
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, activeSubscriptionCid: damlTypes.ContractId(exports.ActiveSubscription).decoder, }); }),
|
|
47
|
-
encode: function (__typed__) {
|
|
48
|
-
return {
|
|
49
|
-
actor: damlTypes.Party.encode(__typed__.actor),
|
|
50
|
-
activeSubscriptionCid: damlTypes.ContractId(exports.ActiveSubscription).encode(__typed__.activeSubscriptionCid),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
,
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
exports.SubscriptionChangeProposal_Approve = {
|
|
59
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, }); }),
|
|
60
|
-
encode: function (__typed__) {
|
|
61
|
-
return {
|
|
62
|
-
actor: damlTypes.Party.encode(__typed__.actor),
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
,
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
exports.SubscriptionChangeProposal = damlTypes.assembleTemplate(
|
|
71
|
-
{
|
|
72
|
-
templateId: '#Subscriptions-v09:Fairmint.Subscriptions.ActiveSubscription:SubscriptionChangeProposal',
|
|
73
|
-
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
74
|
-
keyEncode: function () { throw 'EncodeError'; },
|
|
75
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscription: Fairmint_Subscriptions_Types_Subscription.Subscription.decoder, processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, subscriptionChanges: Fairmint_Subscriptions_Types_SubscriptionChanges.SubscriptionChanges.decoder, approvals: Fairmint_Subscriptions_Types_Approvals.Approvals.decoder, }); }),
|
|
76
|
-
encode: function (__typed__) {
|
|
77
|
-
return {
|
|
78
|
-
subscription: Fairmint_Subscriptions_Types_Subscription.Subscription.encode(__typed__.subscription),
|
|
79
|
-
processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
|
|
80
|
-
subscriptionChanges: Fairmint_Subscriptions_Types_SubscriptionChanges.SubscriptionChanges.encode(__typed__.subscriptionChanges),
|
|
81
|
-
approvals: Fairmint_Subscriptions_Types_Approvals.Approvals.encode(__typed__.approvals),
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
,
|
|
85
|
-
SubscriptionChangeProposal_Approve: {
|
|
86
|
-
template: function () { return exports.SubscriptionChangeProposal; },
|
|
87
|
-
choiceName: 'SubscriptionChangeProposal_Approve',
|
|
88
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.SubscriptionChangeProposal_Approve.decoder; }),
|
|
89
|
-
argumentEncode: function (__typed__) { return exports.SubscriptionChangeProposal_Approve.encode(__typed__); },
|
|
90
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.SubscriptionChangeProposal).decoder; }),
|
|
91
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.SubscriptionChangeProposal).encode(__typed__); },
|
|
92
|
-
},
|
|
93
|
-
SubscriptionChangeProposal_Apply: {
|
|
94
|
-
template: function () { return exports.SubscriptionChangeProposal; },
|
|
95
|
-
choiceName: 'SubscriptionChangeProposal_Apply',
|
|
96
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.SubscriptionChangeProposal_Apply.decoder; }),
|
|
97
|
-
argumentEncode: function (__typed__) { return exports.SubscriptionChangeProposal_Apply.encode(__typed__); },
|
|
98
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ActiveSubscription).decoder; }),
|
|
99
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ActiveSubscription).encode(__typed__); },
|
|
100
|
-
},
|
|
101
|
-
SubscriptionChangeProposal_Reject: {
|
|
102
|
-
template: function () { return exports.SubscriptionChangeProposal; },
|
|
103
|
-
choiceName: 'SubscriptionChangeProposal_Reject',
|
|
104
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.SubscriptionChangeProposal_Reject.decoder; }),
|
|
105
|
-
argumentEncode: function (__typed__) { return exports.SubscriptionChangeProposal_Reject.encode(__typed__); },
|
|
106
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
107
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
108
|
-
},
|
|
109
|
-
Archive: {
|
|
110
|
-
template: function () { return exports.SubscriptionChangeProposal; },
|
|
111
|
-
choiceName: 'Archive',
|
|
112
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
113
|
-
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
114
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
115
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
116
|
-
},
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
damlTypes.registerTemplate(exports.SubscriptionChangeProposal, ['813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825', '#Subscriptions-v09']);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
exports.ActiveSubscription_ChangeParty = {
|
|
127
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({partyType: Fairmint_Subscriptions_Types_PartyRole.PartyRole.decoder, oldParty: damlTypes.Party.decoder, newParty: damlTypes.Party.decoder, changePartyPaymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, }); }),
|
|
128
|
-
encode: function (__typed__) {
|
|
129
|
-
return {
|
|
130
|
-
partyType: Fairmint_Subscriptions_Types_PartyRole.PartyRole.encode(__typed__.partyType),
|
|
131
|
-
oldParty: damlTypes.Party.encode(__typed__.oldParty),
|
|
132
|
-
newParty: damlTypes.Party.encode(__typed__.newParty),
|
|
133
|
-
changePartyPaymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.changePartyPaymentContext),
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
,
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
exports.ActiveSubscription_ArchiveInactiveSubscription = {
|
|
142
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, }); }),
|
|
143
|
-
encode: function (__typed__) {
|
|
144
|
-
return {
|
|
145
|
-
actor: damlTypes.Party.encode(__typed__.actor),
|
|
146
|
-
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
,
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
exports.ActiveSubscription_WithdrawFunds = {
|
|
155
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({amountToKeepLocked: damlTypes.Numeric(10).decoder, paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, }); }),
|
|
156
|
-
encode: function (__typed__) {
|
|
157
|
-
return {
|
|
158
|
-
amountToKeepLocked: damlTypes.Numeric(10).encode(__typed__.amountToKeepLocked),
|
|
159
|
-
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
,
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
exports.ActiveSubscription_AddFunds = {
|
|
168
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, lockFundsInput: Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
169
|
-
encode: function (__typed__) {
|
|
170
|
-
return {
|
|
171
|
-
actor: damlTypes.Party.encode(__typed__.actor),
|
|
172
|
-
lockFundsInput: Fairmint_Subscriptions_Types_LockFundsInput.LockFundsInput.encode(__typed__.lockFundsInput),
|
|
173
|
-
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
,
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
exports.ActiveSubscription_Refund = {
|
|
182
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, recipientAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, recipientFeaturedAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
|
|
183
|
-
encode: function (__typed__) {
|
|
184
|
-
return {
|
|
185
|
-
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
186
|
-
recipientAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__.recipientAmuletInputs),
|
|
187
|
-
recipientFeaturedAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.recipientFeaturedAppRight),
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
,
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
exports.ActiveSubscription_Cancel = {
|
|
196
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, disregardAvailablePaidPeriod: damlTypes.Bool.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, }); }),
|
|
197
|
-
encode: function (__typed__) {
|
|
198
|
-
return {
|
|
199
|
-
actor: damlTypes.Party.encode(__typed__.actor),
|
|
200
|
-
disregardAvailablePaidPeriod: damlTypes.Bool.encode(__typed__.disregardAvailablePaidPeriod),
|
|
201
|
-
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
202
|
-
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
,
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
exports.ActiveSubscription_ProposeChanges = {
|
|
211
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, subscriptionChanges: Fairmint_Subscriptions_Types_SubscriptionChanges.SubscriptionChanges.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
212
|
-
encode: function (__typed__) {
|
|
213
|
-
return {
|
|
214
|
-
actor: damlTypes.Party.encode(__typed__.actor),
|
|
215
|
-
subscriptionChanges: Fairmint_Subscriptions_Types_SubscriptionChanges.SubscriptionChanges.encode(__typed__.subscriptionChanges),
|
|
216
|
-
description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
,
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
exports.ActiveSubscription_ProcessPayment = {
|
|
225
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.decoder, skipProcessorPayment: damlTypes.Bool.decoder, }); }),
|
|
226
|
-
encode: function (__typed__) {
|
|
227
|
-
return {
|
|
228
|
-
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
|
|
229
|
-
paymentContext: Fairmint_Subscriptions_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
|
|
230
|
-
skipProcessorPayment: damlTypes.Bool.encode(__typed__.skipProcessorPayment),
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
,
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
exports.ActiveSubscription_ProcessFreeTrial = {
|
|
239
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, featuredAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
|
|
240
|
-
encode: function (__typed__) {
|
|
241
|
-
return {
|
|
242
|
-
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
|
|
243
|
-
featuredAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.featuredAppRight),
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
,
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
exports.ActiveSubscription = damlTypes.assembleTemplate(
|
|
252
|
-
{
|
|
253
|
-
templateId: '#Subscriptions-v09:Fairmint.Subscriptions.ActiveSubscription:ActiveSubscription',
|
|
254
|
-
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
255
|
-
keyEncode: function () { throw 'EncodeError'; },
|
|
256
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscription: Fairmint_Subscriptions_Types_Subscription.Subscription.decoder, processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.decoder, processedAndPaidUntil: damlTypes.Time.decoder, lockedAmuletCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.LockedAmulet).decoder, stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats.decoder, }); }),
|
|
257
|
-
encode: function (__typed__) {
|
|
258
|
-
return {
|
|
259
|
-
subscription: Fairmint_Subscriptions_Types_Subscription.Subscription.encode(__typed__.subscription),
|
|
260
|
-
processorContext: Fairmint_Subscriptions_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
|
|
261
|
-
processedAndPaidUntil: damlTypes.Time.encode(__typed__.processedAndPaidUntil),
|
|
262
|
-
lockedAmuletCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.LockedAmulet).encode(__typed__.lockedAmuletCid),
|
|
263
|
-
stats: Fairmint_Subscriptions_Types_SubscriptionStats.SubscriptionStats.encode(__typed__.stats),
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
,
|
|
267
|
-
ActiveSubscription_ProcessFreeTrial: {
|
|
268
|
-
template: function () { return exports.ActiveSubscription; },
|
|
269
|
-
choiceName: 'ActiveSubscription_ProcessFreeTrial',
|
|
270
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_ProcessFreeTrial.decoder; }),
|
|
271
|
-
argumentEncode: function (__typed__) { return exports.ActiveSubscription_ProcessFreeTrial.encode(__typed__); },
|
|
272
|
-
resultDecoder: damlTypes.lazyMemo(function () { return Fairmint_Subscriptions_Types_ProcessFreeTrialResult.ProcessFreeTrialResult(exports.ActiveSubscription).decoder; }),
|
|
273
|
-
resultEncode: function (__typed__) { return Fairmint_Subscriptions_Types_ProcessFreeTrialResult.ProcessFreeTrialResult(exports.ActiveSubscription).encode(__typed__); },
|
|
274
|
-
},
|
|
275
|
-
ActiveSubscription_ProcessPayment: {
|
|
276
|
-
template: function () { return exports.ActiveSubscription; },
|
|
277
|
-
choiceName: 'ActiveSubscription_ProcessPayment',
|
|
278
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_ProcessPayment.decoder; }),
|
|
279
|
-
argumentEncode: function (__typed__) { return exports.ActiveSubscription_ProcessPayment.encode(__typed__); },
|
|
280
|
-
resultDecoder: damlTypes.lazyMemo(function () { return Fairmint_Subscriptions_Types_PaymentResult.ProcessPaymentResult(exports.ActiveSubscription).decoder; }),
|
|
281
|
-
resultEncode: function (__typed__) { return Fairmint_Subscriptions_Types_PaymentResult.ProcessPaymentResult(exports.ActiveSubscription).encode(__typed__); },
|
|
282
|
-
},
|
|
283
|
-
ActiveSubscription_ProposeChanges: {
|
|
284
|
-
template: function () { return exports.ActiveSubscription; },
|
|
285
|
-
choiceName: 'ActiveSubscription_ProposeChanges',
|
|
286
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_ProposeChanges.decoder; }),
|
|
287
|
-
argumentEncode: function (__typed__) { return exports.ActiveSubscription_ProposeChanges.encode(__typed__); },
|
|
288
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.SubscriptionChangeProposal).decoder; }),
|
|
289
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.SubscriptionChangeProposal).encode(__typed__); },
|
|
290
|
-
},
|
|
291
|
-
ActiveSubscription_Cancel: {
|
|
292
|
-
template: function () { return exports.ActiveSubscription; },
|
|
293
|
-
choiceName: 'ActiveSubscription_Cancel',
|
|
294
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_Cancel.decoder; }),
|
|
295
|
-
argumentEncode: function (__typed__) { return exports.ActiveSubscription_Cancel.encode(__typed__); },
|
|
296
|
-
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.Optional(damlTypes.ContractId(exports.ActiveSubscription)), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).decoder; }),
|
|
297
|
-
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.Optional(damlTypes.ContractId(exports.ActiveSubscription)), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).encode(__typed__); },
|
|
298
|
-
},
|
|
299
|
-
ActiveSubscription_Refund: {
|
|
300
|
-
template: function () { return exports.ActiveSubscription; },
|
|
301
|
-
choiceName: 'ActiveSubscription_Refund',
|
|
302
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_Refund.decoder; }),
|
|
303
|
-
argumentEncode: function (__typed__) { return exports.ActiveSubscription_Refund.encode(__typed__); },
|
|
304
|
-
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult, damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder; }),
|
|
305
|
-
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult, damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__); },
|
|
306
|
-
},
|
|
307
|
-
ActiveSubscription_AddFunds: {
|
|
308
|
-
template: function () { return exports.ActiveSubscription; },
|
|
309
|
-
choiceName: 'ActiveSubscription_AddFunds',
|
|
310
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_AddFunds.decoder; }),
|
|
311
|
-
argumentEncode: function (__typed__) { return exports.ActiveSubscription_AddFunds.encode(__typed__); },
|
|
312
|
-
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).decoder; }),
|
|
313
|
-
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActiveSubscription), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).encode(__typed__); },
|
|
314
|
-
},
|
|
315
|
-
ActiveSubscription_WithdrawFunds: {
|
|
316
|
-
template: function () { return exports.ActiveSubscription; },
|
|
317
|
-
choiceName: 'ActiveSubscription_WithdrawFunds',
|
|
318
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_WithdrawFunds.decoder; }),
|
|
319
|
-
argumentEncode: function (__typed__) { return exports.ActiveSubscription_WithdrawFunds.encode(__typed__); },
|
|
320
|
-
resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActiveSubscription), damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder; }),
|
|
321
|
-
resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActiveSubscription), damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__); },
|
|
322
|
-
},
|
|
323
|
-
ActiveSubscription_ArchiveInactiveSubscription: {
|
|
324
|
-
template: function () { return exports.ActiveSubscription; },
|
|
325
|
-
choiceName: 'ActiveSubscription_ArchiveInactiveSubscription',
|
|
326
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_ArchiveInactiveSubscription.decoder; }),
|
|
327
|
-
argumentEncode: function (__typed__) { return exports.ActiveSubscription_ArchiveInactiveSubscription.encode(__typed__); },
|
|
328
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet).decoder; }),
|
|
329
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet).encode(__typed__); },
|
|
330
|
-
},
|
|
331
|
-
ActiveSubscription_ChangeParty: {
|
|
332
|
-
template: function () { return exports.ActiveSubscription; },
|
|
333
|
-
choiceName: 'ActiveSubscription_ChangeParty',
|
|
334
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActiveSubscription_ChangeParty.decoder; }),
|
|
335
|
-
argumentEncode: function (__typed__) { return exports.ActiveSubscription_ChangeParty.encode(__typed__); },
|
|
336
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ActiveSubscription).decoder; }),
|
|
337
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ActiveSubscription).encode(__typed__); },
|
|
338
|
-
},
|
|
339
|
-
Archive: {
|
|
340
|
-
template: function () { return exports.ActiveSubscription; },
|
|
341
|
-
choiceName: 'Archive',
|
|
342
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
343
|
-
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
344
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
345
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
346
|
-
},
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
);
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
damlTypes.registerTemplate(exports.ActiveSubscription, ['813acf3938ed38d338823fd94c5afb4a885e0ae54546741cc1b036c76c22c825', '#Subscriptions-v09']);
|
|
353
|
-
|