Skip to content

Commit

Permalink
Manually remove offending compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Aug 19, 2021
1 parent 8ce946a commit df85d6b
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 57 deletions.
10 changes: 2 additions & 8 deletions src/resources/generated/checkout_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use crate::config::{Client, Response};
use crate::ids::{CheckoutSessionId, CustomerId, PaymentIntentId, SubscriptionId};
use crate::params::{Expand, Expandable, List, Metadata, Object, Timestamp};
use crate::resources::{
CheckoutSessionItem, Currency, Customer, Discount, PaymentIntent, PaymentMethodOptionsBoleto,
PaymentMethodOptionsOxxo, SetupIntent, Shipping, Subscription, TaxRate,
CheckoutSessionItem, Currency, Customer, Discount, PaymentIntent, SetupIntent, Shipping,
Subscription, TaxRate,
};

/// The resource representing a Stripe "Session".
Expand Down Expand Up @@ -183,12 +183,6 @@ impl Object for CheckoutSession {
pub struct CheckoutSessionPaymentMethodOptions {
#[serde(skip_serializing_if = "Option::is_none")]
pub acss_debit: Option<CheckoutAcssDebitPaymentMethodOptions>,

#[serde(skip_serializing_if = "Option::is_none")]
pub boleto: Option<PaymentMethodOptionsBoleto>,

#[serde(skip_serializing_if = "Option::is_none")]
pub oxxo: Option<PaymentMethodOptionsOxxo>,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
Expand Down
18 changes: 3 additions & 15 deletions src/resources/generated/invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use crate::ids::{CustomerId, InvoiceId, SubscriptionId};
use crate::params::{Deleted, Expand, Expandable, List, Metadata, Object, RangeQuery, Timestamp};
use crate::resources::{
Account, Address, ApiErrors, Charge, Currency, CustomField, Customer, Discount,
InvoiceLineItem, InvoicePaymentMethodOptionsBancontact, InvoicePaymentMethodOptionsCard,
PaymentIntent, PaymentMethod, PaymentSource, Quote, Shipping, Subscription, TaxId, TaxRate,
InvoiceLineItem, PaymentIntent, PaymentMethod, PaymentSource, Shipping, Subscription, TaxId,
TaxRate,
};

/// The resource representing a Stripe "Invoice".
Expand Down Expand Up @@ -314,10 +314,6 @@ pub struct Invoice {
#[serde(skip_serializing_if = "Option::is_none")]
pub pre_payment_credit_notes_amount: Option<i64>,

/// The quote this invoice was generated from.
#[serde(skip_serializing_if = "Option::is_none")]
pub quote: Option<Expandable<Quote>>,

/// This is the transaction number that appears on email receipts sent for this invoice.
#[serde(skip_serializing_if = "Option::is_none")]
pub receipt_number: Option<String>,
Expand Down Expand Up @@ -516,15 +512,7 @@ pub struct InvoicesPaymentSettings {
}

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct InvoicesPaymentMethodOptions {
/// If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
#[serde(skip_serializing_if = "Option::is_none")]
pub bancontact: Option<InvoicePaymentMethodOptionsBancontact>,

/// If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
#[serde(skip_serializing_if = "Option::is_none")]
pub card: Option<InvoicePaymentMethodOptionsCard>,
}
pub struct InvoicesPaymentMethodOptions {}

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct InvoicesResourceInvoiceTaxId {
Expand Down
9 changes: 1 addition & 8 deletions src/resources/generated/payment_intent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use crate::ids::{CustomerId, MandateId, PaymentIntentId, PaymentMethodId};
use crate::params::{Expand, Expandable, List, Metadata, Object, RangeQuery, Timestamp};
use crate::resources::{
Account, ApiErrors, Application, Charge, Currency, Customer, Invoice, PaymentIntentOffSession,
PaymentMethod, PaymentMethodDetailsCardInstallmentsPlan, PaymentMethodOptionsBoleto,
PaymentMethodOptionsOxxo, Review, Shipping, ShippingParams,
PaymentMethod, PaymentMethodDetailsCardInstallmentsPlan, Review, Shipping, ShippingParams,
};

/// The resource representing a Stripe "PaymentIntent".
Expand Down Expand Up @@ -415,9 +414,6 @@ pub struct PaymentIntentPaymentMethodOptions {
#[serde(skip_serializing_if = "Option::is_none")]
pub bancontact: Option<PaymentMethodOptionsBancontact>,

#[serde(skip_serializing_if = "Option::is_none")]
pub boleto: Option<PaymentMethodOptionsBoleto>,

#[serde(skip_serializing_if = "Option::is_none")]
pub card: Option<PaymentIntentPaymentMethodOptionsCard>,

Expand All @@ -427,9 +423,6 @@ pub struct PaymentIntentPaymentMethodOptions {
#[serde(skip_serializing_if = "Option::is_none")]
pub ideal: Option<PaymentMethodOptionsIdeal>,

#[serde(skip_serializing_if = "Option::is_none")]
pub oxxo: Option<PaymentMethodOptionsOxxo>,

#[serde(skip_serializing_if = "Option::is_none")]
pub p24: Option<PaymentMethodOptionsP24>,

Expand Down
6 changes: 1 addition & 5 deletions src/resources/generated/product.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use serde_derive::{Deserialize, Serialize};
use crate::config::{Client, Response};
use crate::ids::{ProductId, TaxCodeId};
use crate::params::{Deleted, Expand, Expandable, List, Metadata, Object, RangeQuery, Timestamp};
use crate::resources::{PackageDimensions, TaxCode};
use crate::resources::PackageDimensions;

/// The resource representing a Stripe "Product".
///
Expand Down Expand Up @@ -71,10 +71,6 @@ pub struct Product {
#[serde(skip_serializing_if = "Option::is_none")]
pub statement_descriptor: Option<String>,

/// A [tax code](https://stripe.com/docs/tax/tax-codes) ID.
#[serde(skip_serializing_if = "Option::is_none")]
pub tax_code: Option<Expandable<TaxCode>>,

/// A label that represents units of this product in Stripe and on customers’ receipts and invoices.
///
/// When set, this will be included in associated invoice line item descriptions.
Expand Down
10 changes: 2 additions & 8 deletions src/resources/generated/quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use crate::config::{Client, Response};
use crate::ids::{CustomerId, QuoteId};
use crate::params::{Expand, Expandable, List, Metadata, Object, Timestamp};
use crate::resources::{
Account, CheckoutSessionItem, Currency, Customer, Discount, Invoice, Quote,
QuotesResourceTotalDetails, Subscription, SubscriptionSchedule, TaxRate,
Account, CheckoutSessionItem, Currency, Customer, Discount, Invoice, Subscription,
SubscriptionSchedule, TaxRate,
};

/// The resource representing a Stripe "Quote".
Expand Down Expand Up @@ -145,8 +145,6 @@ pub struct Quote {
#[serde(skip_serializing_if = "Option::is_none")]
pub subscription_schedule: Option<Expandable<SubscriptionSchedule>>,

pub total_details: QuotesResourceTotalDetails,

/// The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the invoices.
#[serde(skip_serializing_if = "Option::is_none")]
pub transfer_data: Option<QuotesResourceTransferData>,
Expand Down Expand Up @@ -231,8 +229,6 @@ pub struct QuotesResourceRecurring {
///
/// For example, `interval=month` and `interval_count=3` bills every 3 months.
pub interval_count: u64,

pub total_details: QuotesResourceTotalDetails,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
Expand Down Expand Up @@ -302,8 +298,6 @@ pub struct QuotesResourceUpfront {
/// This does not include pending invoice items that exist on the customer but may still be included in the next invoice.
#[serde(default)]
pub line_items: List<CheckoutSessionItem>,

pub total_details: QuotesResourceTotalDetails,
}

/// The parameters for `Quote::list`.
Expand Down
17 changes: 4 additions & 13 deletions src/resources/generated/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ use crate::config::{Client, Response};
use crate::ids::{CouponId, CustomerId, PriceId, PromotionCodeId, SubscriptionId};
use crate::params::{Deleted, Expand, Expandable, List, Metadata, Object, RangeQuery, Timestamp};
use crate::resources::{
CollectionMethod, Currency, Customer, Discount, Invoice, InvoicePaymentMethodOptionsBancontact,
InvoicePaymentMethodOptionsCard, PaymentMethod, PaymentSource, Scheduled, SetupIntent,
SubscriptionBillingThresholds, SubscriptionItem, SubscriptionItemBillingThresholds,
SubscriptionSchedule, SubscriptionTransferData, TaxRate,
CollectionMethod, Currency, Customer, Discount, Invoice, PaymentMethod, PaymentSource,
Scheduled, SetupIntent, SubscriptionBillingThresholds, SubscriptionItem,
SubscriptionItemBillingThresholds, SubscriptionSchedule, SubscriptionTransferData, TaxRate,
};

/// The resource representing a Stripe "Subscription".
Expand Down Expand Up @@ -296,15 +295,7 @@ pub struct SubscriptionsResourcePaymentSettings {
}

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct SubscriptionsResourcePaymentMethodOptions {
/// This sub-hash contains details about the Bancontact payment method options to pass to invoices created by the subscription.
#[serde(skip_serializing_if = "Option::is_none")]
pub bancontact: Option<InvoicePaymentMethodOptionsBancontact>,

/// This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription.
#[serde(skip_serializing_if = "Option::is_none")]
pub card: Option<InvoicePaymentMethodOptionsCard>,
}
pub struct SubscriptionsResourcePaymentMethodOptions {}

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct SubscriptionsResourcePendingUpdate {
Expand Down

0 comments on commit df85d6b

Please sign in to comment.