function subscriptionIsCorrect()

in src/libs/transforms.ts [303:310]


function subscriptionIsCorrect(subscription: ZuoraSubscription): boolean {
    // This function decides if a ZuoraSubscription should be actually put into the output file.
    // It was first written to exclude those with an empty delivery agent, during E2E testing.
    // When the data is corrected in Zuora and we guarrantee that no subscription will have
    // missing attribute then we can remove it, otherwise we may end up expanding it to perform
    // some validations
    return subscription.subscription_delivery_agent != '';
}