Esempio n. 1
0
        public static CDSFreeTextInvoiceHeader CreateCDSFreeTextInvoiceHeader(string dataAreaId,
                                                                              string externalInvoiceId,
                                                                              global::System.DateTimeOffset cashDiscountDate,
                                                                              global::System.DateTimeOffset documentDate,
                                                                              global::System.DateTimeOffset paymentTermsBaseDate,
                                                                              int paymentTermsBaseDays,
                                                                              global::System.DateTimeOffset dueDate,
                                                                              global::System.DateTimeOffset invoiceDate,
                                                                              global::Microsoft.Dynamics.DataEntities.Currency currency,
                                                                              global::Microsoft.Dynamics.DataEntities.CustomerV3 orderingCustomer)
        {
            CDSFreeTextInvoiceHeader cDSFreeTextInvoiceHeader = new CDSFreeTextInvoiceHeader();

            cDSFreeTextInvoiceHeader.dataAreaId           = dataAreaId;
            cDSFreeTextInvoiceHeader.ExternalInvoiceId    = externalInvoiceId;
            cDSFreeTextInvoiceHeader.CashDiscountDate     = cashDiscountDate;
            cDSFreeTextInvoiceHeader.DocumentDate         = documentDate;
            cDSFreeTextInvoiceHeader.PaymentTermsBaseDate = paymentTermsBaseDate;
            cDSFreeTextInvoiceHeader.PaymentTermsBaseDays = paymentTermsBaseDays;
            cDSFreeTextInvoiceHeader.DueDate     = dueDate;
            cDSFreeTextInvoiceHeader.InvoiceDate = invoiceDate;
            if ((currency == null))
            {
                throw new global::System.ArgumentNullException("currency");
            }
            cDSFreeTextInvoiceHeader.Currency = currency;
            if ((orderingCustomer == null))
            {
                throw new global::System.ArgumentNullException("orderingCustomer");
            }
            cDSFreeTextInvoiceHeader.OrderingCustomer = orderingCustomer;
            return(cDSFreeTextInvoiceHeader);
        }
        public static CustomerContactInfo CreateCustomerContactInfo(string dataAreaId,
                                                                    string customerAccountNumber,
                                                                    string customerDataAreaId,
                                                                    string locator,
                                                                    string description,
                                                                    global::Microsoft.Dynamics.DataEntities.CustomerV3 customer)
        {
            CustomerContactInfo customerContactInfo = new CustomerContactInfo();

            customerContactInfo.dataAreaId            = dataAreaId;
            customerContactInfo.CustomerAccountNumber = customerAccountNumber;
            customerContactInfo.CustomerDataAreaId    = customerDataAreaId;
            customerContactInfo.Locator     = locator;
            customerContactInfo.Description = description;
            if ((customer == null))
            {
                throw new global::System.ArgumentNullException("customer");
            }
            customerContactInfo.Customer = customer;
            return(customerContactInfo);
        }
Esempio n. 3
0
        public static CDSParty CreateCDSParty(string partyNumber,
                                              int personBirthDay,
                                              int personAnniversaryYear,
                                              int personAnniversaryDay,
                                              int personBirthYear,
                                              int organizationNumOfEmployees,
                                              global::Microsoft.Dynamics.DataEntities.CustomerV3 customer)
        {
            CDSParty cDSParty = new CDSParty();

            cDSParty.PartyNumber                = partyNumber;
            cDSParty.PersonBirthDay             = personBirthDay;
            cDSParty.PersonAnniversaryYear      = personAnniversaryYear;
            cDSParty.PersonAnniversaryDay       = personAnniversaryDay;
            cDSParty.PersonBirthYear            = personBirthYear;
            cDSParty.OrganizationNumOfEmployees = organizationNumOfEmployees;
            if ((customer == null))
            {
                throw new global::System.ArgumentNullException("customer");
            }
            cDSParty.Customer = customer;
            return(cDSParty);
        }
Esempio n. 4
0
 partial void OnCustomerChanging(global::Microsoft.Dynamics.DataEntities.CustomerV3 value);
        public static CustomerAttachment CreateCustomerAttachment(string dataAreaId, global::System.Guid documentId, global::Microsoft.Dynamics.DataEntities.CustomerV3 customerAttachmentsEntity)
        {
            CustomerAttachment customerAttachment = new CustomerAttachment();

            customerAttachment.dataAreaId = dataAreaId;
            customerAttachment.DocumentId = documentId;
            if ((customerAttachmentsEntity == null))
            {
                throw new global::System.ArgumentNullException("customerAttachmentsEntity");
            }
            customerAttachment.CustomerAttachmentsEntity = customerAttachmentsEntity;
            return(customerAttachment);
        }
Esempio n. 6
0
 partial void OnClaimPaymentRecipientCustomerChanging(global::Microsoft.Dynamics.DataEntities.CustomerV3 value);
Esempio n. 7
0
        public static CustomerRebateAndDeductionsGroupAssignment CreateCustomerRebateAndDeductionsGroupAssignment(string dataAreaId, string customerRebateAndDeductionsGroupId, string customerAccountNumber, global::Microsoft.Dynamics.DataEntities.CustomerRebateAndDeductionsGroup customerRebateAndDeductionsGroup, global::Microsoft.Dynamics.DataEntities.CustomerV3 customerV3)
        {
            CustomerRebateAndDeductionsGroupAssignment customerRebateAndDeductionsGroupAssignment = new CustomerRebateAndDeductionsGroupAssignment();

            customerRebateAndDeductionsGroupAssignment.dataAreaId = dataAreaId;
            customerRebateAndDeductionsGroupAssignment.CustomerRebateAndDeductionsGroupId = customerRebateAndDeductionsGroupId;
            customerRebateAndDeductionsGroupAssignment.CustomerAccountNumber = customerAccountNumber;
            if ((customerRebateAndDeductionsGroup == null))
            {
                throw new global::System.ArgumentNullException("customerRebateAndDeductionsGroup");
            }
            customerRebateAndDeductionsGroupAssignment.CustomerRebateAndDeductionsGroup = customerRebateAndDeductionsGroup;
            if ((customerV3 == null))
            {
                throw new global::System.ArgumentNullException("customerV3");
            }
            customerRebateAndDeductionsGroupAssignment.CustomerV3 = customerV3;
            return(customerRebateAndDeductionsGroupAssignment);
        }