Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort includes/extends by method name for consistency #773

Merged
merged 1 commit into from
May 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/stripe/coupon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
module Stripe
class Coupon < APIResource
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Save
include Stripe::APIOperations::Delete
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

OBJECT_NAME = "coupon".freeze
end
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/credit_note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

module Stripe
class CreditNote < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
extend Stripe::APIOperations::Create

OBJECT_NAME = "credit_note".freeze

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/file_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
module Stripe
class FileLink < APIResource
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Save
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

OBJECT_NAME = "file_link".freeze
end
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

module Stripe
class Invoice < APIResource
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Delete
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
include Stripe::APIOperations::Delete
extend Stripe::APIOperations::Create

OBJECT_NAME = "invoice".freeze

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/invoice_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

module Stripe
class InvoiceItem < APIResource
extend Stripe::APIOperations::List
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Delete
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

OBJECT_NAME = "invoiceitem".freeze
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module Stripe
class Order < APIResource
extend Stripe::APIOperations::List
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

OBJECT_NAME = "order".freeze
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/payment_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
module Stripe
class PaymentMethod < APIResource
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Save
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

OBJECT_NAME = "payment_method".freeze

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/payout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module Stripe
class Payout < APIResource
extend Stripe::APIOperations::List
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

OBJECT_NAME = "payout".freeze
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

module Stripe
class Product < APIResource
extend Stripe::APIOperations::List
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Save
include Stripe::APIOperations::Delete
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

OBJECT_NAME = "product".freeze
end
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/recipient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module Stripe
class Recipient < APIResource
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Delete
include Stripe::APIOperations::Save
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

OBJECT_NAME = "recipient".freeze

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/subscription_schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module Stripe
class SubscriptionSchedule < APIResource
extend Stripe::APIOperations::List
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
extend Stripe::APIOperations::NestedResource

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/tax_rate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
module Stripe
class TaxRate < APIResource
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Save
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

OBJECT_NAME = "tax_rate".freeze
end
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module Stripe
class Transfer < APIResource
extend Stripe::APIOperations::List
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save
extend Stripe::APIOperations::NestedResource

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/webhook_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
module Stripe
class WebhookEndpoint < APIResource
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Save
include Stripe::APIOperations::Delete
extend Stripe::APIOperations::List
include Stripe::APIOperations::Save

OBJECT_NAME = "webhook_endpoint".freeze
end
Expand Down