PaymentRequestResponsePaymentRequest

Struct PaymentRequestResponsePaymentRequest 

Source
pub struct PaymentRequestResponsePaymentRequest {
Show 35 fields pub id: i32, pub company_id: i32, pub title: String, pub application_date: String, pub description: String, pub total_amount: i64, pub status: Status, pub payment_request_lines: Vec<PaymentRequestResponsePaymentRequestPaymentRequestLinesInner>, pub deal_id: Option<i32>, pub deal_status: Option<DealStatus>, pub applicant_id: i32, pub approvers: Vec<ExpenseApplicationResponseExpenseApplicationApproversInner>, pub application_number: String, pub approval_flow_route_id: i32, pub comments: Vec<ExpenseApplicationResponseExpenseApplicationCommentsInner>, pub approval_flow_logs: Vec<ExpenseApplicationResponseExpenseApplicationApprovalFlowLogsInner>, pub current_step_id: Option<i32>, pub current_round: i32, pub document_code: String, pub receipt_ids: Vec<i32>, pub issue_date: String, pub payment_date: Option<String>, pub payment_method: PaymentMethod, pub partner_id: Option<i32>, pub partner_code: Option<Option<String>>, pub partner_name: Option<String>, pub bank_name: String, pub bank_name_kana: String, pub bank_code: String, pub branch_name: String, pub branch_kana: String, pub branch_code: String, pub account_type: AccountType, pub account_number: String, pub account_name: String,
}

Fields§

§id: i32

支払依頼ID

§company_id: i32

事業所ID

§title: String

申請タイトル

§application_date: String

申請日 (yyyy-mm-dd)

§description: String

備考

§total_amount: i64

合計金額

§status: Status

申請ステータス(draft:下書き, in_progress:申請中, approved:承認済, rejected:却下, feedback:差戻し)

§payment_request_lines: Vec<PaymentRequestResponsePaymentRequestPaymentRequestLinesInner>

支払依頼の項目行一覧(配列)

§deal_id: Option<i32>

取引ID (申請ステータス:statusがapprovedで、取引が存在する時のみdeal_idが表示されます)

§deal_status: Option<DealStatus>

取引ステータス (申請ステータス:statusがapprovedで、取引が存在する時のみdeal_statusが表示されます settled:支払済み, unsettled:支払待ち)

§applicant_id: i32

申請者のユーザーID

§approvers: Vec<ExpenseApplicationResponseExpenseApplicationApproversInner>

承認者(配列) 承認ステップのresource_typeがunspecified (指定なし)の場合はapproversはレスポンスに含まれません。 しかし、resource_typeがunspecifiedの承認ステップにおいて誰かが承認・却下・差し戻しのいずれかのアクションを取った後は、 approversはレスポンスに含まれるようになります。 その場合approversにはアクションを行ったステップのIDとアクションを行ったユーザーのIDが含まれます。

§application_number: String

申請No.

§approval_flow_route_id: i32

申請経路ID

§comments: Vec<ExpenseApplicationResponseExpenseApplicationCommentsInner>

支払依頼のコメント一覧(配列)

§approval_flow_logs: Vec<ExpenseApplicationResponseExpenseApplicationApprovalFlowLogsInner>

支払依頼の承認履歴(配列)

§current_step_id: Option<i32>

現在承認ステップID

§current_round: i32

現在のround。差し戻し等により申請がstepの最初からやり直しになるとroundの値が増えます。

§document_code: String

請求書番号

§receipt_ids: Vec<i32>

ファイルボックス(証憑ファイル)ID

§issue_date: String

発生日 (yyyy-mm-dd)

§payment_date: Option<String>

支払期限 (yyyy-mm-dd)

§payment_method: PaymentMethod

支払方法(none: 指定なし, domestic_bank_transfer: 国内振込, abroad_bank_transfer: 国外振込, account_transfer: 口座振替, credit_card: クレジットカード)

§partner_id: Option<i32>

取引先ID

§partner_code: Option<Option<String>>

取引先コード

§partner_name: Option<String>

取引先名

§bank_name: String

銀行名

§bank_name_kana: String

銀行名(カナ)

§bank_code: String

銀行コード

§branch_name: String

支店名

§branch_kana: String

支店名(カナ)

§branch_code: String

支店番号

§account_type: AccountType

口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他)

§account_number: String

口座番号

§account_name: String

受取人名(カナ)

Implementations§

Source§

impl PaymentRequestResponsePaymentRequest

Source

pub fn new( id: i32, company_id: i32, title: String, application_date: String, description: String, total_amount: i64, status: Status, payment_request_lines: Vec<PaymentRequestResponsePaymentRequestPaymentRequestLinesInner>, deal_id: Option<i32>, deal_status: Option<DealStatus>, applicant_id: i32, approvers: Vec<ExpenseApplicationResponseExpenseApplicationApproversInner>, application_number: String, approval_flow_route_id: i32, comments: Vec<ExpenseApplicationResponseExpenseApplicationCommentsInner>, approval_flow_logs: Vec<ExpenseApplicationResponseExpenseApplicationApprovalFlowLogsInner>, current_step_id: Option<i32>, current_round: i32, document_code: String, receipt_ids: Vec<i32>, issue_date: String, payment_date: Option<String>, payment_method: PaymentMethod, partner_id: Option<i32>, partner_name: Option<String>, bank_name: String, bank_name_kana: String, bank_code: String, branch_name: String, branch_kana: String, branch_code: String, account_type: AccountType, account_number: String, account_name: String, ) -> PaymentRequestResponsePaymentRequest

Trait Implementations§

Source§

impl Clone for PaymentRequestResponsePaymentRequest

Source§

fn clone(&self) -> PaymentRequestResponsePaymentRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PaymentRequestResponsePaymentRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PaymentRequestResponsePaymentRequest

Source§

fn default() -> PaymentRequestResponsePaymentRequest

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PaymentRequestResponsePaymentRequest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for PaymentRequestResponsePaymentRequest

Source§

fn eq(&self, other: &PaymentRequestResponsePaymentRequest) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for PaymentRequestResponsePaymentRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for PaymentRequestResponsePaymentRequest

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,