Skip to content

Commit

Permalink
Deprecate ServiceNested class (#3051)
Browse files Browse the repository at this point in the history
Also deprecates Service<T>
  • Loading branch information
jar-stripe authored Feb 5, 2025
1 parent 559e1fe commit 966aacd
Show file tree
Hide file tree
Showing 155 changed files with 159 additions and 155 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class AccountCapabilityService : ServiceNested<Capability>,
public class AccountCapabilityService : Service,
INestedListable<Capability, AccountCapabilityListOptions>,
INestedRetrievable<Capability, AccountCapabilityGetOptions>,
INestedUpdatable<Capability, AccountCapabilityUpdateOptions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class AccountExternalAccountService : ServiceNested<IExternalAccount>,
public class AccountExternalAccountService : Service,
INestedCreatable<IExternalAccount, AccountExternalAccountCreateOptions>,
INestedDeletable<IExternalAccount, AccountExternalAccountDeleteOptions>,
INestedListable<IExternalAccount, AccountExternalAccountListOptions>,
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/AccountLinks/AccountLinkService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class AccountLinkService : Service<AccountLink>,
public class AccountLinkService : Service,
ICreatable<AccountLink, AccountLinkCreateOptions>
{
public AccountLinkService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class AccountLoginLinkService : ServiceNested<LoginLink>,
public class AccountLoginLinkService : Service,
INestedCreatable<LoginLink, AccountLoginLinkCreateOptions>
{
public AccountLoginLinkService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class AccountPersonService : ServiceNested<Person>,
public class AccountPersonService : Service,
INestedCreatable<Person, AccountPersonCreateOptions>,
INestedDeletable<Person, AccountPersonDeleteOptions>,
INestedListable<Person, AccountPersonListOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class AccountSessionService : Service<AccountSession>,
public class AccountSessionService : Service,
ICreatable<AccountSession, AccountSessionCreateOptions>
{
public AccountSessionService()
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/Accounts/AccountService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class AccountService : Service<Account>,
public class AccountService : Service,
ICreatable<Account, AccountCreateOptions>,
IDeletable<Account, AccountDeleteOptions>,
IListable<Account, AccountListOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class ApplePayDomainService : Service<ApplePayDomain>,
public class ApplePayDomainService : Service,
ICreatable<ApplePayDomain, ApplePayDomainCreateOptions>,
IDeletable<ApplePayDomain, ApplePayDomainDeleteOptions>,
IListable<ApplePayDomain, ApplePayDomainListOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class ApplicationFeeRefundService : ServiceNested<ApplicationFeeRefund>,
public class ApplicationFeeRefundService : Service,
INestedCreatable<ApplicationFeeRefund, ApplicationFeeRefundCreateOptions>,
INestedListable<ApplicationFeeRefund, ApplicationFeeRefundListOptions>,
INestedRetrievable<ApplicationFeeRefund, ApplicationFeeRefundGetOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class ApplicationFeeService : Service<ApplicationFee>,
public class ApplicationFeeService : Service,
IListable<ApplicationFee, ApplicationFeeListOptions>,
IRetrievable<ApplicationFee, ApplicationFeeGetOptions>
{
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/Apps/Secrets/SecretService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Stripe.Apps
using System.Threading;
using System.Threading.Tasks;

public class SecretService : Service<Secret>,
public class SecretService : Service,
ICreatable<Secret, SecretCreateOptions>,
IListable<Secret, SecretListOptions>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class BalanceTransactionService : Service<BalanceTransaction>,
public class BalanceTransactionService : Service,
IListable<BalanceTransaction, BalanceTransactionListOptions>,
IRetrievable<BalanceTransaction, BalanceTransactionGetOptions>
{
Expand Down
3 changes: 1 addition & 2 deletions src/Stripe.net/Services/Balances/BalanceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class BalanceService : Service<Balance>,
ISingletonRetrievable<Balance>
public class BalanceService : Service, ISingletonRetrievable<Balance>
{
public BalanceService()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/BankAccounts/BankAccountService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class BankAccountService : ServiceNested<BankAccount>,
public class BankAccountService : Service,
INestedCreatable<BankAccount, BankAccountCreateOptions>,
INestedDeletable<BankAccount, BankAccountDeleteOptions>,
INestedListable<BankAccount, BankAccountListOptions>,
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/Billing/Alerts/AlertService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe.Billing
using System.Threading;
using System.Threading.Tasks;

public class AlertService : Service<Alert>,
public class AlertService : Service,
ICreatable<Alert, AlertCreateOptions>,
IListable<Alert, AlertListOptions>,
IRetrievable<Alert, AlertGetOptions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe.Billing
using System.Threading;
using System.Threading.Tasks;

public class CreditBalanceSummaryService : Service<CreditBalanceSummary>,
public class CreditBalanceSummaryService : Service,
ISingletonRetrievable<CreditBalanceSummary>
{
public CreditBalanceSummaryService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe.Billing
using System.Threading;
using System.Threading.Tasks;

public class CreditBalanceTransactionService : Service<CreditBalanceTransaction>,
public class CreditBalanceTransactionService : Service,
IListable<CreditBalanceTransaction, CreditBalanceTransactionListOptions>,
IRetrievable<CreditBalanceTransaction, CreditBalanceTransactionGetOptions>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe.Billing
using System.Threading;
using System.Threading.Tasks;

public class CreditGrantService : Service<CreditGrant>,
public class CreditGrantService : Service,
ICreatable<CreditGrant, CreditGrantCreateOptions>,
IListable<CreditGrant, CreditGrantListOptions>,
IRetrievable<CreditGrant, CreditGrantGetOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe.Billing
using System.Threading;
using System.Threading.Tasks;

public class MeterEventAdjustmentService : Service<MeterEventAdjustment>,
public class MeterEventAdjustmentService : Service,
ICreatable<MeterEventAdjustment, MeterEventAdjustmentCreateOptions>
{
public MeterEventAdjustmentService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe.Billing
using System.Threading;
using System.Threading.Tasks;

public class MeterEventSummaryService : ServiceNested<MeterEventSummary>,
public class MeterEventSummaryService : Service,
INestedListable<MeterEventSummary, MeterEventSummaryListOptions>
{
public MeterEventSummaryService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe.Billing
using System.Threading;
using System.Threading.Tasks;

public class MeterEventService : Service<MeterEvent>,
public class MeterEventService : Service,
ICreatable<MeterEvent, MeterEventCreateOptions>
{
public MeterEventService()
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/Billing/Meters/MeterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe.Billing
using System.Threading;
using System.Threading.Tasks;

public class MeterService : Service<Meter>,
public class MeterService : Service,
ICreatable<Meter, MeterCreateOptions>,
IListable<Meter, MeterListOptions>,
IRetrievable<Meter, MeterGetOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe.BillingPortal
using System.Threading;
using System.Threading.Tasks;

public class ConfigurationService : Service<Configuration>,
public class ConfigurationService : Service,
ICreatable<Configuration, ConfigurationCreateOptions>,
IListable<Configuration, ConfigurationListOptions>,
IRetrievable<Configuration, ConfigurationGetOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe.BillingPortal
using System.Threading;
using System.Threading.Tasks;

public class SessionService : Service<Session>,
public class SessionService : Service,
ICreatable<Session, SessionCreateOptions>
{
public SessionService()
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/Cards/CardService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class CardService : ServiceNested<Card>,
public class CardService : Service,
INestedCreatable<Card, CardCreateOptions>,
INestedDeletable<Card, CardDeleteOptions>,
INestedListable<Card, CardListOptions>,
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/Charges/ChargeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class ChargeService : Service<Charge>,
public class ChargeService : Service,
ICreatable<Charge, ChargeCreateOptions>,
IListable<Charge, ChargeListOptions>,
IRetrievable<Charge, ChargeGetOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe.Checkout
using System.Threading;
using System.Threading.Tasks;

public class SessionLineItemService : ServiceNested<LineItem>,
public class SessionLineItemService : Service,
INestedListable<LineItem, SessionLineItemListOptions>
{
public SessionLineItemService()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe.Checkout
using System.Threading;
using System.Threading.Tasks;

public partial class SessionService : Service<Session>,
public partial class SessionService : Service,
ICreatable<Session, SessionCreateOptions>,
IListable<Session, SessionListOptions>,
IRetrievable<Session, SessionGetOptions>,
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/Climate/Orders/OrderService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe.Climate
using System.Threading;
using System.Threading.Tasks;

public class OrderService : Service<Order>,
public class OrderService : Service,
ICreatable<Order, OrderCreateOptions>,
IListable<Order, OrderListOptions>,
IRetrievable<Order, OrderGetOptions>,
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/Climate/Products/ProductService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe.Climate
using System.Threading;
using System.Threading.Tasks;

public class ProductService : Service<Product>,
public class ProductService : Service,
IListable<Product, ProductListOptions>,
IRetrievable<Product, ProductGetOptions>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe.Climate
using System.Threading;
using System.Threading.Tasks;

public class SupplierService : Service<Supplier>,
public class SupplierService : Service,
IListable<Supplier, SupplierListOptions>,
IRetrievable<Supplier, SupplierGetOptions>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class ConfirmationTokenService : Service<ConfirmationToken>,
public class ConfirmationTokenService : Service,
IRetrievable<ConfirmationToken, ConfirmationTokenGetOptions>
{
public ConfirmationTokenService()
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/CountrySpecs/CountrySpecService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class CountrySpecService : Service<CountrySpec>,
public class CountrySpecService : Service,
IListable<CountrySpec, CountrySpecListOptions>,
IRetrievable<CountrySpec, CountrySpecGetOptions>
{
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/Coupons/CouponService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class CouponService : Service<Coupon>,
public class CouponService : Service,
ICreatable<Coupon, CouponCreateOptions>,
IDeletable<Coupon, CouponDeleteOptions>,
IListable<Coupon, CouponListOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class CreditNotePreviewLinesService : ServiceNested<CreditNoteLineItem>
public class CreditNotePreviewLinesService : Service
{
public CreditNotePreviewLinesService()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/CreditNotes/CreditNoteService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public partial class CreditNoteService : Service<CreditNote>,
public partial class CreditNoteService : Service,
ICreatable<CreditNote, CreditNoteCreateOptions>,
IListable<CreditNote, CreditNoteListOptions>,
IRetrievable<CreditNote, CreditNoteGetOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public partial class CreditNoteService : Service<CreditNote>,
public partial class CreditNoteService : Service,
ICreatable<CreditNote, CreditNoteCreateOptions>,
IListable<CreditNote, CreditNoteListOptions>,
IRetrievable<CreditNote, CreditNoteGetOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class CustomerBalanceTransactionService : ServiceNested<CustomerBalanceTransaction>,
public class CustomerBalanceTransactionService : Service,
INestedCreatable<CustomerBalanceTransaction, CustomerBalanceTransactionCreateOptions>,
INestedListable<CustomerBalanceTransaction, CustomerBalanceTransactionListOptions>,
INestedRetrievable<CustomerBalanceTransaction, CustomerBalanceTransactionGetOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class CustomerCashBalanceTransactionService : ServiceNested<CustomerCashBalanceTransaction>,
public class CustomerCashBalanceTransactionService : Service,
INestedListable<CustomerCashBalanceTransaction, CustomerCashBalanceTransactionListOptions>,
INestedRetrievable<CustomerCashBalanceTransaction, CustomerCashBalanceTransactionGetOptions>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class CustomerCashBalanceService : ServiceNested<CashBalance>
public class CustomerCashBalanceService : Service
{
public CustomerCashBalanceService()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class CustomerFundingInstructionsService : ServiceNested<FundingInstructions>
public class CustomerFundingInstructionsService : Service
{
public CustomerFundingInstructionsService()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class CustomerPaymentMethodService : ServiceNested<PaymentMethod>,
public class CustomerPaymentMethodService : Service,
INestedListable<PaymentMethod, CustomerPaymentMethodListOptions>,
INestedRetrievable<PaymentMethod, CustomerPaymentMethodGetOptions>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class CustomerPaymentSourceService : ServiceNested<IPaymentSource>,
public class CustomerPaymentSourceService : Service,
INestedCreatable<IPaymentSource, CustomerPaymentSourceCreateOptions>,
INestedDeletable<IPaymentSource, CustomerPaymentSourceDeleteOptions>,
INestedListable<IPaymentSource, CustomerPaymentSourceListOptions>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe
using System.Threading;
using System.Threading.Tasks;

public class CustomerSessionService : Service<CustomerSession>,
public class CustomerSessionService : Service,
ICreatable<CustomerSession, CustomerSessionCreateOptions>
{
public CustomerSessionService()
Expand Down
Loading

0 comments on commit 966aacd

Please sign in to comment.