Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SubscriberActive" /> class.
 /// </summary>
 /// <param name="State">State</param>
 public SubscriberActive(long?Id = default(long?), List <long?> AdditionalAllowedPaymentMethodConfigurations = default(List <long?>), string Description = default(string), Dictionary <string, string> MetaData = default(Dictionary <string, string>), string Reference = default(string), CreationEntityState?State = default(CreationEntityState?), AddressCreate ShippingAddress = default(AddressCreate), long?Version = default(long?), List <long?> DisallowedPaymentMethodConfigurations = default(List <long?>), AddressCreate BillingAddress = default(AddressCreate), string Language = default(string), string EmailAddress = default(string))
 {
     this.State   = State;
     this.Id      = Id;
     this.Version = Version;
     this.AdditionalAllowedPaymentMethodConfigurations = AdditionalAllowedPaymentMethodConfigurations;
     this.BillingAddress = BillingAddress;
     this.Description    = Description;
     this.DisallowedPaymentMethodConfigurations = DisallowedPaymentMethodConfigurations;
     this.EmailAddress    = EmailAddress;
     this.Language        = Language;
     this.MetaData        = MetaData;
     this.Reference       = Reference;
     this.ShippingAddress = ShippingAddress;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TransactionCreate" /> class.
 /// </summary>
 /// <param name="AutoConfirmationEnabled">When auto confirmation is enabled the transaction can be confirmed by the user and does not require an explicit confirmation through the web service API.</param>
 /// <param name="ChargeRetryEnabled">When the charging of the customer fails we can retry the charging. This implies that we redirect the user back to the payment page which allows the customer to retry. By default we will retry.</param>
 /// <param name="CustomersPresence">The customer&#39;s presence indicates what kind of authentication methods can be used during the authorization of the transaction. If no value is provided, &#39;Virtually Present&#39; is used by default.</param>
 /// <param name="DeviceSessionIdentifier">The device session identifier links the transaction with the session identifier provided in the URL of the device data JavaScript. This allows to link the transaction with the collected device data of the buyer.</param>
 /// <param name="Environment">Environment</param>
 /// <param name="EnvironmentSelectionStrategy">The environment selection strategy determines how the environment (test or production) for processing the transaction is selected.</param>
 /// <param name="SpaceViewId">SpaceViewId</param>
 public TransactionCreate(TransactionEnvironmentSelectionStrategy?EnvironmentSelectionStrategy = default(TransactionEnvironmentSelectionStrategy?), string InvoiceMerchantReference = default(string), string SuccessUrl = default(string), List <LineItemCreate> LineItems = default(List <LineItemCreate>), CustomersPresence?CustomersPresence = default(CustomersPresence?), string Language = default(string), Environment?Environment = default(Environment?), string Currency = default(string), string CustomerEmailAddress = default(string), string FailedUrl = default(string), bool?ChargeRetryEnabled = default(bool?), Dictionary <string, string> MetaData = default(Dictionary <string, string>), string CustomerId = default(string), List <long?> AllowedPaymentMethodConfigurations = default(List <long?>), string MerchantReference = default(string), AddressCreate ShippingAddress = default(AddressCreate), long?SpaceViewId = default(long?), long?Token = default(long?), string ShippingMethod = default(string), bool?AutoConfirmationEnabled = default(bool?), AddressCreate BillingAddress = default(AddressCreate), List <PaymentMethodBrand> AllowedPaymentMethodBrands = default(List <PaymentMethodBrand>), string DeviceSessionIdentifier = default(string), string TimeZone = default(string))
 {
     this.AutoConfirmationEnabled            = AutoConfirmationEnabled;
     this.ChargeRetryEnabled                 = ChargeRetryEnabled;
     this.CustomersPresence                  = CustomersPresence;
     this.DeviceSessionIdentifier            = DeviceSessionIdentifier;
     this.Environment                        = Environment;
     this.EnvironmentSelectionStrategy       = EnvironmentSelectionStrategy;
     this.SpaceViewId                        = SpaceViewId;
     this.AllowedPaymentMethodBrands         = AllowedPaymentMethodBrands;
     this.AllowedPaymentMethodConfigurations = AllowedPaymentMethodConfigurations;
     this.BillingAddress                     = BillingAddress;
     this.Currency                 = Currency;
     this.CustomerEmailAddress     = CustomerEmailAddress;
     this.CustomerId               = CustomerId;
     this.FailedUrl                = FailedUrl;
     this.InvoiceMerchantReference = InvoiceMerchantReference;
     this.Language                 = Language;
     this.LineItems                = LineItems;
     this.MerchantReference        = MerchantReference;
     this.MetaData                 = MetaData;
     this.ShippingAddress          = ShippingAddress;
     this.ShippingMethod           = ShippingMethod;
     this.SuccessUrl               = SuccessUrl;
     this.TimeZone                 = TimeZone;
     this.Token = Token;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AbstractSubscriberUpdate" /> class.
 /// </summary>
 /// <param name="AdditionalAllowedPaymentMethodConfigurations">Those payment methods which are allowed additionally will be available even when the product does not allow those methods.</param>
 /// <param name="BillingAddress">BillingAddress</param>
 /// <param name="Description">The subscriber description can be used to add a description to the subscriber. This is used in the back office to identify the subscriber.</param>
 /// <param name="DisallowedPaymentMethodConfigurations">Those payment methods which are disallowed will not be available to the subscriber even if the product allows those methods.</param>
 /// <param name="EmailAddress">The email address is used to communicate with the subscriber. There can be only one subscriber per space with the same email address.</param>
 /// <param name="Language">The subscriber language determines the language which is used to communicate with the subscriber in emails and documents (e.g. invoices).</param>
 /// <param name="MetaData">Meta data allow to store additional data along the object.</param>
 /// <param name="Reference">The subscriber reference identifies the subscriber in administrative interfaces (e.g. customer id).</param>
 /// <param name="ShippingAddress">ShippingAddress</param>
 public AbstractSubscriberUpdate(List <long?> AdditionalAllowedPaymentMethodConfigurations = default(List <long?>), string Description = default(string), Dictionary <string, string> MetaData = default(Dictionary <string, string>), string Reference = default(string), AddressCreate BillingAddress = default(AddressCreate), List <long?> DisallowedPaymentMethodConfigurations = default(List <long?>), AddressCreate ShippingAddress = default(AddressCreate), string Language = default(string), string EmailAddress = default(string))
 {
     this.AdditionalAllowedPaymentMethodConfigurations = AdditionalAllowedPaymentMethodConfigurations;
     this.BillingAddress = BillingAddress;
     this.Description    = Description;
     this.DisallowedPaymentMethodConfigurations = DisallowedPaymentMethodConfigurations;
     this.EmailAddress    = EmailAddress;
     this.Language        = Language;
     this.MetaData        = MetaData;
     this.Reference       = Reference;
     this.ShippingAddress = ShippingAddress;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SubscriberCreate" /> class.
 /// </summary>
 /// <param name="State">State</param>
 /// <param name="ExternalId">The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity. (required)</param>
 public SubscriberCreate(List <long?> AdditionalAllowedPaymentMethodConfigurations = default(List <long?>), string Description = default(string), string Reference = default(string), CreationEntityState?State = default(CreationEntityState?), AddressCreate ShippingAddress = default(AddressCreate), List <long?> DisallowedPaymentMethodConfigurations = default(List <long?>), AddressCreate BillingAddress = default(AddressCreate), string ExternalId = default(string), string Language = default(string), string EmailAddress = default(string))
 {
     // to ensure "ExternalId" is required (not null)
     if (ExternalId == null)
     {
         throw new ArgumentNullException("ExternalId is a required property for SubscriberCreate and cannot be null");
     }
     else
     {
         this.ExternalId = ExternalId;
     }
     this.State = State;
     this.AdditionalAllowedPaymentMethodConfigurations = AdditionalAllowedPaymentMethodConfigurations;
     this.BillingAddress = BillingAddress;
     this.Description    = Description;
     this.DisallowedPaymentMethodConfigurations = DisallowedPaymentMethodConfigurations;
     this.EmailAddress    = EmailAddress;
     this.Language        = Language;
     this.Reference       = Reference;
     this.ShippingAddress = ShippingAddress;
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TransactionPending" /> class.
 /// </summary>
 /// <param name="Id">The ID is the primary key of the entity. The ID identifies the entity uniquely. (required)</param>
 /// <param name="Version">The version number indicates the version of the entity. The version is incremented whenever the entity is changed. (required)</param>
 public TransactionPending(long?Id = default(long?), string InvoiceMerchantReference = default(string), string SuccessUrl = default(string), List <LineItemCreate> LineItems = default(List <LineItemCreate>), string Language = default(string), string Currency = default(string), string FailedUrl = default(string), Dictionary <string, string> MetaData = default(Dictionary <string, string>), string CustomerId = default(string), List <long?> AllowedPaymentMethodConfigurations = default(List <long?>), string MerchantReference = default(string), AddressCreate ShippingAddress = default(AddressCreate), long?Token = default(long?), long?Version = default(long?), string ShippingMethod = default(string), AddressCreate BillingAddress = default(AddressCreate), List <PaymentMethodBrand> AllowedPaymentMethodBrands = default(List <PaymentMethodBrand>), string CustomerEmailAddress = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new ArgumentNullException("Id is a required property for TransactionPending and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Version" is required (not null)
     if (Version == null)
     {
         throw new ArgumentNullException("Version is a required property for TransactionPending and cannot be null");
     }
     else
     {
         this.Version = Version;
     }
     this.AllowedPaymentMethodBrands         = AllowedPaymentMethodBrands;
     this.AllowedPaymentMethodConfigurations = AllowedPaymentMethodConfigurations;
     this.BillingAddress           = BillingAddress;
     this.Currency                 = Currency;
     this.CustomerEmailAddress     = CustomerEmailAddress;
     this.CustomerId               = CustomerId;
     this.FailedUrl                = FailedUrl;
     this.InvoiceMerchantReference = InvoiceMerchantReference;
     this.Language                 = Language;
     this.LineItems                = LineItems;
     this.MerchantReference        = MerchantReference;
     this.MetaData                 = MetaData;
     this.ShippingAddress          = ShippingAddress;
     this.ShippingMethod           = ShippingMethod;
     this.SuccessUrl               = SuccessUrl;
     this.Token = Token;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AbstractTransactionPending" /> class.
 /// </summary>
 /// <param name="AllowedPaymentMethodBrands">AllowedPaymentMethodBrands</param>
 /// <param name="AllowedPaymentMethodConfigurations">AllowedPaymentMethodConfigurations</param>
 /// <param name="BillingAddress">BillingAddress</param>
 /// <param name="Currency">Currency</param>
 /// <param name="CustomerEmailAddress">The customer email address is the email address of the customer. If no email address is provided on the shipping or billing address this address is used.</param>
 /// <param name="CustomerId">CustomerId</param>
 /// <param name="FailedUrl">The user will be redirected to failed URL when the transaction could not be authorized or completed. In case no failed URL is specified a default failed page will be displayed.</param>
 /// <param name="InvoiceMerchantReference">InvoiceMerchantReference</param>
 /// <param name="Language">Language</param>
 /// <param name="LineItems">LineItems</param>
 /// <param name="MerchantReference">MerchantReference</param>
 /// <param name="MetaData">Meta data allow to store additional data along the object.</param>
 /// <param name="ShippingAddress">ShippingAddress</param>
 /// <param name="ShippingMethod">ShippingMethod</param>
 /// <param name="SuccessUrl">The user will be redirected to success URL when the transaction could be authorized or completed. In case no success URL is specified a default success page will be displayed.</param>
 /// <param name="TimeZone">The time zone defines in which time zone the customer is located in. The time zone may affects how dates are formatted when interacting with the customer.</param>
 /// <param name="Token">Token</param>
 public AbstractTransactionPending(List <PaymentMethodBrand> AllowedPaymentMethodBrands = default(List <PaymentMethodBrand>), string SuccessUrl = default(string), string InvoiceMerchantReference = default(string), string Currency = default(string), long?Token = default(long?), AddressCreate BillingAddress = default(AddressCreate), List <long?> AllowedPaymentMethodConfigurations = default(List <long?>), string CustomerEmailAddress = default(string), string FailedUrl = default(string), Dictionary <string, string> MetaData = default(Dictionary <string, string>), string ShippingMethod = default(string), string CustomerId = default(string), List <LineItemCreate> LineItems = default(List <LineItemCreate>), AddressCreate ShippingAddress = default(AddressCreate), string Language = default(string), string MerchantReference = default(string), string TimeZone = default(string))
 {
     this.AllowedPaymentMethodBrands         = AllowedPaymentMethodBrands;
     this.AllowedPaymentMethodConfigurations = AllowedPaymentMethodConfigurations;
     this.BillingAddress           = BillingAddress;
     this.Currency                 = Currency;
     this.CustomerEmailAddress     = CustomerEmailAddress;
     this.CustomerId               = CustomerId;
     this.FailedUrl                = FailedUrl;
     this.InvoiceMerchantReference = InvoiceMerchantReference;
     this.Language                 = Language;
     this.LineItems                = LineItems;
     this.MerchantReference        = MerchantReference;
     this.MetaData                 = MetaData;
     this.ShippingAddress          = ShippingAddress;
     this.ShippingMethod           = ShippingMethod;
     this.SuccessUrl               = SuccessUrl;
     this.TimeZone                 = TimeZone;
     this.Token = Token;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TransactionCreate" /> class.
 /// </summary>
 /// <param name="ChargeRetryEnabled">When the charging of the customer fails we can retry the charging. This implies that we redirect the user back to the payment page which allows the customer to retry. By default we will retry.</param>
 /// <param name="CustomersPresence">CustomersPresence</param>
 /// <param name="SpaceViewId">SpaceViewId</param>
 public TransactionCreate(string InvoiceMerchantReference = default(string), string SuccessUrl = default(string), List <LineItemCreate> LineItems = default(List <LineItemCreate>), string Language = default(string), string Currency = default(string), string FailedUrl = default(string), CustomersPresence?CustomersPresence = default(CustomersPresence?), bool?ChargeRetryEnabled = default(bool?), Dictionary <string, string> MetaData = default(Dictionary <string, string>), string CustomerId = default(string), List <long?> AllowedPaymentMethodConfigurations = default(List <long?>), string MerchantReference = default(string), AddressCreate ShippingAddress = default(AddressCreate), long?SpaceViewId = default(long?), long?Token = default(long?), string ShippingMethod = default(string), AddressCreate BillingAddress = default(AddressCreate), List <PaymentMethodBrand> AllowedPaymentMethodBrands = default(List <PaymentMethodBrand>), string CustomerEmailAddress = default(string))
 {
     this.ChargeRetryEnabled                 = ChargeRetryEnabled;
     this.CustomersPresence                  = CustomersPresence;
     this.SpaceViewId                        = SpaceViewId;
     this.AllowedPaymentMethodBrands         = AllowedPaymentMethodBrands;
     this.AllowedPaymentMethodConfigurations = AllowedPaymentMethodConfigurations;
     this.BillingAddress                     = BillingAddress;
     this.Currency                 = Currency;
     this.CustomerEmailAddress     = CustomerEmailAddress;
     this.CustomerId               = CustomerId;
     this.FailedUrl                = FailedUrl;
     this.InvoiceMerchantReference = InvoiceMerchantReference;
     this.Language                 = Language;
     this.LineItems                = LineItems;
     this.MerchantReference        = MerchantReference;
     this.MetaData                 = MetaData;
     this.ShippingAddress          = ShippingAddress;
     this.ShippingMethod           = ShippingMethod;
     this.SuccessUrl               = SuccessUrl;
     this.Token = Token;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SubscriberUpdate" /> class.
 /// </summary>
 /// <param name="Id">The ID is the primary key of the entity. The ID identifies the entity uniquely. (required)</param>
 /// <param name="Version">The version number indicates the version of the entity. The version is incremented whenever the entity is changed. (required)</param>
 /// <param name="AdditionalAllowedPaymentMethodConfigurations">Those payment methods which are allowed additionally will be available even when the product does not allow those methods.</param>
 /// <param name="BillingAddress">BillingAddress</param>
 /// <param name="Description">The subscriber description can be used to add a description to the subscriber. This is used in the back office to identify the subscriber.</param>
 /// <param name="DisallowedPaymentMethodConfigurations">Those payment methods which are disallowed will not be available to the subscriber even if the product allows those methods.</param>
 /// <param name="EmailAddress">The email address is used to communicate with the subscriber. There can be only one subscriber per space with the same email address.</param>
 /// <param name="Language">The subscriber language determines the language which is used to communicate with the subscriber in emails and documents (e.g. invoices).</param>
 /// <param name="Reference">The subscriber reference identifies the subscriber in administrative interfaces (e.g. customer id).</param>
 /// <param name="ShippingAddress">ShippingAddress</param>
 public SubscriberUpdate(long?Id = default(long?), List <long?> AdditionalAllowedPaymentMethodConfigurations = default(List <long?>), string Description = default(string), string Reference = default(string), AddressCreate BillingAddress = default(AddressCreate), long?Version = default(long?), List <long?> DisallowedPaymentMethodConfigurations = default(List <long?>), AddressCreate ShippingAddress = default(AddressCreate), string Language = default(string), string EmailAddress = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new ArgumentNullException("Id is a required property for SubscriberUpdate and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Version" is required (not null)
     if (Version == null)
     {
         throw new ArgumentNullException("Version is a required property for SubscriberUpdate and cannot be null");
     }
     else
     {
         this.Version = Version;
     }
     this.AdditionalAllowedPaymentMethodConfigurations = AdditionalAllowedPaymentMethodConfigurations;
     this.BillingAddress = BillingAddress;
     this.Description    = Description;
     this.DisallowedPaymentMethodConfigurations = DisallowedPaymentMethodConfigurations;
     this.EmailAddress    = EmailAddress;
     this.Language        = Language;
     this.Reference       = Reference;
     this.ShippingAddress = ShippingAddress;
 }