@myclub_se/data-access 1.7.0 → 1.8.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.
@@ -586,10 +586,13 @@ class EmailRecipient {
586
586
  }
587
587
 
588
588
  class Event {
589
- constructor(id, activity_id, activity_type, calendar_name, description, end, invitation_id, invitation_response, location, meet_up_place, meet_up_time, member_id, start, title, type) {
589
+ constructor(id, activity_id, activity_type, base_background_color, base_color, base_name, calendar_name, description, end, invitation_id, invitation_response, location, meet_up_place, meet_up_time, member_id, start, title, type) {
590
590
  this.id = id;
591
591
  this.activity_id = activity_id;
592
592
  this.activity_type = activity_type;
593
+ this.base_background_color = base_background_color;
594
+ this.base_color = base_color;
595
+ this.base_name = base_name;
593
596
  this.calendar_name = calendar_name;
594
597
  this.description = description;
595
598
  this.end = end;
@@ -735,15 +738,19 @@ class Giro {
735
738
  }
736
739
 
737
740
  class Swish {
738
- constructor(clubId, sectionId, certificateValidUntil, defaultActivated, name, status, swishPayeeAlias, testAccount, usesMyClubCertificate) {
741
+ constructor(clubId, sectionId, certificateValidUntil, defaultActivated, name, paymentTermsName, paymentTermsOrganisationId, paymentTermsUrl, status, swishPayeeAlias, testAccount, usePaymentTerms, usesMyClubCertificate) {
739
742
  this.clubId = clubId;
740
743
  this.sectionId = sectionId;
741
744
  this.certificateValidUntil = certificateValidUntil;
742
745
  this.defaultActivated = defaultActivated;
743
746
  this.name = name;
747
+ this.paymentTermsName = paymentTermsName;
748
+ this.paymentTermsOrganisationId = paymentTermsOrganisationId;
749
+ this.paymentTermsUrl = paymentTermsUrl;
744
750
  this.status = status;
745
751
  this.swishPayeeAlias = swishPayeeAlias;
746
752
  this.testAccount = testAccount;
753
+ this.usePaymentTerms = usePaymentTerms;
747
754
  this.usesMyClubCertificate = usesMyClubCertificate;
748
755
  }
749
756
  }
@@ -1333,7 +1340,7 @@ const fileFactory = (file) => new FileObject(file.id, file.created, null, typeof
1333
1340
 
1334
1341
  const directoryFactory = (directory) => new Directory(directory.id, directory.club_id, directory.section_id, directory.team_id, directory.created, directory.files.map((file) => fileFactory(file)), directory.name, directory.location_name, directory.updated);
1335
1342
 
1336
- const eventFactory = (apiEvent) => new Event(apiEvent.id, apiEvent.activity_id, apiEvent.activity_type, apiEvent.calendar_name, apiEvent.description, apiEvent.end, apiEvent.invitation_id, apiEvent.invitation_response, apiEvent.location, apiEvent.meet_up_place, apiEvent.meet_up_time, apiEvent.member_id, apiEvent.start, apiEvent.title, apiEvent.type);
1343
+ const eventFactory = (apiEvent) => new Event(apiEvent.id, apiEvent.activity_id, apiEvent.activity_type, apiEvent.base_background_color, apiEvent.base_color, apiEvent.base_name, apiEvent.calendar_name, apiEvent.description, apiEvent.end, apiEvent.invitation_id, apiEvent.invitation_response, apiEvent.location, apiEvent.meet_up_place, apiEvent.meet_up_time, apiEvent.member_id, apiEvent.start, apiEvent.title, apiEvent.type);
1337
1344
 
1338
1345
  const externalLinkFactory = (apiExternalLink) => new ExternalLink(apiExternalLink.text, apiExternalLink.value);
1339
1346
 
@@ -1343,7 +1350,7 @@ const memberCardFactory = (apiMemberCard) => new MemberCard(apiMemberCard.id, ca
1343
1350
 
1344
1351
  const memberFeeFactory = (apiMemberFee) => new MemberFee(apiMemberFee.id, apiMemberFee.club_id, apiMemberFee.section_id, apiMemberFee.name);
1345
1352
 
1346
- const swishFactory = (apiSwish) => new Swish(apiSwish.club_id, apiSwish.section_id, apiSwish.certificate_valid_until, apiSwish.default_activated, apiSwish.name, apiSwish.status, apiSwish.swish_payee_alias, apiSwish.test_account, apiSwish.uses_myclub_certificate);
1353
+ const swishFactory = (apiSwish) => new Swish(apiSwish.club_id, apiSwish.section_id, apiSwish.certificate_valid_until, apiSwish.default_activated, apiSwish.name, apiSwish.payment_terms_name, apiSwish.payment_terms_organisation_id, apiSwish.payment_terms_url, apiSwish.status, apiSwish.swish_payee_alias, apiSwish.test_account, apiSwish.use_payment_terms, apiSwish.uses_myclub_certificate);
1347
1354
 
1348
1355
  const zimplerFactory = (apiZimpler) => new Zimpler(apiZimpler.club_id, apiZimpler.section_id, apiZimpler.default_activated, apiZimpler.merchant_id, apiZimpler.name, apiZimpler.status, apiZimpler.test_account);
1349
1356