@fairmint/open-captable-protocol-daml-js 0.2.14 → 0.2.15
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/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/Subscriptions/ActiveSubscription/module.d.ts +191 -0
- package/lib/Fairmint/Subscriptions/ActiveSubscription/module.js +302 -0
- package/lib/Fairmint/Subscriptions/PartyMigrationProposal/module.d.ts +86 -0
- package/lib/Fairmint/Subscriptions/PartyMigrationProposal/module.js +135 -0
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.d.ts +90 -0
- package/lib/Fairmint/Subscriptions/ProposedSubscription/module.js +139 -0
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.d.ts +11 -9
- package/lib/Fairmint/Subscriptions/SubscriptionFactory/module.js +17 -15
- package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.d.ts +25 -0
- package/lib/Fairmint/Subscriptions/Types/ActiveSubscriptionData/module.js +32 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/module.d.ts +20 -0
- package/lib/Fairmint/Subscriptions/Types/Approvals/module.js +27 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/module.d.ts +21 -0
- package/lib/Fairmint/Subscriptions/Types/PartyRole/module.js +24 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.d.ts +22 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentContext/module.js +29 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/module.d.ts +23 -0
- package/lib/Fairmint/Subscriptions/Types/PaymentResult/module.js +31 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module.d.ts +21 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessFreeTrialResult/module.js +29 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/module.d.ts +27 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessingContext/module.js +34 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/module.d.ts +19 -0
- package/lib/Fairmint/Subscriptions/Types/ProcessorContext/module.js +26 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/module.d.ts +34 -0
- package/lib/Fairmint/Subscriptions/Types/Subscription/module.js +41 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/module.d.ts +19 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionAmount/module.js +27 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/module.d.ts +34 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionChanges/module.js +41 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.d.ts +35 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposal/module.js +42 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.d.ts +35 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionProposalChanges/module.js +42 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/module.d.ts +24 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionStats/module.js +31 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/index.d.ts +1 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/index.js +8 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/module.d.ts +21 -0
- package/lib/Fairmint/Subscriptions/Types/SubscriptionTime/module.js +29 -0
- package/lib/Fairmint/Subscriptions/Types/index.d.ts +30 -0
- package/lib/Fairmint/Subscriptions/Types/index.js +37 -0
- package/lib/Fairmint/Subscriptions/index.d.ts +8 -8
- package/lib/Fairmint/Subscriptions/index.js +8 -8
- package/package.json +2 -2
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.d.ts +0 -75
- package/lib/Fairmint/Subscriptions/ProcessorApprovedSubscriptionProposal/module.js +0 -124
- package/lib/Fairmint/Subscriptions/Subscription/module.d.ts +0 -246
- package/lib/Fairmint/Subscriptions/Subscription/module.js +0 -400
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.d.ts +0 -59
- package/lib/Fairmint/Subscriptions/SubscriptionConfig/module.js +0 -73
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.d.ts +0 -75
- package/lib/Fairmint/Subscriptions/SubscriptionProposal/module.js +0 -124
- /package/lib/Fairmint/Subscriptions/{ProcessorApprovedSubscriptionProposal → ActiveSubscription}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{ProcessorApprovedSubscriptionProposal → ActiveSubscription}/index.js +0 -0
- /package/lib/Fairmint/Subscriptions/{Subscription → PartyMigrationProposal}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{Subscription → PartyMigrationProposal}/index.js +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionConfig → ProposedSubscription}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionConfig → ProposedSubscription}/index.js +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionProposal → Types/ActiveSubscriptionData}/index.d.ts +0 -0
- /package/lib/Fairmint/Subscriptions/{SubscriptionProposal → Types/ActiveSubscriptionData}/index.js +0 -0
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
// Generated from Fairmint/Subscriptions/Subscription.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 pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../DA/Internal/Template';
|
|
12
|
-
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../DA/Time/Types';
|
|
13
|
-
|
|
14
|
-
import * as Fairmint_Subscriptions_SubscriptionConfig from '../../../Fairmint/Subscriptions/SubscriptionConfig/module';
|
|
15
|
-
|
|
16
|
-
export declare type Subscription_ProcessPaymentResult = {
|
|
17
|
-
subscriptionCid: damlTypes.ContractId<Subscription>;
|
|
18
|
-
recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult;
|
|
19
|
-
processorTransferResult: damlTypes.Optional<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult>;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export declare const Subscription_ProcessPaymentResult:
|
|
23
|
-
damlTypes.Serializable<Subscription_ProcessPaymentResult> & {
|
|
24
|
-
}
|
|
25
|
-
;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export declare type Subscription_CancelByProcessor = {
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export declare const Subscription_CancelByProcessor:
|
|
32
|
-
damlTypes.Serializable<Subscription_CancelByProcessor> & {
|
|
33
|
-
}
|
|
34
|
-
;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export declare type Subscription_CancelByRecipient = {
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export declare const Subscription_CancelByRecipient:
|
|
41
|
-
damlTypes.Serializable<Subscription_CancelByRecipient> & {
|
|
42
|
-
}
|
|
43
|
-
;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export declare type Subscription_CancelBySubscriber = {
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export declare const Subscription_CancelBySubscriber:
|
|
50
|
-
damlTypes.Serializable<Subscription_CancelBySubscriber> & {
|
|
51
|
-
}
|
|
52
|
-
;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export declare type Subscription_RecipientUpdateFreeTrial = {
|
|
56
|
-
newFreeTrialEndsAt: damlTypes.Optional<damlTypes.Time>;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export declare const Subscription_RecipientUpdateFreeTrial:
|
|
60
|
-
damlTypes.Serializable<Subscription_RecipientUpdateFreeTrial> & {
|
|
61
|
-
}
|
|
62
|
-
;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
export declare type Subscription_SubscriberReduceFreeTrial = {
|
|
66
|
-
newFreeTrialEndsAt: damlTypes.Optional<damlTypes.Time>;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export declare const Subscription_SubscriberReduceFreeTrial:
|
|
70
|
-
damlTypes.Serializable<Subscription_SubscriberReduceFreeTrial> & {
|
|
71
|
-
}
|
|
72
|
-
;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export declare type Subscription_ProcessorSetRecipientFeaturedAppRight = {
|
|
76
|
-
newFeaturedAppRight: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export declare const Subscription_ProcessorSetRecipientFeaturedAppRight:
|
|
80
|
-
damlTypes.Serializable<Subscription_ProcessorSetRecipientFeaturedAppRight> & {
|
|
81
|
-
}
|
|
82
|
-
;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
export declare type Subscription_UpdateProcessorFeaturedAppRight = {
|
|
86
|
-
newFeaturedAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export declare const Subscription_UpdateProcessorFeaturedAppRight:
|
|
90
|
-
damlTypes.Serializable<Subscription_UpdateProcessorFeaturedAppRight> & {
|
|
91
|
-
}
|
|
92
|
-
;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
export declare type Subscription_UpdateRecipientFeaturedAppRight = {
|
|
96
|
-
newFeaturedAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export declare const Subscription_UpdateRecipientFeaturedAppRight:
|
|
100
|
-
damlTypes.Serializable<Subscription_UpdateRecipientFeaturedAppRight> & {
|
|
101
|
-
}
|
|
102
|
-
;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
export declare type Subscription_ProcessorDecreasePayment = {
|
|
106
|
-
newProcessorPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export declare const Subscription_ProcessorDecreasePayment:
|
|
110
|
-
damlTypes.Serializable<Subscription_ProcessorDecreasePayment> & {
|
|
111
|
-
}
|
|
112
|
-
;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
export declare type Subscription_RecipientDecreasePayment = {
|
|
116
|
-
newRecipientPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
export declare const Subscription_RecipientDecreasePayment:
|
|
120
|
-
damlTypes.Serializable<Subscription_RecipientDecreasePayment> & {
|
|
121
|
-
}
|
|
122
|
-
;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
export declare type Subscription_SubscriberIncreasePayments = {
|
|
126
|
-
newRecipientPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig;
|
|
127
|
-
newProcessorPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
export declare const Subscription_SubscriberIncreasePayments:
|
|
131
|
-
damlTypes.Serializable<Subscription_SubscriberIncreasePayments> & {
|
|
132
|
-
}
|
|
133
|
-
;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
export declare type Subscription_DecreaseExpiration = {
|
|
137
|
-
newExpiresAt: damlTypes.Time;
|
|
138
|
-
exercisingParty: damlTypes.Party;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
export declare const Subscription_DecreaseExpiration:
|
|
142
|
-
damlTypes.Serializable<Subscription_DecreaseExpiration> & {
|
|
143
|
-
}
|
|
144
|
-
;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
export declare type Subscription_UpdateExpiration = {
|
|
148
|
-
newExpiresAt: damlTypes.Time;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
export declare const Subscription_UpdateExpiration:
|
|
152
|
-
damlTypes.Serializable<Subscription_UpdateExpiration> & {
|
|
153
|
-
}
|
|
154
|
-
;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
export declare type Subscription_ProcessFreeTrial = {
|
|
158
|
-
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
export declare const Subscription_ProcessFreeTrial:
|
|
162
|
-
damlTypes.Serializable<Subscription_ProcessFreeTrial> & {
|
|
163
|
-
}
|
|
164
|
-
;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
export declare type Subscription_ProcessPayment = {
|
|
168
|
-
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime;
|
|
169
|
-
paymentCtx: PaymentContext;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
export declare const Subscription_ProcessPayment:
|
|
173
|
-
damlTypes.Serializable<Subscription_ProcessPayment> & {
|
|
174
|
-
}
|
|
175
|
-
;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
export declare type Subscription = {
|
|
179
|
-
paidUntil: damlTypes.Time;
|
|
180
|
-
config: Fairmint_Subscriptions_SubscriptionConfig.SubscriptionConfig;
|
|
181
|
-
context: Fairmint_Subscriptions_SubscriptionConfig.ProcessorContext;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
export declare interface SubscriptionInterface {
|
|
185
|
-
Subscription_ProcessPayment: damlTypes.Choice<Subscription, Subscription_ProcessPayment, Subscription_ProcessPaymentResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
186
|
-
Subscription_ProcessFreeTrial: damlTypes.Choice<Subscription, Subscription_ProcessFreeTrial, damlTypes.ContractId<Subscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
187
|
-
Subscription_UpdateExpiration: damlTypes.Choice<Subscription, Subscription_UpdateExpiration, damlTypes.ContractId<Subscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
188
|
-
Subscription_DecreaseExpiration: damlTypes.Choice<Subscription, Subscription_DecreaseExpiration, damlTypes.ContractId<Subscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
189
|
-
Subscription_SubscriberIncreasePayments: damlTypes.Choice<Subscription, Subscription_SubscriberIncreasePayments, damlTypes.ContractId<Subscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
190
|
-
Subscription_RecipientDecreasePayment: damlTypes.Choice<Subscription, Subscription_RecipientDecreasePayment, damlTypes.ContractId<Subscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
191
|
-
Subscription_ProcessorDecreasePayment: damlTypes.Choice<Subscription, Subscription_ProcessorDecreasePayment, damlTypes.ContractId<Subscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
192
|
-
Subscription_UpdateRecipientFeaturedAppRight: damlTypes.Choice<Subscription, Subscription_UpdateRecipientFeaturedAppRight, damlTypes.ContractId<Subscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
193
|
-
Subscription_UpdateProcessorFeaturedAppRight: damlTypes.Choice<Subscription, Subscription_UpdateProcessorFeaturedAppRight, damlTypes.ContractId<Subscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
194
|
-
Subscription_ProcessorSetRecipientFeaturedAppRight: damlTypes.Choice<Subscription, Subscription_ProcessorSetRecipientFeaturedAppRight, damlTypes.ContractId<Subscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
195
|
-
Subscription_SubscriberReduceFreeTrial: damlTypes.Choice<Subscription, Subscription_SubscriberReduceFreeTrial, damlTypes.ContractId<Subscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
196
|
-
Subscription_RecipientUpdateFreeTrial: damlTypes.Choice<Subscription, Subscription_RecipientUpdateFreeTrial, damlTypes.ContractId<Subscription>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
197
|
-
Subscription_CancelBySubscriber: damlTypes.Choice<Subscription, Subscription_CancelBySubscriber, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
198
|
-
Subscription_CancelByRecipient: damlTypes.Choice<Subscription, Subscription_CancelByRecipient, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
199
|
-
Archive: damlTypes.Choice<Subscription, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
200
|
-
Subscription_CancelByProcessor: damlTypes.Choice<Subscription, Subscription_CancelByProcessor, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Subscription, undefined>>;
|
|
201
|
-
}
|
|
202
|
-
export declare const Subscription:
|
|
203
|
-
damlTypes.Template<Subscription, undefined, '#Subscriptions-v01:Fairmint.Subscriptions.Subscription:Subscription'> &
|
|
204
|
-
damlTypes.ToInterface<Subscription, never> &
|
|
205
|
-
SubscriptionInterface;
|
|
206
|
-
|
|
207
|
-
export declare namespace Subscription {
|
|
208
|
-
export type CreateEvent = damlLedger.CreateEvent<Subscription, undefined, typeof Subscription.templateId>
|
|
209
|
-
export type ArchiveEvent = damlLedger.ArchiveEvent<Subscription, typeof Subscription.templateId>
|
|
210
|
-
export type Event = damlLedger.Event<Subscription, undefined, typeof Subscription.templateId>
|
|
211
|
-
export type QueryResult = damlLedger.QueryResult<Subscription, undefined, typeof Subscription.templateId>
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
export declare type PaymentRequest = {
|
|
217
|
-
sender: damlTypes.Party;
|
|
218
|
-
provider: damlTypes.Party;
|
|
219
|
-
receiver: damlTypes.Party;
|
|
220
|
-
amount: damlTypes.Numeric;
|
|
221
|
-
receiverFeeRatio: damlTypes.Numeric;
|
|
222
|
-
featuredAppRight: damlTypes.Optional<damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight>>;
|
|
223
|
-
expectedDso: damlTypes.Party;
|
|
224
|
-
amuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
|
|
225
|
-
amuletRulesCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules>;
|
|
226
|
-
openMiningRoundCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound>;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
export declare const PaymentRequest:
|
|
230
|
-
damlTypes.Serializable<PaymentRequest> & {
|
|
231
|
-
}
|
|
232
|
-
;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
export declare type PaymentContext = {
|
|
236
|
-
amuletInputs: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet>[];
|
|
237
|
-
amuletRulesCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules>;
|
|
238
|
-
openMiningRoundCid: damlTypes.ContractId<pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound>;
|
|
239
|
-
amuletPrice: damlTypes.Numeric;
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
export declare const PaymentContext:
|
|
243
|
-
damlTypes.Serializable<PaymentContext> & {
|
|
244
|
-
}
|
|
245
|
-
;
|
|
246
|
-
|
|
@@ -1,400 +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 pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
|
|
17
|
-
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../DA/Time/Types');
|
|
18
|
-
|
|
19
|
-
var Fairmint_Subscriptions_SubscriptionConfig = require('../../../Fairmint/Subscriptions/SubscriptionConfig/module');
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
exports.Subscription_ProcessPaymentResult = {
|
|
23
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({subscriptionCid: damlTypes.ContractId(exports.Subscription).decoder, recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult.decoder, processorTransferResult: jtv.Decoder.withDefault(null, damlTypes.Optional(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult).decoder), }); }),
|
|
24
|
-
encode: function (__typed__) {
|
|
25
|
-
return {
|
|
26
|
-
subscriptionCid: damlTypes.ContractId(exports.Subscription).encode(__typed__.subscriptionCid),
|
|
27
|
-
recipientTransferResult: pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult.encode(__typed__.recipientTransferResult),
|
|
28
|
-
processorTransferResult: damlTypes.Optional(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.TransferResult).encode(__typed__.processorTransferResult),
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
,
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
exports.Subscription_CancelByProcessor = {
|
|
37
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
38
|
-
encode: function (__typed__) {
|
|
39
|
-
return {
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
,
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
exports.Subscription_CancelByRecipient = {
|
|
48
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
49
|
-
encode: function (__typed__) {
|
|
50
|
-
return {
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
,
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
exports.Subscription_CancelBySubscriber = {
|
|
59
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
60
|
-
encode: function (__typed__) {
|
|
61
|
-
return {
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
,
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
exports.Subscription_RecipientUpdateFreeTrial = {
|
|
70
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({newFreeTrialEndsAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), }); }),
|
|
71
|
-
encode: function (__typed__) {
|
|
72
|
-
return {
|
|
73
|
-
newFreeTrialEndsAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.newFreeTrialEndsAt),
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
,
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
exports.Subscription_SubscriberReduceFreeTrial = {
|
|
82
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({newFreeTrialEndsAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), }); }),
|
|
83
|
-
encode: function (__typed__) {
|
|
84
|
-
return {
|
|
85
|
-
newFreeTrialEndsAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.newFreeTrialEndsAt),
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
,
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
exports.Subscription_ProcessorSetRecipientFeaturedAppRight = {
|
|
94
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({newFeaturedAppRight: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight).decoder, }); }),
|
|
95
|
-
encode: function (__typed__) {
|
|
96
|
-
return {
|
|
97
|
-
newFeaturedAppRight: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight).encode(__typed__.newFeaturedAppRight),
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
,
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
exports.Subscription_UpdateProcessorFeaturedAppRight = {
|
|
106
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({newFeaturedAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).decoder), }); }),
|
|
107
|
-
encode: function (__typed__) {
|
|
108
|
-
return {
|
|
109
|
-
newFeaturedAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).encode(__typed__.newFeaturedAppRight),
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
,
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
exports.Subscription_UpdateRecipientFeaturedAppRight = {
|
|
118
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({newFeaturedAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).decoder), }); }),
|
|
119
|
-
encode: function (__typed__) {
|
|
120
|
-
return {
|
|
121
|
-
newFeaturedAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).encode(__typed__.newFeaturedAppRight),
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
,
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
exports.Subscription_ProcessorDecreasePayment = {
|
|
130
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({newProcessorPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.decoder, }); }),
|
|
131
|
-
encode: function (__typed__) {
|
|
132
|
-
return {
|
|
133
|
-
newProcessorPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.encode(__typed__.newProcessorPayment),
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
,
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
exports.Subscription_RecipientDecreasePayment = {
|
|
142
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({newRecipientPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.decoder, }); }),
|
|
143
|
-
encode: function (__typed__) {
|
|
144
|
-
return {
|
|
145
|
-
newRecipientPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.encode(__typed__.newRecipientPayment),
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
,
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
exports.Subscription_SubscriberIncreasePayments = {
|
|
154
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({newRecipientPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.decoder, newProcessorPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.decoder, }); }),
|
|
155
|
-
encode: function (__typed__) {
|
|
156
|
-
return {
|
|
157
|
-
newRecipientPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.encode(__typed__.newRecipientPayment),
|
|
158
|
-
newProcessorPayment: Fairmint_Subscriptions_SubscriptionConfig.PaymentConfig.encode(__typed__.newProcessorPayment),
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
,
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
exports.Subscription_DecreaseExpiration = {
|
|
167
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({newExpiresAt: damlTypes.Time.decoder, exercisingParty: damlTypes.Party.decoder, }); }),
|
|
168
|
-
encode: function (__typed__) {
|
|
169
|
-
return {
|
|
170
|
-
newExpiresAt: damlTypes.Time.encode(__typed__.newExpiresAt),
|
|
171
|
-
exercisingParty: damlTypes.Party.encode(__typed__.exercisingParty),
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
,
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
exports.Subscription_UpdateExpiration = {
|
|
180
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({newExpiresAt: damlTypes.Time.decoder, }); }),
|
|
181
|
-
encode: function (__typed__) {
|
|
182
|
-
return {
|
|
183
|
-
newExpiresAt: damlTypes.Time.encode(__typed__.newExpiresAt),
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
,
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
exports.Subscription_ProcessFreeTrial = {
|
|
192
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, }); }),
|
|
193
|
-
encode: function (__typed__) {
|
|
194
|
-
return {
|
|
195
|
-
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
,
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
exports.Subscription_ProcessPayment = {
|
|
204
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, paymentCtx: exports.PaymentContext.decoder, }); }),
|
|
205
|
-
encode: function (__typed__) {
|
|
206
|
-
return {
|
|
207
|
-
processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
|
|
208
|
-
paymentCtx: exports.PaymentContext.encode(__typed__.paymentCtx),
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
,
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
exports.Subscription = damlTypes.assembleTemplate(
|
|
217
|
-
{
|
|
218
|
-
templateId: '#Subscriptions-v01:Fairmint.Subscriptions.Subscription:Subscription',
|
|
219
|
-
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
220
|
-
keyEncode: function () { throw 'EncodeError'; },
|
|
221
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({paidUntil: damlTypes.Time.decoder, config: Fairmint_Subscriptions_SubscriptionConfig.SubscriptionConfig.decoder, context: Fairmint_Subscriptions_SubscriptionConfig.ProcessorContext.decoder, }); }),
|
|
222
|
-
encode: function (__typed__) {
|
|
223
|
-
return {
|
|
224
|
-
paidUntil: damlTypes.Time.encode(__typed__.paidUntil),
|
|
225
|
-
config: Fairmint_Subscriptions_SubscriptionConfig.SubscriptionConfig.encode(__typed__.config),
|
|
226
|
-
context: Fairmint_Subscriptions_SubscriptionConfig.ProcessorContext.encode(__typed__.context),
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
,
|
|
230
|
-
Subscription_ProcessPayment: {
|
|
231
|
-
template: function () { return exports.Subscription; },
|
|
232
|
-
choiceName: 'Subscription_ProcessPayment',
|
|
233
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_ProcessPayment.decoder; }),
|
|
234
|
-
argumentEncode: function (__typed__) { return exports.Subscription_ProcessPayment.encode(__typed__); },
|
|
235
|
-
resultDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_ProcessPaymentResult.decoder; }),
|
|
236
|
-
resultEncode: function (__typed__) { return exports.Subscription_ProcessPaymentResult.encode(__typed__); },
|
|
237
|
-
},
|
|
238
|
-
Subscription_ProcessFreeTrial: {
|
|
239
|
-
template: function () { return exports.Subscription; },
|
|
240
|
-
choiceName: 'Subscription_ProcessFreeTrial',
|
|
241
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_ProcessFreeTrial.decoder; }),
|
|
242
|
-
argumentEncode: function (__typed__) { return exports.Subscription_ProcessFreeTrial.encode(__typed__); },
|
|
243
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
244
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
245
|
-
},
|
|
246
|
-
Subscription_UpdateExpiration: {
|
|
247
|
-
template: function () { return exports.Subscription; },
|
|
248
|
-
choiceName: 'Subscription_UpdateExpiration',
|
|
249
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_UpdateExpiration.decoder; }),
|
|
250
|
-
argumentEncode: function (__typed__) { return exports.Subscription_UpdateExpiration.encode(__typed__); },
|
|
251
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
252
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
253
|
-
},
|
|
254
|
-
Subscription_DecreaseExpiration: {
|
|
255
|
-
template: function () { return exports.Subscription; },
|
|
256
|
-
choiceName: 'Subscription_DecreaseExpiration',
|
|
257
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_DecreaseExpiration.decoder; }),
|
|
258
|
-
argumentEncode: function (__typed__) { return exports.Subscription_DecreaseExpiration.encode(__typed__); },
|
|
259
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
260
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
261
|
-
},
|
|
262
|
-
Subscription_SubscriberIncreasePayments: {
|
|
263
|
-
template: function () { return exports.Subscription; },
|
|
264
|
-
choiceName: 'Subscription_SubscriberIncreasePayments',
|
|
265
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_SubscriberIncreasePayments.decoder; }),
|
|
266
|
-
argumentEncode: function (__typed__) { return exports.Subscription_SubscriberIncreasePayments.encode(__typed__); },
|
|
267
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
268
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
269
|
-
},
|
|
270
|
-
Subscription_RecipientDecreasePayment: {
|
|
271
|
-
template: function () { return exports.Subscription; },
|
|
272
|
-
choiceName: 'Subscription_RecipientDecreasePayment',
|
|
273
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_RecipientDecreasePayment.decoder; }),
|
|
274
|
-
argumentEncode: function (__typed__) { return exports.Subscription_RecipientDecreasePayment.encode(__typed__); },
|
|
275
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
276
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
277
|
-
},
|
|
278
|
-
Subscription_ProcessorDecreasePayment: {
|
|
279
|
-
template: function () { return exports.Subscription; },
|
|
280
|
-
choiceName: 'Subscription_ProcessorDecreasePayment',
|
|
281
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_ProcessorDecreasePayment.decoder; }),
|
|
282
|
-
argumentEncode: function (__typed__) { return exports.Subscription_ProcessorDecreasePayment.encode(__typed__); },
|
|
283
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
284
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
285
|
-
},
|
|
286
|
-
Subscription_UpdateRecipientFeaturedAppRight: {
|
|
287
|
-
template: function () { return exports.Subscription; },
|
|
288
|
-
choiceName: 'Subscription_UpdateRecipientFeaturedAppRight',
|
|
289
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_UpdateRecipientFeaturedAppRight.decoder; }),
|
|
290
|
-
argumentEncode: function (__typed__) { return exports.Subscription_UpdateRecipientFeaturedAppRight.encode(__typed__); },
|
|
291
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
292
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
293
|
-
},
|
|
294
|
-
Subscription_UpdateProcessorFeaturedAppRight: {
|
|
295
|
-
template: function () { return exports.Subscription; },
|
|
296
|
-
choiceName: 'Subscription_UpdateProcessorFeaturedAppRight',
|
|
297
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_UpdateProcessorFeaturedAppRight.decoder; }),
|
|
298
|
-
argumentEncode: function (__typed__) { return exports.Subscription_UpdateProcessorFeaturedAppRight.encode(__typed__); },
|
|
299
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
300
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
301
|
-
},
|
|
302
|
-
Subscription_ProcessorSetRecipientFeaturedAppRight: {
|
|
303
|
-
template: function () { return exports.Subscription; },
|
|
304
|
-
choiceName: 'Subscription_ProcessorSetRecipientFeaturedAppRight',
|
|
305
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_ProcessorSetRecipientFeaturedAppRight.decoder; }),
|
|
306
|
-
argumentEncode: function (__typed__) { return exports.Subscription_ProcessorSetRecipientFeaturedAppRight.encode(__typed__); },
|
|
307
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
308
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
309
|
-
},
|
|
310
|
-
Subscription_SubscriberReduceFreeTrial: {
|
|
311
|
-
template: function () { return exports.Subscription; },
|
|
312
|
-
choiceName: 'Subscription_SubscriberReduceFreeTrial',
|
|
313
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_SubscriberReduceFreeTrial.decoder; }),
|
|
314
|
-
argumentEncode: function (__typed__) { return exports.Subscription_SubscriberReduceFreeTrial.encode(__typed__); },
|
|
315
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
316
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
317
|
-
},
|
|
318
|
-
Subscription_RecipientUpdateFreeTrial: {
|
|
319
|
-
template: function () { return exports.Subscription; },
|
|
320
|
-
choiceName: 'Subscription_RecipientUpdateFreeTrial',
|
|
321
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_RecipientUpdateFreeTrial.decoder; }),
|
|
322
|
-
argumentEncode: function (__typed__) { return exports.Subscription_RecipientUpdateFreeTrial.encode(__typed__); },
|
|
323
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.Subscription).decoder; }),
|
|
324
|
-
resultEncode: function (__typed__) { return damlTypes.ContractId(exports.Subscription).encode(__typed__); },
|
|
325
|
-
},
|
|
326
|
-
Subscription_CancelBySubscriber: {
|
|
327
|
-
template: function () { return exports.Subscription; },
|
|
328
|
-
choiceName: 'Subscription_CancelBySubscriber',
|
|
329
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_CancelBySubscriber.decoder; }),
|
|
330
|
-
argumentEncode: function (__typed__) { return exports.Subscription_CancelBySubscriber.encode(__typed__); },
|
|
331
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
332
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
333
|
-
},
|
|
334
|
-
Subscription_CancelByRecipient: {
|
|
335
|
-
template: function () { return exports.Subscription; },
|
|
336
|
-
choiceName: 'Subscription_CancelByRecipient',
|
|
337
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_CancelByRecipient.decoder; }),
|
|
338
|
-
argumentEncode: function (__typed__) { return exports.Subscription_CancelByRecipient.encode(__typed__); },
|
|
339
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
340
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
341
|
-
},
|
|
342
|
-
Archive: {
|
|
343
|
-
template: function () { return exports.Subscription; },
|
|
344
|
-
choiceName: 'Archive',
|
|
345
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
346
|
-
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
347
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
348
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
349
|
-
},
|
|
350
|
-
Subscription_CancelByProcessor: {
|
|
351
|
-
template: function () { return exports.Subscription; },
|
|
352
|
-
choiceName: 'Subscription_CancelByProcessor',
|
|
353
|
-
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Subscription_CancelByProcessor.decoder; }),
|
|
354
|
-
argumentEncode: function (__typed__) { return exports.Subscription_CancelByProcessor.encode(__typed__); },
|
|
355
|
-
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
356
|
-
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
357
|
-
},
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
);
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
damlTypes.registerTemplate(exports.Subscription, ['a69aaed3f2c990040ac22263af73b2547522cc540ffeca867b0f13d74d9e663d', '#Subscriptions-v01']);
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
exports.PaymentRequest = {
|
|
368
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, provider: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, receiverFeeRatio: damlTypes.Numeric(10).decoder, featuredAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).decoder), expectedDso: damlTypes.Party.decoder, amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet)).decoder, amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules).decoder, openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound).decoder, }); }),
|
|
369
|
-
encode: function (__typed__) {
|
|
370
|
-
return {
|
|
371
|
-
sender: damlTypes.Party.encode(__typed__.sender),
|
|
372
|
-
provider: damlTypes.Party.encode(__typed__.provider),
|
|
373
|
-
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
374
|
-
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
375
|
-
receiverFeeRatio: damlTypes.Numeric(10).encode(__typed__.receiverFeeRatio),
|
|
376
|
-
featuredAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.FeaturedAppRight)).encode(__typed__.featuredAppRight),
|
|
377
|
-
expectedDso: damlTypes.Party.encode(__typed__.expectedDso),
|
|
378
|
-
amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet)).encode(__typed__.amuletInputs),
|
|
379
|
-
amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules).encode(__typed__.amuletRulesCid),
|
|
380
|
-
openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound).encode(__typed__.openMiningRoundCid),
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
,
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
exports.PaymentContext = {
|
|
389
|
-
decoder: damlTypes.lazyMemo(function () { return jtv.object({amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet)).decoder, amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules).decoder, openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound).decoder, amuletPrice: damlTypes.Numeric(10).decoder, }); }),
|
|
390
|
-
encode: function (__typed__) {
|
|
391
|
-
return {
|
|
392
|
-
amuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Amulet.Amulet)).encode(__typed__.amuletInputs),
|
|
393
|
-
amuletRulesCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.AmuletRules.AmuletRules).encode(__typed__.amuletRulesCid),
|
|
394
|
-
openMiningRoundCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Splice.Round.OpenMiningRound).encode(__typed__.openMiningRoundCid),
|
|
395
|
-
amuletPrice: damlTypes.Numeric(10).encode(__typed__.amuletPrice),
|
|
396
|
-
};
|
|
397
|
-
}
|
|
398
|
-
,
|
|
399
|
-
};
|
|
400
|
-
|