/// <summary> /// Initializes a new instance of the Invoice class. /// </summary> /// <param name="id">請求書ID</param> /// <param name="companyId">事業所ID</param> /// <param name="issueDate">請求日 (yyyy-mm-dd)</param> /// <param name="partnerId">取引先ID</param> /// <param name="invoiceNumber">請求書番号</param> /// <param name="totalAmount">合計金額</param> /// <param name="invoiceStatus">請求書ステータス (draft: 下書き, applying: 申請中, /// remanded: 差し戻し, rejected: 却下, approved: 承認済み, issued: 発行済み). /// Possible values include: 'draft', 'applying', 'remanded', /// 'rejected', 'approved', 'issued'</param> /// <param name="postingStatus">郵送ステータス(unrequested: リクエスト前, /// preview_registered: プレビュー登録, preview_failed: プレビュー登録失敗, ordered: /// 注文中, order_failed: 注文失敗, printing: 印刷中, canceled: キャンセル, posted: /// 投函済み). Possible values include: '', 'unrequested', /// 'preview_registered', 'preview_failed', 'ordered', 'order_failed', /// 'printing', 'canceled', 'posted'</param> /// <param name="companyName">事業所名</param> /// <param name="paymentType">支払方法 (振込: transfer, 引き落とし: direct_debit). /// Possible values include: '', 'transfer', 'direct_debit'</param> /// <param name="invoiceLayout">レイアウト(default_classic: レイアウト1/クラシック, /// standard_classic: レイアウト2/クラシック, envelope_classic: 封筒1/クラシック, /// carried_forward_standard_classic: レイアウト3(繰越金額欄あり)/クラシック, /// carried_forward_envelope_classic: 封筒2(繰越金額欄あり)/クラシック, /// default_modern: レイアウト1/モダン, standard_modern: レイアウト2/モダン, /// envelope_modern: 封筒/モダン). Possible values include: /// 'default_classic', 'standard_classic', 'envelope_classic', /// 'carried_forward_standard_classic', /// 'carried_forward_envelope_classic', 'default_modern', /// 'standard_modern', 'envelope_modern'</param> /// <param name="taxEntryMethod">請求書の消費税計算方法(inclusive: 内税, exclusive: /// 外税). Possible values include: '', 'inclusive', 'exclusive'</param> /// <param name="partnerCode">取引先コード</param> /// <param name="title">タイトル</param> /// <param name="dueDate">期日 (yyyy-mm-dd)</param> /// <param name="totalVat">合計金額</param> /// <param name="subTotal">小計</param> /// <param name="bookingDate">売上計上日</param> /// <param name="description">概要</param> /// <param name="paymentStatus">入金ステータス (unsettled: 入金待ち, settled: /// 入金済み). Possible values include: '', 'unsettled', 'settled'</param> /// <param name="paymentDate">入金日</param> /// <param name="webPublishedAt">Web共有日時(最新)</param> /// <param name="webDownloadedAt">Web共有ダウンロード日時(最新)</param> /// <param name="webConfirmedAt">Web共有取引先確認日時(最新)</param> /// <param name="mailSentAt">メール送信日時(最新)</param> /// <param name="partnerName">取引先名</param> /// <param name="partnerLongName">取引先正式名称</param> /// <param name="partnerTitle">敬称(御中、様、(空白)の3つから選択). Possible values /// include: '御中', '様', '(空白)'</param> /// <param name="partnerZipcode">郵便番号</param> /// <param /// name="partnerPrefectureCode">都道府県コード(0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄</param> /// <param name="partnerPrefectureName">都道府県</param> /// <param name="partnerAddress1">市区町村・番地</param> /// <param name="partnerAddress2">建物名・部屋番号など</param> /// <param name="partnerContactInfo">取引先担当者名</param> /// <param name="companyZipcode">郵便番号</param> /// <param /// name="companyPrefectureCode">都道府県コード(0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄</param> /// <param name="companyPrefectureName">都道府県</param> /// <param name="companyAddress1">市区町村・番地</param> /// <param name="companyAddress2">建物名・部屋番号など</param> /// <param name="companyContactInfo">事業所担当者名</param> /// <param name="paymentBankInfo">支払口座</param> /// <param name="message">メッセージ</param> /// <param name="notes">備考</param> /// <param name="dealId">取引ID /// (invoice_statusがissuedの時のみIDが表示されます)</param> /// <param name="invoiceContents">請求内容</param> public Invoice(int id, int companyId, string issueDate, int?partnerId, string invoiceNumber, int totalAmount, string invoiceStatus, string postingStatus, string companyName, string paymentType, string invoiceLayout, string taxEntryMethod, InvoiceTotalAmountPerVatRate totalAmountPerVatRate, string partnerCode = default(string), string title = default(string), string dueDate = default(string), int?totalVat = default(int?), int?subTotal = default(int?), string bookingDate = default(string), string description = default(string), string paymentStatus = default(string), string paymentDate = default(string), string webPublishedAt = default(string), string webDownloadedAt = default(string), string webConfirmedAt = default(string), string mailSentAt = default(string), string partnerName = default(string), string partnerLongName = default(string), string partnerTitle = default(string), string partnerZipcode = default(string), int?partnerPrefectureCode = default(int?), string partnerPrefectureName = default(string), string partnerAddress1 = default(string), string partnerAddress2 = default(string), string partnerContactInfo = default(string), string companyZipcode = default(string), int?companyPrefectureCode = default(int?), string companyPrefectureName = default(string), string companyAddress1 = default(string), string companyAddress2 = default(string), string companyContactInfo = default(string), string paymentBankInfo = default(string), string message = default(string), string notes = default(string), int?dealId = default(int?), IList <InvoiceInvoiceContentsItem> invoiceContents = default(IList <InvoiceInvoiceContentsItem>)) { Id = id; CompanyId = companyId; IssueDate = issueDate; PartnerId = partnerId; PartnerCode = partnerCode; InvoiceNumber = invoiceNumber; Title = title; DueDate = dueDate; TotalAmount = totalAmount; TotalVat = totalVat; SubTotal = subTotal; BookingDate = bookingDate; Description = description; InvoiceStatus = invoiceStatus; PaymentStatus = paymentStatus; PaymentDate = paymentDate; WebPublishedAt = webPublishedAt; WebDownloadedAt = webDownloadedAt; WebConfirmedAt = webConfirmedAt; MailSentAt = mailSentAt; PostingStatus = postingStatus; PartnerName = partnerName; PartnerLongName = partnerLongName; PartnerTitle = partnerTitle; PartnerZipcode = partnerZipcode; PartnerPrefectureCode = partnerPrefectureCode; PartnerPrefectureName = partnerPrefectureName; PartnerAddress1 = partnerAddress1; PartnerAddress2 = partnerAddress2; PartnerContactInfo = partnerContactInfo; CompanyName = companyName; CompanyZipcode = companyZipcode; CompanyPrefectureCode = companyPrefectureCode; CompanyPrefectureName = companyPrefectureName; CompanyAddress1 = companyAddress1; CompanyAddress2 = companyAddress2; CompanyContactInfo = companyContactInfo; PaymentType = paymentType; PaymentBankInfo = paymentBankInfo; Message = message; Notes = notes; InvoiceLayout = invoiceLayout; TaxEntryMethod = taxEntryMethod; DealId = dealId; InvoiceContents = invoiceContents; TotalAmountPerVatRate = totalAmountPerVatRate; CustomInit(); }
/// <summary> /// Initializes a new instance of the <see cref="Quotation" /> class. /// </summary> /// <param name="companyAddress1">市区町村・番地.</param> /// <param name="companyAddress2">建物名・部屋番号など.</param> /// <param name="companyContactInfo">事業所担当者名.</param> /// <param name="companyId">事業所ID (required).</param> /// <param name="companyName">事業所名 (required).</param> /// <param name="companyPrefectureCode">都道府県コード(0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄.</param> /// <param name="companyPrefectureName">都道府県.</param> /// <param name="companyZipcode">郵便番号.</param> /// <param name="description">概要.</param> /// <param name="id">見積書ID (required).</param> /// <param name="issueDate">見積日 (yyyy-mm-dd) (required).</param> /// <param name="mailSentAt">メール送信日時(最新).</param> /// <param name="message">メッセージ.</param> /// <param name="notes">備考.</param> /// <param name="partnerAddress1">市区町村・番地.</param> /// <param name="partnerAddress2">建物名・部屋番号など.</param> /// <param name="partnerCode">取引先コード.</param> /// <param name="partnerContactInfo">取引先担当者名.</param> /// <param name="partnerDisplayName">見積書に表示する取引先名.</param> /// <param name="partnerId">取引先ID (required).</param> /// <param name="partnerName">取引先名.</param> /// <param name="partnerPrefectureCode">都道府県コード(0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄.</param> /// <param name="partnerPrefectureName">都道府県.</param> /// <param name="partnerTitle">敬称(御中、様、(空白)の3つから選択) (required).</param> /// <param name="partnerZipcode">郵便番号.</param> /// <param name="quotationContents">見積内容.</param> /// <param name="quotationLayout">見積書レイアウト * `default_classic` - レイアウト1/クラシック (デフォルト) * `standard_classic` - レイアウト2/クラシック * `envelope_classic` - 封筒1/クラシック * `default_modern` - レイアウト1/モダン * `standard_modern` - レイアウト2/モダン * `envelope_modern` - 封筒/モダン (required).</param> /// <param name="quotationNumber">見積書番号 (required).</param> /// <param name="quotationStatus">見積書ステータス (unsubmitted: 送付待ち, submitted: 送付済み, all: 全て) (required).</param> /// <param name="subTotal">小計.</param> /// <param name="taxEntryMethod">見積書の消費税計算方法(inclusive: 内税, exclusive: 外税) (required).</param> /// <param name="title">タイトル.</param> /// <param name="totalAmount">合計金額 (required).</param> /// <param name="totalAmountPerVatRate">totalAmountPerVatRate (required).</param> /// <param name="totalVat">消費税.</param> /// <param name="webConfirmedAt">Web共有取引先確認日時(最新).</param> /// <param name="webDownloadedAt">Web共有ダウンロード日時(最新).</param> /// <param name="webPublishedAt">Web共有日時(最新).</param> public Quotation(string companyAddress1 = default(string), string companyAddress2 = default(string), string companyContactInfo = default(string), int companyId = default(int), string companyName = default(string), int?companyPrefectureCode = default(int?), string companyPrefectureName = default(string), string companyZipcode = default(string), string description = default(string), int id = default(int), string issueDate = default(string), string mailSentAt = default(string), string message = default(string), string notes = default(string), string partnerAddress1 = default(string), string partnerAddress2 = default(string), string partnerCode = default(string), string partnerContactInfo = default(string), string partnerDisplayName = default(string), int?partnerId = default(int?), string partnerName = default(string), int?partnerPrefectureCode = default(int?), string partnerPrefectureName = default(string), string partnerTitle = default(string), string partnerZipcode = default(string), List <QuotationQuotationContents> quotationContents = default(List <QuotationQuotationContents>), QuotationLayoutEnum quotationLayout = default(QuotationLayoutEnum), string quotationNumber = default(string), QuotationStatusEnum quotationStatus = default(QuotationStatusEnum), int subTotal = default(int), TaxEntryMethodEnum taxEntryMethod = default(TaxEntryMethodEnum), string title = default(string), int totalAmount = default(int), InvoiceTotalAmountPerVatRate totalAmountPerVatRate = default(InvoiceTotalAmountPerVatRate), int totalVat = default(int), string webConfirmedAt = default(string), string webDownloadedAt = default(string), string webPublishedAt = default(string)) { this.CompanyId = companyId; // to ensure "companyName" is required (not null) this.CompanyName = companyName ?? throw new ArgumentNullException("companyName is a required property for Quotation and cannot be null"); this.Id = id; // to ensure "issueDate" is required (not null) this.IssueDate = issueDate ?? throw new ArgumentNullException("issueDate is a required property for Quotation and cannot be null"); // to ensure "partnerId" is required (not null) this.PartnerId = partnerId ?? throw new ArgumentNullException("partnerId is a required property for Quotation and cannot be null"); // to ensure "partnerTitle" is required (not null) this.PartnerTitle = partnerTitle ?? throw new ArgumentNullException("partnerTitle is a required property for Quotation and cannot be null"); this.QuotationLayout = quotationLayout; // to ensure "quotationNumber" is required (not null) this.QuotationNumber = quotationNumber ?? throw new ArgumentNullException("quotationNumber is a required property for Quotation and cannot be null"); this.QuotationStatus = quotationStatus; this.TaxEntryMethod = taxEntryMethod; this.TotalAmount = totalAmount; // to ensure "totalAmountPerVatRate" is required (not null) this.TotalAmountPerVatRate = totalAmountPerVatRate ?? throw new ArgumentNullException("totalAmountPerVatRate is a required property for Quotation and cannot be null"); this.CompanyAddress1 = companyAddress1; this.CompanyAddress2 = companyAddress2; this.CompanyContactInfo = companyContactInfo; this.CompanyPrefectureCode = companyPrefectureCode; this.CompanyPrefectureName = companyPrefectureName; this.CompanyZipcode = companyZipcode; this.Description = description; this.MailSentAt = mailSentAt; this.Message = message; this.Notes = notes; this.PartnerAddress1 = partnerAddress1; this.PartnerAddress2 = partnerAddress2; this.PartnerCode = partnerCode; this.PartnerContactInfo = partnerContactInfo; this.PartnerDisplayName = partnerDisplayName; this.PartnerName = partnerName; this.PartnerPrefectureCode = partnerPrefectureCode; this.PartnerPrefectureName = partnerPrefectureName; this.PartnerZipcode = partnerZipcode; this.QuotationContents = quotationContents; this.SubTotal = subTotal; this.Title = title; this.TotalVat = totalVat; this.WebConfirmedAt = webConfirmedAt; this.WebDownloadedAt = webDownloadedAt; this.WebPublishedAt = webPublishedAt; }