@sesamy/sesamy-js 1.19.0 → 1.19.2

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.
@@ -161,6 +161,16 @@ export type PaymentIssues = {
161
161
  "CARD_WILL_EXPIRE"
162
162
  ];
163
163
  };
164
+ export type Transaction = {
165
+ id: string;
166
+ currecy: string;
167
+ contractId: string;
168
+ isRefund: boolean;
169
+ userId: string;
170
+ billId: string;
171
+ createdAt: string;
172
+ updatedAt: string;
173
+ };
164
174
  export interface GenerateAccountLink extends GenerateLinkBase {
165
175
  target: "account";
166
176
  }
@@ -256,6 +266,10 @@ export declare function init(config: Config): Promise<{
256
266
  subscriptions: {
257
267
  list: () => Promise<Subscription[]>;
258
268
  };
269
+ transactions: {
270
+ get: (transactionsId: string) => Promise<Transaction | undefined>;
271
+ list: () => Promise<Transaction[]>;
272
+ };
259
273
  products: {
260
274
  get: (sku: string) => Promise<Product>;
261
275
  autoOnboard: (sku: string) => Promise<Entitlement[]>;