-
Notifications
You must be signed in to change notification settings - Fork 116
[configurationwebhooks] Code generation: update services and models #861
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -386,9 +386,6 @@ public function listInvalidProperties() | |
| ); | ||
| } | ||
|
|
||
| if ($this->container['number'] === null) { | ||
| $invalidProperties[] = "'number' can't be null"; | ||
| } | ||
| return $invalidProperties; | ||
| } | ||
|
|
||
|
|
@@ -681,7 +678,7 @@ public function setLastFour($lastFour) | |
| /** | ||
| * Gets number | ||
| * | ||
| * @return string | ||
| * @return string|null | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the return type for |
||
| */ | ||
| public function getNumber() | ||
| { | ||
|
|
@@ -691,7 +688,7 @@ public function getNumber() | |
| /** | ||
| * Sets number | ||
| * | ||
| * @param string $number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. | ||
| * @param string|null $number The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. | ||
| * | ||
| * @return self | ||
| */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -380,7 +380,7 @@ public function getActivation() | |
| /** | ||
| * Sets activation | ||
| * | ||
| * @param string|null $activation Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. | ||
| * @param string|null $activation The activation label attached to the card that contains the activation instructions. This field overrides the activation label design ID defined in the card configuration profile. | ||
| * | ||
| * @return self | ||
| */ | ||
|
|
@@ -452,7 +452,7 @@ public function getCardImageId() | |
| /** | ||
| * Sets cardImageId | ||
| * | ||
| * @param string|null $cardImageId The ID of the card image. This is the image that will be printed on the full front of the card. | ||
| * @param string|null $cardImageId The unique identifier of the card image. This image is printed on the full front of the card. | ||
| * | ||
| * @return self | ||
| */ | ||
|
|
@@ -476,7 +476,7 @@ public function getCarrier() | |
| /** | ||
| * Sets carrier | ||
| * | ||
| * @param string|null $carrier Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. | ||
| * @param string|null $carrier The letter or packaging to which the card is attached. This field overrides the carrier design ID defined in the card configuration profile. | ||
| * | ||
| * @return self | ||
| */ | ||
|
|
@@ -500,7 +500,7 @@ public function getCarrierImageId() | |
| /** | ||
| * Sets carrierImageId | ||
| * | ||
| * @param string|null $carrierImageId The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. | ||
| * @param string|null $carrierImageId The unique identifier of the carrier image. This image is printed on the letter to which the card is attached. | ||
| * | ||
| * @return self | ||
| */ | ||
|
|
@@ -524,7 +524,7 @@ public function getConfigurationProfileId() | |
| /** | ||
| * Sets configurationProfileId | ||
| * | ||
| * @param string $configurationProfileId The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. | ||
| * @param string $configurationProfileId The unique identifier of the card configuration profile that contains the settings that are applied to the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. You can override some of the existing settings in the configuration profile by providing the corresponding fields in the `configuration` object. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. | ||
| * | ||
| * @return self | ||
| */ | ||
|
|
@@ -548,7 +548,7 @@ public function getCurrency() | |
| /** | ||
| * Sets currency | ||
| * | ||
| * @param string|null $currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. | ||
| * @param string|null $currency The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. This field overrides the existing currency setting on the card configuration profile. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property is documented as nullable, but its corresponding entry in the |
||
| * | ||
| * @return self | ||
| */ | ||
|
|
@@ -572,7 +572,7 @@ public function getEnvelope() | |
| /** | ||
| * Sets envelope | ||
| * | ||
| * @param string|null $envelope Overrides the envelope design ID defined in the `configurationProfileId`. | ||
| * @param string|null $envelope Overrides the envelope design ID defined in the card configuration profile. | ||
| * | ||
| * @return self | ||
| */ | ||
|
|
@@ -596,7 +596,7 @@ public function getInsert() | |
| /** | ||
| * Sets insert | ||
| * | ||
| * @param string|null $insert Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. | ||
| * @param string|null $insert Any additional material, such as marketing material, that is shipped together with the card. This field overrides the insert design ID defined in the card configuration profile. | ||
| * | ||
| * @return self | ||
| */ | ||
|
|
@@ -644,7 +644,7 @@ public function getLogoImageId() | |
| /** | ||
| * Sets logoImageId | ||
| * | ||
| * @param string|null $logoImageId The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. | ||
| * @param string|null $logoImageId The unique identifier of the logo image. This image is printed on the partial front of the card, for example, a logo on the upper right corner. | ||
| * | ||
| * @return self | ||
| */ | ||
|
|
@@ -668,7 +668,7 @@ public function getPinMailer() | |
| /** | ||
| * Sets pinMailer | ||
| * | ||
| * @param string|null $pinMailer Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. | ||
| * @param string|null $pinMailer The letter on which the PIN of the card is printed. This field overrides the PIN mailer design ID defined in the card configuration profile. | ||
| * | ||
| * @return self | ||
| */ | ||
|
|
@@ -692,7 +692,7 @@ public function getShipmentMethod() | |
| /** | ||
| * Sets shipmentMethod | ||
| * | ||
| * @param string|null $shipmentMethod Overrides the logistics company defined in the `configurationProfileId`. | ||
| * @param string|null $shipmentMethod The logistics company that ships the card. This field overrides the logistics company defined in the card configuration profile. | ||
| * | ||
| * @return self | ||
| */ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new properties
line1,line2,line3, andnameare defined as nullable in their setters (acceptingstring|null), but are marked as non-nullable here by being set tofalse. This prevents them from being explicitly serialized asnullin a JSON payload. To ensure consistency and allow for explicit nulling of these fields, their values in the$openAPINullablesarray should betrue.