Skip to content

Commit

Permalink
Release v0.17.0-alpha (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet authored Dec 8, 2022
1 parent 48dd434 commit 670d01a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api
Submodule api updated 90 files
+3 −3 Gemfile.lock
+1 −1 app/controllers/api/v1/invoices_controller.rb
+35 −0 app/graphql/resolvers/customer_credit_notes_resolver.rb
+28 −0 app/graphql/resolvers/invoice_credit_notes_resolver.rb
+6 −0 app/graphql/types/credit_note_items/object.rb
+1 −0 app/graphql/types/credit_notes/object.rb
+21 −2 app/graphql/types/customers/object.rb
+0 −4 app/graphql/types/fees/object.rb
+17 −5 app/graphql/types/invoices/object.rb
+13 −0 app/graphql/types/invoices/payment_status_type_enum.rb
+0 −13 app/graphql/types/invoices/status_type_enum.rb
+2 −0 app/graphql/types/query_type.rb
+1 −1 app/graphql/types/subscriptions/object.rb
+2 −1 app/models/credit_note.rb
+16 −0 app/models/credit_note_item.rb
+4 −0 app/models/fee.rb
+20 −9 app/models/invoice.rb
+1 −1 app/models/subscription.rb
+3 −2 app/serializers/v1/customer_usage_serializer.rb
+4 −1 app/serializers/v1/invoice_serializer.rb
+3 −2 app/serializers/v1/legacy/customer_usage_serializer.rb
+21 −13 app/services/base_service.rb
+80 −0 app/services/credit_notes/create_from_upgrade.rb
+11 −6 app/services/credit_notes/create_service.rb
+0 −1 app/services/credit_notes/refunds/stripe_service.rb
+2 −2 app/services/credit_notes/validate_item_service.rb
+8 −1 app/services/credit_notes/validate_service.rb
+5 −5 app/services/credits/applied_coupon_service.rb
+2 −2 app/services/credits/applied_prepaid_credit_service.rb
+2 −3 app/services/credits/credit_note_service.rb
+3 −1 app/services/fees/paid_credit_service.rb
+11 −49 app/services/fees/subscription_service.rb
+7 −6 app/services/invoices/add_on_service.rb
+8 −5 app/services/invoices/calculate_fees_service.rb
+2 −3 app/services/invoices/create_service.rb
+1 −1 app/services/invoices/customer_usage_service.rb
+4 −5 app/services/invoices/paid_credit_service.rb
+21 −21 app/services/invoices/payments/gocardless_service.rb
+12 −12 app/services/invoices/payments/stripe_service.rb
+9 −9 app/services/invoices/update_service.rb
+3 −3 app/services/payment_providers/gocardless_service.rb
+1 −1 app/services/payment_providers/stripe_service.rb
+10 −1 app/services/subscriptions/create_service.rb
+5 −5 app/services/subscriptions/dates/monthly_service.rb
+4 −4 app/services/subscriptions/dates/weekly_service.rb
+4 −4 app/services/subscriptions/dates/yearly_service.rb
+3 −3 app/services/subscriptions/dates_service.rb
+1 −1 app/views/templates/credit_note.slim
+17 −13 app/views/templates/invoice.slim
+19 −0 db/migrate/20221020093745_add_credit_amount_to_invoices.rb
+17 −0 db/migrate/20221122163328_rename_status_on_invoices.rb
+4 −1 db/schema.rb
+2 −0 db/seeds/invoices.rb
+2 −2 lib/tasks/fees.rake
+10 −0 lib/tasks/invoices.rake
+23 −0 lib/tasks/signup.rake
+80 −2 schema.graphql
+559 −12 schema.json
+1 −0 scripts/start.dev.sh
+1 −0 scripts/start.sh
+1 −1 spec/controllers/api/v1/credit_notes_controller_spec.rb
+3 −1 spec/factories/invoices.rb
+1 −1 spec/graphql/mutations/credit_notes/create_spec.rb
+101 −0 spec/graphql/resolvers/customer_credit_notes_resolver_spec.rb
+24 −4 spec/graphql/resolvers/customer_resolver_spec.rb
+102 −0 spec/graphql/resolvers/invoice_credit_notes_resolver_spec.rb
+2 −0 spec/graphql/resolvers/invoice_resolver_spec.rb
+4 −4 spec/requests/api/v1/invoices_spec.rb
+144 −0 spec/services/credit_notes/create_from_upgrade_spec.rb
+14 −13 spec/services/credit_notes/create_service_spec.rb
+1 −0 spec/services/credit_notes/validate_item_service_spec.rb
+2 −0 spec/services/credits/applied_coupon_service_spec.rb
+2 −0 spec/services/credits/applied_prepaid_credit_service_spec.rb
+2 −0 spec/services/credits/credit_note_service_spec.rb
+2 −2 spec/services/fees/paid_credit_service_spec.rb
+31 −264 spec/services/fees/subscription_service_spec.rb
+1 −3 spec/services/invoices/add_on_service_spec.rb
+34 −24 spec/services/invoices/calculate_fees_service_spec.rb
+4 −2 spec/services/invoices/create_service_spec.rb
+4 −6 spec/services/invoices/paid_credit_service_spec.rb
+13 −13 spec/services/invoices/payments/gocardless_service_spec.rb
+11 −11 spec/services/invoices/payments/stripe_service_spec.rb
+11 −11 spec/services/invoices/update_service_spec.rb
+2 −2 spec/services/payment_providers/gocardless_service_spec.rb
+3 −3 spec/services/payment_providers/stripe_service_spec.rb
+48 −0 spec/services/subscriptions/create_service_spec.rb
+1 −1 spec/services/subscriptions/dates/monthly_service_spec.rb
+3 −3 spec/services/subscriptions/dates/weekly_service_spec.rb
+1 −1 spec/services/subscriptions/dates/yearly_service_spec.rb
+1 −1 spec/services/subscriptions/dates_service_spec.rb
8 changes: 4 additions & 4 deletions docker-compose.arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:

api:
container_name: lago-api
image: getlago/api-arm64v8:v0.16.2-alpha
image: getlago/api-arm64v8:v0.17.0-alpha
restart: unless-stopped
depends_on:
- db
Expand Down Expand Up @@ -72,7 +72,7 @@ services:

front:
container_name: lago-front
image: getlago/front-arm64v8:v0.16.2-alpha
image: getlago/front-arm64v8:v0.17.0-alpha
restart: unless-stopped
# Use this command if you want to use SSL with Let's Encrypt
# command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
Expand Down Expand Up @@ -109,7 +109,7 @@ services:

api-worker:
container_name: lago-worker
image: getlago/api-arm64v8:v0.16.2-alpha
image: getlago/api-arm64v8:v0.17.0-alpha
restart: unless-stopped
depends_on:
- api
Expand Down Expand Up @@ -145,7 +145,7 @@ services:

api-clock:
container_name: lago-clock
image: getlago/api-arm64v8:v0.16.2-alpha
image: getlago/api-arm64v8:v0.17.0-alpha
restart: unless-stopped
depends_on:
- api
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:

api:
container_name: lago-api
image: getlago/api:v0.16.2-alpha
image: getlago/api:v0.17.0-alpha
restart: unless-stopped
depends_on:
- db
Expand Down Expand Up @@ -76,7 +76,7 @@ services:

front:
container_name: lago-front
image: getlago/front:v0.16.2-alpha
image: getlago/front:v0.17.0-alpha
restart: unless-stopped
# Use this command if you want to use SSL with Let's Encrypt
# command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
Expand Down Expand Up @@ -113,7 +113,7 @@ services:

api-worker:
container_name: lago-worker
image: getlago/api:v0.16.2-alpha
image: getlago/api:v0.17.0-alpha
restart: unless-stopped
depends_on:
- api
Expand Down Expand Up @@ -150,7 +150,7 @@ services:

api-clock:
container_name: lago-clock
image: getlago/api:v0.16.2-alpha
image: getlago/api:v0.17.0-alpha
restart: unless-stopped
depends_on:
- api
Expand Down
2 changes: 1 addition & 1 deletion front
Submodule front updated 60 files
+3 −0 .env.template
+1 −1 PULL_REQUEST_TEMPLATE.md
+109 −5 ditto/base.json
+2 −0 ditto/config.yml
+3 −0 ditto/index.js
+11 −11 package.json
+6 −2 src/components/CodeSnippet.tsx
+1 −1 src/components/addOns/AddOnItem.tsx
+1 −1 src/components/coupons/CouponCaption.tsx
+70 −0 src/components/creditNote/CreditNoteCodeSnippet.tsx
+467 −0 src/components/creditNote/CreditNoteFormCalculation.tsx
+120 −0 src/components/creditNote/CreditNoteFormItem.tsx
+49 −0 src/components/creditNote/types.ts
+1 −1 src/components/customers/AddAddOnToCustomerDialog.tsx
+1 −1 src/components/customers/CustomerAddOns.tsx
+127 −0 src/components/customers/CustomerCreditNotesList.tsx
+87 −82 src/components/customers/CustomerInvoicesList.tsx
+295 −0 src/components/customers/creditNotes/CreditNotesList.tsx
+74 −0 src/components/customers/creditNotes/VoidCreditNoteDialog.tsx
+1 −1 src/components/customers/usage/CustomerUsageDetailDrawer.tsx
+1 −1 src/components/customers/usage/UsageItem.tsx
+2 −0 src/components/designSystem/Skeleton.tsx
+20 −1 src/components/form/Checkbox/Checkbox.tsx
+3 −4 src/components/form/ComboBox/ComboBoxField.tsx
+29 −3 src/components/form/TextInput/TextInputField.tsx
+365 −0 src/components/invoices/InvoiceCreditNotesTable.tsx
+190 −0 src/components/invoices/InvoiceCustomerInfos.tsx
+353 −0 src/components/invoices/InvoiceDetailsTable.tsx
+140 −0 src/components/invoices/InvoiceDetailsTableFooter.tsx
+36 −0 src/components/invoices/InvoiceDetailsTableHeader.tsx
+1 −1 src/components/plans/ChargeAccordion.tsx
+1 −1 src/components/plans/ChargePercentage.tsx
+1 −1 src/components/plans/GraduatedChargeTable.tsx
+1 −1 src/components/plans/PackageCharge.tsx
+1 −1 src/components/plans/VolumeChargeTable.tsx
+1 −1 src/components/wallets/AddWalletToCustomerDialog.tsx
+1 −1 src/components/wallets/TopupWalletDialog.tsx
+1 −1 src/components/wallets/WalletAccordion.tsx
+1 −1 src/components/wallets/WalletTransactionList.tsx
+1 −1 src/core/__tests__/intlFormatNumber.test.ts
+8 −0 src/core/apolloClient/cache.ts
+1 −0 src/core/apolloClient/graphqlResolvers.tsx
+14 −0 src/core/formats/formatCreditNotesItems.ts
+2 −0 src/core/formats/intlFormatNumber.ts
+30 −5 src/core/router/index.tsx
+1 −0 src/core/serializers/index.ts
+77 −0 src/core/serializers/serializeCreditNoteInput.ts
+79 −0 src/formValidationSchemas/feesSchema.ts
+741 −117 src/generated/graphql.tsx
+7 −5 src/hooks/core/useInternationalization.ts
+260 −0 src/hooks/useCreateCreditNote.ts
+55 −20 src/layouts/CustomerInvoiceDetails.tsx
+566 −0 src/pages/CreateCreditNote.tsx
+812 −0 src/pages/CreditNoteDetails.tsx
+38 −9 src/pages/CustomerDetails.tsx
+116 −0 src/pages/InvoiceCreditNoteList.tsx
+178 −0 src/pages/InvoiceOverview.tsx
+1 −1 src/pages/settings/VatRate.tsx
+0 −658 src/pages/settings/invoices/InvoiceOverview.tsx
+515 −456 yarn.lock

0 comments on commit 670d01a

Please sign in to comment.