Sha256: 2f747058a9a836b62656e17a76b528c7edef65d7a86e2a21543993b3c78beaeb

Contents?: true

Size: 363 Bytes

Versions: 7

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true

module SolidusSubscriptions
  module ChurnBuster
    class SubscriptionSerializer < Serializer
      def to_h
        {
          subscription: {
            source: 'in_house',
            source_id: object.id
          },
          customer: SubscriptionCustomerSerializer.serialize(object),
        }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_subscriptions-2.0.2 lib/solidus_subscriptions/churn_buster/subscription_serializer.rb
solidus_subscriptions-2.0.1 lib/solidus_subscriptions/churn_buster/subscription_serializer.rb
solidus_subscriptions-2.0.0 lib/solidus_subscriptions/churn_buster/subscription_serializer.rb
solidus_subscriptions-1.1.0 lib/solidus_subscriptions/churn_buster/subscription_serializer.rb
solidus_subscriptions-1.0.1 lib/solidus_subscriptions/churn_buster/subscription_serializer.rb
solidus_subscriptions-1.0.0 lib/solidus_subscriptions/churn_buster/subscription_serializer.rb
solidus_subscriptions-1.0.0.rc1 lib/solidus_subscriptions/churn_buster/subscription_serializer.rb