Skip to content

Commit

Permalink
misc: Update API & front to v0.3.0-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet committed Jul 4, 2022
1 parent d53de4c commit 60c523e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api
Submodule api updated 79 files
+24 −0 app/controllers/api/base_controller.rb
+110 −0 app/controllers/api/v1/billable_metrics_controller.rb
+2 −2 app/controllers/api/v1/customers_controller.rb
+27 −0 app/controllers/concerns/pagination.rb
+1 −1 app/graphql/mutations/billable_metrics/create.rb
+1 −1 app/graphql/mutations/billable_metrics/destroy.rb
+1 −1 app/graphql/mutations/billable_metrics/update.rb
+4 −1 app/graphql/mutations/customers/create.rb
+1 −1 app/graphql/mutations/customers/destroy.rb
+4 −1 app/graphql/mutations/customers/update.rb
+1 −1 app/graphql/mutations/customers/update_vat_rate.rb
+10 −0 app/graphql/mutations/organizations/update.rb
+2 −3 app/graphql/mutations/payment_providers/stripe.rb
+4 −0 app/graphql/types/customers/object.rb
+1 −0 app/graphql/types/invoices/object.rb
+11 −1 app/graphql/types/organization_type.rb
+12 −0 app/graphql/types/payment_provider_customers/stripe.rb
+11 −0 app/graphql/types/payment_provider_customers/stripe_input.rb
+11 −0 app/graphql/types/payment_providers/provider_type_enum.rb
+1 −2 app/graphql/types/payment_providers/stripe.rb
+3 −1 app/models/customer.rb
+3 −1 app/models/organization.rb
+1 −1 app/models/payment_provider_customers/base_customer.rb
+6 −0 app/models/payment_provider_customers/stripe_customer.rb
+7 −2 app/models/payment_providers/base_provider.rb
+0 −9 app/models/payment_providers/stripe_provider.rb
+17 −0 app/serializers/v1/billable_metric_serializer.rb
+2 −0 app/serializers/v1/customer_serializer.rb
+1 −0 app/serializers/v1/invoice_serializer.rb
+2 −2 app/serializers/v1/payment_providers/customer_error_serializer.rb
+21 −0 app/services/billable_metrics/create_service.rb
+39 −0 app/services/billable_metrics/destroy_service.rb
+49 −0 app/services/billable_metrics/update_service.rb
+0 −59 app/services/billable_metrics_service.rb
+110 −0 app/services/customers/create_service.rb
+22 −0 app/services/customers/destroy_service.rb
+57 −0 app/services/customers/update_service.rb
+0 −153 app/services/customers_service.rb
+36 −21 app/services/invoices/payments/stripe_service.rb
+12 −2 app/services/organizations/update_service.rb
+4 −1 app/services/payment_provider_customers/create_service.rb
+25 −1 app/services/payment_provider_customers/stripe_service.rb
+17 −14 app/services/payment_providers/stripe_service.rb
+1 −1 app/services/webhooks/base_service.rb
+1 −1 app/services/webhooks/payment_providers/customer_error_service.rb
+2 −1 app/services/webhooks/payment_providers/invoice_payment_failure_service.rb
+2 −0 config/locales/en.yml
+1 −0 config/routes.rb
+1 −1 db/migrate/20220610134535_create_payment_provider_customers.rb
+1 −1 db/migrate/20220617124108_create_payments.rb
+50 −5 schema.graphql
+572 −75 schema.json
+1 −1 spec/factories/billable_metric_factory.rb
+1 −1 spec/factories/payment_providers_factory.rb
+0 −98 spec/fixtures/stripe/charge_event.json
+0 −50 spec/fixtures/stripe/customer_event.json
+71 −0 spec/fixtures/stripe/payment_intent_event.json
+50 −0 spec/fixtures/stripe/setup_intent_event.json
+15 −1 spec/graphql/mutations/customers/create_spec.rb
+11 −0 spec/graphql/mutations/customers/update_spec.rb
+31 −1 spec/graphql/mutations/organizations/update_spec.rb
+1 −6 spec/graphql/mutations/payment_providers/stripe_spec.rb
+16 −0 spec/models/payment_provider_customers/stripe_customer_spec.rb
+0 −7 spec/models/payment_providers/stripe_provider_spec.rb
+198 −0 spec/requests/api/v1/billable_metrics_spec.rb
+1 −1 spec/requests/webhooks_spec.rb
+23 −0 spec/serializers/v1/billable_metric_serializer_spec.rb
+3 −3 spec/serializers/v1/payment_providers/customer_error_serializer_spec.rb
+44 −0 spec/services/billable_metrics/create_service_spec.rb
+78 −0 spec/services/billable_metrics/destroy_service_spec.rb
+46 −55 spec/services/billable_metrics/update_service_spec.rb
+20 −112 spec/services/customers/create_service_spec.rb
+55 −0 spec/services/customers/destroy_service_spec.rb
+145 −0 spec/services/customers/update_service_spec.rb
+49 −50 spec/services/invoices/payments/stripe_service_spec.rb
+20 −0 spec/services/organizations/update_service_spec.rb
+40 −0 spec/services/payment_provider_customers/create_service_spec.rb
+47 −0 spec/services/payment_provider_customers/stripe_service_spec.rb
+14 −16 spec/services/payment_providers/stripe_service_spec.rb
2 changes: 1 addition & 1 deletion front
Submodule front updated 60 files
+0 −28 .github/linter.yml
+23 −0 .github/workflows/translation-check.yml
+1 −1 Dockerfile
+6 −2 PULL_REQUEST_TEMPLATE.md
+0 −40 __mocks__/fileMock.js
+4 −2 __mocks__/svgMock.js
+105 −463 ditto/base.json
+4 −0 ditto/config.yml
+1 −2 jest.config.js
+16 −16 package.json
+25 −31 scripts/InspectTranslationKeys.js
+1 −1 src/components/ErrorBoundary.tsx
+2 −2 src/components/GenericPlaceholder.tsx
+1 −0 src/components/UserIdentifier.tsx
+3 −16 src/components/customers/AddAddOnToCustomerDialog.tsx
+3 −16 src/components/customers/AddCouponToCustomerDialog.tsx
+77 −59 src/components/customers/AddCustomerDialog.tsx
+22 −1 src/components/customers/CustomerMainInfos.tsx
+0 −11 src/components/designSystem/Dialog.tsx
+1 −1 src/components/form/ComboBox/ComboBoxField.tsx
+12 −6 src/components/form/TextInput/TextInput.tsx
+2 −2 src/components/form/TextInput/TextInputField.tsx
+3 −2 src/components/plans/ChargeAccordion.tsx
+1 −1 src/components/plans/ChargePercentage.tsx
+1 −1 src/components/plans/PackageCharge.tsx
+26 −31 src/components/settings/EditOrganizationInformationsDialog.tsx
+117 −0 src/components/settings/integrations/AddStripeDialog.tsx
+55 −0 src/components/settings/integrations/DeleteStripeIntegrationDialog.tsx
+20 −2 src/core/router/index.tsx
+282 −21 src/generated/graphql.tsx
+1 −2 src/hooks/core/__tests__/useLocationHistory.test.ts
+6 −3 src/hooks/ui/__tests__/useShortcuts.test.tsx
+5 −5 src/hooks/ui/useShortcuts.tsx
+33 −3 src/hooks/useCreateEditCustomer.ts
+5 −2 src/index.js
+11 −2 src/layouts/Settings.tsx
+18 −8 src/layouts/SideNavLayout.tsx
+4 −4 src/pages/AddOnsList.tsx
+4 −4 src/pages/BillableMetricsList.tsx
+4 −4 src/pages/CouponsList.tsx
+2 −2 src/pages/CreateAddOn.tsx
+2 −2 src/pages/CreateBillableMetric.tsx
+2 −2 src/pages/CreateCoupon.tsx
+2 −2 src/pages/CreatePlan.tsx
+2 −2 src/pages/CustomerDetails.tsx
+4 −4 src/pages/CustomersList.tsx
+5 −8 src/pages/Error404.tsx
+4 −4 src/pages/PlansList.tsx
+4 −4 src/pages/developpers/Debugger.tsx
+100 −0 src/pages/settings/Integrations.tsx
+34 −63 src/pages/settings/OrganizationInformations.tsx
+285 −0 src/pages/settings/StripeIntegration.tsx
+ src/public/images/exploding-head.png
+279 −0 src/public/images/maneki/empty.svg
+271 −0 src/public/images/maneki/error.svg
+299 −0 src/public/images/maneki/success.svg
+ src/public/images/party.png
+ src/public/images/spider-web.png
+10 −0 src/public/images/stripe.svg
+923 −734 yarn.lock

0 comments on commit 60c523e

Please sign in to comment.