Skip to content

Commit

Permalink
fix: change to keep the end url the same as today
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoccesar committed Sep 1, 2024
1 parent ce325fc commit 4b8c467
Show file tree
Hide file tree
Showing 87 changed files with 88 additions and 88 deletions.
4 changes: 2 additions & 2 deletions openapi/src/url_finder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub struct UrlFinder {
impl UrlFinder {
pub fn new() -> Result<Self> {
let client = Client::builder().user_agent(APP_USER_AGENT).build()?;
let resp = client.get("https://docs.stripe.com/api").send()?;
let resp = client.get("https://stripe.com/docs/api").send()?;

if resp.status().is_success() {
let text = resp.text()?;
Expand All @@ -42,7 +42,7 @@ impl UrlFinder {
let object_names = [format!("{}_object", object_name), object_name];
for name in object_names {
if let Some(path) = self.url_lookup.get(&name) {
return Some(format!("https://docs.stripe.com{}", path));
return Some(format!("https://stripe.com/docs{}", path));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::resources::{

/// The resource representing a Stripe "Account".
///
/// For more details see <https://docs.stripe.com/api/accounts/object>
/// For more details see <https://stripe.com/docs/api/accounts/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Account {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/account_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::params::{Expand, Object, Timestamp};

/// The resource representing a Stripe "AccountLink".
///
/// For more details see <https://docs.stripe.com/api/account_links/object>
/// For more details see <https://stripe.com/docs/api/account_links/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct AccountLink {
/// Time at which the object was created.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/account_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "ConnectEmbeddedMethodAccountSessionCreateMethodAccountSession".
///
/// For more details see <https://docs.stripe.com/api/account_sessions/object>
/// For more details see <https://stripe.com/docs/api/account_sessions/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct AccountSession {

Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/application_fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::resources::{

/// The resource representing a Stripe "PlatformFee".
///
/// For more details see <https://docs.stripe.com/api/application_fees/object>
/// For more details see <https://stripe.com/docs/api/application_fees/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct ApplicationFee {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::resources::{BalanceAmountBySourceType, Currency};

/// The resource representing a Stripe "Balance".
///
/// For more details see <https://docs.stripe.com/api/balance/balance_object>
/// For more details see <https://stripe.com/docs/api/balance/balance_object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Balance {
/// Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts).
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/balance_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::resources::{

/// The resource representing a Stripe "BalanceTransaction".
///
/// For more details see <https://docs.stripe.com/api/balance_transactions/object>
/// For more details see <https://stripe.com/docs/api/balance_transactions/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct BalanceTransaction {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/capability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "AccountCapability".
///
/// For more details see <https://docs.stripe.com/api/capabilities/object>
/// For more details see <https://stripe.com/docs/api/capabilities/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Capability {
/// The identifier for the capability.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::resources::{Account, Currency, Customer};

/// The resource representing a Stripe "Card".
///
/// For more details see <https://docs.stripe.com/api/cards/object>
/// For more details see <https://stripe.com/docs/api/cards/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Card {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/cash_balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::params::Object;

/// The resource representing a Stripe "cash_balance".
///
/// For more details see <https://docs.stripe.com/api/cash_balance/object>
/// For more details see <https://stripe.com/docs/api/cash_balance/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct CashBalance {
/// A hash of all cash balances available to this customer.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/charge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::resources::{

/// The resource representing a Stripe "Charge".
///
/// For more details see <https://docs.stripe.com/api/charges/object>
/// For more details see <https://stripe.com/docs/api/charges/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Charge {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/checkout_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use crate::resources::{

/// The resource representing a Stripe "Session".
///
/// For more details see <https://docs.stripe.com/api/checkout/sessions/object>
/// For more details see <https://stripe.com/docs/api/checkout/sessions/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct CheckoutSession {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/climate_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "ClimateRemovalsOrders".
///
/// For more details see <https://docs.stripe.com/api/climate/order/object>
/// For more details see <https://stripe.com/docs/api/climate/order/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct ClimateOrder {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/climate_product.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "ClimateRemovalsProducts".
///
/// For more details see <https://docs.stripe.com/api/climate/product/object>
/// For more details see <https://stripe.com/docs/api/climate/product/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct ClimateProduct {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/climate_supplier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "ClimateRemovalsSuppliers".
///
/// For more details see <https://docs.stripe.com/api/climate/supplier/object>
/// For more details see <https://stripe.com/docs/api/climate/supplier/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct ClimateSupplier {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/country_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "CountrySpec".
///
/// For more details see <https://docs.stripe.com/api/country_specs/object>
/// For more details see <https://stripe.com/docs/api/country_specs/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct CountrySpec {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/coupon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::resources::Currency;

/// The resource representing a Stripe "Coupon".
///
/// For more details see <https://docs.stripe.com/api/coupons/object>
/// For more details see <https://stripe.com/docs/api/coupons/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Coupon {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/credit_note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::resources::{

/// The resource representing a Stripe "CreditNote".
///
/// For more details see <https://docs.stripe.com/api/credit_notes/object>
/// For more details see <https://stripe.com/docs/api/credit_notes/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct CreditNote {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/credit_note_line_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::resources::{Discount, TaxRate};

/// The resource representing a Stripe "CreditNoteLineItem".
///
/// For more details see <https://docs.stripe.com/api/credit_notes/line_item>
/// For more details see <https://stripe.com/docs/api/credit_notes/line_item>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct CreditNoteLineItem {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/customer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::resources::{

/// The resource representing a Stripe "Customer".
///
/// For more details see <https://docs.stripe.com/api/customers/object>
/// For more details see <https://stripe.com/docs/api/customers/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Customer {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/customer_balance_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::resources::{CreditNote, Currency, Customer, Invoice};

/// The resource representing a Stripe "CustomerBalanceTransaction".
///
/// For more details see <https://docs.stripe.com/api/customer_balance_transactions/object>
/// For more details see <https://stripe.com/docs/api/customer_balance_transactions/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct CustomerBalanceTransaction {
/// Unique identifier for the object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "CustomerCashBalanceTransaction".
///
/// For more details see <https://docs.stripe.com/api/cash_balance_transactions/object>
/// For more details see <https://stripe.com/docs/api/cash_balance_transactions/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct CustomerCashBalanceTransaction {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/customer_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "CustomerSessionResourceCustomerSession".
///
/// For more details see <https://docs.stripe.com/api/customer_sessions/object>
/// For more details see <https://stripe.com/docs/api/customer_sessions/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct CustomerSession {

Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/discount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::resources::{Coupon, Customer, PromotionCode};

/// The resource representing a Stripe "Discount".
///
/// For more details see <https://docs.stripe.com/api/discounts/object>
/// For more details see <https://stripe.com/docs/api/discounts/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Discount {
/// The ID of the discount object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/dispute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::resources::{BalanceTransaction, Charge, Currency, File, PaymentIntent

/// The resource representing a Stripe "Dispute".
///
/// For more details see <https://docs.stripe.com/api/disputes/object>
/// For more details see <https://stripe.com/docs/api/disputes/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Dispute {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::resources::{EventType, NotificationEventData};

/// The resource representing a Stripe "NotificationEvent".
///
/// For more details see <https://docs.stripe.com/api/events/object>
/// For more details see <https://stripe.com/docs/api/events/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Event {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/fee_refund.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::resources::{ApplicationFee, BalanceTransaction, Currency};

/// The resource representing a Stripe "FeeRefund".
///
/// For more details see <https://docs.stripe.com/api/fee_refunds/object>
/// For more details see <https://stripe.com/docs/api/fee_refunds/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct ApplicationFeeRefund {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::resources::FileLink;

/// The resource representing a Stripe "File".
///
/// For more details see <https://docs.stripe.com/api/files/object>
/// For more details see <https://stripe.com/docs/api/files/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct File {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/file_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::resources::{File, Scheduled};

/// The resource representing a Stripe "FileLink".
///
/// For more details see <https://docs.stripe.com/api/file_links/object>
/// For more details see <https://stripe.com/docs/api/file_links/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct FileLink {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/financial_connections_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "BankConnectionsResourceLinkedAccount".
///
/// For more details see <https://docs.stripe.com/api/financial_connections/accounts/object>
/// For more details see <https://stripe.com/docs/api/financial_connections/accounts/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct FinancialConnectionsAccount {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/financial_connections_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "BankConnectionsResourceLinkAccountSession".
///
/// For more details see <https://docs.stripe.com/api/financial_connections/sessions/object>
/// For more details see <https://stripe.com/docs/api/financial_connections/sessions/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct FinancialConnectionsSession {
/// Unique identifier for the object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "BankConnectionsResourceTransaction".
///
/// For more details see <https://docs.stripe.com/api/financial_connections/transactions/object>
/// For more details see <https://stripe.com/docs/api/financial_connections/transactions/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct FinancialConnectionsTransaction {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/identity_verification_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "GelatoVerificationReport".
///
/// For more details see <https://docs.stripe.com/api/identity/verification_reports/object>
/// For more details see <https://stripe.com/docs/api/identity/verification_reports/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct IdentityVerificationReport {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/identity_verification_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};

/// The resource representing a Stripe "GelatoVerificationSession".
///
/// For more details see <https://docs.stripe.com/api/identity/verification_sessions/object>
/// For more details see <https://stripe.com/docs/api/identity/verification_sessions/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct IdentityVerificationSession {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::resources::{

/// The resource representing a Stripe "Invoice".
///
/// For more details see <https://docs.stripe.com/api/invoices/object>
/// For more details see <https://stripe.com/docs/api/invoices/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Invoice {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/invoiceitem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::resources::{

/// The resource representing a Stripe "InvoiceItem".
///
/// For more details see <https://docs.stripe.com/api/invoiceitems/object>
/// For more details see <https://stripe.com/docs/api/invoiceitems/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct InvoiceItem {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/issuing_authorization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::resources::{

/// The resource representing a Stripe "IssuingAuthorization".
///
/// For more details see <https://docs.stripe.com/api/issuing/authorizations/object>
/// For more details see <https://stripe.com/docs/api/issuing/authorizations/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct IssuingAuthorization {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/issuing_card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::resources::{

/// The resource representing a Stripe "IssuingCard".
///
/// For more details see <https://docs.stripe.com/api/issuing/cards/object>
/// For more details see <https://stripe.com/docs/api/issuing/cards/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct IssuingCard {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/issuing_cardholder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::resources::{Address, Currency, File, MerchantCategory};

/// The resource representing a Stripe "IssuingCardholder".
///
/// For more details see <https://docs.stripe.com/api/issuing/cardholders/object>
/// For more details see <https://stripe.com/docs/api/issuing/cardholders/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct IssuingCardholder {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/issuing_dispute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::resources::{

/// The resource representing a Stripe "IssuingDispute".
///
/// For more details see <https://docs.stripe.com/api/issuing/disputes/object>
/// For more details see <https://stripe.com/docs/api/issuing/disputes/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct IssuingDispute {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/issuing_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::resources::IssuingCard;

/// The resource representing a Stripe "IssuingNetworkToken".
///
/// For more details see <https://docs.stripe.com/api/issuing/tokens/object>
/// For more details see <https://stripe.com/docs/api/issuing/tokens/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct IssuingToken {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/issuing_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::resources::{

/// The resource representing a Stripe "IssuingTransaction".
///
/// For more details see <https://docs.stripe.com/api/issuing/transactions/object>
/// For more details see <https://stripe.com/docs/api/issuing/transactions/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct IssuingTransaction {
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/generated/login_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::params::{Object, Timestamp};

/// The resource representing a Stripe "LoginLink".
///
/// For more details see <https://docs.stripe.com/api/accounts/login_link/object>
/// For more details see <https://stripe.com/docs/api/accounts/login_link/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct LoginLink {
/// Time at which the object was created.
Expand Down
Loading

0 comments on commit 4b8c467

Please sign in to comment.