-
Process Billing Maintenance
-
Pre-Step Status
- Began Process Billing Maintenance
-
Stored Procedure
-
job_processBillingMaintenance
-
Params
- rollDays Integer
- 0 = default
- Number of days in future used for dateDiff calculations
- debug Integer
- 0 = doCommits, default
- 1 = only produce audit trail
-
Steps
-
Process Collections
-
Step Type
- SQL
-
Prerequisites
- Already have 1 or more open transactions
- Customer = Active
- > 1 month past paidThrough date
-
Result
- Billable is inactivated
- If no active billable, inactivate Customer
- Insert note that billable was cancelled due to Collections
- Inactivation reason = Collections
-
Query Name
- ???
-
Close Scheduled Inactivation Billable
-
Step Type
- SQL
-
Prerequisites
- Billable is fully paid
- Inactivation date prior to renewal date
-
Result
- Billable is inactivated
-
Query Name
- ????
-
Process Non-Billable customers
-
Step Type
- SQL
-
Prerequisites
- Active Customers with no Active Billables
-
Result
- Sets Customer status to inactive
- Calls Immediate Deactivation Processor
-
Query Name
- ????
-
Close open billable transactions on inactive customer
-
Step Type
- SQL
-
Prerequisites
- Customer is inactive
- Open transactions exist for the Customer
-
Result
- Open transactions are closed for this customer
-
Query Name
- ????
-
Update open text ads for inactive customer
-
Step Type
- SQL
-
Prerequisites
- Customer is inactive
- Customer has open text ads
-
Result
- Text ads are deactivated
- Billable for text ad is inactivated
-
Query Name
- ????
-
Update claim status to inactive
-
Step Type
- SQL
-
Prerequisites
- Customer is inactive
- Claim is active for this customer
-
Result
- Claim is deactivated
- Note is inserted for inactivated claim
-
Query Name
- ????
-
Post Step Status
- Completed Process Billing Maintenance
-
Deactivate Customers with No Active Billables
-
Step Type
- Java
-
Prerequisites
- Step 1
-
Stored Procedures
-
job_processNonBillableCustomers
-
Returns
- customerId
-
Result
- Customer set to Inactive
- Any active Sales Claim is Closed
- All Ads and Banners Inactivated for Customer
- All Billables deactivated for Customer
- CustomerStatusChange set to INACTIVATION
-
Contracts missing Open Transactions
-
Pre Step Status
- Began Process Contracts missing Open Transactions
-
Step Type
- SQL
-
Prerequisites
- Contract Billable already has Past Due Transactions
- At least 1 more paymentsDue remains for the contract
-
Result
- Insert transaction as PastDue = 51
- Insert transaction Details
- Insert Transaction HIstory
-
Query Name
- ????
-
Post Step Status
- Completed Process Contracts missing Open Transactions
-
Process Billables to Upgrade
-
Pre Step Status
- Began Process Billables To Upgrade
-
Stored Procedures
-
job_processBillablesToUpgradeNew
-
Returns
- ,new_product_id = CAST( null as int )
- ,new_product = CAST( null as varchar(100) )
- ,new_unit_price = CAST( null as money )
- ,new_quantity = CAST( null as int )
- ,new_discount = CAST( null as float )
- ,new_total = CAST( null as money )
- ,new_LegacyAdjustment = CAST(null as money)
-
Result
- Promo applied, if applicable
- Billable Entities are replicated on new billable, including applicable features
- Amount is set to new webProduct amount field
- LegacyAdjustment is calculated where appropriate
- Credit Available is calculated
- Predecessor Billable is inactivated
- New Billable is created
- Insert Transaction with TxnStatus = 97 Pre-Processing
- Insert Transaction Details
- Insert Transaction History
-
Post Step Status
- Completed Process Billables To Upgrade
-
Process Renewals
-
Pre Step Status
- Began Process Billable Renewals
-
Steps
-
Update Payments Remaining
-
Prerequisites
- Active, 0 payments remaining
-
Result
- Reset payments remaining to ....
-
Stored Procedures
- job_processBillableRenewals
-
Insert Renewal Transactions
-
Prerequisites
- Active Customer with billable payments remaining > 0 and has no open transactions
or doesn’t have any transactions
-
Result
- Credit available is applied
- Customer is billed via Recurring Billing Processor
- Insert transaction
- Insert Transaction Details
- Insert TransactionHistory
- Roll paidThroughDate on Billable
-
Stored Procedures
- job_getBillableCustomers
-
Post Step Status
- Completed Process Renewals
-
Generate Processor Batch
-
Pre Step Status
- Began Generate Processor Batch
-
Prerequisites
-
Step 1 has completed successfully
- When debug is off, only transactions created on or before the billing date will be included
- If resubmitting a failed batch, the previous batch has been been marked as Complete
-
Stored Procedure
-
job_getProcessorBatch
-
Result
- Gets any Past Due Transactions not currently in an outstanding batch = 51
- Gets any Pre-Processing transactions not currently in an outstanding batch = 97
- Returns
- transactionId
- bidclerkOrderId
- amount
- customerName
- line 1
- city
- state
- zipcode
- country
- temporaryCreditCardNumber
- expMMYY
- creditCardType
- tokenValue
- transactionTypeId (Pre-Auth, Sale, Credit)
- processorOrderNumber
- BatchId
-
Post Step Status
- Completed Generate Processor Batch
-
Create Batch FTP File
- Batch Status = New
- Named ${batchId}.asc
- File stored locally at ?????
- Batch Status = Ready
-
FTP File to Litle
- target is /bdclrk/inbound/${batchId}.asc
- Once file is transferred, renamed to ${batchId}.proc
- Batch Status = In Progress
-
Post Step Status
- Completed Generate Processor Batch
-
Consume Completed Processor Batch
-
Pre Step Status
- Began Consume Processor Batch
-
Poll inbound FTP folder until ${batchId}.proc is available
-
Not received after configured time
- Mark batch as Errorred
-
Received
-
Subtopic 1
- Batch Status = Complete
-
For each transaction in the received batch
-
stored procedure job_completeProcessorTransaction
-
Inputs
- transactionId (from ID field of each LitleResponse)
- ,@NewTokenVal varchar(50)
- ,@TransactionProcessorId int=null
- ,@CreditCardTypeId int = null
- ,@ExpCCMMYYYY varchar(6) = null
- ,@PPDInd varchar(50) = null
- ,@AffType varchar(20) = null
- ,@CCHolderType varchar(20) = null
- ,@LastStatusVal varchar(50)
- ,@LastStatusDate datetime
- ,@createdBy int
- ,@createdOn datetime
- processorOrderNumber
-
Steps
- Manage Token
- commons_manageCustomerToken
- Update Transaction
- commons_updateTransaction
- Roll PaidThroughDate
- Subtopic 1
- commons_rollPaidThroughForBillable
- Update Batch Transaction to Processed
- Send Email to Customer
- Insert Note that Email was Sent
-
Post Step Status
- Completed Consume Processor Batch
- Collect Remaining Open Transactions where Predecessor Open Collected