/// <summary> /// Initializes a new instance of the PartnerCreateParams class. /// </summary> /// <param name="companyId">事業所ID</param> /// <param name="name">取引先名 (255文字以内)</param> /// <param name="code">取引先コード</param> /// <param name="shortcut1">ショートカット1 (255文字以内)</param> /// <param name="shortcut2">ショートカット2 (255文字以内)</param> /// <param name="longName">正式名称(255文字以内)</param> /// <param name="nameKana">カナ名称(255文字以内)</param> /// <param name="defaultTitle">敬称(御中、様、(空白)の3つから選択). Possible values /// include: '', '(空白)', '御中', '様'</param> /// <param name="phone">電話番号</param> /// <param name="contactName">営業担当者名 (255文字以内)</param> /// <param name="email">営業担当者 メールアドレス (255文字以内)</param> public PartnerCreateParams(int companyId, string name, string code = default(string), string shortcut1 = default(string), string shortcut2 = default(string), string longName = default(string), string nameKana = default(string), string defaultTitle = default(string), string phone = default(string), string contactName = default(string), string email = default(string), PartnerCreateParamsAddressAttributes addressAttributes = default(PartnerCreateParamsAddressAttributes), PartnerCreateParamsPartnerDocSettingAttributes partnerDocSettingAttributes = default(PartnerCreateParamsPartnerDocSettingAttributes), PartnerCreateParamsPartnerBankAccountAttributes partnerBankAccountAttributes = default(PartnerCreateParamsPartnerBankAccountAttributes)) { CompanyId = companyId; Name = name; Code = code; Shortcut1 = shortcut1; Shortcut2 = shortcut2; LongName = longName; NameKana = nameKana; DefaultTitle = defaultTitle; Phone = phone; ContactName = contactName; Email = email; AddressAttributes = addressAttributes; PartnerDocSettingAttributes = partnerDocSettingAttributes; PartnerBankAccountAttributes = partnerBankAccountAttributes; CustomInit(); }
/// <summary> /// Initializes a new instance of the <see cref="PartnerUpdateParams" /> class. /// </summary> /// <param name="addressAttributes">addressAttributes.</param> /// <param name="companyId">事業所ID (required).</param> /// <param name="contactName">担当者 氏名 (255文字以内).</param> /// <param name="countryCode">地域(JP: 国内、ZZ:国外).</param> /// <param name="defaultTitle">敬称(御中、様、(空白)の3つから選択).</param> /// <param name="email">担当者 メールアドレス (255文字以内).</param> /// <param name="invoicePaymentTermAttributes">invoicePaymentTermAttributes.</param> /// <param name="longName">正式名称(255文字以内).</param> /// <param name="name">取引先名 (255文字以内) (required).</param> /// <param name="nameKana">カナ名称(255文字以内).</param> /// <param name="orgCode">事業所種別(null: 未設定、1: 法人、2: 個人).</param> /// <param name="partnerBankAccountAttributes">partnerBankAccountAttributes.</param> /// <param name="partnerDocSettingAttributes">partnerDocSettingAttributes.</param> /// <param name="payerWalletableId">振込元口座ID(一括振込ファイル用):(walletableのtypeが'bank_account'のidのみ指定できます。また、未設定にする場合は、nullを指定してください。).</param> /// <param name="paymentTermAttributes">paymentTermAttributes.</param> /// <param name="phone">電話番号.</param> /// <param name="shortcut1">ショートカット1 (255文字以内).</param> /// <param name="shortcut2">ショートカット2 (255文字以内).</param> /// <param name="transferFeeHandlingSide">振込手数料負担(一括振込ファイル用): (振込元(当方): payer, 振込先(先方): payee).</param> public PartnerUpdateParams(PartnerCreateParamsAddressAttributes addressAttributes = default(PartnerCreateParamsAddressAttributes), int companyId = default(int), string contactName = default(string), CountryCodeEnum?countryCode = default(CountryCodeEnum?), string defaultTitle = default(string), string email = default(string), PartnerCreateParamsInvoicePaymentTermAttributes invoicePaymentTermAttributes = default(PartnerCreateParamsInvoicePaymentTermAttributes), string longName = default(string), string name = default(string), string nameKana = default(string), OrgCodeEnum?orgCode = default(OrgCodeEnum?), PartnerCreateParamsPartnerBankAccountAttributes partnerBankAccountAttributes = default(PartnerCreateParamsPartnerBankAccountAttributes), PartnerCreateParamsPartnerDocSettingAttributes partnerDocSettingAttributes = default(PartnerCreateParamsPartnerDocSettingAttributes), int?payerWalletableId = default(int?), PartnerCreateParamsInvoicePaymentTermAttributes paymentTermAttributes = default(PartnerCreateParamsInvoicePaymentTermAttributes), string phone = default(string), string shortcut1 = default(string), string shortcut2 = default(string), TransferFeeHandlingSideEnum?transferFeeHandlingSide = default(TransferFeeHandlingSideEnum?)) { this.CompanyId = companyId; // to ensure "name" is required (not null) this.Name = name ?? throw new ArgumentNullException("name is a required property for PartnerUpdateParams and cannot be null"); this.AddressAttributes = addressAttributes; this.ContactName = contactName; this.CountryCode = countryCode; this.DefaultTitle = defaultTitle; this.Email = email; this.InvoicePaymentTermAttributes = invoicePaymentTermAttributes; this.LongName = longName; this.NameKana = nameKana; this.OrgCode = orgCode; this.PartnerBankAccountAttributes = partnerBankAccountAttributes; this.PartnerDocSettingAttributes = partnerDocSettingAttributes; this.PayerWalletableId = payerWalletableId; this.PaymentTermAttributes = paymentTermAttributes; this.Phone = phone; this.Shortcut1 = shortcut1; this.Shortcut2 = shortcut2; this.TransferFeeHandlingSide = transferFeeHandlingSide; }
/// <summary> /// Initializes a new instance of the <see cref="PartnerCodeParams" /> class. /// </summary> /// <param name="companyId">事業所ID (required).</param> /// <param name="name">取引先名 (30文字以内) (required).</param> /// <param name="shortcut1">ショートカット1 (20文字以内).</param> /// <param name="shortcut2">ショートカット2 (20文字以内).</param> /// <param name="longName">正式名称(255文字以内).</param> /// <param name="nameKana">カナ名称(255文字以内).</param> /// <param name="defaultTitle">敬称(御中、様、(空白)の3つから選択).</param> /// <param name="phone">電話番号.</param> /// <param name="contactName">担当者 氏名.</param> /// <param name="email">担当者 メールアドレス.</param> /// <param name="addressAttributes">addressAttributes.</param> /// <param name="partnerDocSettingAttributes">partnerDocSettingAttributes.</param> /// <param name="partnerBankAccountAttributes">partnerBankAccountAttributes.</param> public PartnerCodeParams(int companyId = default(int), string name = default(string), string shortcut1 = default(string), string shortcut2 = default(string), string longName = default(string), string nameKana = default(string), string defaultTitle = default(string), string phone = default(string), string contactName = default(string), string email = default(string), PartnerCreateParamsAddressAttributes addressAttributes = default(PartnerCreateParamsAddressAttributes), PartnerCreateParamsPartnerDocSettingAttributes partnerDocSettingAttributes = default(PartnerCreateParamsPartnerDocSettingAttributes), PartnerCreateParamsPartnerBankAccountAttributes partnerBankAccountAttributes = default(PartnerCreateParamsPartnerBankAccountAttributes)) { this.CompanyId = companyId; // to ensure "name" is required (not null) this.Name = name ?? throw new ArgumentNullException("name is a required property for PartnerCodeParams and cannot be null");; this.Shortcut1 = shortcut1; this.Shortcut2 = shortcut2; this.LongName = longName; this.NameKana = nameKana; this.DefaultTitle = defaultTitle; this.Phone = phone; this.ContactName = contactName; this.Email = email; this.AddressAttributes = addressAttributes; this.PartnerDocSettingAttributes = partnerDocSettingAttributes; this.PartnerBankAccountAttributes = partnerBankAccountAttributes; }