Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Added Payment Source serializers
Damian Legawiecc742df1c1262
diff --git a/api/app/serializers/spree/api/v2/platform/payment_source_serializer.rb b/api/app/serializers/spree/api/v2/platform/payment_source_serializer.rbnew file mode 100644index 0000000000..665418bf68--- /dev/null+++ b/api/app/serializers/spree/api/v2/platform/payment_source_serializer.rb@@ -0,0 +1,12 @@+module Spree+ module Api+ module V2+ module Platform+ class PaymentSourceSerializer < BaseSerializer+ belongs_to :payment_method+ belongs_to :user+ end+ end+ end+ end+enddiff --git a/api/app/serializers/spree/v2/storefront/payment_source_serializer.rb b/api/app/serializers/spree/v2/storefront/payment_source_serializer.rbnew file mode 100644index 0000000000..d9550490b0--- /dev/null+++ b/api/app/serializers/spree/v2/storefront/payment_source_serializer.rb@@ -0,0 +1,10 @@+module Spree+ module V2+ module Storefront+ class PaymentSourceSerializer < BaseSerializer+ belongs_to :payment_method+ belongs_to :user+ end+ end+ end+end