public void Copy(PayPalDirectPaymentSettings settings, bool fromSettings) { if (fromSettings) { MiniMapper.Map(settings, this); } else { MiniMapper.Map(this, settings); settings.ApiAccountName = ApiAccountName.TrimSafe(); settings.ApiAccountPassword = ApiAccountPassword.TrimSafe(); settings.ClientId = ClientId.TrimSafe(); settings.ExperienceProfileId = ExperienceProfileId.TrimSafe(); settings.Secret = Secret.TrimSafe(); settings.Signature = Signature.TrimSafe(); settings.WebhookId = WebhookId.TrimSafe(); } }
public void Copy(PayPalPlusPaymentSettings settings, bool fromSettings) { if (fromSettings) { MiniMapper.Map(settings, this); } else { TransactMode = TransactMode.AuthorizeAndCapture; MiniMapper.Map(this, settings); settings.ApiAccountName = ApiAccountName.TrimSafe(); settings.ApiAccountPassword = ApiAccountPassword.TrimSafe(); settings.ClientId = ClientId.TrimSafe(); settings.ExperienceProfileId = ExperienceProfileId.TrimSafe(); settings.Secret = Secret.TrimSafe(); settings.Signature = Signature.TrimSafe(); settings.WebhookId = WebhookId.TrimSafe(); } }