recurlybot
Version:
Slack bot to notify new Recurly subscriptions
59 lines (58 loc) • 2.6 kB
text/xml
<new_subscription_notification>
<account>
<account_code>5b88ec3b66d75421c4e12899</account_code>
<username nil="true">verena</username>
<email>verena@example.com</email>
<first_name>Verena</first_name>
<last_name>Example</last_name>
<company_name nil="true">Company, Inc.</company_name>
</account>
<subscription>
<plan>
<plan_code>bronze</plan_code>
<name>Bronze Plan</name>
</plan>
<uuid>4bd3e28b63f88fae827cd140b9968094</uuid>
<state>active</state>
<quantity type="integer">2</quantity>
<total_amount_in_cents type="integer">17000</total_amount_in_cents>
<subscription_add_ons type="array">
<subscription_add_on>
<add_on_code>premium_support</add_on_code>
<name>Premium Support</name>
<quantity type="integer">1</quantity>
<unit_amount_in_cents type="integer">15000</unit_amount_in_cents>
<add_on_type>fixed</add_on_type>
<usage_percentage nil="true"></usage_percentage>
<measured_unit_id nil="true"></measured_unit_id>
</subscription_add_on>
<subscription_add_on>
<add_on_code>email_blasts</add_on_code>
<name>Email Blasts</name>
<quantity type="integer">1</quantity>
<unit_amount_in_cents type="integer">50</unit_amount_in_cents>
<add_on_type>usage</add_on_type>
<usage_percentage nil="true"></usage_percentage>
<measured_unit_id type="integer">394681687402874853</measured_unit_id>
</subscription_add_on>
<subscription_add_on>
<add_on_code>donations</add_on_code>
<name>Donations</name>
<quantity type="integer">1</quantity>
<unit_amount_in_cents nil="true"></unit_amount_in_cents>
<add_on_type>usage</add_on_type>
<usage_percentage>0.6</usage_percentage>
<measured_unit_id type="integer">394681920153192422</measured_unit_id>
</subscription_add_on>
</subscription_add_ons>
<activated_at type="datetime">2009-11-22T13:10:38Z</activated_at>
<canceled_at type="datetime"></canceled_at>
<expires_at type="datetime"></expires_at>
<current_period_started_at type="datetime">2009-11-22T13:10:38Z</current_period_started_at>
<current_period_ends_at type="datetime">2009-11-29T13:10:38Z</current_period_ends_at>
<trial_started_at type="datetime">2009-11-22T13:10:38Z</trial_started_at>
<trial_ends_at type="datetime">2009-11-29T13:10:38Z</trial_ends_at>
<collection_method>automatic</collection_method>
</subscription>
</new_subscription_notification>