/// <summary> /// Initializes a new instance of the <see cref="Location" /> class. /// </summary> /// <param name="locationId">The unique ID of this location..</param> /// <param name="merchantAddress">merchantAddress.</param> /// <param name="hierarchy">Free-text field to describe a hierarchy the merchant would like to provide..</param> /// <param name="timezoneOffset">The timezone offset from UTC to the merchants timezone configuration, specified in the format +hh:mm..</param> /// <param name="userDefined">A JSON object that can carry any additional information about the location that might be helpful for fraud detection..</param> public Location(string locationId = default(string), FraudAddress merchantAddress = default(FraudAddress), string hierarchy = default(string), string timezoneOffset = default(string), Object userDefined = default(Object)) { this.LocationId = locationId; this.MerchantAddress = merchantAddress; this.Hierarchy = hierarchy; this.TimezoneOffset = timezoneOffset; this.UserDefined = userDefined; }
/// <summary> /// Initializes a new instance of the <see cref="RegistrationMethod" /> class. /// </summary> /// <param name="methodType">Unique ID for the payment method type. (required).</param> /// <param name="methodId">The unique ID of this payment method if it was previously registered with a registration/method or if it is currently being registered. Must be unique for the entire system (not just within a specific merchant or industry). Mandatory if being used inside a registration/method..</param> /// <param name="userDefined">A JSON object that carries any additional information that might be helpful for fraud detection..</param> /// <param name="billingPhoneNumber">The address that should be used to send billing information for this payment method..</param> /// <param name="methodAlias">The address that should be used to send billing information for this payment method..</param> /// <param name="card">card (required).</param> /// <param name="methodAddress">methodAddress.</param> public RegistrationMethod(MethodTypeEnum methodType = default(MethodTypeEnum), string methodId = default(string), Object userDefined = default(Object), string billingPhoneNumber = default(string), string methodAlias = default(string), FraudRegistrationCard card = default(FraudRegistrationCard), FraudAddress methodAddress = default(FraudAddress)) { this.MethodType = methodType; // to ensure "card" is required (not null) this.Card = card ?? throw new ArgumentNullException("card is a required property for RegistrationMethod and cannot be null"); this.MethodId = methodId; this.UserDefined = userDefined; this.BillingPhoneNumber = billingPhoneNumber; this.MethodAlias = methodAlias; this.MethodAddress = methodAddress; }