@delopay/sdk 0.213.0 → 0.214.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7305,6 +7305,71 @@ var Settings = class {
7305
7305
  }
7306
7306
  };
7307
7307
 
7308
+ // src/resources/messageTemplates.ts
7309
+ var MessageTemplates = class {
7310
+ constructor(request) {
7311
+ this.request = request;
7312
+ }
7313
+ /** `GET /message-templates/shops/{profile_id}` */
7314
+ async listShop(profileId) {
7315
+ return this.request("GET", `/message-templates/shops/${encodeURIComponent(profileId)}`);
7316
+ }
7317
+ /** `GET /message-templates/shops/{profile_id}/{template_id}` */
7318
+ async retrieveShop(profileId, templateId) {
7319
+ return this.request(
7320
+ "GET",
7321
+ `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}`
7322
+ );
7323
+ }
7324
+ /**
7325
+ * Store the shop's text in one language.
7326
+ *
7327
+ * `PUT /message-templates/shops/{profile_id}/{template_id}/languages/{language}`
7328
+ */
7329
+ async updateShopLanguage(profileId, templateId, language, params) {
7330
+ return this.request(
7331
+ "PUT",
7332
+ `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,
7333
+ { body: params }
7334
+ );
7335
+ }
7336
+ /**
7337
+ * Remove the shop's text in one language, so the platform's or the built-in
7338
+ * text applies.
7339
+ *
7340
+ * `DELETE /message-templates/shops/{profile_id}/{template_id}/languages/{language}`
7341
+ */
7342
+ async resetShopLanguage(profileId, templateId, language, params = {}) {
7343
+ return this.request(
7344
+ "DELETE",
7345
+ `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/languages/${encodeURIComponent(language)}`,
7346
+ { query: { expected_revision: params.expected_revision } }
7347
+ );
7348
+ }
7349
+ /** `POST /message-templates/shops/{profile_id}/{template_id}/preview` */
7350
+ async previewShop(profileId, templateId, params) {
7351
+ return this.request(
7352
+ "POST",
7353
+ `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/preview`,
7354
+ {
7355
+ body: params
7356
+ }
7357
+ );
7358
+ }
7359
+ /**
7360
+ * Send the template to the signed-in user's own address.
7361
+ *
7362
+ * `POST /message-templates/shops/{profile_id}/{template_id}/test`
7363
+ */
7364
+ async sendShopTest(profileId, templateId, params) {
7365
+ return this.request(
7366
+ "POST",
7367
+ `/message-templates/shops/${encodeURIComponent(profileId)}/${encodeURIComponent(templateId)}/test`,
7368
+ { body: params }
7369
+ );
7370
+ }
7371
+ };
7372
+
7308
7373
  // src/resources/risk.ts
7309
7374
  var Risk = class {
7310
7375
  constructor(request) {
@@ -7567,6 +7632,7 @@ var Delopay = class {
7567
7632
  this.settlement = new Settlement(request);
7568
7633
  this.operationLimits = new OperationLimits(request);
7569
7634
  this.settings = new Settings(request);
7635
+ this.messageTemplates = new MessageTemplates(request);
7570
7636
  this.risk = new Risk(request);
7571
7637
  this.subscriptions = new Subscriptions(request);
7572
7638
  this.buyerPortal = new BuyerPortal(request);
@@ -11591,6 +11657,7 @@ export {
11591
11657
  Settlement,
11592
11658
  OperationLimits,
11593
11659
  Settings,
11660
+ MessageTemplates,
11594
11661
  Risk,
11595
11662
  Delopay,
11596
11663
  leaf,
@@ -11782,4 +11849,4 @@ export {
11782
11849
  decodeNativePanes,
11783
11850
  encodeNativePanes
11784
11851
  };
11785
- //# sourceMappingURL=chunk-BL5Y5CSM.js.map
11852
+ //# sourceMappingURL=chunk-RG4EO47H.js.map