Skip to content

Commit

Permalink
Add new 'require_successful_payment' optional field for CreditLedgerI…
Browse files Browse the repository at this point in the history
…nvoiceSettingsRequestParams
  • Loading branch information
aarashy committed Mar 12, 2024
1 parent f43b797 commit b8e82ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/client/customers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ pub struct CreditLedgerInvoiceSettingsRequestParams<'a> {
/// An optional memo to display on the invoice
#[serde(skip_serializing_if = "Option::is_none")]
pub memo: Option<&'a str>,
/// Whether the credits should be withheld from the customer account until the invoice is paid.
/// This applies primarily to stripe invoicing.
pub require_successful_payment: Option<bool>,
}

/// The parameters used to create a customer credit ledger entry.
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ mod util;

pub use client::customers::{
AddIncrementCreditLedgerEntryRequestParams, AddVoidCreditLedgerEntryRequestParams, Address,
AddressRequest, CostViewMode, CreateCustomerRequest, Customer, CustomerCostBucket,
CustomerCostItem, CustomerCostParams, CustomerCostPriceBlock,
AddressRequest, CostViewMode, CreateCustomerRequest, CreditLedgerInvoiceSettingsRequestParams,
Customer, CustomerCostBucket, CustomerCostItem, CustomerCostParams, CustomerCostPriceBlock,
CustomerCostPriceBlockMatrixPrice, CustomerCostPriceBlockMatrixPriceConfig,
CustomerCostPriceBlockMatrixPriceValue, CustomerCostPriceBlockPrice,
CustomerCostPriceBlockPriceGroup, CustomerCostPriceBlockUnitPrice,
Expand Down

0 comments on commit b8e82ea

Please sign in to comment.