Skip to content

Instantly share code, notes, and snippets.

@mwhagedorn
Last active May 31, 2017 17:53
Show Gist options
  • Save mwhagedorn/24d0b620904bc46ed4be674d93d89e1f to your computer and use it in GitHub Desktop.
Save mwhagedorn/24d0b620904bc46ed4be674d93d89e1f to your computer and use it in GitHub Desktop.
Push billing to June 1
c = Console::PrepareGatewayMigration.new('protectionplan', Time.zone.parse('May 31 2017 5:00pm EST')
before_date = Time.zone.parse('June 1 2017 2:00pm EST')
c.record_original_next_assessment_at(before_date)
c.delay_billing_dates_until(before_date)
c = Console::PrepareGatewayMigration.new('petplus-vpi', Time.zone.parse('May 31 2017 5:00pm EST')
before_date = Time.zone.parse('June 1 2017 2:00pm EST')
c.record_original_next_assessment_at(before_date)
c.delay_billing_dates_until(before_date)
# OR push to later today
c = Console::PrepareGatewayMigration.new('protectionplan', Time.zone.parse('May 31 2017 5:00pm EST')
before_date = Time.zone.parse('May 31 2017 7:00pm EST')
c.record_original_next_assessment_at(before_date)
c.delay_billing_dates_until(before_date)
c = Console::PrepareGatewayMigration.new('petplus-vpi', Time.zone.parse('May 31 2017 5:00pm EST')
before_date = Time.zone.parse('May 31 2017 7:00pm EST')
c.record_original_next_assessment_at(before_date)
c.delay_billing_dates_until(before_date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment