#talker-subscription-metadata

1 messages · Page 1 of 1 (latest)

old stratusBOT
quartz drift
#

talker-subscription-metadata

#

Hey @young moat I don't think it's possible but let me look to make sure

#

I think that's what you want, can you try?

young moat
#

yes, that is actually what we are currently setting now

quartz drift
#

so what's the problem?

young moat
#

var o = new SubscriptionScheduleCreateOptions
{
Customer = customerId,
StartDate = startDate,
Phases = new List<SubscriptionSchedulePhaseOptions>
{
new SubscriptionSchedulePhaseOptions
{
CollectionMethod = collectionMethodString,
// InvoiceSettings = new SubscriptionSchedulePhaseInvoiceSettingsOptions()
// {
// DaysUntilDue = daysUntilDue
// },

                    ProrationBehavior = "none",
                    Items = phaseOptions,
                },                    
            },
            Metadata = new Dictionary<string, string>()
            {
                {"AffiliateId", affiliateId.ToString() }
            }
        };
#

this is the code we used last year, and I am going back into the subscriptions and I don't see any subscriptions with the affiliateId.

#

all of the subscriptions in here should have been created from this code here.

quartz drift
#

ah yeah you read too fast 🙂

young moat
#

no metadata

quartz drift
#

you're setting metadata top-level on the Schedule itself. The link I gave you is for the Metadata option/parameter inside the phases array

young moat
#

ok, i see

#

ok, I updated the nuget package and i can see this now.

quartz drift
#

yeah we shipped this recently enough

young moat
#

got it, this is perfect thanks