Граф коммитов

412 Коммитов

Автор SHA1 Сообщение Дата
Gene Wood 036f043421 Deleting .travis.yml
I've exfiltrated the AWS API key that was in this file and confirmed it's invalidated
2021-09-20 13:41:55 -07:00
Gene Wood aebba30d63 Exfiltrate the secrets from this repo
Extracting these secrets to determine what was leaked in #498
2021-09-20 13:13:33 -07:00
Stewart Henderson 7f921e0b23 Customer name defect 2020-05-19 09:55:37 -05:00
Stewart Henderson 4dd240c3a3 Prefer CFG to env 2020-05-04 09:19:11 -05:00
Stewart Henderson bb3b1e1887 Remove AWS Xray 2020-04-29 09:26:04 -05:00
Stewart Henderson 6820a5bd71 Coerce Stripe API to never log below ERROR log levels 2020-04-29 09:24:02 -05:00
Stewart Henderson 4fd5a9a124 Initial CD 2020-04-23 06:58:18 -05:00
Stewart Henderson 4da52e327d Update Subhub to send data to Plowforce 2020-04-23 05:40:35 -05:00
Stewart Henderson 81a4738a11 Sentry Addition 2020-04-22 16:56:34 -05:00
Stewart Henderson 5b9eca0d20 Remove traces of NR 2020-04-22 16:22:51 -05:00
Jackie Munroe 5fe22ad30a bug(invoice email) - ensure invoice emails are sent for subscriptions of any interval
- Remove check to only send emails for subscriptions that are billed on a "day" or "month" based interval

Because:
- We now want to support a wider variety of subscription billing intervals for our products being offered

Fixes: https://github.com/mozilla/fxa/issues/4940
2020-04-22 11:45:55 -05:00
Stewart Henderson e224feddcd COPS-1055 2020-04-02 14:46:43 -05:00
Scott Idler b037f26e6b removed newrelic vestiges 2020-03-19 16:58:23 -05:00
Marty Ballard 96e9ea8691 remove new relic from hub 2020-03-19 16:45:18 -05:00
dependabot[bot] a4e167ef1f Bump psutil from 5.6.3 to 5.6.6 in /src
Bumps [psutil](https://github.com/giampaolo/psutil) from 5.6.3 to 5.6.6.
- [Release notes](https://github.com/giampaolo/psutil/releases)
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst)
- [Commits](https://github.com/giampaolo/psutil/compare/release-5.6.3...release-5.6.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-13 09:04:17 -05:00
Marty Ballard 3afae4de9c Remove NewRelic 2020-03-13 08:45:38 -05:00
Marty Ballard bb0417bddd COPS-1031
- Correct MIA handler name
- Add customer.updated webhook processor
- Add test cases for customer.updated webhoooks
2020-02-25 17:00:12 -06:00
Stewart Henderson ad11084027 Initial Terraform boostrap and DynamoDB setup 2020-02-12 06:54:00 -06:00
Marty Ballard 0456b4771d Arch 2.0
- Remove Sub component
- Remove Users record
- Update Hub per approved changes
2020-02-10 09:47:57 -06:00
Stewart Henderson 3691e92182 Removed TODO notes 2020-01-17 10:09:10 -06:00
Stewart Henderson 79d663cd2b Install detect-secrets pre-commit hook 2020-01-09 09:04:34 -06:00
Marty Ballard 942e56545f COPS-901
Test if running in docker and if so then allow for local Stripe Signature
Provide abilty to run hub data locally
2020-01-08 21:58:22 -06:00
Stewart Henderson 3b636e4d05 Fix broken Pipeline tests 2020-01-08 09:43:07 -06:00
Marty Ballard a99bfe621d fix safety pre-commit 2020-01-06 15:16:57 -06:00
Stewart Henderson c1e229d97f Terraform pre-commit hooks 2020-01-06 10:20:52 -06:00
Marty Ballard bb77c6aa8b COPS-928
Add tests for
- salsesforce.py
- pipeline.py
2019-12-30 11:50:48 -06:00
Stewart Henderson 94666de0a9 Merged pytest.ini into tox.ini 2019-12-19 10:23:48 -06:00
Marty Ballard bd32aeb048 COPS-852 Update sub/hub app.py tests
- Updated tests for sub/app.py
- Updated tests for hub/app.py
- Added new method to handle GetError when no db connection exists
2019-12-17 15:36:27 -06:00
Stewart Henderson e8abff2ba2 Bandit configuration with test exclusions 2019-12-17 15:36:27 -06:00
Marty Ballard c75b3debe7 added a t 2019-12-17 15:36:27 -06:00
Marty Ballard a6552c5889 Add check for non accepted country code 2019-12-06 15:18:42 -06:00
Stewart Henderson ee624d6e88 Handle invalid change object identifiers 2019-12-06 15:18:42 -06:00
Stewart Henderson 217abd9276 Removed forwarder headers 2019-12-06 15:18:42 -06:00
Stewart Henderson d4388d4c67 Removed forwarder headers 2019-12-06 15:18:42 -06:00
Marty Ballard 9fec2dacbf Release for 20191205 2019-12-05 09:58:22 -06:00
Stewart Henderson 93d358b6f1 Hotfix to change next_invoice_date to use period_end 2019-12-03 06:53:17 -06:00
Stewart Henderson ab08da401c Removed forwarder headers 2019-12-03 06:53:17 -06:00
Stewart Henderson 2ab14c3459 Removed forwarder headers 2019-12-02 13:18:22 -06:00
Marty Ballard 759516939a Revert 398 to fix deployments 2019-11-27 09:53:57 -06:00
Jackie Munroe 5c80360ba4 feature: added next_invoice_date support
Added next_invoice_date information to the create subscription and recuring invoice payloads that are sent to Salesforce
2019-11-26 17:05:31 -06:00
Marty Ballard 4c4a416ab1 COPS-863
Update recurring charge payload to support a prorated charge
- Add proration_amount and total_amount to recurring payments payload to Basket/SF
- Update tests related to recurring charges
2019-11-26 17:05:31 -06:00
Jackie Munroe e7334ab763 Bug fix: Swagger Incorrect
Corrected the following:
- Subscriptions definition was broken out to be a list of a defined Subscription
- Updates to definitions enabled response validator to work as expected.
2019-11-26 17:05:31 -06:00
Scott Idler add7188e94 added shlex.split to mitigate shell=True concerns 2019-11-22 12:40:11 -06:00
Stewart Henderson f9b6752925 Update bandit pre-commit hook 2019-11-22 12:39:50 -06:00
Marty Ballard b82893f314 Add interval to upgrade/downgrade payload 2019-11-19 15:47:45 -06:00
Marty Ballard 2e63e6b4b5 COPS-862
Implement new payload for processing upgrades
The basket payload should include the following information, per this API spec:

    event_id - The Stripe Event ID
    event_type - customer.subscription.upgrade OR customer.subscription.downgrade
    close_date - Date that the event occurs (when the customer makes the change to their subscription)
    customer_id - The Stripe Customer ID
    nickname_old - This is created from the old Product name and the old Plan interval
    nickname_new - This is created from the new Product name and the new Product interval
    plan_amount_old - This is the price of the old Plan
    plan_amount_new - This is the price of the new Plan
    proration_amount - Use the upcoming invoice API to retrieve the prorated amount to provide. It will be calculated by summing together the line item amounts found within the Invoice object https://stripe.com/docs/api/invoices/object
    interval - This is the interval for the new Plan
    current_period_end - Billing cycle end date; this will populate the {NextInvoiceDate}

    in the email body for reactivated subscriptions
    subscription_id - Subscription id - so we can group charges for a specific subscription
    invoice_number - Invoice Number (customer facing value, to be included on the customer's invoice sent via email)
    invoice_id - Unique identifier of the invoice from Stripe
2019-11-19 11:52:02 -06:00
Stewart Henderson a765c62cf4 Fix Marty's VirtualBox DNS-NAT resolution 2019-11-19 11:00:13 -06:00
Stewart Henderson b444784472 Update Serverless version 2019-11-19 10:44:55 -06:00
Marty Ballard ed8459f556 Added term-missing to code coverage to show line numbers that are not covered by tests. 2019-11-19 10:42:55 -06:00
Marty Ballard 5e9dfb5fcc COPS-894
Card type is not capitalized in receipt emails
- Get correct brand value to send to Salesforce
- Add tests to cover new code for format branding
- Fix tests that required adjustments for branding changes
2019-11-19 10:18:23 -06:00