From c80c31055b95666a94a4c5e7e940ff75c12d30bb Mon Sep 17 00:00:00 2001 From: Rob Sterner Date: Wed, 3 Jul 2024 11:10:19 -0400 Subject: [PATCH 1/5] almost there --- .env.erb | 2 +- config/credentials/production.yml.enc | 2 +- config/database.yml | 2 +- config/deploy.aws.yml | 53 --------------------------- config/deploy.yml | 13 +++---- config/environments/production.rb | 4 +- tf/terraform.tfstate | 20 +++++----- 7 files changed, 21 insertions(+), 75 deletions(-) delete mode 100644 config/deploy.aws.yml diff --git a/.env.erb b/.env.erb index 05392d4b..a9d13c9a 100644 --- a/.env.erb +++ b/.env.erb @@ -7,4 +7,4 @@ AWS_ACCESS_KEY_ID=<%= `op read "op://StaffplanRedux/AWS_ACCESS_KEY_ID/credential AWS_SECRET_ACCESS_KEY=<%= `op read "op://StaffplanRedux/AWS_SECRET_ACCESS_KEY/credential"`.strip %> <% else raise ArgumentError, "Session token missing" end %> -REDIS_URL=redis://159.203.142.226:6379/1 \ No newline at end of file +REDIS_URL=redis://172.26.4.66:6379/1 \ No newline at end of file diff --git a/config/credentials/production.yml.enc b/config/credentials/production.yml.enc index 842ad5d2..668a6455 100644 --- a/config/credentials/production.yml.enc +++ b/config/credentials/production.yml.enc @@ -1 +1 @@ -0Mw6tx/Szcjc6flHoA6mP9Pet5xU2F2vGrlzDJxOtEIy4A8jTkTStx5c7TLNn1YogivfyDDLS4S1xAqcvgilSIfUw67Abdv9JdedjCj01OuhTSHl8TPw8acL5uK1KQ0m5u8TH74Xr0ra5tj5X+fBYyhRbbsV0PiFbgACUzXxykyK+4iK+rbqe73o2VMFfxgVyAZzmNYMtPQilGrfUf+A/hzFcbQxOsly+yjZUkb0bb7ZydX2PxQJ9WVa3xa2TFMfrZfXojKZ1coaamBI1t5MXIksOjmOcHOWinRAtfueUiAQT/AHzFs3lAuuooI2pfiPMW0eE9oSsPiuZDLrqtFpAZyV894TyuEdxWqJwOsQMTwfJZhLbwOKIBrjsN/m1c4h+de1ZC+c10RSoAOu4Kr5kfvcLbT5lJHWzxW26gy1ps/qZaWii7d0wN3+keEDlKUJFp4N68VgCHQqZS00WrfbxskuHwpGUoGP6Ziye6aKx7JZXGmluJ+7B+e9LSTrIBQ/ESVN09ZCXMdp4ikAbGRpER4du/+YQM641VEkb/lddLPVafNlgonAOmZQEy5nogvu7xduOz3qR0rz0umz2saLmI6uzRnrLqq+QCcb/LKxYKQIvc3jHp/+rOuvd2B3fhutiRSmbjlIvIa96nJwCkIGBvaGQXLN0CrNS6+/sptZ5oFhtt85RQPNgyHaa7adxPQLmyNRvfJ23OXZR27T3U6+gpfi4Fe/Y65ErnSXrUl6Mf8BW4Q1nE+mctiHP0OblAYZhaUEZcA/bYO7fPVtDCs4mmoQSQU8dB6wd3Hvv30ZtVtzr4lG+n3IFs9yKGhbRl6ZMsRBEMaLAzM1VJkv10Pj6A9mUZqFRqwe6nToItO/aikmTRGyaH4kLnx+6JMYfQmXZeRq7LPLH/K4Y09zpBMoYenzJvUKtZa9kWOX9jzon4ZvKdgYzL6sA7FhQVOKFp61VIVFj0EMzHXc2YfYeQt/hqeUSJdIulrtzfINGeZZWHftUg6zSVBSdLLk6qEn3Kz+V8Ua3yeTj4oPc2FF2AgS/nsk1UfXVmUyaEvME4tsWVcMrtFmvvsjfdt5WMbiBx+K70dKRb0lWJN8hsNdOyA9rLChRFhTr17RyZKCPj5h8eRxRtQwK9pse0a6Tvg5mDiOBmZF+RbU96F3Cwy3e+p5rl9qFL5RwuQ85k/81bjsDh6gJNYaUwjlRFcTjxPU2DU4TAoY9Fs1uxarPlERv5K3AUyj1HftJbz71pWn3vVhqNWc/VkXG22u0y3glPPvUmnlfUBlhDJBXhGqfjcdKZtbcfYurn5TpIO8wlekMG881iJUb4zASQaSfpuQiGT7wT/aQkUh1lQzMX345ynl9qw3VlaAqUPMGw7bzp/dqucsFR41X3QK8jjPUZN9HWhQxSt2+lMm5V0svQAvhfeVA7uCN0W/Qg2QVLLNhus/DG5R0sz4/0vnW8ZVzDXqjqgT8JbU2fWbpmXz2eEGwq40sZ/Qh/2m/Cs3wQAGPlLN7ibP6xWye2hmnbD7u2HmUzUDrDSGiBISQOolEjLfL1VrwufoENqAAyW/sU0EbZeFsr5AacBDgoabJUYRDVXQmWbU3O/Oomc59c+r2VdfvzjFz31F/Xk6hoeHR9R0+HYzte27sc75Cd0eJlLisFbNJW+t6N/WIlT7inLFNYSHH8FPgqKFdiE=--bC5siEBFpJaPs6/k--mr/BbWj+EbHQ9Orqf2Mihg== \ No newline at end of file +xSIabbrBeUw4cbOR5YySTiytdA5wsnav+NdIcKfzGrMopC46E+8rrybCB3kw/FWcoGY6KeuCMAhd/NUm06ejY4Bqv6Xt3RDQGtObp63GR3NT6ivavc7PJC7KZOFCiAsOa88l6aKu1KdrOk8LRQDe/MAIp2fdMtRfxnVw7x2bjLiASeKNd+yHEmc2fijyHWlFnnGoO5LpsCg++MKl+oPdca7DON7GWWWNoAqgf2HT2eWEljRHorLDTdXO77SN7+fvNSGu0c708DKznsgdOs6jVR7hlnk7Z2Czdl694+Lv2HnpPk+ZC5ndJkoMuaqTrukJyCFNgcE6A7kjHJ9EJyJoeDArAXYkSVNqIpa3PSi4j7UGeF7Syrc77/aBeCKY660aitPoqtE6jQM91cofeWmsniMe4BnwMEsVjcQyJfTOpwjeoHujzSmu2Bwj7S3KQ5NQz27ryg42aedAnfM23NAaZlwSbe+tSPaiaHrWWgYIDA8loqOgyqQixv3vhGozqLtC++WSgibWPP3SuJNwBfuSv6raONnSDrOJu4pLJ3vs8niy1HHSJsq62FJIVGvJT4hD8VjYesWISUdW7vaknEJnwwndkc2fu+M+kAb6Uxfl5dJSvk5S4MbgaZtQuivTumFM37LQvVJlCqcz5xrSef+ZgiqagvhQJi5aG2jOFGAOkMyVvLQkmzhUSv3EY1EsgNIb56pmEnxQaQg2q5BYQ72DyAmXS6ixzHKLbRkgQfo2Ga7DNJfC/QniflsQe0s8prf+oSrV/7RK/lWfZU/l9vDPOMNIoTt/hcSIMlDH9Vsgv4fB6rOfIpvigbMRF4reCYKLssGhPPWnB94LhPFdqijqQsFZupwWyPm/TeWQ+9fdTb62cRi5rSx58j2zSS+jckXonatYbIA7diHT/jhlEbXSxnNUNAlrUtRvQfw925YlZNLvQ+PrZ1im0/gBkYBQMa6c6mOI4rnERWS851RSuQAZDmpwOVBoIHMOYSdQXektZMeHJiPHUGsWHiJ+6i/V/oWLV3tbI2MY0aojZuCZ8byVvykUeKQo/f5g+47jIOw4lvoCr/QM02g6IwtOIKvsfpnblqxkjyndcP282Qsn7aA8/2SXxxGp2jPG3tc/IqW8VplZ8PZujE2YK6OtEGASq05QOXrEQsUc5JirVxTBhfdd+84b3D9n56Xu/5I4hlzSWEg6Z+vNNV2YGhP2CEwbEYVP27DvD872+d7L1c3P3SE=--R1bAzZ9LNjmw2LR9--ye2D3gtwEaWMhRKJrT7rQw== \ No newline at end of file diff --git a/config/database.yml b/config/database.yml index f0198ff2..e0ee2197 100644 --- a/config/database.yml +++ b/config/database.yml @@ -85,7 +85,7 @@ test: # production: <<: *default - host: 159.203.142.226 + host: 172.26.4.66 database: staffplan_redux_production username: staffplan_redux password: <%= ENV["POSTGRES_PASSWORD"] %> diff --git a/config/deploy.aws.yml b/config/deploy.aws.yml deleted file mode 100644 index 273e4be3..00000000 --- a/config/deploy.aws.yml +++ /dev/null @@ -1,53 +0,0 @@ -servers: - web: - hosts: - - 52.87.186.93 - cmd: bundle exec puma -C config/puma.rb - options: - "add-host": host.docker.internal:host-gateway - job: - hosts: - - 52.87.186.93 - cmd: bundle exec sidekiq -C config/sidekiq.yml - options: - "add-host": host.docker.internal:host-gateway - -ssh: - user: ubuntu - -# Inject ENV variables into containers (secrets come from .env). -# Remember to run `kamal env push` after making changes! -env: - clear: - DB_HOST: 52.87.186.93 - secret: - - RAILS_MASTER_KEY - - POSTGRES_PASSWORD - - DOCKER_REGISTRY_TOKEN - - STAFF_PLAN_EMAILS - - REDIS_URL - - AWS_ACCESS_KEY_ID - - AWS_SECRET_ACCESS_KEY - -# Use accessory services (secrets come from .env). -accessories: - db: - image: postgres:15 - host: 52.87.186.93 - port: 5432 - env: - clear: - POSTGRES_USER: 'staffplan_redux' - POSTGRES_DB: 'staffplan_redux_production' - secret: - - POSTGRES_PASSWORD - directories: - - data:/var/lib/postgresql/data - redis: - image: redis:latest - roles: - - web - - job - port: 6379 - volumes: - - data:/var/lib/redis/data diff --git a/config/deploy.yml b/config/deploy.yml index 2183e6bf..bf7bd7bc 100644 --- a/config/deploy.yml +++ b/config/deploy.yml @@ -8,13 +8,13 @@ image: fermion/staffplan-redux servers: web: hosts: - - 159.203.142.226 + - 34.192.107.71 cmd: bundle exec puma -C config/puma.rb options: "add-host": host.docker.internal:host-gateway job: hosts: - - 159.203.142.226 + - 34.192.107.71 cmd: bundle exec sidekiq -C config/sidekiq.yml options: "add-host": host.docker.internal:host-gateway @@ -29,7 +29,7 @@ registry: # Remember to run `kamal env push` after making changes! env: clear: - DB_HOST: 159.203.142.226 + DB_HOST: 34.192.107.71 secret: - RAILS_MASTER_KEY - POSTGRES_PASSWORD @@ -39,9 +39,8 @@ env: - AWS_ACCESS_KEY_ID - AWS_SECRET_ACCESS_KEY - # Use a different ssh user than root - # ssh: - # user: app +ssh: + user: ubuntu # Configure builder setup. # builder: @@ -57,7 +56,7 @@ env: accessories: db: image: postgres:15 - host: 159.203.142.226 + host: 34.192.107.71 port: 5432 env: clear: diff --git a/config/environments/production.rb b/config/environments/production.rb index cdcab44b..5aa2b9ba 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -80,7 +80,7 @@ ActionMailer::Base.smtp_settings = { :user_name => 'apikey', :password => Rails.application.credentials.sendgrid_api_key, - :domain => 'prettygood.software', + :domain => 'em7128.staffplan.com', :address => 'smtp.sendgrid.net', :port => 587, :authentication => :plain, @@ -105,6 +105,6 @@ # Skip DNS rebinding protection for the default health check endpoint. # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } - Rails.application.routes.default_url_options[:host] = 'staffplan.fermion.dev' + Rails.application.routes.default_url_options[:host] = 'staffplan.com' Rails.application.routes.default_url_options[:protocol] = 'https' end diff --git a/tf/terraform.tfstate b/tf/terraform.tfstate index 5e23bb58..ef73b628 100644 --- a/tf/terraform.tfstate +++ b/tf/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.5.7", - "serial": 25, + "serial": 35, "lineage": "6c680206-1f35-759f-49a7-8ad19bca3f72", "outputs": { "bucket_arn": { @@ -26,8 +26,8 @@ "name_prefix": "", "path": "/", "policy": "{\"Statement\":[{\"Action\":[\"s3:PutObject\",\"s3:GetObject\",\"s3:DeleteObject\"],\"Effect\":\"Allow\",\"Resource\":\"arn:aws:s3:::staffplan-redux-production/*\"}],\"Version\":\"2012-10-17\"}", - "policy_id": "ANPA5KYKEGZVT2LMT2355", - "tags": {}, + "policy_id": "ANPA5KYKEGZV7WPZAGHQT", + "tags": null, "tags_all": {} }, "sensitive_attributes": [], @@ -47,11 +47,11 @@ { "schema_version": 0, "attributes": { - "groups": [], + "groups": null, "id": "s3_policy_attachment", "name": "s3_policy_attachment", "policy_arn": "arn:aws:iam::916459894379:policy/staffplan_redux_bot_policy", - "roles": [], + "roles": null, "users": [ "staffplan_redux_bot" ] @@ -100,22 +100,22 @@ "schema_version": 0, "attributes": { "add_on": [], - "arn": "arn:aws:lightsail:us-east-1:916459894379:Instance/3a81d9b6-69c1-40ad-8d23-c33a6ec50957", + "arn": "arn:aws:lightsail:us-east-1:916459894379:Instance/339a2ebc-b8c7-4bf6-bd81-17ce126a2396", "availability_zone": "us-east-1a", "blueprint_id": "ubuntu_22_04", "bundle_id": "small_3_0", "cpu_count": 2, - "created_at": "2024-06-21T02:04:02Z", + "created_at": "2024-07-03T13:33:01Z", "id": "staffplan-redux", "ip_address_type": "dualstack", "ipv6_addresses": [ - "2600:1f18:62af:2400:a42e:12b6:9579:8548" + "2600:1f18:62af:2400:52b7:7a0d:42d:c2c4" ], "is_static_ip": false, "key_pair_name": "staffplan-key-pair", "name": "staffplan-redux", - "private_ip_address": "172.26.3.103", - "public_ip_address": "52.87.186.93", + "private_ip_address": "172.26.4.66", + "public_ip_address": "54.91.158.138", "ram_size": 2, "tags": null, "tags_all": {}, From c8f083aaad6ebfbb5f68b40eb2d97da3d827a8ce Mon Sep 17 00:00:00 2001 From: Rob Sterner Date: Wed, 3 Jul 2024 11:35:56 -0400 Subject: [PATCH 2/5] credential updates --- config/credentials/production.yml.enc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/credentials/production.yml.enc b/config/credentials/production.yml.enc index 668a6455..cbed2d08 100644 --- a/config/credentials/production.yml.enc +++ b/config/credentials/production.yml.enc @@ -1 +1 @@ -xSIabbrBeUw4cbOR5YySTiytdA5wsnav+NdIcKfzGrMopC46E+8rrybCB3kw/FWcoGY6KeuCMAhd/NUm06ejY4Bqv6Xt3RDQGtObp63GR3NT6ivavc7PJC7KZOFCiAsOa88l6aKu1KdrOk8LRQDe/MAIp2fdMtRfxnVw7x2bjLiASeKNd+yHEmc2fijyHWlFnnGoO5LpsCg++MKl+oPdca7DON7GWWWNoAqgf2HT2eWEljRHorLDTdXO77SN7+fvNSGu0c708DKznsgdOs6jVR7hlnk7Z2Czdl694+Lv2HnpPk+ZC5ndJkoMuaqTrukJyCFNgcE6A7kjHJ9EJyJoeDArAXYkSVNqIpa3PSi4j7UGeF7Syrc77/aBeCKY660aitPoqtE6jQM91cofeWmsniMe4BnwMEsVjcQyJfTOpwjeoHujzSmu2Bwj7S3KQ5NQz27ryg42aedAnfM23NAaZlwSbe+tSPaiaHrWWgYIDA8loqOgyqQixv3vhGozqLtC++WSgibWPP3SuJNwBfuSv6raONnSDrOJu4pLJ3vs8niy1HHSJsq62FJIVGvJT4hD8VjYesWISUdW7vaknEJnwwndkc2fu+M+kAb6Uxfl5dJSvk5S4MbgaZtQuivTumFM37LQvVJlCqcz5xrSef+ZgiqagvhQJi5aG2jOFGAOkMyVvLQkmzhUSv3EY1EsgNIb56pmEnxQaQg2q5BYQ72DyAmXS6ixzHKLbRkgQfo2Ga7DNJfC/QniflsQe0s8prf+oSrV/7RK/lWfZU/l9vDPOMNIoTt/hcSIMlDH9Vsgv4fB6rOfIpvigbMRF4reCYKLssGhPPWnB94LhPFdqijqQsFZupwWyPm/TeWQ+9fdTb62cRi5rSx58j2zSS+jckXonatYbIA7diHT/jhlEbXSxnNUNAlrUtRvQfw925YlZNLvQ+PrZ1im0/gBkYBQMa6c6mOI4rnERWS851RSuQAZDmpwOVBoIHMOYSdQXektZMeHJiPHUGsWHiJ+6i/V/oWLV3tbI2MY0aojZuCZ8byVvykUeKQo/f5g+47jIOw4lvoCr/QM02g6IwtOIKvsfpnblqxkjyndcP282Qsn7aA8/2SXxxGp2jPG3tc/IqW8VplZ8PZujE2YK6OtEGASq05QOXrEQsUc5JirVxTBhfdd+84b3D9n56Xu/5I4hlzSWEg6Z+vNNV2YGhP2CEwbEYVP27DvD872+d7L1c3P3SE=--R1bAzZ9LNjmw2LR9--ye2D3gtwEaWMhRKJrT7rQw== \ No newline at end of file +ESh0PHYf0rHhtTgNcefr4+TPjmhgxtwNg5ZJzcfYuTJxEvsaEo7erJGUc9YtPMHmN7fIwpiQOVYhNtBi3RZqg9nNXTYNHV+NrXwEN5k0aB5ydetkHhy7zCyE3p3dAmP5ewxxOS3bE4WXXA5LjZPpMlJxl5ih0JlaJ1fxyYvvKuk/FXWjIjQitQAVwIQWd8J8GZ41LLYHwC5o5hLndReMbnnEUiNX0v7Y9U7XaXF5R+epvzdMBGWEK0RrrQ1lrxnjKzGDSicdzcwIpvlbu+tG4DLHbCvgG1bvVypeCFxNXIWtDW81mEsOy0ivAgRcljnviiGU0Qm+Pra9S6SddPeuTkkb6Yrq7D3cAkrBbLJ+FHfhUiGaliop9cAPPZCzrn6j1Nbt5UGKhqhMx5WNILCKFyI701NgA5MUmx9LYTouCWSdcB7CNnboq4iP+4ra0qoAYcHulpfw421f9ms6+vNi+79H9FBzvwniY7gZugRsDGyCCbzgFxxmJR5rqEG5MGZ1hqtK7truK6+590Zruq5rP3cNsEmXOKf3z/0c7iEleBU0gX1FtsDB+Kks1f42Wv+e96KjIOp4z9RiZnV1FA79Bpok/qkSVlwxT5zDJ4/UmgSOrtMKhK9FlDoX6XURDJLK0y7kw4FACCQTjJ4I6VHTOpWrNmfQLGLw4Sjw1QUpIcq3l4SBxrSvfguHGxIwCo+8ltsWTep40YXII7A0+Y3/YKuqJFqARapvJLPC7AYWMZQWqXA4LJWRpt8e00JLFTfebJPa8Jc8qyZwiThSDxm8MIXPSY7vafUqSPtMxfqTAV2F+A6p9DvhTrek4lqUy2UPCTg10ruuiuo4DIpM2j2roGJ+FgF1NqD0hfgCgUwXKy6YLZtyFDuWQqz5T6icpNJKMkM8QnCtZuaE9XA945lWesjbGs8LrBQqVkiKdqegpx8K/8dY4bGyajXdhjHi746V5PdLF4NDZPvK9aGpb/ZZZ1IfGVLIOgNkqGGkLvfFKzr92861Cz40bTEUC/l+bgkrQkbpI8v4PAb0+i0o/zQfnM7jw9avV97Cc3evWs0C8DgLuIP3T3iCCPFjuwRitXDN/231XBblZ2LdLuSK3ldDOv/mATLS9V2w6TplmwUV/s4KftFqOPl5UhB0LEwGymNhtmwL347rZgrOdLacYA0kUzm1DI/0uqXn2k9el8j51ctDfaUPVqkdmQwMX0D3DOCenMd9cy07DwVyQz+FuDHPAaGIYMR04we7bdiwxaTGGXsMwF8HxE1YcDOMOLC4Jatu1FPQCq1sblhM6JgIL5eN+d1ec97mGHKg+/Erwghn--ZWqRUayXxeTjYnG7--aIj4e2KfgeWvqrzZlmswbg== \ No newline at end of file From ac83fa635c2950b712fcdc39e9b1fd2bfc7795fe Mon Sep 17 00:00:00 2001 From: Rob Sterner Date: Wed, 3 Jul 2024 12:07:58 -0400 Subject: [PATCH 3/5] refresh cassettes --- .../perform/creates_a_stripe_customer.yml | 179 +++--- .../perform/save_stripe_id_to_company.yml | 179 +++--- .../creates_a_subscription.yml | 137 +++-- ...t_card_information_if_on_a_free_trial_.yml | 137 +++-- ...ustomer_email_plan_amount_and_quantity.yml | 340 ----------- ...rice_id_the_rest_comes_in_via_webhooks.yml | 131 ++-- ...tripe_and_redirects_the_user_to_Stripe.yml | 183 +++--- ..._the_registration_and_sign_the_user_in.yml | 139 +++-- ...a_new_User_record_for_the_registration.yml | 139 +++-- ...the_registration_as_having_registered_.yml | 139 +++-- .../cancels_the_subscription.yml | 570 ------------------ ...and_a_link_to_go_create_a_subscription.yml | 340 ----------- ...o_go_set_up_payment_for_a_subscription.yml | 119 ++-- ...ion_when_an_active_paying_subscription.yml | 139 +++-- ...he_subscription_when_in_a_trial_period.yml | 139 +++-- .../informs_Stripe_of_the_new_quantity.yml | 115 ++-- 16 files changed, 1111 insertions(+), 2014 deletions(-) delete mode 100644 spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/stores_stripe_price_id_customer_name_customer_email_plan_amount_and_quantity.yml delete mode 100644 spec/cassettes/Subscription_Management/cancelling_a_subscription/cancels_the_subscription.yml delete mode 100644 spec/cassettes/Subscription_Management/when_trialing/shows_a_page_with_some_content_and_a_link_to_go_create_a_subscription.yml diff --git a/spec/cassettes/CreateStripeCustomerJob/perform/creates_a_stripe_customer.yml b/spec/cassettes/CreateStripeCustomerJob/perform/creates_a_stripe_customer.yml index d3ab075e..b0de9605 100644 --- a/spec/cassettes/CreateStripeCustomerJob/perform/creates_a_stripe_customer.yml +++ b/spec/cassettes/CreateStripeCustomerJob/perform/creates_a_stripe_customer.yml @@ -5,22 +5,22 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Robel-Douglas+2+%7C+Donovan+Baumbach+2&email=something%40static.com + string: name=Spencer+LLC+28+%7C+Leonel+Adams+IV+28&email=something%40static.com headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_grPdFJuza6kAVS","request_duration_ms":165}}' + - '{"last_request_metrics":{"request_id":"req_IDNh8s15SDeQKa","request_duration_ms":908}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -33,11 +33,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:07 GMT + - Wed, 03 Jul 2024 16:06:45 GMT Content-Type: - application/json Content-Length: - - '666' + - '665' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -57,18 +57,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 2b7d62e4-0286-4d6c-ad5d-4258a4e7e2d5 + - f739e8d2-6aec-4f14-8f17-3789b743f35a Original-Request: - - req_WDHB76sXXvRBNn + - req_7HfLjI0dlaIhov + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_WDHB76sXXvRBNn + - req_7HfLjI0dlaIhov Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -77,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8XmzoKFqdYA8", + "id": "cus_QPKMlvO3apTjIZ", "object": "customer", "address": null, "balance": 0, - "created": 1708908126, + "created": 1720022805, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, "email": "something@static.com", - "invoice_prefix": "334DC164", + "invoice_prefix": "FB0FF49D", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -97,7 +107,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Robel-Douglas 2 | Donovan Baumbach 2", + "name": "Spencer LLC 28 | Leonel Adams IV 28", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -105,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:42:07 GMT + recorded_at: Wed, 03 Jul 2024 16:06:45 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_Pd8XmzoKFqdYA8&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMlvO3apTjIZ&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_WDHB76sXXvRBNn","request_duration_ms":245}}' + - '{"last_request_metrics":{"request_id":"req_7HfLjI0dlaIhov","request_duration_ms":263}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -139,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:07 GMT + - Wed, 03 Jul 2024 16:06:46 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -163,18 +173,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - d96c6a7c-0de3-45cd-9218-8c524ed1dbd1 + - 9a1106d4-3ff5-43df-88c1-2a6f74264a9a Original-Request: - - req_yBwwWvsjnjNwPz + - req_zqvU5pzHvjGVEw + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_yBwwWvsjnjNwPz + - req_zqvU5pzHvjGVEw Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -183,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OnsGhBLjyMcgacQNJaDsE8z", + "id": "sub_1PYVhhBLjyMcgacQbLF02cP0", "object": "subscription", "application": null, "application_fee_percent": null, @@ -191,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711500127, + "billing_cycle_anchor": 1722614805, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -203,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1708908127, + "created": 1720022805, "currency": "usd", - "current_period_end": 1711500127, - "current_period_start": 1708908127, - "customer": "cus_Pd8XmzoKFqdYA8", + "current_period_end": 1722614805, + "current_period_start": 1720022805, + "customer": "cus_QPKMlvO3apTjIZ", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -225,49 +246,52 @@ http_interactions: "object": "list", "data": [ { - "id": "si_Pd8XOvg9zhNsnB", + "id": "si_QPKMtWwDGgqHGw", "object": "subscription_item", "billing_thresholds": null, - "created": 1708908127, + "created": 1720022806, + "discounts": [], "metadata": {}, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "price", "active": true, "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -279,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OnsGhBLjyMcgacQNJaDsE8z", + "subscription": "sub_1PYVhhBLjyMcgacQbLF02cP0", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsGhBLjyMcgacQNJaDsE8z" + "url": "/v1/subscription_items?subscription=sub_1PYVhhBLjyMcgacQbLF02cP0" }, - "latest_invoice": "in_1OnsGhBLjyMcgacQzfZxbN6r", + "latest_invoice": "in_1PYVhhBLjyMcgacQ7kJ4yCs9", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -299,24 +323,25 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsGhBLjyMcgacQZ5ElPC9U", + "pending_setup_intent": "seti_1PYVhiBLjyMcgacQ9P2Mw5aC", "pending_update": null, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, @@ -324,40 +349,40 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1708908127, + "start_date": 1720022805, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711500127, + "trial_end": 1722614805, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1708908127 + "trial_start": 1720022805 } - recorded_at: Mon, 26 Feb 2024 00:42:07 GMT + recorded_at: Wed, 03 Jul 2024 16:06:46 GMT - request: method: get - uri: https://api.stripe.com/v1/customers/cus_Pd8XmzoKFqdYA8 + uri: https://api.stripe.com/v1/customers/cus_QPKMlvO3apTjIZ body: encoding: US-ASCII string: '' headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_yBwwWvsjnjNwPz","request_duration_ms":777}}' + - '{"last_request_metrics":{"request_id":"req_zqvU5pzHvjGVEw","request_duration_ms":830}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -370,11 +395,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:08 GMT + - Wed, 03 Jul 2024 16:06:46 GMT Content-Type: - application/json Content-Length: - - '667' + - '666' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -395,12 +420,22 @@ http_interactions: block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_fhPb3feXFQUzcu + - req_HBkqidihaLrHYX Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -409,18 +444,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8XmzoKFqdYA8", + "id": "cus_QPKMlvO3apTjIZ", "object": "customer", "address": null, "balance": 0, - "created": 1708908126, + "created": 1720022805, "currency": "usd", "default_source": null, "delinquent": false, "description": null, "discount": null, "email": "something@static.com", - "invoice_prefix": "334DC164", + "invoice_prefix": "FB0FF49D", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -429,7 +464,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Robel-Douglas 2 | Donovan Baumbach 2", + "name": "Spencer LLC 28 | Leonel Adams IV 28", "next_invoice_sequence": 2, "phone": null, "preferred_locales": [], @@ -437,5 +472,5 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:42:08 GMT + recorded_at: Wed, 03 Jul 2024 16:06:46 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/CreateStripeCustomerJob/perform/save_stripe_id_to_company.yml b/spec/cassettes/CreateStripeCustomerJob/perform/save_stripe_id_to_company.yml index ea7d628b..6b9b4ee7 100644 --- a/spec/cassettes/CreateStripeCustomerJob/perform/save_stripe_id_to_company.yml +++ b/spec/cassettes/CreateStripeCustomerJob/perform/save_stripe_id_to_company.yml @@ -5,20 +5,22 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Kessler-Turner+1+%7C+Leora+Hodkiewicz+1&email=something%40static.com + string: name=Bode+Inc+29+%7C+Fallon+Rempel+29&email=something%40static.com headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_HBkqidihaLrHYX","request_duration_ms":183}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -31,11 +33,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:05 GMT + - Wed, 03 Jul 2024 16:06:47 GMT Content-Type: - application/json Content-Length: - - '667' + - '660' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -55,18 +57,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 3125082c-982e-4a4f-afd1-b6da982c13f5 + - da34a41f-8174-4cc8-afd0-435ee612f958 Original-Request: - - req_LlK7J4ge3FRPoY + - req_jxkgBoA7BPX2mc + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_LlK7J4ge3FRPoY + - req_jxkgBoA7BPX2mc Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -75,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8XRwdwQPVmmg", + "id": "cus_QPKMjhwaBrLPfk", "object": "customer", "address": null, "balance": 0, - "created": 1708908125, + "created": 1720022806, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, "email": "something@static.com", - "invoice_prefix": "CDC76471", + "invoice_prefix": "18116082", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -95,7 +107,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Kessler-Turner 1 | Leora Hodkiewicz 1", + "name": "Bode Inc 29 | Fallon Rempel 29", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -103,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:42:05 GMT + recorded_at: Wed, 03 Jul 2024 16:06:47 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_Pd8XRwdwQPVmmg&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMjhwaBrLPfk&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_LlK7J4ge3FRPoY","request_duration_ms":358}}' + - '{"last_request_metrics":{"request_id":"req_jxkgBoA7BPX2mc","request_duration_ms":285}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -137,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:06 GMT + - Wed, 03 Jul 2024 16:06:47 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -161,18 +173,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - d4a46269-7047-47c5-9fa6-7d78cb7bdbe4 + - e1a455d4-726d-4182-ba8e-7c5ac5d1ba0a Original-Request: - - req_1qCYWykn0a1vrH + - req_mZ7APxVFoleKez + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_1qCYWykn0a1vrH + - req_mZ7APxVFoleKez Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -181,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OnsGfBLjyMcgacQHO0eeTud", + "id": "sub_1PYVhjBLjyMcgacQCeNd985Z", "object": "subscription", "application": null, "application_fee_percent": null, @@ -189,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711500125, + "billing_cycle_anchor": 1722614807, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -201,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1708908125, + "created": 1720022807, "currency": "usd", - "current_period_end": 1711500125, - "current_period_start": 1708908125, - "customer": "cus_Pd8XRwdwQPVmmg", + "current_period_end": 1722614807, + "current_period_start": 1720022807, + "customer": "cus_QPKMjhwaBrLPfk", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -223,49 +246,52 @@ http_interactions: "object": "list", "data": [ { - "id": "si_Pd8XvebnPSnI6s", + "id": "si_QPKMZUFkHZQUSy", "object": "subscription_item", "billing_thresholds": null, - "created": 1708908126, + "created": 1720022807, + "discounts": [], "metadata": {}, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "price", "active": true, "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -277,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OnsGfBLjyMcgacQHO0eeTud", + "subscription": "sub_1PYVhjBLjyMcgacQCeNd985Z", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsGfBLjyMcgacQHO0eeTud" + "url": "/v1/subscription_items?subscription=sub_1PYVhjBLjyMcgacQCeNd985Z" }, - "latest_invoice": "in_1OnsGgBLjyMcgacQfWm1HMFN", + "latest_invoice": "in_1PYVhjBLjyMcgacQ923a7Caa", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -297,24 +323,25 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsGgBLjyMcgacQKaUOyPjr", + "pending_setup_intent": "seti_1PYVhjBLjyMcgacQmg6ZL3PF", "pending_update": null, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, @@ -322,40 +349,40 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1708908125, + "start_date": 1720022807, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711500125, + "trial_end": 1722614807, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1708908125 + "trial_start": 1720022807 } - recorded_at: Mon, 26 Feb 2024 00:42:06 GMT + recorded_at: Wed, 03 Jul 2024 16:06:47 GMT - request: method: get - uri: https://api.stripe.com/v1/customers/cus_Pd8XRwdwQPVmmg + uri: https://api.stripe.com/v1/customers/cus_QPKMjhwaBrLPfk body: encoding: US-ASCII string: '' headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_1qCYWykn0a1vrH","request_duration_ms":784}}' + - '{"last_request_metrics":{"request_id":"req_mZ7APxVFoleKez","request_duration_ms":882}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -368,11 +395,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:06 GMT + - Wed, 03 Jul 2024 16:06:48 GMT Content-Type: - application/json Content-Length: - - '668' + - '661' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -393,12 +420,22 @@ http_interactions: block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_grPdFJuza6kAVS + - req_Ix3e81i3u5C5E3 Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -407,18 +444,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8XRwdwQPVmmg", + "id": "cus_QPKMjhwaBrLPfk", "object": "customer", "address": null, "balance": 0, - "created": 1708908125, + "created": 1720022806, "currency": "usd", "default_source": null, "delinquent": false, "description": null, "discount": null, "email": "something@static.com", - "invoice_prefix": "CDC76471", + "invoice_prefix": "18116082", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -427,7 +464,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Kessler-Turner 1 | Leora Hodkiewicz 1", + "name": "Bode Inc 29 | Fallon Rempel 29", "next_invoice_sequence": 2, "phone": null, "preferred_locales": [], @@ -435,5 +472,5 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:42:06 GMT + recorded_at: Wed, 03 Jul 2024 16:06:48 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/creates_a_subscription.yml b/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/creates_a_subscription.yml index 8fcb6907..aadd985c 100644 --- a/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/creates_a_subscription.yml +++ b/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/creates_a_subscription.yml @@ -5,22 +5,22 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Shanahan-Koepp+4+%7C+Augusta+Robel+4&email=something%40static.com + string: name=Grady%2C+O%27Connell+and+Bednar+30+%7C+Benny+Gottlieb+30&email=something%40static.com headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_a1lYiRQf9QqKAo","request_duration_ms":715}}' + - '{"last_request_metrics":{"request_id":"req_Ix3e81i3u5C5E3","request_duration_ms":172}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -33,11 +33,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:10 GMT + - Wed, 03 Jul 2024 16:06:48 GMT Content-Type: - application/json Content-Length: - - '664' + - '680' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -57,18 +57,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - c4d973c6-2e2e-4986-a2c9-7335aa600895 + - b354660f-7a13-40ee-a75d-d3ab18320226 Original-Request: - - req_nlAAVRmisMxPET + - req_V5sl3vgOz9MXt3 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_nlAAVRmisMxPET + - req_V5sl3vgOz9MXt3 Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -77,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8XXdEe7oSHPj", + "id": "cus_QPKMI8JVBWLQ4z", "object": "customer", "address": null, "balance": 0, - "created": 1708908130, + "created": 1720022808, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, "email": "something@static.com", - "invoice_prefix": "288CC9A2", + "invoice_prefix": "C5019492", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -97,7 +107,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Shanahan-Koepp 4 | Augusta Robel 4", + "name": "Grady, O'Connell and Bednar 30 | Benny Gottlieb 30", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -105,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:42:10 GMT + recorded_at: Wed, 03 Jul 2024 16:06:48 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_Pd8XXdEe7oSHPj&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMI8JVBWLQ4z&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_nlAAVRmisMxPET","request_duration_ms":239}}' + - '{"last_request_metrics":{"request_id":"req_V5sl3vgOz9MXt3","request_duration_ms":252}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -139,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:11 GMT + - Wed, 03 Jul 2024 16:06:49 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -163,18 +173,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 9785c1a1-9850-4f16-bb5e-f76fdb4277d7 + - 1d591d72-bb8e-4f52-909e-c22b45ea7f7e Original-Request: - - req_04Qvb3WgAYYedf + - req_6vQlRBTHXLVqfL + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_04Qvb3WgAYYedf + - req_6vQlRBTHXLVqfL Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -183,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OnsGkBLjyMcgacQJciKjE9A", + "id": "sub_1PYVhkBLjyMcgacQSUBEWW6t", "object": "subscription", "application": null, "application_fee_percent": null, @@ -191,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711500130, + "billing_cycle_anchor": 1722614808, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -203,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1708908130, + "created": 1720022808, "currency": "usd", - "current_period_end": 1711500130, - "current_period_start": 1708908130, - "customer": "cus_Pd8XXdEe7oSHPj", + "current_period_end": 1722614808, + "current_period_start": 1720022808, + "customer": "cus_QPKMI8JVBWLQ4z", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -225,49 +246,52 @@ http_interactions: "object": "list", "data": [ { - "id": "si_Pd8Xl4GXakei1J", + "id": "si_QPKM71gEm9rAYd", "object": "subscription_item", "billing_thresholds": null, - "created": 1708908131, + "created": 1720022809, + "discounts": [], "metadata": {}, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "price", "active": true, "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -279,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OnsGkBLjyMcgacQJciKjE9A", + "subscription": "sub_1PYVhkBLjyMcgacQSUBEWW6t", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsGkBLjyMcgacQJciKjE9A" + "url": "/v1/subscription_items?subscription=sub_1PYVhkBLjyMcgacQSUBEWW6t" }, - "latest_invoice": "in_1OnsGkBLjyMcgacQR75BE9TM", + "latest_invoice": "in_1PYVhkBLjyMcgacQnIWamnab", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -299,24 +323,25 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsGlBLjyMcgacQIycr5gA8", + "pending_setup_intent": "seti_1PYVhkBLjyMcgacQDavpJPkp", "pending_update": null, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, @@ -324,17 +349,17 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1708908130, + "start_date": 1720022808, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711500130, + "trial_end": 1722614808, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1708908130 + "trial_start": 1720022808 } - recorded_at: Mon, 26 Feb 2024 00:42:11 GMT + recorded_at: Wed, 03 Jul 2024 16:06:49 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/saves_without_any_credit_card_information_if_on_a_free_trial_.yml b/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/saves_without_any_credit_card_information_if_on_a_free_trial_.yml index 2ab81e8c..325e5489 100644 --- a/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/saves_without_any_credit_card_information_if_on_a_free_trial_.yml +++ b/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/saves_without_any_credit_card_information_if_on_a_free_trial_.yml @@ -5,22 +5,22 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Witting+Inc+3+%7C+Oliver+Legros+3&email=something%40static.com + string: name=Boyle%2C+Swaniawski+and+Powlowski+31+%7C+Travis+Wilderman+31&email=something%40static.com headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_fhPb3feXFQUzcu","request_duration_ms":161}}' + - '{"last_request_metrics":{"request_id":"req_gQQ0Qaiyj8y8vX","request_duration_ms":842}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -33,11 +33,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:08 GMT + - Wed, 03 Jul 2024 16:06:51 GMT Content-Type: - application/json Content-Length: - - '661' + - '686' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -57,18 +57,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 105b6866-f2d5-4f15-9463-26d2bbde613a + - a3e364a6-65eb-4f75-bdbf-6901de654e9d Original-Request: - - req_HOmluxr39VsKLR + - req_dIio9Xc3WZb65f + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_HOmluxr39VsKLR + - req_dIio9Xc3WZb65f Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -77,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8XMXbFoPQPWk", + "id": "cus_QPKMDbQ1xPmQwt", "object": "customer", "address": null, "balance": 0, - "created": 1708908128, + "created": 1720022810, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, "email": "something@static.com", - "invoice_prefix": "88943AA5", + "invoice_prefix": "59813CF3", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -97,7 +107,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Witting Inc 3 | Oliver Legros 3", + "name": "Boyle, Swaniawski and Powlowski 31 | Travis Wilderman 31", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -105,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:42:08 GMT + recorded_at: Wed, 03 Jul 2024 16:06:51 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_Pd8XMXbFoPQPWk&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMDbQ1xPmQwt&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_HOmluxr39VsKLR","request_duration_ms":249}}' + - '{"last_request_metrics":{"request_id":"req_dIio9Xc3WZb65f","request_duration_ms":300}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -139,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:09 GMT + - Wed, 03 Jul 2024 16:06:51 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -163,18 +173,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - cdf706ea-85cd-45e5-a529-a0fc181d8958 + - 40f42676-c7a3-417a-aabe-b6be3e131f34 Original-Request: - - req_s9K8VN0KEr0vA5 + - req_iVB9UwfXbk2fm8 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_s9K8VN0KEr0vA5 + - req_iVB9UwfXbk2fm8 Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -183,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OnsGiBLjyMcgacQ4uSvvbhm", + "id": "sub_1PYVhnBLjyMcgacQo1pXvXx8", "object": "subscription", "application": null, "application_fee_percent": null, @@ -191,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711500128, + "billing_cycle_anchor": 1722614811, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -203,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1708908128, + "created": 1720022811, "currency": "usd", - "current_period_end": 1711500128, - "current_period_start": 1708908128, - "customer": "cus_Pd8XMXbFoPQPWk", + "current_period_end": 1722614811, + "current_period_start": 1720022811, + "customer": "cus_QPKMDbQ1xPmQwt", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -225,49 +246,52 @@ http_interactions: "object": "list", "data": [ { - "id": "si_Pd8XJCnJ134sGF", + "id": "si_QPKMbLZcTILYnx", "object": "subscription_item", "billing_thresholds": null, - "created": 1708908129, + "created": 1720022811, + "discounts": [], "metadata": {}, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "price", "active": true, "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -279,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OnsGiBLjyMcgacQ4uSvvbhm", + "subscription": "sub_1PYVhnBLjyMcgacQo1pXvXx8", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsGiBLjyMcgacQ4uSvvbhm" + "url": "/v1/subscription_items?subscription=sub_1PYVhnBLjyMcgacQo1pXvXx8" }, - "latest_invoice": "in_1OnsGiBLjyMcgacQ1sAg1QxZ", + "latest_invoice": "in_1PYVhnBLjyMcgacQKuaiIysl", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -299,24 +323,25 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsGiBLjyMcgacQi0H9jc7X", + "pending_setup_intent": "seti_1PYVhnBLjyMcgacQNbVzdu3s", "pending_update": null, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, @@ -324,17 +349,17 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1708908128, + "start_date": 1720022811, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711500128, + "trial_end": 1722614811, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1708908128 + "trial_start": 1720022811 } - recorded_at: Mon, 26 Feb 2024 00:42:09 GMT + recorded_at: Wed, 03 Jul 2024 16:06:51 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/stores_stripe_price_id_customer_name_customer_email_plan_amount_and_quantity.yml b/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/stores_stripe_price_id_customer_name_customer_email_plan_amount_and_quantity.yml deleted file mode 100644 index 9427592a..00000000 --- a/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/stores_stripe_price_id_customer_name_customer_email_plan_amount_and_quantity.yml +++ /dev/null @@ -1,340 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.stripe.com/v1/customers - body: - encoding: UTF-8 - string: name=static+company+name+%7C+static+name&email=something%40static.com - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.10.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_s9K8VN0KEr0vA5","request_duration_ms":802}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 26 Feb 2024 00:42:09 GMT - Content-Type: - - application/json - Content-Length: - - '663' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Idempotency-Key: - - 06e7ba17-29c1-4e2f-aef8-73b7362d4102 - Original-Request: - - req_Z88qZAxwFoJRlN - Request-Id: - - req_Z88qZAxwFoJRlN - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "cus_Pd8XKnQeAgwSZ6", - "object": "customer", - "address": null, - "balance": 0, - "created": 1708908129, - "currency": null, - "default_source": null, - "delinquent": false, - "description": null, - "discount": null, - "email": "something@static.com", - "invoice_prefix": "508EC30F", - "invoice_settings": { - "custom_fields": null, - "default_payment_method": null, - "footer": null, - "rendering_options": null - }, - "livemode": false, - "metadata": {}, - "name": "static company name | static name", - "next_invoice_sequence": 1, - "phone": null, - "preferred_locales": [], - "shipping": null, - "tax_exempt": "none", - "test_clock": null - } - recorded_at: Mon, 26 Feb 2024 00:42:09 GMT -- request: - method: post - uri: https://api.stripe.com/v1/subscriptions - body: - encoding: UTF-8 - string: customer=cus_Pd8XKnQeAgwSZ6&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.10.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Z88qZAxwFoJRlN","request_duration_ms":256}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 26 Feb 2024 00:42:10 GMT - Content-Type: - - application/json - Content-Length: - - '4222' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Idempotency-Key: - - defde236-8140-4924-af81-5f47689cc34e - Original-Request: - - req_a1lYiRQf9QqKAo - Request-Id: - - req_a1lYiRQf9QqKAo - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "sub_1OnsGjBLjyMcgacQUxQQAbQ6", - "object": "subscription", - "application": null, - "application_fee_percent": null, - "automatic_tax": { - "enabled": false, - "liability": null - }, - "billing_cycle_anchor": 1711500129, - "billing_cycle_anchor_config": null, - "billing_thresholds": null, - "cancel_at": null, - "cancel_at_period_end": false, - "canceled_at": null, - "cancellation_details": { - "comment": null, - "feedback": null, - "reason": null - }, - "collection_method": "charge_automatically", - "created": 1708908129, - "currency": "usd", - "current_period_end": 1711500129, - "current_period_start": 1708908129, - "customer": "cus_Pd8XKnQeAgwSZ6", - "days_until_due": null, - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discount": null, - "ended_at": null, - "invoice_settings": { - "account_tax_ids": null, - "issuer": { - "type": "self" - } - }, - "items": { - "object": "list", - "data": [ - { - "id": "si_Pd8XIwwXQxRtSv", - "object": "subscription_item", - "billing_thresholds": null, - "created": 1708908130, - "metadata": {}, - "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "plan", - "active": true, - "aggregate_usage": null, - "amount": 300, - "amount_decimal": "300", - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "interval": "month", - "interval_count": 1, - "livemode": false, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "tiers_mode": null, - "transform_usage": null, - "trial_period_days": null, - "usage_type": "licensed" - }, - "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "price", - "active": true, - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "custom_unit_amount": null, - "livemode": false, - "lookup_key": null, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "recurring": { - "aggregate_usage": null, - "interval": "month", - "interval_count": 1, - "trial_period_days": null, - "usage_type": "licensed" - }, - "tax_behavior": "unspecified", - "tiers_mode": null, - "transform_quantity": null, - "type": "recurring", - "unit_amount": 300, - "unit_amount_decimal": "300" - }, - "quantity": 1, - "subscription": "sub_1OnsGjBLjyMcgacQUxQQAbQ6", - "tax_rates": [] - } - ], - "has_more": false, - "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsGjBLjyMcgacQUxQQAbQ6" - }, - "latest_invoice": "in_1OnsGjBLjyMcgacQIbljuKH7", - "livemode": false, - "metadata": {}, - "next_pending_invoice_item_invoice": null, - "on_behalf_of": null, - "pause_collection": null, - "payment_settings": { - "payment_method_options": null, - "payment_method_types": null, - "save_default_payment_method": "on_subscription" - }, - "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsGkBLjyMcgacQPh3eceuK", - "pending_update": null, - "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "plan", - "active": true, - "aggregate_usage": null, - "amount": 300, - "amount_decimal": "300", - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "interval": "month", - "interval_count": 1, - "livemode": false, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "tiers_mode": null, - "transform_usage": null, - "trial_period_days": null, - "usage_type": "licensed" - }, - "quantity": 1, - "schedule": null, - "start_date": 1708908129, - "status": "trialing", - "test_clock": null, - "transfer_data": null, - "trial_end": 1711500129, - "trial_settings": { - "end_behavior": { - "missing_payment_method": "cancel" - } - }, - "trial_start": 1708908129 - } - recorded_at: Mon, 26 Feb 2024 00:42:10 GMT -recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/stores_stripe_price_id_the_rest_comes_in_via_webhooks.yml b/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/stores_stripe_price_id_the_rest_comes_in_via_webhooks.yml index 69af6c28..1f782cf9 100644 --- a/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/stores_stripe_price_id_the_rest_comes_in_via_webhooks.yml +++ b/spec/cassettes/CreateStripeCustomerJob/perform/stripe_subscription/stores_stripe_price_id_the_rest_comes_in_via_webhooks.yml @@ -8,17 +8,19 @@ http_interactions: string: name=static+company+name+%7C+static+name&email=something%40static.com headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_6vQlRBTHXLVqfL","request_duration_ms":831}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -31,7 +33,7 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:43:53 GMT + - Wed, 03 Jul 2024 16:06:49 GMT Content-Type: - application/json Content-Length: @@ -55,18 +57,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 0a7d57b0-a894-4130-9535-cc1f418b3285 + - cf29e501-6644-4a7b-ab01-2c9bffde2afb Original-Request: - - req_lKGC8VIGWkYlOz + - req_jBhTEnCk9X9ujU + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_lKGC8VIGWkYlOz + - req_jBhTEnCk9X9ujU Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -75,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8ZkMTFPagA4S", + "id": "cus_QPKMWRB1uaWMkT", "object": "customer", "address": null, "balance": 0, - "created": 1708908233, + "created": 1720022809, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, "email": "something@static.com", - "invoice_prefix": "EAFDB5E3", + "invoice_prefix": "9FBFF7C1", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -103,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:43:53 GMT + recorded_at: Wed, 03 Jul 2024 16:06:49 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_Pd8ZkMTFPagA4S&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMWRB1uaWMkT&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_lKGC8VIGWkYlOz","request_duration_ms":319}}' + - '{"last_request_metrics":{"request_id":"req_jBhTEnCk9X9ujU","request_duration_ms":263}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -137,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:43:54 GMT + - Wed, 03 Jul 2024 16:06:50 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -161,18 +173,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 6cb9a5c7-18a7-492b-99cb-3aa43356fcaa + - cef8959e-e1b5-47a2-8818-4e5366c35eeb Original-Request: - - req_MHYU4QtA0lVssv + - req_gQQ0Qaiyj8y8vX + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_MHYU4QtA0lVssv + - req_gQQ0Qaiyj8y8vX Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -181,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OnsIQBLjyMcgacQ6A3JiYZY", + "id": "sub_1PYVhlBLjyMcgacQSfbs4eBe", "object": "subscription", "application": null, "application_fee_percent": null, @@ -189,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711500234, + "billing_cycle_anchor": 1722614809, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -201,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1708908234, + "created": 1720022809, "currency": "usd", - "current_period_end": 1711500234, - "current_period_start": 1708908234, - "customer": "cus_Pd8ZkMTFPagA4S", + "current_period_end": 1722614809, + "current_period_start": 1720022809, + "customer": "cus_QPKMWRB1uaWMkT", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -223,49 +246,52 @@ http_interactions: "object": "list", "data": [ { - "id": "si_Pd8Zvs3ZlAfurx", + "id": "si_QPKMVBhFzDIqaX", "object": "subscription_item", "billing_thresholds": null, - "created": 1708908234, + "created": 1720022810, + "discounts": [], "metadata": {}, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "price", "active": true, "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -277,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OnsIQBLjyMcgacQ6A3JiYZY", + "subscription": "sub_1PYVhlBLjyMcgacQSfbs4eBe", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsIQBLjyMcgacQ6A3JiYZY" + "url": "/v1/subscription_items?subscription=sub_1PYVhlBLjyMcgacQSfbs4eBe" }, - "latest_invoice": "in_1OnsIQBLjyMcgacQZxzEXfvd", + "latest_invoice": "in_1PYVhlBLjyMcgacQq5iDOFJg", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -297,24 +323,25 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsIQBLjyMcgacQ1YUVlLSB", + "pending_setup_intent": "seti_1PYVhmBLjyMcgacQARpBo62o", "pending_update": null, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, @@ -322,17 +349,17 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1708908234, + "start_date": 1720022809, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711500234, + "trial_end": 1722614809, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1708908234 + "trial_start": 1720022809 } - recorded_at: Mon, 26 Feb 2024 00:43:54 GMT + recorded_at: Wed, 03 Jul 2024 16:06:50 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/Settings_Subscriptions/creating_a_new_subscription/generates_a_URL_to_Stripe_and_redirects_the_user_to_Stripe.yml b/spec/cassettes/Settings_Subscriptions/creating_a_new_subscription/generates_a_URL_to_Stripe_and_redirects_the_user_to_Stripe.yml index 32742abf..b9331c77 100644 --- a/spec/cassettes/Settings_Subscriptions/creating_a_new_subscription/generates_a_URL_to_Stripe_and_redirects_the_user_to_Stripe.yml +++ b/spec/cassettes/Settings_Subscriptions/creating_a_new_subscription/generates_a_URL_to_Stripe_and_redirects_the_user_to_Stripe.yml @@ -5,22 +5,22 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Hayes%2C+Miller+and+Herman+8+%7C+Static+Name&email=static%40email.com + string: name=Greenfelder-Kozey+33+%7C+Static+Name&email=static%40email.com headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_C6jbAQTc30AJvs","request_duration_ms":715}}' + - '{"last_request_metrics":{"request_id":"req_i213G05QoV24Wr","request_duration_ms":863}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -33,11 +33,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:17 GMT + - Wed, 03 Jul 2024 16:07:01 GMT Content-Type: - application/json Content-Length: - - '666' + - '660' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -57,18 +57,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 7ff4fb1b-1ac4-4775-b962-d43fe3524234 + - e734748e-bf98-4dd1-85e0-26a276465c35 Original-Request: - - req_fH7Rb47DVFfD8r + - req_i2g0F54zWS9qqT + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_fH7Rb47DVFfD8r + - req_i2g0F54zWS9qqT Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -77,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8XE8KYzW7Let", + "id": "cus_QPKMGwpnPeGzVZ", "object": "customer", "address": null, "balance": 0, - "created": 1708908137, + "created": 1720022821, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, "email": "static@email.com", - "invoice_prefix": "62E928EA", + "invoice_prefix": "850AF300", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -97,7 +107,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Hayes, Miller and Herman 8 | Static Name", + "name": "Greenfelder-Kozey 33 | Static Name", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -105,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:42:17 GMT + recorded_at: Wed, 03 Jul 2024 16:07:01 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_Pd8XE8KYzW7Let&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMGwpnPeGzVZ&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_fH7Rb47DVFfD8r","request_duration_ms":235}}' + - '{"last_request_metrics":{"request_id":"req_i2g0F54zWS9qqT","request_duration_ms":270}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -139,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:18 GMT + - Wed, 03 Jul 2024 16:07:02 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -163,18 +173,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - bb47497c-cc0e-46eb-b9f3-4d4dafac2019 + - 4e099c21-151b-44f6-95ea-8dc0a6bb2f1a Original-Request: - - req_YGLeyK46Dy4mWt + - req_xkDO3dEPNNklV2 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_YGLeyK46Dy4mWt + - req_xkDO3dEPNNklV2 Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -183,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OnsGrBLjyMcgacQX4j5Hszb", + "id": "sub_1PYVhxBLjyMcgacQctMhg7oE", "object": "subscription", "application": null, "application_fee_percent": null, @@ -191,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711500137, + "billing_cycle_anchor": 1722614821, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -203,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1708908137, + "created": 1720022821, "currency": "usd", - "current_period_end": 1711500137, - "current_period_start": 1708908137, - "customer": "cus_Pd8XE8KYzW7Let", + "current_period_end": 1722614821, + "current_period_start": 1720022821, + "customer": "cus_QPKMGwpnPeGzVZ", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -225,49 +246,52 @@ http_interactions: "object": "list", "data": [ { - "id": "si_Pd8XP4cCifqO2S", + "id": "si_QPKMBVTEbCKtV2", "object": "subscription_item", "billing_thresholds": null, - "created": 1708908138, + "created": 1720022822, + "discounts": [], "metadata": {}, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "price", "active": true, "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -279,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OnsGrBLjyMcgacQX4j5Hszb", + "subscription": "sub_1PYVhxBLjyMcgacQctMhg7oE", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsGrBLjyMcgacQX4j5Hszb" + "url": "/v1/subscription_items?subscription=sub_1PYVhxBLjyMcgacQctMhg7oE" }, - "latest_invoice": "in_1OnsGsBLjyMcgacQahL0rzfP", + "latest_invoice": "in_1PYVhxBLjyMcgacQk30d5x5S", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -299,24 +323,25 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsGsBLjyMcgacQMCt23qnh", + "pending_setup_intent": "seti_1PYVhyBLjyMcgacQU1OqPbmP", "pending_update": null, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, @@ -324,40 +349,40 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1708908137, + "start_date": 1720022821, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711500137, + "trial_end": 1722614821, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1708908137 + "trial_start": 1720022821 } - recorded_at: Mon, 26 Feb 2024 00:42:18 GMT + recorded_at: Wed, 03 Jul 2024 16:07:02 GMT - request: method: post uri: https://api.stripe.com/v1/billing_portal/sessions body: encoding: UTF-8 - string: customer=cus_Pd8XE8KYzW7Let&return_url=http%3A%2F%2Flocalhost%3A3000%2Fsettings%2Fbilling_information&flow_data[type]=payment_method_update + string: customer=cus_QPKMGwpnPeGzVZ&return_url=http%3A%2F%2Flocalhost%3A3000%2Fsettings%2Fbilling_information&flow_data[type]=payment_method_update headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_YGLeyK46Dy4mWt","request_duration_ms":786}}' + - '{"last_request_metrics":{"request_id":"req_xkDO3dEPNNklV2","request_duration_ms":930}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -370,7 +395,7 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:18 GMT + - Wed, 03 Jul 2024 16:07:03 GMT Content-Type: - application/json Content-Length: @@ -395,18 +420,28 @@ http_interactions: block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - e1e9eba0-cfb4-48d9-bb81-10b11e9a22b2 + - fe1cfd00-1d1c-4614-a6cb-cd85071ef3e8 Original-Request: - - req_s1GfqNoa9aqb8w + - req_e8RFEoly00zApk + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_s1GfqNoa9aqb8w + - req_e8RFEoly00zApk Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -415,11 +450,11 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "bps_1OnsGsBLjyMcgacQ2nim8dTC", + "id": "bps_1PYVhzBLjyMcgacQ5GEQZe5l", "object": "billing_portal.session", - "configuration": "bpc_1OnRwlBLjyMcgacQIFQmjWwt", - "created": 1708908138, - "customer": "cus_Pd8XE8KYzW7Let", + "configuration": "bpc_1Oo8I7BLjyMcgacQj84NQ0Ru", + "created": 1720022823, + "customer": "cus_QPKMGwpnPeGzVZ", "flow": { "after_completion": { "hosted_confirmation": { @@ -437,7 +472,7 @@ http_interactions: "locale": null, "on_behalf_of": null, "return_url": "http://localhost:3000/settings/billing_information", - "url": "https://billing.stripe.com/p/session/test_YWNjdF8xT1NocGhCTGp5TWNnYWNRLF9QZDhYSDJsYXN0SUM3VTJzYUcyaTg4eklDR1ZFNlNO01001jlCldk6/flow" + "url": "https://billing.stripe.com/p/session/test_YWNjdF8xT1NocGhCTGp5TWNnYWNRLF9RUEtNd2tqZjRQV055Qlp5REMyM3lZMW5Tam54d0Y30100bYvu8ohA/flow" } - recorded_at: Mon, 26 Feb 2024 00:42:18 GMT + recorded_at: Wed, 03 Jul 2024 16:07:03 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_confirm_the_registration_and_sign_the_user_in.yml b/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_confirm_the_registration_and_sign_the_user_in.yml index 847b082c..1cc780e4 100644 --- a/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_confirm_the_registration_and_sign_the_user_in.yml +++ b/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_confirm_the_registration_and_sign_the_user_in.yml @@ -5,22 +5,22 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Kunde%2C+Zboncak+and+Grant+31+%7C+Wen+Koelpin+30&email=25weldon_stanton%40bednar.example + string: name=Koepp-Howe+18+%7C+Kathryne+Hirthe+V+18&email=18shad%40grant.example headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_98FZAiLV6qZ0JK","request_duration_ms":754}}' + - '{"last_request_metrics":{"request_id":"req_6Z7brbTv57Xb3w","request_duration_ms":842}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -33,11 +33,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:23 GMT + - Wed, 03 Jul 2024 16:06:38 GMT Content-Type: - application/json Content-Length: - - '685' + - '666' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -57,18 +57,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 9ddfa719-f7b7-4c22-820a-6bb381d947a1 + - 64ca3889-0edf-489c-b5d6-f1dec44d5e1c Original-Request: - - req_p7934MlCBJVAbF + - req_R5xIYB4yneGtkH + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_p7934MlCBJVAbF + - req_R5xIYB4yneGtkH Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -77,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8YJE0ZLQ5dFZ", + "id": "cus_QPKMUb8pdM5mIu", "object": "customer", "address": null, "balance": 0, - "created": 1708908143, + "created": 1720022798, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, - "email": "25weldon_stanton@bednar.example", - "invoice_prefix": "A4362898", + "email": "18shad@grant.example", + "invoice_prefix": "99DA311E", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -97,7 +107,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Kunde, Zboncak and Grant 31 | Wen Koelpin 30", + "name": "Koepp-Howe 18 | Kathryne Hirthe V 18", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -105,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:42:23 GMT + recorded_at: Wed, 03 Jul 2024 16:06:38 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_Pd8YJE0ZLQ5dFZ&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMUb8pdM5mIu&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_p7934MlCBJVAbF","request_duration_ms":252}}' + - '{"last_request_metrics":{"request_id":"req_R5xIYB4yneGtkH","request_duration_ms":310}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -139,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:24 GMT + - Wed, 03 Jul 2024 16:06:39 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -163,18 +173,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 152560b5-2957-4d2d-a048-88c1d0e5f861 + - 89f340c7-df58-4e91-8bb6-4c1ffd5c5881 Original-Request: - - req_v4DgCrZsVSkAJj + - req_IDNh8s15SDeQKa + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_v4DgCrZsVSkAJj + - req_IDNh8s15SDeQKa Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -183,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OnsGxBLjyMcgacQxzs0M2sR", + "id": "sub_1PYVhbBLjyMcgacQhKU9xWAP", "object": "subscription", "application": null, "application_fee_percent": null, @@ -191,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711500143, + "billing_cycle_anchor": 1722614799, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -203,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1708908143, + "created": 1720022799, "currency": "usd", - "current_period_end": 1711500143, - "current_period_start": 1708908143, - "customer": "cus_Pd8YJE0ZLQ5dFZ", + "current_period_end": 1722614799, + "current_period_start": 1720022799, + "customer": "cus_QPKMUb8pdM5mIu", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -225,49 +246,52 @@ http_interactions: "object": "list", "data": [ { - "id": "si_Pd8YUTZfmT2cVp", + "id": "si_QPKMSTVFfNgWhl", "object": "subscription_item", "billing_thresholds": null, - "created": 1708908144, + "created": 1720022799, + "discounts": [], "metadata": {}, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "price", "active": true, "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -279,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OnsGxBLjyMcgacQxzs0M2sR", + "subscription": "sub_1PYVhbBLjyMcgacQhKU9xWAP", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsGxBLjyMcgacQxzs0M2sR" + "url": "/v1/subscription_items?subscription=sub_1PYVhbBLjyMcgacQhKU9xWAP" }, - "latest_invoice": "in_1OnsGxBLjyMcgacQJJ1Ai3tO", + "latest_invoice": "in_1PYVhbBLjyMcgacQFnqM8Lq8", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -299,24 +323,25 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsGxBLjyMcgacQrIc5QTBH", + "pending_setup_intent": "seti_1PYVhbBLjyMcgacQuuEJXfGM", "pending_update": null, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, @@ -324,17 +349,17 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1708908143, + "start_date": 1720022799, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711500143, + "trial_end": 1722614799, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1708908143 + "trial_start": 1720022799 } - recorded_at: Mon, 26 Feb 2024 00:42:24 GMT + recorded_at: Wed, 03 Jul 2024 16:06:39 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_create_a_new_User_record_for_the_registration.yml b/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_create_a_new_User_record_for_the_registration.yml index fac4604a..9f923904 100644 --- a/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_create_a_new_User_record_for_the_registration.yml +++ b/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_create_a_new_User_record_for_the_registration.yml @@ -5,22 +5,22 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Kub+Group+32+%7C+Daniel+Nienow+31&email=26marshall.wiza%40greenholt-gleason.test + string: name=Torphy%2C+Kshlerin+and+Abshire+17+%7C+Lenard+Hegmann+17&email=17celina%40hessel.example headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_v4DgCrZsVSkAJj","request_duration_ms":799}}' + - '{"last_request_metrics":{"request_id":"req_rzXKL3IJUjsAzK","request_duration_ms":839}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -33,11 +33,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:24 GMT + - Wed, 03 Jul 2024 16:06:37 GMT Content-Type: - application/json Content-Length: - - '679' + - '684' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -57,18 +57,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 50c9ce24-1966-4be2-a6f2-7c5c0a422f0d + - 68767761-fe0f-4bb2-8394-cb4b8022946e Original-Request: - - req_JBEW1iFQFa2abB + - req_j6FXUIhcoU8UF2 + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_JBEW1iFQFa2abB + - req_j6FXUIhcoU8UF2 Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -77,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8Yk4hJ9DV68h", + "id": "cus_QPKMxlZG2yIPrP", "object": "customer", "address": null, "balance": 0, - "created": 1708908144, + "created": 1720022797, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, - "email": "26marshall.wiza@greenholt-gleason.test", - "invoice_prefix": "A0455235", + "email": "17celina@hessel.example", + "invoice_prefix": "E8628A51", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -97,7 +107,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Kub Group 32 | Daniel Nienow 31", + "name": "Torphy, Kshlerin and Abshire 17 | Lenard Hegmann 17", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -105,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:42:24 GMT + recorded_at: Wed, 03 Jul 2024 16:06:37 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_Pd8Yk4hJ9DV68h&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMxlZG2yIPrP&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_JBEW1iFQFa2abB","request_duration_ms":225}}' + - '{"last_request_metrics":{"request_id":"req_j6FXUIhcoU8UF2","request_duration_ms":282}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -139,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:25 GMT + - Wed, 03 Jul 2024 16:06:38 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -163,18 +173,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 9ca0fc40-2846-4366-aa45-f677d431b1ca + - b46473ec-d7cc-4cda-81b3-81362ffdc291 Original-Request: - - req_2xQqGTr2JlsgUd + - req_6Z7brbTv57Xb3w + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_2xQqGTr2JlsgUd + - req_6Z7brbTv57Xb3w Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -183,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OnsGyBLjyMcgacQ9hKgjHeK", + "id": "sub_1PYVhZBLjyMcgacQVlcvYrpl", "object": "subscription", "application": null, "application_fee_percent": null, @@ -191,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711500144, + "billing_cycle_anchor": 1722614797, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -203,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1708908144, + "created": 1720022797, "currency": "usd", - "current_period_end": 1711500144, - "current_period_start": 1708908144, - "customer": "cus_Pd8Yk4hJ9DV68h", + "current_period_end": 1722614797, + "current_period_start": 1720022797, + "customer": "cus_QPKMxlZG2yIPrP", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -225,49 +246,52 @@ http_interactions: "object": "list", "data": [ { - "id": "si_Pd8YSXpfEqj8BU", + "id": "si_QPKMdpEklGVtKs", "object": "subscription_item", "billing_thresholds": null, - "created": 1708908145, + "created": 1720022798, + "discounts": [], "metadata": {}, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "price", "active": true, "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -279,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OnsGyBLjyMcgacQ9hKgjHeK", + "subscription": "sub_1PYVhZBLjyMcgacQVlcvYrpl", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsGyBLjyMcgacQ9hKgjHeK" + "url": "/v1/subscription_items?subscription=sub_1PYVhZBLjyMcgacQVlcvYrpl" }, - "latest_invoice": "in_1OnsGyBLjyMcgacQdLhNZbCX", + "latest_invoice": "in_1PYVhZBLjyMcgacQAid5mnYn", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -299,24 +323,25 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsGzBLjyMcgacQ5qb3SVFB", + "pending_setup_intent": "seti_1PYVhaBLjyMcgacQnNbwinm6", "pending_update": null, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, @@ -324,17 +349,17 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1708908144, + "start_date": 1720022797, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711500144, + "trial_end": 1722614797, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1708908144 + "trial_start": 1720022797 } - recorded_at: Mon, 26 Feb 2024 00:42:25 GMT + recorded_at: Wed, 03 Jul 2024 16:06:38 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_mark_the_registration_as_having_registered_.yml b/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_mark_the_registration_as_having_registered_.yml index 528452fd..a83c0cec 100644 --- a/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_mark_the_registration_as_having_registered_.yml +++ b/spec/cassettes/Signing_up_for_StaffPlan/when_confirming_a_registration/when_registration_is_successful/should_mark_the_registration_as_having_registered_.yml @@ -5,22 +5,22 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Kertzmann-Morar+30+%7C+Gisele+Lubowitz+29&email=24katrina_vandervort%40quigley.test + string: name=Ratke-Goyette+16+%7C+Jack+Schaefer+16&email=16darrell.erdman%40kiehn.example headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_54i8SRJe3iF9E1","request_duration_ms":802}}' + - '{"last_request_metrics":{"request_id":"req_Vow7HZ0aWAGG0O","request_duration_ms":906}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -33,11 +33,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:22 GMT + - Wed, 03 Jul 2024 16:06:36 GMT Content-Type: - application/json Content-Length: - - '682' + - '675' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -57,18 +57,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 624f3f31-3b62-4932-a1fb-5b9198b3bcab + - d51eae83-1e82-4c29-91cb-80f8d787386e Original-Request: - - req_4vmkGWPAPcRVuw + - req_i9qZuu9r5sD2HK + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_4vmkGWPAPcRVuw + - req_i9qZuu9r5sD2HK Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -77,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8Yu5sCBZTpiZ", + "id": "cus_QPKMvwQ9Rl8PfG", "object": "customer", "address": null, "balance": 0, - "created": 1708908142, + "created": 1720022796, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, - "email": "24katrina_vandervort@quigley.test", - "invoice_prefix": "B4173A16", + "email": "16darrell.erdman@kiehn.example", + "invoice_prefix": "C44AF0D6", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -97,7 +107,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Kertzmann-Morar 30 | Gisele Lubowitz 29", + "name": "Ratke-Goyette 16 | Jack Schaefer 16", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -105,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:42:22 GMT + recorded_at: Wed, 03 Jul 2024 16:06:36 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_Pd8Yu5sCBZTpiZ&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMvwQ9Rl8PfG&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_4vmkGWPAPcRVuw","request_duration_ms":248}}' + - '{"last_request_metrics":{"request_id":"req_i9qZuu9r5sD2HK","request_duration_ms":256}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -139,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:42:23 GMT + - Wed, 03 Jul 2024 16:06:37 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -163,18 +173,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - caf0116b-b824-41b4-ac6e-609998ee602f + - 1d27951a-10bf-4c3f-bda3-9bbfaf44c0f6 Original-Request: - - req_98FZAiLV6qZ0JK + - req_rzXKL3IJUjsAzK + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_98FZAiLV6qZ0JK + - req_rzXKL3IJUjsAzK Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -183,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OnsGwBLjyMcgacQtWsaBzpt", + "id": "sub_1PYVhYBLjyMcgacQJqLtp6zM", "object": "subscription", "application": null, "application_fee_percent": null, @@ -191,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711500142, + "billing_cycle_anchor": 1722614796, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -203,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1708908142, + "created": 1720022796, "currency": "usd", - "current_period_end": 1711500142, - "current_period_start": 1708908142, - "customer": "cus_Pd8Yu5sCBZTpiZ", + "current_period_end": 1722614796, + "current_period_start": 1720022796, + "customer": "cus_QPKMvwQ9Rl8PfG", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -225,49 +246,52 @@ http_interactions: "object": "list", "data": [ { - "id": "si_Pd8YIRnH4vOmd1", + "id": "si_QPKMWPpZofJCzp", "object": "subscription_item", "billing_thresholds": null, - "created": 1708908142, + "created": 1720022796, + "discounts": [], "metadata": {}, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "price", "active": true, "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -279,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OnsGwBLjyMcgacQtWsaBzpt", + "subscription": "sub_1PYVhYBLjyMcgacQJqLtp6zM", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsGwBLjyMcgacQtWsaBzpt" + "url": "/v1/subscription_items?subscription=sub_1PYVhYBLjyMcgacQJqLtp6zM" }, - "latest_invoice": "in_1OnsGwBLjyMcgacQpEN1YRl6", + "latest_invoice": "in_1PYVhYBLjyMcgacQMTgfDpdO", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -299,24 +323,25 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsGwBLjyMcgacQpAQOxLSj", + "pending_setup_intent": "seti_1PYVhYBLjyMcgacQFdc2IgbJ", "pending_update": null, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, @@ -324,17 +349,17 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1708908142, + "start_date": 1720022796, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711500142, + "trial_end": 1722614796, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1708908142 + "trial_start": 1720022796 } - recorded_at: Mon, 26 Feb 2024 00:42:22 GMT + recorded_at: Wed, 03 Jul 2024 16:06:37 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/Subscription_Management/cancelling_a_subscription/cancels_the_subscription.yml b/spec/cassettes/Subscription_Management/cancelling_a_subscription/cancels_the_subscription.yml deleted file mode 100644 index f9f44b66..00000000 --- a/spec/cassettes/Subscription_Management/cancelling_a_subscription/cancels_the_subscription.yml +++ /dev/null @@ -1,570 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.stripe.com/v1/customers - body: - encoding: UTF-8 - string: name=Wisozk%2C+Bartell+and+Kuhlman+1+%7C+Roberto+Trantow+1&email=1adriane%40harris.example - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.10.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 26 Feb 2024 00:54:45 GMT - Content-Type: - - application/json - Content-Length: - - '682' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Idempotency-Key: - - f601f333-f000-42ef-8d30-e9c413946228 - Original-Request: - - req_giWdmQFk45RKY7 - Request-Id: - - req_giWdmQFk45RKY7 - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "cus_Pd8kZa7RaKdcyL", - "object": "customer", - "address": null, - "balance": 0, - "created": 1708908885, - "currency": null, - "default_source": null, - "delinquent": false, - "description": null, - "discount": null, - "email": "1adriane@harris.example", - "invoice_prefix": "74D3C87A", - "invoice_settings": { - "custom_fields": null, - "default_payment_method": null, - "footer": null, - "rendering_options": null - }, - "livemode": false, - "metadata": {}, - "name": "Wisozk, Bartell and Kuhlman 1 | Roberto Trantow 1", - "next_invoice_sequence": 1, - "phone": null, - "preferred_locales": [], - "shipping": null, - "tax_exempt": "none", - "test_clock": null - } - recorded_at: Mon, 26 Feb 2024 00:54:45 GMT -- request: - method: post - uri: https://api.stripe.com/v1/subscriptions - body: - encoding: UTF-8 - string: customer=cus_Pd8kZa7RaKdcyL&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.10.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_giWdmQFk45RKY7","request_duration_ms":358}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 26 Feb 2024 00:54:46 GMT - Content-Type: - - application/json - Content-Length: - - '4222' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Idempotency-Key: - - 413c9a0c-106d-4941-990b-ef0295f8f93e - Original-Request: - - req_TOzXLm9Y629p3A - Request-Id: - - req_TOzXLm9Y629p3A - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "sub_1OnsSwBLjyMcgacQDLnXiOc4", - "object": "subscription", - "application": null, - "application_fee_percent": null, - "automatic_tax": { - "enabled": false, - "liability": null - }, - "billing_cycle_anchor": 1711500886, - "billing_cycle_anchor_config": null, - "billing_thresholds": null, - "cancel_at": null, - "cancel_at_period_end": false, - "canceled_at": null, - "cancellation_details": { - "comment": null, - "feedback": null, - "reason": null - }, - "collection_method": "charge_automatically", - "created": 1708908886, - "currency": "usd", - "current_period_end": 1711500886, - "current_period_start": 1708908886, - "customer": "cus_Pd8kZa7RaKdcyL", - "days_until_due": null, - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discount": null, - "ended_at": null, - "invoice_settings": { - "account_tax_ids": null, - "issuer": { - "type": "self" - } - }, - "items": { - "object": "list", - "data": [ - { - "id": "si_Pd8kzLAIsdJeq9", - "object": "subscription_item", - "billing_thresholds": null, - "created": 1708908886, - "metadata": {}, - "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "plan", - "active": true, - "aggregate_usage": null, - "amount": 300, - "amount_decimal": "300", - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "interval": "month", - "interval_count": 1, - "livemode": false, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "tiers_mode": null, - "transform_usage": null, - "trial_period_days": null, - "usage_type": "licensed" - }, - "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "price", - "active": true, - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "custom_unit_amount": null, - "livemode": false, - "lookup_key": null, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "recurring": { - "aggregate_usage": null, - "interval": "month", - "interval_count": 1, - "trial_period_days": null, - "usage_type": "licensed" - }, - "tax_behavior": "unspecified", - "tiers_mode": null, - "transform_quantity": null, - "type": "recurring", - "unit_amount": 300, - "unit_amount_decimal": "300" - }, - "quantity": 1, - "subscription": "sub_1OnsSwBLjyMcgacQDLnXiOc4", - "tax_rates": [] - } - ], - "has_more": false, - "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsSwBLjyMcgacQDLnXiOc4" - }, - "latest_invoice": "in_1OnsSwBLjyMcgacQZyZPGUa7", - "livemode": false, - "metadata": {}, - "next_pending_invoice_item_invoice": null, - "on_behalf_of": null, - "pause_collection": null, - "payment_settings": { - "payment_method_options": null, - "payment_method_types": null, - "save_default_payment_method": "on_subscription" - }, - "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsSwBLjyMcgacQ3PDZCeuh", - "pending_update": null, - "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "plan", - "active": true, - "aggregate_usage": null, - "amount": 300, - "amount_decimal": "300", - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "interval": "month", - "interval_count": 1, - "livemode": false, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "tiers_mode": null, - "transform_usage": null, - "trial_period_days": null, - "usage_type": "licensed" - }, - "quantity": 1, - "schedule": null, - "start_date": 1708908886, - "status": "trialing", - "test_clock": null, - "transfer_data": null, - "trial_end": 1711500886, - "trial_settings": { - "end_behavior": { - "missing_payment_method": "cancel" - } - }, - "trial_start": 1708908886 - } - recorded_at: Mon, 26 Feb 2024 00:54:46 GMT -- request: - method: get - uri: https://api.stripe.com/v1/subscriptions?customer=cus_Pd8kZa7RaKdcyL - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.10.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_TOzXLm9Y629p3A","request_duration_ms":892}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 26 Feb 2024 00:54:47 GMT - Content-Type: - - application/json - Content-Length: - - '4929' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Request-Id: - - req_kaRBWaci9HRQVl - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "object": "list", - "data": [ - { - "id": "sub_1OnsSwBLjyMcgacQDLnXiOc4", - "object": "subscription", - "application": null, - "application_fee_percent": null, - "automatic_tax": { - "enabled": false, - "liability": null - }, - "billing_cycle_anchor": 1711500886, - "billing_cycle_anchor_config": null, - "billing_thresholds": null, - "cancel_at": null, - "cancel_at_period_end": false, - "canceled_at": null, - "cancellation_details": { - "comment": null, - "feedback": null, - "reason": null - }, - "collection_method": "charge_automatically", - "created": 1708908886, - "currency": "usd", - "current_period_end": 1711500886, - "current_period_start": 1708908886, - "customer": "cus_Pd8kZa7RaKdcyL", - "days_until_due": null, - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discount": null, - "ended_at": null, - "invoice_settings": { - "account_tax_ids": null, - "issuer": { - "type": "self" - } - }, - "items": { - "object": "list", - "data": [ - { - "id": "si_Pd8kzLAIsdJeq9", - "object": "subscription_item", - "billing_thresholds": null, - "created": 1708908886, - "metadata": {}, - "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "plan", - "active": true, - "aggregate_usage": null, - "amount": 300, - "amount_decimal": "300", - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "interval": "month", - "interval_count": 1, - "livemode": false, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "tiers_mode": null, - "transform_usage": null, - "trial_period_days": null, - "usage_type": "licensed" - }, - "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "price", - "active": true, - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "custom_unit_amount": null, - "livemode": false, - "lookup_key": null, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "recurring": { - "aggregate_usage": null, - "interval": "month", - "interval_count": 1, - "trial_period_days": null, - "usage_type": "licensed" - }, - "tax_behavior": "unspecified", - "tiers_mode": null, - "transform_quantity": null, - "type": "recurring", - "unit_amount": 300, - "unit_amount_decimal": "300" - }, - "quantity": 1, - "subscription": "sub_1OnsSwBLjyMcgacQDLnXiOc4", - "tax_rates": [] - } - ], - "has_more": false, - "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsSwBLjyMcgacQDLnXiOc4" - }, - "latest_invoice": "in_1OnsSwBLjyMcgacQZyZPGUa7", - "livemode": false, - "metadata": {}, - "next_pending_invoice_item_invoice": null, - "on_behalf_of": null, - "pause_collection": null, - "payment_settings": { - "payment_method_options": null, - "payment_method_types": null, - "save_default_payment_method": "on_subscription" - }, - "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsSwBLjyMcgacQ3PDZCeuh", - "pending_update": null, - "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "plan", - "active": true, - "aggregate_usage": null, - "amount": 300, - "amount_decimal": "300", - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "interval": "month", - "interval_count": 1, - "livemode": false, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "tiers_mode": null, - "transform_usage": null, - "trial_period_days": null, - "usage_type": "licensed" - }, - "quantity": 1, - "schedule": null, - "start_date": 1708908886, - "status": "trialing", - "test_clock": null, - "transfer_data": null, - "trial_end": 1711500886, - "trial_settings": { - "end_behavior": { - "missing_payment_method": "cancel" - } - }, - "trial_start": 1708908886 - } - ], - "has_more": false, - "url": "/v1/subscriptions" - } - recorded_at: Mon, 26 Feb 2024 00:54:47 GMT -recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/Subscription_Management/when_trialing/shows_a_page_with_some_content_and_a_link_to_go_create_a_subscription.yml b/spec/cassettes/Subscription_Management/when_trialing/shows_a_page_with_some_content_and_a_link_to_go_create_a_subscription.yml deleted file mode 100644 index acd3a335..00000000 --- a/spec/cassettes/Subscription_Management/when_trialing/shows_a_page_with_some_content_and_a_link_to_go_create_a_subscription.yml +++ /dev/null @@ -1,340 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.stripe.com/v1/customers - body: - encoding: UTF-8 - string: name=Dooley+Inc+4+%7C+Damian+Thompson+MD+4&email=4earnest_kertzmann%40dicki-dicki.example - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.10.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_DiucdS8lFxA6p1","request_duration_ms":691}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 26 Feb 2024 00:54:49 GMT - Content-Type: - - application/json - Content-Length: - - '683' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Idempotency-Key: - - d1878984-8985-4dc5-8789-31736ebf922a - Original-Request: - - req_wziwhOm1wk09xR - Request-Id: - - req_wziwhOm1wk09xR - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "cus_Pd8kQMtoK1xLn8", - "object": "customer", - "address": null, - "balance": 0, - "created": 1708908889, - "currency": null, - "default_source": null, - "delinquent": false, - "description": null, - "discount": null, - "email": "4earnest_kertzmann@dicki-dicki.example", - "invoice_prefix": "71507EA4", - "invoice_settings": { - "custom_fields": null, - "default_payment_method": null, - "footer": null, - "rendering_options": null - }, - "livemode": false, - "metadata": {}, - "name": "Dooley Inc 4 | Damian Thompson MD 4", - "next_invoice_sequence": 1, - "phone": null, - "preferred_locales": [], - "shipping": null, - "tax_exempt": "none", - "test_clock": null - } - recorded_at: Mon, 26 Feb 2024 00:54:49 GMT -- request: - method: post - uri: https://api.stripe.com/v1/subscriptions - body: - encoding: UTF-8 - string: customer=cus_Pd8kQMtoK1xLn8&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.10.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_wziwhOm1wk09xR","request_duration_ms":233}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 26 Feb 2024 00:54:50 GMT - Content-Type: - - application/json - Content-Length: - - '4222' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Idempotency-Key: - - ad3fb811-27b4-4b0a-bcb5-355fb1e09568 - Original-Request: - - req_OTWVXP8F5LHq8N - Request-Id: - - req_OTWVXP8F5LHq8N - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "sub_1OnsSzBLjyMcgacQ3isa5PEZ", - "object": "subscription", - "application": null, - "application_fee_percent": null, - "automatic_tax": { - "enabled": false, - "liability": null - }, - "billing_cycle_anchor": 1711500889, - "billing_cycle_anchor_config": null, - "billing_thresholds": null, - "cancel_at": null, - "cancel_at_period_end": false, - "canceled_at": null, - "cancellation_details": { - "comment": null, - "feedback": null, - "reason": null - }, - "collection_method": "charge_automatically", - "created": 1708908889, - "currency": "usd", - "current_period_end": 1711500889, - "current_period_start": 1708908889, - "customer": "cus_Pd8kQMtoK1xLn8", - "days_until_due": null, - "default_payment_method": null, - "default_source": null, - "default_tax_rates": [], - "description": null, - "discount": null, - "ended_at": null, - "invoice_settings": { - "account_tax_ids": null, - "issuer": { - "type": "self" - } - }, - "items": { - "object": "list", - "data": [ - { - "id": "si_Pd8kwX85O7indy", - "object": "subscription_item", - "billing_thresholds": null, - "created": 1708908890, - "metadata": {}, - "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "plan", - "active": true, - "aggregate_usage": null, - "amount": 300, - "amount_decimal": "300", - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "interval": "month", - "interval_count": 1, - "livemode": false, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "tiers_mode": null, - "transform_usage": null, - "trial_period_days": null, - "usage_type": "licensed" - }, - "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "price", - "active": true, - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "custom_unit_amount": null, - "livemode": false, - "lookup_key": null, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "recurring": { - "aggregate_usage": null, - "interval": "month", - "interval_count": 1, - "trial_period_days": null, - "usage_type": "licensed" - }, - "tax_behavior": "unspecified", - "tiers_mode": null, - "transform_quantity": null, - "type": "recurring", - "unit_amount": 300, - "unit_amount_decimal": "300" - }, - "quantity": 1, - "subscription": "sub_1OnsSzBLjyMcgacQ3isa5PEZ", - "tax_rates": [] - } - ], - "has_more": false, - "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsSzBLjyMcgacQ3isa5PEZ" - }, - "latest_invoice": "in_1OnsSzBLjyMcgacQEZMBkIAm", - "livemode": false, - "metadata": {}, - "next_pending_invoice_item_invoice": null, - "on_behalf_of": null, - "pause_collection": null, - "payment_settings": { - "payment_method_options": null, - "payment_method_types": null, - "save_default_payment_method": "on_subscription" - }, - "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsT0BLjyMcgacQNlsbPMPt", - "pending_update": null, - "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", - "object": "plan", - "active": true, - "aggregate_usage": null, - "amount": 300, - "amount_decimal": "300", - "billing_scheme": "per_unit", - "created": 1706493821, - "currency": "usd", - "interval": "month", - "interval_count": 1, - "livemode": false, - "metadata": {}, - "nickname": null, - "product": "prod_PSfXu5KouT6GdC", - "tiers_mode": null, - "transform_usage": null, - "trial_period_days": null, - "usage_type": "licensed" - }, - "quantity": 1, - "schedule": null, - "start_date": 1708908889, - "status": "trialing", - "test_clock": null, - "transfer_data": null, - "trial_end": 1711500889, - "trial_settings": { - "end_behavior": { - "missing_payment_method": "cancel" - } - }, - "trial_start": 1708908889 - } - recorded_at: Mon, 26 Feb 2024 00:54:50 GMT -recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/Subscription_Management/when_trialing/shows_a_page_with_some_content_and_a_link_to_go_set_up_payment_for_a_subscription.yml b/spec/cassettes/Subscription_Management/when_trialing/shows_a_page_with_some_content_and_a_link_to_go_set_up_payment_for_a_subscription.yml index d7381e99..ebfc115b 100644 --- a/spec/cassettes/Subscription_Management/when_trialing/shows_a_page_with_some_content_and_a_link_to_go_set_up_payment_for_a_subscription.yml +++ b/spec/cassettes/Subscription_Management/when_trialing/shows_a_page_with_some_content_and_a_link_to_go_set_up_payment_for_a_subscription.yml @@ -5,20 +5,20 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Purdy+LLC+1+%7C+Jona+Shanahan+1&email=1deja.schinner%40morissette.example + string: name=Dickinson+LLC+10+%7C+Freda+Ziemann+10&email=10milagro_gleichner%40barton-zboncak.test headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -31,11 +31,11 @@ http_interactions: Server: - nginx Date: - - Tue, 27 Feb 2024 14:11:08 GMT + - Wed, 03 Jul 2024 16:06:31 GMT Content-Type: - application/json Content-Length: - - '672' + - '684' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -55,18 +55,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - f6a2604d-32bf-4191-a282-43d5b7f147ca + - dd9ae000-5164-4561-99d8-8d7e65c7cc25 Original-Request: - - req_SZb5tGDwSYnkUX + - req_dhTBj8jc46MRqd + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_SZb5tGDwSYnkUX + - req_dhTBj8jc46MRqd Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -75,18 +85,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_PdiosaW0dfM1hf", + "id": "cus_QPKMNRvCZxnZt4", "object": "customer", "address": null, "balance": 0, - "created": 1709043068, + "created": 1720022791, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, - "email": "1deja.schinner@morissette.example", - "invoice_prefix": "F7EAE284", + "email": "10milagro_gleichner@barton-zboncak.test", + "invoice_prefix": "40FC9695", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -95,7 +105,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Purdy LLC 1 | Jona Shanahan 1", + "name": "Dickinson LLC 10 | Freda Ziemann 10", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -103,28 +113,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Tue, 27 Feb 2024 14:11:08 GMT + recorded_at: Wed, 03 Jul 2024 16:06:31 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_PdiosaW0dfM1hf&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMNRvCZxnZt4&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_SZb5tGDwSYnkUX","request_duration_ms":333}}' + - '{"last_request_metrics":{"request_id":"req_dhTBj8jc46MRqd","request_duration_ms":386}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -137,11 +147,11 @@ http_interactions: Server: - nginx Date: - - Tue, 27 Feb 2024 14:11:09 GMT + - Wed, 03 Jul 2024 16:06:32 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -161,18 +171,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 5c9c4b65-5c3a-4404-bcae-31cb0fbcf996 + - 19ecabdc-a5f8-4894-b9f5-da679fc28fa0 Original-Request: - - req_kxuNcfD673K6gt + - req_F6WnLh4IWHlVma + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_kxuNcfD673K6gt + - req_F6WnLh4IWHlVma Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -181,7 +201,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OoRNBBLjyMcgacQHFKfmkkC", + "id": "sub_1PYVhTBLjyMcgacQZpFGmCtm", "object": "subscription", "application": null, "application_fee_percent": null, @@ -189,7 +209,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711635069, + "billing_cycle_anchor": 1722614791, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -201,17 +221,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1709043069, + "created": 1720022791, "currency": "usd", - "current_period_end": 1711635069, - "current_period_start": 1709043069, - "customer": "cus_PdiosaW0dfM1hf", + "current_period_end": 1722614791, + "current_period_start": 1720022791, + "customer": "cus_QPKMNRvCZxnZt4", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -223,10 +244,11 @@ http_interactions: "object": "list", "data": [ { - "id": "si_PdiolE1SyGs9CI", + "id": "si_QPKMwaTYpvCruG", "object": "subscription_item", "billing_thresholds": null, - "created": 1709043069, + "created": 1720022791, + "discounts": [], "metadata": {}, "plan": { "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", @@ -242,6 +264,7 @@ http_interactions: "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, @@ -266,6 +289,7 @@ http_interactions: "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -277,15 +301,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OoRNBBLjyMcgacQHFKfmkkC", + "subscription": "sub_1PYVhTBLjyMcgacQZpFGmCtm", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OoRNBBLjyMcgacQHFKfmkkC" + "url": "/v1/subscription_items?subscription=sub_1PYVhTBLjyMcgacQZpFGmCtm" }, - "latest_invoice": "in_1OoRNBBLjyMcgacQUwEevbhX", + "latest_invoice": "in_1PYVhTBLjyMcgacQ0AnsfYBf", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -297,7 +321,7 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OoRNBBLjyMcgacQx9E7luDw", + "pending_setup_intent": "seti_1PYVhTBLjyMcgacQzXd9j8ST", "pending_update": null, "plan": { "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", @@ -313,6 +337,7 @@ http_interactions: "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, @@ -322,17 +347,17 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1709043069, + "start_date": 1720022791, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711635069, + "trial_end": 1722614791, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1709043069 + "trial_start": 1720022791 } - recorded_at: Tue, 27 Feb 2024 14:11:09 GMT + recorded_at: Wed, 03 Jul 2024 16:06:32 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/Subscription_Management/with_an_active_subscription/shows_information_about_the_subscription_when_an_active_paying_subscription.yml b/spec/cassettes/Subscription_Management/with_an_active_subscription/shows_information_about_the_subscription_when_an_active_paying_subscription.yml index 1d28d76e..4e75d25d 100644 --- a/spec/cassettes/Subscription_Management/with_an_active_subscription/shows_information_about_the_subscription_when_an_active_paying_subscription.yml +++ b/spec/cassettes/Subscription_Management/with_an_active_subscription/shows_information_about_the_subscription_when_an_active_paying_subscription.yml @@ -5,22 +5,22 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Renner%2C+Hills+and+Ledner+2+%7C+Fredericka+Daniel+2&email=2bart.stamm%40hartmann.test + string: name=Zemlak-Wilkinson+12+%7C+Chester+Roberts+MD+12&email=12vernetta_hammes%40schulist.test headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_kaRBWaci9HRQVl","request_duration_ms":164}}' + - '{"last_request_metrics":{"request_id":"req_eeUy0OHuVgQotp","request_duration_ms":840}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -33,11 +33,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:54:47 GMT + - Wed, 03 Jul 2024 16:06:34 GMT Content-Type: - application/json Content-Length: - - '683' + - '684' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -57,18 +57,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 4abd4d70-e8da-4320-a309-2106d7c6d6b4 + - a5408216-0acf-4af7-a899-978ce09fe946 Original-Request: - - req_ELJltbe72EG5s4 + - req_2huH6Y6B2O5tlD + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_ELJltbe72EG5s4 + - req_2huH6Y6B2O5tlD Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -77,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8kx81Umto612", + "id": "cus_QPKMpTkJ9N8ljh", "object": "customer", "address": null, "balance": 0, - "created": 1708908887, + "created": 1720022793, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, - "email": "2bart.stamm@hartmann.test", - "invoice_prefix": "14B0F860", + "email": "12vernetta_hammes@schulist.test", + "invoice_prefix": "7A3E9276", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -97,7 +107,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Renner, Hills and Ledner 2 | Fredericka Daniel 2", + "name": "Zemlak-Wilkinson 12 | Chester Roberts MD 12", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -105,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:54:47 GMT + recorded_at: Wed, 03 Jul 2024 16:06:34 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_Pd8kx81Umto612&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMpTkJ9N8ljh&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_ELJltbe72EG5s4","request_duration_ms":234}}' + - '{"last_request_metrics":{"request_id":"req_2huH6Y6B2O5tlD","request_duration_ms":265}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -139,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:54:48 GMT + - Wed, 03 Jul 2024 16:06:35 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -163,18 +173,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - f92160cb-f3b8-4431-8409-d13b0aa64776 + - 6c11eae9-1df7-4b9e-8303-539332b11109 Original-Request: - - req_vh4Ky2uEw3IFHY + - req_Vow7HZ0aWAGG0O + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_vh4Ky2uEw3IFHY + - req_Vow7HZ0aWAGG0O Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -183,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OnsSxBLjyMcgacQLm3f2Ea2", + "id": "sub_1PYVhWBLjyMcgacQ3PvmE6Pb", "object": "subscription", "application": null, "application_fee_percent": null, @@ -191,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711500887, + "billing_cycle_anchor": 1722614794, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -203,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1708908887, + "created": 1720022794, "currency": "usd", - "current_period_end": 1711500887, - "current_period_start": 1708908887, - "customer": "cus_Pd8kx81Umto612", + "current_period_end": 1722614794, + "current_period_start": 1720022794, + "customer": "cus_QPKMpTkJ9N8ljh", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -225,49 +246,52 @@ http_interactions: "object": "list", "data": [ { - "id": "si_Pd8kix5T08mTem", + "id": "si_QPKMSD8HO6Zo2H", "object": "subscription_item", "billing_thresholds": null, - "created": 1708908888, + "created": 1720022794, + "discounts": [], "metadata": {}, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "price", "active": true, "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -279,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OnsSxBLjyMcgacQLm3f2Ea2", + "subscription": "sub_1PYVhWBLjyMcgacQ3PvmE6Pb", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsSxBLjyMcgacQLm3f2Ea2" + "url": "/v1/subscription_items?subscription=sub_1PYVhWBLjyMcgacQ3PvmE6Pb" }, - "latest_invoice": "in_1OnsSxBLjyMcgacQjBp3AUdT", + "latest_invoice": "in_1PYVhWBLjyMcgacQu8yPp5GS", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -299,24 +323,25 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsSyBLjyMcgacQyoAhgEi0", + "pending_setup_intent": "seti_1PYVhWBLjyMcgacQXMelyH6H", "pending_update": null, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, @@ -324,17 +349,17 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1708908887, + "start_date": 1720022794, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711500887, + "trial_end": 1722614794, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1708908887 + "trial_start": 1720022794 } - recorded_at: Mon, 26 Feb 2024 00:54:48 GMT + recorded_at: Wed, 03 Jul 2024 16:06:35 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/Subscription_Management/with_an_active_subscription/shows_information_about_the_subscription_when_in_a_trial_period.yml b/spec/cassettes/Subscription_Management/with_an_active_subscription/shows_information_about_the_subscription_when_in_a_trial_period.yml index 7f9a1702..afd46d6f 100644 --- a/spec/cassettes/Subscription_Management/with_an_active_subscription/shows_information_about_the_subscription_when_in_a_trial_period.yml +++ b/spec/cassettes/Subscription_Management/with_an_active_subscription/shows_information_about_the_subscription_when_in_a_trial_period.yml @@ -5,22 +5,22 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Kohler-Bailey+3+%7C+Antonio+McGlynn+3&email=3michel%40mertz.example + string: name=Schultz%2C+Goodwin+and+Swift+11+%7C+Mikaela+Turcotte+11&email=11elvin%40lebsack.example headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_vh4Ky2uEw3IFHY","request_duration_ms":747}}' + - '{"last_request_metrics":{"request_id":"req_F6WnLh4IWHlVma","request_duration_ms":1029}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -33,11 +33,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:54:48 GMT + - Wed, 03 Jul 2024 16:06:32 GMT Content-Type: - application/json Content-Length: - - '666' + - '684' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -57,18 +57,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fcustomers; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 589e0fd5-7770-4460-a2e1-0ed278e5f022 + - 7981982a-7da6-4ea5-a834-888c950b3516 Original-Request: - - req_MGKoM2yRBSqv7j + - req_MQStzMbli8gfqx + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_MGKoM2yRBSqv7j + - req_MQStzMbli8gfqx Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -77,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_Pd8k8s0egxPxAV", + "id": "cus_QPKMOk8iosnnjS", "object": "customer", "address": null, "balance": 0, - "created": 1708908888, + "created": 1720022792, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, - "email": "3michel@mertz.example", - "invoice_prefix": "A85C4AA0", + "email": "11elvin@lebsack.example", + "invoice_prefix": "592FD0A7", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -97,7 +107,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Kohler-Bailey 3 | Antonio McGlynn 3", + "name": "Schultz, Goodwin and Swift 11 | Mikaela Turcotte 11", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -105,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Mon, 26 Feb 2024 00:54:48 GMT + recorded_at: Wed, 03 Jul 2024 16:06:32 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_Pd8k8s0egxPxAV&items[0][price]=price_1OdkCHBLjyMcgacQoXsoA2v0&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMOk8iosnnjS&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.10.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_MGKoM2yRBSqv7j","request_duration_ms":259}}' + - '{"last_request_metrics":{"request_id":"req_MQStzMbli8gfqx","request_duration_ms":275}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.10.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST - 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -139,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Mon, 26 Feb 2024 00:54:49 GMT + - Wed, 03 Jul 2024 16:06:33 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -163,18 +173,28 @@ http_interactions: - report-uri https://q.stripe.com/csp-report?p=v1%2Fsubscriptions; block-all-mixed-content; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" Idempotency-Key: - - 665b534c-1407-47f8-9c7e-a3ae03f1506a + - 0ba0451b-7f9a-4a43-9e63-d2ea6f1b0729 Original-Request: - - req_DiucdS8lFxA6p1 + - req_eeUy0OHuVgQotp + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_DiucdS8lFxA6p1 + - req_eeUy0OHuVgQotp Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -183,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OnsSyBLjyMcgacQIVrWQqhd", + "id": "sub_1PYVhUBLjyMcgacQ9aZL3Fdq", "object": "subscription", "application": null, "application_fee_percent": null, @@ -191,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1711500888, + "billing_cycle_anchor": 1722614792, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -203,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1708908888, + "created": 1720022792, "currency": "usd", - "current_period_end": 1711500888, - "current_period_start": 1708908888, - "customer": "cus_Pd8k8s0egxPxAV", + "current_period_end": 1722614792, + "current_period_start": 1720022792, + "customer": "cus_QPKMOk8iosnnjS", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -225,49 +246,52 @@ http_interactions: "object": "list", "data": [ { - "id": "si_Pd8kEbAz1bPfZz", + "id": "si_QPKMYuIptYUuA9", "object": "subscription_item", "billing_thresholds": null, - "created": 1708908889, + "created": 1720022793, + "discounts": [], "metadata": {}, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "price", "active": true, "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -279,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OnsSyBLjyMcgacQIVrWQqhd", + "subscription": "sub_1PYVhUBLjyMcgacQ9aZL3Fdq", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OnsSyBLjyMcgacQIVrWQqhd" + "url": "/v1/subscription_items?subscription=sub_1PYVhUBLjyMcgacQ9aZL3Fdq" }, - "latest_invoice": "in_1OnsSyBLjyMcgacQzfm147qo", + "latest_invoice": "in_1PYVhUBLjyMcgacQwx7JFg4h", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -299,24 +323,25 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OnsSzBLjyMcgacQYoCgwVEp", + "pending_setup_intent": "seti_1PYVhVBLjyMcgacQsZSGWwPx", "pending_update": null, "plan": { - "id": "price_1OdkCHBLjyMcgacQoXsoA2v0", + "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", "object": "plan", "active": true, "aggregate_usage": null, "amount": 300, "amount_decimal": "300", "billing_scheme": "per_unit", - "created": 1706493821, + "created": 1708968188, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, - "product": "prod_PSfXu5KouT6GdC", + "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, "transform_usage": null, "trial_period_days": null, @@ -324,17 +349,17 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1708908888, + "start_date": 1720022792, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1711500888, + "trial_end": 1722614792, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1708908888 + "trial_start": 1720022792 } - recorded_at: Mon, 26 Feb 2024 00:54:49 GMT + recorded_at: Wed, 03 Jul 2024 16:06:33 GMT recorded_with: VCR 6.2.0 diff --git a/spec/cassettes/SyncCustomerSubscriptionJob/perform/informs_Stripe_of_the_new_quantity.yml b/spec/cassettes/SyncCustomerSubscriptionJob/perform/informs_Stripe_of_the_new_quantity.yml index e9b4dbfa..e90347cb 100644 --- a/spec/cassettes/SyncCustomerSubscriptionJob/perform/informs_Stripe_of_the_new_quantity.yml +++ b/spec/cassettes/SyncCustomerSubscriptionJob/perform/informs_Stripe_of_the_new_quantity.yml @@ -5,22 +5,22 @@ http_interactions: uri: https://api.stripe.com/v1/customers body: encoding: UTF-8 - string: name=Rempel%2C+Kunze+and+Murphy+24+%7C+Alton+Kozey+23&email=something%40static.com + string: name=Koepp-Herzog+32+%7C+Tatum+Feil+32&email=something%40static.com headers: User-Agent: - - Stripe/v1 RubyBindings/10.12.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_MHYU4QtA0lVssv","request_duration_ms":0}}' + - '{"last_request_metrics":{"request_id":"req_iVB9UwfXbk2fm8","request_duration_ms":890}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.12.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT - 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -33,11 +33,11 @@ http_interactions: Server: - nginx Date: - - Tue, 26 Mar 2024 12:29:13 GMT + - Wed, 03 Jul 2024 16:06:52 GMT Content-Type: - application/json Content-Length: - - '674' + - '661' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -60,21 +60,25 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - e42af461-1f65-4d6b-a17e-c762980816d8 + - ac0eb9ec-2f95-4914-998c-98073557ae2f Original-Request: - - req_0KewjT7lVs4HGQ + - req_JuQ2PAMD7DKlbh Report-To: - - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=mono-bapi-srv"}],"include_subdomains":true}' Reporting-Endpoints: - - coop="https://q.stripe.com/coop-report" + - coop="https://q.stripe.com/coop-report?s=mono-bapi-srv" Request-Id: - - req_0KewjT7lVs4HGQ + - req_JuQ2PAMD7DKlbh Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -83,18 +87,18 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "cus_PoBU8fjDRQDvtx", + "id": "cus_QPKMG10xF9Vda3", "object": "customer", "address": null, "balance": 0, - "created": 1711456153, + "created": 1720022812, "currency": null, "default_source": null, "delinquent": false, "description": null, "discount": null, "email": "something@static.com", - "invoice_prefix": "5307B3DB", + "invoice_prefix": "E35CD616", "invoice_settings": { "custom_fields": null, "default_payment_method": null, @@ -103,7 +107,7 @@ http_interactions: }, "livemode": false, "metadata": {}, - "name": "Rempel, Kunze and Murphy 24 | Alton Kozey 23", + "name": "Koepp-Herzog 32 | Tatum Feil 32", "next_invoice_sequence": 1, "phone": null, "preferred_locales": [], @@ -111,28 +115,28 @@ http_interactions: "tax_exempt": "none", "test_clock": null } - recorded_at: Tue, 26 Mar 2024 12:29:13 GMT + recorded_at: Wed, 03 Jul 2024 16:06:52 GMT - request: method: post uri: https://api.stripe.com/v1/subscriptions body: encoding: UTF-8 - string: customer=cus_PoBU8fjDRQDvtx&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription + string: customer=cus_QPKMG10xF9Vda3&items[0][price]=price_1Oo7tQBLjyMcgacQSNLewS9y&items[0][quantity]=1&trial_period_days=30&trial_settings[end_behavior][missing_payment_method]=cancel&payment_settings[save_default_payment_method]=on_subscription headers: User-Agent: - - Stripe/v1 RubyBindings/10.12.0 + - Stripe/v1 RubyBindings/12.0.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_0KewjT7lVs4HGQ","request_duration_ms":343}}' + - '{"last_request_metrics":{"request_id":"req_JuQ2PAMD7DKlbh","request_duration_ms":271}}' Stripe-Version: - - '2023-10-16' + - '2024-06-20' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.12.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin - fwank-2.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT - 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' + - '{"bindings_version":"12.0.0","lang":"ruby","lang_version":"3.2.0 p0 (2022-12-25)","platform":"arm64-darwin23","engine":"ruby","publisher":"stripe","uname":"Darwin + fwank-2.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT + 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64","hostname":"fwank-2.local"}' Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -145,11 +149,11 @@ http_interactions: Server: - nginx Date: - - Tue, 26 Mar 2024 12:29:14 GMT + - Wed, 03 Jul 2024 16:06:53 GMT Content-Type: - application/json Content-Length: - - '4222' + - '4337' Connection: - keep-alive Access-Control-Allow-Credentials: @@ -172,21 +176,25 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - c2e27b87-c8dd-4234-ba48-03c4bead370d + - 6f98f458-01ad-4a76-a297-0322357f0443 Original-Request: - - req_SpVs2x3Gbtjnc4 + - req_i213G05QoV24Wr Report-To: - - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=billing-api-srv"}],"include_subdomains":true}' Reporting-Endpoints: - - coop="https://q.stripe.com/coop-report" + - coop="https://q.stripe.com/coop-report?s=billing-api-srv" Request-Id: - - req_SpVs2x3Gbtjnc4 + - req_i213G05QoV24Wr Stripe-Should-Retry: - 'false' Stripe-Version: - - '2023-10-16' + - '2024-06-20' Vary: - Origin + X-Content-Type-Options: + - nosniff + X-Stripe-Priority-Routing-Enabled: + - 'true' X-Stripe-Routing-Context-Priority-Tier: - api-testmode Strict-Transport-Security: @@ -195,7 +203,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "sub_1OyZ7uBLjyMcgacQ97eW5Ti9", + "id": "sub_1PYVhoBLjyMcgacQcGcNMLMI", "object": "subscription", "application": null, "application_fee_percent": null, @@ -203,7 +211,7 @@ http_interactions: "enabled": false, "liability": null }, - "billing_cycle_anchor": 1714048153, + "billing_cycle_anchor": 1722614812, "billing_cycle_anchor_config": null, "billing_thresholds": null, "cancel_at": null, @@ -215,17 +223,18 @@ http_interactions: "reason": null }, "collection_method": "charge_automatically", - "created": 1711456153, + "created": 1720022812, "currency": "usd", - "current_period_end": 1714048153, - "current_period_start": 1711456153, - "customer": "cus_PoBU8fjDRQDvtx", + "current_period_end": 1722614812, + "current_period_start": 1720022812, + "customer": "cus_QPKMG10xF9Vda3", "days_until_due": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discount": null, + "discounts": [], "ended_at": null, "invoice_settings": { "account_tax_ids": null, @@ -237,10 +246,11 @@ http_interactions: "object": "list", "data": [ { - "id": "si_PoBUC5cXrjp9Q4", + "id": "si_QPKMvSRdzY25RB", "object": "subscription_item", "billing_thresholds": null, - "created": 1711456154, + "created": 1720022813, + "discounts": [], "metadata": {}, "plan": { "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", @@ -256,6 +266,7 @@ http_interactions: "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, @@ -280,6 +291,7 @@ http_interactions: "aggregate_usage": null, "interval": "month", "interval_count": 1, + "meter": null, "trial_period_days": null, "usage_type": "licensed" }, @@ -291,15 +303,15 @@ http_interactions: "unit_amount_decimal": "300" }, "quantity": 1, - "subscription": "sub_1OyZ7uBLjyMcgacQ97eW5Ti9", + "subscription": "sub_1PYVhoBLjyMcgacQcGcNMLMI", "tax_rates": [] } ], "has_more": false, "total_count": 1, - "url": "/v1/subscription_items?subscription=sub_1OyZ7uBLjyMcgacQ97eW5Ti9" + "url": "/v1/subscription_items?subscription=sub_1PYVhoBLjyMcgacQcGcNMLMI" }, - "latest_invoice": "in_1OyZ7uBLjyMcgacQn9JiJrTX", + "latest_invoice": "in_1PYVhoBLjyMcgacQu5y73A6D", "livemode": false, "metadata": {}, "next_pending_invoice_item_invoice": null, @@ -311,7 +323,7 @@ http_interactions: "save_default_payment_method": "on_subscription" }, "pending_invoice_item_interval": null, - "pending_setup_intent": "seti_1OyZ7uBLjyMcgacQRmgRF03V", + "pending_setup_intent": "seti_1PYVhpBLjyMcgacQScYzlzhX", "pending_update": null, "plan": { "id": "price_1Oo7tQBLjyMcgacQSNLewS9y", @@ -327,6 +339,7 @@ http_interactions: "interval_count": 1, "livemode": false, "metadata": {}, + "meter": null, "nickname": null, "product": "prod_PdOgBPQqj1Ri1R", "tiers_mode": null, @@ -336,17 +349,17 @@ http_interactions: }, "quantity": 1, "schedule": null, - "start_date": 1711456153, + "start_date": 1720022812, "status": "trialing", "test_clock": null, "transfer_data": null, - "trial_end": 1714048153, + "trial_end": 1722614812, "trial_settings": { "end_behavior": { "missing_payment_method": "cancel" } }, - "trial_start": 1711456153 + "trial_start": 1720022812 } - recorded_at: Tue, 26 Mar 2024 12:29:14 GMT + recorded_at: Wed, 03 Jul 2024 16:06:53 GMT recorded_with: VCR 6.2.0 From ad3a0441c7f3dff3d271be555038777c139fb28b Mon Sep 17 00:00:00 2001 From: Rob Sterner Date: Wed, 3 Jul 2024 12:40:23 -0400 Subject: [PATCH 4/5] another credential update --- config/credentials/production.yml.enc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/credentials/production.yml.enc b/config/credentials/production.yml.enc index cbed2d08..241d8cb8 100644 --- a/config/credentials/production.yml.enc +++ b/config/credentials/production.yml.enc @@ -1 +1 @@ -ESh0PHYf0rHhtTgNcefr4+TPjmhgxtwNg5ZJzcfYuTJxEvsaEo7erJGUc9YtPMHmN7fIwpiQOVYhNtBi3RZqg9nNXTYNHV+NrXwEN5k0aB5ydetkHhy7zCyE3p3dAmP5ewxxOS3bE4WXXA5LjZPpMlJxl5ih0JlaJ1fxyYvvKuk/FXWjIjQitQAVwIQWd8J8GZ41LLYHwC5o5hLndReMbnnEUiNX0v7Y9U7XaXF5R+epvzdMBGWEK0RrrQ1lrxnjKzGDSicdzcwIpvlbu+tG4DLHbCvgG1bvVypeCFxNXIWtDW81mEsOy0ivAgRcljnviiGU0Qm+Pra9S6SddPeuTkkb6Yrq7D3cAkrBbLJ+FHfhUiGaliop9cAPPZCzrn6j1Nbt5UGKhqhMx5WNILCKFyI701NgA5MUmx9LYTouCWSdcB7CNnboq4iP+4ra0qoAYcHulpfw421f9ms6+vNi+79H9FBzvwniY7gZugRsDGyCCbzgFxxmJR5rqEG5MGZ1hqtK7truK6+590Zruq5rP3cNsEmXOKf3z/0c7iEleBU0gX1FtsDB+Kks1f42Wv+e96KjIOp4z9RiZnV1FA79Bpok/qkSVlwxT5zDJ4/UmgSOrtMKhK9FlDoX6XURDJLK0y7kw4FACCQTjJ4I6VHTOpWrNmfQLGLw4Sjw1QUpIcq3l4SBxrSvfguHGxIwCo+8ltsWTep40YXII7A0+Y3/YKuqJFqARapvJLPC7AYWMZQWqXA4LJWRpt8e00JLFTfebJPa8Jc8qyZwiThSDxm8MIXPSY7vafUqSPtMxfqTAV2F+A6p9DvhTrek4lqUy2UPCTg10ruuiuo4DIpM2j2roGJ+FgF1NqD0hfgCgUwXKy6YLZtyFDuWQqz5T6icpNJKMkM8QnCtZuaE9XA945lWesjbGs8LrBQqVkiKdqegpx8K/8dY4bGyajXdhjHi746V5PdLF4NDZPvK9aGpb/ZZZ1IfGVLIOgNkqGGkLvfFKzr92861Cz40bTEUC/l+bgkrQkbpI8v4PAb0+i0o/zQfnM7jw9avV97Cc3evWs0C8DgLuIP3T3iCCPFjuwRitXDN/231XBblZ2LdLuSK3ldDOv/mATLS9V2w6TplmwUV/s4KftFqOPl5UhB0LEwGymNhtmwL347rZgrOdLacYA0kUzm1DI/0uqXn2k9el8j51ctDfaUPVqkdmQwMX0D3DOCenMd9cy07DwVyQz+FuDHPAaGIYMR04we7bdiwxaTGGXsMwF8HxE1YcDOMOLC4Jatu1FPQCq1sblhM6JgIL5eN+d1ec97mGHKg+/Erwghn--ZWqRUayXxeTjYnG7--aIj4e2KfgeWvqrzZlmswbg== \ No newline at end of file +em7jzyOn8v4JFWr5ja4yecv+mEz0iGxu2ek6G6l6kBI/Jb4QzwRvTKIhoigR2TdUPIJonPuNbzf+B67ibekDCxnorfghicuFVLWcD9Ho/USegQZhVs0HQYQhw75IS2q3KY6X7gomNAanMqQuq1I26bs+fsnpRJ6TU99k5jTidzhocQ211fkKIjP4HgWKcDE+DXFBSvdqpeKvX6KCX3EQeqcW3Chh5+7qmkKfj+bTzZL2Rot2GutGxknaMyAj6s8tH9yF5rhQVe3tuZAuYCFEo/Pz50/QNV2cCUBFV78IGehRTG0oCLRkY7WJVmT+QrlJSPR07HYXfz/ABoHQwQrRQMNdHc+Gc6VTnLyucQawRML7w04RjbHKwaMuphfXvqkOfX2//pSRiMh+6jgm26C3qQG+ZJT0X3gFmNnDxGMyudz7sQr64ZL0t2Zjde/Xp0k8PU6MKuTd44hhsxcjKcnxCNikRIdOzIuxMWpHEuQEX+rKDR1mtC2Fr9x5BhM5wUYMNLqGa9wxYsVHTLYVrfr9NyVbc6qODKfv/BOxKBHV5eNg5Z2Tr3j//V1j7XomNUGl7b+DBLIuGkIKcXJZhhDvJqeObDWrQFsyTPkQE5/lG+sxZeyr2vIZq7FOLGYohOWLGYjmBSxTXgKmUB2FXbWszDothlBLHNKVocenxfnMCnFlhtzNQzV5emHq4VwOQfmhG3Yo3nTCIvYqrNEMRKjvctuxWgBwgrx8KvyatAz1EUKoSWrsbq5cWZs4T8OGXqtP8BQ9zuh45jS+smj/rR/miumCrX240YJhaouj31tJmWSt4I0MvOTFlXo1pgPFJ/8rv7gdNOr7PMYzNOq5hJPvvkn4WctFNfDmcMEGbcnRBstLIF5x/9cSsN3li7mxUYWist0ZCALNT6im4UsI8ONYJDM4CptSYihL5CvnsiKPjZCFFtHcm+d3/LXoLpkGO5/XyFh9Ge8h+CmEkQlXmrBIkiTqt4gYGqvl3DP4kYZr6WabBfvmhgusYxjvMkIOTdQDMggTwhSv8yuUhmqdkJgVPrHatPMpxg7wtCZFjBsss/+bRAxo/hyD8PWn28lF2Ee8ixtDheLbSbHS4a8HknvkJnMX4JvlRXKU25WYn+VzKROYKC5HKVXdNO06rDx2vWGGQtMUfA1pkFK3aiYxyPa0RW86BqoKqWn2wxC9+lD7cc2tc3moVJgUrnHW3bDJTpNf3ip4PgJnyLhlnkTLsC6h9glMdo5pWLy4bfvN3BqnjKvp5Smw+Hssm9z+NvN9/HHxKPTjvxJDh4kyIjChVw3J+dlLBHKxeFVylvH87+g5FWMvJrQIRStXOOY=--gFLFbWAnFyZrMK5a--vcbWU38iCOm4yiNU8cWTbQ== \ No newline at end of file From 6878111e52e8d9f6fd5c381d3e66616d2bc87511 Mon Sep 17 00:00:00 2001 From: Rob Sterner Date: Wed, 3 Jul 2024 12:56:08 -0400 Subject: [PATCH 5/5] point to the staffplan subdomain for the UI --- app/views/layouts/application.html.erb | 12 ++++++------ config/initializers/cors.rb | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 308ab566..42c79383 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -26,17 +26,17 @@
<% if Rails.env.production? %> - My StaffPlan + My StaffPlan <% else %> <%= header_link_to "My StaffPlan", "http://localhost:8080/people/#{current_user.id}" %> <% end %> <% if Rails.env.production? %> - Projects + Projects <% else %> <%= header_link_to "Projects", "http://localhost:8080/projects" %> <% end %> <% if Rails.env.production? %> - People + People <% else %> <%= header_link_to "People", "http://localhost:8080/people" %> <% end %> @@ -110,17 +110,17 @@