@myclub_se/data-access 1.7.1 → 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.
@@ -738,15 +738,19 @@ class Giro {
738
738
  }
739
739
 
740
740
  class Swish {
741
- 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) {
742
742
  this.clubId = clubId;
743
743
  this.sectionId = sectionId;
744
744
  this.certificateValidUntil = certificateValidUntil;
745
745
  this.defaultActivated = defaultActivated;
746
746
  this.name = name;
747
+ this.paymentTermsName = paymentTermsName;
748
+ this.paymentTermsOrganisationId = paymentTermsOrganisationId;
749
+ this.paymentTermsUrl = paymentTermsUrl;
747
750
  this.status = status;
748
751
  this.swishPayeeAlias = swishPayeeAlias;
749
752
  this.testAccount = testAccount;
753
+ this.usePaymentTerms = usePaymentTerms;
750
754
  this.usesMyClubCertificate = usesMyClubCertificate;
751
755
  }
752
756
  }
@@ -1346,7 +1350,7 @@ const memberCardFactory = (apiMemberCard) => new MemberCard(apiMemberCard.id, ca
1346
1350
 
1347
1351
  const memberFeeFactory = (apiMemberFee) => new MemberFee(apiMemberFee.id, apiMemberFee.club_id, apiMemberFee.section_id, apiMemberFee.name);
1348
1352
 
1349
- 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);
1350
1354
 
1351
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);
1352
1356