Skip to content

Commit

Permalink
revert: remove billing service implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
TakeshiDaveau committed Jan 17, 2025
1 parent afc83c3 commit 9657409
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 1,517 deletions.
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"
```
## 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

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

0 comments on commit 9657409

Please sign in to comment.