blob: 700c1c6fbf41d4785221a9e5b516a75acbd65636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: true
module SolidusSubscriptions
module ChurnBuster
class SubscriptionCustomerSerializer < Serializer
def to_h
{
source: 'in_house',
source_id: object.id,
email: object.user.email,
properties: {
first_name: object.shipping_address_to_use.firstname,
last_name: object.shipping_address_to_use.lastname,
},
}
end
end
end
end
|