pub struct CreateTenant { /* private fields */ }Expand description
名前やIDなどを指定してテナントを作成します。
作成したテナントはあとから更新・削除することができます。
Implementations§
Source§impl CreateTenant
impl CreateTenant
Sourcepub fn new(name: impl Into<String>, platform_fee_rate: impl Into<f64>) -> Self
pub fn new(name: impl Into<String>, platform_fee_rate: impl Into<f64>) -> Self
Construct a new CreateTenant.
Sourcepub fn bank_account_holder_name(
self,
bank_account_holder_name: impl Into<String>,
) -> Self
pub fn bank_account_holder_name( self, bank_account_holder_name: impl Into<String>, ) -> Self
口座名義(Payouts型アカウントの場合は必須)
Sourcepub fn bank_account_number(self, bank_account_number: impl Into<String>) -> Self
pub fn bank_account_number(self, bank_account_number: impl Into<String>) -> Self
口座番号(Payouts型アカウントの場合は必須)
Sourcepub fn bank_account_type(self, bank_account_type: impl Into<String>) -> Self
pub fn bank_account_type(self, bank_account_type: impl Into<String>) -> Self
預金種別(Payouts型アカウントの場合は必須)
Sourcepub fn bank_branch_code(self, bank_branch_code: impl Into<String>) -> Self
pub fn bank_branch_code(self, bank_branch_code: impl Into<String>) -> Self
3桁の支店コード(Payouts型アカウントの場合は必須)
Sourcepub fn id(self, id: impl Into<String>) -> Self
pub fn id(self, id: impl Into<String>) -> Self
テナントIDとなる任意の文字列。一意にならないとエラーになります。また、未指定時は自動生成されます。.
pub fn metadata(self, metadata: impl Into<Metadata>) -> Self
Sourcepub fn minimum_transfer_amount(
self,
minimum_transfer_amount: impl Into<i64>,
) -> Self
pub fn minimum_transfer_amount( self, minimum_transfer_amount: impl Into<i64>, ) -> Self
最低入金額。デフォルトは1万円で下限は1000円。
Sourcepub fn payjp_fee_included(self, payjp_fee_included: impl Into<bool>) -> Self
pub fn payjp_fee_included(self, payjp_fee_included: impl Into<bool>) -> Self
テナントのプラットフォーム利用料にPAY.JP決済手数料を含めるかどうか。デフォルトはfalse。作成時にのみ指定可能で、あとから変更はできません。.
Source§impl CreateTenant
impl CreateTenant
Sourcepub async fn send<C: PayjpClient>(
&self,
client: &C,
) -> Result<<Self as PayjpRequest>::Output, C::Err>
pub async fn send<C: PayjpClient>( &self, client: &C, ) -> Result<<Self as PayjpRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: BlockingClient>(
&self,
client: &C,
) -> Result<<Self as PayjpRequest>::Output, C::Err>
pub fn send_blocking<C: BlockingClient>( &self, client: &C, ) -> Result<<Self as PayjpRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for CreateTenant
impl Clone for CreateTenant
Source§fn clone(&self) -> CreateTenant
fn clone(&self) -> CreateTenant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateTenant
impl Debug for CreateTenant
Source§impl PayjpRequest for CreateTenant
impl PayjpRequest for CreateTenant
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizablePayjpRequest<Self::Output>
fn customize(&self) -> CustomizablePayjpRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for CreateTenant
impl RefUnwindSafe for CreateTenant
impl Send for CreateTenant
impl Sync for CreateTenant
impl Unpin for CreateTenant
impl UnwindSafe for CreateTenant
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more