diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b7f8629..fb5a2c5 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: 32d162bd-5d3c-4bae-bce8-143fcab0e56e management: docChecksum: 52cef2a60d39b3cba88408f87a6c0998 docVersion: "2018-02-08" - speakeasyVersion: 1.439.0 - generationVersion: 2.457.9 - releaseVersion: 3.0.0-alpha.1 - configChecksum: 8e636c00c49527e7d399281940b5b9dd + speakeasyVersion: 1.440.1 + generationVersion: 2.460.1 + releaseVersion: 3.0.0-alpha + configChecksum: 7a1a3c32862dbf9bdd7c7b84e0b97e1b repoURL: https://github.com/goshippo/shippo-php-sdk.git installationURL: https://github.com/goshippo/shippo-php-sdk published: true diff --git a/docs/Models/Components/AddressFrom.md b/docs/Models/Components/AddressFrom.md index 9b85667..945274b 100644 --- a/docs/Models/Components/AddressFrom.md +++ b/docs/Models/Components/AddressFrom.md @@ -6,12 +6,18 @@ ### `Components\AddressCreateRequest` ```php +/** +* @var Components\AddressCreateRequest +*/ Components\AddressCreateRequest $value = /* values here */ ``` ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` diff --git a/docs/Models/Components/AddressReturn.md b/docs/Models/Components/AddressReturn.md index aebe08a..1438451 100644 --- a/docs/Models/Components/AddressReturn.md +++ b/docs/Models/Components/AddressReturn.md @@ -6,12 +6,18 @@ ### `Components\AddressCreateRequest` ```php +/** +* @var Components\AddressCreateRequest +*/ Components\AddressCreateRequest $value = /* values here */ ``` ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` diff --git a/docs/Models/Components/AddressTo.md b/docs/Models/Components/AddressTo.md index b1e29c3..242fcc0 100644 --- a/docs/Models/Components/AddressTo.md +++ b/docs/Models/Components/AddressTo.md @@ -6,12 +6,18 @@ ### `Components\AddressCreateRequest` ```php +/** +* @var Components\AddressCreateRequest +*/ Components\AddressCreateRequest $value = /* values here */ ``` ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` diff --git a/docs/Models/Components/CarrierAccountBaseParameters.md b/docs/Models/Components/CarrierAccountBaseParameters.md index 124dd94..fb26178 100644 --- a/docs/Models/Components/CarrierAccountBaseParameters.md +++ b/docs/Models/Components/CarrierAccountBaseParameters.md @@ -3,21 +3,30 @@ ## Supported Types -### `array` +### `array` ```php -array $value = /* values here */ +/** +* @var array +*/ +array $value = /* values here */ ``` ### `Components\FedExConnectExistingOwnAccountParameters` ```php +/** +* @var Components\FedExConnectExistingOwnAccountParameters +*/ Components\FedExConnectExistingOwnAccountParameters $value = /* values here */ ``` ### `Components\UPSConnectExistingOwnAccountParameters` ```php +/** +* @var Components\UPSConnectExistingOwnAccountParameters +*/ Components\UPSConnectExistingOwnAccountParameters $value = /* values here */ ``` diff --git a/docs/Models/Components/CarrierAccountParameters.md b/docs/Models/Components/CarrierAccountParameters.md index f774797..49c6852 100644 --- a/docs/Models/Components/CarrierAccountParameters.md +++ b/docs/Models/Components/CarrierAccountParameters.md @@ -3,21 +3,30 @@ ## Supported Types -### `array` +### `array` ```php -array $value = /* values here */ +/** +* @var array +*/ +array $value = /* values here */ ``` ### `Components\FedExConnectExistingOwnAccountParameters` ```php +/** +* @var Components\FedExConnectExistingOwnAccountParameters +*/ Components\FedExConnectExistingOwnAccountParameters $value = /* values here */ ``` ### `Components\UPSConnectExistingOwnAccountParameters` ```php +/** +* @var Components\UPSConnectExistingOwnAccountParameters +*/ Components\UPSConnectExistingOwnAccountParameters $value = /* values here */ ``` diff --git a/docs/Models/Components/ConnectExistingOwnAccountRequestParameters.md b/docs/Models/Components/ConnectExistingOwnAccountRequestParameters.md index d24bc20..5f86f00 100644 --- a/docs/Models/Components/ConnectExistingOwnAccountRequestParameters.md +++ b/docs/Models/Components/ConnectExistingOwnAccountRequestParameters.md @@ -3,21 +3,30 @@ ## Supported Types -### `array` +### `array` ```php -array $value = /* values here */ +/** +* @var array +*/ +array $value = /* values here */ ``` ### `Components\FedExConnectExistingOwnAccountParameters` ```php +/** +* @var Components\FedExConnectExistingOwnAccountParameters +*/ Components\FedExConnectExistingOwnAccountParameters $value = /* values here */ ``` ### `Components\UPSConnectExistingOwnAccountParameters` ```php +/** +* @var Components\UPSConnectExistingOwnAccountParameters +*/ Components\UPSConnectExistingOwnAccountParameters $value = /* values here */ ``` diff --git a/docs/Models/Components/Latitude.md b/docs/Models/Components/Latitude.md index 3c08abe..779398e 100644 --- a/docs/Models/Components/Latitude.md +++ b/docs/Models/Components/Latitude.md @@ -6,12 +6,18 @@ ### `float` ```php +/** +* @var float +*/ float $value = /* values here */ ``` ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` diff --git a/docs/Models/Components/LiveRateCreateRequestAddressFrom.md b/docs/Models/Components/LiveRateCreateRequestAddressFrom.md index 6654bc6..63291e7 100644 --- a/docs/Models/Components/LiveRateCreateRequestAddressFrom.md +++ b/docs/Models/Components/LiveRateCreateRequestAddressFrom.md @@ -10,12 +10,18 @@ any address element, especially name, company, and email. ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` ### `Components\AddressCompleteCreateRequest` ```php +/** +* @var Components\AddressCompleteCreateRequest +*/ Components\AddressCompleteCreateRequest $value = /* values here */ ``` diff --git a/docs/Models/Components/LiveRateCreateRequestAddressTo.md b/docs/Models/Components/LiveRateCreateRequestAddressTo.md index 68a3660..fb3892d 100644 --- a/docs/Models/Components/LiveRateCreateRequestAddressTo.md +++ b/docs/Models/Components/LiveRateCreateRequestAddressTo.md @@ -10,12 +10,18 @@ any address element, especially name, company, and email. ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` ### `Components\AddressCompleteCreateRequest` ```php +/** +* @var Components\AddressCompleteCreateRequest +*/ Components\AddressCompleteCreateRequest $value = /* values here */ ``` diff --git a/docs/Models/Components/LiveRateCreateRequestParcel.md b/docs/Models/Components/LiveRateCreateRequestParcel.md index 09e1340..a0f422b 100644 --- a/docs/Models/Components/LiveRateCreateRequestParcel.md +++ b/docs/Models/Components/LiveRateCreateRequestParcel.md @@ -8,12 +8,18 @@ Object ID for an existing User Parcel Template OR a fully formed Parcel object. ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` ### `Components\Parcel` ```php +/** +* @var Components\Parcel +*/ Components\Parcel $value = /* values here */ ``` diff --git a/docs/Models/Components/Longitude.md b/docs/Models/Components/Longitude.md index 3f3ff29..dd23018 100644 --- a/docs/Models/Components/Longitude.md +++ b/docs/Models/Components/Longitude.md @@ -6,12 +6,18 @@ ### `float` ```php +/** +* @var float +*/ float $value = /* values here */ ``` ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` diff --git a/docs/Models/Components/ManifestCreateRequestAddressFrom.md b/docs/Models/Components/ManifestCreateRequestAddressFrom.md index f680f05..93c1e53 100644 --- a/docs/Models/Components/ManifestCreateRequestAddressFrom.md +++ b/docs/Models/Components/ManifestCreateRequestAddressFrom.md @@ -6,12 +6,18 @@ ### `Components\AddressCreateRequest` ```php +/** +* @var Components\AddressCreateRequest +*/ Components\AddressCreateRequest $value = /* values here */ ``` ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` diff --git a/docs/Models/Components/Parameters.md b/docs/Models/Components/Parameters.md index bedb04b..78cb82d 100644 --- a/docs/Models/Components/Parameters.md +++ b/docs/Models/Components/Parameters.md @@ -3,21 +3,30 @@ ## Supported Types -### `array` +### `array` ```php -array $value = /* values here */ +/** +* @var array +*/ +array $value = /* values here */ ``` ### `Components\FedExConnectExistingOwnAccountParameters` ```php +/** +* @var Components\FedExConnectExistingOwnAccountParameters +*/ Components\FedExConnectExistingOwnAccountParameters $value = /* values here */ ``` ### `Components\UPSConnectExistingOwnAccountParameters` ```php +/** +* @var Components\UPSConnectExistingOwnAccountParameters +*/ Components\UPSConnectExistingOwnAccountParameters $value = /* values here */ ``` diff --git a/docs/Models/Components/ParcelTemplateEnumSet.md b/docs/Models/Components/ParcelTemplateEnumSet.md index b326126..4e682e9 100644 --- a/docs/Models/Components/ParcelTemplateEnumSet.md +++ b/docs/Models/Components/ParcelTemplateEnumSet.md @@ -8,42 +8,63 @@ If template is passed, `length`, `width`, `height`, and `distance_unit` are not ### `Components\ParcelTemplateFedExEnum` ```php +/** +* @var Components\ParcelTemplateFedExEnum +*/ Components\ParcelTemplateFedExEnum $value = /* values here */ ``` ### `Components\ParcelTemplateUPSEnum` ```php +/** +* @var Components\ParcelTemplateUPSEnum +*/ Components\ParcelTemplateUPSEnum $value = /* values here */ ``` ### `Components\ParcelTemplateUSPSEnum` ```php +/** +* @var Components\ParcelTemplateUSPSEnum +*/ Components\ParcelTemplateUSPSEnum $value = /* values here */ ``` ### `Components\ParcelTemplateDHLeCommerceEnum` ```php +/** +* @var Components\ParcelTemplateDHLeCommerceEnum +*/ Components\ParcelTemplateDHLeCommerceEnum $value = /* values here */ ``` ### `Components\ParcelTemplateDPDUKEnum` ```php +/** +* @var Components\ParcelTemplateDPDUKEnum +*/ Components\ParcelTemplateDPDUKEnum $value = /* values here */ ``` ### `Components\ParcelTemplateCouriersPleaseEnum` ```php +/** +* @var Components\ParcelTemplateCouriersPleaseEnum +*/ Components\ParcelTemplateCouriersPleaseEnum $value = /* values here */ ``` ### `Components\ParcelTemplateAramexAustraliaEnum` ```php +/** +* @var Components\ParcelTemplateAramexAustraliaEnum +*/ Components\ParcelTemplateAramexAustraliaEnum $value = /* values here */ ``` diff --git a/docs/Models/Components/Parcels.md b/docs/Models/Components/Parcels.md index 42c7b69..95955f3 100644 --- a/docs/Models/Components/Parcels.md +++ b/docs/Models/Components/Parcels.md @@ -6,18 +6,27 @@ ### `Components\ParcelCreateRequest` ```php +/** +* @var Components\ParcelCreateRequest +*/ Components\ParcelCreateRequest $value = /* values here */ ``` ### `Components\ParcelCreateFromTemplateRequest` ```php +/** +* @var Components\ParcelCreateFromTemplateRequest +*/ Components\ParcelCreateFromTemplateRequest $value = /* values here */ ``` ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` diff --git a/docs/Models/Components/ReturnServiceType.md b/docs/Models/Components/ReturnServiceType.md index 2a3b263..6de0364 100644 --- a/docs/Models/Components/ReturnServiceType.md +++ b/docs/Models/Components/ReturnServiceType.md @@ -8,12 +8,18 @@ Request additional return option for return shipments (UPS and Lasership only). ### `Components\ShipmentExtraReturnServiceTypeUPSEnum` ```php +/** +* @var Components\ShipmentExtraReturnServiceTypeUPSEnum +*/ Components\ShipmentExtraReturnServiceTypeUPSEnum $value = /* values here */ ``` ### `Components\ShipmentExtraReturnServiceTypeLasershipEnum` ```php +/** +* @var Components\ShipmentExtraReturnServiceTypeLasershipEnum +*/ Components\ShipmentExtraReturnServiceTypeLasershipEnum $value = /* values here */ ``` diff --git a/docs/Models/Components/ServiceLevelEnumSet.md b/docs/Models/Components/ServiceLevelEnumSet.md index 867bd8e..82d3377 100644 --- a/docs/Models/Components/ServiceLevelEnumSet.md +++ b/docs/Models/Components/ServiceLevelEnumSet.md @@ -6,234 +6,351 @@ ### `Components\ServiceLevelUSPSEnum` ```php +/** +* @var Components\ServiceLevelUSPSEnum +*/ Components\ServiceLevelUSPSEnum $value = /* values here */ ``` ### `Components\ServiceLevelFedExEnum` ```php +/** +* @var Components\ServiceLevelFedExEnum +*/ Components\ServiceLevelFedExEnum $value = /* values here */ ``` ### `Components\ServiceLevelUPSEnum` ```php +/** +* @var Components\ServiceLevelUPSEnum +*/ Components\ServiceLevelUPSEnum $value = /* values here */ ``` ### `Components\ServiceLevelAirterraEnum` ```php +/** +* @var Components\ServiceLevelAirterraEnum +*/ Components\ServiceLevelAirterraEnum $value = /* values here */ ``` ### `Components\ServiceLevelAPCPostalEnum` ```php +/** +* @var Components\ServiceLevelAPCPostalEnum +*/ Components\ServiceLevelAPCPostalEnum $value = /* values here */ ``` ### `Components\ServiceLevelAsendiaEnum` ```php +/** +* @var Components\ServiceLevelAsendiaEnum +*/ Components\ServiceLevelAsendiaEnum $value = /* values here */ ``` ### `Components\ServiceLevelAustraliaPostEnum` ```php +/** +* @var Components\ServiceLevelAustraliaPostEnum +*/ Components\ServiceLevelAustraliaPostEnum $value = /* values here */ ``` ### `Components\ServiceLevelAPGEnum` ```php +/** +* @var Components\ServiceLevelAPGEnum +*/ Components\ServiceLevelAPGEnum $value = /* values here */ ``` ### `Components\ServiceLevelBetterTrucksEnum` ```php +/** +* @var Components\ServiceLevelBetterTrucksEnum +*/ Components\ServiceLevelBetterTrucksEnum $value = /* values here */ ``` ### `Components\ServiceLevelCanadaPostEnum` ```php +/** +* @var Components\ServiceLevelCanadaPostEnum +*/ Components\ServiceLevelCanadaPostEnum $value = /* values here */ ``` ### `Components\ServiceLevelCDLEnum` ```php +/** +* @var Components\ServiceLevelCDLEnum +*/ Components\ServiceLevelCDLEnum $value = /* values here */ ``` ### `Components\ServiceLevelChronopostEnum` ```php +/** +* @var Components\ServiceLevelChronopostEnum +*/ Components\ServiceLevelChronopostEnum $value = /* values here */ ``` ### `Components\ServiceLevelCouriersPleaseEnum` ```php +/** +* @var Components\ServiceLevelCouriersPleaseEnum +*/ Components\ServiceLevelCouriersPleaseEnum $value = /* values here */ ``` ### `Components\ServiceLevelCorreosEspanaEnum` ```php +/** +* @var Components\ServiceLevelCorreosEspanaEnum +*/ Components\ServiceLevelCorreosEspanaEnum $value = /* values here */ ``` ### `Components\ServiceLevelColissimoEnum` ```php +/** +* @var Components\ServiceLevelColissimoEnum +*/ Components\ServiceLevelColissimoEnum $value = /* values here */ ``` ### `Components\ServiceLevelPurolatorEnum` ```php +/** +* @var Components\ServiceLevelPurolatorEnum +*/ Components\ServiceLevelPurolatorEnum $value = /* values here */ ``` ### `Components\ServiceLevelDHLExpressEnum` ```php +/** +* @var Components\ServiceLevelDHLExpressEnum +*/ Components\ServiceLevelDHLExpressEnum $value = /* values here */ ``` ### `Components\ServiceLevelDHLeCommerceEnum` ```php +/** +* @var Components\ServiceLevelDHLeCommerceEnum +*/ Components\ServiceLevelDHLeCommerceEnum $value = /* values here */ ``` ### `Components\ServiceLevelDHLGermanyEnum` ```php +/** +* @var Components\ServiceLevelDHLGermanyEnum +*/ Components\ServiceLevelDHLGermanyEnum $value = /* values here */ ``` ### `Components\ServiceLevelDPDDEEnum` ```php +/** +* @var Components\ServiceLevelDPDDEEnum +*/ Components\ServiceLevelDPDDEEnum $value = /* values here */ ``` ### `Components\ServiceLevelDPDUKEnum` ```php +/** +* @var Components\ServiceLevelDPDUKEnum +*/ Components\ServiceLevelDPDUKEnum $value = /* values here */ ``` ### `Components\ServiceLevelDeutschePostEnum` ```php +/** +* @var Components\ServiceLevelDeutschePostEnum +*/ Components\ServiceLevelDeutschePostEnum $value = /* values here */ ``` ### `Components\ServiceLevelAramexAustraliaEnum` ```php +/** +* @var Components\ServiceLevelAramexAustraliaEnum +*/ Components\ServiceLevelAramexAustraliaEnum $value = /* values here */ ``` ### `Components\ServiceLevelGlobegisticsEnum` ```php +/** +* @var Components\ServiceLevelGlobegisticsEnum +*/ Components\ServiceLevelGlobegisticsEnum $value = /* values here */ ``` ### `Components\ServiceLevelGLSUSEnum` ```php +/** +* @var Components\ServiceLevelGLSUSEnum +*/ Components\ServiceLevelGLSUSEnum $value = /* values here */ ``` ### `Components\ServiceLevelLSOEnum` ```php +/** +* @var Components\ServiceLevelLSOEnum +*/ Components\ServiceLevelLSOEnum $value = /* values here */ ``` ### `Components\ServiceLevelMondialRelayEnum` ```php +/** +* @var Components\ServiceLevelMondialRelayEnum +*/ Components\ServiceLevelMondialRelayEnum $value = /* values here */ ``` ### `Components\ServiceLevelParcelforceEnum` ```php +/** +* @var Components\ServiceLevelParcelforceEnum +*/ Components\ServiceLevelParcelforceEnum $value = /* values here */ ``` ### `Components\ServiceLevelPostItalianeEnum` ```php +/** +* @var Components\ServiceLevelPostItalianeEnum +*/ Components\ServiceLevelPostItalianeEnum $value = /* values here */ ``` ### `Components\ServiceLevelePostGlobalEnum` ```php +/** +* @var Components\ServiceLevelePostGlobalEnum +*/ Components\ServiceLevelePostGlobalEnum $value = /* values here */ ``` ### `Components\ServiceLevelRoyalMailEnum` ```php +/** +* @var Components\ServiceLevelRoyalMailEnum +*/ Components\ServiceLevelRoyalMailEnum $value = /* values here */ ``` ### `Components\ServiceLevelSendleEnum` ```php +/** +* @var Components\ServiceLevelSendleEnum +*/ Components\ServiceLevelSendleEnum $value = /* values here */ ``` ### `Components\ServiceLevelOnTracEnum` ```php +/** +* @var Components\ServiceLevelOnTracEnum +*/ Components\ServiceLevelOnTracEnum $value = /* values here */ ``` ### `Components\ServiceLevelJitsuEnum` ```php +/** +* @var Components\ServiceLevelJitsuEnum +*/ Components\ServiceLevelJitsuEnum $value = /* values here */ ``` ### `Components\ServiceLevelLasershipEnum` ```php +/** +* @var Components\ServiceLevelLasershipEnum +*/ Components\ServiceLevelLasershipEnum $value = /* values here */ ``` ### `Components\ServiceLevelEvriUKEnum` ```php +/** +* @var Components\ServiceLevelEvriUKEnum +*/ Components\ServiceLevelEvriUKEnum $value = /* values here */ ``` ### `Components\ServiceLevelUDSEnum` ```php +/** +* @var Components\ServiceLevelUDSEnum +*/ Components\ServiceLevelUDSEnum $value = /* values here */ ``` ### `Components\ServiceLevelVehoEnum` ```php +/** +* @var Components\ServiceLevelVehoEnum +*/ Components\ServiceLevelVehoEnum $value = /* values here */ ``` ### `Components\ServiceLevelSwyftEnum` ```php +/** +* @var Components\ServiceLevelSwyftEnum +*/ Components\ServiceLevelSwyftEnum $value = /* values here */ ``` diff --git a/docs/Models/Components/ShipmentCreateRequestCustomsDeclaration.md b/docs/Models/Components/ShipmentCreateRequestCustomsDeclaration.md index 11a3b57..5264d9f 100644 --- a/docs/Models/Components/ShipmentCreateRequestCustomsDeclaration.md +++ b/docs/Models/Components/ShipmentCreateRequestCustomsDeclaration.md @@ -6,12 +6,18 @@ ### `Components\CustomsDeclarationCreateRequest` ```php +/** +* @var Components\CustomsDeclarationCreateRequest +*/ Components\CustomsDeclarationCreateRequest $value = /* values here */ ``` ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` diff --git a/docs/Models/Components/TransactionRate.md b/docs/Models/Components/TransactionRate.md index 28a6a98..6f11976 100644 --- a/docs/Models/Components/TransactionRate.md +++ b/docs/Models/Components/TransactionRate.md @@ -11,12 +11,18 @@ this field will be a simplified Rate object in the Transaction model returned fr ### `Components\CoreRate` ```php +/** +* @var Components\CoreRate +*/ Components\CoreRate $value = /* values here */ ``` ### `string` ```php +/** +* @var string +*/ string $value = /* values here */ ``` diff --git a/docs/Models/Components/UserParcelTemplateCreateRequest.md b/docs/Models/Components/UserParcelTemplateCreateRequest.md index 97f8d92..9af6cab 100644 --- a/docs/Models/Components/UserParcelTemplateCreateRequest.md +++ b/docs/Models/Components/UserParcelTemplateCreateRequest.md @@ -6,12 +6,18 @@ ### `Components\UserParcelTemplateWithCarrierTemplateCreateRequest` ```php +/** +* @var Components\UserParcelTemplateWithCarrierTemplateCreateRequest +*/ Components\UserParcelTemplateWithCarrierTemplateCreateRequest $value = /* values here */ ``` ### `Components\UserParcelTemplateWithoutCarrierTemplateCreateRequest` ```php +/** +* @var Components\UserParcelTemplateWithoutCarrierTemplateCreateRequest +*/ Components\UserParcelTemplateWithoutCarrierTemplateCreateRequest $value = /* values here */ ``` diff --git a/docs/Models/Components/WebhookPayload.md b/docs/Models/Components/WebhookPayload.md index 14f9a2c..9dae38a 100644 --- a/docs/Models/Components/WebhookPayload.md +++ b/docs/Models/Components/WebhookPayload.md @@ -6,30 +6,45 @@ ### `Components\WebhookPayloadTrack` ```php +/** +* @var Components\WebhookPayloadTrack +*/ Components\WebhookPayloadTrack $value = /* values here */ ``` ### `Components\WebhookPayloadBatch` ```php +/** +* @var Components\WebhookPayloadBatch +*/ Components\WebhookPayloadBatch $value = /* values here */ ``` ### `Components\WebhookPayloadBatch` ```php +/** +* @var Components\WebhookPayloadBatch +*/ Components\WebhookPayloadBatch $value = /* values here */ ``` ### `Components\WebhookPayloadTransaction` ```php +/** +* @var Components\WebhookPayloadTransaction +*/ Components\WebhookPayloadTransaction $value = /* values here */ ``` ### `Components\WebhookPayloadTransaction` ```php +/** +* @var Components\WebhookPayloadTransaction +*/ Components\WebhookPayloadTransaction $value = /* values here */ ``` diff --git a/docs/Models/Operations/CreateParcelRequestBody.md b/docs/Models/Operations/CreateParcelRequestBody.md index 825b4a4..4af8ee2 100644 --- a/docs/Models/Operations/CreateParcelRequestBody.md +++ b/docs/Models/Operations/CreateParcelRequestBody.md @@ -8,12 +8,18 @@ Parcel details. ### `Components\ParcelCreateRequest` ```php +/** +* @var Components\ParcelCreateRequest +*/ Components\ParcelCreateRequest $value = /* values here */ ``` ### `Components\ParcelCreateFromTemplateRequest` ```php +/** +* @var Components\ParcelCreateFromTemplateRequest +*/ Components\ParcelCreateFromTemplateRequest $value = /* values here */ ``` diff --git a/docs/Models/Operations/CreateTransactionRequestBody.md b/docs/Models/Operations/CreateTransactionRequestBody.md index 09a0706..c5e5e99 100644 --- a/docs/Models/Operations/CreateTransactionRequestBody.md +++ b/docs/Models/Operations/CreateTransactionRequestBody.md @@ -8,12 +8,18 @@ Examples. ### `Components\TransactionCreateRequest` ```php +/** +* @var Components\TransactionCreateRequest +*/ Components\TransactionCreateRequest $value = /* values here */ ``` ### `Components\InstantTransactionCreateRequest` ```php +/** +* @var Components\InstantTransactionCreateRequest +*/ Components\InstantTransactionCreateRequest $value = /* values here */ ``` diff --git a/docs/Models/Operations/RegisterCarrierAccountRequestBody.md b/docs/Models/Operations/RegisterCarrierAccountRequestBody.md index 7c8c5a7..e4f8e0e 100644 --- a/docs/Models/Operations/RegisterCarrierAccountRequestBody.md +++ b/docs/Models/Operations/RegisterCarrierAccountRequestBody.md @@ -8,90 +8,135 @@ Examples. ### `Components\CarrierAccountCanadaPostCreateRequest` ```php +/** +* @var Components\CarrierAccountCanadaPostCreateRequest +*/ Components\CarrierAccountCanadaPostCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountChronopostCreateRequest` ```php +/** +* @var Components\CarrierAccountChronopostCreateRequest +*/ Components\CarrierAccountChronopostCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountColissimoCreateRequest` ```php +/** +* @var Components\CarrierAccountColissimoCreateRequest +*/ Components\CarrierAccountColissimoCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountCorreosCreateRequest` ```php +/** +* @var Components\CarrierAccountCorreosCreateRequest +*/ Components\CarrierAccountCorreosCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountDeutschePostCreateRequest` ```php +/** +* @var Components\CarrierAccountDeutschePostCreateRequest +*/ Components\CarrierAccountDeutschePostCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountDHLExpressCreateRequest` ```php +/** +* @var Components\CarrierAccountDHLExpressCreateRequest +*/ Components\CarrierAccountDHLExpressCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountDpdDeCreateRequest` ```php +/** +* @var Components\CarrierAccountDpdDeCreateRequest +*/ Components\CarrierAccountDpdDeCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountDPDUKCreateRequest` ```php +/** +* @var Components\CarrierAccountDPDUKCreateRequest +*/ Components\CarrierAccountDPDUKCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountFedExCreateRequest` ```php +/** +* @var Components\CarrierAccountFedExCreateRequest +*/ Components\CarrierAccountFedExCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountHermesUKCreateRequest` ```php +/** +* @var Components\CarrierAccountHermesUKCreateRequest +*/ Components\CarrierAccountHermesUKCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountMondialRelayCreateRequest` ```php +/** +* @var Components\CarrierAccountMondialRelayCreateRequest +*/ Components\CarrierAccountMondialRelayCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountPosteItalianeCreateRequest` ```php +/** +* @var Components\CarrierAccountPosteItalianeCreateRequest +*/ Components\CarrierAccountPosteItalianeCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountUPSCreateRequest` ```php +/** +* @var Components\CarrierAccountUPSCreateRequest +*/ Components\CarrierAccountUPSCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountUSPSCreateRequest` ```php +/** +* @var Components\CarrierAccountUSPSCreateRequest +*/ Components\CarrierAccountUSPSCreateRequest $value = /* values here */ ``` ### `Components\CarrierAccountSendleCreateRequest` ```php +/** +* @var Components\CarrierAccountSendleCreateRequest +*/ Components\CarrierAccountSendleCreateRequest $value = /* values here */ ``` diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index 92f5d40..c42bbfa 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -27,11 +27,11 @@ class SDKConfiguration public string $openapiDocVersion = '2018-02-08'; - public string $sdkVersion = '3.0.0-alpha.1'; + public string $sdkVersion = '3.0.0-alpha'; - public string $genVersion = '2.457.9'; + public string $genVersion = '2.460.1'; - public string $userAgent = 'speakeasy-sdk/php 3.0.0-alpha.1 2.457.9 2018-02-08 shippo/shippo-php'; + public string $userAgent = 'speakeasy-sdk/php 3.0.0-alpha 2.460.1 2018-02-08 shippo/shippo-php'; /** @var array>> */ public ?array $globals = [ 'parameters' => [], diff --git a/tests/Shippo/API/AddressTest.php b/tests/Shippo/API/AddressTest.php index 0724b8d..34cc96d 100644 --- a/tests/Shippo/API/AddressTest.php +++ b/tests/Shippo/API/AddressTest.php @@ -5,6 +5,7 @@ use PHPUnit\Framework\TestCase; use Shippo\API\Models\Components\Address; +use Shippo\API\Models\Components\AddressCreateRequest; use Shippo\API\Models\Components\AddressPaginatedList; final class AddressTest extends TestCase @@ -26,4 +27,37 @@ public function testListAllAddresses() $this->assertNotNull($response->results); $this->assertInstanceOf(AddressPaginatedList::class, $response); } + + public function testCreateAddress() + { + $token = "ShippoToken " . getenv('SHIPPO_TOKEN'); + $sdk = \Shippo\API\ShippoSDK::builder() + ->setSecurity($token) + ->build(); + + $addressCreateRequest = new AddressCreateRequest( + name: 'Shwan Ippotle', + company: 'Shippo', + street1: '215 Clayton St.', + street3: '', + streetNo: '', + city: 'San Francisco', + state: 'CA', + zip: '94117', + country: 'US', + phone: '+1 555 341 9393', + email: 'shippotle@shippo.com', + isResidential: true, + metadata: 'Customer ID 123456', + validate: true, + ); + + $response = $sdk->addresses->create( + addressCreateRequest: $addressCreateRequest, + shippoApiVersion: '2018-02-08' + ); + + $this->assertNotNull($response); + $this->assertInstanceOf(Address::class, $response); + } } \ No newline at end of file diff --git a/tests/Shippo/API/PurchaseLabelTest.php b/tests/Shippo/API/PurchaseLabelTest.php index 8387cc7..902b9bc 100644 --- a/tests/Shippo/API/PurchaseLabelTest.php +++ b/tests/Shippo/API/PurchaseLabelTest.php @@ -78,7 +78,7 @@ public function testPurchaseLabel() ); //Throws 'API error occurred' error - $shipmentResponse = $sdk->shipments->create($shipmentCreateRequest); + $shipmentResponse = $sdk->shipments->create($shipmentCreateRequest, "2018-02-08"); //var_dump($shipmentResponse); diff --git a/tests/Shippo/API/ShipmentTest.php b/tests/Shippo/API/ShipmentTest.php new file mode 100644 index 0000000..d96855f --- /dev/null +++ b/tests/Shippo/API/ShipmentTest.php @@ -0,0 +1,94 @@ +setSecurity($token) + ->build(); + + $response = $sdk->shipments->list( + request: new ListShipmentsRequest() + ); + + $this->assertNotNull($response->results); + $this->assertInstanceOf(ShipmentPaginatedList::class, $response); + } + + public function testCreateShipment() + { + $token = "ShippoToken " . getenv('SHIPPO_TOKEN'); + $sdk = \Shippo\API\ShippoSDK::builder() + ->setSecurity($token) + ->build(); + + $shipmentCreateRequest = new ShipmentCreateRequest( + addressFrom: new AddressCreateRequest( + name: 'Shwan Ippotle', + company: 'Shippo', + street1: '215 Clayton St.', + street3: '', + streetNo: '', + city: 'San Francisco', + state: 'CA', + zip: '94117', + country: 'US', + phone: '+1 555 341 9393', + email: 'shippotle@shippo.com', + isResidential: true, + metadata: 'Customer ID 123456', + validate: true, + ), + addressTo: new AddressCreateRequest( + name: 'Shwan Ippotle', + company: 'Shippo', + street1: '215 Clayton St.', + street3: '', + streetNo: '', + city: 'San Francisco', + state: 'CA', + zip: '94117', + country: 'US', + phone: '+1 555 341 9393', + email: 'shippotle@shippo.com', + isResidential: true, + metadata: 'Customer ID 123456', + validate: true, + ), + parcels: [ + new ParcelCreateRequest( + length: '5', + width: '5', + height: '5', + distanceUnit: DistanceUnitEnum::Cm, + weight: '2', + massUnit: WeightUnitEnum::Lb, + metadata: 'Wool Box1' + ) + ] + ); + + $response = $sdk->shipments->create( + shipmentCreateRequest: $shipmentCreateRequest, + shippoApiVersion: '2018-02-08' + ); + + var_dump($response); + } +}