Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test 3d secure auth bypassing web-mock #3

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
213d86a
Adds metadata and capture method to creation of payment intents
jordanrobinson May 16, 2022
bd7a24e
Adds customer to creation of payment intent
jordanrobinson May 23, 2022
2a93ad9
[#TELE-1285] Add new fields: amount_capturable
callwait May 25, 2022
d717e59
Adds "with-api-base" macro for tests
jonassvalin May 31, 2022
fedbdb9
Remove exception catch in with-api-base macro
jonassvalin May 31, 2022
6638eb1
Fix order of api-key and params in customers/create function
jonassvalin Jun 6, 2022
591f52c
Updates to new CI template
jordanrobinson Jul 25, 2023
34c516d
Fixes linting issues
jordanrobinson Jul 25, 2023
3bd58bc
Making things comply with our linters
jordanrobinson Jul 25, 2023
4a154ee
Adds basic invoice functionality
jordanrobinson Jul 26, 2023
bc0a0cd
Merge pull request #2 from mypulse-uk/adds-basic-invoice-functionality
jordanrobinson Jul 27, 2023
ce87496
Adds invoices to core
jordanrobinson Jul 27, 2023
1ac5fde
Merge pull request #3 from mypulse-uk/adds-invoices-to-core
chris-emerson Jul 27, 2023
f2f2c34
Adds refunds to core and associated functionality
jordanrobinson Aug 1, 2023
6ca28a4
Merge pull request #4 from mypulse-uk/adds-refunds
francesco-losciale Aug 1, 2023
7d6a1d2
Add finalise for invoices
Aug 1, 2023
d71f532
Adds handling for if charges are null on a payment intent
jordanrobinson Aug 2, 2023
4f0e6b6
Merge pull request #5 from mypulse-uk/handles-null-charges
francesco-losciale Aug 2, 2023
aee8a0a
Adds more fields to refunds
jordanrobinson Aug 2, 2023
b729df8
Merge pull request #6 from mypulse-uk/more-refund-fields
francesco-losciale Aug 2, 2023
6e45958
Typo fix
jordanrobinson Aug 2, 2023
6794a82
Add field total to invoices
Aug 3, 2023
d1f2a9d
Merge pull request #7 from mypulse-uk/add-total-to-invoice
jordanrobinson Aug 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .cljstyle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{:files
{:ignore #{"target" ".git" "config"}}

:rules
{:blank-lines {:max-consecutive 1
:padding-lines 1}
:types {:types? false
:protocols? false}}}
6 changes: 6 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

PROJECT_DIR="$(pwd)"

PATH_add "${PROJECT_DIR}"
PATH_add "${PROJECT_DIR}"/vendor/**/bin
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
config/secrets/** filter=git-crypt diff=git-crypt
47 changes: 34 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
/target
/classes
/checkouts
pom.xml
pom.xml.asc
*.jar
*.class
/.lein-*
/.nrepl-port
.hgignore
.hg/
.idea
zebra.iml
# vim
*.swp
*.swo

# IntelliJ
.idea/
*.ipr
*.iml
*.iws

# Build
/vendor/
/build/
/target/
dist/
.clj-kondo/.cache

# OS
.DS_Store

# Temporary
run/pids/
run/logs/
*.log
.tmp
.rakeTasks

# Terraform
.terraform
.nrepl-port

# Leiningen
.lein-repl-history
.lein-env
1 change: 1 addition & 0 deletions .java-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11.0
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.1
16 changes: 16 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
source 'https://rubygems.org'

gem 'activesupport', '~> 7.0'
gem 'confidante', '0.28.0.pre.21'
gem 'docker-api', '~> 2.2'
gem 'dotenv', '~> 2.8'
gem 'nokogiri', '~> 1.13'
gem 'rake', '~> 13.0'
gem 'rake_docker', '~> 2.17'
gem 'rake_fly', '~> 2.11'
gem 'rake_leiningen', '~> 0.34'
gem 'rake_dependencies', '~> 3.1'
gem 'rake_terraform', '~> 1.23'
gem 'rake_vault', '0.1.0.pre.13'
gem 'semantic', '~> 1.6'
gem 'vault', '~> 0.17'
146 changes: 146 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
aws-eventstream (1.2.0)
aws-partitions (1.781.0)
aws-sdk-core (3.175.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.5)
jmespath (~> 1, >= 1.6.1)
aws-sdk-ecr (1.60.0)
aws-sdk-core (~> 3, >= 3.174.0)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.5.2)
aws-eventstream (~> 1, >= 1.0.2)
colored2 (3.1.2)
concourse.rb (0.5.0)
excon (~> 0.72)
semantic (~> 1.5)
concurrent-ruby (1.1.10)
confidante (0.28.0.pre.21)
activesupport (>= 4)
hiera (~> 3.3)
shikashi (~> 0.6)
vault (~> 0.17)
docker-api (2.2.0)
excon (>= 0.47.0)
multi_json
dotenv (2.8.1)
evalhook (0.6.0)
partialruby (~> 0.3)
sexp_processor (~> 4.0)
excon (0.100.0)
getsource (0.2.2)
hamster (3.0.0)
concurrent-ruby (~> 1.0)
hiera (3.12.0)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
immutable-struct (2.4.1)
jmespath (1.6.2)
lino (3.1.0)
hamster (~> 3.0)
open4 (~> 1.3)
minitar (0.9)
minitest (5.15.0)
multi_json (1.15.0)
nokogiri (1.15.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.15.2-x86_64-linux)
racc (~> 1.4)
open4 (1.3.4)
partialruby (0.3.0)
ruby2ruby (~> 2)
ruby_parser (~> 3)
racc (1.7.1)
rake (13.0.6)
rake_dependencies (3.1.0)
hamster (~> 3.0)
minitar (~> 0.9)
rake_factory (~> 0.23)
rubyzip (>= 1.3)
rake_docker (2.19.0)
aws-sdk-ecr (~> 1.2)
colored2 (~> 3.1)
docker-api (>= 1.34, < 3.0)
rake_factory (~> 0.23)
rake_factory (0.29.0)
activesupport (>= 4)
rake (~> 13.0)
rake_fly (2.13.0)
concourse.rb (>= 0.4)
rake_dependencies (~> 3.1)
rake_factory (~> 0.29)
ruby_fly (>= 0.35)
semantic (~> 1.6)
rake_leiningen (0.36.0)
rake_dependencies (~> 3.1)
rake_factory (~> 0.23)
ruby_leiningen (= 0.25.0)
semantic (~> 1.6)
rake_terraform (1.23.0)
colored2 (~> 3.1)
rake_dependencies (~> 3.1)
rake_factory (~> 0.23)
ruby-terraform (~> 1.4)
rake_vault (0.1.0.pre.13)
colored2 (~> 3.1)
rake_dependencies (~> 3.1)
rake_factory (~> 0.23)
ruby_vault (~> 0.1.0.pre.15)
vault (~> 0.17)
ruby-terraform (1.7.0)
immutable-struct (~> 2.4)
lino (~> 3.0)
ruby2ruby (2.5.0)
ruby_parser (~> 3.1)
sexp_processor (~> 4.6)
ruby_fly (0.39.0)
lino (~> 3.0)
ruby_leiningen (0.25.0)
activesupport (>= 6.0.2, < 8)
lino (~> 3.0)
ruby_parser (3.20.2)
sexp_processor (~> 4.16)
ruby_vault (0.1.0)
immutable-struct (~> 2.4)
lino (~> 3.0)
rubyzip (2.3.2)
semantic (1.6.1)
sexp_processor (4.17.0)
shikashi (0.6.0)
evalhook (>= 0.6.0)
getsource (>= 0.1.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
vault (0.17.0)
aws-sigv4

PLATFORMS
arm64-darwin-21
x86_64-linux

DEPENDENCIES
activesupport (~> 7.0)
confidante (= 0.28.0.pre.21)
docker-api (~> 2.2)
dotenv (~> 2.8)
nokogiri (~> 1.13)
rake (~> 13.0)
rake_dependencies (~> 3.1)
rake_docker (~> 2.17)
rake_fly (~> 2.11)
rake_leiningen (~> 0.34)
rake_terraform (~> 1.23)
rake_vault (= 0.1.0.pre.13)
semantic (~> 1.6)
vault (~> 0.17)

BUNDLED WITH
2.3.15
12 changes: 6 additions & 6 deletions LICENSE.txt → LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)
MIT License

Copyright (c) 2019 B-Social Ltd.
Copyright &copy; 2022 MyPulse

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 4 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,13 @@ Inspired by clojurewerkz/elephant: https://github.com/clojurewerkz/elephant
Add the following to your `project.clj` file:

```clj
[b-social/zebra "0.1.12"]
[ai.mypulse/zebra "0.1.12"]
```

## Documentation

* [API Docs](http://b-social.github.io/zebra)

## Usage

TODO: Add usage.

## Development

### Run tests
`lein test`

### Run linting
`lein eastwood`

## License

Copyright © 2020 B-Social Ltd.
Forked from b-social/zebra

Copyright © 2023 MyPulse Ltd.

Distributed under the MIT license.
Loading