From 22e34275fa7ef7a78edc9b2435a05bd034116bf2 Mon Sep 17 00:00:00 2001 From: Sierd Weidema Date: Tue, 11 Jul 2023 12:06:29 +0200 Subject: [PATCH] Supplier creditTerms (#202) --- Visma.net/Models/Supplier.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Visma.net/Models/Supplier.cs b/Visma.net/Models/Supplier.cs index 56c5489..67f61fd 100644 --- a/Visma.net/Models/Supplier.cs +++ b/Visma.net/Models/Supplier.cs @@ -68,8 +68,8 @@ public string corporateId public CreditTerms creditTerms { - get => Get("creditTermsId", new CreditTerms("30")); - set => Set(value); + get => Get("creditTermsId", new CreditTerms()); + set => Set(value, "creditTermsId"); } public string currencyId @@ -88,7 +88,8 @@ public string documentLanguage [JsonProperty] public JObject extras { get; private set; } - public SupplierGLAccountDto glAccounts { + public SupplierGLAccountDto glAccounts + { get => Get(); set => Set(value); }