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

Replace non-existing parameter baseUrl with correct base_uri #557

Closed
wants to merge 838 commits into from

Conversation

n-fasano
Copy link

@n-fasano n-fasano commented Sep 2, 2022

XaosSintez and others added 30 commits August 23, 2018 15:32
* Test php 7.2

* Update .travis.yml
… setup properties (#291)

* Update CHANGELOG

* Fix resource factory on populate resources

* Add plan pricing model

* Add recurring interval model

* Add plan trial and setup models

* Update Plan to latest spec

* Change CHANGELOG

* Remove declare usage

* Improve readibility of tests

* Fix tests

* Replace constant array with method ()Darray const is not supported in php5.5
* Update library dependents

* Downgrade version to support php 5.6

* Fix cs

* update travis to check only new PHP versions

* Upgrade cs-fixer to v2.0

* Update cs-fixer config to support v2

* Disable cs-fixer temporary

* Add php 7.3 to test

* Fix .travis
* Upgrade PhpUnit to v7.3

* Fix tests to last version

* Fix ResourceTest
* Fix code style

* Enable back the cs-fixer in travis

* Upgrade PhpUnit to v7.3

* Fix tests to last version

* Fix ResourceTest

* Fix tests after changing cs

* Fix Rate cs
* Refactor LeadSources usage

* Only remove unnecessary lead sources in this PR

* Fix codestyle

* Add changelog

* Add formatting
* Remove deprecated attributes and a bit order methods

* Refactor Subscription

* Add SubscriptionTest

* Add items to Subscriptions

* Refactor SubscriptionTest

* Update CHANGELOG

* Add fake generator for new property

* Fix CS

* Add PlanItemTest
* Adjust LeadSource to latest changes

* Redo test

* Remove wrong imports

* Fix test

* Add changelog

* Remove ipAddress
* Add missing coupons restriction

* Small fix
* Remove Lead Sources from Subscriptions, Transactions, Invoices (#289)

* Refactor LeadSources usage

* Only remove unnecessary lead sources in this PR

* Fix codestyle

* Add changelog

* Add formatting

* Add plan items property to Subscription, remove deprecated ones (#297)

* Remove deprecated attributes and a bit order methods

* Refactor Subscription

* Add SubscriptionTest

* Add items to Subscriptions

* Refactor SubscriptionTest

* Update CHANGELOG

* Add fake generator for new property

* Fix CS

* Add PlanItemTest

* Adjust LeadSource to latest changes (#298)

* Adjust LeadSource to latest changes

* Redo test

* Remove wrong imports

* Fix test

* Add changelog

* Remove ipAddress

* Add getCustomer in Transaction (#299)

* Remove EmailNotifications code (#300)

* Adjust CHANGELOG.md file (#301)

* Remove LeadSources endpoint and service (#296)

* Add missing coupons restriction (#302)

* Add missing coupons restriction

* Small fix

* Remove deprecated initialInvoiceId property from Subscription (#303)

* Remove declartions of strict mode

* Fix tests

* Remove const visibility
* Update CHANGELOG

* Increase SDK version
* Adjust PhpDoc

* Optimize imports

* Remove unused import

* Add copyright header, remove 'strict_types' directive

* Reorder imports

* Adjust PhpDoc
Boydbueno and others added 21 commits February 22, 2022 15:03
* Add shipping rates

* Remove shipping zones

* Update changelog

* Remove shippingZones from serviceTest
* Add DOB property to the Address entity

* Update fixtures

* Add comment
* Add ReadyToPay

* Refactor code
* Add missing properties to Subscription

* Fix test

* Update src/Entities/Shipping.php

Co-authored-by: Vladimir Berdnik <vladimir.berdnik@rebilly.com>

* Update src/Entities/Subscription.php

Co-authored-by: Vladimir Berdnik <vladimir.berdnik@rebilly.com>
* Add shipping to Invoice

* Update shipping schema

* Add tax to invoice

* Add setter

* Fix factory

* Update changelog

* Fix test

* Fix test

* Fix test

* Update CHANGELOG.md

Co-authored-by: Simon <ninjasimon@users.noreply.github.com>

* Update src/Entities/InvoiceTax.php

Co-authored-by: Vladimir Berdnik <vladimir.berdnik@rebilly.com>

Co-authored-by: Simon <ninjasimon@users.noreply.github.com>
Co-authored-by: Vladimir Berdnik <vladimir.berdnik@rebilly.com>
* Add jobTitle to the address resource

* Fix test
@n-fasano n-fasano self-assigned this Sep 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 2, 2022

Coverage Report

Totals Coverage
Statements: 80.63% ( 4550 / 5643 )
Methods: 79.42% ( 1725 / 2172 )
Lines: 81.39% ( 2825 / 3471 )

StandWithUkraine

@n-fasano n-fasano marked this pull request as ready for review September 2, 2022 09:57
@n-fasano n-fasano requested a review from a team as a code owner September 2, 2022 09:57
@@ -41,7 +41,7 @@ use Rebilly\Client;
// Instantiate Rebilly client.
$client = new Client([
'apiKey' => ApiKeyProvider::env(),
'baseUrl' => Client::SANDBOX_HOST,
'base_uri' => Client::SANDBOX_HOST,

Choose a reason for hiding this comment

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

This seems incorrect. The correct property name is baseUrl

if (isset($baseUrl)) {

Copy link
Author

Choose a reason for hiding this comment

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

Base branch was incorrect. Please ignore.

@n-fasano n-fasano changed the base branch from main to v3.0-dev September 2, 2022 09:59
@n-fasano n-fasano closed this Sep 2, 2022
@n-fasano n-fasano deleted the fix-client-example branch September 2, 2022 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet