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

revert(OFF-1289): remove billing service implementation #24

Merged
merged 15 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/billing-qc-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
version: [5.6, 7.1, 7.2, 8.0]
version: [5.6, 7.1, 7.2, 8.0, 8.1]
runs-on: ubuntu-latest
steps:
- name: Setup PHP with tools
Expand Down
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ composer require prestashopcorp/module-lib-billing
| 1.x | Security fixes | `module-lib-billing` | `PrestaShopCorp\Billing` | [v1][lib-1-repo] | N/A | >=5.6 |
| 2.x | Security fixes | `module-lib-billing` | `PrestaShopCorp\Billing` | [v2][lib-2-repo] | N/A | >=7.2.5 |
| 3.x | Latest | `module-lib-billing` | `PrestaShopCorp\Billing` | [v3][lib-3-repo] | N/A | >=5.6 |
| 4.x | Latest | `module-lib-billing` | `PrestaShopCorp\Billing` | [v4][lib-4-repo] | N/A | >=5.6 |

[lib-1-repo]: https://github.com/PrestaShopCorp/module-lib-billing/tree/1.x
[lib-2-repo]: https://github.com/PrestaShopCorp/module-lib-billing/tree/2.x
[lib-3-repo]: https://github.com/PrestaShopCorp/module-lib-billing
[lib-3-repo]: https://github.com/PrestaShopCorp/module-lib-billing/tree/2.3
[lib-4-repo]: https://github.com/PrestaShopCorp/module-lib-billing

## Register as a service in your PSx container

Expand All @@ -39,22 +41,14 @@ services:
class: 'PrestaShopCorp\Billing\Wrappers\BillingContextWrapper'
arguments:
- "@ps_accounts.facade"
- "@rbm_example.context"
- "@builtfor_example.context"
- true # if true you are in sandbox mode, if false or empty not in sandbox

ps_billings.facade:
class: 'PrestaShopCorp\Billing\Presenter\BillingPresenter'
arguments:
- "@ps_billings.context_wrapper"
- "@rbm_example.module"

# Remove this if you don't need BillingService
ps_billings.service:
class: PrestaShopCorp\Billing\Services\BillingService
public: true
arguments:
- "@ps_billings.context_wrapper"
- "@rbm_example.module"
- "@builtfor_Example.module"
TakeshiDaveau marked this conversation as resolved.
Show resolved Hide resolved
```

## How to use it
Expand Down
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
]
},
"require": {
"php": ">=5.6",
"prestashop/module-lib-guzzle-adapter": "0.6"
"php": ">=5.6"
},
"require-dev": {
"prestashop/php-dev-tools": "^3",
"guzzlehttp/guzzle": "^5.3"
"prestashop/php-dev-tools": "^3"
},
"config": {
"allow-plugins": {
Expand Down
139 changes: 0 additions & 139 deletions src/Builder/UrlBuilder.php
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il faudra penser à mettre les URL's dispo dans la doc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes je t'envoie la doc d'ici ce soir tu me diras si ça te va

This file was deleted.

61 changes: 0 additions & 61 deletions src/Clients/BillingAPIGatewayClient.php

This file was deleted.

107 changes: 0 additions & 107 deletions src/Clients/BillingServiceSubscriptionClient.php

This file was deleted.

Loading
Loading