diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3c32b02..f7c0d09 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,21 +1,21 @@ lockVersion: 2.0.0 id: 24fc7546-e445-46cb-91d2-49cbb44a86ac management: - docChecksum: 7a0e076d22d5d3bda37e85081e99e829 + docChecksum: 2edac3552b0c3728ec7bf25184e0a6c1 docVersion: "2018-02-08" - speakeasyVersion: 1.327.0 - generationVersion: 2.359.6 - releaseVersion: 5.0.0-beta.4 - configChecksum: dc08e7216cad113f88802add364e4923 + speakeasyVersion: 1.401.2 + generationVersion: 2.421.3 + releaseVersion: 5.0.0-beta.5 + configChecksum: f2f75205ee3a14863c66c9e45ed16dcb repoURL: https://github.com/goshippo/shippo-csharp-sdk.git published: true features: csharp: additionalDependencies: 0.1.0 constsAndDefaults: 0.0.1 - core: 3.9.8 - flattening: 2.81.2 - globalSecurity: 2.83.4 + core: 3.10.0 + flattening: 2.81.3 + globalSecurity: 2.83.6 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.82.3 @@ -26,741 +26,1423 @@ features: nullables: 0.1.0 responseFormat: 0.0.4 sdkHooks: 0.1.0 - unions: 0.1.1 + unions: 0.2.1 webhooks: 1.0.0 generatedFiles: + - .gitattributes + - CONTRIBUTING.md + - NUGET.md - Shippo/Addresses.cs - Shippo/Batches.cs - Shippo/CarrierAccounts.cs + - Shippo/CarrierParcelTemplates.cs - Shippo/CustomsDeclarations.cs - Shippo/CustomsItems.cs - - Shippo/RatesAtCheckout.cs + - Shippo/Hooks/HookTypes.cs + - Shippo/Hooks/SDKHooks.cs - Shippo/Manifests.cs - - Shippo/Orders.cs - - Shippo/CarrierParcelTemplates.cs - - Shippo/Parcels.cs - - Shippo/Pickups.cs - - Shippo/Rates.cs - - Shippo/Refunds.cs - - Shippo/ServiceGroups.cs - - Shippo/Shipments.cs - - Shippo/TrackingStatus.cs - - Shippo/Transactions.cs - - Shippo/UserParcelTemplates.cs - - Shippo/ShippoAccounts.cs - - Shippo/Webhooks.cs - - Shippo/ShippoSDK.cs - - global.json - - Shippo/Utils/AnyDeserializer.cs - - Shippo/Utils/BigIntStrConverter.cs - - Shippo/Utils/DecimalStrConverter.cs - - Shippo/Utils/EnumConverter.cs - - Shippo/Utils/FlexibleObjectDeserializer.cs - - Shippo/Utils/HeaderSerializer.cs - - Shippo/Utils/IsoDateTimeSerializer.cs - - Shippo/Utils/RequestBodySerializer.cs - - Shippo/Utils/ResponseBodyDeserializer.cs - - Shippo/Utils/Retries/BackoffStrategy.cs - - Shippo/Utils/Retries/Retries.cs - - Shippo/Utils/Retries/RetryConfig.cs - - Shippo/Utils/SecurityMetadata.cs - - Shippo/Utils/SpeakeasyHttpClient.cs - - Shippo/Utils/SpeakeasyMetadata.cs - - Shippo/Utils/URLBuilder.cs - - Shippo/Utils/Utilities.cs - - Shippo/Shippo.csproj - - Shippo/Models/Errors/SDKException.cs - - Shippo/Models/Components/AddressPaginatedList.cs - - Shippo/Models/Components/Latitude.cs - - Shippo/Models/Components/Longitude.cs - Shippo/Models/Components/Address.cs - - Shippo/Models/Components/AddressValidationResults.cs - - Shippo/Models/Components/AddressValidationResultsMessage.cs + - Shippo/Models/Components/AddressCompleteCreateRequest.cs - Shippo/Models/Components/AddressCreateRequest.cs - - Shippo/Models/Components/ObjectResults.cs - - Shippo/Models/Components/BatchStatus.cs - - Shippo/Models/Components/Batch.cs - - Shippo/Models/Components/BatchShipmentPaginatedList.cs - - Shippo/Models/Components/Status.cs - - Shippo/Models/Components/BatchShipment.cs - - Shippo/Models/Components/LabelFileTypeEnum.cs - - Shippo/Models/Components/BatchCreateRequest.cs - - Shippo/Models/Components/BatchShipmentCreateRequest.cs - Shippo/Models/Components/AddressFrom.cs + - Shippo/Models/Components/AddressImporter.cs + - Shippo/Models/Components/AddressPaginatedList.cs - Shippo/Models/Components/AddressReturn.cs - Shippo/Models/Components/AddressTo.cs - - Shippo/Models/Components/ShipmentCreateRequestCustomsDeclaration.cs - - Shippo/Models/Components/Parcels.cs - - Shippo/Models/Components/ShipmentCreateRequest.cs - - Shippo/Models/Components/ParcelCreateRequest.cs - - Shippo/Models/Components/DistanceUnitEnum.cs - - Shippo/Models/Components/WeightUnitEnum.cs - - Shippo/Models/Components/ParcelExtra.cs - - Shippo/Models/Components/ParcelInsuranceProvider.cs - - Shippo/Models/Components/ParcelInsurance.cs - - Shippo/Models/Components/PaymentMethod.cs - - Shippo/Models/Components/Cod.cs - - Shippo/Models/Components/ParcelCreateFromTemplateRequest.cs - - Shippo/Models/Components/AramexAustraliaParcelTemplate.cs - - Shippo/Models/Components/CouriersPleaseParcelTemplate.cs - - Shippo/Models/Components/DPDUKParcelTemplate.cs - - Shippo/Models/Components/DHLECommerceParcelTemplate.cs - - Shippo/Models/Components/USPSParcelTemplate.cs - - Shippo/Models/Components/UPSParcelTemplate.cs - - Shippo/Models/Components/FedExParcelTemplate.cs - - Shippo/Models/Components/ParcelTemplateEnumSet.cs - - Shippo/Models/Components/CustomsDeclarationCreateRequest.cs - - Shippo/Models/Components/CustomsDeclarationNonDeliveryOptionEnum.cs - - Shippo/Models/Components/CustomsItemCreateRequest.cs - - Shippo/Models/Components/CustomsDeclarationIncotermEnum.cs - - Shippo/Models/Components/CustomsDeclarationEelPfcEnum.cs - - Shippo/Models/Components/CustomsDeclarationContentsTypeEnum.cs - - Shippo/Models/Components/AddressImporter.cs - - Shippo/Models/Components/CustomsExporterIdentification.cs - - Shippo/Models/Components/CustomsTaxIdentificationType.cs - - Shippo/Models/Components/CustomsTaxIdentification.cs - - Shippo/Models/Components/CustomsDeclarationB13AFilingOptionEnum.cs - - Shippo/Models/Components/AncillaryEndorsement.cs - - Shippo/Models/Components/DangerousGoodsCode.cs - - Shippo/Models/Components/PreferredDeliveryTimeframe.cs - - Shippo/Models/Components/ReturnServiceType.cs - - Shippo/Models/Components/SignatureConfirmation.cs - - Shippo/Models/Components/ShipmentExtra.cs - - Shippo/Models/Components/UPSReferenceFields.cs - - Shippo/Models/Components/RmaNumber.cs - - Shippo/Models/Components/ShipmentExtraReturnServiceTypeUPSEnum.cs - - Shippo/Models/Components/ShipmentExtraReturnServiceTypeLasershipEnum.cs - - Shippo/Models/Components/PoNumber.cs - - Shippo/Models/Components/ShipmentExtraLasershipAttributesEnum.cs - - Shippo/Models/Components/InvoiceNumber.cs - - Shippo/Models/Components/Provider.cs - - Shippo/Models/Components/Insurance.cs - - Shippo/Models/Components/DryIce.cs - - Shippo/Models/Components/DepartmentNumber.cs - - Shippo/Models/Components/DangerousGoodsObject.cs - - Shippo/Models/Components/DangerousGoodsLithiumBatteries.cs - - Shippo/Models/Components/DangerousGoodsBiologicalMaterial.cs - - Shippo/Models/Components/CustomerReference.cs - - Shippo/Models/Components/Type.cs - - Shippo/Models/Components/Billing.cs - - Shippo/Models/Components/RecipientType.cs + - Shippo/Models/Components/AddressValidationResults.cs + - Shippo/Models/Components/AddressValidationResultsMessage.cs + - Shippo/Models/Components/AddressValidationResultsMessageCodeEnum.cs + - Shippo/Models/Components/AddressValidationResultsMessageSourceEnum.cs - Shippo/Models/Components/Alcohol.cs - - Shippo/Models/Components/CarrierAccountPaginatedList.cs - - Shippo/Models/Components/Parameters.cs - - Shippo/Models/Components/CarrierAccountWithExtraInfoType.cs - - Shippo/Models/Components/CarrierAccountWithExtraInfoStatus.cs + - Shippo/Models/Components/AncillaryEndorsement.cs + - Shippo/Models/Components/Attributes.cs - Shippo/Models/Components/Authentication.cs - - Shippo/Models/Components/ObjectInfo.cs - - Shippo/Models/Components/CarrierAccountWithExtraInfo.cs - - Shippo/Models/Components/CarrierAccountServiceLevel.cs - - Shippo/Models/Components/FedExConnectExistingOwnAccountParameters.cs - - Shippo/Models/Components/UPSConnectExistingOwnAccountParameters.cs - - Shippo/Models/Components/CarriersEnum.cs - - Shippo/Models/Components/CarrierAccountParameters.cs + - Shippo/Models/Components/Batch.cs + - Shippo/Models/Components/BatchCreateRequest.cs + - Shippo/Models/Components/BatchShipment.cs + - Shippo/Models/Components/BatchShipmentCreateRequest.cs + - Shippo/Models/Components/BatchShipmentPaginatedList.cs + - Shippo/Models/Components/BatchStatus.cs + - Shippo/Models/Components/Billing.cs + - Shippo/Models/Components/BuildingLocationType.cs + - Shippo/Models/Components/BuildingType.cs - Shippo/Models/Components/CarrierAccount.cs - - Shippo/Models/Components/ConnectExistingOwnAccountRequestParameters.cs - - Shippo/Models/Components/ConnectExistingOwnAccountRequest.cs - - Shippo/Models/Components/CarrierAccountBaseParameters.cs - Shippo/Models/Components/CarrierAccountBase.cs - - Shippo/Models/Components/CarrierAccountCanadaPostCreateRequest.cs + - Shippo/Models/Components/CarrierAccountBaseParameters.cs - Shippo/Models/Components/CarrierAccountCanadaPostCreateParameters.cs - - Shippo/Models/Components/CarrierAccountChronopostCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountCanadaPostCreateRequest.cs - Shippo/Models/Components/CarrierAccountChronopostCreateRequest.cs - - Shippo/Models/Components/CarrierAccountColissimoCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountChronopostCreateRequestParameters.cs - Shippo/Models/Components/CarrierAccountColissimoCreateRequest.cs - - Shippo/Models/Components/CarrierAccountCorreosCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountColissimoCreateRequestParameters.cs - Shippo/Models/Components/CarrierAccountCorreosCreateRequest.cs - - Shippo/Models/Components/CarrierAccountDeutschePostCreateRequestParameters.cs - - Shippo/Models/Components/CarrierAccountDeutschePostCreateRequest.cs + - Shippo/Models/Components/CarrierAccountCorreosCreateRequestParameters.cs - Shippo/Models/Components/CarrierAccountDHLExpressCreateRequest.cs - Shippo/Models/Components/CarrierAccountDHLExpressCreateRequestParameters.cs - - Shippo/Models/Components/CarrierAccountDpdDeCreateRequestParameters.cs - - Shippo/Models/Components/CarrierAccountDpdDeCreateRequest.cs - - Shippo/Models/Components/CarrierAccountDPDUKCreateRequestParameters.cs - Shippo/Models/Components/CarrierAccountDPDUKCreateRequest.cs - - Shippo/Models/Components/CarrierAccountFedExCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountDPDUKCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountDeutschePostCreateRequest.cs + - Shippo/Models/Components/CarrierAccountDeutschePostCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountDpdDeCreateRequest.cs + - Shippo/Models/Components/CarrierAccountDpdDeCreateRequestParameters.cs - Shippo/Models/Components/CarrierAccountFedExCreateRequest.cs - - Shippo/Models/Components/CarrierAccountHermesUKCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountFedExCreateRequestParameters.cs - Shippo/Models/Components/CarrierAccountHermesUKCreateRequest.cs - - Shippo/Models/Components/CarrierAccountMondialRelayCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountHermesUKCreateRequestParameters.cs - Shippo/Models/Components/CarrierAccountMondialRelayCreateRequest.cs - - Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountMondialRelayCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountPaginatedList.cs + - Shippo/Models/Components/CarrierAccountParameters.cs - Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequest.cs + - Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountRegistrationStatus.cs + - Shippo/Models/Components/CarrierAccountSendleCreateRequest.cs + - Shippo/Models/Components/CarrierAccountSendleCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountServiceLevel.cs - Shippo/Models/Components/CarrierAccountUPSCreateRequest.cs - Shippo/Models/Components/CarrierAccountUPSCreateRequestParameters.cs - - Shippo/Models/Components/CarrierAccountUSPSCreateRequestParameters.cs - Shippo/Models/Components/CarrierAccountUSPSCreateRequest.cs - - Shippo/Models/Components/CarrierAccountRegistrationStatus.cs - - Shippo/Models/Components/CustomsDeclarationPaginatedList.cs + - Shippo/Models/Components/CarrierAccountUSPSCreateRequestParameters.cs + - Shippo/Models/Components/CarrierAccountWithExtraInfo.cs + - Shippo/Models/Components/CarrierAccountWithExtraInfoStatus.cs + - Shippo/Models/Components/CarrierAccountWithExtraInfoType.cs + - Shippo/Models/Components/CarrierParcelTemplate.cs + - Shippo/Models/Components/CarrierParcelTemplateList.cs + - Shippo/Models/Components/CarriersEnum.cs + - Shippo/Models/Components/Cod.cs + - Shippo/Models/Components/ConnectExistingOwnAccountRequest.cs + - Shippo/Models/Components/ConnectExistingOwnAccountRequestParameters.cs + - Shippo/Models/Components/CoreRate.cs + - Shippo/Models/Components/CreatedBy.cs + - Shippo/Models/Components/CustomerReference.cs - Shippo/Models/Components/CustomsDeclaration.cs - - Shippo/Models/Components/ObjectStateEnum.cs + - Shippo/Models/Components/CustomsDeclarationAddress.cs + - Shippo/Models/Components/CustomsDeclarationB13AFilingOptionEnum.cs + - Shippo/Models/Components/CustomsDeclarationContentsTypeEnum.cs + - Shippo/Models/Components/CustomsDeclarationCreateRequest.cs + - Shippo/Models/Components/CustomsDeclarationCreateRequestAddress.cs + - Shippo/Models/Components/CustomsDeclarationCreateRequestType.cs + - Shippo/Models/Components/CustomsDeclarationDutiesPayor.cs + - Shippo/Models/Components/CustomsDeclarationEelPfcEnum.cs + - Shippo/Models/Components/CustomsDeclarationIncotermEnum.cs + - Shippo/Models/Components/CustomsDeclarationNonDeliveryOptionEnum.cs + - Shippo/Models/Components/CustomsDeclarationPaginatedList.cs + - Shippo/Models/Components/CustomsDeclarationType.cs + - Shippo/Models/Components/CustomsExporterIdentification.cs - Shippo/Models/Components/CustomsInvoicedCharges.cs - - Shippo/Models/Components/CustomsItemPaginatedList.cs - Shippo/Models/Components/CustomsItem.cs - - Shippo/Models/Components/LiveRatePaginatedList.cs + - Shippo/Models/Components/CustomsItemCreateRequest.cs + - Shippo/Models/Components/CustomsItemPaginatedList.cs + - Shippo/Models/Components/CustomsTaxIdentification.cs + - Shippo/Models/Components/CustomsTaxIdentificationType.cs + - Shippo/Models/Components/DangerousGoodsBiologicalMaterial.cs + - Shippo/Models/Components/DangerousGoodsCode.cs + - Shippo/Models/Components/DangerousGoodsLithiumBatteries.cs + - Shippo/Models/Components/DangerousGoodsObject.cs + - Shippo/Models/Components/DefaultParcelTemplate.cs + - Shippo/Models/Components/DefaultParcelTemplateUpdateRequest.cs + - Shippo/Models/Components/DepartmentNumber.cs + - Shippo/Models/Components/DistanceUnitEnum.cs + - Shippo/Models/Components/DryIce.cs + - Shippo/Models/Components/DutiesPayor.cs + - Shippo/Models/Components/FedExConnectExistingOwnAccountParameters.cs + - Shippo/Models/Components/InstantTransactionCreateRequest.cs + - Shippo/Models/Components/Insurance.cs + - Shippo/Models/Components/InvoiceNumber.cs + - Shippo/Models/Components/LabelFileType.cs + - Shippo/Models/Components/LabelFileTypeEnum.cs + - Shippo/Models/Components/Latitude.cs + - Shippo/Models/Components/LineItem.cs + - Shippo/Models/Components/LineItemBase.cs - Shippo/Models/Components/LiveRate.cs + - Shippo/Models/Components/LiveRateCreateRequest.cs - Shippo/Models/Components/LiveRateCreateRequestAddressFrom.cs - Shippo/Models/Components/LiveRateCreateRequestAddressTo.cs - Shippo/Models/Components/LiveRateCreateRequestParcel.cs - - Shippo/Models/Components/LiveRateCreateRequest.cs - - Shippo/Models/Components/ObjectState.cs - - Shippo/Models/Components/Parcel.cs - - Shippo/Models/Components/LineItem.cs - - Shippo/Models/Components/AddressCompleteCreateRequest.cs - - Shippo/Models/Components/DefaultParcelTemplate.cs - - Shippo/Models/Components/UserParcelTemplate.cs - - Shippo/Models/Components/CarrierParcelTemplate.cs - - Shippo/Models/Components/DefaultParcelTemplateUpdateRequest.cs - - Shippo/Models/Components/ManifestPaginatedList.cs - - Shippo/Models/Components/ManifestStatus.cs + - Shippo/Models/Components/LiveRatePaginatedList.cs + - Shippo/Models/Components/Location.cs + - Shippo/Models/Components/Longitude.cs - Shippo/Models/Components/Manifest.cs - - Shippo/Models/Components/ManifestCreateRequestAddressFrom.cs - Shippo/Models/Components/ManifestCreateRequest.cs - - Shippo/Models/Components/OrderPaginatedList.cs + - Shippo/Models/Components/ManifestCreateRequestAddressFrom.cs + - Shippo/Models/Components/ManifestPaginatedList.cs + - Shippo/Models/Components/ManifestStatus.cs + - Shippo/Models/Components/ObjectInfo.cs + - Shippo/Models/Components/ObjectResults.cs + - Shippo/Models/Components/ObjectState.cs + - Shippo/Models/Components/ObjectStateEnum.cs - Shippo/Models/Components/Order.cs + - Shippo/Models/Components/OrderCreateRequest.cs + - Shippo/Models/Components/OrderPaginatedList.cs - Shippo/Models/Components/OrderShopAppEnum.cs - Shippo/Models/Components/OrderStatusEnum.cs - - Shippo/Models/Components/OrderCreateRequest.cs - - Shippo/Models/Components/LineItemBase.cs - - Shippo/Models/Components/CarrierParcelTemplateList.cs + - Shippo/Models/Components/Parameters.cs + - Shippo/Models/Components/Parcel.cs + - Shippo/Models/Components/ParcelCreateFromTemplateRequest.cs + - Shippo/Models/Components/ParcelCreateRequest.cs + - Shippo/Models/Components/ParcelExtra.cs + - Shippo/Models/Components/ParcelInsurance.cs + - Shippo/Models/Components/ParcelInsuranceProvider.cs - Shippo/Models/Components/ParcelPaginatedList.cs - - Shippo/Models/Components/PickupStatus.cs + - Shippo/Models/Components/ParcelTemplateAramexAustraliaEnum.cs + - Shippo/Models/Components/ParcelTemplateCouriersPleaseEnum.cs + - Shippo/Models/Components/ParcelTemplateDHLeCommerceEnum.cs + - Shippo/Models/Components/ParcelTemplateDPDUKEnum.cs + - Shippo/Models/Components/ParcelTemplateEnumSet.cs + - Shippo/Models/Components/ParcelTemplateFedExEnum.cs + - Shippo/Models/Components/ParcelTemplateUPSEnum.cs + - Shippo/Models/Components/ParcelTemplateUSPSEnum.cs + - Shippo/Models/Components/Parcels.cs + - Shippo/Models/Components/PaymentMethod.cs - Shippo/Models/Components/Pickup.cs - - Shippo/Models/Components/BuildingLocationType.cs - - Shippo/Models/Components/BuildingType.cs - - Shippo/Models/Components/Location.cs - Shippo/Models/Components/PickupBase.cs - - Shippo/Models/Components/Attributes.cs + - Shippo/Models/Components/PickupStatus.cs + - Shippo/Models/Components/PoNumber.cs + - Shippo/Models/Components/PreferredDeliveryTimeframe.cs + - Shippo/Models/Components/Provider.cs - Shippo/Models/Components/Rate.cs - - Shippo/Models/Components/ParentServicelevel.cs - - Shippo/Models/Components/ServiceLevelWithParent.cs - - Shippo/Models/Components/ResponseMessage.cs - Shippo/Models/Components/RatePaginatedList.cs - - Shippo/Models/Components/RefundStatus.cs + - Shippo/Models/Components/RecipientType.cs - Shippo/Models/Components/Refund.cs - - Shippo/Models/Components/RefundRequestBody.cs - Shippo/Models/Components/RefundPaginatedList.cs + - Shippo/Models/Components/RefundRequestBody.cs + - Shippo/Models/Components/RefundStatus.cs + - Shippo/Models/Components/ResponseMessage.cs + - Shippo/Models/Components/ReturnServiceType.cs + - Shippo/Models/Components/RmaNumber.cs + - Shippo/Models/Components/Security.cs - Shippo/Models/Components/ServiceGroup.cs - - Shippo/Models/Components/ServiceGroupTypeEnum.cs - - Shippo/Models/Components/ServiceGroupCreateRequest.cs - Shippo/Models/Components/ServiceGroupAccountAndServiceLevel.cs + - Shippo/Models/Components/ServiceGroupCreateRequest.cs + - Shippo/Models/Components/ServiceGroupTypeEnum.cs - Shippo/Models/Components/ServiceGroupUpdateRequest.cs + - Shippo/Models/Components/ServiceLevel.cs + - Shippo/Models/Components/ServiceLevelAPCPostalEnum.cs + - Shippo/Models/Components/ServiceLevelAPGEnum.cs + - Shippo/Models/Components/ServiceLevelAirterraEnum.cs + - Shippo/Models/Components/ServiceLevelAramexAustraliaEnum.cs + - Shippo/Models/Components/ServiceLevelAsendiaEnum.cs + - Shippo/Models/Components/ServiceLevelAustraliaPostEnum.cs + - Shippo/Models/Components/ServiceLevelBetterTrucksEnum.cs + - Shippo/Models/Components/ServiceLevelCDLEnum.cs + - Shippo/Models/Components/ServiceLevelCanadaPostEnum.cs + - Shippo/Models/Components/ServiceLevelChronopostEnum.cs + - Shippo/Models/Components/ServiceLevelColissimoEnum.cs + - Shippo/Models/Components/ServiceLevelCorreosEspanaEnum.cs + - Shippo/Models/Components/ServiceLevelCouriersPleaseEnum.cs + - Shippo/Models/Components/ServiceLevelDHLExpressEnum.cs + - Shippo/Models/Components/ServiceLevelDHLGermanyEnum.cs + - Shippo/Models/Components/ServiceLevelDHLeCommerceEnum.cs + - Shippo/Models/Components/ServiceLevelDPDDEEnum.cs + - Shippo/Models/Components/ServiceLevelDPDUKEnum.cs + - Shippo/Models/Components/ServiceLevelDeutschePostEnum.cs + - Shippo/Models/Components/ServiceLevelEnumSet.cs + - Shippo/Models/Components/ServiceLevelEvriUKEnum.cs + - Shippo/Models/Components/ServiceLevelFedExEnum.cs + - Shippo/Models/Components/ServiceLevelGLSUSEnum.cs + - Shippo/Models/Components/ServiceLevelGlobegisticsEnum.cs + - Shippo/Models/Components/ServiceLevelJitsuEnum.cs + - Shippo/Models/Components/ServiceLevelLSOEnum.cs + - Shippo/Models/Components/ServiceLevelLasershipEnum.cs + - Shippo/Models/Components/ServiceLevelMondialRelayEnum.cs + - Shippo/Models/Components/ServiceLevelOnTracEnum.cs + - Shippo/Models/Components/ServiceLevelParcelforceEnum.cs + - Shippo/Models/Components/ServiceLevelPostItalianeEnum.cs + - Shippo/Models/Components/ServiceLevelPurolatorEnum.cs + - Shippo/Models/Components/ServiceLevelRoyalMailEnum.cs + - Shippo/Models/Components/ServiceLevelSendleEnum.cs + - Shippo/Models/Components/ServiceLevelSwyftEnum.cs + - Shippo/Models/Components/ServiceLevelUDSEnum.cs + - Shippo/Models/Components/ServiceLevelUPSEnum.cs + - Shippo/Models/Components/ServiceLevelUSPSEnum.cs + - Shippo/Models/Components/ServiceLevelVehoEnum.cs + - Shippo/Models/Components/ServiceLevelWithParent.cs + - Shippo/Models/Components/ServiceLevelePostGlobalEnum.cs + - Shippo/Models/Components/Shipment.cs + - Shippo/Models/Components/ShipmentCreateRequest.cs + - Shippo/Models/Components/ShipmentCreateRequestCustomsDeclaration.cs + - Shippo/Models/Components/ShipmentExtra.cs + - Shippo/Models/Components/ShipmentExtraLasershipAttributesEnum.cs + - Shippo/Models/Components/ShipmentExtraReturnServiceTypeLasershipEnum.cs + - Shippo/Models/Components/ShipmentExtraReturnServiceTypeUPSEnum.cs - Shippo/Models/Components/ShipmentPaginatedList.cs - Shippo/Models/Components/ShipmentStatus.cs - - Shippo/Models/Components/Shipment.cs + - Shippo/Models/Components/ShippoAccount.cs + - Shippo/Models/Components/ShippoAccountPaginatedList.cs + - Shippo/Models/Components/ShippoAccountUpdateRequest.cs + - Shippo/Models/Components/SignatureConfirmation.cs + - Shippo/Models/Components/Status.cs - Shippo/Models/Components/Track.cs - Shippo/Models/Components/TrackingStatus.cs - - Shippo/Models/Components/TrackingStatusSubstatus.cs - Shippo/Models/Components/TrackingStatusEnum.cs - Shippo/Models/Components/TrackingStatusLocationBase.cs + - Shippo/Models/Components/TrackingStatusSubstatus.cs - Shippo/Models/Components/TracksRequest.cs + - Shippo/Models/Components/Transaction.cs + - Shippo/Models/Components/TransactionCreateRequest.cs - Shippo/Models/Components/TransactionPaginatedList.cs - - Shippo/Models/Components/CreatedBy.cs - Shippo/Models/Components/TransactionRate.cs - - Shippo/Models/Components/Transaction.cs - Shippo/Models/Components/TransactionStatusEnum.cs - - Shippo/Models/Components/CoreRate.cs - - Shippo/Models/Components/TransactionCreateRequest.cs - - Shippo/Models/Components/LabelFileType.cs - - Shippo/Models/Components/InstantTransactionCreateRequest.cs - - Shippo/Models/Components/UserParcelTemplateList.cs + - Shippo/Models/Components/Type.cs + - Shippo/Models/Components/UPSConnectExistingOwnAccountParameters.cs + - Shippo/Models/Components/UPSReferenceFields.cs + - Shippo/Models/Components/UserParcelTemplate.cs - Shippo/Models/Components/UserParcelTemplateCreateRequest.cs + - Shippo/Models/Components/UserParcelTemplateList.cs + - Shippo/Models/Components/UserParcelTemplateUpdateRequest.cs - Shippo/Models/Components/UserParcelTemplateWithCarrierTemplateCreateRequest.cs - Shippo/Models/Components/UserParcelTemplateWithoutCarrierTemplateCreateRequest.cs - - Shippo/Models/Components/UserParcelTemplateUpdateRequest.cs - - Shippo/Models/Components/ShippoAccountPaginatedList.cs - - Shippo/Models/Components/ShippoAccount.cs - - Shippo/Models/Components/ShippoAccountUpdateRequest.cs - Shippo/Models/Components/Webhook.cs - - Shippo/Models/Components/WebhookUpdateRequest.cs - Shippo/Models/Components/WebhookEventTypeEnum.cs - Shippo/Models/Components/WebhookPaginatedList.cs - - Shippo/Models/Components/Security.cs + - Shippo/Models/Components/WebhookPayload.cs - Shippo/Models/Components/WebhookPayloadBatch.cs - Shippo/Models/Components/WebhookPayloadTrack.cs - Shippo/Models/Components/WebhookPayloadTransaction.cs - - Shippo/Models/Components/AddressValidationResultsMessageCodeEnum.cs - - Shippo/Models/Components/AddressValidationResultsMessageSourceEnum.cs - - Shippo/Models/Components/ServiceLevel.cs - - Shippo/Models/Components/WebhookPayloadWebhookPayloadTransaction.cs - - Shippo/Models/Components/WebhookPayloadWebhookPayloadBatch.cs - - Shippo/Models/Components/WebhookPayloadWebhookPayloadTrack.cs - - Shippo/Models/Components/WebhookPayload.cs - - Shippo/Models/Components/ServiceLevelSwyftEnum.cs - - Shippo/Models/Components/ServiceLevelVehoEnum.cs - - Shippo/Models/Components/ServiceLevelUDSEnum.cs - - Shippo/Models/Components/ServiceLevelEvriUKEnum.cs - - Shippo/Models/Components/ServiceLevelLasershipEnum.cs - - Shippo/Models/Components/ServiceLevelJitsuEnum.cs - - Shippo/Models/Components/ServiceLevelOnTracEnum.cs - - Shippo/Models/Components/ServiceLevelSendleEnum.cs - - Shippo/Models/Components/ServiceLevelRoyalMailEnum.cs - - Shippo/Models/Components/ServiceLevelePostGlobalEnum.cs - - Shippo/Models/Components/ServiceLevelPostItalianeEnum.cs - - Shippo/Models/Components/ServiceLevelParcelforceEnum.cs - - Shippo/Models/Components/ServiceLevelMaergoEnum.cs - - Shippo/Models/Components/ServiceLevelMondialRelayEnum.cs - - Shippo/Models/Components/ServiceLevelLSOEnum.cs - - Shippo/Models/Components/ServiceLevelGLSUSEnum.cs - - Shippo/Models/Components/ServiceLevelGlobegisticsEnum.cs - - Shippo/Models/Components/ServiceLevelAramexAustraliaEnum.cs - - Shippo/Models/Components/ServiceLevelDeutschePostEnum.cs - - Shippo/Models/Components/ServiceLevelDPDUKEnum.cs - - Shippo/Models/Components/ServiceLevelDPDDEEnum.cs - - Shippo/Models/Components/ServiceLevelDHLGermanyEnum.cs - - Shippo/Models/Components/ServiceLevelDHLeCommerceEnum.cs - - Shippo/Models/Components/ServiceLevelDHLExpressEnum.cs - - Shippo/Models/Components/ServiceLevelPurolatorEnum.cs - - Shippo/Models/Components/ServiceLevelColissimoEnum.cs - - Shippo/Models/Components/ServiceLevelCorreosEspanaEnum.cs - - Shippo/Models/Components/ServiceLevelCouriersPleaseEnum.cs - - Shippo/Models/Components/ServiceLevelChronopostEnum.cs - - Shippo/Models/Components/ServiceLevelCDLEnum.cs - - Shippo/Models/Components/ServiceLevelCanadaPostEnum.cs - - Shippo/Models/Components/ServiceLevelBetterTrucksEnum.cs - - Shippo/Models/Components/ServiceLevelAPGEnum.cs - - Shippo/Models/Components/ServiceLevelAustraliaPostEnum.cs - - Shippo/Models/Components/ServiceLevelAsendiaEnum.cs - - Shippo/Models/Components/ServiceLevelAPCPostalEnum.cs - - Shippo/Models/Components/ServiceLevelAirterraEnum.cs - - Shippo/Models/Components/ServiceLevelUPSEnum.cs - - Shippo/Models/Components/ServiceLevelFedExEnum.cs - - Shippo/Models/Components/ServiceLevelUSPSEnum.cs - - Shippo/Models/Components/ServiceLevelEnumSet.cs - - Shippo/Models/Requests/ListAddressesRequest.cs + - Shippo/Models/Components/WebhookUpdateRequest.cs + - Shippo/Models/Components/WeightUnitEnum.cs + - Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseBody.cs + - Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseResponseBody.cs + - Shippo/Models/Errors/InitiateOauth2SigninResponseBody.cs + - Shippo/Models/Errors/SDKException.cs + - Shippo/Models/Requests/AddShipmentsToBatchRequest.cs + - Shippo/Models/Requests/Carrier.cs - Shippo/Models/Requests/CreateAddressRequest.cs - - Shippo/Models/Requests/GetAddressRequest.cs - - Shippo/Models/Requests/ValidateAddressRequest.cs - Shippo/Models/Requests/CreateBatchRequest.cs - - Shippo/Models/Requests/GetBatchRequest.cs - - Shippo/Models/Requests/AddShipmentsToBatchRequest.cs - - Shippo/Models/Requests/PurchaseBatchRequest.cs - - Shippo/Models/Requests/RemoveShipmentsFromBatchRequest.cs - - Shippo/Models/Requests/ListCarrierAccountsRequest.cs - Shippo/Models/Requests/CreateCarrierAccountRequest.cs - - Shippo/Models/Requests/GetCarrierAccountRequest.cs - - Shippo/Models/Requests/UpdateCarrierAccountRequest.cs - - Shippo/Models/Requests/InitiateOauth2SigninRequest.cs - - Shippo/Models/Requests/InitiateOauth2SigninResponse.cs - - Shippo/Models/Requests/RegisterCarrierAccountRequestBody.cs - - Shippo/Models/Requests/RegisterCarrierAccountRequest.cs - - Shippo/Models/Requests/Carrier.cs - - Shippo/Models/Requests/GetCarrierRegistrationStatusRequest.cs - - Shippo/Models/Requests/ListCustomsDeclarationsRequest.cs - Shippo/Models/Requests/CreateCustomsDeclarationRequest.cs - - Shippo/Models/Requests/GetCustomsDeclarationRequest.cs - - Shippo/Models/Requests/ListCustomsItemsRequest.cs - Shippo/Models/Requests/CreateCustomsItemRequest.cs - - Shippo/Models/Requests/GetCustomsItemRequest.cs - Shippo/Models/Requests/CreateLiveRateRequest.cs - - Shippo/Models/Requests/GetDefaultParcelTemplateRequest.cs - - Shippo/Models/Requests/UpdateDefaultParcelTemplateRequest.cs - - Shippo/Models/Requests/DeleteDefaultParcelTemplateRequest.cs - - Shippo/Models/Requests/ListManifestsRequest.cs - Shippo/Models/Requests/CreateManifestRequest.cs - - Shippo/Models/Requests/GetManifestRequest.cs - - Shippo/Models/Requests/ListOrdersRequest.cs - Shippo/Models/Requests/CreateOrderRequest.cs - - Shippo/Models/Requests/GetOrderRequest.cs - - Shippo/Models/Requests/Include.cs - - Shippo/Models/Requests/ListCarrierParcelTemplatesRequest.cs - - Shippo/Models/Requests/GetCarrierParcelTemplateRequest.cs - - Shippo/Models/Requests/ListParcelsRequest.cs - - Shippo/Models/Requests/CreateParcelRequestBody.cs - Shippo/Models/Requests/CreateParcelRequest.cs - - Shippo/Models/Requests/GetParcelRequest.cs + - Shippo/Models/Requests/CreateParcelRequestBody.cs - Shippo/Models/Requests/CreatePickupRequest.cs - - Shippo/Models/Requests/GetRateRequest.cs - - Shippo/Models/Requests/ListShipmentRatesRequest.cs - - Shippo/Models/Requests/ListShipmentRatesByCurrencyCodeRequest.cs - Shippo/Models/Requests/CreateRefundRequest.cs - - Shippo/Models/Requests/ListRefundsRequest.cs - - Shippo/Models/Requests/GetRefundRequest.cs - - Shippo/Models/Requests/ListServiceGroupsRequest.cs - Shippo/Models/Requests/CreateServiceGroupRequest.cs - - Shippo/Models/Requests/UpdateServiceGroupRequest.cs - - Shippo/Models/Requests/DeleteServiceGroupRequest.cs - - Shippo/Models/Requests/ListShipmentsRequest.cs - Shippo/Models/Requests/CreateShipmentRequest.cs - - Shippo/Models/Requests/GetShipmentRequest.cs + - Shippo/Models/Requests/CreateShippoAccountRequest.cs - Shippo/Models/Requests/CreateTrackRequest.cs - - Shippo/Models/Requests/GetTrackRequest.cs - - Shippo/Models/Requests/ListTransactionsRequest.cs - - Shippo/Models/Requests/CreateTransactionRequestBody.cs - Shippo/Models/Requests/CreateTransactionRequest.cs - - Shippo/Models/Requests/GetTransactionRequest.cs - - Shippo/Models/Requests/ListUserParcelTemplatesRequest.cs + - Shippo/Models/Requests/CreateTransactionRequestBody.cs - Shippo/Models/Requests/CreateUserParcelTemplateRequest.cs + - Shippo/Models/Requests/DeleteDefaultParcelTemplateRequest.cs + - Shippo/Models/Requests/DeleteServiceGroupRequest.cs - Shippo/Models/Requests/DeleteUserParcelTemplateRequest.cs + - Shippo/Models/Requests/DeleteWebhookRequest.cs + - Shippo/Models/Requests/GetAddressRequest.cs + - Shippo/Models/Requests/GetBatchRequest.cs + - Shippo/Models/Requests/GetCarrierAccountRequest.cs + - Shippo/Models/Requests/GetCarrierParcelTemplateRequest.cs + - Shippo/Models/Requests/GetCarrierRegistrationStatusRequest.cs + - Shippo/Models/Requests/GetCustomsDeclarationRequest.cs + - Shippo/Models/Requests/GetCustomsItemRequest.cs + - Shippo/Models/Requests/GetDefaultParcelTemplateRequest.cs + - Shippo/Models/Requests/GetManifestRequest.cs + - Shippo/Models/Requests/GetOrderRequest.cs + - Shippo/Models/Requests/GetParcelRequest.cs + - Shippo/Models/Requests/GetRateRequest.cs + - Shippo/Models/Requests/GetRefundRequest.cs + - Shippo/Models/Requests/GetShipmentRequest.cs + - Shippo/Models/Requests/GetShippoAccountRequest.cs + - Shippo/Models/Requests/GetTrackRequest.cs + - Shippo/Models/Requests/GetTransactionRequest.cs - Shippo/Models/Requests/GetUserParcelTemplateRequest.cs - - Shippo/Models/Requests/UpdateUserParcelTemplateRequest.cs + - Shippo/Models/Requests/GetWebhookRequest.cs + - Shippo/Models/Requests/Include.cs + - Shippo/Models/Requests/InitiateOauth2SigninRequest.cs + - Shippo/Models/Requests/InitiateOauth2SigninResponse.cs + - Shippo/Models/Requests/ListAddressesRequest.cs + - Shippo/Models/Requests/ListCarrierAccountsRequest.cs + - Shippo/Models/Requests/ListCarrierParcelTemplatesRequest.cs + - Shippo/Models/Requests/ListCustomsDeclarationsRequest.cs + - Shippo/Models/Requests/ListCustomsItemsRequest.cs + - Shippo/Models/Requests/ListManifestsRequest.cs + - Shippo/Models/Requests/ListOrdersRequest.cs + - Shippo/Models/Requests/ListParcelsRequest.cs + - Shippo/Models/Requests/ListRefundsRequest.cs + - Shippo/Models/Requests/ListServiceGroupsRequest.cs + - Shippo/Models/Requests/ListShipmentRatesByCurrencyCodeRequest.cs + - Shippo/Models/Requests/ListShipmentRatesRequest.cs + - Shippo/Models/Requests/ListShipmentsRequest.cs - Shippo/Models/Requests/ListShippoAccountsRequest.cs - - Shippo/Models/Requests/CreateShippoAccountRequest.cs - - Shippo/Models/Requests/GetShippoAccountRequest.cs + - Shippo/Models/Requests/ListTransactionsRequest.cs + - Shippo/Models/Requests/ListUserParcelTemplatesRequest.cs + - Shippo/Models/Requests/PurchaseBatchRequest.cs + - Shippo/Models/Requests/RegisterCarrierAccountRequest.cs + - Shippo/Models/Requests/RegisterCarrierAccountRequestBody.cs + - Shippo/Models/Requests/RemoveShipmentsFromBatchRequest.cs + - Shippo/Models/Requests/UpdateCarrierAccountRequest.cs + - Shippo/Models/Requests/UpdateDefaultParcelTemplateRequest.cs + - Shippo/Models/Requests/UpdateServiceGroupRequest.cs - Shippo/Models/Requests/UpdateShippoAccountRequest.cs - - Shippo/Models/Requests/GetWebhookRequest.cs + - Shippo/Models/Requests/UpdateUserParcelTemplateRequest.cs - Shippo/Models/Requests/UpdateWebhookRequest.cs - - Shippo/Models/Requests/DeleteWebhookRequest.cs - - Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseResponseBody.cs - - Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseBody.cs - - Shippo/Models/Errors/InitiateOauth2SigninResponseBody.cs - - docs/Models/Components/AddressPaginatedList.md - - docs/Models/Components/Latitude.md - - docs/Models/Components/Longitude.md + - Shippo/Models/Requests/ValidateAddressRequest.cs + - Shippo/Orders.cs + - Shippo/Parcels.cs + - Shippo/Pickups.cs + - Shippo/Rates.cs + - Shippo/RatesAtCheckout.cs + - Shippo/Refunds.cs + - Shippo/ServiceGroups.cs + - Shippo/Shipments.cs + - Shippo/Shippo.csproj + - Shippo/ShippoAccounts.cs + - Shippo/ShippoSDK.cs + - Shippo/TrackingStatus.cs + - Shippo/Transactions.cs + - Shippo/UserParcelTemplates.cs + - Shippo/Utils/AnyDeserializer.cs + - Shippo/Utils/BigIntStrConverter.cs + - Shippo/Utils/DecimalStrConverter.cs + - Shippo/Utils/EnumConverter.cs + - Shippo/Utils/FlexibleObjectDeserializer.cs + - Shippo/Utils/HeaderSerializer.cs + - Shippo/Utils/IsoDateTimeSerializer.cs + - Shippo/Utils/RequestBodySerializer.cs + - Shippo/Utils/ResponseBodyDeserializer.cs + - Shippo/Utils/Retries/BackoffStrategy.cs + - Shippo/Utils/Retries/Retries.cs + - Shippo/Utils/Retries/RetryConfig.cs + - Shippo/Utils/SecurityMetadata.cs + - Shippo/Utils/SpeakeasyHttpClient.cs + - Shippo/Utils/SpeakeasyMetadata.cs + - Shippo/Utils/URLBuilder.cs + - Shippo/Utils/Utilities.cs + - Shippo/Webhooks.cs + - USAGE.md - docs/Models/Components/Address.md - - docs/Models/Components/AddressValidationResults.md - - docs/Models/Components/AddressValidationResultsMessage.md + - docs/Models/Components/AddressCompleteCreateRequest.md - docs/Models/Components/AddressCreateRequest.md - - docs/Models/Components/ObjectResults.md - - docs/Models/Components/BatchStatus.md - - docs/Models/Components/Batch.md - - docs/Models/Components/BatchShipmentPaginatedList.md - - docs/Models/Components/Status.md - - docs/Models/Components/BatchShipment.md - - docs/Models/Components/LabelFileTypeEnum.md - - docs/Models/Components/BatchCreateRequest.md - - docs/Models/Components/BatchShipmentCreateRequest.md - docs/Models/Components/AddressFrom.md + - docs/Models/Components/AddressImporter.md + - docs/Models/Components/AddressPaginatedList.md - docs/Models/Components/AddressReturn.md - docs/Models/Components/AddressTo.md - - docs/Models/Components/ShipmentCreateRequestCustomsDeclaration.md - - docs/Models/Components/Parcels.md - - docs/Models/Components/ShipmentCreateRequest.md - - docs/Models/Components/ParcelCreateRequest.md - - docs/Models/Components/DistanceUnitEnum.md - - docs/Models/Components/WeightUnitEnum.md - - docs/Models/Components/ParcelExtra.md - - docs/Models/Components/ParcelInsuranceProvider.md - - docs/Models/Components/ParcelInsurance.md - - docs/Models/Components/PaymentMethod.md - - docs/Models/Components/Cod.md - - docs/Models/Components/ParcelCreateFromTemplateRequest.md - - docs/Models/Components/AramexAustraliaParcelTemplate.md - - docs/Models/Components/CouriersPleaseParcelTemplate.md - - docs/Models/Components/DPDUKParcelTemplate.md - - docs/Models/Components/DHLECommerceParcelTemplate.md - - docs/Models/Components/USPSParcelTemplate.md - - docs/Models/Components/UPSParcelTemplate.md - - docs/Models/Components/FedExParcelTemplate.md - - docs/Models/Components/ParcelTemplateEnumSet.md - - docs/Models/Components/CustomsDeclarationCreateRequest.md - - docs/Models/Components/CustomsDeclarationNonDeliveryOptionEnum.md - - docs/Models/Components/CustomsItemCreateRequest.md - - docs/Models/Components/CustomsDeclarationIncotermEnum.md - - docs/Models/Components/CustomsDeclarationEelPfcEnum.md - - docs/Models/Components/CustomsDeclarationContentsTypeEnum.md - - docs/Models/Components/AddressImporter.md - - docs/Models/Components/CustomsExporterIdentification.md - - docs/Models/Components/CustomsTaxIdentificationType.md - - docs/Models/Components/CustomsTaxIdentification.md - - docs/Models/Components/CustomsDeclarationB13AFilingOptionEnum.md - - docs/Models/Components/AncillaryEndorsement.md - - docs/Models/Components/DangerousGoodsCode.md - - docs/Models/Components/PreferredDeliveryTimeframe.md - - docs/Models/Components/ReturnServiceType.md - - docs/Models/Components/SignatureConfirmation.md - - docs/Models/Components/ShipmentExtra.md - - docs/Models/Components/UPSReferenceFields.md - - docs/Models/Components/RmaNumber.md - - docs/Models/Components/ShipmentExtraReturnServiceTypeUPSEnum.md - - docs/Models/Components/ShipmentExtraReturnServiceTypeLasershipEnum.md - - docs/Models/Components/PoNumber.md - - docs/Models/Components/ShipmentExtraLasershipAttributesEnum.md - - docs/Models/Components/InvoiceNumber.md - - docs/Models/Components/Provider.md - - docs/Models/Components/Insurance.md - - docs/Models/Components/DryIce.md - - docs/Models/Components/DepartmentNumber.md - - docs/Models/Components/DangerousGoodsObject.md - - docs/Models/Components/DangerousGoodsLithiumBatteries.md - - docs/Models/Components/DangerousGoodsBiologicalMaterial.md - - docs/Models/Components/CustomerReference.md - - docs/Models/Components/Type.md - - docs/Models/Components/Billing.md - - docs/Models/Components/RecipientType.md + - docs/Models/Components/AddressValidationResults.md + - docs/Models/Components/AddressValidationResultsMessage.md + - docs/Models/Components/AddressValidationResultsMessageCodeEnum.md + - docs/Models/Components/AddressValidationResultsMessageSourceEnum.md - docs/Models/Components/Alcohol.md - - docs/Models/Components/CarrierAccountPaginatedList.md - - docs/Models/Components/Parameters.md - - docs/Models/Components/CarrierAccountWithExtraInfoType.md - - docs/Models/Components/CarrierAccountWithExtraInfoStatus.md + - docs/Models/Components/AncillaryEndorsement.md + - docs/Models/Components/Attributes.md - docs/Models/Components/Authentication.md - - docs/Models/Components/ObjectInfo.md - - docs/Models/Components/CarrierAccountWithExtraInfo.md - - docs/Models/Components/CarrierAccountServiceLevel.md - - docs/Models/Components/FedExConnectExistingOwnAccountParameters.md - - docs/Models/Components/UPSConnectExistingOwnAccountParameters.md - - docs/Models/Components/CarriersEnum.md - - docs/Models/Components/CarrierAccountParameters.md + - docs/Models/Components/Batch.md + - docs/Models/Components/BatchCreateRequest.md + - docs/Models/Components/BatchShipment.md + - docs/Models/Components/BatchShipmentCreateRequest.md + - docs/Models/Components/BatchShipmentPaginatedList.md + - docs/Models/Components/BatchStatus.md + - docs/Models/Components/Billing.md + - docs/Models/Components/BuildingLocationType.md + - docs/Models/Components/BuildingType.md - docs/Models/Components/CarrierAccount.md - - docs/Models/Components/ConnectExistingOwnAccountRequestParameters.md - - docs/Models/Components/ConnectExistingOwnAccountRequest.md - - docs/Models/Components/CarrierAccountBaseParameters.md - docs/Models/Components/CarrierAccountBase.md - - docs/Models/Components/CarrierAccountCanadaPostCreateRequest.md + - docs/Models/Components/CarrierAccountBaseParameters.md - docs/Models/Components/CarrierAccountCanadaPostCreateParameters.md - - docs/Models/Components/CarrierAccountChronopostCreateRequestParameters.md + - docs/Models/Components/CarrierAccountCanadaPostCreateRequest.md - docs/Models/Components/CarrierAccountChronopostCreateRequest.md - - docs/Models/Components/CarrierAccountColissimoCreateRequestParameters.md + - docs/Models/Components/CarrierAccountChronopostCreateRequestParameters.md - docs/Models/Components/CarrierAccountColissimoCreateRequest.md - - docs/Models/Components/CarrierAccountCorreosCreateRequestParameters.md + - docs/Models/Components/CarrierAccountColissimoCreateRequestParameters.md - docs/Models/Components/CarrierAccountCorreosCreateRequest.md - - docs/Models/Components/CarrierAccountDeutschePostCreateRequestParameters.md - - docs/Models/Components/CarrierAccountDeutschePostCreateRequest.md + - docs/Models/Components/CarrierAccountCorreosCreateRequestParameters.md - docs/Models/Components/CarrierAccountDHLExpressCreateRequest.md - docs/Models/Components/CarrierAccountDHLExpressCreateRequestParameters.md - - docs/Models/Components/CarrierAccountDpdDeCreateRequestParameters.md - - docs/Models/Components/CarrierAccountDpdDeCreateRequest.md - - docs/Models/Components/CarrierAccountDPDUKCreateRequestParameters.md - docs/Models/Components/CarrierAccountDPDUKCreateRequest.md - - docs/Models/Components/CarrierAccountFedExCreateRequestParameters.md + - docs/Models/Components/CarrierAccountDPDUKCreateRequestParameters.md + - docs/Models/Components/CarrierAccountDeutschePostCreateRequest.md + - docs/Models/Components/CarrierAccountDeutschePostCreateRequestParameters.md + - docs/Models/Components/CarrierAccountDpdDeCreateRequest.md + - docs/Models/Components/CarrierAccountDpdDeCreateRequestParameters.md - docs/Models/Components/CarrierAccountFedExCreateRequest.md - - docs/Models/Components/CarrierAccountHermesUKCreateRequestParameters.md + - docs/Models/Components/CarrierAccountFedExCreateRequestParameters.md - docs/Models/Components/CarrierAccountHermesUKCreateRequest.md - - docs/Models/Components/CarrierAccountMondialRelayCreateRequestParameters.md + - docs/Models/Components/CarrierAccountHermesUKCreateRequestParameters.md - docs/Models/Components/CarrierAccountMondialRelayCreateRequest.md - - docs/Models/Components/CarrierAccountPosteItalianeCreateRequestParameters.md + - docs/Models/Components/CarrierAccountMondialRelayCreateRequestParameters.md + - docs/Models/Components/CarrierAccountPaginatedList.md + - docs/Models/Components/CarrierAccountParameters.md - docs/Models/Components/CarrierAccountPosteItalianeCreateRequest.md + - docs/Models/Components/CarrierAccountPosteItalianeCreateRequestParameters.md + - docs/Models/Components/CarrierAccountRegistrationStatus.md + - docs/Models/Components/CarrierAccountSendleCreateRequest.md + - docs/Models/Components/CarrierAccountSendleCreateRequestParameters.md + - docs/Models/Components/CarrierAccountServiceLevel.md - docs/Models/Components/CarrierAccountUPSCreateRequest.md - docs/Models/Components/CarrierAccountUPSCreateRequestParameters.md - - docs/Models/Components/CarrierAccountUSPSCreateRequestParameters.md - docs/Models/Components/CarrierAccountUSPSCreateRequest.md - - docs/Models/Components/CarrierAccountRegistrationStatus.md - - docs/Models/Components/CustomsDeclarationPaginatedList.md + - docs/Models/Components/CarrierAccountUSPSCreateRequestParameters.md + - docs/Models/Components/CarrierAccountWithExtraInfo.md + - docs/Models/Components/CarrierAccountWithExtraInfoStatus.md + - docs/Models/Components/CarrierAccountWithExtraInfoType.md + - docs/Models/Components/CarrierParcelTemplate.md + - docs/Models/Components/CarrierParcelTemplateList.md + - docs/Models/Components/CarriersEnum.md + - docs/Models/Components/Cod.md + - docs/Models/Components/ConnectExistingOwnAccountRequest.md + - docs/Models/Components/ConnectExistingOwnAccountRequestParameters.md + - docs/Models/Components/CoreRate.md + - docs/Models/Components/CreatedBy.md + - docs/Models/Components/CustomerReference.md - docs/Models/Components/CustomsDeclaration.md - - docs/Models/Components/ObjectStateEnum.md + - docs/Models/Components/CustomsDeclarationAddress.md + - docs/Models/Components/CustomsDeclarationB13AFilingOptionEnum.md + - docs/Models/Components/CustomsDeclarationContentsTypeEnum.md + - docs/Models/Components/CustomsDeclarationCreateRequest.md + - docs/Models/Components/CustomsDeclarationCreateRequestAddress.md + - docs/Models/Components/CustomsDeclarationCreateRequestType.md + - docs/Models/Components/CustomsDeclarationDutiesPayor.md + - docs/Models/Components/CustomsDeclarationEelPfcEnum.md + - docs/Models/Components/CustomsDeclarationIncotermEnum.md + - docs/Models/Components/CustomsDeclarationNonDeliveryOptionEnum.md + - docs/Models/Components/CustomsDeclarationPaginatedList.md + - docs/Models/Components/CustomsDeclarationType.md + - docs/Models/Components/CustomsExporterIdentification.md - docs/Models/Components/CustomsInvoicedCharges.md - - docs/Models/Components/CustomsItemPaginatedList.md - docs/Models/Components/CustomsItem.md - - docs/Models/Components/LiveRatePaginatedList.md + - docs/Models/Components/CustomsItemCreateRequest.md + - docs/Models/Components/CustomsItemPaginatedList.md + - docs/Models/Components/CustomsTaxIdentification.md + - docs/Models/Components/CustomsTaxIdentificationType.md + - docs/Models/Components/DangerousGoodsBiologicalMaterial.md + - docs/Models/Components/DangerousGoodsCode.md + - docs/Models/Components/DangerousGoodsLithiumBatteries.md + - docs/Models/Components/DangerousGoodsObject.md + - docs/Models/Components/DefaultParcelTemplate.md + - docs/Models/Components/DefaultParcelTemplateUpdateRequest.md + - docs/Models/Components/DepartmentNumber.md + - docs/Models/Components/DistanceUnitEnum.md + - docs/Models/Components/DryIce.md + - docs/Models/Components/DutiesPayor.md + - docs/Models/Components/FedExConnectExistingOwnAccountParameters.md + - docs/Models/Components/InstantTransactionCreateRequest.md + - docs/Models/Components/Insurance.md + - docs/Models/Components/InvoiceNumber.md + - docs/Models/Components/LabelFileType.md + - docs/Models/Components/LabelFileTypeEnum.md + - docs/Models/Components/Latitude.md + - docs/Models/Components/LineItem.md + - docs/Models/Components/LineItemBase.md - docs/Models/Components/LiveRate.md + - docs/Models/Components/LiveRateCreateRequest.md - docs/Models/Components/LiveRateCreateRequestAddressFrom.md - docs/Models/Components/LiveRateCreateRequestAddressTo.md - docs/Models/Components/LiveRateCreateRequestParcel.md - - docs/Models/Components/LiveRateCreateRequest.md - - docs/Models/Components/ObjectState.md - - docs/Models/Components/Parcel.md - - docs/Models/Components/LineItem.md - - docs/Models/Components/AddressCompleteCreateRequest.md - - docs/Models/Components/DefaultParcelTemplate.md - - docs/Models/Components/UserParcelTemplate.md - - docs/Models/Components/CarrierParcelTemplate.md - - docs/Models/Components/DefaultParcelTemplateUpdateRequest.md - - docs/Models/Components/ManifestPaginatedList.md - - docs/Models/Components/ManifestStatus.md + - docs/Models/Components/LiveRatePaginatedList.md + - docs/Models/Components/Location.md + - docs/Models/Components/Longitude.md - docs/Models/Components/Manifest.md - - docs/Models/Components/ManifestCreateRequestAddressFrom.md - docs/Models/Components/ManifestCreateRequest.md - - docs/Models/Components/OrderPaginatedList.md + - docs/Models/Components/ManifestCreateRequestAddressFrom.md + - docs/Models/Components/ManifestPaginatedList.md + - docs/Models/Components/ManifestStatus.md + - docs/Models/Components/ObjectInfo.md + - docs/Models/Components/ObjectResults.md + - docs/Models/Components/ObjectState.md + - docs/Models/Components/ObjectStateEnum.md - docs/Models/Components/Order.md + - docs/Models/Components/OrderCreateRequest.md + - docs/Models/Components/OrderPaginatedList.md - docs/Models/Components/OrderShopAppEnum.md - docs/Models/Components/OrderStatusEnum.md - - docs/Models/Components/OrderCreateRequest.md - - docs/Models/Components/LineItemBase.md - - docs/Models/Components/CarrierParcelTemplateList.md + - docs/Models/Components/Parameters.md + - docs/Models/Components/Parcel.md + - docs/Models/Components/ParcelCreateFromTemplateRequest.md + - docs/Models/Components/ParcelCreateRequest.md + - docs/Models/Components/ParcelExtra.md + - docs/Models/Components/ParcelInsurance.md + - docs/Models/Components/ParcelInsuranceProvider.md - docs/Models/Components/ParcelPaginatedList.md - - docs/Models/Components/PickupStatus.md + - docs/Models/Components/ParcelTemplateAramexAustraliaEnum.md + - docs/Models/Components/ParcelTemplateCouriersPleaseEnum.md + - docs/Models/Components/ParcelTemplateDHLeCommerceEnum.md + - docs/Models/Components/ParcelTemplateDPDUKEnum.md + - docs/Models/Components/ParcelTemplateEnumSet.md + - docs/Models/Components/ParcelTemplateFedExEnum.md + - docs/Models/Components/ParcelTemplateUPSEnum.md + - docs/Models/Components/ParcelTemplateUSPSEnum.md + - docs/Models/Components/Parcels.md + - docs/Models/Components/PaymentMethod.md - docs/Models/Components/Pickup.md - - docs/Models/Components/BuildingLocationType.md - - docs/Models/Components/BuildingType.md - - docs/Models/Components/Location.md - docs/Models/Components/PickupBase.md - - docs/Models/Components/Attributes.md + - docs/Models/Components/PickupStatus.md + - docs/Models/Components/PoNumber.md + - docs/Models/Components/PreferredDeliveryTimeframe.md + - docs/Models/Components/Provider.md - docs/Models/Components/Rate.md - - docs/Models/Components/ParentServicelevel.md - - docs/Models/Components/ServiceLevelWithParent.md - - docs/Models/Components/ResponseMessage.md - docs/Models/Components/RatePaginatedList.md - - docs/Models/Components/RefundStatus.md + - docs/Models/Components/RecipientType.md - docs/Models/Components/Refund.md - - docs/Models/Components/RefundRequestBody.md - docs/Models/Components/RefundPaginatedList.md + - docs/Models/Components/RefundRequestBody.md + - docs/Models/Components/RefundStatus.md + - docs/Models/Components/ResponseMessage.md + - docs/Models/Components/ReturnServiceType.md + - docs/Models/Components/RmaNumber.md + - docs/Models/Components/Security.md - docs/Models/Components/ServiceGroup.md - - docs/Models/Components/ServiceGroupTypeEnum.md - - docs/Models/Components/ServiceGroupCreateRequest.md - docs/Models/Components/ServiceGroupAccountAndServiceLevel.md + - docs/Models/Components/ServiceGroupCreateRequest.md + - docs/Models/Components/ServiceGroupTypeEnum.md - docs/Models/Components/ServiceGroupUpdateRequest.md + - docs/Models/Components/ServiceLevel.md + - docs/Models/Components/ServiceLevelAPCPostalEnum.md + - docs/Models/Components/ServiceLevelAPGEnum.md + - docs/Models/Components/ServiceLevelAirterraEnum.md + - docs/Models/Components/ServiceLevelAramexAustraliaEnum.md + - docs/Models/Components/ServiceLevelAsendiaEnum.md + - docs/Models/Components/ServiceLevelAustraliaPostEnum.md + - docs/Models/Components/ServiceLevelBetterTrucksEnum.md + - docs/Models/Components/ServiceLevelCDLEnum.md + - docs/Models/Components/ServiceLevelCanadaPostEnum.md + - docs/Models/Components/ServiceLevelChronopostEnum.md + - docs/Models/Components/ServiceLevelColissimoEnum.md + - docs/Models/Components/ServiceLevelCorreosEspanaEnum.md + - docs/Models/Components/ServiceLevelCouriersPleaseEnum.md + - docs/Models/Components/ServiceLevelDHLExpressEnum.md + - docs/Models/Components/ServiceLevelDHLGermanyEnum.md + - docs/Models/Components/ServiceLevelDHLeCommerceEnum.md + - docs/Models/Components/ServiceLevelDPDDEEnum.md + - docs/Models/Components/ServiceLevelDPDUKEnum.md + - docs/Models/Components/ServiceLevelDeutschePostEnum.md + - docs/Models/Components/ServiceLevelEnumSet.md + - docs/Models/Components/ServiceLevelEvriUKEnum.md + - docs/Models/Components/ServiceLevelFedExEnum.md + - docs/Models/Components/ServiceLevelGLSUSEnum.md + - docs/Models/Components/ServiceLevelGlobegisticsEnum.md + - docs/Models/Components/ServiceLevelJitsuEnum.md + - docs/Models/Components/ServiceLevelLSOEnum.md + - docs/Models/Components/ServiceLevelLasershipEnum.md + - docs/Models/Components/ServiceLevelMondialRelayEnum.md + - docs/Models/Components/ServiceLevelOnTracEnum.md + - docs/Models/Components/ServiceLevelParcelforceEnum.md + - docs/Models/Components/ServiceLevelPostItalianeEnum.md + - docs/Models/Components/ServiceLevelPurolatorEnum.md + - docs/Models/Components/ServiceLevelRoyalMailEnum.md + - docs/Models/Components/ServiceLevelSendleEnum.md + - docs/Models/Components/ServiceLevelSwyftEnum.md + - docs/Models/Components/ServiceLevelUDSEnum.md + - docs/Models/Components/ServiceLevelUPSEnum.md + - docs/Models/Components/ServiceLevelUSPSEnum.md + - docs/Models/Components/ServiceLevelVehoEnum.md + - docs/Models/Components/ServiceLevelWithParent.md + - docs/Models/Components/ServiceLevelePostGlobalEnum.md + - docs/Models/Components/Shipment.md + - docs/Models/Components/ShipmentCreateRequest.md + - docs/Models/Components/ShipmentCreateRequestCustomsDeclaration.md + - docs/Models/Components/ShipmentExtra.md + - docs/Models/Components/ShipmentExtraLasershipAttributesEnum.md + - docs/Models/Components/ShipmentExtraReturnServiceTypeLasershipEnum.md + - docs/Models/Components/ShipmentExtraReturnServiceTypeUPSEnum.md - docs/Models/Components/ShipmentPaginatedList.md - docs/Models/Components/ShipmentStatus.md - - docs/Models/Components/Shipment.md + - docs/Models/Components/ShippoAccount.md + - docs/Models/Components/ShippoAccountPaginatedList.md + - docs/Models/Components/ShippoAccountUpdateRequest.md + - docs/Models/Components/SignatureConfirmation.md + - docs/Models/Components/Status.md - docs/Models/Components/Track.md - docs/Models/Components/TrackingStatus.md - - docs/Models/Components/TrackingStatusSubstatus.md - docs/Models/Components/TrackingStatusEnum.md - docs/Models/Components/TrackingStatusLocationBase.md + - docs/Models/Components/TrackingStatusSubstatus.md - docs/Models/Components/TracksRequest.md + - docs/Models/Components/Transaction.md + - docs/Models/Components/TransactionCreateRequest.md - docs/Models/Components/TransactionPaginatedList.md - - docs/Models/Components/CreatedBy.md - docs/Models/Components/TransactionRate.md - - docs/Models/Components/Transaction.md - docs/Models/Components/TransactionStatusEnum.md - - docs/Models/Components/CoreRate.md - - docs/Models/Components/TransactionCreateRequest.md - - docs/Models/Components/LabelFileType.md - - docs/Models/Components/InstantTransactionCreateRequest.md - - docs/Models/Components/UserParcelTemplateList.md + - docs/Models/Components/Type.md + - docs/Models/Components/UPSConnectExistingOwnAccountParameters.md + - docs/Models/Components/UPSReferenceFields.md + - docs/Models/Components/UserParcelTemplate.md - docs/Models/Components/UserParcelTemplateCreateRequest.md + - docs/Models/Components/UserParcelTemplateList.md + - docs/Models/Components/UserParcelTemplateUpdateRequest.md - docs/Models/Components/UserParcelTemplateWithCarrierTemplateCreateRequest.md - docs/Models/Components/UserParcelTemplateWithoutCarrierTemplateCreateRequest.md - - docs/Models/Components/UserParcelTemplateUpdateRequest.md - - docs/Models/Components/ShippoAccountPaginatedList.md - - docs/Models/Components/ShippoAccount.md - - docs/Models/Components/ShippoAccountUpdateRequest.md - docs/Models/Components/Webhook.md - - docs/Models/Components/WebhookUpdateRequest.md - docs/Models/Components/WebhookEventTypeEnum.md - docs/Models/Components/WebhookPaginatedList.md - - docs/Models/Components/Security.md + - docs/Models/Components/WebhookPayload.md - docs/Models/Components/WebhookPayloadBatch.md - docs/Models/Components/WebhookPayloadTrack.md - docs/Models/Components/WebhookPayloadTransaction.md - - docs/Models/Components/AddressValidationResultsMessageCodeEnum.md - - docs/Models/Components/AddressValidationResultsMessageSourceEnum.md - - docs/Models/Components/ServiceLevel.md - - docs/Models/Components/WebhookPayloadWebhookPayloadTransaction.md - - docs/Models/Components/WebhookPayloadWebhookPayloadBatch.md - - docs/Models/Components/WebhookPayloadWebhookPayloadTrack.md - - docs/Models/Components/WebhookPayload.md - - docs/Models/Components/ServiceLevelSwyftEnum.md - - docs/Models/Components/ServiceLevelVehoEnum.md - - docs/Models/Components/ServiceLevelUDSEnum.md - - docs/Models/Components/ServiceLevelEvriUKEnum.md - - docs/Models/Components/ServiceLevelLasershipEnum.md - - docs/Models/Components/ServiceLevelJitsuEnum.md - - docs/Models/Components/ServiceLevelOnTracEnum.md - - docs/Models/Components/ServiceLevelSendleEnum.md - - docs/Models/Components/ServiceLevelRoyalMailEnum.md - - docs/Models/Components/ServiceLevelePostGlobalEnum.md - - docs/Models/Components/ServiceLevelPostItalianeEnum.md - - docs/Models/Components/ServiceLevelParcelforceEnum.md - - docs/Models/Components/ServiceLevelMaergoEnum.md - - docs/Models/Components/ServiceLevelMondialRelayEnum.md - - docs/Models/Components/ServiceLevelLSOEnum.md - - docs/Models/Components/ServiceLevelGLSUSEnum.md - - docs/Models/Components/ServiceLevelGlobegisticsEnum.md - - docs/Models/Components/ServiceLevelAramexAustraliaEnum.md - - docs/Models/Components/ServiceLevelDeutschePostEnum.md - - docs/Models/Components/ServiceLevelDPDUKEnum.md - - docs/Models/Components/ServiceLevelDPDDEEnum.md - - docs/Models/Components/ServiceLevelDHLGermanyEnum.md - - docs/Models/Components/ServiceLevelDHLeCommerceEnum.md - - docs/Models/Components/ServiceLevelDHLExpressEnum.md - - docs/Models/Components/ServiceLevelPurolatorEnum.md - - docs/Models/Components/ServiceLevelColissimoEnum.md - - docs/Models/Components/ServiceLevelCorreosEspanaEnum.md - - docs/Models/Components/ServiceLevelCouriersPleaseEnum.md - - docs/Models/Components/ServiceLevelChronopostEnum.md - - docs/Models/Components/ServiceLevelCDLEnum.md - - docs/Models/Components/ServiceLevelCanadaPostEnum.md - - docs/Models/Components/ServiceLevelBetterTrucksEnum.md - - docs/Models/Components/ServiceLevelAPGEnum.md - - docs/Models/Components/ServiceLevelAustraliaPostEnum.md - - docs/Models/Components/ServiceLevelAsendiaEnum.md - - docs/Models/Components/ServiceLevelAPCPostalEnum.md - - docs/Models/Components/ServiceLevelAirterraEnum.md - - docs/Models/Components/ServiceLevelUPSEnum.md - - docs/Models/Components/ServiceLevelFedExEnum.md - - docs/Models/Components/ServiceLevelUSPSEnum.md - - docs/Models/Components/ServiceLevelEnumSet.md - - docs/Models/Requests/ListAddressesRequest.md + - docs/Models/Components/WebhookUpdateRequest.md + - docs/Models/Components/WeightUnitEnum.md + - docs/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseBody.md + - docs/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseResponseBody.md + - docs/Models/Errors/InitiateOauth2SigninResponseBody.md + - docs/Models/Requests/AddShipmentsToBatchRequest.md + - docs/Models/Requests/Carrier.md - docs/Models/Requests/CreateAddressRequest.md - - docs/Models/Requests/GetAddressRequest.md - - docs/Models/Requests/ValidateAddressRequest.md - docs/Models/Requests/CreateBatchRequest.md - - docs/Models/Requests/GetBatchRequest.md - - docs/Models/Requests/AddShipmentsToBatchRequest.md - - docs/Models/Requests/PurchaseBatchRequest.md - - docs/Models/Requests/RemoveShipmentsFromBatchRequest.md - - docs/Models/Requests/ListCarrierAccountsRequest.md - docs/Models/Requests/CreateCarrierAccountRequest.md - - docs/Models/Requests/GetCarrierAccountRequest.md - - docs/Models/Requests/UpdateCarrierAccountRequest.md - - docs/Models/Requests/InitiateOauth2SigninRequest.md - - docs/Models/Requests/InitiateOauth2SigninResponse.md - - docs/Models/Requests/RegisterCarrierAccountRequestBody.md - - docs/Models/Requests/RegisterCarrierAccountRequest.md - - docs/Models/Requests/Carrier.md - - docs/Models/Requests/GetCarrierRegistrationStatusRequest.md - - docs/Models/Requests/ListCustomsDeclarationsRequest.md - docs/Models/Requests/CreateCustomsDeclarationRequest.md - - docs/Models/Requests/GetCustomsDeclarationRequest.md - - docs/Models/Requests/ListCustomsItemsRequest.md - docs/Models/Requests/CreateCustomsItemRequest.md - - docs/Models/Requests/GetCustomsItemRequest.md - docs/Models/Requests/CreateLiveRateRequest.md - - docs/Models/Requests/GetDefaultParcelTemplateRequest.md - - docs/Models/Requests/UpdateDefaultParcelTemplateRequest.md - - docs/Models/Requests/DeleteDefaultParcelTemplateRequest.md - - docs/Models/Requests/ListManifestsRequest.md - docs/Models/Requests/CreateManifestRequest.md - - docs/Models/Requests/GetManifestRequest.md - - docs/Models/Requests/ListOrdersRequest.md - docs/Models/Requests/CreateOrderRequest.md - - docs/Models/Requests/GetOrderRequest.md - - docs/Models/Requests/Include.md - - docs/Models/Requests/ListCarrierParcelTemplatesRequest.md - - docs/Models/Requests/GetCarrierParcelTemplateRequest.md - - docs/Models/Requests/ListParcelsRequest.md - - docs/Models/Requests/CreateParcelRequestBody.md - docs/Models/Requests/CreateParcelRequest.md - - docs/Models/Requests/GetParcelRequest.md + - docs/Models/Requests/CreateParcelRequestBody.md - docs/Models/Requests/CreatePickupRequest.md - - docs/Models/Requests/GetRateRequest.md - - docs/Models/Requests/ListShipmentRatesRequest.md - - docs/Models/Requests/ListShipmentRatesByCurrencyCodeRequest.md - docs/Models/Requests/CreateRefundRequest.md - - docs/Models/Requests/ListRefundsRequest.md - - docs/Models/Requests/GetRefundRequest.md - - docs/Models/Requests/ListServiceGroupsRequest.md - docs/Models/Requests/CreateServiceGroupRequest.md - - docs/Models/Requests/UpdateServiceGroupRequest.md - - docs/Models/Requests/DeleteServiceGroupRequest.md - - docs/Models/Requests/ListShipmentsRequest.md - docs/Models/Requests/CreateShipmentRequest.md - - docs/Models/Requests/GetShipmentRequest.md + - docs/Models/Requests/CreateShippoAccountRequest.md - docs/Models/Requests/CreateTrackRequest.md - - docs/Models/Requests/GetTrackRequest.md - - docs/Models/Requests/ListTransactionsRequest.md - - docs/Models/Requests/CreateTransactionRequestBody.md - docs/Models/Requests/CreateTransactionRequest.md - - docs/Models/Requests/GetTransactionRequest.md - - docs/Models/Requests/ListUserParcelTemplatesRequest.md + - docs/Models/Requests/CreateTransactionRequestBody.md - docs/Models/Requests/CreateUserParcelTemplateRequest.md + - docs/Models/Requests/DeleteDefaultParcelTemplateRequest.md + - docs/Models/Requests/DeleteServiceGroupRequest.md - docs/Models/Requests/DeleteUserParcelTemplateRequest.md + - docs/Models/Requests/DeleteWebhookRequest.md + - docs/Models/Requests/GetAddressRequest.md + - docs/Models/Requests/GetBatchRequest.md + - docs/Models/Requests/GetCarrierAccountRequest.md + - docs/Models/Requests/GetCarrierParcelTemplateRequest.md + - docs/Models/Requests/GetCarrierRegistrationStatusRequest.md + - docs/Models/Requests/GetCustomsDeclarationRequest.md + - docs/Models/Requests/GetCustomsItemRequest.md + - docs/Models/Requests/GetDefaultParcelTemplateRequest.md + - docs/Models/Requests/GetManifestRequest.md + - docs/Models/Requests/GetOrderRequest.md + - docs/Models/Requests/GetParcelRequest.md + - docs/Models/Requests/GetRateRequest.md + - docs/Models/Requests/GetRefundRequest.md + - docs/Models/Requests/GetShipmentRequest.md + - docs/Models/Requests/GetShippoAccountRequest.md + - docs/Models/Requests/GetTrackRequest.md + - docs/Models/Requests/GetTransactionRequest.md - docs/Models/Requests/GetUserParcelTemplateRequest.md - - docs/Models/Requests/UpdateUserParcelTemplateRequest.md + - docs/Models/Requests/GetWebhookRequest.md + - docs/Models/Requests/Include.md + - docs/Models/Requests/InitiateOauth2SigninRequest.md + - docs/Models/Requests/InitiateOauth2SigninResponse.md + - docs/Models/Requests/ListAddressesRequest.md + - docs/Models/Requests/ListCarrierAccountsRequest.md + - docs/Models/Requests/ListCarrierParcelTemplatesRequest.md + - docs/Models/Requests/ListCustomsDeclarationsRequest.md + - docs/Models/Requests/ListCustomsItemsRequest.md + - docs/Models/Requests/ListManifestsRequest.md + - docs/Models/Requests/ListOrdersRequest.md + - docs/Models/Requests/ListParcelsRequest.md + - docs/Models/Requests/ListRefundsRequest.md + - docs/Models/Requests/ListServiceGroupsRequest.md + - docs/Models/Requests/ListShipmentRatesByCurrencyCodeRequest.md + - docs/Models/Requests/ListShipmentRatesRequest.md + - docs/Models/Requests/ListShipmentsRequest.md - docs/Models/Requests/ListShippoAccountsRequest.md - - docs/Models/Requests/CreateShippoAccountRequest.md - - docs/Models/Requests/GetShippoAccountRequest.md + - docs/Models/Requests/ListTransactionsRequest.md + - docs/Models/Requests/ListUserParcelTemplatesRequest.md + - docs/Models/Requests/PurchaseBatchRequest.md + - docs/Models/Requests/RegisterCarrierAccountRequest.md + - docs/Models/Requests/RegisterCarrierAccountRequestBody.md + - docs/Models/Requests/RemoveShipmentsFromBatchRequest.md + - docs/Models/Requests/UpdateCarrierAccountRequest.md + - docs/Models/Requests/UpdateDefaultParcelTemplateRequest.md + - docs/Models/Requests/UpdateServiceGroupRequest.md - docs/Models/Requests/UpdateShippoAccountRequest.md - - docs/Models/Requests/GetWebhookRequest.md + - docs/Models/Requests/UpdateUserParcelTemplateRequest.md - docs/Models/Requests/UpdateWebhookRequest.md - - docs/Models/Requests/DeleteWebhookRequest.md - - docs/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseResponseBody.md - - docs/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseBody.md - - docs/Models/Errors/InitiateOauth2SigninResponseBody.md - - docs/sdks/shipposdk/README.md + - docs/Models/Requests/ValidateAddressRequest.md - docs/sdks/addresses/README.md - docs/sdks/batches/README.md - docs/sdks/carrieraccounts/README.md + - docs/sdks/carrierparceltemplates/README.md - docs/sdks/customsdeclarations/README.md - docs/sdks/customsitems/README.md - - docs/sdks/ratesatcheckout/README.md - docs/sdks/manifests/README.md - docs/sdks/orders/README.md - - docs/sdks/carrierparceltemplates/README.md - docs/sdks/parcels/README.md - docs/sdks/pickups/README.md - docs/sdks/rates/README.md + - docs/sdks/ratesatcheckout/README.md - docs/sdks/refunds/README.md - docs/sdks/servicegroups/README.md - docs/sdks/shipments/README.md + - docs/sdks/shippoaccounts/README.md + - docs/sdks/shipposdk/README.md - docs/sdks/trackingstatus/README.md - docs/sdks/transactions/README.md - docs/sdks/userparceltemplates/README.md - - docs/sdks/shippoaccounts/README.md - docs/sdks/webhooks/README.md - - NUGET.md - - USAGE.md - - .gitattributes - - Shippo/Hooks/SDKHooks.cs - - Shippo/Hooks/HookTypes.cs + - global.json +examples: + ListAddresses: + speakeasy-default-list-addresses: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}]} + CreateAddress: + speakeasy-default-create-address: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true} + responses: + "201": + application/json: {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false} + GetAddress: + speakeasy-default-get-address: + parameters: + path: + AddressId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false} + ValidateAddress: + speakeasy-default-validate-address: + parameters: + path: + AddressId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false} + CreateBatch: + speakeasy-default-create-batch: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "shipment": {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": "d799c2679e644279b59fe661ac8fa488", "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "Blumenstraße", "street3": "", "street_no": "22", "city": "München", "state": "CA", "zip": "80331", "country": "DE", "phone": "80331", "email": "shippotle@shippo.com", "is_residential": true}, "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": [{"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}, {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}, {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}], "non_delivery_option": "RETURN", "test": true}, "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": [{"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}, {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}, {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}]}}]} + responses: + "201": + application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}]}, "label_url": ["", "", ""], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} + GetBatch: + speakeasy-default-get-batch: + parameters: + path: + BatchId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}]}, "label_url": ["", ""], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} + AddShipmentsToBatch: + speakeasy-default-add-shipments-to-batch: + parameters: + path: + BatchId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "shipment": {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_to": "d799c2679e644279b59fe661ac8fa489", "customs_declaration": "adcfdddf8ec64b84ad22772bce3ea37a", "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": ["", "", {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "template": "USPS_SmallFlatRateEnvelope"}]}}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "shipment": {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "Blumenstraße", "street3": "", "street_no": "22", "city": "München", "state": "CA", "zip": "80331", "country": "DE", "phone": "80331", "email": "shippotle@shippo.com", "is_residential": true}, "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": [], "non_delivery_option": "RETURN", "test": true}, "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": [{"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "template": "couriersplease_1kg_satchel"}, {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "template": "DHLeC_SM_Flats"}]}}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "shipment": {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": "d799c2679e644279b59fe661ac8fa488", "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_to": "d799c2679e644279b59fe661ac8fa489", "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "Blumenstraße", "street3": "", "street_no": "22", "city": "München", "state": "CA", "zip": "80331", "country": "DE", "phone": "80331", "email": "shippotle@shippo.com", "is_residential": true}, "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": [{"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}, {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}, {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}], "non_delivery_option": "RETURN", "test": true}, "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": ["", "", ""]}}] + responses: + "200": + application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": []}, "label_url": ["", ""], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} + PurchaseBatch: + speakeasy-default-purchase-batch: + parameters: + path: + BatchId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "202": + application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}]}, "label_url": [], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} + RemoveShipmentsFromBatch: + speakeasy-default-remove-shipments-from-batch: + parameters: + path: + BatchId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: ["", "", ""] + responses: + "200": + application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}]}, "label_url": [], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} + ListCarrierAccounts: + speakeasy-default-list-carrier-accounts: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Marie", "last_name": "Fay", "phone_number": "1-760-700-6560", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [], "test": false}, {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Jeanette", "last_name": "Waters", "phone_number": "(940) 480-8491 x0814", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false}, {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Jayde", "last_name": "Ledner", "phone_number": "(583) 511-9069 x90658", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}, {"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}, {"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false}]} + CreateCarrierAccount: + speakeasy-default-create-carrier-account: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"account_id": "321123", "carrier": "fedex", "metadata": "FEDEX Account", "parameters": {"first_name": "Loyal", "last_name": "Collier", "phone_number": "(890) 307-8579", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "test": false} + responses: + "201": + application/json: {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Destiny", "last_name": "Fay", "phone_number": "231.216.3066", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [], "test": false} + GetCarrierAccount: + speakeasy-default-get-carrier-account: + parameters: + path: + CarrierAccountId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"account_id": "****", "carrier": "usps", "parameters": {"account_number": "94567e", "aia_country_iso2": "US", "billing_address_city": "San Francisco", "billing_address_country_iso2": "US", "billing_address_state": "CA", "billing_address_street1": "731 Market St", "billing_address_street2": "STE 200", "billing_address_zip": "94103", "collec_country_iso2": "US", "collec_zip": "94103", "company": "Shippo", "currency_code": "USD", "email": "hippo@shippo.com", "full_name": "Shippo Meister", "has_invoice": false, "invoice_controlid": "1234", "invoice_date": "20210529", "invoice_number": "1112234", "invoice_value": "11.23", "phone": "1112223333", "title": "Manager", "ups_agreements": false}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}, {"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false} + UpdateCarrierAccount: + speakeasy-default-update-carrier-account: + parameters: + path: + CarrierAccountId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"account_id": "****", "carrier": "usps", "parameters": {"account_number": "94567e", "aia_country_iso2": "US", "billing_address_city": "San Francisco", "billing_address_country_iso2": "US", "billing_address_state": "CA", "billing_address_street1": "731 Market St", "billing_address_street2": "STE 200", "billing_address_zip": "94103", "collec_country_iso2": "US", "collec_zip": "94103", "company": "Shippo", "currency_code": "USD", "email": "hippo@shippo.com", "full_name": "Shippo Meister", "has_invoice": false, "invoice_controlid": "1234", "invoice_date": "20210529", "invoice_number": "1112234", "invoice_value": "11.23", "phone": "1112223333", "title": "Manager", "ups_agreements": true}} + responses: + "200": + application/json: {"account_id": "****", "carrier": "usps", "parameters": {"account_number": "94567e", "aia_country_iso2": "US", "billing_address_city": "San Francisco", "billing_address_country_iso2": "US", "billing_address_state": "CA", "billing_address_street1": "731 Market St", "billing_address_street2": "STE 200", "billing_address_zip": "94103", "collec_country_iso2": "US", "collec_zip": "94103", "company": "Shippo", "currency_code": "USD", "email": "hippo@shippo.com", "full_name": "Shippo Meister", "has_invoice": false, "invoice_controlid": "1234", "invoice_date": "20210529", "invoice_number": "1112234", "invoice_value": "11.23", "phone": "1112223333", "title": "Manager", "ups_agreements": true}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}, {"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}, {"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false} + InitiateOauth2Signin: + speakeasy-default-initiate-oauth2-signin: + parameters: + path: + CarrierAccountObjectId: "" + query: + redirect_uri: "https://enlightened-mortise.com/" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "400": + application/json: {"title": "Missing required parameter", "detail": "redirect_uri"} + "401": + application/json: {"title": "Unsupported OAuth Carrier Account", "detail": "The carrier account 3c49f998b1234a2097ea0911a7e95bea does not support OAuth authorization"} + "404": + application/json: {"title": "Carrier Account not found", "detail": "Carrier Account not found for object_id: 3c49f998b1234a2097ea0911a7e95bea"} + RegisterCarrierAccount: + speakeasy-default-register-carrier-account: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"carrier": "correos"} + responses: + "201": + application/json: {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Marlene", "last_name": "Kilback", "phone_number": "(569) 519-5316", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false} + GetCarrierRegistrationStatus: + speakeasy-default-get-carrier-registration-status: + parameters: + query: + carrier: "usps" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"carrier_account": "99dc410d295b4a168993cc38809cb123", "object_owner": "tom@gmail.com", "status": "PENDING_TERMS"} + ListCustomsDeclarations: + speakeasy-default-list-customs-declarations: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}]} + CreateCustomsDeclaration: + speakeasy-default-create-customs-declaration: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "Blumenstraße", "street3": "", "street_no": "22", "city": "München", "state": "CA", "zip": "80331", "country": "DE", "phone": "80331", "email": "shippotle@shippo.com", "is_residential": true}, "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": [{"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}], "non_delivery_option": "RETURN", "test": true} + responses: + "201": + application/json: {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true} + GetCustomsDeclaration: + speakeasy-default-get-customs-declaration: + parameters: + path: + CustomsDeclarationId: "" + query: {} + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true} + ListCustomsItems: + speakeasy-default-list-customs-items: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD", "object_created": "2014-07-17T00:49:20.631Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T00:49:20.631Z"}, {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD", "object_created": "2014-07-17T00:49:20.631Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T00:49:20.631Z"}, {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD", "object_created": "2014-07-17T00:49:20.631Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T00:49:20.631Z"}]} + CreateCustomsItem: + speakeasy-default-create-customs-item: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"} + responses: + "201": + application/json: {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD", "object_created": "2014-07-17T00:49:20.631Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T00:49:20.631Z"} + GetCustomsItem: + speakeasy-default-get-customs-item: + parameters: + path: + CustomsItemId: "" + query: {} + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD", "object_created": "2014-07-17T00:49:20.631Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T00:49:20.631Z"} + CreateLiveRate: + speakeasy-default-create-live-rate: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"address_from": "", "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "parcel": "5df144dca289442cv7a06"} + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "count": 123, "results": []} + GetDefaultParcelTemplate: + speakeasy-default-get-default-parcel-template: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"result": {"distance_unit": "in", "height": "6", "length": "10", "name": "My Custom Template", "weight": "12", "weight_unit": "lb", "width": "8", "object_created": "2013-12-11T19:38:09.729Z", "object_id": "b958d3690bb04bb8b2986724872750f5", "object_owner": "shippotle@shippo.com", "object_updated": "2013-12-12T19:38:09.729Z", "template": {"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"}}} + UpdateDefaultParcelTemplate: + speakeasy-default-update-default-parcel-template: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"object_id": "b958d3690bb04bb8b2986724872750f5"} + responses: + "200": + application/json: {"result": {"distance_unit": "in", "height": "6", "length": "10", "name": "My Custom Template", "weight": "12", "weight_unit": "lb", "width": "8", "object_created": "2013-12-11T19:38:09.729Z", "object_id": "b958d3690bb04bb8b2986724872750f5", "object_owner": "shippotle@shippo.com", "object_updated": "2013-12-12T19:38:09.729Z", "template": {"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"}}} + DeleteDefaultParcelTemplate: + speakeasy-default-delete-default-parcel-template: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + ListManifests: + speakeasy-default-list-manifests: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2023-08-23T19:26:20.850Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2024-01-14T10:26:00.433Z", "status": "SUCCESS"}, {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2022-07-14T18:23:27.528Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2022-09-09T18:28:08.953Z", "status": "SUCCESS"}, {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2022-06-17T12:14:27.999Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2023-11-28T13:02:27.296Z", "status": "SUCCESS"}]} + CreateManifest: + speakeasy-default-create-manifest: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}} + responses: + "201": + application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2023-12-01T17:06:07.804Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2023-04-03T12:48:32.253Z", "status": "SUCCESS"} + GetManifest: + speakeasy-default-get-manifest: + parameters: + path: + ManifestId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2024-02-07T13:54:48.821Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2023-09-05T11:33:52.011Z", "status": "SUCCESS"} + ListOrders: + speakeasy-default-list-orders: + parameters: + query: + order_status[]: ["PAID"] + shop_app: "Shippo" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "line_items": [], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"}, {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}, {"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"}, {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}, {"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"}]} + CreateOrder: + speakeasy-default-create-order: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb"}]} + responses: + "201": + application/json: {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "line_items": [], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"} + GetOrder: + speakeasy-default-get-order: + parameters: + path: + OrderId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}, {"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"} + ListCarrierParcelTemplates: + "": + parameters: + query: + carrier: "fedex" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"results": [{"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"}, {"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"}, {"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"}]} + GetCarrierParcelTemplate: + speakeasy-default-get-carrier-parcel-template: + parameters: + path: + CarrierParcelTemplateToken: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"} + ListParcels: + speakeasy-default-list-parcels: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1", "object_created": "2014-07-09T02:19:13.174Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_state": "VALID", "object_updated": "2014-07-09T02:19:13.174Z"}]} + CreateParcel: + speakeasy-default-create-parcel: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"} + responses: + "201": + application/json: {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1", "object_created": "2014-07-09T02:19:13.174Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_state": "VALID", "object_updated": "2014-07-09T02:19:13.174Z"} + GetParcel: + speakeasy-default-get-parcel: + parameters: + path: + ParcelId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1", "object_created": "2014-07-09T02:19:13.174Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_state": "VALID", "object_updated": "2014-07-09T02:19:13.174Z"} + CreatePickup: + speakeasy-default-create-pickup: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "location": {"address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "building_location_type": "Front Door", "building_type": "apartment", "instructions": "Behind screen door"}, "requested_end_time": "2023-06-18T07:14:55.338Z", "requested_start_time": "2023-12-01T17:06:07.804Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"]} + responses: + "201": + application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "location": {"address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "building_location_type": "Front Door", "building_type": "apartment", "instructions": "Behind screen door"}, "requested_end_time": "2023-04-03T12:48:32.253Z", "requested_start_time": "2022-05-28T06:20:22.766Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "confirmed_start_time": "2020-05-09T12:00:00Z", "confirmed_end_time": "2020-05-09T23:59:59.999Z", "cancel_by_time": "2020-05-09T08:00:00Z", "status": "CONFIRMED", "confirmation_code": "WTC310058750", "timezone": "US/Pacific", "messages": []} + GetRate: + speakeasy-default-get-rate: + parameters: + path: + RateId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": ["CHEAPEST", "CHEAPEST"], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2024-11-29T01:50:48.954Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"} + ListShipmentRates: + speakeasy-default-list-shipment-rates: + parameters: + path: + ShipmentId: "" + query: {} + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": ["FASTEST"], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2022-10-17T00:25:08.850Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"}]} + ListShipmentRatesByCurrencyCode: + speakeasy-default-list-shipment-rates-by-currency-code: + parameters: + path: + ShipmentId: "" + CurrencyCode: "USD" + query: {} + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": []} + CreateRefund: + speakeasy-default-create-refund: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"async": false, "transaction": "915d94940ea54c3a80cbfa328722f5a1"} + responses: + "201": + application/json: {"object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "status": "SUCCESS", "transaction": "915d94940ea54c3a80cbfa328722f5a1"} + ListRefunds: + speakeasy-default-list-refunds: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "status": "SUCCESS", "transaction": "915d94940ea54c3a80cbfa328722f5a1"}, {"object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "status": "SUCCESS", "transaction": "915d94940ea54c3a80cbfa328722f5a1"}, {"object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "status": "SUCCESS", "transaction": "915d94940ea54c3a80cbfa328722f5a1"}]} + GetRefund: + speakeasy-default-get-refund: + parameters: + path: + RefundId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "status": "SUCCESS", "transaction": "915d94940ea54c3a80cbfa328722f5a1"} + ListServiceGroups: + speakeasy-default-list-service-groups: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: [{"description": "USPS shipping options", "flat_rate": "5", "flat_rate_currency": "USD", "free_shipping_threshold_currency": "USD", "free_shipping_threshold_min": "5", "name": "USPS Shipping", "rate_adjustment": 15, "type": "FLAT_RATE", "object_id": "80feb1633d4a43c898f005850", "is_active": true, "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}]}, {"description": "USPS shipping options", "flat_rate": "5", "flat_rate_currency": "USD", "free_shipping_threshold_currency": "USD", "free_shipping_threshold_min": "5", "name": "USPS Shipping", "rate_adjustment": 15, "type": "FLAT_RATE", "object_id": "80feb1633d4a43c898f005850", "is_active": true, "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}]}, {"description": "USPS shipping options", "flat_rate": "5", "flat_rate_currency": "USD", "free_shipping_threshold_currency": "USD", "free_shipping_threshold_min": "5", "name": "USPS Shipping", "rate_adjustment": 15, "type": "FLAT_RATE", "object_id": "80feb1633d4a43c898f005850", "is_active": true, "service_levels": []}] + CreateServiceGroup: + speakeasy-default-create-service-group: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"description": "USPS shipping options", "flat_rate": "5", "flat_rate_currency": "USD", "free_shipping_threshold_currency": "USD", "free_shipping_threshold_min": "5", "name": "USPS Shipping", "rate_adjustment": 15, "type": "FLAT_RATE", "service_levels": [{"account_object_id": "80feb1633d4a43c898f0058506cfd82d", "service_level_token": "ups_next_day_air_saver"}]} + responses: + "201": + application/json: {"description": "USPS shipping options", "flat_rate": "5", "flat_rate_currency": "USD", "free_shipping_threshold_currency": "USD", "free_shipping_threshold_min": "5", "name": "USPS Shipping", "rate_adjustment": 15, "type": "FLAT_RATE", "object_id": "80feb1633d4a43c898f005850", "is_active": true, "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}]} + UpdateServiceGroup: + speakeasy-default-update-service-group: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"description": "USPS shipping options", "flat_rate": "5", "flat_rate_currency": "USD", "free_shipping_threshold_currency": "USD", "free_shipping_threshold_min": "5", "name": "USPS Shipping", "rate_adjustment": 15, "type": "FLAT_RATE", "object_id": "80feb1633d4a43c898f005850", "is_active": true, "service_levels": [{"account_object_id": "80feb1633d4a43c898f0058506cfd82d", "service_level_token": "ups_next_day_air_saver"}, {"account_object_id": "80feb1633d4a43c898f0058506cfd82d", "service_level_token": "ups_next_day_air_saver"}, {"account_object_id": "80feb1633d4a43c898f0058506cfd82d", "service_level_token": "ups_next_day_air_saver"}]} + responses: + "200": + application/json: {"description": "USPS shipping options", "flat_rate": "5", "flat_rate_currency": "USD", "free_shipping_threshold_currency": "USD", "free_shipping_threshold_min": "5", "name": "USPS Shipping", "rate_adjustment": 15, "type": "FLAT_RATE", "object_id": "80feb1633d4a43c898f005850", "is_active": true, "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}]} + DeleteServiceGroup: + speakeasy-default-delete-service-group: + parameters: + path: + ServiceGroupId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + ListShipments: + speakeasy-default-list-shipments: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "carrier_accounts": [], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "messages": [], "object_created": "2023-11-28T13:02:27.296Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2023-12-02T18:25:37.169Z", "parcels": [{"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1", "object_created": "2014-07-09T02:19:13.174Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_state": "VALID", "object_updated": "2014-07-09T02:19:13.174Z"}], "rates": [], "status": "QUEUED"}, {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "carrier_accounts": ["", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2023-11-26T18:23:24.264Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2022-01-09T04:26:27.312Z", "parcels": [{"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1", "object_created": "2014-07-09T02:19:13.174Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_state": "VALID", "object_updated": "2014-07-09T02:19:13.174Z"}], "rates": [], "status": "QUEUED"}, {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "carrier_accounts": ["", "", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2024-08-18T13:00:42.665Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2023-06-22T03:00:04.393Z", "parcels": [{"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1", "object_created": "2014-07-09T02:19:13.174Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_state": "VALID", "object_updated": "2014-07-09T02:19:13.174Z"}], "rates": [], "status": "QUEUED"}]} + CreateShipment: + speakeasy-default-create-shipment: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_return": "d799c2679e644279b59fe661ac8fa488", "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "Blumenstraße", "street3": "", "street_no": "22", "city": "München", "state": "CA", "zip": "80331", "country": "DE", "phone": "80331", "email": "shippotle@shippo.com", "is_residential": true}, "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": [], "non_delivery_option": "RETURN", "test": true}, "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": ["", {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}, {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}]} + responses: + "201": + application/json: {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "carrier_accounts": ["", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2024-11-15T07:40:19.243Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2023-01-27T07:05:06.005Z", "parcels": [{"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1", "object_created": "2014-07-09T02:19:13.174Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_state": "VALID", "object_updated": "2014-07-09T02:19:13.174Z"}], "rates": [{"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": [], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "messages": [], "object_created": "2022-08-20T15:01:30.899Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"}], "status": "QUEUED"} + GetShipment: + speakeasy-default-get-shipment: + parameters: + path: + ShipmentId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "carrier_accounts": ["", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2023-05-18T00:32:02.244Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2023-05-10T02:28:23.533Z", "parcels": [{"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1", "object_created": "2014-07-09T02:19:13.174Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_state": "VALID", "object_updated": "2014-07-09T02:19:13.174Z"}], "rates": [{"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": [], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2023-04-26T04:53:50.189Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"}], "status": "QUEUED"} + CreateTrack: + speakeasy-default-create-track: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"carrier": "usps", "metadata": "Order 000123", "tracking_number": "9205590164917312751089"} + responses: + "200": + application/json: {"address_from": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "address_to": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "carrier": "usps", "messages": [""], "metadata": "Order 000123", "original_eta": "2021-07-23T00:00:00Z", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "tracking_history": [{"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2023-04-03T12:48:32.253Z", "object_id": "", "object_updated": "2022-05-28T06:20:22.766Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": true}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}, {"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2024-05-22T22:27:14.379Z", "object_id": "", "object_updated": "2024-11-08T08:43:39.394Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": true}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}], "tracking_number": "9205590164917312751089", "tracking_status": {"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2022-07-06T00:30:20.403Z", "object_id": "", "object_updated": "2022-04-09T14:25:29.356Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": false}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}} + GetTrack: + speakeasy-default-get-track: + parameters: + path: + TrackingNumber: "" + Carrier: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"address_from": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "address_to": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "carrier": "usps", "messages": ["", ""], "metadata": "Order 000123", "original_eta": "2021-07-23T00:00:00Z", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "tracking_history": [{"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2023-08-20T11:11:04.610Z", "object_id": "", "object_updated": "2023-07-26T06:33:15.810Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": false}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}, {"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2023-05-18T00:32:02.244Z", "object_id": "", "object_updated": "2023-05-10T02:28:23.533Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": true}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}], "tracking_number": "9205590164917312751089", "tracking_status": {"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2022-08-22T22:47:10.166Z", "object_id": "", "object_updated": "2024-10-24T02:41:21.259Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": true}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}} + ListTransactions: + speakeasy-default-list-transactions: + parameters: + query: + object_status: "SUCCESS" + tracking_status: "DELIVERED" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"created_by": {"first_name": "Shwan", "last_name": "Ippotle", "username": "shippotle@shippo.com"}, "label_file_type": "PDF_4x6", "label_url": "https://shippo-delivery.s3.amazonaws.com/70ae8117ee1749e393f249d5b77c45e0.pdf?Signature=vDw1ltcyGveVR1OQoUDdzC43BY8%3D&Expires=1437093830&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_id": "915d94940ea54c3a80cbfa328722f5a1", "object_owner": "shippotle@shippo.com", "parcel": "e94c7fdfdc7b495dbb390a28d929d90a", "qr_code_url": "https://shippo-delivery.s3.amazonaws.com/96_qr_code.pdf?Signature=PEdWrp0mFWAGwJp7FW3b%2FeA2eyY%3D&Expires=1385930652&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "rate": "ec9f0d3adc9441449c85d315f0997fd5", "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"}, {"created_by": {"first_name": "Shwan", "last_name": "Ippotle", "username": "shippotle@shippo.com"}, "label_file_type": "PDF_4x6", "label_url": "https://shippo-delivery.s3.amazonaws.com/70ae8117ee1749e393f249d5b77c45e0.pdf?Signature=vDw1ltcyGveVR1OQoUDdzC43BY8%3D&Expires=1437093830&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "messages": [], "object_id": "915d94940ea54c3a80cbfa328722f5a1", "object_owner": "shippotle@shippo.com", "parcel": "e94c7fdfdc7b495dbb390a28d929d90a", "qr_code_url": "https://shippo-delivery.s3.amazonaws.com/96_qr_code.pdf?Signature=PEdWrp0mFWAGwJp7FW3b%2FeA2eyY%3D&Expires=1385930652&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "rate": {"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "provider": "USPS", "carrier_account": "078870331023437cb917f5187429b093", "servicelevel_name": "Priority Mail", "servicelevel_token": "fedex_ground"}, "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"}, {"created_by": {"first_name": "Shwan", "last_name": "Ippotle", "username": "shippotle@shippo.com"}, "label_file_type": "PDF_4x6", "label_url": "https://shippo-delivery.s3.amazonaws.com/70ae8117ee1749e393f249d5b77c45e0.pdf?Signature=vDw1ltcyGveVR1OQoUDdzC43BY8%3D&Expires=1437093830&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "messages": [], "object_id": "915d94940ea54c3a80cbfa328722f5a1", "object_owner": "shippotle@shippo.com", "parcel": "e94c7fdfdc7b495dbb390a28d929d90a", "qr_code_url": "https://shippo-delivery.s3.amazonaws.com/96_qr_code.pdf?Signature=PEdWrp0mFWAGwJp7FW3b%2FeA2eyY%3D&Expires=1385930652&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "rate": "ec9f0d3adc9441449c85d315f0997fd5", "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"}]} + CreateTransaction: + speakeasy-default-create-transaction: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"async": false, "label_file_type": "PDF_4x6", "metadata": "Order ID #12345", "rate": "ec9f0d3adc9441449c85d315f0997fd5"} + responses: + "201": + application/json: {"created_by": {"first_name": "Shwan", "last_name": "Ippotle", "username": "shippotle@shippo.com"}, "label_file_type": "PDF_4x6", "label_url": "https://shippo-delivery.s3.amazonaws.com/70ae8117ee1749e393f249d5b77c45e0.pdf?Signature=vDw1ltcyGveVR1OQoUDdzC43BY8%3D&Expires=1437093830&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_id": "915d94940ea54c3a80cbfa328722f5a1", "object_owner": "shippotle@shippo.com", "parcel": "e94c7fdfdc7b495dbb390a28d929d90a", "qr_code_url": "https://shippo-delivery.s3.amazonaws.com/96_qr_code.pdf?Signature=PEdWrp0mFWAGwJp7FW3b%2FeA2eyY%3D&Expires=1385930652&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "rate": {"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "provider": "USPS", "carrier_account": "078870331023437cb917f5187429b093", "servicelevel_name": "Priority Mail", "servicelevel_token": "fedex_ground"}, "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"} + GetTransaction: + speakeasy-default-get-transaction: + parameters: + path: + TransactionId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"created_by": {"first_name": "Shwan", "last_name": "Ippotle", "username": "shippotle@shippo.com"}, "label_file_type": "PDF_4x6", "label_url": "https://shippo-delivery.s3.amazonaws.com/70ae8117ee1749e393f249d5b77c45e0.pdf?Signature=vDw1ltcyGveVR1OQoUDdzC43BY8%3D&Expires=1437093830&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_id": "915d94940ea54c3a80cbfa328722f5a1", "object_owner": "shippotle@shippo.com", "parcel": "e94c7fdfdc7b495dbb390a28d929d90a", "qr_code_url": "https://shippo-delivery.s3.amazonaws.com/96_qr_code.pdf?Signature=PEdWrp0mFWAGwJp7FW3b%2FeA2eyY%3D&Expires=1385930652&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "rate": "ec9f0d3adc9441449c85d315f0997fd5", "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"} + ListUserParcelTemplates: + speakeasy-default-list-user-parcel-templates: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"results": [{"distance_unit": "in", "height": "6", "length": "10", "name": "My Custom Template", "weight": "12", "weight_unit": "lb", "width": "8", "object_created": "2013-12-11T19:38:09.729Z", "object_id": "b958d3690bb04bb8b2986724872750f5", "object_owner": "shippotle@shippo.com", "object_updated": "2013-12-12T19:38:09.729Z", "template": {"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"}}, {"distance_unit": "in", "height": "6", "length": "10", "name": "My Custom Template", "weight": "12", "weight_unit": "lb", "width": "8", "object_created": "2013-12-11T19:38:09.729Z", "object_id": "b958d3690bb04bb8b2986724872750f5", "object_owner": "shippotle@shippo.com", "object_updated": "2013-12-12T19:38:09.729Z", "template": {"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"}}, {"distance_unit": "in", "height": "6", "length": "10", "name": "My Custom Template", "weight": "12", "weight_unit": "lb", "width": "8", "object_created": "2013-12-11T19:38:09.729Z", "object_id": "b958d3690bb04bb8b2986724872750f5", "object_owner": "shippotle@shippo.com", "object_updated": "2013-12-12T19:38:09.729Z", "template": {"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"}}]} + CreateUserParcelTemplate: + speakeasy-default-create-user-parcel-template: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"weight": "12", "weight_unit": "lb"} + responses: + "200": + application/json: {"distance_unit": "in", "height": "6", "length": "10", "name": "My Custom Template", "weight": "12", "weight_unit": "lb", "width": "8", "object_created": "2013-12-11T19:38:09.729Z", "object_id": "b958d3690bb04bb8b2986724872750f5", "object_owner": "shippotle@shippo.com", "object_updated": "2013-12-12T19:38:09.729Z", "template": {"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"}} + DeleteUserParcelTemplate: + speakeasy-default-delete-user-parcel-template: + parameters: + path: + UserParcelTemplateObjectId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + GetUserParcelTemplate: + speakeasy-default-get-user-parcel-template: + parameters: + path: + UserParcelTemplateObjectId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"distance_unit": "in", "height": "6", "length": "10", "name": "My Custom Template", "weight": "12", "weight_unit": "lb", "width": "8", "object_created": "2013-12-11T19:38:09.729Z", "object_id": "b958d3690bb04bb8b2986724872750f5", "object_owner": "shippotle@shippo.com", "object_updated": "2013-12-12T19:38:09.729Z", "template": {"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"}} + UpdateUserParcelTemplate: + speakeasy-default-update-user-parcel-template: + parameters: + path: + UserParcelTemplateObjectId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"distance_unit": "in", "height": "6", "length": "10", "name": "My Custom Template", "weight": "12", "weight_unit": "lb", "width": "8"} + responses: + "200": + application/json: {"distance_unit": "in", "height": "6", "length": "10", "name": "My Custom Template", "weight": "12", "weight_unit": "lb", "width": "8", "object_created": "2013-12-11T19:38:09.729Z", "object_id": "b958d3690bb04bb8b2986724872750f5", "object_owner": "shippotle@shippo.com", "object_updated": "2013-12-12T19:38:09.729Z", "template": {"carrier": "FedEx", "distance_unit": "in", "height": "1.5", "is_variable_dimensions": false, "length": "12.375", "name": "FedEx® Small Box (S1)", "token": "FedEx_Box_Small_1", "width": "10.875"}} + ListShippoAccounts: + speakeasy-default-list-shippo-accounts: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"email": "hippo@shippo.com", "first_name": "Shippo", "last_name": "Meister", "company_name": "Acme", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a"}, {"email": "hippo@shippo.com", "first_name": "Shippo", "last_name": "Meister", "company_name": "Acme", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a"}, {"email": "hippo@shippo.com", "first_name": "Shippo", "last_name": "Meister", "company_name": "Acme", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a"}]} + CreateShippoAccount: + speakeasy-default-create-shippo-account: + parameters: + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"email": "hippo@shippo.com", "first_name": "Shippo", "last_name": "Meister", "company_name": "Acme"} + responses: + "201": + application/json: {"email": "hippo@shippo.com", "first_name": "Shippo", "last_name": "Meister", "company_name": "Acme", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a"} + GetShippoAccount: + speakeasy-default-get-shippo-account: + parameters: + path: + ShippoAccountId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + responses: + "200": + application/json: {"email": "hippo@shippo.com", "first_name": "Shippo", "last_name": "Meister", "company_name": "Acme", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a"} + UpdateShippoAccount: + speakeasy-default-update-shippo-account: + parameters: + path: + ShippoAccountId: "" + header: + SHIPPO-API-VERSION: "2018-02-08" + requestBody: + application/json: {"email": "hippo@shippo.com", "first_name": "Shippo", "last_name": "Meister", "company_name": "Acme"} + responses: + "200": + application/json: {"email": "hippo@shippo.com", "first_name": "Shippo", "last_name": "Meister", "company_name": "Acme", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a"} + createWebhook: + speakeasy-default-create-webhook: + requestBody: + application/json: {"event": "batch_created", "url": "https://example.com/shippo-webhook", "active": true, "is_test": false} + responses: + "201": + application/json: {"event": "track_updated", "url": "https://example.com/shippo-webhook", "active": true, "is_test": false} + listWebhooks: + speakeasy-default-list-webhooks: + responses: + "200": + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"event": "track_updated", "url": "https://example.com/shippo-webhook", "active": true, "is_test": false}, {"event": "track_updated", "url": "https://example.com/shippo-webhook", "active": true, "is_test": false}]} + getWebhook: + speakeasy-default-get-webhook: + parameters: + path: + webhookId: "" + responses: + "200": + application/json: {"event": "track_updated", "url": "https://example.com/shippo-webhook", "active": true, "is_test": false} + updateWebhook: + speakeasy-default-update-webhook: + parameters: + path: + webhookId: "" + requestBody: + application/json: {"event": "batch_created", "url": "https://example.com/shippo-webhook", "active": true, "is_test": false} + responses: + "200": + application/json: {"event": "track_updated", "url": "https://example.com/shippo-webhook", "active": true, "is_test": false} + deleteWebhook: + speakeasy-default-delete-webhook: + parameters: + path: + webhookId: "" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 578e7e3..cadea7e 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,12 +12,13 @@ generation: auth: oAuth2ClientCredentialsEnabled: true csharp: - version: 5.0.0-beta.4 + version: 5.0.0-beta.5 additionalDependencies: [] author: Shippo clientServerStatusCodesAsErrors: true disableNamespacePascalCasingApr2024: true dotnetVersion: net6.0 + enableSourceLink: false flattenGlobalSecurity: true imports: option: openapi @@ -27,9 +28,12 @@ csharp: operations: Models/Requests shared: Models/Components webhooks: Models/Webhooks + includeDebugSymbols: false inputModelSuffix: input license: MIT License maxMethodParams: 3 outputModelSuffix: output packageName: Shippo + packageTags: "" responseFormat: flat + sourceDirectory: "" diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index d27ec49..3772b43 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.327.0 +speakeasyVersion: 1.401.2 sources: openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:b5a922d3b0c4c6410583f963b8af59c7e544e81490db81bd004e86fe8cf06d45 - sourceBlobDigest: sha256:d22d7427b397fc6b66ed98e3075265860e4caab1485770e98ab979ce468057f2 + sourceRevisionDigest: sha256:6c174e4396bf7257a6e1e755c9cf74d699fe12acf90d720564f9bd29b3f2146a + sourceBlobDigest: sha256:d20d1d724adbc75bf8db343aa4c16e626daaadbb57e55e4d1b486ea2277b1bb5 tags: - latest - main @@ -11,9 +11,8 @@ targets: csharp: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:b5a922d3b0c4c6410583f963b8af59c7e544e81490db81bd004e86fe8cf06d45 - sourceBlobDigest: sha256:d22d7427b397fc6b66ed98e3075265860e4caab1485770e98ab979ce468057f2 - outLocation: /github/workspace/repo + sourceRevisionDigest: sha256:6c174e4396bf7257a6e1e755c9cf74d699fe12acf90d720564f9bd29b3f2146a + sourceBlobDigest: sha256:d20d1d724adbc75bf8db343aa4c16e626daaadbb57e55e4d1b486ea2277b1bb5 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..d585717 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,26 @@ +# Contributing to This Repository + +Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements. + +## How to Report Issues + +If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes: + +- A clear and descriptive title +- Steps to reproduce the issue +- Expected and actual behavior +- Any relevant logs, screenshots, or error messages +- Information about your environment (e.g., operating system, software versions) + - For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed + +## Issue Triage and Upstream Fixes + +We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code. + +## Contact + +If you have any questions or need further assistance, please feel free to reach out by opening an issue. + +Thank you for your understanding and cooperation! + +The Maintainers diff --git a/NUGET.md b/NUGET.md index 3a19113..4a098f9 100644 --- a/NUGET.md +++ b/NUGET.md @@ -8,60 +8,23 @@ ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; - -var sdk = new ShippoSDK( - apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); - -var res = await sdk.Addresses.ListAsync( - page: 1, - results: 5, - shippoApiVersion: "2018-02-08"); - -// handle response -``` - - - -## Global Parameters - -## Global Parameters - -A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed. - -For example, you can set `SHIPPO-API-VERSION` to `"2018-02-08"` at SDK initialization and then you do not have to pass the same value on calls to operations like `List`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. - - -### Available Globals - -The following global parameter is available. - -| Name | Type | Required | Description | -| ---- | ---- |:--------:| ----------- | -| shippoApiVersion | string | | String used to pick a non-default API version to use | - - -### Example - -```csharp -using Shippo; using Shippo.Models.Components; -using Shippo.Models.Requests; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Addresses.ListAsync( page: 1, results: 5, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` - + ## Error Handling @@ -79,45 +42,50 @@ Handling errors in this SDK should largely match your expectations. All operati ```csharp using Shippo; +using Shippo.Models.Requests; using Shippo.Models.Components; using System; using Shippo.Models.Errors; -using Shippo.Models.Requests; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); - -InitiateOauth2SigninRequest req = new InitiateOauth2SigninRequest() { - CarrierAccountObjectId = "", - RedirectUri = "http://fine-cummerbund.biz", -}; + shippoApiVersion: "2018-02-08" +); try { + InitiateOauth2SigninRequest req = new InitiateOauth2SigninRequest() { + CarrierAccountObjectId = "", + RedirectUri = "https://enlightened-mortise.com/", + }; + var res = await sdk.CarrierAccounts.InitiateOauth2SigninAsync(req); + // handle response } catch (Exception ex) { if (ex is InitiateOauth2SigninResponseBody) { - // handle exception + // Handle exception data + throw; } else if (ex is InitiateOauth2SigninCarrierAccountsResponseBody) { - // handle exception + // Handle exception data + throw; } else if (ex is InitiateOauth2SigninCarrierAccountsResponseResponseBody) { - // handle exception + // Handle exception data + throw; } - else if (ex is Shippo.Models.Errors.SDKException) + else if (ex is Models.Errors.SDKException) { - // handle exception + // Handle default exception + throw; } } - ``` @@ -154,17 +122,19 @@ This SDK supports the following security scheme globally: To authenticate with the API the `APIKeyHeader` parameter must be set when initializing the SDK client instance. For example: ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Addresses.ListAsync( page: 1, results: 5, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` diff --git a/README.md b/README.md index 1a15a86..e8ea2b3 100644 --- a/README.md +++ b/README.md @@ -13,19 +13,38 @@ apiKeyHeader:"shippo_test_595d9cb0c0e14497bf07e75ecfec6c6d" ``` + +## Summary + +Shippo external API.: Use this API to integrate with the Shippo service + + + +## Table of Contents + +* [SDK Installation](#sdk-installation) +* [SDK Example Usage](#sdk-example-usage) +* [Available Resources and Operations](#available-resources-and-operations) +* [Error Handling](#error-handling) +* [Server Selection](#server-selection) +* [Authentication](#authentication) + + ## SDK Installation ### NuGet +To add the [NuGet](https://www.nuget.org/) package to a .NET project: ```bash dotnet add package Shippo ``` ### Locally +To add a reference to a local instance of the SDK in a .NET project: ```bash -dotnet add reference path/to/Shippo.csproj +dotnet add reference Shippo/Shippo.csproj ``` @@ -36,17 +55,19 @@ dotnet add reference path/to/Shippo.csproj ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Addresses.ListAsync( page: 1, results: 5, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -101,6 +122,9 @@ Review our full guides and references at [https://docs.goshippo.com/](https://do ## Available Resources and Operations +
+Available methods + ### [Addresses](docs/sdks/addresses/README.md) * [List](docs/sdks/addresses/README.md#list) - List all addresses @@ -126,6 +150,11 @@ Review our full guides and references at [https://docs.goshippo.com/](https://do * [Register](docs/sdks/carrieraccounts/README.md#register) - Add a Shippo carrier account * [GetRegistrationStatus](docs/sdks/carrieraccounts/README.md#getregistrationstatus) - Get Carrier Registration status +### [CarrierParcelTemplates](docs/sdks/carrierparceltemplates/README.md) + +* [List](docs/sdks/carrierparceltemplates/README.md#list) - List all carrier parcel templates +* [Get](docs/sdks/carrierparceltemplates/README.md#get) - Retrieve a carrier parcel templates + ### [CustomsDeclarations](docs/sdks/customsdeclarations/README.md) * [List](docs/sdks/customsdeclarations/README.md#list) - List all customs declarations @@ -138,13 +167,6 @@ Review our full guides and references at [https://docs.goshippo.com/](https://do * [Create](docs/sdks/customsitems/README.md#create) - Create a new customs item * [Get](docs/sdks/customsitems/README.md#get) - Retrieve a customs item -### [RatesAtCheckout](docs/sdks/ratesatcheckout/README.md) - -* [Create](docs/sdks/ratesatcheckout/README.md#create) - Generate a live rates request -* [GetDefaultParcelTemplate](docs/sdks/ratesatcheckout/README.md#getdefaultparceltemplate) - Show current default parcel template -* [UpdateDefaultParcelTemplate](docs/sdks/ratesatcheckout/README.md#updatedefaultparceltemplate) - Update default parcel template -* [DeleteDefaultParcelTemplate](docs/sdks/ratesatcheckout/README.md#deletedefaultparceltemplate) - Clear current default parcel template - ### [Manifests](docs/sdks/manifests/README.md) * [List](docs/sdks/manifests/README.md#list) - List all manifests @@ -157,11 +179,6 @@ Review our full guides and references at [https://docs.goshippo.com/](https://do * [Create](docs/sdks/orders/README.md#create) - Create a new order * [Get](docs/sdks/orders/README.md#get) - Retrieve an order -### [CarrierParcelTemplates](docs/sdks/carrierparceltemplates/README.md) - -* [List](docs/sdks/carrierparceltemplates/README.md#list) - List all carrier parcel templates -* [Get](docs/sdks/carrierparceltemplates/README.md#get) - Retrieve a carrier parcel templates - ### [Parcels](docs/sdks/parcels/README.md) * [List](docs/sdks/parcels/README.md#list) - List all parcels @@ -178,6 +195,13 @@ Review our full guides and references at [https://docs.goshippo.com/](https://do * [ListShipmentRates](docs/sdks/rates/README.md#listshipmentrates) - Retrieve shipment rates * [ListShipmentRatesByCurrencyCode](docs/sdks/rates/README.md#listshipmentratesbycurrencycode) - Retrieve shipment rates in currency +### [RatesAtCheckout](docs/sdks/ratesatcheckout/README.md) + +* [Create](docs/sdks/ratesatcheckout/README.md#create) - Generate a live rates request +* [GetDefaultParcelTemplate](docs/sdks/ratesatcheckout/README.md#getdefaultparceltemplate) - Show current default parcel template +* [UpdateDefaultParcelTemplate](docs/sdks/ratesatcheckout/README.md#updatedefaultparceltemplate) - Update default parcel template +* [DeleteDefaultParcelTemplate](docs/sdks/ratesatcheckout/README.md#deletedefaultparceltemplate) - Clear current default parcel template + ### [Refunds](docs/sdks/refunds/README.md) * [Create](docs/sdks/refunds/README.md#create) - Create a refund @@ -197,6 +221,14 @@ Review our full guides and references at [https://docs.goshippo.com/](https://do * [Create](docs/sdks/shipments/README.md#create) - Create a new shipment * [Get](docs/sdks/shipments/README.md#get) - Retrieve a shipment +### [ShippoAccounts](docs/sdks/shippoaccounts/README.md) + +* [List](docs/sdks/shippoaccounts/README.md#list) - List all Shippo Accounts +* [Create](docs/sdks/shippoaccounts/README.md#create) - Create a Shippo Account +* [Get](docs/sdks/shippoaccounts/README.md#get) - Retrieve a Shippo Account +* [Update](docs/sdks/shippoaccounts/README.md#update) - Update a Shippo Account + + ### [TrackingStatus](docs/sdks/trackingstatus/README.md) * [Create](docs/sdks/trackingstatus/README.md#create) - Register a tracking webhook @@ -216,13 +248,6 @@ Review our full guides and references at [https://docs.goshippo.com/](https://do * [Get](docs/sdks/userparceltemplates/README.md#get) - Retrieves a user parcel template * [Update](docs/sdks/userparceltemplates/README.md#update) - Update an existing user parcel template -### [ShippoAccounts](docs/sdks/shippoaccounts/README.md) - -* [List](docs/sdks/shippoaccounts/README.md#list) - List all Shippo Accounts -* [Create](docs/sdks/shippoaccounts/README.md#create) - Create a Shippo Account -* [Get](docs/sdks/shippoaccounts/README.md#get) - Retrieve a Shippo Account -* [Update](docs/sdks/shippoaccounts/README.md#update) - Update a Shippo Account - ### [Webhooks](docs/sdks/webhooks/README.md) * [CreateWebhook](docs/sdks/webhooks/README.md#createwebhook) - Create a new webhook @@ -230,6 +255,8 @@ Review our full guides and references at [https://docs.goshippo.com/](https://do * [GetWebhook](docs/sdks/webhooks/README.md#getwebhook) - Retrieve a specific webhook * [UpdateWebhook](docs/sdks/webhooks/README.md#updatewebhook) - Update an existing webhook * [DeleteWebhook](docs/sdks/webhooks/README.md#deletewebhook) - Delete a specific webhook + +
diff --git a/RELEASES.md b/RELEASES.md index 9a67b67..a4942e5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -58,4 +58,14 @@ Based on: ### Generated - [csharp v5.0.0-beta.4] . ### Releases -- [NuGet v5.0.0-beta.4] https://www.nuget.org/packages/Shippo/5.0.0-beta.4 - . \ No newline at end of file +- [NuGet v5.0.0-beta.4] https://www.nuget.org/packages/Shippo/5.0.0-beta.4 - . + +## 2024-09-23 00:17:54 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v5.0.0-beta.5] . +### Releases +- [NuGet v5.0.0-beta.5] https://www.nuget.org/packages/Shippo/5.0.0-beta.5 - . \ No newline at end of file diff --git a/Shippo/Addresses.cs b/Shippo/Addresses.cs index cd0a769..cf6dc7a 100644 --- a/Shippo/Addresses.cs +++ b/Shippo/Addresses.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -80,15 +80,15 @@ public class Addresses: IAddresses { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Addresses(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Addresses(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -158,19 +158,18 @@ public async Task ListAsync(long? page = null, long? resul { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task
CreateAsync(AddressCreateRequest addressCreateRequest, string? shippoApiVersion = null) @@ -244,16 +243,15 @@ public async Task
CreateAsync(AddressCreateRequest addressCreateRequest var obj = ResponseBodyDeserializer.Deserialize
(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task
GetAsync(string addressId, string? shippoApiVersion = null) @@ -320,16 +318,15 @@ public async Task
GetAsync(string addressId, string? shippoApiVersion = var obj = ResponseBodyDeserializer.Deserialize
(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task
ValidateAsync(string addressId, string? shippoApiVersion = null) @@ -396,16 +393,15 @@ public async Task
ValidateAsync(string addressId, string? shippoApiVers var obj = ResponseBodyDeserializer.Deserialize
(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/Batches.cs b/Shippo/Batches.cs index d720b00..38814fc 100644 --- a/Shippo/Batches.cs +++ b/Shippo/Batches.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -111,15 +111,15 @@ public class Batches: IBatches { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Batches(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Batches(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -198,16 +198,15 @@ public async Task CreateAsync(BatchCreateRequest batchCreateRequest, stri var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string batchId, string? shippoApiVersion = null) @@ -274,16 +273,15 @@ public async Task GetAsync(string batchId, string? shippoApiVersion = nul var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task AddShipmentsAsync(string batchId, List requestBody, string? shippoApiVersion = null) @@ -357,16 +355,15 @@ public async Task AddShipmentsAsync(string batchId, List(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task PurchaseAsync(string batchId, string? shippoApiVersion = null) @@ -433,16 +430,15 @@ public async Task PurchaseAsync(string batchId, string? shippoApiVersion var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task RemoveShipmentsAsync(string batchId, List requestBody, string? shippoApiVersion = null) @@ -516,16 +512,15 @@ public async Task RemoveShipmentsAsync(string batchId, List reque var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/CarrierAccounts.cs b/Shippo/CarrierAccounts.cs index 6234fbb..706661e 100644 --- a/Shippo/CarrierAccounts.cs +++ b/Shippo/CarrierAccounts.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -44,7 +44,7 @@ public interface ICarrierAccounts /// By default, if the query parameter is omitted, the `service_levels` property will not be included in the response. /// /// - Task ListAsync(ListCarrierAccountsRequest request); + Task ListAsync(ListCarrierAccountsRequest? request = null); /// /// Create a new carrier account @@ -113,15 +113,15 @@ public class CarrierAccounts: ICarrierAccounts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public CarrierAccounts(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public CarrierAccounts(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -129,12 +129,8 @@ public CarrierAccounts(ISpeakeasyHttpClient client, Func? securitySour SDKConfiguration = config; } - public async Task ListAsync(ListCarrierAccountsRequest request) + public async Task ListAsync(ListCarrierAccountsRequest? request = null) { - if (request == null) - { - request = new ListCarrierAccountsRequest(); - } request.ShippoApiVersion ??= SDKConfiguration.ShippoApiVersion; string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); @@ -189,19 +185,18 @@ public async Task ListAsync(ListCarrierAccountsRequ { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(ConnectExistingOwnAccountRequest connectExistingOwnAccountRequest, string? shippoApiVersion = null) @@ -275,16 +270,15 @@ public async Task CreateAsync(ConnectExistingOwnAccountRequest c var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string carrierAccountId, string? shippoApiVersion = null) @@ -351,16 +345,15 @@ public async Task GetAsync(string carrierAccountId, string? ship var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task UpdateAsync(string carrierAccountId, string? shippoApiVersion = null, CarrierAccountBase? carrierAccountBase = null) @@ -434,16 +427,15 @@ public async Task UpdateAsync(string carrierAccountId, string? s var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task InitiateOauth2SigninAsync(InitiateOauth2SigninRequest request) @@ -504,7 +496,7 @@ public async Task InitiateOauth2SigninAsync(Initia int responseStatusCode = (int)httpResponse.StatusCode; if(responseStatusCode == 302) { - return new InitiateOauth2SigninResponse();; + return new InitiateOauth2SigninResponse(); } else if(responseStatusCode == 400) { @@ -513,10 +505,8 @@ public async Task InitiateOauth2SigninAsync(Initia var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 401) { @@ -525,10 +515,8 @@ public async Task InitiateOauth2SigninAsync(Initia var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 404) { @@ -537,19 +525,15 @@ public async Task InitiateOauth2SigninAsync(Initia var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); throw obj!; } - else - { - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task RegisterAsync(RegisterCarrierAccountRequestBody requestBody, string? shippoApiVersion = null) @@ -623,16 +607,15 @@ public async Task RegisterAsync(RegisterCarrierAccountRequestBod var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetRegistrationStatusAsync(Carrier carrier, string? shippoApiVersion = null) @@ -699,16 +682,15 @@ public async Task GetRegistrationStatusAsync(C var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/CarrierParcelTemplates.cs b/Shippo/CarrierParcelTemplates.cs index bcfe1da..867b44e 100644 --- a/Shippo/CarrierParcelTemplates.cs +++ b/Shippo/CarrierParcelTemplates.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -70,15 +70,15 @@ public class CarrierParcelTemplates: ICarrierParcelTemplates { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public CarrierParcelTemplates(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public CarrierParcelTemplates(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -148,19 +148,18 @@ public async Task ListAsync(Include? include = null, { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string carrierParcelTemplateToken, string? shippoApiVersion = null) @@ -227,16 +226,15 @@ public async Task GetAsync(string carrierParcelTemplateTo var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/CustomsDeclarations.cs b/Shippo/CustomsDeclarations.cs index bf5fc98..460aec7 100644 --- a/Shippo/CustomsDeclarations.cs +++ b/Shippo/CustomsDeclarations.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -73,15 +73,15 @@ public class CustomsDeclarations: ICustomsDeclarations { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public CustomsDeclarations(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public CustomsDeclarations(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -151,19 +151,18 @@ public async Task ListAsync(long? page = null, { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(CustomsDeclarationCreateRequest customsDeclarationCreateRequest, string? shippoApiVersion = null) @@ -237,16 +236,15 @@ public async Task CreateAsync(CustomsDeclarationCreateReques var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string customsDeclarationId, long? page = null, string? shippoApiVersion = null) @@ -314,16 +312,15 @@ public async Task GetAsync(string customsDeclarationId, long var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/CustomsItems.cs b/Shippo/CustomsItems.cs index 515d855..701fa29 100644 --- a/Shippo/CustomsItems.cs +++ b/Shippo/CustomsItems.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -71,15 +71,15 @@ public class CustomsItems: ICustomsItems { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public CustomsItems(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public CustomsItems(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -149,19 +149,18 @@ public async Task ListAsync(long? page = null, long? r { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(CustomsItemCreateRequest customsItemCreateRequest, string? shippoApiVersion = null) @@ -235,16 +234,15 @@ public async Task CreateAsync(CustomsItemCreateRequest customsItemC var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string customsItemId, long? page = null, string? shippoApiVersion = null) @@ -312,16 +310,15 @@ public async Task GetAsync(string customsItemId, long? page = null, var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/Hooks/HookTypes.cs b/Shippo/Hooks/HookTypes.cs index 51442b1..8fa6013 100644 --- a/Shippo/Hooks/HookTypes.cs +++ b/Shippo/Hooks/HookTypes.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Hooks/SDKHooks.cs b/Shippo/Hooks/SDKHooks.cs index 8859a98..9d8f18a 100644 --- a/Shippo/Hooks/SDKHooks.cs +++ b/Shippo/Hooks/SDKHooks.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Manifests.cs b/Shippo/Manifests.cs index 5672322..dea7881 100644 --- a/Shippo/Manifests.cs +++ b/Shippo/Manifests.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -83,15 +83,15 @@ public class Manifests: IManifests { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Manifests(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Manifests(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -161,19 +161,18 @@ public async Task ListAsync(long? page = null, long? resu { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(ManifestCreateRequest manifestCreateRequest, string? shippoApiVersion = null) @@ -247,16 +246,15 @@ public async Task CreateAsync(ManifestCreateRequest manifestCreateRequ var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string manifestId, string? shippoApiVersion = null) @@ -323,16 +321,15 @@ public async Task GetAsync(string manifestId, string? shippoApiVersion var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/Models/Components/Address.cs b/Shippo/Models/Components/Address.cs index 80ae2ca..11c3f12 100644 --- a/Shippo/Models/Components/Address.cs +++ b/Shippo/Models/Components/Address.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -108,10 +108,11 @@ public class Address public string? Zip { get; set; } /// - /// Example: `US` or `DE`. All accepted values can be found on the
+ /// ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we reccomend using country codes like `US` or `DE`.
/// /// - /// <a href="http://www.iso.org/" target="blank">Official ISO Website</a>.
+ /// If using country names, please ensure they are spelled correctly and in English. Country names are converted to country codes.
+ /// Refer to this <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements" target="_blank">guide</a> for a list of country codes.
/// Sending a country is always required. ///
///
diff --git a/Shippo/Models/Components/AddressCompleteCreateRequest.cs b/Shippo/Models/Components/AddressCompleteCreateRequest.cs index 00d6734..730ef7c 100644 --- a/Shippo/Models/Components/AddressCompleteCreateRequest.cs +++ b/Shippo/Models/Components/AddressCompleteCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -106,10 +106,11 @@ public class AddressCompleteCreateRequest public string Zip { get; set; } = default!; /// - /// Example: `US` or `DE`. All accepted values can be found on the
+ /// ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we reccomend using country codes like `US` or `DE`.
/// /// - /// <a href="http://www.iso.org/" target="blank">Official ISO Website</a>.
+ /// If using country names, please ensure they are spelled correctly and in English. Country names are converted to country codes.
+ /// Refer to this <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements" target="_blank">guide</a> for a list of country codes.
/// Sending a country is always required. ///
///
diff --git a/Shippo/Models/Components/AddressCreateRequest.cs b/Shippo/Models/Components/AddressCreateRequest.cs index 7733b36..aa545e8 100644 --- a/Shippo/Models/Components/AddressCreateRequest.cs +++ b/Shippo/Models/Components/AddressCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -106,10 +106,11 @@ public class AddressCreateRequest public string? Zip { get; set; } /// - /// Example: `US` or `DE`. All accepted values can be found on the
+ /// ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we reccomend using country codes like `US` or `DE`.
/// /// - /// <a href="http://www.iso.org/" target="blank">Official ISO Website</a>.
+ /// If using country names, please ensure they are spelled correctly and in English. Country names are converted to country codes.
+ /// Refer to this <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements" target="_blank">guide</a> for a list of country codes.
/// Sending a country is always required. ///
///
diff --git a/Shippo/Models/Components/AddressFrom.cs b/Shippo/Models/Components/AddressFrom.cs index a221dff..91fdfdb 100644 --- a/Shippo/Models/Components/AddressFrom.cs +++ b/Shippo/Models/Components/AddressFrom.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,15 +54,19 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(AddressFrom.AddressFromConverter))] public class AddressFrom { public AddressFrom(AddressFromType type) { Type = type; } - public AddressCreateRequest? AddressCreateRequest { get; set; } - public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public AddressCreateRequest? AddressCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } public AddressFromType Type { get; set; } @@ -104,6 +108,7 @@ public class AddressFromConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new AddressFrom(AddressFromType.AddressCreateRequest) @@ -123,14 +128,14 @@ public class AddressFromConverter : JsonConverter { throw; } - + if (json[0] == '"' && json[^1] == '"'){ return new AddressFrom(AddressFromType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -151,7 +156,6 @@ public class AddressFromConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -179,8 +183,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/AddressImporter.cs b/Shippo/Models/Components/AddressImporter.cs index 2a5f950..bb50d34 100644 --- a/Shippo/Models/Components/AddressImporter.cs +++ b/Shippo/Models/Components/AddressImporter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/AddressPaginatedList.cs b/Shippo/Models/Components/AddressPaginatedList.cs index a45d138..4cdbb2c 100644 --- a/Shippo/Models/Components/AddressPaginatedList.cs +++ b/Shippo/Models/Components/AddressPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/AddressReturn.cs b/Shippo/Models/Components/AddressReturn.cs index 637ca2c..aa5232c 100644 --- a/Shippo/Models/Components/AddressReturn.cs +++ b/Shippo/Models/Components/AddressReturn.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,15 +54,19 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(AddressReturn.AddressReturnConverter))] public class AddressReturn { public AddressReturn(AddressReturnType type) { Type = type; } - public AddressCreateRequest? AddressCreateRequest { get; set; } - public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public AddressCreateRequest? AddressCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } public AddressReturnType Type { get; set; } @@ -104,6 +108,7 @@ public class AddressReturnConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new AddressReturn(AddressReturnType.AddressCreateRequest) @@ -123,14 +128,14 @@ public class AddressReturnConverter : JsonConverter { throw; } - + if (json[0] == '"' && json[^1] == '"'){ return new AddressReturn(AddressReturnType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -151,7 +156,6 @@ public class AddressReturnConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -179,8 +183,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/AddressTo.cs b/Shippo/Models/Components/AddressTo.cs index 8478461..31d59f4 100644 --- a/Shippo/Models/Components/AddressTo.cs +++ b/Shippo/Models/Components/AddressTo.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,15 +54,19 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(AddressTo.AddressToConverter))] public class AddressTo { public AddressTo(AddressToType type) { Type = type; } - public AddressCreateRequest? AddressCreateRequest { get; set; } - public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public AddressCreateRequest? AddressCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } public AddressToType Type { get; set; } @@ -104,6 +108,7 @@ public class AddressToConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new AddressTo(AddressToType.AddressCreateRequest) @@ -123,14 +128,14 @@ public class AddressToConverter : JsonConverter { throw; } - + if (json[0] == '"' && json[^1] == '"'){ return new AddressTo(AddressToType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -151,7 +156,6 @@ public class AddressToConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -179,8 +183,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/AddressValidationResults.cs b/Shippo/Models/Components/AddressValidationResults.cs index 773d98c..404ea7a 100644 --- a/Shippo/Models/Components/AddressValidationResults.cs +++ b/Shippo/Models/Components/AddressValidationResults.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/AddressValidationResultsMessage.cs b/Shippo/Models/Components/AddressValidationResultsMessage.cs index 32f2815..e4e1200 100644 --- a/Shippo/Models/Components/AddressValidationResultsMessage.cs +++ b/Shippo/Models/Components/AddressValidationResultsMessage.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/AddressValidationResultsMessageCodeEnum.cs b/Shippo/Models/Components/AddressValidationResultsMessageCodeEnum.cs index b28b7f9..b60e5e8 100644 --- a/Shippo/Models/Components/AddressValidationResultsMessageCodeEnum.cs +++ b/Shippo/Models/Components/AddressValidationResultsMessageCodeEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/AddressValidationResultsMessageSourceEnum.cs b/Shippo/Models/Components/AddressValidationResultsMessageSourceEnum.cs index 487c216..5d05683 100644 --- a/Shippo/Models/Components/AddressValidationResultsMessageSourceEnum.cs +++ b/Shippo/Models/Components/AddressValidationResultsMessageSourceEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Alcohol.cs b/Shippo/Models/Components/Alcohol.cs index 8d1acb5..69e2f30 100644 --- a/Shippo/Models/Components/Alcohol.cs +++ b/Shippo/Models/Components/Alcohol.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/AncillaryEndorsement.cs b/Shippo/Models/Components/AncillaryEndorsement.cs index 867db00..3dd10ae 100644 --- a/Shippo/Models/Components/AncillaryEndorsement.cs +++ b/Shippo/Models/Components/AncillaryEndorsement.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Attributes.cs b/Shippo/Models/Components/Attributes.cs index 51eedd8..6c42ed2 100644 --- a/Shippo/Models/Components/Attributes.cs +++ b/Shippo/Models/Components/Attributes.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Authentication.cs b/Shippo/Models/Components/Authentication.cs index 4beffd6..2307afa 100644 --- a/Shippo/Models/Components/Authentication.cs +++ b/Shippo/Models/Components/Authentication.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Batch.cs b/Shippo/Models/Components/Batch.cs index af6828c..404a0ae 100644 --- a/Shippo/Models/Components/Batch.cs +++ b/Shippo/Models/Components/Batch.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/BatchCreateRequest.cs b/Shippo/Models/Components/BatchCreateRequest.cs index 9ef4406..0a471bb 100644 --- a/Shippo/Models/Components/BatchCreateRequest.cs +++ b/Shippo/Models/Components/BatchCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/BatchShipment.cs b/Shippo/Models/Components/BatchShipment.cs index 413f0d4..6e4229a 100644 --- a/Shippo/Models/Components/BatchShipment.cs +++ b/Shippo/Models/Components/BatchShipment.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/BatchShipmentCreateRequest.cs b/Shippo/Models/Components/BatchShipmentCreateRequest.cs index 00db012..93f03c4 100644 --- a/Shippo/Models/Components/BatchShipmentCreateRequest.cs +++ b/Shippo/Models/Components/BatchShipmentCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/BatchShipmentPaginatedList.cs b/Shippo/Models/Components/BatchShipmentPaginatedList.cs index e921afc..526d3ac 100644 --- a/Shippo/Models/Components/BatchShipmentPaginatedList.cs +++ b/Shippo/Models/Components/BatchShipmentPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/BatchStatus.cs b/Shippo/Models/Components/BatchStatus.cs index fb8c4e7..36139a3 100644 --- a/Shippo/Models/Components/BatchStatus.cs +++ b/Shippo/Models/Components/BatchStatus.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Billing.cs b/Shippo/Models/Components/Billing.cs index 14e82b2..dcdc3f7 100644 --- a/Shippo/Models/Components/Billing.cs +++ b/Shippo/Models/Components/Billing.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -41,7 +41,7 @@ public class Billing /// Party to be billed. (Leave blank for DHL Germany.) ///
[JsonProperty("type")] - public Type? Type { get; set; } + public Models.Components.Type? Type { get; set; } /// /// ZIP code of account number to be billed (required for UPS if there is a zip on the billing account). diff --git a/Shippo/Models/Components/BuildingLocationType.cs b/Shippo/Models/Components/BuildingLocationType.cs index d154df9..e958464 100644 --- a/Shippo/Models/Components/BuildingLocationType.cs +++ b/Shippo/Models/Components/BuildingLocationType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/BuildingType.cs b/Shippo/Models/Components/BuildingType.cs index 94c6391..ab9a34c 100644 --- a/Shippo/Models/Components/BuildingType.cs +++ b/Shippo/Models/Components/BuildingType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccount.cs b/Shippo/Models/Components/CarrierAccount.cs index 1aed531..8ad4b5a 100644 --- a/Shippo/Models/Components/CarrierAccount.cs +++ b/Shippo/Models/Components/CarrierAccount.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountBase.cs b/Shippo/Models/Components/CarrierAccountBase.cs index a4ef1c2..859ae29 100644 --- a/Shippo/Models/Components/CarrierAccountBase.cs +++ b/Shippo/Models/Components/CarrierAccountBase.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountBaseParameters.cs b/Shippo/Models/Components/CarrierAccountBaseParameters.cs index 2a2e01c..545ebd3 100644 --- a/Shippo/Models/Components/CarrierAccountBaseParameters.cs +++ b/Shippo/Models/Components/CarrierAccountBaseParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -57,16 +57,22 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(CarrierAccountBaseParameters.CarrierAccountBaseParametersConverter))] public class CarrierAccountBaseParameters { public CarrierAccountBaseParameters(CarrierAccountBaseParametersType type) { Type = type; } - public Dictionary? MapOfAny { get; set; } - public FedExConnectExistingOwnAccountParameters? FedExConnectExistingOwnAccountParameters { get; set; } - public UPSConnectExistingOwnAccountParameters? UPSConnectExistingOwnAccountParameters { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public Dictionary? MapOfAny { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public FedExConnectExistingOwnAccountParameters? FedExConnectExistingOwnAccountParameters { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public UPSConnectExistingOwnAccountParameters? UPSConnectExistingOwnAccountParameters { get; set; } public CarrierAccountBaseParametersType Type { get; set; } @@ -116,6 +122,7 @@ public class CarrierAccountBaseParametersConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new CarrierAccountBaseParameters(CarrierAccountBaseParametersType.FedExConnectExistingOwnAccountParameters) @@ -135,7 +142,7 @@ public class CarrierAccountBaseParametersConverter : JsonConverter { throw; } - + try { return new CarrierAccountBaseParameters(CarrierAccountBaseParametersType.UPSConnectExistingOwnAccountParameters) @@ -155,7 +162,7 @@ public class CarrierAccountBaseParametersConverter : JsonConverter { throw; } - + try { return new CarrierAccountBaseParameters(CarrierAccountBaseParametersType.MapOfAny) @@ -175,7 +182,7 @@ public class CarrierAccountBaseParametersConverter : JsonConverter { throw; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -196,7 +203,6 @@ public class CarrierAccountBaseParametersConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -229,8 +235,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/CarrierAccountCanadaPostCreateParameters.cs b/Shippo/Models/Components/CarrierAccountCanadaPostCreateParameters.cs index 8b6d4a7..0cf08ef 100644 --- a/Shippo/Models/Components/CarrierAccountCanadaPostCreateParameters.cs +++ b/Shippo/Models/Components/CarrierAccountCanadaPostCreateParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountCanadaPostCreateRequest.cs b/Shippo/Models/Components/CarrierAccountCanadaPostCreateRequest.cs index 03c8873..5331408 100644 --- a/Shippo/Models/Components/CarrierAccountCanadaPostCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountCanadaPostCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountChronopostCreateRequest.cs b/Shippo/Models/Components/CarrierAccountChronopostCreateRequest.cs index 573ff48..ef61c43 100644 --- a/Shippo/Models/Components/CarrierAccountChronopostCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountChronopostCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountChronopostCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountChronopostCreateRequestParameters.cs index 947c112..c6c9583 100644 --- a/Shippo/Models/Components/CarrierAccountChronopostCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountChronopostCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountColissimoCreateRequest.cs b/Shippo/Models/Components/CarrierAccountColissimoCreateRequest.cs index 4225b9c..1d7a9f0 100644 --- a/Shippo/Models/Components/CarrierAccountColissimoCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountColissimoCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountColissimoCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountColissimoCreateRequestParameters.cs index 50b21a6..5c4cc9d 100644 --- a/Shippo/Models/Components/CarrierAccountColissimoCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountColissimoCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountCorreosCreateRequest.cs b/Shippo/Models/Components/CarrierAccountCorreosCreateRequest.cs index 2fda015..bed6878 100644 --- a/Shippo/Models/Components/CarrierAccountCorreosCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountCorreosCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountCorreosCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountCorreosCreateRequestParameters.cs index e965502..a18cfb5 100644 --- a/Shippo/Models/Components/CarrierAccountCorreosCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountCorreosCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequest.cs b/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequest.cs index dbd8f85..e7f9c77 100644 --- a/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequestParameters.cs index 34b494d..5610d62 100644 --- a/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountDPDUKCreateRequest.cs b/Shippo/Models/Components/CarrierAccountDPDUKCreateRequest.cs index c474aef..4c54959 100644 --- a/Shippo/Models/Components/CarrierAccountDPDUKCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountDPDUKCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountDPDUKCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountDPDUKCreateRequestParameters.cs index ba01c79..b749c10 100644 --- a/Shippo/Models/Components/CarrierAccountDPDUKCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountDPDUKCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequest.cs b/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequest.cs index 8678fbf..be0c8cb 100644 --- a/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequestParameters.cs index 080ec91..92bc51e 100644 --- a/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountDpdDeCreateRequest.cs b/Shippo/Models/Components/CarrierAccountDpdDeCreateRequest.cs index f963df3..7484088 100644 --- a/Shippo/Models/Components/CarrierAccountDpdDeCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountDpdDeCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountDpdDeCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountDpdDeCreateRequestParameters.cs index 11a1c8b..c7c5ee8 100644 --- a/Shippo/Models/Components/CarrierAccountDpdDeCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountDpdDeCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountFedExCreateRequest.cs b/Shippo/Models/Components/CarrierAccountFedExCreateRequest.cs index bb74d70..a3293ca 100644 --- a/Shippo/Models/Components/CarrierAccountFedExCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountFedExCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountFedExCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountFedExCreateRequestParameters.cs index bc719f8..f245f2f 100644 --- a/Shippo/Models/Components/CarrierAccountFedExCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountFedExCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountHermesUKCreateRequest.cs b/Shippo/Models/Components/CarrierAccountHermesUKCreateRequest.cs index 69a955e..afe4e02 100644 --- a/Shippo/Models/Components/CarrierAccountHermesUKCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountHermesUKCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountHermesUKCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountHermesUKCreateRequestParameters.cs index 7fa5dfa..edd4a0a 100644 --- a/Shippo/Models/Components/CarrierAccountHermesUKCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountHermesUKCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequest.cs b/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequest.cs index 9da97be..978f2eb 100644 --- a/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequestParameters.cs index 12e8ff1..3d010b9 100644 --- a/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountPaginatedList.cs b/Shippo/Models/Components/CarrierAccountPaginatedList.cs index b951ca2..43fb8f4 100644 --- a/Shippo/Models/Components/CarrierAccountPaginatedList.cs +++ b/Shippo/Models/Components/CarrierAccountPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountParameters.cs b/Shippo/Models/Components/CarrierAccountParameters.cs index 293f198..8647aef 100644 --- a/Shippo/Models/Components/CarrierAccountParameters.cs +++ b/Shippo/Models/Components/CarrierAccountParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -57,16 +57,22 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(CarrierAccountParameters.CarrierAccountParametersConverter))] public class CarrierAccountParameters { public CarrierAccountParameters(CarrierAccountParametersType type) { Type = type; } - public Dictionary? MapOfAny { get; set; } - public FedExConnectExistingOwnAccountParameters? FedExConnectExistingOwnAccountParameters { get; set; } - public UPSConnectExistingOwnAccountParameters? UPSConnectExistingOwnAccountParameters { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public Dictionary? MapOfAny { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public FedExConnectExistingOwnAccountParameters? FedExConnectExistingOwnAccountParameters { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public UPSConnectExistingOwnAccountParameters? UPSConnectExistingOwnAccountParameters { get; set; } public CarrierAccountParametersType Type { get; set; } @@ -116,6 +122,7 @@ public class CarrierAccountParametersConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new CarrierAccountParameters(CarrierAccountParametersType.FedExConnectExistingOwnAccountParameters) @@ -135,7 +142,7 @@ public class CarrierAccountParametersConverter : JsonConverter { throw; } - + try { return new CarrierAccountParameters(CarrierAccountParametersType.UPSConnectExistingOwnAccountParameters) @@ -155,7 +162,7 @@ public class CarrierAccountParametersConverter : JsonConverter { throw; } - + try { return new CarrierAccountParameters(CarrierAccountParametersType.MapOfAny) @@ -175,7 +182,7 @@ public class CarrierAccountParametersConverter : JsonConverter { throw; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -196,7 +203,6 @@ public class CarrierAccountParametersConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -229,8 +235,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequest.cs b/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequest.cs index db47aa2..b7a90e5 100644 --- a/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequestParameters.cs index 5189aa7..bbe8b24 100644 --- a/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountRegistrationStatus.cs b/Shippo/Models/Components/CarrierAccountRegistrationStatus.cs index 5752473..f66814f 100644 --- a/Shippo/Models/Components/CarrierAccountRegistrationStatus.cs +++ b/Shippo/Models/Components/CarrierAccountRegistrationStatus.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountSendleCreateRequest.cs b/Shippo/Models/Components/CarrierAccountSendleCreateRequest.cs new file mode 100644 index 0000000..557646e --- /dev/null +++ b/Shippo/Models/Components/CarrierAccountSendleCreateRequest.cs @@ -0,0 +1,25 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Shippo.Models.Components +{ + using Newtonsoft.Json; + using Shippo.Models.Components; + using Shippo.Utils; + + public class CarrierAccountSendleCreateRequest + { + + [JsonProperty("carrier")] + public string Carrier { get; set; } = default!; + + [JsonProperty("parameters")] + public CarrierAccountSendleCreateRequestParameters Parameters { get; set; } = default!; + } +} \ No newline at end of file diff --git a/Shippo/Models/Components/CarrierAccountSendleCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountSendleCreateRequestParameters.cs new file mode 100644 index 0000000..5146354 --- /dev/null +++ b/Shippo/Models/Components/CarrierAccountSendleCreateRequestParameters.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Shippo.Models.Components +{ + using Shippo.Utils; + + public class CarrierAccountSendleCreateRequestParameters + { + } +} \ No newline at end of file diff --git a/Shippo/Models/Components/CarrierAccountServiceLevel.cs b/Shippo/Models/Components/CarrierAccountServiceLevel.cs index 4526b80..ef7cb86 100644 --- a/Shippo/Models/Components/CarrierAccountServiceLevel.cs +++ b/Shippo/Models/Components/CarrierAccountServiceLevel.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountUPSCreateRequest.cs b/Shippo/Models/Components/CarrierAccountUPSCreateRequest.cs index b481504..9b5c95d 100644 --- a/Shippo/Models/Components/CarrierAccountUPSCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountUPSCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountUPSCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountUPSCreateRequestParameters.cs index 7e5bc2c..31362a9 100644 --- a/Shippo/Models/Components/CarrierAccountUPSCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountUPSCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountUSPSCreateRequest.cs b/Shippo/Models/Components/CarrierAccountUSPSCreateRequest.cs index eb9ff60..b5eff7e 100644 --- a/Shippo/Models/Components/CarrierAccountUSPSCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountUSPSCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountUSPSCreateRequestParameters.cs b/Shippo/Models/Components/CarrierAccountUSPSCreateRequestParameters.cs index af94ae5..fa59989 100644 --- a/Shippo/Models/Components/CarrierAccountUSPSCreateRequestParameters.cs +++ b/Shippo/Models/Components/CarrierAccountUSPSCreateRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountWithExtraInfo.cs b/Shippo/Models/Components/CarrierAccountWithExtraInfo.cs index 59f38fa..e7b0efa 100644 --- a/Shippo/Models/Components/CarrierAccountWithExtraInfo.cs +++ b/Shippo/Models/Components/CarrierAccountWithExtraInfo.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountWithExtraInfoStatus.cs b/Shippo/Models/Components/CarrierAccountWithExtraInfoStatus.cs index 1e40b6c..c4097ce 100644 --- a/Shippo/Models/Components/CarrierAccountWithExtraInfoStatus.cs +++ b/Shippo/Models/Components/CarrierAccountWithExtraInfoStatus.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierAccountWithExtraInfoType.cs b/Shippo/Models/Components/CarrierAccountWithExtraInfoType.cs index 1fce43a..827455a 100644 --- a/Shippo/Models/Components/CarrierAccountWithExtraInfoType.cs +++ b/Shippo/Models/Components/CarrierAccountWithExtraInfoType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierParcelTemplate.cs b/Shippo/Models/Components/CarrierParcelTemplate.cs index d7a149b..833390e 100644 --- a/Shippo/Models/Components/CarrierParcelTemplate.cs +++ b/Shippo/Models/Components/CarrierParcelTemplate.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarrierParcelTemplateList.cs b/Shippo/Models/Components/CarrierParcelTemplateList.cs index da13ccd..c77fe74 100644 --- a/Shippo/Models/Components/CarrierParcelTemplateList.cs +++ b/Shippo/Models/Components/CarrierParcelTemplateList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CarriersEnum.cs b/Shippo/Models/Components/CarriersEnum.cs index 210f2f8..e902fd5 100644 --- a/Shippo/Models/Components/CarriersEnum.cs +++ b/Shippo/Models/Components/CarriersEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -63,7 +63,6 @@ namespace Shippo.Models.Components /// | ontrac | OnTrac|
/// | orangeds | OrangeDS|
/// | parcelforce | Parcelforce|
- /// | parcel | Parcel|
/// | passport | Passport|
/// | pcf | PCF|
/// | poste_italiane | Poste Italiane |
@@ -80,8 +79,6 @@ namespace Shippo.Models.Components /// | ups | UPS|
/// | usps | USPS|
/// | veho | Veho |
- /// | x_delivery | X Delivery (now Maergo)|
- /// | yodel | Yodel|
/// /// ///
@@ -177,8 +174,6 @@ public enum CarriersEnum Orangeds, [JsonProperty("parcelforce")] Parcelforce, - [JsonProperty("parcel")] - Parcel, [JsonProperty("passport")] Passport, [JsonProperty("pcf")] @@ -211,10 +206,6 @@ public enum CarriersEnum Usps, [JsonProperty("veho")] Veho, - [JsonProperty("x_delivery")] - XDelivery, - [JsonProperty("yodel")] - Yodel, } public static class CarriersEnumExtension diff --git a/Shippo/Models/Components/Cod.cs b/Shippo/Models/Components/Cod.cs index 87ac0d0..c25a2e0 100644 --- a/Shippo/Models/Components/Cod.cs +++ b/Shippo/Models/Components/Cod.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ConnectExistingOwnAccountRequest.cs b/Shippo/Models/Components/ConnectExistingOwnAccountRequest.cs index 33e51ed..ad18b30 100644 --- a/Shippo/Models/Components/ConnectExistingOwnAccountRequest.cs +++ b/Shippo/Models/Components/ConnectExistingOwnAccountRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ConnectExistingOwnAccountRequestParameters.cs b/Shippo/Models/Components/ConnectExistingOwnAccountRequestParameters.cs index db29083..6ce9505 100644 --- a/Shippo/Models/Components/ConnectExistingOwnAccountRequestParameters.cs +++ b/Shippo/Models/Components/ConnectExistingOwnAccountRequestParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -57,16 +57,22 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(ConnectExistingOwnAccountRequestParameters.ConnectExistingOwnAccountRequestParametersConverter))] public class ConnectExistingOwnAccountRequestParameters { public ConnectExistingOwnAccountRequestParameters(ConnectExistingOwnAccountRequestParametersType type) { Type = type; } - public Dictionary? MapOfAny { get; set; } - public FedExConnectExistingOwnAccountParameters? FedExConnectExistingOwnAccountParameters { get; set; } - public UPSConnectExistingOwnAccountParameters? UPSConnectExistingOwnAccountParameters { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public Dictionary? MapOfAny { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public FedExConnectExistingOwnAccountParameters? FedExConnectExistingOwnAccountParameters { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public UPSConnectExistingOwnAccountParameters? UPSConnectExistingOwnAccountParameters { get; set; } public ConnectExistingOwnAccountRequestParametersType Type { get; set; } @@ -116,6 +122,7 @@ public class ConnectExistingOwnAccountRequestParametersConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new ConnectExistingOwnAccountRequestParameters(ConnectExistingOwnAccountRequestParametersType.FedExConnectExistingOwnAccountParameters) @@ -135,7 +142,7 @@ public class ConnectExistingOwnAccountRequestParametersConverter : JsonConverter { throw; } - + try { return new ConnectExistingOwnAccountRequestParameters(ConnectExistingOwnAccountRequestParametersType.UPSConnectExistingOwnAccountParameters) @@ -155,7 +162,7 @@ public class ConnectExistingOwnAccountRequestParametersConverter : JsonConverter { throw; } - + try { return new ConnectExistingOwnAccountRequestParameters(ConnectExistingOwnAccountRequestParametersType.MapOfAny) @@ -175,7 +182,7 @@ public class ConnectExistingOwnAccountRequestParametersConverter : JsonConverter { throw; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -196,7 +203,6 @@ public class ConnectExistingOwnAccountRequestParametersConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -229,8 +235,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/CoreRate.cs b/Shippo/Models/Components/CoreRate.cs index d7891eb..7831a4f 100644 --- a/Shippo/Models/Components/CoreRate.cs +++ b/Shippo/Models/Components/CoreRate.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CreatedBy.cs b/Shippo/Models/Components/CreatedBy.cs index bf0e1b8..496dac1 100644 --- a/Shippo/Models/Components/CreatedBy.cs +++ b/Shippo/Models/Components/CreatedBy.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CustomerReference.cs b/Shippo/Models/Components/CustomerReference.cs index 1e6d381..8205c5d 100644 --- a/Shippo/Models/Components/CustomerReference.cs +++ b/Shippo/Models/Components/CustomerReference.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CustomsDeclaration.cs b/Shippo/Models/Components/CustomsDeclaration.cs index 7d3d733..100cc5f 100644 --- a/Shippo/Models/Components/CustomsDeclaration.cs +++ b/Shippo/Models/Components/CustomsDeclaration.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -92,6 +92,12 @@ public class CustomsDeclaration [JsonProperty("disclaimer")] public string? Disclaimer { get; set; } + /// + /// Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. + /// + [JsonProperty("duties_payor")] + public CustomsDeclarationDutiesPayor? DutiesPayor { get; set; } + /// /// Additional exporter identification that may be required to ship in certain countries /// diff --git a/Shippo/Models/Components/CustomsDeclarationAddress.cs b/Shippo/Models/Components/CustomsDeclarationAddress.cs new file mode 100644 index 0000000..d64d0ee --- /dev/null +++ b/Shippo/Models/Components/CustomsDeclarationAddress.cs @@ -0,0 +1,36 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Shippo.Models.Components +{ + using Newtonsoft.Json; + using Shippo.Utils; + + public class CustomsDeclarationAddress + { + + /// + /// Name of the party to be billed for duties. + /// + [JsonProperty("name")] + public string? Name { get; set; } + + /// + /// Postal code of the party to be billed for duties. + /// + [JsonProperty("zip")] + public string? Zip { get; set; } + + /// + /// Country ISO code of account number to be billed. + /// + [JsonProperty("country")] + public string? Country { get; set; } + } +} \ No newline at end of file diff --git a/Shippo/Models/Components/CustomsDeclarationB13AFilingOptionEnum.cs b/Shippo/Models/Components/CustomsDeclarationB13AFilingOptionEnum.cs index b4cf444..ff6e4c6 100644 --- a/Shippo/Models/Components/CustomsDeclarationB13AFilingOptionEnum.cs +++ b/Shippo/Models/Components/CustomsDeclarationB13AFilingOptionEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CustomsDeclarationContentsTypeEnum.cs b/Shippo/Models/Components/CustomsDeclarationContentsTypeEnum.cs index 4df0cd1..d854d22 100644 --- a/Shippo/Models/Components/CustomsDeclarationContentsTypeEnum.cs +++ b/Shippo/Models/Components/CustomsDeclarationContentsTypeEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CustomsDeclarationCreateRequest.cs b/Shippo/Models/Components/CustomsDeclarationCreateRequest.cs index b187f25..2fc1b90 100644 --- a/Shippo/Models/Components/CustomsDeclarationCreateRequest.cs +++ b/Shippo/Models/Components/CustomsDeclarationCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -83,6 +83,12 @@ public class CustomsDeclarationCreateRequest [JsonProperty("disclaimer")] public string? Disclaimer { get; set; } + /// + /// Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. + /// + [JsonProperty("duties_payor")] + public DutiesPayor? DutiesPayor { get; set; } + /// /// Additional exporter identification that may be required to ship in certain countries /// diff --git a/Shippo/Models/Components/CustomsDeclarationCreateRequestAddress.cs b/Shippo/Models/Components/CustomsDeclarationCreateRequestAddress.cs new file mode 100644 index 0000000..94ff197 --- /dev/null +++ b/Shippo/Models/Components/CustomsDeclarationCreateRequestAddress.cs @@ -0,0 +1,36 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Shippo.Models.Components +{ + using Newtonsoft.Json; + using Shippo.Utils; + + public class CustomsDeclarationCreateRequestAddress + { + + /// + /// Name of the party to be billed for duties. + /// + [JsonProperty("name")] + public string? Name { get; set; } + + /// + /// Postal code of the party to be billed for duties. + /// + [JsonProperty("zip")] + public string? Zip { get; set; } + + /// + /// Country ISO code of account number to be billed. + /// + [JsonProperty("country")] + public string? Country { get; set; } + } +} \ No newline at end of file diff --git a/Shippo/Models/Components/CustomsDeclarationCreateRequestType.cs b/Shippo/Models/Components/CustomsDeclarationCreateRequestType.cs new file mode 100644 index 0000000..59b698d --- /dev/null +++ b/Shippo/Models/Components/CustomsDeclarationCreateRequestType.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Shippo.Models.Components +{ + using Newtonsoft.Json; + using Shippo.Utils; + using System; + + /// + /// Party to be billed for duties. + /// + public enum CustomsDeclarationCreateRequestType + { + [JsonProperty("SENDER")] + Sender, + [JsonProperty("RECIPIENT")] + Recipient, + [JsonProperty("THIRD_PARTY")] + ThirdParty, + } + + public static class CustomsDeclarationCreateRequestTypeExtension + { + public static string Value(this CustomsDeclarationCreateRequestType value) + { + return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); + } + + public static CustomsDeclarationCreateRequestType ToEnum(this string value) + { + foreach(var field in typeof(CustomsDeclarationCreateRequestType).GetFields()) + { + var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); + if (attributes.Length == 0) + { + continue; + } + + var attribute = attributes[0] as JsonPropertyAttribute; + if (attribute != null && attribute.PropertyName == value) + { + var enumVal = field.GetValue(null); + + if (enumVal is CustomsDeclarationCreateRequestType) + { + return (CustomsDeclarationCreateRequestType)enumVal; + } + } + } + + throw new Exception($"Unknown value {value} for enum CustomsDeclarationCreateRequestType"); + } + } + +} \ No newline at end of file diff --git a/Shippo/Models/Components/WebhookPayloadWebhookPayloadTrack.cs b/Shippo/Models/Components/CustomsDeclarationDutiesPayor.cs similarity index 50% rename from Shippo/Models/Components/WebhookPayloadWebhookPayloadTrack.cs rename to Shippo/Models/Components/CustomsDeclarationDutiesPayor.cs index ae6a6a5..0f1c8b6 100644 --- a/Shippo/Models/Components/WebhookPayloadWebhookPayloadTrack.cs +++ b/Shippo/Models/Components/CustomsDeclarationDutiesPayor.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -14,24 +14,24 @@ namespace Shippo.Models.Components using Shippo.Utils; /// - /// Content of the webhook posted to the external URL + /// Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. /// - public class WebhookPayloadWebhookPayloadTrack + public class CustomsDeclarationDutiesPayor { /// - /// Type of event that triggered the webhook. + /// Account number to be billed for duties. /// - [JsonProperty("event")] - public WebhookEventTypeEnum? Event { get; set; } + [JsonProperty("account")] + public string? Account { get; set; } /// - /// Determines whether the webhook is a test webhook or not. + /// Party to be billed for duties. /// - [JsonProperty("test")] - public bool? Test { get; set; } + [JsonProperty("type")] + public CustomsDeclarationType? Type { get; set; } - [JsonProperty("data")] - public Track? Data { get; set; } + [JsonProperty("address")] + public CustomsDeclarationAddress? Address { get; set; } } } \ No newline at end of file diff --git a/Shippo/Models/Components/CustomsDeclarationEelPfcEnum.cs b/Shippo/Models/Components/CustomsDeclarationEelPfcEnum.cs index 172a040..0aeb503 100644 --- a/Shippo/Models/Components/CustomsDeclarationEelPfcEnum.cs +++ b/Shippo/Models/Components/CustomsDeclarationEelPfcEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CustomsDeclarationIncotermEnum.cs b/Shippo/Models/Components/CustomsDeclarationIncotermEnum.cs index 0c40034..c1ac722 100644 --- a/Shippo/Models/Components/CustomsDeclarationIncotermEnum.cs +++ b/Shippo/Models/Components/CustomsDeclarationIncotermEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CustomsDeclarationNonDeliveryOptionEnum.cs b/Shippo/Models/Components/CustomsDeclarationNonDeliveryOptionEnum.cs index da83096..8968fb5 100644 --- a/Shippo/Models/Components/CustomsDeclarationNonDeliveryOptionEnum.cs +++ b/Shippo/Models/Components/CustomsDeclarationNonDeliveryOptionEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CustomsDeclarationPaginatedList.cs b/Shippo/Models/Components/CustomsDeclarationPaginatedList.cs index 9dda55c..c69c8f8 100644 --- a/Shippo/Models/Components/CustomsDeclarationPaginatedList.cs +++ b/Shippo/Models/Components/CustomsDeclarationPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelMaergoEnum.cs b/Shippo/Models/Components/CustomsDeclarationType.cs similarity index 63% rename from Shippo/Models/Components/ServiceLevelMaergoEnum.cs rename to Shippo/Models/Components/CustomsDeclarationType.cs index 956b2b5..8849d3a 100644 --- a/Shippo/Models/Components/ServiceLevelMaergoEnum.cs +++ b/Shippo/Models/Components/CustomsDeclarationType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -14,30 +14,28 @@ namespace Shippo.Models.Components using System; /// - /// |Token | Service name|
- /// - /// - /// |:---|:---|
- /// | x_delivery_expedited | Expedited|
- /// - ///
+ /// Party to be billed for duties. ///
- public enum ServiceLevelMaergoEnum + public enum CustomsDeclarationType { - [JsonProperty("x_delivery_expedited")] - XDeliveryExpedited, + [JsonProperty("SENDER")] + Sender, + [JsonProperty("RECIPIENT")] + Recipient, + [JsonProperty("THIRD_PARTY")] + ThirdParty, } - public static class ServiceLevelMaergoEnumExtension + public static class CustomsDeclarationTypeExtension { - public static string Value(this ServiceLevelMaergoEnum value) + public static string Value(this CustomsDeclarationType value) { return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); } - public static ServiceLevelMaergoEnum ToEnum(this string value) + public static CustomsDeclarationType ToEnum(this string value) { - foreach(var field in typeof(ServiceLevelMaergoEnum).GetFields()) + foreach(var field in typeof(CustomsDeclarationType).GetFields()) { var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); if (attributes.Length == 0) @@ -50,14 +48,14 @@ public static ServiceLevelMaergoEnum ToEnum(this string value) { var enumVal = field.GetValue(null); - if (enumVal is ServiceLevelMaergoEnum) + if (enumVal is CustomsDeclarationType) { - return (ServiceLevelMaergoEnum)enumVal; + return (CustomsDeclarationType)enumVal; } } } - throw new Exception($"Unknown value {value} for enum ServiceLevelMaergoEnum"); + throw new Exception($"Unknown value {value} for enum CustomsDeclarationType"); } } diff --git a/Shippo/Models/Components/CustomsExporterIdentification.cs b/Shippo/Models/Components/CustomsExporterIdentification.cs index 4c0c69e..c554084 100644 --- a/Shippo/Models/Components/CustomsExporterIdentification.cs +++ b/Shippo/Models/Components/CustomsExporterIdentification.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CustomsInvoicedCharges.cs b/Shippo/Models/Components/CustomsInvoicedCharges.cs index 39eeefa..944ec86 100644 --- a/Shippo/Models/Components/CustomsInvoicedCharges.cs +++ b/Shippo/Models/Components/CustomsInvoicedCharges.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CustomsItem.cs b/Shippo/Models/Components/CustomsItem.cs index 5753cc6..cb8076b 100644 --- a/Shippo/Models/Components/CustomsItem.cs +++ b/Shippo/Models/Components/CustomsItem.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -74,13 +74,13 @@ public class CustomsItem public string? SkuCode { get; set; } /// - /// HS code of the item, which is required by some carriers. + /// HS code of the item, which is required by some carriers. If `tariff_number` is not provided, `hs_code` will be used. If both `hs_code` and `tariff_number` are provided, `tariff_number` will be used. 50 character limit. /// [JsonProperty("hs_code")] public string? HsCode { get; set; } /// - /// The tariff number of the item. + /// The tariff number of the item. If `tariff_number` is not provided, `hs_code` will be used. If both `hs_code` and `tariff_number` are provided, `tariff_number` will be used. 12 character limit. /// [JsonProperty("tariff_number")] public string? TariffNumber { get; set; } diff --git a/Shippo/Models/Components/CustomsItemCreateRequest.cs b/Shippo/Models/Components/CustomsItemCreateRequest.cs index 1cce17a..d49ec2c 100644 --- a/Shippo/Models/Components/CustomsItemCreateRequest.cs +++ b/Shippo/Models/Components/CustomsItemCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -73,13 +73,13 @@ public class CustomsItemCreateRequest public string? SkuCode { get; set; } /// - /// HS code of the item, which is required by some carriers. + /// HS code of the item, which is required by some carriers. If `tariff_number` is not provided, `hs_code` will be used. If both `hs_code` and `tariff_number` are provided, `tariff_number` will be used. 50 character limit. /// [JsonProperty("hs_code")] public string? HsCode { get; set; } /// - /// The tariff number of the item. + /// The tariff number of the item. If `tariff_number` is not provided, `hs_code` will be used. If both `hs_code` and `tariff_number` are provided, `tariff_number` will be used. 12 character limit. /// [JsonProperty("tariff_number")] public string? TariffNumber { get; set; } diff --git a/Shippo/Models/Components/CustomsItemPaginatedList.cs b/Shippo/Models/Components/CustomsItemPaginatedList.cs index d9b91fa..116c607 100644 --- a/Shippo/Models/Components/CustomsItemPaginatedList.cs +++ b/Shippo/Models/Components/CustomsItemPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CustomsTaxIdentification.cs b/Shippo/Models/Components/CustomsTaxIdentification.cs index 8416a9a..1b73f60 100644 --- a/Shippo/Models/Components/CustomsTaxIdentification.cs +++ b/Shippo/Models/Components/CustomsTaxIdentification.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/CustomsTaxIdentificationType.cs b/Shippo/Models/Components/CustomsTaxIdentificationType.cs index 5036ceb..25663da 100644 --- a/Shippo/Models/Components/CustomsTaxIdentificationType.cs +++ b/Shippo/Models/Components/CustomsTaxIdentificationType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/DangerousGoodsBiologicalMaterial.cs b/Shippo/Models/Components/DangerousGoodsBiologicalMaterial.cs index fedc248..76e7f2d 100644 --- a/Shippo/Models/Components/DangerousGoodsBiologicalMaterial.cs +++ b/Shippo/Models/Components/DangerousGoodsBiologicalMaterial.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/DangerousGoodsCode.cs b/Shippo/Models/Components/DangerousGoodsCode.cs index f6389b7..cf53f6f 100644 --- a/Shippo/Models/Components/DangerousGoodsCode.cs +++ b/Shippo/Models/Components/DangerousGoodsCode.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/DangerousGoodsLithiumBatteries.cs b/Shippo/Models/Components/DangerousGoodsLithiumBatteries.cs index 69dd7ad..32dd669 100644 --- a/Shippo/Models/Components/DangerousGoodsLithiumBatteries.cs +++ b/Shippo/Models/Components/DangerousGoodsLithiumBatteries.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/DangerousGoodsObject.cs b/Shippo/Models/Components/DangerousGoodsObject.cs index 6c5c72b..f5c6193 100644 --- a/Shippo/Models/Components/DangerousGoodsObject.cs +++ b/Shippo/Models/Components/DangerousGoodsObject.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/DefaultParcelTemplate.cs b/Shippo/Models/Components/DefaultParcelTemplate.cs index 36ada3d..f249b51 100644 --- a/Shippo/Models/Components/DefaultParcelTemplate.cs +++ b/Shippo/Models/Components/DefaultParcelTemplate.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/DefaultParcelTemplateUpdateRequest.cs b/Shippo/Models/Components/DefaultParcelTemplateUpdateRequest.cs index 4f20570..d909927 100644 --- a/Shippo/Models/Components/DefaultParcelTemplateUpdateRequest.cs +++ b/Shippo/Models/Components/DefaultParcelTemplateUpdateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/DepartmentNumber.cs b/Shippo/Models/Components/DepartmentNumber.cs index 23fabd0..e81c01c 100644 --- a/Shippo/Models/Components/DepartmentNumber.cs +++ b/Shippo/Models/Components/DepartmentNumber.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/DistanceUnitEnum.cs b/Shippo/Models/Components/DistanceUnitEnum.cs index 2350092..c442edd 100644 --- a/Shippo/Models/Components/DistanceUnitEnum.cs +++ b/Shippo/Models/Components/DistanceUnitEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/DryIce.cs b/Shippo/Models/Components/DryIce.cs index e18ab6a..c2564ff 100644 --- a/Shippo/Models/Components/DryIce.cs +++ b/Shippo/Models/Components/DryIce.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/WebhookPayloadWebhookPayloadTransaction.cs b/Shippo/Models/Components/DutiesPayor.cs similarity index 50% rename from Shippo/Models/Components/WebhookPayloadWebhookPayloadTransaction.cs rename to Shippo/Models/Components/DutiesPayor.cs index e50a347..e912154 100644 --- a/Shippo/Models/Components/WebhookPayloadWebhookPayloadTransaction.cs +++ b/Shippo/Models/Components/DutiesPayor.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -14,24 +14,24 @@ namespace Shippo.Models.Components using Shippo.Utils; /// - /// Content of the webhook posted to the external URL + /// Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. /// - public class WebhookPayloadWebhookPayloadTransaction + public class DutiesPayor { /// - /// Type of event that triggered the webhook. + /// Account number to be billed for duties. /// - [JsonProperty("event")] - public WebhookEventTypeEnum? Event { get; set; } + [JsonProperty("account")] + public string? Account { get; set; } /// - /// Determines whether the webhook is a test webhook or not. + /// Party to be billed for duties. /// - [JsonProperty("test")] - public bool? Test { get; set; } + [JsonProperty("type")] + public CustomsDeclarationCreateRequestType? Type { get; set; } - [JsonProperty("data")] - public Transaction? Data { get; set; } + [JsonProperty("address")] + public CustomsDeclarationCreateRequestAddress? Address { get; set; } } } \ No newline at end of file diff --git a/Shippo/Models/Components/FedExConnectExistingOwnAccountParameters.cs b/Shippo/Models/Components/FedExConnectExistingOwnAccountParameters.cs index 0a4acd0..1bdc4c7 100644 --- a/Shippo/Models/Components/FedExConnectExistingOwnAccountParameters.cs +++ b/Shippo/Models/Components/FedExConnectExistingOwnAccountParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/InstantTransactionCreateRequest.cs b/Shippo/Models/Components/InstantTransactionCreateRequest.cs index 351fab9..3a1f67e 100644 --- a/Shippo/Models/Components/InstantTransactionCreateRequest.cs +++ b/Shippo/Models/Components/InstantTransactionCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Insurance.cs b/Shippo/Models/Components/Insurance.cs index 6ed41b7..c7b975e 100644 --- a/Shippo/Models/Components/Insurance.cs +++ b/Shippo/Models/Components/Insurance.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/InvoiceNumber.cs b/Shippo/Models/Components/InvoiceNumber.cs index e28c53b..bced2e2 100644 --- a/Shippo/Models/Components/InvoiceNumber.cs +++ b/Shippo/Models/Components/InvoiceNumber.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/LabelFileType.cs b/Shippo/Models/Components/LabelFileType.cs index 2af8141..45d03a2 100644 --- a/Shippo/Models/Components/LabelFileType.cs +++ b/Shippo/Models/Components/LabelFileType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/LabelFileTypeEnum.cs b/Shippo/Models/Components/LabelFileTypeEnum.cs index 3858162..5ba5b14 100644 --- a/Shippo/Models/Components/LabelFileTypeEnum.cs +++ b/Shippo/Models/Components/LabelFileTypeEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Latitude.cs b/Shippo/Models/Components/Latitude.cs index 228644c..5198192 100644 --- a/Shippo/Models/Components/Latitude.cs +++ b/Shippo/Models/Components/Latitude.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -53,15 +53,19 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(Latitude.LatitudeConverter))] public class Latitude { public Latitude(LatitudeType type) { Type = type; } - public double? Number { get; set; } - public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public double? Number { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } public LatitudeType Type { get; set; } @@ -116,14 +120,14 @@ public class LatitudeConverter : JsonConverter { // try next option } - + if (json[0] == '"' && json[^1] == '"'){ return new Latitude(LatitudeType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -144,7 +148,6 @@ public class LatitudeConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -172,8 +175,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/LineItem.cs b/Shippo/Models/Components/LineItem.cs index 3274081..372a553 100644 --- a/Shippo/Models/Components/LineItem.cs +++ b/Shippo/Models/Components/LineItem.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/LineItemBase.cs b/Shippo/Models/Components/LineItemBase.cs index 7e005e8..5d45130 100644 --- a/Shippo/Models/Components/LineItemBase.cs +++ b/Shippo/Models/Components/LineItemBase.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/LiveRate.cs b/Shippo/Models/Components/LiveRate.cs index aaa3253..75107d5 100644 --- a/Shippo/Models/Components/LiveRate.cs +++ b/Shippo/Models/Components/LiveRate.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/LiveRateCreateRequest.cs b/Shippo/Models/Components/LiveRateCreateRequest.cs index 82556ac..2763060 100644 --- a/Shippo/Models/Components/LiveRateCreateRequest.cs +++ b/Shippo/Models/Components/LiveRateCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/LiveRateCreateRequestAddressFrom.cs b/Shippo/Models/Components/LiveRateCreateRequestAddressFrom.cs index c9cf02b..3b9da6e 100644 --- a/Shippo/Models/Components/LiveRateCreateRequestAddressFrom.cs +++ b/Shippo/Models/Components/LiveRateCreateRequestAddressFrom.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,22 +54,27 @@ public override int GetHashCode() return Value.GetHashCode(); } } - -/// -/// The sender address, which includes your name, company name, street address, city, state, zip code,
-/// -/// -/// country, phone number, and email address (strings). Special characters should not be included in
-/// any address element, especially name, company, and email. -///
-///
+ + + /// + /// The sender address, which includes your name, company name, street address, city, state, zip code,
+ /// + /// + /// country, phone number, and email address (strings). Special characters should not be included in
+ /// any address element, especially name, company, and email. + ///
+ ///
[JsonConverter(typeof(LiveRateCreateRequestAddressFrom.LiveRateCreateRequestAddressFromConverter))] public class LiveRateCreateRequestAddressFrom { public LiveRateCreateRequestAddressFrom(LiveRateCreateRequestAddressFromType type) { Type = type; } - public string? Str { get; set; } - public AddressCompleteCreateRequest? AddressCompleteCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public AddressCompleteCreateRequest? AddressCompleteCreateRequest { get; set; } public LiveRateCreateRequestAddressFromType Type { get; set; } @@ -111,6 +116,7 @@ public class LiveRateCreateRequestAddressFromConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new LiveRateCreateRequestAddressFrom(LiveRateCreateRequestAddressFromType.AddressCompleteCreateRequest) @@ -130,14 +136,14 @@ public class LiveRateCreateRequestAddressFromConverter : JsonConverter { throw; } - + if (json[0] == '"' && json[^1] == '"'){ return new LiveRateCreateRequestAddressFrom(LiveRateCreateRequestAddressFromType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -158,7 +164,6 @@ public class LiveRateCreateRequestAddressFromConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -186,8 +191,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/LiveRateCreateRequestAddressTo.cs b/Shippo/Models/Components/LiveRateCreateRequestAddressTo.cs index dcffeba..26e6ca1 100644 --- a/Shippo/Models/Components/LiveRateCreateRequestAddressTo.cs +++ b/Shippo/Models/Components/LiveRateCreateRequestAddressTo.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,22 +54,27 @@ public override int GetHashCode() return Value.GetHashCode(); } } - -/// -/// The recipient address, which includes the recipient's name, company name, street address, city, state, zip code,
-/// -/// -/// country, phone number, and email address (strings). Special characters should not be included in
-/// any address element, especially name, company, and email. -///
-///
+ + + /// + /// The recipient address, which includes the recipient's name, company name, street address, city, state, zip code,
+ /// + /// + /// country, phone number, and email address (strings). Special characters should not be included in
+ /// any address element, especially name, company, and email. + ///
+ ///
[JsonConverter(typeof(LiveRateCreateRequestAddressTo.LiveRateCreateRequestAddressToConverter))] public class LiveRateCreateRequestAddressTo { public LiveRateCreateRequestAddressTo(LiveRateCreateRequestAddressToType type) { Type = type; } - public string? Str { get; set; } - public AddressCompleteCreateRequest? AddressCompleteCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public AddressCompleteCreateRequest? AddressCompleteCreateRequest { get; set; } public LiveRateCreateRequestAddressToType Type { get; set; } @@ -111,6 +116,7 @@ public class LiveRateCreateRequestAddressToConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new LiveRateCreateRequestAddressTo(LiveRateCreateRequestAddressToType.AddressCompleteCreateRequest) @@ -130,14 +136,14 @@ public class LiveRateCreateRequestAddressToConverter : JsonConverter { throw; } - + if (json[0] == '"' && json[^1] == '"'){ return new LiveRateCreateRequestAddressTo(LiveRateCreateRequestAddressToType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -158,7 +164,6 @@ public class LiveRateCreateRequestAddressToConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -186,8 +191,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/LiveRateCreateRequestParcel.cs b/Shippo/Models/Components/LiveRateCreateRequestParcel.cs index 9b18222..aa6eb23 100644 --- a/Shippo/Models/Components/LiveRateCreateRequestParcel.cs +++ b/Shippo/Models/Components/LiveRateCreateRequestParcel.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,17 +54,22 @@ public override int GetHashCode() return Value.GetHashCode(); } } - -/// -/// Object ID for an existing User Parcel Template OR a fully formed Parcel object. -/// + + + /// + /// Object ID for an existing User Parcel Template OR a fully formed Parcel object. + /// [JsonConverter(typeof(LiveRateCreateRequestParcel.LiveRateCreateRequestParcelConverter))] public class LiveRateCreateRequestParcel { public LiveRateCreateRequestParcel(LiveRateCreateRequestParcelType type) { Type = type; } - public string? Str { get; set; } - public Parcel? Parcel { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public Parcel? Parcel { get; set; } public LiveRateCreateRequestParcelType Type { get; set; } @@ -106,6 +111,7 @@ public class LiveRateCreateRequestParcelConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new LiveRateCreateRequestParcel(LiveRateCreateRequestParcelType.Parcel) @@ -125,14 +131,14 @@ public class LiveRateCreateRequestParcelConverter : JsonConverter { throw; } - + if (json[0] == '"' && json[^1] == '"'){ return new LiveRateCreateRequestParcel(LiveRateCreateRequestParcelType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -153,7 +159,6 @@ public class LiveRateCreateRequestParcelConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -181,8 +186,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/LiveRatePaginatedList.cs b/Shippo/Models/Components/LiveRatePaginatedList.cs index 8c2e4de..7a889cb 100644 --- a/Shippo/Models/Components/LiveRatePaginatedList.cs +++ b/Shippo/Models/Components/LiveRatePaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Location.cs b/Shippo/Models/Components/Location.cs index ba37c02..fb9400f 100644 --- a/Shippo/Models/Components/Location.cs +++ b/Shippo/Models/Components/Location.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Longitude.cs b/Shippo/Models/Components/Longitude.cs index ddfc522..cd24376 100644 --- a/Shippo/Models/Components/Longitude.cs +++ b/Shippo/Models/Components/Longitude.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -53,15 +53,19 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(Longitude.LongitudeConverter))] public class Longitude { public Longitude(LongitudeType type) { Type = type; } - public double? Number { get; set; } - public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public double? Number { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } public LongitudeType Type { get; set; } @@ -116,14 +120,14 @@ public class LongitudeConverter : JsonConverter { // try next option } - + if (json[0] == '"' && json[^1] == '"'){ return new Longitude(LongitudeType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -144,7 +148,6 @@ public class LongitudeConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -172,8 +175,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/Manifest.cs b/Shippo/Models/Components/Manifest.cs index 5a900c9..270735d 100644 --- a/Shippo/Models/Components/Manifest.cs +++ b/Shippo/Models/Components/Manifest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ManifestCreateRequest.cs b/Shippo/Models/Components/ManifestCreateRequest.cs index bba8f86..9e02c72 100644 --- a/Shippo/Models/Components/ManifestCreateRequest.cs +++ b/Shippo/Models/Components/ManifestCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ManifestCreateRequestAddressFrom.cs b/Shippo/Models/Components/ManifestCreateRequestAddressFrom.cs index e22a632..3535d8e 100644 --- a/Shippo/Models/Components/ManifestCreateRequestAddressFrom.cs +++ b/Shippo/Models/Components/ManifestCreateRequestAddressFrom.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,15 +54,19 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(ManifestCreateRequestAddressFrom.ManifestCreateRequestAddressFromConverter))] public class ManifestCreateRequestAddressFrom { public ManifestCreateRequestAddressFrom(ManifestCreateRequestAddressFromType type) { Type = type; } - public AddressCreateRequest? AddressCreateRequest { get; set; } - public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public AddressCreateRequest? AddressCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } public ManifestCreateRequestAddressFromType Type { get; set; } @@ -104,6 +108,7 @@ public class ManifestCreateRequestAddressFromConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new ManifestCreateRequestAddressFrom(ManifestCreateRequestAddressFromType.AddressCreateRequest) @@ -123,14 +128,14 @@ public class ManifestCreateRequestAddressFromConverter : JsonConverter { throw; } - + if (json[0] == '"' && json[^1] == '"'){ return new ManifestCreateRequestAddressFrom(ManifestCreateRequestAddressFromType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -151,7 +156,6 @@ public class ManifestCreateRequestAddressFromConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -179,8 +183,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/ManifestPaginatedList.cs b/Shippo/Models/Components/ManifestPaginatedList.cs index c9fee70..41b07e1 100644 --- a/Shippo/Models/Components/ManifestPaginatedList.cs +++ b/Shippo/Models/Components/ManifestPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ManifestStatus.cs b/Shippo/Models/Components/ManifestStatus.cs index 4f1ac12..bb5f314 100644 --- a/Shippo/Models/Components/ManifestStatus.cs +++ b/Shippo/Models/Components/ManifestStatus.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ObjectInfo.cs b/Shippo/Models/Components/ObjectInfo.cs index 7b85df6..cf7f838 100644 --- a/Shippo/Models/Components/ObjectInfo.cs +++ b/Shippo/Models/Components/ObjectInfo.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ObjectResults.cs b/Shippo/Models/Components/ObjectResults.cs index 71ca09f..e3b26aa 100644 --- a/Shippo/Models/Components/ObjectResults.cs +++ b/Shippo/Models/Components/ObjectResults.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ObjectState.cs b/Shippo/Models/Components/ObjectState.cs index 5c414c3..fdb4a88 100644 --- a/Shippo/Models/Components/ObjectState.cs +++ b/Shippo/Models/Components/ObjectState.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ObjectStateEnum.cs b/Shippo/Models/Components/ObjectStateEnum.cs index 869c0ec..beb1868 100644 --- a/Shippo/Models/Components/ObjectStateEnum.cs +++ b/Shippo/Models/Components/ObjectStateEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Order.cs b/Shippo/Models/Components/Order.cs index 89387cd..20f2a7d 100644 --- a/Shippo/Models/Components/Order.cs +++ b/Shippo/Models/Components/Order.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/OrderCreateRequest.cs b/Shippo/Models/Components/OrderCreateRequest.cs index e3389aa..24b078c 100644 --- a/Shippo/Models/Components/OrderCreateRequest.cs +++ b/Shippo/Models/Components/OrderCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/OrderPaginatedList.cs b/Shippo/Models/Components/OrderPaginatedList.cs index 6bcf1d1..03c6130 100644 --- a/Shippo/Models/Components/OrderPaginatedList.cs +++ b/Shippo/Models/Components/OrderPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/OrderShopAppEnum.cs b/Shippo/Models/Components/OrderShopAppEnum.cs index aa82aed..a07c21a 100644 --- a/Shippo/Models/Components/OrderShopAppEnum.cs +++ b/Shippo/Models/Components/OrderShopAppEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/OrderStatusEnum.cs b/Shippo/Models/Components/OrderStatusEnum.cs index c162957..dcec992 100644 --- a/Shippo/Models/Components/OrderStatusEnum.cs +++ b/Shippo/Models/Components/OrderStatusEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Parameters.cs b/Shippo/Models/Components/Parameters.cs index 0d9c860..3c2201e 100644 --- a/Shippo/Models/Components/Parameters.cs +++ b/Shippo/Models/Components/Parameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -57,16 +57,22 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(Parameters.ParametersConverter))] public class Parameters { public Parameters(ParametersType type) { Type = type; } - public Dictionary? MapOfAny { get; set; } - public FedExConnectExistingOwnAccountParameters? FedExConnectExistingOwnAccountParameters { get; set; } - public UPSConnectExistingOwnAccountParameters? UPSConnectExistingOwnAccountParameters { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public Dictionary? MapOfAny { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public FedExConnectExistingOwnAccountParameters? FedExConnectExistingOwnAccountParameters { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public UPSConnectExistingOwnAccountParameters? UPSConnectExistingOwnAccountParameters { get; set; } public ParametersType Type { get; set; } @@ -116,6 +122,7 @@ public class ParametersConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new Parameters(ParametersType.FedExConnectExistingOwnAccountParameters) @@ -135,7 +142,7 @@ public class ParametersConverter : JsonConverter { throw; } - + try { return new Parameters(ParametersType.UPSConnectExistingOwnAccountParameters) @@ -155,7 +162,7 @@ public class ParametersConverter : JsonConverter { throw; } - + try { return new Parameters(ParametersType.MapOfAny) @@ -175,7 +182,7 @@ public class ParametersConverter : JsonConverter { throw; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -196,7 +203,6 @@ public class ParametersConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -229,8 +235,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/Parcel.cs b/Shippo/Models/Components/Parcel.cs index bf6680a..d2b46d3 100644 --- a/Shippo/Models/Components/Parcel.cs +++ b/Shippo/Models/Components/Parcel.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ParcelCreateFromTemplateRequest.cs b/Shippo/Models/Components/ParcelCreateFromTemplateRequest.cs index 1d32b21..3116233 100644 --- a/Shippo/Models/Components/ParcelCreateFromTemplateRequest.cs +++ b/Shippo/Models/Components/ParcelCreateFromTemplateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ParcelCreateRequest.cs b/Shippo/Models/Components/ParcelCreateRequest.cs index 113d4a2..3c90967 100644 --- a/Shippo/Models/Components/ParcelCreateRequest.cs +++ b/Shippo/Models/Components/ParcelCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ParcelExtra.cs b/Shippo/Models/Components/ParcelExtra.cs index 144850a..a38ea08 100644 --- a/Shippo/Models/Components/ParcelExtra.cs +++ b/Shippo/Models/Components/ParcelExtra.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ParcelInsurance.cs b/Shippo/Models/Components/ParcelInsurance.cs index e7c9f92..4c04b6f 100644 --- a/Shippo/Models/Components/ParcelInsurance.cs +++ b/Shippo/Models/Components/ParcelInsurance.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ParcelInsuranceProvider.cs b/Shippo/Models/Components/ParcelInsuranceProvider.cs index 7de7fcf..1a3e84e 100644 --- a/Shippo/Models/Components/ParcelInsuranceProvider.cs +++ b/Shippo/Models/Components/ParcelInsuranceProvider.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ParcelPaginatedList.cs b/Shippo/Models/Components/ParcelPaginatedList.cs index ce05903..fb00468 100644 --- a/Shippo/Models/Components/ParcelPaginatedList.cs +++ b/Shippo/Models/Components/ParcelPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/AramexAustraliaParcelTemplate.cs b/Shippo/Models/Components/ParcelTemplateAramexAustraliaEnum.cs similarity index 77% rename from Shippo/Models/Components/AramexAustraliaParcelTemplate.cs rename to Shippo/Models/Components/ParcelTemplateAramexAustraliaEnum.cs index 7b20df6..2e12c4c 100644 --- a/Shippo/Models/Components/AramexAustraliaParcelTemplate.cs +++ b/Shippo/Models/Components/ParcelTemplateAramexAustraliaEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -25,7 +25,7 @@ namespace Shippo.Models.Components /// /// /// - public enum AramexAustraliaParcelTemplate + public enum ParcelTemplateAramexAustraliaEnum { [JsonProperty("Fastway_Australia_Satchel_A2")] FastwayAustraliaSatchelA2, @@ -37,16 +37,16 @@ public enum AramexAustraliaParcelTemplate FastwayAustraliaSatchelA5, } - public static class AramexAustraliaParcelTemplateExtension + public static class ParcelTemplateAramexAustraliaEnumExtension { - public static string Value(this AramexAustraliaParcelTemplate value) + public static string Value(this ParcelTemplateAramexAustraliaEnum value) { return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); } - public static AramexAustraliaParcelTemplate ToEnum(this string value) + public static ParcelTemplateAramexAustraliaEnum ToEnum(this string value) { - foreach(var field in typeof(AramexAustraliaParcelTemplate).GetFields()) + foreach(var field in typeof(ParcelTemplateAramexAustraliaEnum).GetFields()) { var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); if (attributes.Length == 0) @@ -59,14 +59,14 @@ public static AramexAustraliaParcelTemplate ToEnum(this string value) { var enumVal = field.GetValue(null); - if (enumVal is AramexAustraliaParcelTemplate) + if (enumVal is ParcelTemplateAramexAustraliaEnum) { - return (AramexAustraliaParcelTemplate)enumVal; + return (ParcelTemplateAramexAustraliaEnum)enumVal; } } } - throw new Exception($"Unknown value {value} for enum AramexAustraliaParcelTemplate"); + throw new Exception($"Unknown value {value} for enum ParcelTemplateAramexAustraliaEnum"); } } diff --git a/Shippo/Models/Components/CouriersPleaseParcelTemplate.cs b/Shippo/Models/Components/ParcelTemplateCouriersPleaseEnum.cs similarity index 77% rename from Shippo/Models/Components/CouriersPleaseParcelTemplate.cs rename to Shippo/Models/Components/ParcelTemplateCouriersPleaseEnum.cs index 1412f87..e2079d6 100644 --- a/Shippo/Models/Components/CouriersPleaseParcelTemplate.cs +++ b/Shippo/Models/Components/ParcelTemplateCouriersPleaseEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -25,7 +25,7 @@ namespace Shippo.Models.Components /// /// /// - public enum CouriersPleaseParcelTemplate + public enum ParcelTemplateCouriersPleaseEnum { [JsonProperty("couriersplease_500g_satchel")] Couriersplease500gSatchel, @@ -37,16 +37,16 @@ public enum CouriersPleaseParcelTemplate Couriersplease5kgSatchel, } - public static class CouriersPleaseParcelTemplateExtension + public static class ParcelTemplateCouriersPleaseEnumExtension { - public static string Value(this CouriersPleaseParcelTemplate value) + public static string Value(this ParcelTemplateCouriersPleaseEnum value) { return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); } - public static CouriersPleaseParcelTemplate ToEnum(this string value) + public static ParcelTemplateCouriersPleaseEnum ToEnum(this string value) { - foreach(var field in typeof(CouriersPleaseParcelTemplate).GetFields()) + foreach(var field in typeof(ParcelTemplateCouriersPleaseEnum).GetFields()) { var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); if (attributes.Length == 0) @@ -59,14 +59,14 @@ public static CouriersPleaseParcelTemplate ToEnum(this string value) { var enumVal = field.GetValue(null); - if (enumVal is CouriersPleaseParcelTemplate) + if (enumVal is ParcelTemplateCouriersPleaseEnum) { - return (CouriersPleaseParcelTemplate)enumVal; + return (ParcelTemplateCouriersPleaseEnum)enumVal; } } } - throw new Exception($"Unknown value {value} for enum CouriersPleaseParcelTemplate"); + throw new Exception($"Unknown value {value} for enum ParcelTemplateCouriersPleaseEnum"); } } diff --git a/Shippo/Models/Components/DHLECommerceParcelTemplate.cs b/Shippo/Models/Components/ParcelTemplateDHLeCommerceEnum.cs similarity index 73% rename from Shippo/Models/Components/DHLECommerceParcelTemplate.cs rename to Shippo/Models/Components/ParcelTemplateDHLeCommerceEnum.cs index 8116d08..1a74007 100644 --- a/Shippo/Models/Components/DHLECommerceParcelTemplate.cs +++ b/Shippo/Models/Components/ParcelTemplateDHLeCommerceEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -23,7 +23,7 @@ namespace Shippo.Models.Components /// /// /// - public enum DHLECommerceParcelTemplate + public enum ParcelTemplateDHLeCommerceEnum { [JsonProperty("DHLeC_Irregular")] DHLeCIrregular, @@ -31,16 +31,16 @@ public enum DHLECommerceParcelTemplate DHLeCSMFlats, } - public static class DHLECommerceParcelTemplateExtension + public static class ParcelTemplateDHLeCommerceEnumExtension { - public static string Value(this DHLECommerceParcelTemplate value) + public static string Value(this ParcelTemplateDHLeCommerceEnum value) { return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); } - public static DHLECommerceParcelTemplate ToEnum(this string value) + public static ParcelTemplateDHLeCommerceEnum ToEnum(this string value) { - foreach(var field in typeof(DHLECommerceParcelTemplate).GetFields()) + foreach(var field in typeof(ParcelTemplateDHLeCommerceEnum).GetFields()) { var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); if (attributes.Length == 0) @@ -53,14 +53,14 @@ public static DHLECommerceParcelTemplate ToEnum(this string value) { var enumVal = field.GetValue(null); - if (enumVal is DHLECommerceParcelTemplate) + if (enumVal is ParcelTemplateDHLeCommerceEnum) { - return (DHLECommerceParcelTemplate)enumVal; + return (ParcelTemplateDHLeCommerceEnum)enumVal; } } } - throw new Exception($"Unknown value {value} for enum DHLECommerceParcelTemplate"); + throw new Exception($"Unknown value {value} for enum ParcelTemplateDHLeCommerceEnum"); } } diff --git a/Shippo/Models/Components/DPDUKParcelTemplate.cs b/Shippo/Models/Components/ParcelTemplateDPDUKEnum.cs similarity index 74% rename from Shippo/Models/Components/DPDUKParcelTemplate.cs rename to Shippo/Models/Components/ParcelTemplateDPDUKEnum.cs index 80360e7..ad22b35 100644 --- a/Shippo/Models/Components/DPDUKParcelTemplate.cs +++ b/Shippo/Models/Components/ParcelTemplateDPDUKEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -22,22 +22,22 @@ namespace Shippo.Models.Components /// /// /// - public enum DPDUKParcelTemplate + public enum ParcelTemplateDPDUKEnum { [JsonProperty("DPD_UK_Express_Pak")] DPDUKExpressPak, } - public static class DPDUKParcelTemplateExtension + public static class ParcelTemplateDPDUKEnumExtension { - public static string Value(this DPDUKParcelTemplate value) + public static string Value(this ParcelTemplateDPDUKEnum value) { return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); } - public static DPDUKParcelTemplate ToEnum(this string value) + public static ParcelTemplateDPDUKEnum ToEnum(this string value) { - foreach(var field in typeof(DPDUKParcelTemplate).GetFields()) + foreach(var field in typeof(ParcelTemplateDPDUKEnum).GetFields()) { var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); if (attributes.Length == 0) @@ -50,14 +50,14 @@ public static DPDUKParcelTemplate ToEnum(this string value) { var enumVal = field.GetValue(null); - if (enumVal is DPDUKParcelTemplate) + if (enumVal is ParcelTemplateDPDUKEnum) { - return (DPDUKParcelTemplate)enumVal; + return (ParcelTemplateDPDUKEnum)enumVal; } } } - throw new Exception($"Unknown value {value} for enum DPDUKParcelTemplate"); + throw new Exception($"Unknown value {value} for enum ParcelTemplateDPDUKEnum"); } } diff --git a/Shippo/Models/Components/ParcelTemplateEnumSet.cs b/Shippo/Models/Components/ParcelTemplateEnumSet.cs index fed9dd7..64e6e36 100644 --- a/Shippo/Models/Components/ParcelTemplateEnumSet.cs +++ b/Shippo/Models/Components/ParcelTemplateEnumSet.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -24,19 +24,19 @@ public class ParcelTemplateEnumSetType private ParcelTemplateEnumSetType(string value) { Value = value; } public string Value { get; private set; } - public static ParcelTemplateEnumSetType FedExParcelTemplate { get { return new ParcelTemplateEnumSetType("FedEx Parcel Template"); } } + public static ParcelTemplateEnumSetType ParcelTemplateFedExEnum { get { return new ParcelTemplateEnumSetType("ParcelTemplateFedExEnum"); } } - public static ParcelTemplateEnumSetType UPSParcelTemplate { get { return new ParcelTemplateEnumSetType("UPS Parcel Template"); } } + public static ParcelTemplateEnumSetType ParcelTemplateUPSEnum { get { return new ParcelTemplateEnumSetType("ParcelTemplateUPSEnum"); } } - public static ParcelTemplateEnumSetType USPSParcelTemplate { get { return new ParcelTemplateEnumSetType("USPS Parcel Template"); } } + public static ParcelTemplateEnumSetType ParcelTemplateUSPSEnum { get { return new ParcelTemplateEnumSetType("ParcelTemplateUSPSEnum"); } } - public static ParcelTemplateEnumSetType DHLECommerceParcelTemplate { get { return new ParcelTemplateEnumSetType("DHL eCommerce Parcel Template"); } } + public static ParcelTemplateEnumSetType ParcelTemplateDHLeCommerceEnum { get { return new ParcelTemplateEnumSetType("ParcelTemplateDHLeCommerceEnum"); } } - public static ParcelTemplateEnumSetType DPDUKParcelTemplate { get { return new ParcelTemplateEnumSetType("DPD UK Parcel Template"); } } + public static ParcelTemplateEnumSetType ParcelTemplateDPDUKEnum { get { return new ParcelTemplateEnumSetType("ParcelTemplateDPDUKEnum"); } } - public static ParcelTemplateEnumSetType CouriersPleaseParcelTemplate { get { return new ParcelTemplateEnumSetType("Couriers Please Parcel Template"); } } + public static ParcelTemplateEnumSetType ParcelTemplateCouriersPleaseEnum { get { return new ParcelTemplateEnumSetType("ParcelTemplateCouriersPleaseEnum"); } } - public static ParcelTemplateEnumSetType AramexAustraliaParcelTemplate { get { return new ParcelTemplateEnumSetType("Aramex Australia Parcel Template"); } } + public static ParcelTemplateEnumSetType ParcelTemplateAramexAustraliaEnum { get { return new ParcelTemplateEnumSetType("ParcelTemplateAramexAustraliaEnum"); } } public static ParcelTemplateEnumSetType Null { get { return new ParcelTemplateEnumSetType("null"); } } @@ -44,13 +44,13 @@ public class ParcelTemplateEnumSetType public static implicit operator String(ParcelTemplateEnumSetType v) { return v.Value; } public static ParcelTemplateEnumSetType FromString(string v) { switch(v) { - case "FedEx Parcel Template": return FedExParcelTemplate; - case "UPS Parcel Template": return UPSParcelTemplate; - case "USPS Parcel Template": return USPSParcelTemplate; - case "DHL eCommerce Parcel Template": return DHLECommerceParcelTemplate; - case "DPD UK Parcel Template": return DPDUKParcelTemplate; - case "Couriers Please Parcel Template": return CouriersPleaseParcelTemplate; - case "Aramex Australia Parcel Template": return AramexAustraliaParcelTemplate; + case "ParcelTemplateFedExEnum": return ParcelTemplateFedExEnum; + case "ParcelTemplateUPSEnum": return ParcelTemplateUPSEnum; + case "ParcelTemplateUSPSEnum": return ParcelTemplateUSPSEnum; + case "ParcelTemplateDHLeCommerceEnum": return ParcelTemplateDHLeCommerceEnum; + case "ParcelTemplateDPDUKEnum": return ParcelTemplateDPDUKEnum; + case "ParcelTemplateCouriersPleaseEnum": return ParcelTemplateCouriersPleaseEnum; + case "ParcelTemplateAramexAustraliaEnum": return ParcelTemplateAramexAustraliaEnum; case "null": return Null; default: throw new ArgumentException("Invalid value for ParcelTemplateEnumSetType"); } @@ -69,79 +69,94 @@ public override int GetHashCode() return Value.GetHashCode(); } } - -/// -/// If template is passed, `length`, `width`, `height`, and `distance_unit` are not required -/// + + + /// + /// If template is passed, `length`, `width`, `height`, and `distance_unit` are not required + /// [JsonConverter(typeof(ParcelTemplateEnumSet.ParcelTemplateEnumSetConverter))] public class ParcelTemplateEnumSet { public ParcelTemplateEnumSet(ParcelTemplateEnumSetType type) { Type = type; } - public FedExParcelTemplate? FedExParcelTemplate { get; set; } - public UPSParcelTemplate? UPSParcelTemplate { get; set; } - public USPSParcelTemplate? USPSParcelTemplate { get; set; } - public DHLECommerceParcelTemplate? DHLECommerceParcelTemplate { get; set; } - public DPDUKParcelTemplate? DPDUKParcelTemplate { get; set; } - public CouriersPleaseParcelTemplate? CouriersPleaseParcelTemplate { get; set; } - public AramexAustraliaParcelTemplate? AramexAustraliaParcelTemplate { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ParcelTemplateFedExEnum? ParcelTemplateFedExEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ParcelTemplateUPSEnum? ParcelTemplateUPSEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ParcelTemplateUSPSEnum? ParcelTemplateUSPSEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ParcelTemplateDHLeCommerceEnum? ParcelTemplateDHLeCommerceEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ParcelTemplateDPDUKEnum? ParcelTemplateDPDUKEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ParcelTemplateCouriersPleaseEnum? ParcelTemplateCouriersPleaseEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ParcelTemplateAramexAustraliaEnum? ParcelTemplateAramexAustraliaEnum { get; set; } public ParcelTemplateEnumSetType Type { get; set; } - public static ParcelTemplateEnumSet CreateFedExParcelTemplate(FedExParcelTemplate fedExParcelTemplate) { - ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.FedExParcelTemplate; + public static ParcelTemplateEnumSet CreateParcelTemplateFedExEnum(ParcelTemplateFedExEnum parcelTemplateFedExEnum) { + ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.ParcelTemplateFedExEnum; ParcelTemplateEnumSet res = new ParcelTemplateEnumSet(typ); - res.FedExParcelTemplate = fedExParcelTemplate; + res.ParcelTemplateFedExEnum = parcelTemplateFedExEnum; return res; } - public static ParcelTemplateEnumSet CreateUPSParcelTemplate(UPSParcelTemplate upsParcelTemplate) { - ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.UPSParcelTemplate; + public static ParcelTemplateEnumSet CreateParcelTemplateUPSEnum(ParcelTemplateUPSEnum parcelTemplateUPSEnum) { + ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.ParcelTemplateUPSEnum; ParcelTemplateEnumSet res = new ParcelTemplateEnumSet(typ); - res.UPSParcelTemplate = upsParcelTemplate; + res.ParcelTemplateUPSEnum = parcelTemplateUPSEnum; return res; } - public static ParcelTemplateEnumSet CreateUSPSParcelTemplate(USPSParcelTemplate uspsParcelTemplate) { - ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.USPSParcelTemplate; + public static ParcelTemplateEnumSet CreateParcelTemplateUSPSEnum(ParcelTemplateUSPSEnum parcelTemplateUSPSEnum) { + ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.ParcelTemplateUSPSEnum; ParcelTemplateEnumSet res = new ParcelTemplateEnumSet(typ); - res.USPSParcelTemplate = uspsParcelTemplate; + res.ParcelTemplateUSPSEnum = parcelTemplateUSPSEnum; return res; } - public static ParcelTemplateEnumSet CreateDHLECommerceParcelTemplate(DHLECommerceParcelTemplate dhlECommerceParcelTemplate) { - ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.DHLECommerceParcelTemplate; + public static ParcelTemplateEnumSet CreateParcelTemplateDHLeCommerceEnum(ParcelTemplateDHLeCommerceEnum parcelTemplateDHLeCommerceEnum) { + ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.ParcelTemplateDHLeCommerceEnum; ParcelTemplateEnumSet res = new ParcelTemplateEnumSet(typ); - res.DHLECommerceParcelTemplate = dhlECommerceParcelTemplate; + res.ParcelTemplateDHLeCommerceEnum = parcelTemplateDHLeCommerceEnum; return res; } - public static ParcelTemplateEnumSet CreateDPDUKParcelTemplate(DPDUKParcelTemplate dpdUKParcelTemplate) { - ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.DPDUKParcelTemplate; + public static ParcelTemplateEnumSet CreateParcelTemplateDPDUKEnum(ParcelTemplateDPDUKEnum parcelTemplateDPDUKEnum) { + ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.ParcelTemplateDPDUKEnum; ParcelTemplateEnumSet res = new ParcelTemplateEnumSet(typ); - res.DPDUKParcelTemplate = dpdUKParcelTemplate; + res.ParcelTemplateDPDUKEnum = parcelTemplateDPDUKEnum; return res; } - public static ParcelTemplateEnumSet CreateCouriersPleaseParcelTemplate(CouriersPleaseParcelTemplate couriersPleaseParcelTemplate) { - ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.CouriersPleaseParcelTemplate; + public static ParcelTemplateEnumSet CreateParcelTemplateCouriersPleaseEnum(ParcelTemplateCouriersPleaseEnum parcelTemplateCouriersPleaseEnum) { + ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.ParcelTemplateCouriersPleaseEnum; ParcelTemplateEnumSet res = new ParcelTemplateEnumSet(typ); - res.CouriersPleaseParcelTemplate = couriersPleaseParcelTemplate; + res.ParcelTemplateCouriersPleaseEnum = parcelTemplateCouriersPleaseEnum; return res; } - public static ParcelTemplateEnumSet CreateAramexAustraliaParcelTemplate(AramexAustraliaParcelTemplate aramexAustraliaParcelTemplate) { - ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.AramexAustraliaParcelTemplate; + public static ParcelTemplateEnumSet CreateParcelTemplateAramexAustraliaEnum(ParcelTemplateAramexAustraliaEnum parcelTemplateAramexAustraliaEnum) { + ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.ParcelTemplateAramexAustraliaEnum; ParcelTemplateEnumSet res = new ParcelTemplateEnumSet(typ); - res.AramexAustraliaParcelTemplate = aramexAustraliaParcelTemplate; + res.ParcelTemplateAramexAustraliaEnum = parcelTemplateAramexAustraliaEnum; return res; } @@ -166,16 +181,17 @@ public class ParcelTemplateEnumSetConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { - return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.FedExParcelTemplate) + return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateFedExEnum) { - FedExParcelTemplate = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + ParcelTemplateFedExEnum = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) }; } catch (ResponseBodyDeserializer.MissingMemberException) { - fallbackCandidates.Add((typeof(FedExParcelTemplate), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.FedExParcelTemplate), "FedExParcelTemplate")); + fallbackCandidates.Add((typeof(ParcelTemplateFedExEnum), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateFedExEnum), "ParcelTemplateFedExEnum")); } catch (ResponseBodyDeserializer.DeserializationException) { @@ -185,17 +201,17 @@ public class ParcelTemplateEnumSetConverter : JsonConverter { throw; } - + try { - return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.UPSParcelTemplate) + return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateUPSEnum) { - UPSParcelTemplate = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + ParcelTemplateUPSEnum = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) }; } catch (ResponseBodyDeserializer.MissingMemberException) { - fallbackCandidates.Add((typeof(UPSParcelTemplate), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.UPSParcelTemplate), "UPSParcelTemplate")); + fallbackCandidates.Add((typeof(ParcelTemplateUPSEnum), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateUPSEnum), "ParcelTemplateUPSEnum")); } catch (ResponseBodyDeserializer.DeserializationException) { @@ -205,17 +221,17 @@ public class ParcelTemplateEnumSetConverter : JsonConverter { throw; } - + try { - return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.USPSParcelTemplate) + return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateUSPSEnum) { - USPSParcelTemplate = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + ParcelTemplateUSPSEnum = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) }; } catch (ResponseBodyDeserializer.MissingMemberException) { - fallbackCandidates.Add((typeof(USPSParcelTemplate), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.USPSParcelTemplate), "USPSParcelTemplate")); + fallbackCandidates.Add((typeof(ParcelTemplateUSPSEnum), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateUSPSEnum), "ParcelTemplateUSPSEnum")); } catch (ResponseBodyDeserializer.DeserializationException) { @@ -225,17 +241,17 @@ public class ParcelTemplateEnumSetConverter : JsonConverter { throw; } - + try { - return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.DHLECommerceParcelTemplate) + return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateDHLeCommerceEnum) { - DHLECommerceParcelTemplate = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + ParcelTemplateDHLeCommerceEnum = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) }; } catch (ResponseBodyDeserializer.MissingMemberException) { - fallbackCandidates.Add((typeof(DHLECommerceParcelTemplate), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.DHLECommerceParcelTemplate), "DHLECommerceParcelTemplate")); + fallbackCandidates.Add((typeof(ParcelTemplateDHLeCommerceEnum), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateDHLeCommerceEnum), "ParcelTemplateDHLeCommerceEnum")); } catch (ResponseBodyDeserializer.DeserializationException) { @@ -245,17 +261,17 @@ public class ParcelTemplateEnumSetConverter : JsonConverter { throw; } - + try { - return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.DPDUKParcelTemplate) + return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateDPDUKEnum) { - DPDUKParcelTemplate = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + ParcelTemplateDPDUKEnum = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) }; } catch (ResponseBodyDeserializer.MissingMemberException) { - fallbackCandidates.Add((typeof(DPDUKParcelTemplate), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.DPDUKParcelTemplate), "DPDUKParcelTemplate")); + fallbackCandidates.Add((typeof(ParcelTemplateDPDUKEnum), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateDPDUKEnum), "ParcelTemplateDPDUKEnum")); } catch (ResponseBodyDeserializer.DeserializationException) { @@ -265,17 +281,17 @@ public class ParcelTemplateEnumSetConverter : JsonConverter { throw; } - + try { - return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.CouriersPleaseParcelTemplate) + return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateCouriersPleaseEnum) { - CouriersPleaseParcelTemplate = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + ParcelTemplateCouriersPleaseEnum = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) }; } catch (ResponseBodyDeserializer.MissingMemberException) { - fallbackCandidates.Add((typeof(CouriersPleaseParcelTemplate), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.CouriersPleaseParcelTemplate), "CouriersPleaseParcelTemplate")); + fallbackCandidates.Add((typeof(ParcelTemplateCouriersPleaseEnum), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateCouriersPleaseEnum), "ParcelTemplateCouriersPleaseEnum")); } catch (ResponseBodyDeserializer.DeserializationException) { @@ -285,17 +301,17 @@ public class ParcelTemplateEnumSetConverter : JsonConverter { throw; } - + try { - return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.AramexAustraliaParcelTemplate) + return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateAramexAustraliaEnum) { - AramexAustraliaParcelTemplate = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + ParcelTemplateAramexAustraliaEnum = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) }; } catch (ResponseBodyDeserializer.MissingMemberException) { - fallbackCandidates.Add((typeof(AramexAustraliaParcelTemplate), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.AramexAustraliaParcelTemplate), "AramexAustraliaParcelTemplate")); + fallbackCandidates.Add((typeof(ParcelTemplateAramexAustraliaEnum), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateAramexAustraliaEnum), "ParcelTemplateAramexAustraliaEnum")); } catch (ResponseBodyDeserializer.DeserializationException) { @@ -305,7 +321,7 @@ public class ParcelTemplateEnumSetConverter : JsonConverter { throw; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -326,7 +342,6 @@ public class ParcelTemplateEnumSetConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -342,45 +357,45 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer writer.WriteRawValue("null"); return; } - if (res.FedExParcelTemplate != null) + if (res.ParcelTemplateFedExEnum != null) { - writer.WriteRawValue(Utilities.SerializeJSON(res.FedExParcelTemplate)); + writer.WriteRawValue(Utilities.SerializeJSON(res.ParcelTemplateFedExEnum)); return; } - if (res.UPSParcelTemplate != null) + if (res.ParcelTemplateUPSEnum != null) { - writer.WriteRawValue(Utilities.SerializeJSON(res.UPSParcelTemplate)); + writer.WriteRawValue(Utilities.SerializeJSON(res.ParcelTemplateUPSEnum)); return; } - if (res.USPSParcelTemplate != null) + if (res.ParcelTemplateUSPSEnum != null) { - writer.WriteRawValue(Utilities.SerializeJSON(res.USPSParcelTemplate)); + writer.WriteRawValue(Utilities.SerializeJSON(res.ParcelTemplateUSPSEnum)); return; } - if (res.DHLECommerceParcelTemplate != null) + if (res.ParcelTemplateDHLeCommerceEnum != null) { - writer.WriteRawValue(Utilities.SerializeJSON(res.DHLECommerceParcelTemplate)); + writer.WriteRawValue(Utilities.SerializeJSON(res.ParcelTemplateDHLeCommerceEnum)); return; } - if (res.DPDUKParcelTemplate != null) + if (res.ParcelTemplateDPDUKEnum != null) { - writer.WriteRawValue(Utilities.SerializeJSON(res.DPDUKParcelTemplate)); + writer.WriteRawValue(Utilities.SerializeJSON(res.ParcelTemplateDPDUKEnum)); return; } - if (res.CouriersPleaseParcelTemplate != null) + if (res.ParcelTemplateCouriersPleaseEnum != null) { - writer.WriteRawValue(Utilities.SerializeJSON(res.CouriersPleaseParcelTemplate)); + writer.WriteRawValue(Utilities.SerializeJSON(res.ParcelTemplateCouriersPleaseEnum)); return; } - if (res.AramexAustraliaParcelTemplate != null) + if (res.ParcelTemplateAramexAustraliaEnum != null) { - writer.WriteRawValue(Utilities.SerializeJSON(res.AramexAustraliaParcelTemplate)); + writer.WriteRawValue(Utilities.SerializeJSON(res.ParcelTemplateAramexAustraliaEnum)); return; } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/FedExParcelTemplate.cs b/Shippo/Models/Components/ParcelTemplateFedExEnum.cs similarity index 87% rename from Shippo/Models/Components/FedExParcelTemplate.cs rename to Shippo/Models/Components/ParcelTemplateFedExEnum.cs index ab33326..3f756f3 100644 --- a/Shippo/Models/Components/FedExParcelTemplate.cs +++ b/Shippo/Models/Components/ParcelTemplateFedExEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -37,7 +37,7 @@ namespace Shippo.Models.Components /// /// /// - public enum FedExParcelTemplate + public enum ParcelTemplateFedExEnum { [JsonProperty("FedEx_Box_10kg")] FedExBox10kg, @@ -73,16 +73,16 @@ public enum FedExParcelTemplate FedExXLPak, } - public static class FedExParcelTemplateExtension + public static class ParcelTemplateFedExEnumExtension { - public static string Value(this FedExParcelTemplate value) + public static string Value(this ParcelTemplateFedExEnum value) { return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); } - public static FedExParcelTemplate ToEnum(this string value) + public static ParcelTemplateFedExEnum ToEnum(this string value) { - foreach(var field in typeof(FedExParcelTemplate).GetFields()) + foreach(var field in typeof(ParcelTemplateFedExEnum).GetFields()) { var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); if (attributes.Length == 0) @@ -95,14 +95,14 @@ public static FedExParcelTemplate ToEnum(this string value) { var enumVal = field.GetValue(null); - if (enumVal is FedExParcelTemplate) + if (enumVal is ParcelTemplateFedExEnum) { - return (FedExParcelTemplate)enumVal; + return (ParcelTemplateFedExEnum)enumVal; } } } - throw new Exception($"Unknown value {value} for enum FedExParcelTemplate"); + throw new Exception($"Unknown value {value} for enum ParcelTemplateFedExEnum"); } } diff --git a/Shippo/Models/Components/UPSParcelTemplate.cs b/Shippo/Models/Components/ParcelTemplateUPSEnum.cs similarity index 91% rename from Shippo/Models/Components/UPSParcelTemplate.cs rename to Shippo/Models/Components/ParcelTemplateUPSEnum.cs index ab39ea1..5f292e8 100644 --- a/Shippo/Models/Components/UPSParcelTemplate.cs +++ b/Shippo/Models/Components/ParcelTemplateUPSEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -46,7 +46,7 @@ namespace Shippo.Models.Components /// /// /// - public enum UPSParcelTemplate + public enum ParcelTemplateUPSEnum { [JsonProperty("UPS_Box_10kg")] UPSBox10kg, @@ -100,16 +100,16 @@ public enum UPSParcelTemplate UPSPallet, } - public static class UPSParcelTemplateExtension + public static class ParcelTemplateUPSEnumExtension { - public static string Value(this UPSParcelTemplate value) + public static string Value(this ParcelTemplateUPSEnum value) { return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); } - public static UPSParcelTemplate ToEnum(this string value) + public static ParcelTemplateUPSEnum ToEnum(this string value) { - foreach(var field in typeof(UPSParcelTemplate).GetFields()) + foreach(var field in typeof(ParcelTemplateUPSEnum).GetFields()) { var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); if (attributes.Length == 0) @@ -122,14 +122,14 @@ public static UPSParcelTemplate ToEnum(this string value) { var enumVal = field.GetValue(null); - if (enumVal is UPSParcelTemplate) + if (enumVal is ParcelTemplateUPSEnum) { - return (UPSParcelTemplate)enumVal; + return (ParcelTemplateUPSEnum)enumVal; } } } - throw new Exception($"Unknown value {value} for enum UPSParcelTemplate"); + throw new Exception($"Unknown value {value} for enum ParcelTemplateUPSEnum"); } } diff --git a/Shippo/Models/Components/USPSParcelTemplate.cs b/Shippo/Models/Components/ParcelTemplateUSPSEnum.cs similarity index 90% rename from Shippo/Models/Components/USPSParcelTemplate.cs rename to Shippo/Models/Components/ParcelTemplateUSPSEnum.cs index 31a975b..bb1fae8 100644 --- a/Shippo/Models/Components/USPSParcelTemplate.cs +++ b/Shippo/Models/Components/ParcelTemplateUSPSEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -41,7 +41,7 @@ namespace Shippo.Models.Components /// /// /// - public enum USPSParcelTemplate + public enum ParcelTemplateUSPSEnum { [JsonProperty("USPS_FlatRateCardboardEnvelope")] USPSFlatRateCardboardEnvelope, @@ -85,16 +85,16 @@ public enum USPSParcelTemplate USPSSoftPack, } - public static class USPSParcelTemplateExtension + public static class ParcelTemplateUSPSEnumExtension { - public static string Value(this USPSParcelTemplate value) + public static string Value(this ParcelTemplateUSPSEnum value) { return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); } - public static USPSParcelTemplate ToEnum(this string value) + public static ParcelTemplateUSPSEnum ToEnum(this string value) { - foreach(var field in typeof(USPSParcelTemplate).GetFields()) + foreach(var field in typeof(ParcelTemplateUSPSEnum).GetFields()) { var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); if (attributes.Length == 0) @@ -107,14 +107,14 @@ public static USPSParcelTemplate ToEnum(this string value) { var enumVal = field.GetValue(null); - if (enumVal is USPSParcelTemplate) + if (enumVal is ParcelTemplateUSPSEnum) { - return (USPSParcelTemplate)enumVal; + return (ParcelTemplateUSPSEnum)enumVal; } } } - throw new Exception($"Unknown value {value} for enum USPSParcelTemplate"); + throw new Exception($"Unknown value {value} for enum ParcelTemplateUSPSEnum"); } } diff --git a/Shippo/Models/Components/Parcels.cs b/Shippo/Models/Components/Parcels.cs index 135296f..40a117d 100644 --- a/Shippo/Models/Components/Parcels.cs +++ b/Shippo/Models/Components/Parcels.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -57,16 +57,22 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(Parcels.ParcelsConverter))] public class Parcels { public Parcels(ParcelsType type) { Type = type; } - public ParcelCreateRequest? ParcelCreateRequest { get; set; } - public ParcelCreateFromTemplateRequest? ParcelCreateFromTemplateRequest { get; set; } - public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ParcelCreateRequest? ParcelCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ParcelCreateFromTemplateRequest? ParcelCreateFromTemplateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } public ParcelsType Type { get; set; } @@ -116,6 +122,7 @@ public class ParcelsConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new Parcels(ParcelsType.ParcelCreateFromTemplateRequest) @@ -135,7 +142,7 @@ public class ParcelsConverter : JsonConverter { throw; } - + try { return new Parcels(ParcelsType.ParcelCreateRequest) @@ -155,14 +162,14 @@ public class ParcelsConverter : JsonConverter { throw; } - + if (json[0] == '"' && json[^1] == '"'){ return new Parcels(ParcelsType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -183,7 +190,6 @@ public class ParcelsConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -216,8 +222,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/ParentServicelevel.cs b/Shippo/Models/Components/ParentServicelevel.cs deleted file mode 100644 index 06ef4d6..0000000 --- a/Shippo/Models/Components/ParentServicelevel.cs +++ /dev/null @@ -1,64 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace Shippo.Models.Components -{ - using Newtonsoft.Json; - using Shippo.Utils; - - /// - /// Used for some Service Levels to link to the more "generic" version of this Service Level - for example,
- /// - /// - /// if this Service Level is a variation specific to shipments to Europe("ups_saver_eu"), the "parent" is
- /// the fully generic version ("ups_saver"). Helpful when displaying Service Levels to users. Has the same
- /// structure of the servicelevel - "name", "token", "terms", and "extended_token", or it is otherwise null. - ///
- ///
- public class ParentServicelevel - { - - /// - /// Name of the Rate's servicelevel, e.g. `International Priority` or `Standard Post`.
- /// - /// - /// A servicelevel commonly defines the transit time of a Shipment (e.g., Express vs. Standard), along with other properties.
- /// These names vary depending on the provider. - ///
- ///
- [JsonProperty("name")] - public string? Name { get; set; } - - /// - /// Further clarification of the service. - /// - [JsonProperty("terms")] - public string? Terms { get; set; } - - /// - /// Token of the Rate's servicelevel, e.g. `usps_priority` or `fedex_ground`.
- /// - /// - /// See <a href="#tag/Service-Levels">servicelevels</a>. - /// - ///
- [JsonProperty("token")] - public string? Token { get; set; } - - /// - /// Unique, extended version of the Service Level "token".
- /// - /// - /// Guaranteed to be unique across all Service Levels, and may help offer insight into the specific Service Level it describes. - /// - ///
- [JsonProperty("extended_token")] - public string? ExtendedToken { get; set; } - } -} \ No newline at end of file diff --git a/Shippo/Models/Components/PaymentMethod.cs b/Shippo/Models/Components/PaymentMethod.cs index 31b2934..f9d898c 100644 --- a/Shippo/Models/Components/PaymentMethod.cs +++ b/Shippo/Models/Components/PaymentMethod.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Pickup.cs b/Shippo/Models/Components/Pickup.cs index a84eae8..d74fe6a 100644 --- a/Shippo/Models/Components/Pickup.cs +++ b/Shippo/Models/Components/Pickup.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/PickupBase.cs b/Shippo/Models/Components/PickupBase.cs index 24704b2..c0b3097 100644 --- a/Shippo/Models/Components/PickupBase.cs +++ b/Shippo/Models/Components/PickupBase.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/PickupStatus.cs b/Shippo/Models/Components/PickupStatus.cs index c20b167..7295b11 100644 --- a/Shippo/Models/Components/PickupStatus.cs +++ b/Shippo/Models/Components/PickupStatus.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/PoNumber.cs b/Shippo/Models/Components/PoNumber.cs index 541d151..7301bdb 100644 --- a/Shippo/Models/Components/PoNumber.cs +++ b/Shippo/Models/Components/PoNumber.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/PreferredDeliveryTimeframe.cs b/Shippo/Models/Components/PreferredDeliveryTimeframe.cs index 2524841..32cfe53 100644 --- a/Shippo/Models/Components/PreferredDeliveryTimeframe.cs +++ b/Shippo/Models/Components/PreferredDeliveryTimeframe.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Provider.cs b/Shippo/Models/Components/Provider.cs index ee878f6..316eb4e 100644 --- a/Shippo/Models/Components/Provider.cs +++ b/Shippo/Models/Components/Provider.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Rate.cs b/Shippo/Models/Components/Rate.cs index 7aaa42c..f7e9dae 100644 --- a/Shippo/Models/Components/Rate.cs +++ b/Shippo/Models/Components/Rate.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/RatePaginatedList.cs b/Shippo/Models/Components/RatePaginatedList.cs index dcd8eeb..28d96a0 100644 --- a/Shippo/Models/Components/RatePaginatedList.cs +++ b/Shippo/Models/Components/RatePaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/RecipientType.cs b/Shippo/Models/Components/RecipientType.cs index fa801b7..161c0fa 100644 --- a/Shippo/Models/Components/RecipientType.cs +++ b/Shippo/Models/Components/RecipientType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Refund.cs b/Shippo/Models/Components/Refund.cs index 0fdc499..1ee1702 100644 --- a/Shippo/Models/Components/Refund.cs +++ b/Shippo/Models/Components/Refund.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/RefundPaginatedList.cs b/Shippo/Models/Components/RefundPaginatedList.cs index 16438ef..14a09ea 100644 --- a/Shippo/Models/Components/RefundPaginatedList.cs +++ b/Shippo/Models/Components/RefundPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/RefundRequestBody.cs b/Shippo/Models/Components/RefundRequestBody.cs index 9b15357..8790347 100644 --- a/Shippo/Models/Components/RefundRequestBody.cs +++ b/Shippo/Models/Components/RefundRequestBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/RefundStatus.cs b/Shippo/Models/Components/RefundStatus.cs index ce37cce..dc54878 100644 --- a/Shippo/Models/Components/RefundStatus.cs +++ b/Shippo/Models/Components/RefundStatus.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ResponseMessage.cs b/Shippo/Models/Components/ResponseMessage.cs index 4bf83f6..cdbddd5 100644 --- a/Shippo/Models/Components/ResponseMessage.cs +++ b/Shippo/Models/Components/ResponseMessage.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ReturnServiceType.cs b/Shippo/Models/Components/ReturnServiceType.cs index 00029d2..93726f7 100644 --- a/Shippo/Models/Components/ReturnServiceType.cs +++ b/Shippo/Models/Components/ReturnServiceType.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,17 +54,22 @@ public override int GetHashCode() return Value.GetHashCode(); } } - -/// -/// Request additional return option for return shipments (UPS and Lasership only). -/// + + + /// + /// Request additional return option for return shipments (UPS and Lasership only). + /// [JsonConverter(typeof(ReturnServiceType.ReturnServiceTypeConverter))] public class ReturnServiceType { public ReturnServiceType(ReturnServiceTypeType type) { Type = type; } - public ShipmentExtraReturnServiceTypeUPSEnum? ShipmentExtraReturnServiceTypeUPSEnum { get; set; } - public ShipmentExtraReturnServiceTypeLasershipEnum? ShipmentExtraReturnServiceTypeLasershipEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ShipmentExtraReturnServiceTypeUPSEnum? ShipmentExtraReturnServiceTypeUPSEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ShipmentExtraReturnServiceTypeLasershipEnum? ShipmentExtraReturnServiceTypeLasershipEnum { get; set; } public ReturnServiceTypeType Type { get; set; } @@ -106,6 +111,7 @@ public class ReturnServiceTypeConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new ReturnServiceType(ReturnServiceTypeType.ShipmentExtraReturnServiceTypeUPSEnum) @@ -125,7 +131,7 @@ public class ReturnServiceTypeConverter : JsonConverter { throw; } - + try { return new ReturnServiceType(ReturnServiceTypeType.ShipmentExtraReturnServiceTypeLasershipEnum) @@ -145,7 +151,7 @@ public class ReturnServiceTypeConverter : JsonConverter { throw; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -166,7 +172,6 @@ public class ReturnServiceTypeConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -194,8 +199,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/RmaNumber.cs b/Shippo/Models/Components/RmaNumber.cs index 0e44a39..1f74bf5 100644 --- a/Shippo/Models/Components/RmaNumber.cs +++ b/Shippo/Models/Components/RmaNumber.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Security.cs b/Shippo/Models/Components/Security.cs index f08eee5..e219f6f 100644 --- a/Shippo/Models/Components/Security.cs +++ b/Shippo/Models/Components/Security.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceGroup.cs b/Shippo/Models/Components/ServiceGroup.cs index 8e87198..5e1c4ab 100644 --- a/Shippo/Models/Components/ServiceGroup.cs +++ b/Shippo/Models/Components/ServiceGroup.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceGroupAccountAndServiceLevel.cs b/Shippo/Models/Components/ServiceGroupAccountAndServiceLevel.cs index 0595c63..790e301 100644 --- a/Shippo/Models/Components/ServiceGroupAccountAndServiceLevel.cs +++ b/Shippo/Models/Components/ServiceGroupAccountAndServiceLevel.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceGroupCreateRequest.cs b/Shippo/Models/Components/ServiceGroupCreateRequest.cs index d2f4894..bc0b767 100644 --- a/Shippo/Models/Components/ServiceGroupCreateRequest.cs +++ b/Shippo/Models/Components/ServiceGroupCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceGroupTypeEnum.cs b/Shippo/Models/Components/ServiceGroupTypeEnum.cs index f3e20af..699ab09 100644 --- a/Shippo/Models/Components/ServiceGroupTypeEnum.cs +++ b/Shippo/Models/Components/ServiceGroupTypeEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceGroupUpdateRequest.cs b/Shippo/Models/Components/ServiceGroupUpdateRequest.cs index fa68fb6..8a80621 100644 --- a/Shippo/Models/Components/ServiceGroupUpdateRequest.cs +++ b/Shippo/Models/Components/ServiceGroupUpdateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevel.cs b/Shippo/Models/Components/ServiceLevel.cs index 8733f6e..caece42 100644 --- a/Shippo/Models/Components/ServiceLevel.cs +++ b/Shippo/Models/Components/ServiceLevel.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -13,7 +13,13 @@ namespace Shippo.Models.Components using Shippo.Utils; /// - /// Contains details regarding the service level for the given rate. + /// Used for some Service Levels to link to the more "generic" version of this Service Level - for example,
+ /// + /// + /// if this Service Level is a variation specific to shipments to Europe("ups_saver_eu"), the "parent" is
+ /// the fully generic version ("ups_saver"). Helpful when displaying Service Levels to users. Has the same
+ /// structure of the servicelevel - "name", "token", "terms", and "extended_token", or it is otherwise null. + ///
///
public class ServiceLevel { diff --git a/Shippo/Models/Components/ServiceLevelAPCPostalEnum.cs b/Shippo/Models/Components/ServiceLevelAPCPostalEnum.cs index 2d8688c..fa0a62e 100644 --- a/Shippo/Models/Components/ServiceLevelAPCPostalEnum.cs +++ b/Shippo/Models/Components/ServiceLevelAPCPostalEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelAPGEnum.cs b/Shippo/Models/Components/ServiceLevelAPGEnum.cs index 574d16f..9b91fd3 100644 --- a/Shippo/Models/Components/ServiceLevelAPGEnum.cs +++ b/Shippo/Models/Components/ServiceLevelAPGEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelAirterraEnum.cs b/Shippo/Models/Components/ServiceLevelAirterraEnum.cs index a7cec5f..9ec84e9 100644 --- a/Shippo/Models/Components/ServiceLevelAirterraEnum.cs +++ b/Shippo/Models/Components/ServiceLevelAirterraEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelAramexAustraliaEnum.cs b/Shippo/Models/Components/ServiceLevelAramexAustraliaEnum.cs index 103f18f..433cd7b 100644 --- a/Shippo/Models/Components/ServiceLevelAramexAustraliaEnum.cs +++ b/Shippo/Models/Components/ServiceLevelAramexAustraliaEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelAsendiaEnum.cs b/Shippo/Models/Components/ServiceLevelAsendiaEnum.cs index 7d04692..7c99bc9 100644 --- a/Shippo/Models/Components/ServiceLevelAsendiaEnum.cs +++ b/Shippo/Models/Components/ServiceLevelAsendiaEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelAustraliaPostEnum.cs b/Shippo/Models/Components/ServiceLevelAustraliaPostEnum.cs index d29770a..b777e63 100644 --- a/Shippo/Models/Components/ServiceLevelAustraliaPostEnum.cs +++ b/Shippo/Models/Components/ServiceLevelAustraliaPostEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelBetterTrucksEnum.cs b/Shippo/Models/Components/ServiceLevelBetterTrucksEnum.cs index 565da09..ff79194 100644 --- a/Shippo/Models/Components/ServiceLevelBetterTrucksEnum.cs +++ b/Shippo/Models/Components/ServiceLevelBetterTrucksEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelCDLEnum.cs b/Shippo/Models/Components/ServiceLevelCDLEnum.cs index 9e59e99..be8dec9 100644 --- a/Shippo/Models/Components/ServiceLevelCDLEnum.cs +++ b/Shippo/Models/Components/ServiceLevelCDLEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelCanadaPostEnum.cs b/Shippo/Models/Components/ServiceLevelCanadaPostEnum.cs index 2dd2da4..c0b4db4 100644 --- a/Shippo/Models/Components/ServiceLevelCanadaPostEnum.cs +++ b/Shippo/Models/Components/ServiceLevelCanadaPostEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelChronopostEnum.cs b/Shippo/Models/Components/ServiceLevelChronopostEnum.cs index 2359c84..5bc974b 100644 --- a/Shippo/Models/Components/ServiceLevelChronopostEnum.cs +++ b/Shippo/Models/Components/ServiceLevelChronopostEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelColissimoEnum.cs b/Shippo/Models/Components/ServiceLevelColissimoEnum.cs index a3f4aa9..79ab029 100644 --- a/Shippo/Models/Components/ServiceLevelColissimoEnum.cs +++ b/Shippo/Models/Components/ServiceLevelColissimoEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelCorreosEspanaEnum.cs b/Shippo/Models/Components/ServiceLevelCorreosEspanaEnum.cs index b4ae90a..b867daf 100644 --- a/Shippo/Models/Components/ServiceLevelCorreosEspanaEnum.cs +++ b/Shippo/Models/Components/ServiceLevelCorreosEspanaEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelCouriersPleaseEnum.cs b/Shippo/Models/Components/ServiceLevelCouriersPleaseEnum.cs index 30de266..904d5c0 100644 --- a/Shippo/Models/Components/ServiceLevelCouriersPleaseEnum.cs +++ b/Shippo/Models/Components/ServiceLevelCouriersPleaseEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelDHLExpressEnum.cs b/Shippo/Models/Components/ServiceLevelDHLExpressEnum.cs index d86a958..6fbbfcf 100644 --- a/Shippo/Models/Components/ServiceLevelDHLExpressEnum.cs +++ b/Shippo/Models/Components/ServiceLevelDHLExpressEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelDHLGermanyEnum.cs b/Shippo/Models/Components/ServiceLevelDHLGermanyEnum.cs index 9063128..3b4467e 100644 --- a/Shippo/Models/Components/ServiceLevelDHLGermanyEnum.cs +++ b/Shippo/Models/Components/ServiceLevelDHLGermanyEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelDHLeCommerceEnum.cs b/Shippo/Models/Components/ServiceLevelDHLeCommerceEnum.cs index f52e830..a4ebfbd 100644 --- a/Shippo/Models/Components/ServiceLevelDHLeCommerceEnum.cs +++ b/Shippo/Models/Components/ServiceLevelDHLeCommerceEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelDPDDEEnum.cs b/Shippo/Models/Components/ServiceLevelDPDDEEnum.cs index 654a0a4..c8cbb5a 100644 --- a/Shippo/Models/Components/ServiceLevelDPDDEEnum.cs +++ b/Shippo/Models/Components/ServiceLevelDPDDEEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelDPDUKEnum.cs b/Shippo/Models/Components/ServiceLevelDPDUKEnum.cs index 4e2644a..1e0ad9f 100644 --- a/Shippo/Models/Components/ServiceLevelDPDUKEnum.cs +++ b/Shippo/Models/Components/ServiceLevelDPDUKEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelDeutschePostEnum.cs b/Shippo/Models/Components/ServiceLevelDeutschePostEnum.cs index 30587b3..f780702 100644 --- a/Shippo/Models/Components/ServiceLevelDeutschePostEnum.cs +++ b/Shippo/Models/Components/ServiceLevelDeutschePostEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelEnumSet.cs b/Shippo/Models/Components/ServiceLevelEnumSet.cs index a3d2913..ec0d0e9 100644 --- a/Shippo/Models/Components/ServiceLevelEnumSet.cs +++ b/Shippo/Models/Components/ServiceLevelEnumSet.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -78,8 +78,6 @@ public class ServiceLevelEnumSetType public static ServiceLevelEnumSetType ServiceLevelMondialRelayEnum { get { return new ServiceLevelEnumSetType("ServiceLevelMondialRelayEnum"); } } - public static ServiceLevelEnumSetType ServiceLevelMaergoEnum { get { return new ServiceLevelEnumSetType("ServiceLevelMaergoEnum"); } } - public static ServiceLevelEnumSetType ServiceLevelParcelforceEnum { get { return new ServiceLevelEnumSetType("ServiceLevelParcelforceEnum"); } } public static ServiceLevelEnumSetType ServiceLevelPostItalianeEnum { get { return new ServiceLevelEnumSetType("ServiceLevelPostItalianeEnum"); } } @@ -137,7 +135,6 @@ public static ServiceLevelEnumSetType FromString(string v) { case "ServiceLevelGLSUSEnum": return ServiceLevelGLSUSEnum; case "ServiceLevelLSOEnum": return ServiceLevelLSOEnum; case "ServiceLevelMondialRelayEnum": return ServiceLevelMondialRelayEnum; - case "ServiceLevelMaergoEnum": return ServiceLevelMaergoEnum; case "ServiceLevelParcelforceEnum": return ServiceLevelParcelforceEnum; case "ServiceLevelPostItalianeEnum": return ServiceLevelPostItalianeEnum; case "ServiceLevelePostGlobalEnum": return ServiceLevelePostGlobalEnum; @@ -168,53 +165,130 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(ServiceLevelEnumSet.ServiceLevelEnumSetConverter))] public class ServiceLevelEnumSet { public ServiceLevelEnumSet(ServiceLevelEnumSetType type) { Type = type; } - public ServiceLevelUSPSEnum? ServiceLevelUSPSEnum { get; set; } - public ServiceLevelFedExEnum? ServiceLevelFedExEnum { get; set; } - public ServiceLevelUPSEnum? ServiceLevelUPSEnum { get; set; } - public ServiceLevelAirterraEnum? ServiceLevelAirterraEnum { get; set; } - public ServiceLevelAPCPostalEnum? ServiceLevelAPCPostalEnum { get; set; } - public ServiceLevelAsendiaEnum? ServiceLevelAsendiaEnum { get; set; } - public ServiceLevelAustraliaPostEnum? ServiceLevelAustraliaPostEnum { get; set; } - public ServiceLevelAPGEnum? ServiceLevelAPGEnum { get; set; } - public ServiceLevelBetterTrucksEnum? ServiceLevelBetterTrucksEnum { get; set; } - public ServiceLevelCanadaPostEnum? ServiceLevelCanadaPostEnum { get; set; } - public ServiceLevelCDLEnum? ServiceLevelCDLEnum { get; set; } - public ServiceLevelChronopostEnum? ServiceLevelChronopostEnum { get; set; } - public ServiceLevelCouriersPleaseEnum? ServiceLevelCouriersPleaseEnum { get; set; } - public ServiceLevelCorreosEspanaEnum? ServiceLevelCorreosEspanaEnum { get; set; } - public ServiceLevelColissimoEnum? ServiceLevelColissimoEnum { get; set; } - public ServiceLevelPurolatorEnum? ServiceLevelPurolatorEnum { get; set; } - public ServiceLevelDHLExpressEnum? ServiceLevelDHLExpressEnum { get; set; } - public ServiceLevelDHLeCommerceEnum? ServiceLevelDHLeCommerceEnum { get; set; } - public ServiceLevelDHLGermanyEnum? ServiceLevelDHLGermanyEnum { get; set; } - public ServiceLevelDPDDEEnum? ServiceLevelDPDDEEnum { get; set; } - public ServiceLevelDPDUKEnum? ServiceLevelDPDUKEnum { get; set; } - public ServiceLevelDeutschePostEnum? ServiceLevelDeutschePostEnum { get; set; } - public ServiceLevelAramexAustraliaEnum? ServiceLevelAramexAustraliaEnum { get; set; } - public ServiceLevelGlobegisticsEnum? ServiceLevelGlobegisticsEnum { get; set; } - public ServiceLevelGLSUSEnum? ServiceLevelGLSUSEnum { get; set; } - public ServiceLevelLSOEnum? ServiceLevelLSOEnum { get; set; } - public ServiceLevelMondialRelayEnum? ServiceLevelMondialRelayEnum { get; set; } - public ServiceLevelMaergoEnum? ServiceLevelMaergoEnum { get; set; } - public ServiceLevelParcelforceEnum? ServiceLevelParcelforceEnum { get; set; } - public ServiceLevelPostItalianeEnum? ServiceLevelPostItalianeEnum { get; set; } - public ServiceLevelePostGlobalEnum? ServiceLevelePostGlobalEnum { get; set; } - public ServiceLevelRoyalMailEnum? ServiceLevelRoyalMailEnum { get; set; } - public ServiceLevelSendleEnum? ServiceLevelSendleEnum { get; set; } - public ServiceLevelOnTracEnum? ServiceLevelOnTracEnum { get; set; } - public ServiceLevelJitsuEnum? ServiceLevelJitsuEnum { get; set; } - public ServiceLevelLasershipEnum? ServiceLevelLasershipEnum { get; set; } - public ServiceLevelEvriUKEnum? ServiceLevelEvriUKEnum { get; set; } - public ServiceLevelUDSEnum? ServiceLevelUDSEnum { get; set; } - public ServiceLevelVehoEnum? ServiceLevelVehoEnum { get; set; } - public ServiceLevelSwyftEnum? ServiceLevelSwyftEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelUSPSEnum? ServiceLevelUSPSEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelFedExEnum? ServiceLevelFedExEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelUPSEnum? ServiceLevelUPSEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelAirterraEnum? ServiceLevelAirterraEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelAPCPostalEnum? ServiceLevelAPCPostalEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelAsendiaEnum? ServiceLevelAsendiaEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelAustraliaPostEnum? ServiceLevelAustraliaPostEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelAPGEnum? ServiceLevelAPGEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelBetterTrucksEnum? ServiceLevelBetterTrucksEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelCanadaPostEnum? ServiceLevelCanadaPostEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelCDLEnum? ServiceLevelCDLEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelChronopostEnum? ServiceLevelChronopostEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelCouriersPleaseEnum? ServiceLevelCouriersPleaseEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelCorreosEspanaEnum? ServiceLevelCorreosEspanaEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelColissimoEnum? ServiceLevelColissimoEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelPurolatorEnum? ServiceLevelPurolatorEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelDHLExpressEnum? ServiceLevelDHLExpressEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelDHLeCommerceEnum? ServiceLevelDHLeCommerceEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelDHLGermanyEnum? ServiceLevelDHLGermanyEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelDPDDEEnum? ServiceLevelDPDDEEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelDPDUKEnum? ServiceLevelDPDUKEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelDeutschePostEnum? ServiceLevelDeutschePostEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelAramexAustraliaEnum? ServiceLevelAramexAustraliaEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelGlobegisticsEnum? ServiceLevelGlobegisticsEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelGLSUSEnum? ServiceLevelGLSUSEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelLSOEnum? ServiceLevelLSOEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelMondialRelayEnum? ServiceLevelMondialRelayEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelParcelforceEnum? ServiceLevelParcelforceEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelPostItalianeEnum? ServiceLevelPostItalianeEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelePostGlobalEnum? ServiceLevelePostGlobalEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelRoyalMailEnum? ServiceLevelRoyalMailEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelSendleEnum? ServiceLevelSendleEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelOnTracEnum? ServiceLevelOnTracEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelJitsuEnum? ServiceLevelJitsuEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelLasershipEnum? ServiceLevelLasershipEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelEvriUKEnum? ServiceLevelEvriUKEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelUDSEnum? ServiceLevelUDSEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelVehoEnum? ServiceLevelVehoEnum { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ServiceLevelSwyftEnum? ServiceLevelSwyftEnum { get; set; } public ServiceLevelEnumSetType Type { get; set; } @@ -435,14 +509,6 @@ public static ServiceLevelEnumSet CreateServiceLevelMondialRelayEnum(ServiceLeve return res; } - public static ServiceLevelEnumSet CreateServiceLevelMaergoEnum(ServiceLevelMaergoEnum serviceLevelMaergoEnum) { - ServiceLevelEnumSetType typ = ServiceLevelEnumSetType.ServiceLevelMaergoEnum; - - ServiceLevelEnumSet res = new ServiceLevelEnumSet(typ); - res.ServiceLevelMaergoEnum = serviceLevelMaergoEnum; - return res; - } - public static ServiceLevelEnumSet CreateServiceLevelParcelforceEnum(ServiceLevelParcelforceEnum serviceLevelParcelforceEnum) { ServiceLevelEnumSetType typ = ServiceLevelEnumSetType.ServiceLevelParcelforceEnum; @@ -560,6 +626,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelUSPSEnum) @@ -579,7 +646,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelFedExEnum) @@ -599,7 +666,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelUPSEnum) @@ -619,7 +686,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelAirterraEnum) @@ -639,7 +706,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelAPCPostalEnum) @@ -659,7 +726,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelAsendiaEnum) @@ -679,7 +746,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelAustraliaPostEnum) @@ -699,7 +766,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelAPGEnum) @@ -719,7 +786,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelBetterTrucksEnum) @@ -739,7 +806,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelCanadaPostEnum) @@ -759,7 +826,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelCDLEnum) @@ -779,7 +846,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelChronopostEnum) @@ -799,7 +866,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelCouriersPleaseEnum) @@ -819,7 +886,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelCorreosEspanaEnum) @@ -839,7 +906,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelColissimoEnum) @@ -859,7 +926,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelPurolatorEnum) @@ -879,7 +946,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelDHLExpressEnum) @@ -899,7 +966,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelDHLeCommerceEnum) @@ -919,7 +986,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelDHLGermanyEnum) @@ -939,7 +1006,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelDPDDEEnum) @@ -959,7 +1026,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelDPDUKEnum) @@ -979,7 +1046,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelDeutschePostEnum) @@ -999,7 +1066,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelAramexAustraliaEnum) @@ -1019,7 +1086,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelGlobegisticsEnum) @@ -1039,7 +1106,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelGLSUSEnum) @@ -1059,7 +1126,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelLSOEnum) @@ -1079,7 +1146,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelMondialRelayEnum) @@ -1099,27 +1166,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - - try - { - return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelMaergoEnum) - { - ServiceLevelMaergoEnum = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(ServiceLevelMaergoEnum), new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelMaergoEnum), "ServiceLevelMaergoEnum")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelParcelforceEnum) @@ -1139,7 +1186,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelPostItalianeEnum) @@ -1159,7 +1206,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelePostGlobalEnum) @@ -1179,7 +1226,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelRoyalMailEnum) @@ -1199,7 +1246,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelSendleEnum) @@ -1219,7 +1266,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelOnTracEnum) @@ -1239,7 +1286,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelJitsuEnum) @@ -1259,7 +1306,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelLasershipEnum) @@ -1279,7 +1326,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelEvriUKEnum) @@ -1299,7 +1346,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelUDSEnum) @@ -1319,7 +1366,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelVehoEnum) @@ -1339,7 +1386,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelSwyftEnum) @@ -1359,7 +1406,7 @@ public class ServiceLevelEnumSetConverter : JsonConverter { throw; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -1380,7 +1427,6 @@ public class ServiceLevelEnumSetConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -1531,11 +1577,6 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer writer.WriteRawValue(Utilities.SerializeJSON(res.ServiceLevelMondialRelayEnum)); return; } - if (res.ServiceLevelMaergoEnum != null) - { - writer.WriteRawValue(Utilities.SerializeJSON(res.ServiceLevelMaergoEnum)); - return; - } if (res.ServiceLevelParcelforceEnum != null) { writer.WriteRawValue(Utilities.SerializeJSON(res.ServiceLevelParcelforceEnum)); @@ -1598,8 +1639,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/ServiceLevelEvriUKEnum.cs b/Shippo/Models/Components/ServiceLevelEvriUKEnum.cs index 161a448..8b14d36 100644 --- a/Shippo/Models/Components/ServiceLevelEvriUKEnum.cs +++ b/Shippo/Models/Components/ServiceLevelEvriUKEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelFedExEnum.cs b/Shippo/Models/Components/ServiceLevelFedExEnum.cs index 6880c3c..e32d1cd 100644 --- a/Shippo/Models/Components/ServiceLevelFedExEnum.cs +++ b/Shippo/Models/Components/ServiceLevelFedExEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelGLSUSEnum.cs b/Shippo/Models/Components/ServiceLevelGLSUSEnum.cs index b2d3b38..0e3a71f 100644 --- a/Shippo/Models/Components/ServiceLevelGLSUSEnum.cs +++ b/Shippo/Models/Components/ServiceLevelGLSUSEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelGlobegisticsEnum.cs b/Shippo/Models/Components/ServiceLevelGlobegisticsEnum.cs index ba66ed0..96dad29 100644 --- a/Shippo/Models/Components/ServiceLevelGlobegisticsEnum.cs +++ b/Shippo/Models/Components/ServiceLevelGlobegisticsEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelJitsuEnum.cs b/Shippo/Models/Components/ServiceLevelJitsuEnum.cs index 723c095..40d1ade 100644 --- a/Shippo/Models/Components/ServiceLevelJitsuEnum.cs +++ b/Shippo/Models/Components/ServiceLevelJitsuEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelLSOEnum.cs b/Shippo/Models/Components/ServiceLevelLSOEnum.cs index 175e562..1f5d85b 100644 --- a/Shippo/Models/Components/ServiceLevelLSOEnum.cs +++ b/Shippo/Models/Components/ServiceLevelLSOEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelLasershipEnum.cs b/Shippo/Models/Components/ServiceLevelLasershipEnum.cs index acab5b2..7b96bf5 100644 --- a/Shippo/Models/Components/ServiceLevelLasershipEnum.cs +++ b/Shippo/Models/Components/ServiceLevelLasershipEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelMondialRelayEnum.cs b/Shippo/Models/Components/ServiceLevelMondialRelayEnum.cs index dea0441..669ed62 100644 --- a/Shippo/Models/Components/ServiceLevelMondialRelayEnum.cs +++ b/Shippo/Models/Components/ServiceLevelMondialRelayEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelOnTracEnum.cs b/Shippo/Models/Components/ServiceLevelOnTracEnum.cs index 0970b8e..2f3108a 100644 --- a/Shippo/Models/Components/ServiceLevelOnTracEnum.cs +++ b/Shippo/Models/Components/ServiceLevelOnTracEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelParcelforceEnum.cs b/Shippo/Models/Components/ServiceLevelParcelforceEnum.cs index a6ad754..85bbbfc 100644 --- a/Shippo/Models/Components/ServiceLevelParcelforceEnum.cs +++ b/Shippo/Models/Components/ServiceLevelParcelforceEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelPostItalianeEnum.cs b/Shippo/Models/Components/ServiceLevelPostItalianeEnum.cs index f208885..97ddc8e 100644 --- a/Shippo/Models/Components/ServiceLevelPostItalianeEnum.cs +++ b/Shippo/Models/Components/ServiceLevelPostItalianeEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelPurolatorEnum.cs b/Shippo/Models/Components/ServiceLevelPurolatorEnum.cs index 4770ea3..8b5fd55 100644 --- a/Shippo/Models/Components/ServiceLevelPurolatorEnum.cs +++ b/Shippo/Models/Components/ServiceLevelPurolatorEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelRoyalMailEnum.cs b/Shippo/Models/Components/ServiceLevelRoyalMailEnum.cs index 879c4b5..b5f845f 100644 --- a/Shippo/Models/Components/ServiceLevelRoyalMailEnum.cs +++ b/Shippo/Models/Components/ServiceLevelRoyalMailEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelSendleEnum.cs b/Shippo/Models/Components/ServiceLevelSendleEnum.cs index c4fb704..edb55f6 100644 --- a/Shippo/Models/Components/ServiceLevelSendleEnum.cs +++ b/Shippo/Models/Components/ServiceLevelSendleEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelSwyftEnum.cs b/Shippo/Models/Components/ServiceLevelSwyftEnum.cs index f456b54..765e624 100644 --- a/Shippo/Models/Components/ServiceLevelSwyftEnum.cs +++ b/Shippo/Models/Components/ServiceLevelSwyftEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelUDSEnum.cs b/Shippo/Models/Components/ServiceLevelUDSEnum.cs index 81b8670..4c1e1b2 100644 --- a/Shippo/Models/Components/ServiceLevelUDSEnum.cs +++ b/Shippo/Models/Components/ServiceLevelUDSEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelUPSEnum.cs b/Shippo/Models/Components/ServiceLevelUPSEnum.cs index a2f5ac2..8c64980 100644 --- a/Shippo/Models/Components/ServiceLevelUPSEnum.cs +++ b/Shippo/Models/Components/ServiceLevelUPSEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelUSPSEnum.cs b/Shippo/Models/Components/ServiceLevelUSPSEnum.cs index 05bfa1e..c15710e 100644 --- a/Shippo/Models/Components/ServiceLevelUSPSEnum.cs +++ b/Shippo/Models/Components/ServiceLevelUSPSEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelVehoEnum.cs b/Shippo/Models/Components/ServiceLevelVehoEnum.cs index 612072a..37a6ac4 100644 --- a/Shippo/Models/Components/ServiceLevelVehoEnum.cs +++ b/Shippo/Models/Components/ServiceLevelVehoEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ServiceLevelWithParent.cs b/Shippo/Models/Components/ServiceLevelWithParent.cs index aebf23c..1a42baf 100644 --- a/Shippo/Models/Components/ServiceLevelWithParent.cs +++ b/Shippo/Models/Components/ServiceLevelWithParent.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -57,6 +57,6 @@ public class ServiceLevelWithParent public string? ExtendedToken { get; set; } [JsonProperty("parent_servicelevel")] - public ParentServicelevel? ParentServicelevel { get; set; } + public ServiceLevel? ParentServicelevel { get; set; } } } \ No newline at end of file diff --git a/Shippo/Models/Components/ServiceLevelePostGlobalEnum.cs b/Shippo/Models/Components/ServiceLevelePostGlobalEnum.cs index 193c250..24c9088 100644 --- a/Shippo/Models/Components/ServiceLevelePostGlobalEnum.cs +++ b/Shippo/Models/Components/ServiceLevelePostGlobalEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Shipment.cs b/Shippo/Models/Components/Shipment.cs index 1915262..f37b994 100644 --- a/Shippo/Models/Components/Shipment.cs +++ b/Shippo/Models/Components/Shipment.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ShipmentCreateRequest.cs b/Shippo/Models/Components/ShipmentCreateRequest.cs index 8f6a50a..be562f6 100644 --- a/Shippo/Models/Components/ShipmentCreateRequest.cs +++ b/Shippo/Models/Components/ShipmentCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ShipmentCreateRequestCustomsDeclaration.cs b/Shippo/Models/Components/ShipmentCreateRequestCustomsDeclaration.cs index a79e041..aab8dae 100644 --- a/Shippo/Models/Components/ShipmentCreateRequestCustomsDeclaration.cs +++ b/Shippo/Models/Components/ShipmentCreateRequestCustomsDeclaration.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,15 +54,19 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(ShipmentCreateRequestCustomsDeclaration.ShipmentCreateRequestCustomsDeclarationConverter))] public class ShipmentCreateRequestCustomsDeclaration { public ShipmentCreateRequestCustomsDeclaration(ShipmentCreateRequestCustomsDeclarationType type) { Type = type; } - public CustomsDeclarationCreateRequest? CustomsDeclarationCreateRequest { get; set; } - public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CustomsDeclarationCreateRequest? CustomsDeclarationCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } public ShipmentCreateRequestCustomsDeclarationType Type { get; set; } @@ -104,6 +108,7 @@ public class ShipmentCreateRequestCustomsDeclarationConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new ShipmentCreateRequestCustomsDeclaration(ShipmentCreateRequestCustomsDeclarationType.CustomsDeclarationCreateRequest) @@ -123,14 +128,14 @@ public class ShipmentCreateRequestCustomsDeclarationConverter : JsonConverter { throw; } - + if (json[0] == '"' && json[^1] == '"'){ return new ShipmentCreateRequestCustomsDeclaration(ShipmentCreateRequestCustomsDeclarationType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -151,7 +156,6 @@ public class ShipmentCreateRequestCustomsDeclarationConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -179,8 +183,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/ShipmentExtra.cs b/Shippo/Models/Components/ShipmentExtra.cs index 559097f..715799b 100644 --- a/Shippo/Models/Components/ShipmentExtra.cs +++ b/Shippo/Models/Components/ShipmentExtra.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ShipmentExtraLasershipAttributesEnum.cs b/Shippo/Models/Components/ShipmentExtraLasershipAttributesEnum.cs index 7a74e4c..ec8d0aa 100644 --- a/Shippo/Models/Components/ShipmentExtraLasershipAttributesEnum.cs +++ b/Shippo/Models/Components/ShipmentExtraLasershipAttributesEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ShipmentExtraReturnServiceTypeLasershipEnum.cs b/Shippo/Models/Components/ShipmentExtraReturnServiceTypeLasershipEnum.cs index bf5ebee..9004db9 100644 --- a/Shippo/Models/Components/ShipmentExtraReturnServiceTypeLasershipEnum.cs +++ b/Shippo/Models/Components/ShipmentExtraReturnServiceTypeLasershipEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ShipmentExtraReturnServiceTypeUPSEnum.cs b/Shippo/Models/Components/ShipmentExtraReturnServiceTypeUPSEnum.cs index a94c36d..958c0d5 100644 --- a/Shippo/Models/Components/ShipmentExtraReturnServiceTypeUPSEnum.cs +++ b/Shippo/Models/Components/ShipmentExtraReturnServiceTypeUPSEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ShipmentPaginatedList.cs b/Shippo/Models/Components/ShipmentPaginatedList.cs index 339edc2..5dcefd5 100644 --- a/Shippo/Models/Components/ShipmentPaginatedList.cs +++ b/Shippo/Models/Components/ShipmentPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ShipmentStatus.cs b/Shippo/Models/Components/ShipmentStatus.cs index e903fe0..a731874 100644 --- a/Shippo/Models/Components/ShipmentStatus.cs +++ b/Shippo/Models/Components/ShipmentStatus.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ShippoAccount.cs b/Shippo/Models/Components/ShippoAccount.cs index 6706233..3d1104b 100644 --- a/Shippo/Models/Components/ShippoAccount.cs +++ b/Shippo/Models/Components/ShippoAccount.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ShippoAccountPaginatedList.cs b/Shippo/Models/Components/ShippoAccountPaginatedList.cs index b65ef4d..281eb28 100644 --- a/Shippo/Models/Components/ShippoAccountPaginatedList.cs +++ b/Shippo/Models/Components/ShippoAccountPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/ShippoAccountUpdateRequest.cs b/Shippo/Models/Components/ShippoAccountUpdateRequest.cs index 7294598..58c706a 100644 --- a/Shippo/Models/Components/ShippoAccountUpdateRequest.cs +++ b/Shippo/Models/Components/ShippoAccountUpdateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/SignatureConfirmation.cs b/Shippo/Models/Components/SignatureConfirmation.cs index dffb6d3..1043dc7 100644 --- a/Shippo/Models/Components/SignatureConfirmation.cs +++ b/Shippo/Models/Components/SignatureConfirmation.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Status.cs b/Shippo/Models/Components/Status.cs index 26ca32a..d8f1833 100644 --- a/Shippo/Models/Components/Status.cs +++ b/Shippo/Models/Components/Status.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Track.cs b/Shippo/Models/Components/Track.cs index 96e520a..92df871 100644 --- a/Shippo/Models/Components/Track.cs +++ b/Shippo/Models/Components/Track.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/TrackingStatus.cs b/Shippo/Models/Components/TrackingStatus.cs index 044a670..9d7fd18 100644 --- a/Shippo/Models/Components/TrackingStatus.cs +++ b/Shippo/Models/Components/TrackingStatus.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/TrackingStatusEnum.cs b/Shippo/Models/Components/TrackingStatusEnum.cs index 7efdd0a..ca61561 100644 --- a/Shippo/Models/Components/TrackingStatusEnum.cs +++ b/Shippo/Models/Components/TrackingStatusEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/TrackingStatusLocationBase.cs b/Shippo/Models/Components/TrackingStatusLocationBase.cs index 830a808..b3de16b 100644 --- a/Shippo/Models/Components/TrackingStatusLocationBase.cs +++ b/Shippo/Models/Components/TrackingStatusLocationBase.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/TrackingStatusSubstatus.cs b/Shippo/Models/Components/TrackingStatusSubstatus.cs index 903ca6e..7d34f45 100644 --- a/Shippo/Models/Components/TrackingStatusSubstatus.cs +++ b/Shippo/Models/Components/TrackingStatusSubstatus.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/TracksRequest.cs b/Shippo/Models/Components/TracksRequest.cs index 7e1aa0f..824a24e 100644 --- a/Shippo/Models/Components/TracksRequest.cs +++ b/Shippo/Models/Components/TracksRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Transaction.cs b/Shippo/Models/Components/Transaction.cs index c0e1395..9d2b813 100644 --- a/Shippo/Models/Components/Transaction.cs +++ b/Shippo/Models/Components/Transaction.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/TransactionCreateRequest.cs b/Shippo/Models/Components/TransactionCreateRequest.cs index fda5352..aecbedf 100644 --- a/Shippo/Models/Components/TransactionCreateRequest.cs +++ b/Shippo/Models/Components/TransactionCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/TransactionPaginatedList.cs b/Shippo/Models/Components/TransactionPaginatedList.cs index 827b7a4..cc2ded5 100644 --- a/Shippo/Models/Components/TransactionPaginatedList.cs +++ b/Shippo/Models/Components/TransactionPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/TransactionRate.cs b/Shippo/Models/Components/TransactionRate.cs index 929e11c..2c1e89e 100644 --- a/Shippo/Models/Components/TransactionRate.cs +++ b/Shippo/Models/Components/TransactionRate.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,23 +54,28 @@ public override int GetHashCode() return Value.GetHashCode(); } } - -/// -/// ID of the Rate object for which a Label has to be obtained.
-/// -/// -/// If you purchase a label by calling the transaction endpoint without a rate (instalabel),
-/// this field will be a simplified Rate object in the Transaction model returned from the POST request.
-/// </br>Note, only rates less than 7 days old can be purchased to ensure up-to-date pricing. -///
-///
+ + + /// + /// ID of the Rate object for which a Label has to be obtained.
+ /// + /// + /// If you purchase a label by calling the transaction endpoint without a rate (instalabel),
+ /// this field will be a simplified Rate object in the Transaction model returned from the POST request.
+ /// </br>Note, only rates less than 7 days old can be purchased to ensure up-to-date pricing. + ///
+ ///
[JsonConverter(typeof(TransactionRate.TransactionRateConverter))] public class TransactionRate { public TransactionRate(TransactionRateType type) { Type = type; } - public CoreRate? CoreRate { get; set; } - public string? Str { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CoreRate? CoreRate { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public string? Str { get; set; } public TransactionRateType Type { get; set; } @@ -112,6 +117,7 @@ public class TransactionRateConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new TransactionRate(TransactionRateType.CoreRate) @@ -131,14 +137,14 @@ public class TransactionRateConverter : JsonConverter { throw; } - + if (json[0] == '"' && json[^1] == '"'){ return new TransactionRate(TransactionRateType.Str) { Str = json[1..^1] }; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -159,7 +165,6 @@ public class TransactionRateConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -187,8 +192,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/TransactionStatusEnum.cs b/Shippo/Models/Components/TransactionStatusEnum.cs index 4bc7d1e..d16d9ce 100644 --- a/Shippo/Models/Components/TransactionStatusEnum.cs +++ b/Shippo/Models/Components/TransactionStatusEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Type.cs b/Shippo/Models/Components/Type.cs index eca976f..025ef30 100644 --- a/Shippo/Models/Components/Type.cs +++ b/Shippo/Models/Components/Type.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/UPSConnectExistingOwnAccountParameters.cs b/Shippo/Models/Components/UPSConnectExistingOwnAccountParameters.cs index 286d6be..c0ac97c 100644 --- a/Shippo/Models/Components/UPSConnectExistingOwnAccountParameters.cs +++ b/Shippo/Models/Components/UPSConnectExistingOwnAccountParameters.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/UPSReferenceFields.cs b/Shippo/Models/Components/UPSReferenceFields.cs index b22933d..24f7623 100644 --- a/Shippo/Models/Components/UPSReferenceFields.cs +++ b/Shippo/Models/Components/UPSReferenceFields.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/UserParcelTemplate.cs b/Shippo/Models/Components/UserParcelTemplate.cs index 14d8ee3..c5b2d19 100644 --- a/Shippo/Models/Components/UserParcelTemplate.cs +++ b/Shippo/Models/Components/UserParcelTemplate.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/UserParcelTemplateCreateRequest.cs b/Shippo/Models/Components/UserParcelTemplateCreateRequest.cs index 9371219..af93332 100644 --- a/Shippo/Models/Components/UserParcelTemplateCreateRequest.cs +++ b/Shippo/Models/Components/UserParcelTemplateCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,15 +54,19 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(UserParcelTemplateCreateRequest.UserParcelTemplateCreateRequestConverter))] public class UserParcelTemplateCreateRequest { public UserParcelTemplateCreateRequest(UserParcelTemplateCreateRequestType type) { Type = type; } - public UserParcelTemplateWithCarrierTemplateCreateRequest? UserParcelTemplateWithCarrierTemplateCreateRequest { get; set; } - public UserParcelTemplateWithoutCarrierTemplateCreateRequest? UserParcelTemplateWithoutCarrierTemplateCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public UserParcelTemplateWithCarrierTemplateCreateRequest? UserParcelTemplateWithCarrierTemplateCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public UserParcelTemplateWithoutCarrierTemplateCreateRequest? UserParcelTemplateWithoutCarrierTemplateCreateRequest { get; set; } public UserParcelTemplateCreateRequestType Type { get; set; } @@ -104,6 +108,7 @@ public class UserParcelTemplateCreateRequestConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new UserParcelTemplateCreateRequest(UserParcelTemplateCreateRequestType.UserParcelTemplateWithCarrierTemplateCreateRequest) @@ -123,7 +128,7 @@ public class UserParcelTemplateCreateRequestConverter : JsonConverter { throw; } - + try { return new UserParcelTemplateCreateRequest(UserParcelTemplateCreateRequestType.UserParcelTemplateWithoutCarrierTemplateCreateRequest) @@ -143,7 +148,7 @@ public class UserParcelTemplateCreateRequestConverter : JsonConverter { throw; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -164,7 +169,6 @@ public class UserParcelTemplateCreateRequestConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -192,8 +196,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/UserParcelTemplateList.cs b/Shippo/Models/Components/UserParcelTemplateList.cs index 4504283..0a8792d 100644 --- a/Shippo/Models/Components/UserParcelTemplateList.cs +++ b/Shippo/Models/Components/UserParcelTemplateList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/UserParcelTemplateUpdateRequest.cs b/Shippo/Models/Components/UserParcelTemplateUpdateRequest.cs index 17492fd..c351c63 100644 --- a/Shippo/Models/Components/UserParcelTemplateUpdateRequest.cs +++ b/Shippo/Models/Components/UserParcelTemplateUpdateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/UserParcelTemplateWithCarrierTemplateCreateRequest.cs b/Shippo/Models/Components/UserParcelTemplateWithCarrierTemplateCreateRequest.cs index d8d9764..02c5d29 100644 --- a/Shippo/Models/Components/UserParcelTemplateWithCarrierTemplateCreateRequest.cs +++ b/Shippo/Models/Components/UserParcelTemplateWithCarrierTemplateCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/UserParcelTemplateWithoutCarrierTemplateCreateRequest.cs b/Shippo/Models/Components/UserParcelTemplateWithoutCarrierTemplateCreateRequest.cs index 9298e8a..c632adb 100644 --- a/Shippo/Models/Components/UserParcelTemplateWithoutCarrierTemplateCreateRequest.cs +++ b/Shippo/Models/Components/UserParcelTemplateWithoutCarrierTemplateCreateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/Webhook.cs b/Shippo/Models/Components/Webhook.cs index 9bc6765..02f84fa 100644 --- a/Shippo/Models/Components/Webhook.cs +++ b/Shippo/Models/Components/Webhook.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/WebhookEventTypeEnum.cs b/Shippo/Models/Components/WebhookEventTypeEnum.cs index 7f7c5e1..ca1a854 100644 --- a/Shippo/Models/Components/WebhookEventTypeEnum.cs +++ b/Shippo/Models/Components/WebhookEventTypeEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/WebhookPaginatedList.cs b/Shippo/Models/Components/WebhookPaginatedList.cs index 05404d1..8647e12 100644 --- a/Shippo/Models/Components/WebhookPaginatedList.cs +++ b/Shippo/Models/Components/WebhookPaginatedList.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/WebhookPayload.cs b/Shippo/Models/Components/WebhookPayload.cs index ed9df4e..f1b167c 100644 --- a/Shippo/Models/Components/WebhookPayload.cs +++ b/Shippo/Models/Components/WebhookPayload.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -59,68 +59,74 @@ public override int GetHashCode() return Value.GetHashCode(); } } - + [JsonConverter(typeof(WebhookPayload.WebhookPayloadConverter))] public class WebhookPayload { public WebhookPayload(WebhookPayloadType type) { Type = type; } - public WebhookPayloadWebhookPayloadTrack? WebhookPayloadWebhookPayloadTrack { get; set; } - public WebhookPayloadWebhookPayloadBatch? WebhookPayloadWebhookPayloadBatch { get; set; } - public WebhookPayloadWebhookPayloadTransaction? WebhookPayloadWebhookPayloadTransaction { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public WebhookPayloadTrack? WebhookPayloadTrack { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public WebhookPayloadBatch? WebhookPayloadBatch { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public WebhookPayloadTransaction? WebhookPayloadTransaction { get; set; } public WebhookPayloadType Type { get; set; } - public static WebhookPayload CreateTrackUpdated(WebhookPayloadWebhookPayloadTrack trackUpdated) { + public static WebhookPayload CreateTrackUpdated(WebhookPayloadTrack trackUpdated) { WebhookPayloadType typ = WebhookPayloadType.TrackUpdated; string typStr = WebhookPayloadType.TrackUpdated.ToString(); trackUpdated.Event = WebhookEventTypeEnumExtension.ToEnum(WebhookPayloadType.TrackUpdated.ToString()); WebhookPayload res = new WebhookPayload(typ); - res.WebhookPayloadWebhookPayloadTrack = trackUpdated; + res.WebhookPayloadTrack = trackUpdated; return res; } - public static WebhookPayload CreateBatchCreated(WebhookPayloadWebhookPayloadBatch batchCreated) { + public static WebhookPayload CreateBatchCreated(WebhookPayloadBatch batchCreated) { WebhookPayloadType typ = WebhookPayloadType.BatchCreated; string typStr = WebhookPayloadType.BatchCreated.ToString(); batchCreated.Event = WebhookEventTypeEnumExtension.ToEnum(WebhookPayloadType.BatchCreated.ToString()); WebhookPayload res = new WebhookPayload(typ); - res.WebhookPayloadWebhookPayloadBatch = batchCreated; + res.WebhookPayloadBatch = batchCreated; return res; } - public static WebhookPayload CreateBatchPurchased(WebhookPayloadWebhookPayloadBatch batchPurchased) { + public static WebhookPayload CreateBatchPurchased(WebhookPayloadBatch batchPurchased) { WebhookPayloadType typ = WebhookPayloadType.BatchPurchased; string typStr = WebhookPayloadType.BatchPurchased.ToString(); batchPurchased.Event = WebhookEventTypeEnumExtension.ToEnum(WebhookPayloadType.BatchPurchased.ToString()); WebhookPayload res = new WebhookPayload(typ); - res.WebhookPayloadWebhookPayloadBatch = batchPurchased; + res.WebhookPayloadBatch = batchPurchased; return res; } - public static WebhookPayload CreateTransactionCreated(WebhookPayloadWebhookPayloadTransaction transactionCreated) { + public static WebhookPayload CreateTransactionCreated(WebhookPayloadTransaction transactionCreated) { WebhookPayloadType typ = WebhookPayloadType.TransactionCreated; string typStr = WebhookPayloadType.TransactionCreated.ToString(); transactionCreated.Event = WebhookEventTypeEnumExtension.ToEnum(WebhookPayloadType.TransactionCreated.ToString()); WebhookPayload res = new WebhookPayload(typ); - res.WebhookPayloadWebhookPayloadTransaction = transactionCreated; + res.WebhookPayloadTransaction = transactionCreated; return res; } - public static WebhookPayload CreateTransactionUpdated(WebhookPayloadWebhookPayloadTransaction transactionUpdated) { + public static WebhookPayload CreateTransactionUpdated(WebhookPayloadTransaction transactionUpdated) { WebhookPayloadType typ = WebhookPayloadType.TransactionUpdated; string typStr = WebhookPayloadType.TransactionUpdated.ToString(); transactionUpdated.Event = WebhookEventTypeEnumExtension.ToEnum(WebhookPayloadType.TransactionUpdated.ToString()); WebhookPayload res = new WebhookPayload(typ); - res.WebhookPayloadWebhookPayloadTransaction = transactionUpdated; + res.WebhookPayloadTransaction = transactionUpdated; return res; } public static WebhookPayload CreateNull() { @@ -141,29 +147,30 @@ public class WebhookPayloadConverter : JsonConverter string discriminator = jo.GetValue("event")?.ToString() ?? throw new ArgumentNullException("Could not find discriminator field."); if (discriminator == WebhookPayloadType.TrackUpdated.ToString()) { - WebhookPayloadWebhookPayloadTrack? webhookPayloadWebhookPayloadTrack = ResponseBodyDeserializer.Deserialize(jo.ToString()); - return CreateTrackUpdated(webhookPayloadWebhookPayloadTrack!); + WebhookPayloadTrack? webhookPayloadTrack = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateTrackUpdated(webhookPayloadTrack!); } if (discriminator == WebhookPayloadType.BatchCreated.ToString()) { - WebhookPayloadWebhookPayloadBatch? webhookPayloadWebhookPayloadBatch = ResponseBodyDeserializer.Deserialize(jo.ToString()); - return CreateBatchCreated(webhookPayloadWebhookPayloadBatch!); + WebhookPayloadBatch? webhookPayloadBatch = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateBatchCreated(webhookPayloadBatch!); } if (discriminator == WebhookPayloadType.BatchPurchased.ToString()) { - WebhookPayloadWebhookPayloadBatch? webhookPayloadWebhookPayloadBatch = ResponseBodyDeserializer.Deserialize(jo.ToString()); - return CreateBatchPurchased(webhookPayloadWebhookPayloadBatch!); + WebhookPayloadBatch? webhookPayloadBatch = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateBatchPurchased(webhookPayloadBatch!); } if (discriminator == WebhookPayloadType.TransactionCreated.ToString()) { - WebhookPayloadWebhookPayloadTransaction? webhookPayloadWebhookPayloadTransaction = ResponseBodyDeserializer.Deserialize(jo.ToString()); - return CreateTransactionCreated(webhookPayloadWebhookPayloadTransaction!); + WebhookPayloadTransaction? webhookPayloadTransaction = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateTransactionCreated(webhookPayloadTransaction!); } if (discriminator == WebhookPayloadType.TransactionUpdated.ToString()) { - WebhookPayloadWebhookPayloadTransaction? webhookPayloadWebhookPayloadTransaction = ResponseBodyDeserializer.Deserialize(jo.ToString()); - return CreateTransactionUpdated(webhookPayloadWebhookPayloadTransaction!); + WebhookPayloadTransaction? webhookPayloadTransaction = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateTransactionUpdated(webhookPayloadTransaction!); } + throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -179,25 +186,25 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer writer.WriteRawValue("null"); return; } - if (res.WebhookPayloadWebhookPayloadTrack != null) + if (res.WebhookPayloadTrack != null) { - writer.WriteRawValue(Utilities.SerializeJSON(res.WebhookPayloadWebhookPayloadTrack)); + writer.WriteRawValue(Utilities.SerializeJSON(res.WebhookPayloadTrack)); return; } - if (res.WebhookPayloadWebhookPayloadBatch != null) + if (res.WebhookPayloadBatch != null) { - writer.WriteRawValue(Utilities.SerializeJSON(res.WebhookPayloadWebhookPayloadBatch)); + writer.WriteRawValue(Utilities.SerializeJSON(res.WebhookPayloadBatch)); return; } - if (res.WebhookPayloadWebhookPayloadTransaction != null) + if (res.WebhookPayloadTransaction != null) { - writer.WriteRawValue(Utilities.SerializeJSON(res.WebhookPayloadWebhookPayloadTransaction)); + writer.WriteRawValue(Utilities.SerializeJSON(res.WebhookPayloadTransaction)); return; } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Components/WebhookPayloadBatch.cs b/Shippo/Models/Components/WebhookPayloadBatch.cs index d511d5e..d0a7783 100644 --- a/Shippo/Models/Components/WebhookPayloadBatch.cs +++ b/Shippo/Models/Components/WebhookPayloadBatch.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/WebhookPayloadTrack.cs b/Shippo/Models/Components/WebhookPayloadTrack.cs index e16f4ca..c157e99 100644 --- a/Shippo/Models/Components/WebhookPayloadTrack.cs +++ b/Shippo/Models/Components/WebhookPayloadTrack.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/WebhookPayloadTransaction.cs b/Shippo/Models/Components/WebhookPayloadTransaction.cs index ecf784f..58aa711 100644 --- a/Shippo/Models/Components/WebhookPayloadTransaction.cs +++ b/Shippo/Models/Components/WebhookPayloadTransaction.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/WebhookPayloadWebhookPayloadBatch.cs b/Shippo/Models/Components/WebhookPayloadWebhookPayloadBatch.cs deleted file mode 100644 index efd4801..0000000 --- a/Shippo/Models/Components/WebhookPayloadWebhookPayloadBatch.cs +++ /dev/null @@ -1,40 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace Shippo.Models.Components -{ - using Newtonsoft.Json; - using Shippo.Models.Components; - using Shippo.Utils; - - /// - /// Content of the webhook posted to the external URL - /// - public class WebhookPayloadWebhookPayloadBatch - { - - /// - /// Type of event that triggered the webhook. - /// - [JsonProperty("event")] - public WebhookEventTypeEnum? Event { get; set; } - - /// - /// Determines whether the webhook is a test webhook or not. - /// - [JsonProperty("test")] - public bool? Test { get; set; } - - /// - /// A string containing the batch object ID, of the form 'batch {batchId} (created|processing complete)'. - /// - [JsonProperty("data")] - public string? Data { get; set; } - } -} \ No newline at end of file diff --git a/Shippo/Models/Components/WebhookUpdateRequest.cs b/Shippo/Models/Components/WebhookUpdateRequest.cs index f51857f..cc098a3 100644 --- a/Shippo/Models/Components/WebhookUpdateRequest.cs +++ b/Shippo/Models/Components/WebhookUpdateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Components/WeightUnitEnum.cs b/Shippo/Models/Components/WeightUnitEnum.cs index bea21cd..3eeda26 100644 --- a/Shippo/Models/Components/WeightUnitEnum.cs +++ b/Shippo/Models/Components/WeightUnitEnum.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseBody.cs b/Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseBody.cs index fab9a63..3954fd9 100644 --- a/Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseBody.cs +++ b/Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseResponseBody.cs b/Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseResponseBody.cs index 03aa160..f750172 100644 --- a/Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseResponseBody.cs +++ b/Shippo/Models/Errors/InitiateOauth2SigninCarrierAccountsResponseResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Errors/InitiateOauth2SigninResponseBody.cs b/Shippo/Models/Errors/InitiateOauth2SigninResponseBody.cs index 9704f1a..1e9c531 100644 --- a/Shippo/Models/Errors/InitiateOauth2SigninResponseBody.cs +++ b/Shippo/Models/Errors/InitiateOauth2SigninResponseBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Errors/SDKException.cs b/Shippo/Models/Errors/SDKException.cs index 73e4fa7..82a62e7 100644 --- a/Shippo/Models/Errors/SDKException.cs +++ b/Shippo/Models/Errors/SDKException.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/AddShipmentsToBatchRequest.cs b/Shippo/Models/Requests/AddShipmentsToBatchRequest.cs index 23aae2e..7dc676e 100644 --- a/Shippo/Models/Requests/AddShipmentsToBatchRequest.cs +++ b/Shippo/Models/Requests/AddShipmentsToBatchRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/Carrier.cs b/Shippo/Models/Requests/Carrier.cs index 77255ac..c8fecfe 100644 --- a/Shippo/Models/Requests/Carrier.cs +++ b/Shippo/Models/Requests/Carrier.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateAddressRequest.cs b/Shippo/Models/Requests/CreateAddressRequest.cs index a43f1ee..264cf1a 100644 --- a/Shippo/Models/Requests/CreateAddressRequest.cs +++ b/Shippo/Models/Requests/CreateAddressRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateBatchRequest.cs b/Shippo/Models/Requests/CreateBatchRequest.cs index e12c543..6c05845 100644 --- a/Shippo/Models/Requests/CreateBatchRequest.cs +++ b/Shippo/Models/Requests/CreateBatchRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateCarrierAccountRequest.cs b/Shippo/Models/Requests/CreateCarrierAccountRequest.cs index 43f46f3..d958829 100644 --- a/Shippo/Models/Requests/CreateCarrierAccountRequest.cs +++ b/Shippo/Models/Requests/CreateCarrierAccountRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateCustomsDeclarationRequest.cs b/Shippo/Models/Requests/CreateCustomsDeclarationRequest.cs index 3ec1c26..e9c3c79 100644 --- a/Shippo/Models/Requests/CreateCustomsDeclarationRequest.cs +++ b/Shippo/Models/Requests/CreateCustomsDeclarationRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateCustomsItemRequest.cs b/Shippo/Models/Requests/CreateCustomsItemRequest.cs index f96f934..be58b1c 100644 --- a/Shippo/Models/Requests/CreateCustomsItemRequest.cs +++ b/Shippo/Models/Requests/CreateCustomsItemRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateLiveRateRequest.cs b/Shippo/Models/Requests/CreateLiveRateRequest.cs index f1d6fd2..31c4d09 100644 --- a/Shippo/Models/Requests/CreateLiveRateRequest.cs +++ b/Shippo/Models/Requests/CreateLiveRateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateManifestRequest.cs b/Shippo/Models/Requests/CreateManifestRequest.cs index 56463d9..c2ffe6f 100644 --- a/Shippo/Models/Requests/CreateManifestRequest.cs +++ b/Shippo/Models/Requests/CreateManifestRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateOrderRequest.cs b/Shippo/Models/Requests/CreateOrderRequest.cs index 215aec8..bfb1bd7 100644 --- a/Shippo/Models/Requests/CreateOrderRequest.cs +++ b/Shippo/Models/Requests/CreateOrderRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateParcelRequest.cs b/Shippo/Models/Requests/CreateParcelRequest.cs index 376fa0e..5db7580 100644 --- a/Shippo/Models/Requests/CreateParcelRequest.cs +++ b/Shippo/Models/Requests/CreateParcelRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateParcelRequestBody.cs b/Shippo/Models/Requests/CreateParcelRequestBody.cs index 13cc771..f33246e 100644 --- a/Shippo/Models/Requests/CreateParcelRequestBody.cs +++ b/Shippo/Models/Requests/CreateParcelRequestBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,17 +54,22 @@ public override int GetHashCode() return Value.GetHashCode(); } } - -/// -/// Parcel details. -/// + + + /// + /// Parcel details. + /// [JsonConverter(typeof(CreateParcelRequestBody.CreateParcelRequestBodyConverter))] public class CreateParcelRequestBody { public CreateParcelRequestBody(CreateParcelRequestBodyType type) { Type = type; } - public ParcelCreateRequest? ParcelCreateRequest { get; set; } - public ParcelCreateFromTemplateRequest? ParcelCreateFromTemplateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ParcelCreateRequest? ParcelCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public ParcelCreateFromTemplateRequest? ParcelCreateFromTemplateRequest { get; set; } public CreateParcelRequestBodyType Type { get; set; } @@ -106,6 +111,7 @@ public class CreateParcelRequestBodyConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new CreateParcelRequestBody(CreateParcelRequestBodyType.ParcelCreateFromTemplateRequest) @@ -125,7 +131,7 @@ public class CreateParcelRequestBodyConverter : JsonConverter { throw; } - + try { return new CreateParcelRequestBody(CreateParcelRequestBodyType.ParcelCreateRequest) @@ -145,7 +151,7 @@ public class CreateParcelRequestBodyConverter : JsonConverter { throw; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -166,7 +172,6 @@ public class CreateParcelRequestBodyConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -194,8 +199,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Requests/CreatePickupRequest.cs b/Shippo/Models/Requests/CreatePickupRequest.cs index 6aca905..16ea4fc 100644 --- a/Shippo/Models/Requests/CreatePickupRequest.cs +++ b/Shippo/Models/Requests/CreatePickupRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateRefundRequest.cs b/Shippo/Models/Requests/CreateRefundRequest.cs index e7ecad2..bef4ae6 100644 --- a/Shippo/Models/Requests/CreateRefundRequest.cs +++ b/Shippo/Models/Requests/CreateRefundRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateServiceGroupRequest.cs b/Shippo/Models/Requests/CreateServiceGroupRequest.cs index 618dd89..b2fffad 100644 --- a/Shippo/Models/Requests/CreateServiceGroupRequest.cs +++ b/Shippo/Models/Requests/CreateServiceGroupRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateShipmentRequest.cs b/Shippo/Models/Requests/CreateShipmentRequest.cs index eed2562..dea0bef 100644 --- a/Shippo/Models/Requests/CreateShipmentRequest.cs +++ b/Shippo/Models/Requests/CreateShipmentRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateShippoAccountRequest.cs b/Shippo/Models/Requests/CreateShippoAccountRequest.cs index e02f04b..da0bb98 100644 --- a/Shippo/Models/Requests/CreateShippoAccountRequest.cs +++ b/Shippo/Models/Requests/CreateShippoAccountRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateTrackRequest.cs b/Shippo/Models/Requests/CreateTrackRequest.cs index 453ba0b..8940d80 100644 --- a/Shippo/Models/Requests/CreateTrackRequest.cs +++ b/Shippo/Models/Requests/CreateTrackRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateTransactionRequest.cs b/Shippo/Models/Requests/CreateTransactionRequest.cs index 57b881a..6264af9 100644 --- a/Shippo/Models/Requests/CreateTransactionRequest.cs +++ b/Shippo/Models/Requests/CreateTransactionRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/CreateTransactionRequestBody.cs b/Shippo/Models/Requests/CreateTransactionRequestBody.cs index 6ea2bc4..9c4cfed 100644 --- a/Shippo/Models/Requests/CreateTransactionRequestBody.cs +++ b/Shippo/Models/Requests/CreateTransactionRequestBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -54,17 +54,22 @@ public override int GetHashCode() return Value.GetHashCode(); } } - -/// -/// Examples. -/// + + + /// + /// Examples. + /// [JsonConverter(typeof(CreateTransactionRequestBody.CreateTransactionRequestBodyConverter))] public class CreateTransactionRequestBody { public CreateTransactionRequestBody(CreateTransactionRequestBodyType type) { Type = type; } - public TransactionCreateRequest? TransactionCreateRequest { get; set; } - public InstantTransactionCreateRequest? InstantTransactionCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public TransactionCreateRequest? TransactionCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public InstantTransactionCreateRequest? InstantTransactionCreateRequest { get; set; } public CreateTransactionRequestBodyType Type { get; set; } @@ -106,6 +111,7 @@ public class CreateTransactionRequestBodyConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new CreateTransactionRequestBody(CreateTransactionRequestBodyType.TransactionCreateRequest) @@ -125,7 +131,7 @@ public class CreateTransactionRequestBodyConverter : JsonConverter { throw; } - + try { return new CreateTransactionRequestBody(CreateTransactionRequestBodyType.InstantTransactionCreateRequest) @@ -145,7 +151,7 @@ public class CreateTransactionRequestBodyConverter : JsonConverter { throw; } - + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -166,7 +172,6 @@ public class CreateTransactionRequestBodyConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -194,8 +199,8 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Requests/CreateUserParcelTemplateRequest.cs b/Shippo/Models/Requests/CreateUserParcelTemplateRequest.cs index 2d44548..a84aabf 100644 --- a/Shippo/Models/Requests/CreateUserParcelTemplateRequest.cs +++ b/Shippo/Models/Requests/CreateUserParcelTemplateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/DeleteDefaultParcelTemplateRequest.cs b/Shippo/Models/Requests/DeleteDefaultParcelTemplateRequest.cs index 8c55b05..a7b7267 100644 --- a/Shippo/Models/Requests/DeleteDefaultParcelTemplateRequest.cs +++ b/Shippo/Models/Requests/DeleteDefaultParcelTemplateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/DeleteServiceGroupRequest.cs b/Shippo/Models/Requests/DeleteServiceGroupRequest.cs index 5344d64..1dcf869 100644 --- a/Shippo/Models/Requests/DeleteServiceGroupRequest.cs +++ b/Shippo/Models/Requests/DeleteServiceGroupRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/DeleteUserParcelTemplateRequest.cs b/Shippo/Models/Requests/DeleteUserParcelTemplateRequest.cs index e25d75c..98a2398 100644 --- a/Shippo/Models/Requests/DeleteUserParcelTemplateRequest.cs +++ b/Shippo/Models/Requests/DeleteUserParcelTemplateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/DeleteWebhookRequest.cs b/Shippo/Models/Requests/DeleteWebhookRequest.cs index ea2d989..e106551 100644 --- a/Shippo/Models/Requests/DeleteWebhookRequest.cs +++ b/Shippo/Models/Requests/DeleteWebhookRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetAddressRequest.cs b/Shippo/Models/Requests/GetAddressRequest.cs index 883b8f9..98aea30 100644 --- a/Shippo/Models/Requests/GetAddressRequest.cs +++ b/Shippo/Models/Requests/GetAddressRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetBatchRequest.cs b/Shippo/Models/Requests/GetBatchRequest.cs index 9c61563..144ac36 100644 --- a/Shippo/Models/Requests/GetBatchRequest.cs +++ b/Shippo/Models/Requests/GetBatchRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetCarrierAccountRequest.cs b/Shippo/Models/Requests/GetCarrierAccountRequest.cs index 4cf7ec2..9de52b3 100644 --- a/Shippo/Models/Requests/GetCarrierAccountRequest.cs +++ b/Shippo/Models/Requests/GetCarrierAccountRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetCarrierParcelTemplateRequest.cs b/Shippo/Models/Requests/GetCarrierParcelTemplateRequest.cs index e0f27f6..00f17b7 100644 --- a/Shippo/Models/Requests/GetCarrierParcelTemplateRequest.cs +++ b/Shippo/Models/Requests/GetCarrierParcelTemplateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetCarrierRegistrationStatusRequest.cs b/Shippo/Models/Requests/GetCarrierRegistrationStatusRequest.cs index 6340b90..b64a5aa 100644 --- a/Shippo/Models/Requests/GetCarrierRegistrationStatusRequest.cs +++ b/Shippo/Models/Requests/GetCarrierRegistrationStatusRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetCustomsDeclarationRequest.cs b/Shippo/Models/Requests/GetCustomsDeclarationRequest.cs index 9e004ad..9c22359 100644 --- a/Shippo/Models/Requests/GetCustomsDeclarationRequest.cs +++ b/Shippo/Models/Requests/GetCustomsDeclarationRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetCustomsItemRequest.cs b/Shippo/Models/Requests/GetCustomsItemRequest.cs index 2a4a6e7..dc9a587 100644 --- a/Shippo/Models/Requests/GetCustomsItemRequest.cs +++ b/Shippo/Models/Requests/GetCustomsItemRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetDefaultParcelTemplateRequest.cs b/Shippo/Models/Requests/GetDefaultParcelTemplateRequest.cs index 816acd5..e03b5b2 100644 --- a/Shippo/Models/Requests/GetDefaultParcelTemplateRequest.cs +++ b/Shippo/Models/Requests/GetDefaultParcelTemplateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetManifestRequest.cs b/Shippo/Models/Requests/GetManifestRequest.cs index d3e8c35..623f61f 100644 --- a/Shippo/Models/Requests/GetManifestRequest.cs +++ b/Shippo/Models/Requests/GetManifestRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetOrderRequest.cs b/Shippo/Models/Requests/GetOrderRequest.cs index 20dbf32..5836e6d 100644 --- a/Shippo/Models/Requests/GetOrderRequest.cs +++ b/Shippo/Models/Requests/GetOrderRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetParcelRequest.cs b/Shippo/Models/Requests/GetParcelRequest.cs index bf9ed79..899b8ab 100644 --- a/Shippo/Models/Requests/GetParcelRequest.cs +++ b/Shippo/Models/Requests/GetParcelRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetRateRequest.cs b/Shippo/Models/Requests/GetRateRequest.cs index a48e289..385580a 100644 --- a/Shippo/Models/Requests/GetRateRequest.cs +++ b/Shippo/Models/Requests/GetRateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetRefundRequest.cs b/Shippo/Models/Requests/GetRefundRequest.cs index 12b7be5..9ee96c8 100644 --- a/Shippo/Models/Requests/GetRefundRequest.cs +++ b/Shippo/Models/Requests/GetRefundRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetShipmentRequest.cs b/Shippo/Models/Requests/GetShipmentRequest.cs index 37efd29..c95f436 100644 --- a/Shippo/Models/Requests/GetShipmentRequest.cs +++ b/Shippo/Models/Requests/GetShipmentRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetShippoAccountRequest.cs b/Shippo/Models/Requests/GetShippoAccountRequest.cs index 66eebcb..82b5684 100644 --- a/Shippo/Models/Requests/GetShippoAccountRequest.cs +++ b/Shippo/Models/Requests/GetShippoAccountRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetTrackRequest.cs b/Shippo/Models/Requests/GetTrackRequest.cs index b74a6bb..57be8ed 100644 --- a/Shippo/Models/Requests/GetTrackRequest.cs +++ b/Shippo/Models/Requests/GetTrackRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetTransactionRequest.cs b/Shippo/Models/Requests/GetTransactionRequest.cs index 3b5c5b1..f5de924 100644 --- a/Shippo/Models/Requests/GetTransactionRequest.cs +++ b/Shippo/Models/Requests/GetTransactionRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetUserParcelTemplateRequest.cs b/Shippo/Models/Requests/GetUserParcelTemplateRequest.cs index c1226b5..bb944a9 100644 --- a/Shippo/Models/Requests/GetUserParcelTemplateRequest.cs +++ b/Shippo/Models/Requests/GetUserParcelTemplateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/GetWebhookRequest.cs b/Shippo/Models/Requests/GetWebhookRequest.cs index 23043e6..308c1c3 100644 --- a/Shippo/Models/Requests/GetWebhookRequest.cs +++ b/Shippo/Models/Requests/GetWebhookRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/Include.cs b/Shippo/Models/Requests/Include.cs index 90d63e5..50f7bcf 100644 --- a/Shippo/Models/Requests/Include.cs +++ b/Shippo/Models/Requests/Include.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/InitiateOauth2SigninRequest.cs b/Shippo/Models/Requests/InitiateOauth2SigninRequest.cs index 294b93d..1112af3 100644 --- a/Shippo/Models/Requests/InitiateOauth2SigninRequest.cs +++ b/Shippo/Models/Requests/InitiateOauth2SigninRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/InitiateOauth2SigninResponse.cs b/Shippo/Models/Requests/InitiateOauth2SigninResponse.cs index 5fd896c..3dced79 100644 --- a/Shippo/Models/Requests/InitiateOauth2SigninResponse.cs +++ b/Shippo/Models/Requests/InitiateOauth2SigninResponse.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListAddressesRequest.cs b/Shippo/Models/Requests/ListAddressesRequest.cs index 7cd2674..61d633d 100644 --- a/Shippo/Models/Requests/ListAddressesRequest.cs +++ b/Shippo/Models/Requests/ListAddressesRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListCarrierAccountsRequest.cs b/Shippo/Models/Requests/ListCarrierAccountsRequest.cs index f305e53..0ae5490 100644 --- a/Shippo/Models/Requests/ListCarrierAccountsRequest.cs +++ b/Shippo/Models/Requests/ListCarrierAccountsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListCarrierParcelTemplatesRequest.cs b/Shippo/Models/Requests/ListCarrierParcelTemplatesRequest.cs index d43407d..223d725 100644 --- a/Shippo/Models/Requests/ListCarrierParcelTemplatesRequest.cs +++ b/Shippo/Models/Requests/ListCarrierParcelTemplatesRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListCustomsDeclarationsRequest.cs b/Shippo/Models/Requests/ListCustomsDeclarationsRequest.cs index cb05c87..99f1852 100644 --- a/Shippo/Models/Requests/ListCustomsDeclarationsRequest.cs +++ b/Shippo/Models/Requests/ListCustomsDeclarationsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListCustomsItemsRequest.cs b/Shippo/Models/Requests/ListCustomsItemsRequest.cs index 551a901..412edc3 100644 --- a/Shippo/Models/Requests/ListCustomsItemsRequest.cs +++ b/Shippo/Models/Requests/ListCustomsItemsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListManifestsRequest.cs b/Shippo/Models/Requests/ListManifestsRequest.cs index 8867eae..22b1615 100644 --- a/Shippo/Models/Requests/ListManifestsRequest.cs +++ b/Shippo/Models/Requests/ListManifestsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListOrdersRequest.cs b/Shippo/Models/Requests/ListOrdersRequest.cs index f79ded7..c02f8a9 100644 --- a/Shippo/Models/Requests/ListOrdersRequest.cs +++ b/Shippo/Models/Requests/ListOrdersRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListParcelsRequest.cs b/Shippo/Models/Requests/ListParcelsRequest.cs index 6d05b50..56d0af2 100644 --- a/Shippo/Models/Requests/ListParcelsRequest.cs +++ b/Shippo/Models/Requests/ListParcelsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListRefundsRequest.cs b/Shippo/Models/Requests/ListRefundsRequest.cs index 2a5718b..7f1c8a6 100644 --- a/Shippo/Models/Requests/ListRefundsRequest.cs +++ b/Shippo/Models/Requests/ListRefundsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListServiceGroupsRequest.cs b/Shippo/Models/Requests/ListServiceGroupsRequest.cs index e6af0a2..98076e7 100644 --- a/Shippo/Models/Requests/ListServiceGroupsRequest.cs +++ b/Shippo/Models/Requests/ListServiceGroupsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListShipmentRatesByCurrencyCodeRequest.cs b/Shippo/Models/Requests/ListShipmentRatesByCurrencyCodeRequest.cs index afb09a7..6e24728 100644 --- a/Shippo/Models/Requests/ListShipmentRatesByCurrencyCodeRequest.cs +++ b/Shippo/Models/Requests/ListShipmentRatesByCurrencyCodeRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListShipmentRatesRequest.cs b/Shippo/Models/Requests/ListShipmentRatesRequest.cs index 9d6a444..df76511 100644 --- a/Shippo/Models/Requests/ListShipmentRatesRequest.cs +++ b/Shippo/Models/Requests/ListShipmentRatesRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListShipmentsRequest.cs b/Shippo/Models/Requests/ListShipmentsRequest.cs index bb3839a..827c1fb 100644 --- a/Shippo/Models/Requests/ListShipmentsRequest.cs +++ b/Shippo/Models/Requests/ListShipmentsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListShippoAccountsRequest.cs b/Shippo/Models/Requests/ListShippoAccountsRequest.cs index fd02128..4e40f79 100644 --- a/Shippo/Models/Requests/ListShippoAccountsRequest.cs +++ b/Shippo/Models/Requests/ListShippoAccountsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListTransactionsRequest.cs b/Shippo/Models/Requests/ListTransactionsRequest.cs index 7d720ce..2d9f65d 100644 --- a/Shippo/Models/Requests/ListTransactionsRequest.cs +++ b/Shippo/Models/Requests/ListTransactionsRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ListUserParcelTemplatesRequest.cs b/Shippo/Models/Requests/ListUserParcelTemplatesRequest.cs index 790287d..277326d 100644 --- a/Shippo/Models/Requests/ListUserParcelTemplatesRequest.cs +++ b/Shippo/Models/Requests/ListUserParcelTemplatesRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/PurchaseBatchRequest.cs b/Shippo/Models/Requests/PurchaseBatchRequest.cs index 5eb28fe..c1a2c8a 100644 --- a/Shippo/Models/Requests/PurchaseBatchRequest.cs +++ b/Shippo/Models/Requests/PurchaseBatchRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/RegisterCarrierAccountRequest.cs b/Shippo/Models/Requests/RegisterCarrierAccountRequest.cs index 89db6dc..217b742 100644 --- a/Shippo/Models/Requests/RegisterCarrierAccountRequest.cs +++ b/Shippo/Models/Requests/RegisterCarrierAccountRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/RegisterCarrierAccountRequestBody.cs b/Shippo/Models/Requests/RegisterCarrierAccountRequestBody.cs index fb2335b..e84cdea 100644 --- a/Shippo/Models/Requests/RegisterCarrierAccountRequestBody.cs +++ b/Shippo/Models/Requests/RegisterCarrierAccountRequestBody.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -52,6 +52,8 @@ public class RegisterCarrierAccountRequestBodyType public static RegisterCarrierAccountRequestBodyType CarrierAccountUSPSCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountUSPSCreateRequest"); } } + public static RegisterCarrierAccountRequestBodyType CarrierAccountSendleCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountSendleCreateRequest"); } } + public static RegisterCarrierAccountRequestBodyType Null { get { return new RegisterCarrierAccountRequestBodyType("null"); } } public override string ToString() { return Value; } @@ -72,6 +74,7 @@ public static RegisterCarrierAccountRequestBodyType FromString(string v) { case "CarrierAccountPosteItalianeCreateRequest": return CarrierAccountPosteItalianeCreateRequest; case "CarrierAccountUPSCreateRequest": return CarrierAccountUPSCreateRequest; case "CarrierAccountUSPSCreateRequest": return CarrierAccountUSPSCreateRequest; + case "CarrierAccountSendleCreateRequest": return CarrierAccountSendleCreateRequest; case "null": return Null; default: throw new ArgumentException("Invalid value for RegisterCarrierAccountRequestBodyType"); } @@ -90,29 +93,61 @@ public override int GetHashCode() return Value.GetHashCode(); } } - -/// -/// Examples. -/// + + + /// + /// Examples. + /// [JsonConverter(typeof(RegisterCarrierAccountRequestBody.RegisterCarrierAccountRequestBodyConverter))] public class RegisterCarrierAccountRequestBody { public RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType type) { Type = type; } - public CarrierAccountCanadaPostCreateRequest? CarrierAccountCanadaPostCreateRequest { get; set; } - public CarrierAccountChronopostCreateRequest? CarrierAccountChronopostCreateRequest { get; set; } - public CarrierAccountColissimoCreateRequest? CarrierAccountColissimoCreateRequest { get; set; } - public CarrierAccountCorreosCreateRequest? CarrierAccountCorreosCreateRequest { get; set; } - public CarrierAccountDeutschePostCreateRequest? CarrierAccountDeutschePostCreateRequest { get; set; } - public CarrierAccountDHLExpressCreateRequest? CarrierAccountDHLExpressCreateRequest { get; set; } - public CarrierAccountDpdDeCreateRequest? CarrierAccountDpdDeCreateRequest { get; set; } - public CarrierAccountDPDUKCreateRequest? CarrierAccountDPDUKCreateRequest { get; set; } - public CarrierAccountFedExCreateRequest? CarrierAccountFedExCreateRequest { get; set; } - public CarrierAccountHermesUKCreateRequest? CarrierAccountHermesUKCreateRequest { get; set; } - public CarrierAccountMondialRelayCreateRequest? CarrierAccountMondialRelayCreateRequest { get; set; } - public CarrierAccountPosteItalianeCreateRequest? CarrierAccountPosteItalianeCreateRequest { get; set; } - public CarrierAccountUPSCreateRequest? CarrierAccountUPSCreateRequest { get; set; } - public CarrierAccountUSPSCreateRequest? CarrierAccountUSPSCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountCanadaPostCreateRequest? CarrierAccountCanadaPostCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountChronopostCreateRequest? CarrierAccountChronopostCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountColissimoCreateRequest? CarrierAccountColissimoCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountCorreosCreateRequest? CarrierAccountCorreosCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountDeutschePostCreateRequest? CarrierAccountDeutschePostCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountDHLExpressCreateRequest? CarrierAccountDHLExpressCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountDpdDeCreateRequest? CarrierAccountDpdDeCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountDPDUKCreateRequest? CarrierAccountDPDUKCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountFedExCreateRequest? CarrierAccountFedExCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountHermesUKCreateRequest? CarrierAccountHermesUKCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountMondialRelayCreateRequest? CarrierAccountMondialRelayCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountPosteItalianeCreateRequest? CarrierAccountPosteItalianeCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountUPSCreateRequest? CarrierAccountUPSCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountUSPSCreateRequest? CarrierAccountUSPSCreateRequest { get; set; } + + [SpeakeasyMetadata("form:explode=true")] + public CarrierAccountSendleCreateRequest? CarrierAccountSendleCreateRequest { get; set; } public RegisterCarrierAccountRequestBodyType Type { get; set; } @@ -229,6 +264,14 @@ public static RegisterCarrierAccountRequestBody CreateCarrierAccountUSPSCreateRe return res; } + public static RegisterCarrierAccountRequestBody CreateCarrierAccountSendleCreateRequest(CarrierAccountSendleCreateRequest carrierAccountSendleCreateRequest) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountSendleCreateRequest; + + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); + res.CarrierAccountSendleCreateRequest = carrierAccountSendleCreateRequest; + return res; + } + public static RegisterCarrierAccountRequestBody CreateNull() { RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.Null; return new RegisterCarrierAccountRequestBody(typ); @@ -250,6 +293,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter } var fallbackCandidates = new List<(System.Type, object, string)>(); + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountCanadaPostCreateRequest) @@ -269,7 +313,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountChronopostCreateRequest) @@ -289,7 +333,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountColissimoCreateRequest) @@ -309,7 +353,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountCorreosCreateRequest) @@ -329,7 +373,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDeutschePostCreateRequest) @@ -349,7 +393,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDHLExpressCreateRequest) @@ -369,7 +413,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDpdDeCreateRequest) @@ -389,7 +433,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDPDUKCreateRequest) @@ -409,7 +453,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountFedExCreateRequest) @@ -429,7 +473,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountHermesUKCreateRequest) @@ -449,7 +493,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountMondialRelayCreateRequest) @@ -469,7 +513,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountPosteItalianeCreateRequest) @@ -489,7 +533,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountUPSCreateRequest) @@ -509,7 +553,7 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + try { return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountUSPSCreateRequest) @@ -529,7 +573,27 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter { throw; } - + + try + { + return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountSendleCreateRequest) + { + CarrierAccountSendleCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) + }; + } + catch (ResponseBodyDeserializer.MissingMemberException) + { + fallbackCandidates.Add((typeof(CarrierAccountSendleCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountSendleCreateRequest), "CarrierAccountSendleCreateRequest")); + } + catch (ResponseBodyDeserializer.DeserializationException) + { + // try next option + } + catch (Exception) + { + throw; + } + if (fallbackCandidates.Count > 0) { fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); @@ -550,7 +614,6 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter } } - throw new InvalidOperationException("Could not deserialize into any supported types."); } @@ -636,10 +699,15 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer writer.WriteRawValue(Utilities.SerializeJSON(res.CarrierAccountUSPSCreateRequest)); return; } + if (res.CarrierAccountSendleCreateRequest != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.CarrierAccountSendleCreateRequest)); + return; + } } + } } - } \ No newline at end of file diff --git a/Shippo/Models/Requests/RemoveShipmentsFromBatchRequest.cs b/Shippo/Models/Requests/RemoveShipmentsFromBatchRequest.cs index 606e8ab..7cd5692 100644 --- a/Shippo/Models/Requests/RemoveShipmentsFromBatchRequest.cs +++ b/Shippo/Models/Requests/RemoveShipmentsFromBatchRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/UpdateCarrierAccountRequest.cs b/Shippo/Models/Requests/UpdateCarrierAccountRequest.cs index db56d59..560d60c 100644 --- a/Shippo/Models/Requests/UpdateCarrierAccountRequest.cs +++ b/Shippo/Models/Requests/UpdateCarrierAccountRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/UpdateDefaultParcelTemplateRequest.cs b/Shippo/Models/Requests/UpdateDefaultParcelTemplateRequest.cs index 08a87f2..90561ba 100644 --- a/Shippo/Models/Requests/UpdateDefaultParcelTemplateRequest.cs +++ b/Shippo/Models/Requests/UpdateDefaultParcelTemplateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/UpdateServiceGroupRequest.cs b/Shippo/Models/Requests/UpdateServiceGroupRequest.cs index d7f8f8b..65a0224 100644 --- a/Shippo/Models/Requests/UpdateServiceGroupRequest.cs +++ b/Shippo/Models/Requests/UpdateServiceGroupRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/UpdateShippoAccountRequest.cs b/Shippo/Models/Requests/UpdateShippoAccountRequest.cs index 7be19ee..0378122 100644 --- a/Shippo/Models/Requests/UpdateShippoAccountRequest.cs +++ b/Shippo/Models/Requests/UpdateShippoAccountRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/UpdateUserParcelTemplateRequest.cs b/Shippo/Models/Requests/UpdateUserParcelTemplateRequest.cs index ea10828..d4071f0 100644 --- a/Shippo/Models/Requests/UpdateUserParcelTemplateRequest.cs +++ b/Shippo/Models/Requests/UpdateUserParcelTemplateRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/UpdateWebhookRequest.cs b/Shippo/Models/Requests/UpdateWebhookRequest.cs index 7bf522b..1989cc8 100644 --- a/Shippo/Models/Requests/UpdateWebhookRequest.cs +++ b/Shippo/Models/Requests/UpdateWebhookRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Models/Requests/ValidateAddressRequest.cs b/Shippo/Models/Requests/ValidateAddressRequest.cs index b6ff7d8..dd383d0 100644 --- a/Shippo/Models/Requests/ValidateAddressRequest.cs +++ b/Shippo/Models/Requests/ValidateAddressRequest.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Orders.cs b/Shippo/Orders.cs index 165adea..371a909 100644 --- a/Shippo/Orders.cs +++ b/Shippo/Orders.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -50,7 +50,7 @@ public interface IOrders /// Returns a list of all order objects. /// /// - Task ListAsync(ListOrdersRequest request); + Task ListAsync(ListOrdersRequest? request = null); /// /// Create a new order @@ -93,15 +93,15 @@ public class Orders: IOrders { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Orders(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Orders(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -109,12 +109,8 @@ public Orders(ISpeakeasyHttpClient client, Func? securitySource, strin SDKConfiguration = config; } - public async Task ListAsync(ListOrdersRequest request) + public async Task ListAsync(ListOrdersRequest? request = null) { - if (request == null) - { - request = new ListOrdersRequest(); - } request.ShippoApiVersion ??= SDKConfiguration.ShippoApiVersion; string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); @@ -169,19 +165,18 @@ public async Task ListAsync(ListOrdersRequest request) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(OrderCreateRequest orderCreateRequest, string? shippoApiVersion = null) @@ -255,16 +250,15 @@ public async Task CreateAsync(OrderCreateRequest orderCreateRequest, stri var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string orderId, string? shippoApiVersion = null) @@ -331,16 +325,15 @@ public async Task GetAsync(string orderId, string? shippoApiVersion = nul var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/Parcels.cs b/Shippo/Parcels.cs index 0516519..d00b01e 100644 --- a/Shippo/Parcels.cs +++ b/Shippo/Parcels.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -79,15 +79,15 @@ public class Parcels: IParcels { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Parcels(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Parcels(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -157,19 +157,18 @@ public async Task ListAsync(long? page = null, long? result { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(CreateParcelRequestBody requestBody, string? shippoApiVersion = null) @@ -243,16 +242,15 @@ public async Task CreateAsync(CreateParcelRequestBody requestBody, strin var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string parcelId, string? shippoApiVersion = null) @@ -319,16 +317,15 @@ public async Task GetAsync(string parcelId, string? shippoApiVersion = n var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/Pickups.cs b/Shippo/Pickups.cs index 03b3fd4..262b839 100644 --- a/Shippo/Pickups.cs +++ b/Shippo/Pickups.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -55,15 +55,15 @@ public class Pickups: IPickups { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Pickups(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Pickups(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -142,16 +142,15 @@ public async Task CreateAsync(PickupBase pickupBase, string? shippoApiVe var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/Rates.cs b/Shippo/Rates.cs index a34e581..ccb6d1e 100644 --- a/Shippo/Rates.cs +++ b/Shippo/Rates.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -77,15 +77,15 @@ public class Rates: IRates { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Rates(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Rates(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -157,16 +157,15 @@ public async Task GetAsync(string rateId, string? shippoApiVersion = null) var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task ListShipmentRatesAsync(ListShipmentRatesRequest request) @@ -232,16 +231,15 @@ public async Task ListShipmentRatesAsync(ListShipmentRatesReq var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task ListShipmentRatesByCurrencyCodeAsync(ListShipmentRatesByCurrencyCodeRequest request) @@ -307,16 +305,15 @@ public async Task ListShipmentRatesByCurrencyCodeAsync(ListSh var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/RatesAtCheckout.cs b/Shippo/RatesAtCheckout.cs index d3ee314..8b62ff7 100644 --- a/Shippo/RatesAtCheckout.cs +++ b/Shippo/RatesAtCheckout.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -97,15 +97,15 @@ public class RatesAtCheckout: IRatesAtCheckout { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public RatesAtCheckout(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public RatesAtCheckout(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -184,16 +184,15 @@ public async Task CreateAsync(LiveRateCreateRequest liveR var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetDefaultParcelTemplateAsync(string? shippoApiVersion = null) @@ -257,19 +256,18 @@ public async Task GetDefaultParcelTemplateAsync(string? s { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task UpdateDefaultParcelTemplateAsync(string? shippoApiVersion = null, DefaultParcelTemplateUpdateRequest? defaultParcelTemplateUpdateRequest = null) @@ -340,19 +338,18 @@ public async Task UpdateDefaultParcelTemplateAsync(string { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task DeleteDefaultParcelTemplateAsync(string? shippoApiVersion = null) @@ -418,12 +415,10 @@ public async Task DeleteDefaultParcelTemplateAsync(string? shippoApiVersion = nu } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/Refunds.cs b/Shippo/Refunds.cs index b5e6b04..a915e2d 100644 --- a/Shippo/Refunds.cs +++ b/Shippo/Refunds.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -71,15 +71,15 @@ public class Refunds: IRefunds { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Refunds(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Refunds(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -158,16 +158,15 @@ public async Task CreateAsync(RefundRequestBody refundRequestBody, strin var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task ListAsync(string? shippoApiVersion = null) @@ -231,19 +230,18 @@ public async Task ListAsync(string? shippoApiVersion = null { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string refundId, string? shippoApiVersion = null) @@ -310,16 +308,15 @@ public async Task GetAsync(string refundId, string? shippoApiVersion = n var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/ServiceGroups.cs b/Shippo/ServiceGroups.cs index 1a6e0b7..a660a62 100644 --- a/Shippo/ServiceGroups.cs +++ b/Shippo/ServiceGroups.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -82,15 +82,15 @@ public class ServiceGroups: IServiceGroups { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public ServiceGroups(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public ServiceGroups(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -159,19 +159,18 @@ public async Task> ListAsync(string? shippoApiVersion = null) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(ServiceGroupCreateRequest serviceGroupCreateRequest, string? shippoApiVersion = null) @@ -245,16 +244,15 @@ public async Task CreateAsync(ServiceGroupCreateRequest serviceGro var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task UpdateAsync(string? shippoApiVersion = null, ServiceGroupUpdateRequest? serviceGroupUpdateRequest = null) @@ -325,19 +323,18 @@ public async Task UpdateAsync(string? shippoApiVersion = null, Ser { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task DeleteAsync(string serviceGroupId, string? shippoApiVersion = null) @@ -403,12 +400,10 @@ public async Task DeleteAsync(string serviceGroupId, string? shippoApiVersion = } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/Shipments.cs b/Shippo/Shipments.cs index 8cb980d..3595b6c 100644 --- a/Shippo/Shipments.cs +++ b/Shippo/Shipments.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -60,7 +60,7 @@ public interface IShipments /// `https://api.goshippo.com/shipments/?object_created_gte=2017-01-01T00:00:30&object_created_lt=2017-04-01T00:00:30` /// /// - Task ListAsync(ListShipmentsRequest request); + Task ListAsync(ListShipmentsRequest? request = null); /// /// Create a new shipment @@ -96,15 +96,15 @@ public class Shipments: IShipments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Shipments(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Shipments(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -112,12 +112,8 @@ public Shipments(ISpeakeasyHttpClient client, Func? securitySource, st SDKConfiguration = config; } - public async Task ListAsync(ListShipmentsRequest request) + public async Task ListAsync(ListShipmentsRequest? request = null) { - if (request == null) - { - request = new ListShipmentsRequest(); - } request.ShippoApiVersion ??= SDKConfiguration.ShippoApiVersion; string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); @@ -172,19 +168,18 @@ public async Task ListAsync(ListShipmentsRequest request) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(ShipmentCreateRequest shipmentCreateRequest, string? shippoApiVersion = null) @@ -258,16 +253,15 @@ public async Task CreateAsync(ShipmentCreateRequest shipmentCreateRequ var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string shipmentId, string? shippoApiVersion = null) @@ -334,16 +328,15 @@ public async Task GetAsync(string shipmentId, string? shippoApiVersion var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/Shippo.csproj b/Shippo/Shippo.csproj index a6234d0..e11ccdf 100644 --- a/Shippo/Shippo.csproj +++ b/Shippo/Shippo.csproj @@ -1,24 +1,37 @@ + true Shippo - 5.0.0-beta.4 - Shippo + 5.0.0-beta.5 net6.0 + Shippo + Copyright (c) Shippo 2024 + https://github.com/goshippo/shippo-csharp-sdk.git + git + Shippo external API.: Use this API to integrate with the Shippo service + + + enable + 1591 + + + + true README.md LICENSE - true - 1591 - https://github.com/goshippo/shippo-csharp-sdk + + - + + \ No newline at end of file diff --git a/Shippo/ShippoAccounts.cs b/Shippo/ShippoAccounts.cs index c743687..349df37 100644 --- a/Shippo/ShippoAccounts.cs +++ b/Shippo/ShippoAccounts.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -84,15 +84,15 @@ public class ShippoAccounts: IShippoAccounts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public ShippoAccounts(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public ShippoAccounts(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -162,19 +162,18 @@ public async Task ListAsync(long? page = null, long? { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(ShippoAccountUpdateRequest shippoAccountUpdateRequest, string? shippoApiVersion = null) @@ -248,16 +247,15 @@ public async Task CreateAsync(ShippoAccountUpdateRequest shippoAc var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string shippoAccountId, string? shippoApiVersion = null) @@ -324,16 +322,15 @@ public async Task GetAsync(string shippoAccountId, string? shippo var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task UpdateAsync(string shippoAccountId, string? shippoApiVersion = null, ShippoAccountUpdateRequest? shippoAccountUpdateRequest = null) @@ -407,16 +404,15 @@ public async Task UpdateAsync(string shippoAccountId, string? shi var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/ShippoSDK.cs b/Shippo/ShippoSDK.cs index 4fac1f4..aaae47a 100644 --- a/Shippo/ShippoSDK.cs +++ b/Shippo/ShippoSDK.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -316,14 +316,14 @@ public class ShippoSDK: IShippoSDK public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private int _serverIndex = 0; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; public IAddresses Addresses { get; private set; } public IBatches Batches { get; private set; } public ICarrierAccounts CarrierAccounts { get; private set; } @@ -369,11 +369,11 @@ public ShippoSDK(string? apiKeyHeader = null, Func? apiKeyHeaderSource = if(apiKeyHeaderSource != null) { - _securitySource = () => new Security() { APIKeyHeader = apiKeyHeaderSource() }; + _securitySource = () => new Shippo.Models.Components.Security() { APIKeyHeader = apiKeyHeaderSource() }; } else if(apiKeyHeader != null) { - _securitySource = () => new Security() { APIKeyHeader = apiKeyHeader }; + _securitySource = () => new Shippo.Models.Components.Security() { APIKeyHeader = apiKeyHeader }; } else { diff --git a/Shippo/TrackingStatus.cs b/Shippo/TrackingStatus.cs index e240ff6..dd9eda9 100644 --- a/Shippo/TrackingStatus.cs +++ b/Shippo/TrackingStatus.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -80,15 +80,15 @@ public class TrackingStatus: ITrackingStatus { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public TrackingStatus(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public TrackingStatus(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -167,16 +167,15 @@ public async Task CreateAsync(TracksRequest tracksRequest, string? shippo var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string trackingNumber, string carrier, string? shippoApiVersion = null) @@ -244,16 +243,15 @@ public async Task GetAsync(string trackingNumber, string carrier, string? var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/Transactions.cs b/Shippo/Transactions.cs index e351642..d4b9df5 100644 --- a/Shippo/Transactions.cs +++ b/Shippo/Transactions.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -39,7 +39,7 @@ public interface ITransactions /// Returns a list of all transaction objects. /// /// - Task ListAsync(ListTransactionsRequest request); + Task ListAsync(ListTransactionsRequest? request = null); /// /// Create a shipping label @@ -71,15 +71,15 @@ public class Transactions: ITransactions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Transactions(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Transactions(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -87,12 +87,8 @@ public Transactions(ISpeakeasyHttpClient client, Func? securitySource, SDKConfiguration = config; } - public async Task ListAsync(ListTransactionsRequest request) + public async Task ListAsync(ListTransactionsRequest? request = null) { - if (request == null) - { - request = new ListTransactionsRequest(); - } request.ShippoApiVersion ??= SDKConfiguration.ShippoApiVersion; string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); @@ -147,19 +143,18 @@ public async Task ListAsync(ListTransactionsRequest re { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(CreateTransactionRequestBody requestBody, string? shippoApiVersion = null) @@ -233,16 +228,15 @@ public async Task CreateAsync(CreateTransactionRequestBody requestB var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string transactionId, string? shippoApiVersion = null) @@ -309,16 +303,15 @@ public async Task GetAsync(string transactionId, string? shippoApiV var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/UserParcelTemplates.cs b/Shippo/UserParcelTemplates.cs index 45b255d..8472861 100644 --- a/Shippo/UserParcelTemplates.cs +++ b/Shippo/UserParcelTemplates.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -106,15 +106,15 @@ public class UserParcelTemplates: IUserParcelTemplates { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public UserParcelTemplates(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public UserParcelTemplates(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -183,19 +183,18 @@ public async Task ListAsync(string? shippoApiVersion = n { if(Utilities.IsContentTypeMatch("application/json", contentType)) { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); + var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task CreateAsync(UserParcelTemplateCreateRequest userParcelTemplateCreateRequest, string? shippoApiVersion = null) @@ -269,16 +268,15 @@ public async Task CreateAsync(UserParcelTemplateCreateReques var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task DeleteAsync(string userParcelTemplateObjectId, string? shippoApiVersion = null) @@ -344,12 +342,10 @@ public async Task DeleteAsync(string userParcelTemplateObjectId, string? shippoA } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetAsync(string userParcelTemplateObjectId, string? shippoApiVersion = null) @@ -416,16 +412,15 @@ public async Task GetAsync(string userParcelTemplateObjectId var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task UpdateAsync(string userParcelTemplateObjectId, string? shippoApiVersion = null, UserParcelTemplateUpdateRequest? userParcelTemplateUpdateRequest = null) @@ -499,16 +494,15 @@ public async Task UpdateAsync(string userParcelTemplateObjec var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/Shippo/Utils/AnyDeserializer.cs b/Shippo/Utils/AnyDeserializer.cs index 214299e..5056d30 100644 --- a/Shippo/Utils/AnyDeserializer.cs +++ b/Shippo/Utils/AnyDeserializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/BigIntStrConverter.cs b/Shippo/Utils/BigIntStrConverter.cs index f6c59c5..21bd908 100644 --- a/Shippo/Utils/BigIntStrConverter.cs +++ b/Shippo/Utils/BigIntStrConverter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/DecimalStrConverter.cs b/Shippo/Utils/DecimalStrConverter.cs index 4356dcb..c50ed69 100644 --- a/Shippo/Utils/DecimalStrConverter.cs +++ b/Shippo/Utils/DecimalStrConverter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/EnumConverter.cs b/Shippo/Utils/EnumConverter.cs index f223bcd..d6be634 100644 --- a/Shippo/Utils/EnumConverter.cs +++ b/Shippo/Utils/EnumConverter.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -40,7 +40,8 @@ JsonSerializer serializer var extensionType = System.Type.GetType(objectType.FullName + "Extension"); if (Nullable.GetUnderlyingType(objectType) != null) { - extensionType = System.Type.GetType(Nullable.GetUnderlyingType(objectType)!.FullName + "Extension"); + objectType = Nullable.GetUnderlyingType(objectType)!; + extensionType = System.Type.GetType(objectType!.FullName + "Extension"); } if (extensionType == null) diff --git a/Shippo/Utils/FlexibleObjectDeserializer.cs b/Shippo/Utils/FlexibleObjectDeserializer.cs index 819b0f7..11a88f2 100644 --- a/Shippo/Utils/FlexibleObjectDeserializer.cs +++ b/Shippo/Utils/FlexibleObjectDeserializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/HeaderSerializer.cs b/Shippo/Utils/HeaderSerializer.cs index 568e7ee..e684052 100644 --- a/Shippo/Utils/HeaderSerializer.cs +++ b/Shippo/Utils/HeaderSerializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/IsoDateTimeSerializer.cs b/Shippo/Utils/IsoDateTimeSerializer.cs index 005f600..7257c51 100644 --- a/Shippo/Utils/IsoDateTimeSerializer.cs +++ b/Shippo/Utils/IsoDateTimeSerializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/RequestBodySerializer.cs b/Shippo/Utils/RequestBodySerializer.cs index cb554ca..1b5ecf5 100644 --- a/Shippo/Utils/RequestBodySerializer.cs +++ b/Shippo/Utils/RequestBodySerializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -399,11 +399,31 @@ ref Dictionary> form form[metadata.Name] = new List(); } - form[metadata.Name].Add(Utilities.ValueToString(val)); + if (Utilities.IsList(val)) + { + foreach(var item in (IEnumerable)val) + { + form[metadata.Name].Add(Utilities.ValueToString(item)); + } + } + else + { + form[metadata.Name].Add(Utilities.ValueToString(val)); + } } else { - items.Add($"{metadata.Name},{Utilities.ValueToString(val)}"); + if (Utilities.IsList(val)) + { + foreach(var item in (IEnumerable)val) + { + items.Add($"{metadata.Name},{Utilities.ValueToString(item)}"); + } + } + else + { + items.Add($"{metadata.Name},{Utilities.ValueToString(val)}"); + } } } diff --git a/Shippo/Utils/ResponseBodyDeserializer.cs b/Shippo/Utils/ResponseBodyDeserializer.cs index 1339f43..464e587 100644 --- a/Shippo/Utils/ResponseBodyDeserializer.cs +++ b/Shippo/Utils/ResponseBodyDeserializer.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/Retries/BackoffStrategy.cs b/Shippo/Utils/Retries/BackoffStrategy.cs index 1bb6b0f..b384ce4 100644 --- a/Shippo/Utils/Retries/BackoffStrategy.cs +++ b/Shippo/Utils/Retries/BackoffStrategy.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/Retries/Retries.cs b/Shippo/Utils/Retries/Retries.cs index 49a9abc..907d5c7 100644 --- a/Shippo/Utils/Retries/Retries.cs +++ b/Shippo/Utils/Retries/Retries.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/Retries/RetryConfig.cs b/Shippo/Utils/Retries/RetryConfig.cs index c554a49..aa9fb6a 100644 --- a/Shippo/Utils/Retries/RetryConfig.cs +++ b/Shippo/Utils/Retries/RetryConfig.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/SecurityMetadata.cs b/Shippo/Utils/SecurityMetadata.cs index 20cf4b6..70a7c9c 100644 --- a/Shippo/Utils/SecurityMetadata.cs +++ b/Shippo/Utils/SecurityMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/SpeakeasyHttpClient.cs b/Shippo/Utils/SpeakeasyHttpClient.cs index 17a97fc..47b98eb 100644 --- a/Shippo/Utils/SpeakeasyHttpClient.cs +++ b/Shippo/Utils/SpeakeasyHttpClient.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/SpeakeasyMetadata.cs b/Shippo/Utils/SpeakeasyMetadata.cs index ec4da8e..d47a6dc 100644 --- a/Shippo/Utils/SpeakeasyMetadata.cs +++ b/Shippo/Utils/SpeakeasyMetadata.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/URLBuilder.cs b/Shippo/Utils/URLBuilder.cs index 426accb..f4b2b66 100644 --- a/Shippo/Utils/URLBuilder.cs +++ b/Shippo/Utils/URLBuilder.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/Shippo/Utils/Utilities.cs b/Shippo/Utils/Utilities.cs index a63683c..7d12170 100644 --- a/Shippo/Utils/Utilities.cs +++ b/Shippo/Utils/Utilities.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -208,6 +208,10 @@ public static string ValueToString(object? value) } return (string)(method.Invoke(null, new[] { value }) ?? ""); } + else if (IsDictionary(value)) + { + return JsonConvert.SerializeObject(value, GetDefaultJsonSerializerSettings()); + } return value.ToString() ?? ""; } diff --git a/Shippo/Webhooks.cs b/Shippo/Webhooks.cs index e14465a..9eaf57e 100644 --- a/Shippo/Webhooks.cs +++ b/Shippo/Webhooks.cs @@ -1,6 +1,6 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -97,15 +97,15 @@ public class Webhooks: IWebhooks { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.4"; - private const string _sdkGenVersion = "2.359.6"; + private const string _sdkVersion = "5.0.0-beta.5"; + private const string _sdkGenVersion = "2.421.3"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.4 2.359.6 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.5 2.421.3 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; - private Func? _securitySource; + private Func? _securitySource; - public Webhooks(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) + public Webhooks(ISpeakeasyHttpClient client, Func? securitySource, string serverUrl, SDKConfig config) { _client = client; _securitySource = securitySource; @@ -176,16 +176,15 @@ public async Task CreateWebhookAsync(WebhookUpdateRequest request) var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task ListWebhooksAsync() @@ -245,16 +244,15 @@ public async Task ListWebhooksAsync() var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task GetWebhookAsync(string webhookId) @@ -317,16 +315,15 @@ public async Task GetWebhookAsync(string webhookId) var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task UpdateWebhookAsync(string webhookId, WebhookUpdateRequest webhookUpdateRequest) @@ -396,16 +393,15 @@ public async Task UpdateWebhookAsync(string webhookId, WebhookUpdateReq var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); return obj!; } - throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + + throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } public async Task DeleteWebhookAsync(string webhookId) @@ -467,12 +463,10 @@ public async Task DeleteWebhookAsync(string webhookId) } else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) { - throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); - } - else - { - throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } + + throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } } } \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 3e8c64a..e3c9d9b 100644 --- a/USAGE.md +++ b/USAGE.md @@ -1,17 +1,19 @@ ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Addresses.ListAsync( page: 1, results: 5, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` diff --git a/docs/Models/Components/Address.md b/docs/Models/Components/Address.md index 1c828bf..faee4f7 100644 --- a/docs/Models/Components/Address.md +++ b/docs/Models/Components/Address.md @@ -5,28 +5,28 @@ Address represents the address as retrieved from the database ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Name` | *string* | :heavy_minus_sign: | **required for purchase**

First and Last Name of the addressee | Shwan Ippotle | -| `Company` | *string* | :heavy_minus_sign: | Company Name | Shippo | -| `Street1` | *string* | :heavy_minus_sign: | **required for purchase**

First street line, 35 character limit. Usually street number and street name (except for DHL Germany, see street_no). | 215 Clayton St. | -| `Street2` | *string* | :heavy_minus_sign: | Second street line, 35 character limit. | | -| `Street3` | *string* | :heavy_minus_sign: | Third street line, 35 character limit.
Only accepted for USPS international shipments, UPS domestic and UPS international shipments. | | -| `StreetNo` | *string* | :heavy_minus_sign: | Street number of the addressed building.
This field can be included in street1 for all carriers except for DHL Germany. | | -| `City` | *string* | :heavy_minus_sign: | **required for purchase**

Name of a city. When creating a Quote Address, sending a city is optional but will yield more accurate Rates.
Please bear in mind that city names may be ambiguous (there are 34 Springfields in the US). Pass in a state
or a ZIP code (see below), if known, it will yield more accurate results. | San Francisco | -| `State` | *string* | :heavy_minus_sign: | **required for purchase for some countries**

State/Province values are required for shipments from/to the US, AU, and CA. UPS requires province for some
countries (i.e Ireland). To receive more accurate quotes, passing this field is recommended. Most carriers
only accept two or three character state abbreviations. | CA | -| `Zip` | *string* | :heavy_minus_sign: | **required for purchase**

Postal code of an Address. When creating a Quote Addresses, sending a ZIP is optional but will yield more
accurate Rates. | 94117 | -| `Country` | *string* | :heavy_check_mark: | Example: `US` or `DE`. All accepted values can be found on the
Official ISO Website.
Sending a country is always required. | US | -| `Phone` | *string* | :heavy_minus_sign: | Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This
increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped. | +1 555 341 9393 | -| `Email` | *string* | :heavy_minus_sign: | E-mail address of the contact person, RFC3696/5321-compliant. | shippotle@shippo.com | -| `IsResidential` | *bool* | :heavy_minus_sign: | N/A | true | -| `Metadata` | *string* | :heavy_minus_sign: | A string of up to 100 characters that can be filled with any additional information you want
to attach to the object. | Customer ID 123456 | -| `IsComplete` | *bool* | :heavy_minus_sign: | Complete addresses contain all required values.

Incomplete addresses have failed one or multiple
validations.
Incomplete Addresses are eligible for requesting rates but lack at least one required
value for purchasing labels. | true | -| `Latitude` | [Latitude](../../Models/Components/Latitude.md) | :heavy_minus_sign: | Latitude of address | | -| `Longitude` | [Longitude](../../Models/Components/Longitude.md) | :heavy_minus_sign: | Longitude of address | | -| `ObjectCreated` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date and time of Address creation. | 2014-07-09T02:19:13.174Z | -| `ObjectId` | *string* | :heavy_minus_sign: | Unique identifier of the given Address object.
This ID is required to create a Shipment object. | d799c2679e644279b59fe661ac8fa488 | -| `ObjectOwner` | *string* | :heavy_minus_sign: | Username of the user who created the Address object. | shippotle@shippo.com | -| `ObjectUpdated` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date and time of last Address update. Since you cannot update Addresses after they were created, this time
stamp reflects the time when the Address was changed by Shippo's systems for the last time, e.g., during the
approximation of one or more values. | 2014-07-09T02:19:13.174Z | -| `ValidationResults` | [AddressValidationResults](../../Models/Components/AddressValidationResults.md) | :heavy_minus_sign: | Object that contains information regarding if an address had been validated or not. Also contains any messages
generated during validation. Children keys are is_valid(boolean) and messages(array). | | -| `Test` | *bool* | :heavy_minus_sign: | Indicates whether the object has been created in test mode. | false | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Name` | *string* | :heavy_minus_sign: | **required for purchase**

First and Last Name of the addressee | Shwan Ippotle | +| `Company` | *string* | :heavy_minus_sign: | Company Name | Shippo | +| `Street1` | *string* | :heavy_minus_sign: | **required for purchase**

First street line, 35 character limit. Usually street number and street name (except for DHL Germany, see street_no). | 215 Clayton St. | +| `Street2` | *string* | :heavy_minus_sign: | Second street line, 35 character limit. | | +| `Street3` | *string* | :heavy_minus_sign: | Third street line, 35 character limit.
Only accepted for USPS international shipments, UPS domestic and UPS international shipments. | | +| `StreetNo` | *string* | :heavy_minus_sign: | Street number of the addressed building.
This field can be included in street1 for all carriers except for DHL Germany. | | +| `City` | *string* | :heavy_minus_sign: | **required for purchase**

Name of a city. When creating a Quote Address, sending a city is optional but will yield more accurate Rates.
Please bear in mind that city names may be ambiguous (there are 34 Springfields in the US). Pass in a state
or a ZIP code (see below), if known, it will yield more accurate results. | San Francisco | +| `State` | *string* | :heavy_minus_sign: | **required for purchase for some countries**

State/Province values are required for shipments from/to the US, AU, and CA. UPS requires province for some
countries (i.e Ireland). To receive more accurate quotes, passing this field is recommended. Most carriers
only accept two or three character state abbreviations. | CA | +| `Zip` | *string* | :heavy_minus_sign: | **required for purchase**

Postal code of an Address. When creating a Quote Addresses, sending a ZIP is optional but will yield more
accurate Rates. | 94117 | +| `Country` | *string* | :heavy_check_mark: | ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we reccomend using country codes like `US` or `DE`.
If using country names, please ensure they are spelled correctly and in English. Country names are converted to country codes.
Refer to this guide for a list of country codes.
Sending a country is always required. | US | +| `Phone` | *string* | :heavy_minus_sign: | Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This
increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped. | +1 555 341 9393 | +| `Email` | *string* | :heavy_minus_sign: | E-mail address of the contact person, RFC3696/5321-compliant. | shippotle@shippo.com | +| `IsResidential` | *bool* | :heavy_minus_sign: | N/A | true | +| `Metadata` | *string* | :heavy_minus_sign: | A string of up to 100 characters that can be filled with any additional information you want
to attach to the object. | Customer ID 123456 | +| `IsComplete` | *bool* | :heavy_minus_sign: | Complete addresses contain all required values.

Incomplete addresses have failed one or multiple
validations.
Incomplete Addresses are eligible for requesting rates but lack at least one required
value for purchasing labels. | true | +| `Latitude` | [Latitude](../../Models/Components/Latitude.md) | :heavy_minus_sign: | Latitude of address | | +| `Longitude` | [Longitude](../../Models/Components/Longitude.md) | :heavy_minus_sign: | Longitude of address | | +| `ObjectCreated` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date and time of Address creation. | 2014-07-09T02:19:13.174Z | +| `ObjectId` | *string* | :heavy_minus_sign: | Unique identifier of the given Address object.
This ID is required to create a Shipment object. | d799c2679e644279b59fe661ac8fa488 | +| `ObjectOwner` | *string* | :heavy_minus_sign: | Username of the user who created the Address object. | shippotle@shippo.com | +| `ObjectUpdated` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date and time of last Address update. Since you cannot update Addresses after they were created, this time
stamp reflects the time when the Address was changed by Shippo's systems for the last time, e.g., during the
approximation of one or more values. | 2014-07-09T02:19:13.174Z | +| `ValidationResults` | [AddressValidationResults](../../Models/Components/AddressValidationResults.md) | :heavy_minus_sign: | Object that contains information regarding if an address had been validated or not. Also contains any messages
generated during validation. Children keys are is_valid(boolean) and messages(array). | | +| `Test` | *bool* | :heavy_minus_sign: | Indicates whether the object has been created in test mode. | false | \ No newline at end of file diff --git a/docs/Models/Components/AddressCompleteCreateRequest.md b/docs/Models/Components/AddressCompleteCreateRequest.md index 5609f03..d0fbc0b 100644 --- a/docs/Models/Components/AddressCompleteCreateRequest.md +++ b/docs/Models/Components/AddressCompleteCreateRequest.md @@ -5,20 +5,20 @@ Address represents the address as retrieved from the database ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Name` | *string* | :heavy_check_mark: | **required for purchase**

First and Last Name of the addressee | Shwan Ippotle | -| `Company` | *string* | :heavy_minus_sign: | Company Name | Shippo | -| `Street1` | *string* | :heavy_check_mark: | **required for purchase**

First street line, 35 character limit. Usually street number and street name (except for DHL Germany, see street_no). | 215 Clayton St. | -| `Street2` | *string* | :heavy_minus_sign: | Second street line, 35 character limit. | | -| `Street3` | *string* | :heavy_minus_sign: | Third street line, 35 character limit.
Only accepted for USPS international shipments, UPS domestic and UPS international shipments. | | -| `StreetNo` | *string* | :heavy_minus_sign: | Street number of the addressed building.
This field can be included in street1 for all carriers except for DHL Germany. | | -| `City` | *string* | :heavy_check_mark: | **required for purchase**

Name of a city. When creating a Quote Address, sending a city is optional but will yield more accurate Rates.
Please bear in mind that city names may be ambiguous (there are 34 Springfields in the US). Pass in a state
or a ZIP code (see below), if known, it will yield more accurate results. | San Francisco | -| `State` | *string* | :heavy_check_mark: | **required for purchase for some countries**

State/Province values are required for shipments from/to the US, AU, and CA. UPS requires province for some
countries (i.e Ireland). To receive more accurate quotes, passing this field is recommended. Most carriers
only accept two or three character state abbreviations. | CA | -| `Zip` | *string* | :heavy_check_mark: | **required for purchase**

Postal code of an Address. When creating a Quote Addresses, sending a ZIP is optional but will yield more
accurate Rates. | 94117 | -| `Country` | *string* | :heavy_check_mark: | Example: `US` or `DE`. All accepted values can be found on the
Official ISO Website.
Sending a country is always required. | US | -| `Phone` | *string* | :heavy_minus_sign: | Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This
increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped. | +1 555 341 9393 | -| `Email` | *string* | :heavy_minus_sign: | E-mail address of the contact person, RFC3696/5321-compliant. | shippotle@shippo.com | -| `IsResidential` | *bool* | :heavy_minus_sign: | N/A | true | -| `Metadata` | *string* | :heavy_minus_sign: | A string of up to 100 characters that can be filled with any additional information you want
to attach to the object. | Customer ID 123456 | -| `Validate` | *bool* | :heavy_minus_sign: | N/A | true | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Name` | *string* | :heavy_check_mark: | **required for purchase**

First and Last Name of the addressee | Shwan Ippotle | +| `Company` | *string* | :heavy_minus_sign: | Company Name | Shippo | +| `Street1` | *string* | :heavy_check_mark: | **required for purchase**

First street line, 35 character limit. Usually street number and street name (except for DHL Germany, see street_no). | 215 Clayton St. | +| `Street2` | *string* | :heavy_minus_sign: | Second street line, 35 character limit. | | +| `Street3` | *string* | :heavy_minus_sign: | Third street line, 35 character limit.
Only accepted for USPS international shipments, UPS domestic and UPS international shipments. | | +| `StreetNo` | *string* | :heavy_minus_sign: | Street number of the addressed building.
This field can be included in street1 for all carriers except for DHL Germany. | | +| `City` | *string* | :heavy_check_mark: | **required for purchase**

Name of a city. When creating a Quote Address, sending a city is optional but will yield more accurate Rates.
Please bear in mind that city names may be ambiguous (there are 34 Springfields in the US). Pass in a state
or a ZIP code (see below), if known, it will yield more accurate results. | San Francisco | +| `State` | *string* | :heavy_check_mark: | **required for purchase for some countries**

State/Province values are required for shipments from/to the US, AU, and CA. UPS requires province for some
countries (i.e Ireland). To receive more accurate quotes, passing this field is recommended. Most carriers
only accept two or three character state abbreviations. | CA | +| `Zip` | *string* | :heavy_check_mark: | **required for purchase**

Postal code of an Address. When creating a Quote Addresses, sending a ZIP is optional but will yield more
accurate Rates. | 94117 | +| `Country` | *string* | :heavy_check_mark: | ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we reccomend using country codes like `US` or `DE`.
If using country names, please ensure they are spelled correctly and in English. Country names are converted to country codes.
Refer to this guide for a list of country codes.
Sending a country is always required. | US | +| `Phone` | *string* | :heavy_minus_sign: | Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This
increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped. | +1 555 341 9393 | +| `Email` | *string* | :heavy_minus_sign: | E-mail address of the contact person, RFC3696/5321-compliant. | shippotle@shippo.com | +| `IsResidential` | *bool* | :heavy_minus_sign: | N/A | true | +| `Metadata` | *string* | :heavy_minus_sign: | A string of up to 100 characters that can be filled with any additional information you want
to attach to the object. | Customer ID 123456 | +| `Validate` | *bool* | :heavy_minus_sign: | N/A | true | \ No newline at end of file diff --git a/docs/Models/Components/AddressCreateRequest.md b/docs/Models/Components/AddressCreateRequest.md index fd722e2..2920548 100644 --- a/docs/Models/Components/AddressCreateRequest.md +++ b/docs/Models/Components/AddressCreateRequest.md @@ -5,20 +5,20 @@ Address represents the address as retrieved from the database ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Name` | *string* | :heavy_minus_sign: | **required for purchase**

First and Last Name of the addressee | Shwan Ippotle | -| `Company` | *string* | :heavy_minus_sign: | Company Name | Shippo | -| `Street1` | *string* | :heavy_minus_sign: | **required for purchase**

First street line, 35 character limit. Usually street number and street name (except for DHL Germany, see street_no). | 215 Clayton St. | -| `Street2` | *string* | :heavy_minus_sign: | Second street line, 35 character limit. | | -| `Street3` | *string* | :heavy_minus_sign: | Third street line, 35 character limit.
Only accepted for USPS international shipments, UPS domestic and UPS international shipments. | | -| `StreetNo` | *string* | :heavy_minus_sign: | Street number of the addressed building.
This field can be included in street1 for all carriers except for DHL Germany. | | -| `City` | *string* | :heavy_minus_sign: | **required for purchase**

Name of a city. When creating a Quote Address, sending a city is optional but will yield more accurate Rates.
Please bear in mind that city names may be ambiguous (there are 34 Springfields in the US). Pass in a state
or a ZIP code (see below), if known, it will yield more accurate results. | San Francisco | -| `State` | *string* | :heavy_minus_sign: | **required for purchase for some countries**

State/Province values are required for shipments from/to the US, AU, and CA. UPS requires province for some
countries (i.e Ireland). To receive more accurate quotes, passing this field is recommended. Most carriers
only accept two or three character state abbreviations. | CA | -| `Zip` | *string* | :heavy_minus_sign: | **required for purchase**

Postal code of an Address. When creating a Quote Addresses, sending a ZIP is optional but will yield more
accurate Rates. | 94117 | -| `Country` | *string* | :heavy_check_mark: | Example: `US` or `DE`. All accepted values can be found on the
Official ISO Website.
Sending a country is always required. | US | -| `Phone` | *string* | :heavy_minus_sign: | Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This
increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped. | +1 555 341 9393 | -| `Email` | *string* | :heavy_minus_sign: | E-mail address of the contact person, RFC3696/5321-compliant. | shippotle@shippo.com | -| `IsResidential` | *bool* | :heavy_minus_sign: | N/A | true | -| `Metadata` | *string* | :heavy_minus_sign: | A string of up to 100 characters that can be filled with any additional information you want
to attach to the object. | Customer ID 123456 | -| `Validate` | *bool* | :heavy_minus_sign: | Set to true to validate Address object. | true | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Name` | *string* | :heavy_minus_sign: | **required for purchase**

First and Last Name of the addressee | Shwan Ippotle | +| `Company` | *string* | :heavy_minus_sign: | Company Name | Shippo | +| `Street1` | *string* | :heavy_minus_sign: | **required for purchase**

First street line, 35 character limit. Usually street number and street name (except for DHL Germany, see street_no). | 215 Clayton St. | +| `Street2` | *string* | :heavy_minus_sign: | Second street line, 35 character limit. | | +| `Street3` | *string* | :heavy_minus_sign: | Third street line, 35 character limit.
Only accepted for USPS international shipments, UPS domestic and UPS international shipments. | | +| `StreetNo` | *string* | :heavy_minus_sign: | Street number of the addressed building.
This field can be included in street1 for all carriers except for DHL Germany. | | +| `City` | *string* | :heavy_minus_sign: | **required for purchase**

Name of a city. When creating a Quote Address, sending a city is optional but will yield more accurate Rates.
Please bear in mind that city names may be ambiguous (there are 34 Springfields in the US). Pass in a state
or a ZIP code (see below), if known, it will yield more accurate results. | San Francisco | +| `State` | *string* | :heavy_minus_sign: | **required for purchase for some countries**

State/Province values are required for shipments from/to the US, AU, and CA. UPS requires province for some
countries (i.e Ireland). To receive more accurate quotes, passing this field is recommended. Most carriers
only accept two or three character state abbreviations. | CA | +| `Zip` | *string* | :heavy_minus_sign: | **required for purchase**

Postal code of an Address. When creating a Quote Addresses, sending a ZIP is optional but will yield more
accurate Rates. | 94117 | +| `Country` | *string* | :heavy_check_mark: | ISO 3166-1 alpha-2 country codes and country names can be used. For most consistent results, we reccomend using country codes like `US` or `DE`.
If using country names, please ensure they are spelled correctly and in English. Country names are converted to country codes.
Refer to this guide for a list of country codes.
Sending a country is always required. | US | +| `Phone` | *string* | :heavy_minus_sign: | Addresses containing a phone number allow carriers to call the recipient when delivering the Parcel. This
increases the probability of delivery and helps to avoid accessorial charges after a Parcel has been shipped. | +1 555 341 9393 | +| `Email` | *string* | :heavy_minus_sign: | E-mail address of the contact person, RFC3696/5321-compliant. | shippotle@shippo.com | +| `IsResidential` | *bool* | :heavy_minus_sign: | N/A | true | +| `Metadata` | *string* | :heavy_minus_sign: | A string of up to 100 characters that can be filled with any additional information you want
to attach to the object. | Customer ID 123456 | +| `Validate` | *bool* | :heavy_minus_sign: | Set to true to validate Address object. | true | \ No newline at end of file diff --git a/docs/Models/Components/AddressFrom.md b/docs/Models/Components/AddressFrom.md index 1fe9c3e..3e94ac0 100644 --- a/docs/Models/Components/AddressFrom.md +++ b/docs/Models/Components/AddressFrom.md @@ -1,2 +1,16 @@ # AddressFrom + +## Supported Types + +### AddressCreateRequest + +```csharp +AddressFrom.CreateAddressCreateRequest(/* values here */); +``` + +### Str + +```csharp +AddressFrom.CreateStr(/* values here */); +``` diff --git a/docs/Models/Components/AddressReturn.md b/docs/Models/Components/AddressReturn.md index a013fad..a7e9ba5 100644 --- a/docs/Models/Components/AddressReturn.md +++ b/docs/Models/Components/AddressReturn.md @@ -1,2 +1,16 @@ # AddressReturn + +## Supported Types + +### AddressCreateRequest + +```csharp +AddressReturn.CreateAddressCreateRequest(/* values here */); +``` + +### Str + +```csharp +AddressReturn.CreateStr(/* values here */); +``` diff --git a/docs/Models/Components/AddressTo.md b/docs/Models/Components/AddressTo.md index 380ae4c..3c29aaa 100644 --- a/docs/Models/Components/AddressTo.md +++ b/docs/Models/Components/AddressTo.md @@ -1,2 +1,16 @@ # AddressTo + +## Supported Types + +### AddressCreateRequest + +```csharp +AddressTo.CreateAddressCreateRequest(/* values here */); +``` + +### Str + +```csharp +AddressTo.CreateStr(/* values here */); +``` diff --git a/docs/Models/Components/Billing.md b/docs/Models/Components/Billing.md index 8eff0ef..6731cd6 100644 --- a/docs/Models/Components/Billing.md +++ b/docs/Models/Components/Billing.md @@ -10,5 +10,5 @@ Specify billing details (UPS, FedEx, and DHL Germany only). | `Account` | *string* | :heavy_minus_sign: | Account number to be billed. (For DHL Germany, leave this field blank.) | | `Country` | *string* | :heavy_minus_sign: | Country iso2 code of account number to be billed (required for UPS third party billing only). | | `ParticipationCode` | *string* | :heavy_minus_sign: | 2 digit code used to override your default participation code associated with your DHL Germany account. | -| `Type` | [Type](../../Models/Components/Type.md) | :heavy_minus_sign: | Party to be billed. (Leave blank for DHL Germany.) | +| `Type` | [Models.Components.Type](../../Models/Components/Type.md) | :heavy_minus_sign: | Party to be billed. (Leave blank for DHL Germany.) | | `Zip` | *string* | :heavy_minus_sign: | ZIP code of account number to be billed (required for UPS if there is a zip on the billing account). | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountBaseParameters.md b/docs/Models/Components/CarrierAccountBaseParameters.md index 0f8e9a4..9447d63 100644 --- a/docs/Models/Components/CarrierAccountBaseParameters.md +++ b/docs/Models/Components/CarrierAccountBaseParameters.md @@ -1,2 +1,22 @@ # CarrierAccountBaseParameters + +## Supported Types + +### MapOfAny + +```csharp +CarrierAccountBaseParameters.CreateMapOfAny(/* values here */); +``` + +### FedExConnectExistingOwnAccountParameters + +```csharp +CarrierAccountBaseParameters.CreateFedExConnectExistingOwnAccountParameters(/* values here */); +``` + +### UPSConnectExistingOwnAccountParameters + +```csharp +CarrierAccountBaseParameters.CreateUPSConnectExistingOwnAccountParameters(/* values here */); +``` diff --git a/docs/Models/Components/CarrierAccountParameters.md b/docs/Models/Components/CarrierAccountParameters.md index 3704d8c..14b0b70 100644 --- a/docs/Models/Components/CarrierAccountParameters.md +++ b/docs/Models/Components/CarrierAccountParameters.md @@ -1,2 +1,22 @@ # CarrierAccountParameters + +## Supported Types + +### MapOfAny + +```csharp +CarrierAccountParameters.CreateMapOfAny(/* values here */); +``` + +### FedExConnectExistingOwnAccountParameters + +```csharp +CarrierAccountParameters.CreateFedExConnectExistingOwnAccountParameters(/* values here */); +``` + +### UPSConnectExistingOwnAccountParameters + +```csharp +CarrierAccountParameters.CreateUPSConnectExistingOwnAccountParameters(/* values here */); +``` diff --git a/docs/Models/Components/CarrierAccountSendleCreateRequest.md b/docs/Models/Components/CarrierAccountSendleCreateRequest.md new file mode 100644 index 0000000..080b699 --- /dev/null +++ b/docs/Models/Components/CarrierAccountSendleCreateRequest.md @@ -0,0 +1,9 @@ +# CarrierAccountSendleCreateRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | sendle | +| `Parameters` | [CarrierAccountSendleCreateRequestParameters](../../Models/Components/CarrierAccountSendleCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountSendleCreateRequestParameters.md b/docs/Models/Components/CarrierAccountSendleCreateRequestParameters.md new file mode 100644 index 0000000..aa1e00c --- /dev/null +++ b/docs/Models/Components/CarrierAccountSendleCreateRequestParameters.md @@ -0,0 +1,7 @@ +# CarrierAccountSendleCreateRequestParameters + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Components/CarriersEnum.md b/docs/Models/Components/CarriersEnum.md index 97e4f70..c9a8e1f 100644 --- a/docs/Models/Components/CarriersEnum.md +++ b/docs/Models/Components/CarriersEnum.md @@ -47,7 +47,6 @@ | ontrac | OnTrac| | orangeds | OrangeDS| | parcelforce | Parcelforce| -| parcel | Parcel| | passport | Passport| | pcf | PCF| | poste_italiane | Poste Italiane | @@ -64,8 +63,6 @@ | ups | UPS| | usps | USPS| | veho | Veho | -| x_delivery | X Delivery (now Maergo)| -| yodel | Yodel| @@ -118,7 +115,6 @@ | `Ontrac` | ontrac | | `Orangeds` | orangeds | | `Parcelforce` | parcelforce | -| `Parcel` | parcel | | `Passport` | passport | | `Pcf` | pcf | | `PosteItaliane` | poste_italiane | @@ -134,6 +130,4 @@ | `Uds` | uds | | `Ups` | ups | | `Usps` | usps | -| `Veho` | veho | -| `XDelivery` | x_delivery | -| `Yodel` | yodel | \ No newline at end of file +| `Veho` | veho | \ No newline at end of file diff --git a/docs/Models/Components/ConnectExistingOwnAccountRequestParameters.md b/docs/Models/Components/ConnectExistingOwnAccountRequestParameters.md index 797be68..0424e77 100644 --- a/docs/Models/Components/ConnectExistingOwnAccountRequestParameters.md +++ b/docs/Models/Components/ConnectExistingOwnAccountRequestParameters.md @@ -1,2 +1,22 @@ # ConnectExistingOwnAccountRequestParameters + +## Supported Types + +### MapOfAny + +```csharp +ConnectExistingOwnAccountRequestParameters.CreateMapOfAny(/* values here */); +``` + +### FedExConnectExistingOwnAccountParameters + +```csharp +ConnectExistingOwnAccountRequestParameters.CreateFedExConnectExistingOwnAccountParameters(/* values here */); +``` + +### UPSConnectExistingOwnAccountParameters + +```csharp +ConnectExistingOwnAccountRequestParameters.CreateUPSConnectExistingOwnAccountParameters(/* values here */); +``` diff --git a/docs/Models/Components/CustomsDeclaration.md b/docs/Models/Components/CustomsDeclaration.md index 0919a44..37ae40f 100644 --- a/docs/Models/Components/CustomsDeclaration.md +++ b/docs/Models/Components/CustomsDeclaration.md @@ -14,6 +14,7 @@ | `CommercialInvoice` | *bool* | :heavy_minus_sign: | N/A | | | `ContentsExplanation` | *string* | :heavy_minus_sign: | **required if contents_type is `OTHER`**

Explanation of the type of goods of the shipment. | T-Shirt purchase | | `Disclaimer` | *string* | :heavy_minus_sign: | Disclaimer for the shipment and customs information that have been provided. | | +| `DutiesPayor` | [CustomsDeclarationDutiesPayor](../../Models/Components/CustomsDeclarationDutiesPayor.md) | :heavy_minus_sign: | Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. | | | `ExporterIdentification` | [CustomsExporterIdentification](../../Models/Components/CustomsExporterIdentification.md) | :heavy_minus_sign: | Additional exporter identification that may be required to ship in certain countries | | | `ExporterReference` | *string* | :heavy_minus_sign: | Exporter reference of an export shipment. | | | `ImporterReference` | *string* | :heavy_minus_sign: | Importer reference of an import shipment. | | diff --git a/docs/Models/Components/CustomsDeclarationAddress.md b/docs/Models/Components/CustomsDeclarationAddress.md new file mode 100644 index 0000000..99ec0ea --- /dev/null +++ b/docs/Models/Components/CustomsDeclarationAddress.md @@ -0,0 +1,10 @@ +# CustomsDeclarationAddress + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `Name` | *string* | :heavy_minus_sign: | Name of the party to be billed for duties. | Patrick Kavanagh | +| `Zip` | *string* | :heavy_minus_sign: | Postal code of the party to be billed for duties. | 80331 | +| `Country` | *string* | :heavy_minus_sign: | Country ISO code of account number to be billed. | DE | \ No newline at end of file diff --git a/docs/Models/Components/CustomsDeclarationCreateRequest.md b/docs/Models/Components/CustomsDeclarationCreateRequest.md index 0939c9f..e1bce37 100644 --- a/docs/Models/Components/CustomsDeclarationCreateRequest.md +++ b/docs/Models/Components/CustomsDeclarationCreateRequest.md @@ -14,6 +14,7 @@ | `CommercialInvoice` | *bool* | :heavy_minus_sign: | N/A | | | `ContentsExplanation` | *string* | :heavy_minus_sign: | **required if contents_type is `OTHER`**

Explanation of the type of goods of the shipment. | T-Shirt purchase | | `Disclaimer` | *string* | :heavy_minus_sign: | Disclaimer for the shipment and customs information that have been provided. | | +| `DutiesPayor` | [DutiesPayor](../../Models/Components/DutiesPayor.md) | :heavy_minus_sign: | Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. | | | `ExporterIdentification` | [CustomsExporterIdentification](../../Models/Components/CustomsExporterIdentification.md) | :heavy_minus_sign: | Additional exporter identification that may be required to ship in certain countries | | | `ExporterReference` | *string* | :heavy_minus_sign: | Exporter reference of an export shipment. | | | `ImporterReference` | *string* | :heavy_minus_sign: | Importer reference of an import shipment. | | diff --git a/docs/Models/Components/CustomsDeclarationCreateRequestAddress.md b/docs/Models/Components/CustomsDeclarationCreateRequestAddress.md new file mode 100644 index 0000000..cfdcdea --- /dev/null +++ b/docs/Models/Components/CustomsDeclarationCreateRequestAddress.md @@ -0,0 +1,10 @@ +# CustomsDeclarationCreateRequestAddress + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `Name` | *string* | :heavy_minus_sign: | Name of the party to be billed for duties. | Patrick Kavanagh | +| `Zip` | *string* | :heavy_minus_sign: | Postal code of the party to be billed for duties. | 80331 | +| `Country` | *string* | :heavy_minus_sign: | Country ISO code of account number to be billed. | DE | \ No newline at end of file diff --git a/docs/Models/Components/CustomsDeclarationCreateRequestType.md b/docs/Models/Components/CustomsDeclarationCreateRequestType.md new file mode 100644 index 0000000..f7b49fc --- /dev/null +++ b/docs/Models/Components/CustomsDeclarationCreateRequestType.md @@ -0,0 +1,12 @@ +# CustomsDeclarationCreateRequestType + +Party to be billed for duties. + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `Sender` | SENDER | +| `Recipient` | RECIPIENT | +| `ThirdParty` | THIRD_PARTY | \ No newline at end of file diff --git a/docs/Models/Components/CustomsDeclarationDutiesPayor.md b/docs/Models/Components/CustomsDeclarationDutiesPayor.md new file mode 100644 index 0000000..c779939 --- /dev/null +++ b/docs/Models/Components/CustomsDeclarationDutiesPayor.md @@ -0,0 +1,12 @@ +# CustomsDeclarationDutiesPayor + +Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `Account` | *string* | :heavy_minus_sign: | Account number to be billed for duties. | 2323434543 | +| `Type` | [CustomsDeclarationType](../../Models/Components/CustomsDeclarationType.md) | :heavy_minus_sign: | Party to be billed for duties. | THIRD_PARTY | +| `Address` | [CustomsDeclarationAddress](../../Models/Components/CustomsDeclarationAddress.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Components/CustomsDeclarationType.md b/docs/Models/Components/CustomsDeclarationType.md new file mode 100644 index 0000000..6b61ca2 --- /dev/null +++ b/docs/Models/Components/CustomsDeclarationType.md @@ -0,0 +1,12 @@ +# CustomsDeclarationType + +Party to be billed for duties. + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `Sender` | SENDER | +| `Recipient` | RECIPIENT | +| `ThirdParty` | THIRD_PARTY | \ No newline at end of file diff --git a/docs/Models/Components/CustomsItem.md b/docs/Models/Components/CustomsItem.md index 960cc5d..f5028f4 100644 --- a/docs/Models/Components/CustomsItem.md +++ b/docs/Models/Components/CustomsItem.md @@ -3,23 +3,23 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Description` | *string* | :heavy_check_mark: | Text description of your item. | T-Shirt | -| `EccnEar99` | *string* | :heavy_minus_sign: | Export Control Classification Number, required on some exports from the United States. | | -| `MassUnit` | [WeightUnitEnum](../../Models/Components/WeightUnitEnum.md) | :heavy_check_mark: | The unit used for weight. | lb | -| `Metadata` | *string* | :heavy_minus_sign: | A string of up to 100 characters that can be filled with any additional information you
want to attach to the object. | Order ID "123454" | -| `NetWeight` | *string* | :heavy_check_mark: | Total weight of this item, i.e. quantity * weight per item. | 5 | -| `OriginCountry` | *string* | :heavy_check_mark: | Country of origin of the item. Example: `US` or `DE`.
All accepted values can be found on the Official ISO Website. | | -| `Quantity` | *long* | :heavy_check_mark: | Quantity of this item in the shipment you send. Must be greater than 0. | 20 | -| `SkuCode` | *string* | :heavy_minus_sign: | SKU code of the item, which is required by some carriers. | HM-123 | -| `HsCode` | *string* | :heavy_minus_sign: | HS code of the item, which is required by some carriers. | 0901.21 | -| `TariffNumber` | *string* | :heavy_minus_sign: | The tariff number of the item. | | -| `ValueAmount` | *string* | :heavy_check_mark: | Total value of this item, i.e. quantity * value per item. | 200 | -| `ValueCurrency` | *string* | :heavy_check_mark: | Currency used for value_amount. The official ISO 4217
currency codes are used, e.g. `USD` or `EUR`. | USD | -| `ObjectCreated` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date and time of object creation. | 2014-07-17T00:49:20.631Z | -| `ObjectId` | *string* | :heavy_minus_sign: | Unique identifier of the given object. | d799c2679e644279b59fe661ac8fa488 | -| `ObjectOwner` | *string* | :heavy_minus_sign: | Username of the user who created the object. | shippotle@shippo.com | -| `ObjectState` | [ObjectStateEnum](../../Models/Components/ObjectStateEnum.md) | :heavy_minus_sign: | Indicates the validity of the enclosing object | | -| `ObjectUpdated` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date and time of last object update. | 2014-07-17T00:49:20.631Z | -| `Test` | *bool* | :heavy_minus_sign: | Indicates whether the object has been created in test mode. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Description` | *string* | :heavy_check_mark: | Text description of your item. | T-Shirt | +| `EccnEar99` | *string* | :heavy_minus_sign: | Export Control Classification Number, required on some exports from the United States. | | +| `MassUnit` | [WeightUnitEnum](../../Models/Components/WeightUnitEnum.md) | :heavy_check_mark: | The unit used for weight. | lb | +| `Metadata` | *string* | :heavy_minus_sign: | A string of up to 100 characters that can be filled with any additional information you
want to attach to the object. | Order ID "123454" | +| `NetWeight` | *string* | :heavy_check_mark: | Total weight of this item, i.e. quantity * weight per item. | 5 | +| `OriginCountry` | *string* | :heavy_check_mark: | Country of origin of the item. Example: `US` or `DE`.
All accepted values can be found on the Official ISO Website. | | +| `Quantity` | *long* | :heavy_check_mark: | Quantity of this item in the shipment you send. Must be greater than 0. | 20 | +| `SkuCode` | *string* | :heavy_minus_sign: | SKU code of the item, which is required by some carriers. | HM-123 | +| `HsCode` | *string* | :heavy_minus_sign: | HS code of the item, which is required by some carriers. If `tariff_number` is not provided, `hs_code` will be used. If both `hs_code` and `tariff_number` are provided, `tariff_number` will be used. 50 character limit. | 0901.21 | +| `TariffNumber` | *string* | :heavy_minus_sign: | The tariff number of the item. If `tariff_number` is not provided, `hs_code` will be used. If both `hs_code` and `tariff_number` are provided, `tariff_number` will be used. 12 character limit. | | +| `ValueAmount` | *string* | :heavy_check_mark: | Total value of this item, i.e. quantity * value per item. | 200 | +| `ValueCurrency` | *string* | :heavy_check_mark: | Currency used for value_amount. The official ISO 4217
currency codes are used, e.g. `USD` or `EUR`. | USD | +| `ObjectCreated` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date and time of object creation. | 2014-07-17T00:49:20.631Z | +| `ObjectId` | *string* | :heavy_minus_sign: | Unique identifier of the given object. | d799c2679e644279b59fe661ac8fa488 | +| `ObjectOwner` | *string* | :heavy_minus_sign: | Username of the user who created the object. | shippotle@shippo.com | +| `ObjectState` | [ObjectStateEnum](../../Models/Components/ObjectStateEnum.md) | :heavy_minus_sign: | Indicates the validity of the enclosing object | | +| `ObjectUpdated` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Date and time of last object update. | 2014-07-17T00:49:20.631Z | +| `Test` | *bool* | :heavy_minus_sign: | Indicates whether the object has been created in test mode. | | \ No newline at end of file diff --git a/docs/Models/Components/CustomsItemCreateRequest.md b/docs/Models/Components/CustomsItemCreateRequest.md index 564165f..edf2f5e 100644 --- a/docs/Models/Components/CustomsItemCreateRequest.md +++ b/docs/Models/Components/CustomsItemCreateRequest.md @@ -3,17 +3,17 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Description` | *string* | :heavy_check_mark: | Text description of your item. | T-Shirt | -| `EccnEar99` | *string* | :heavy_minus_sign: | Export Control Classification Number, required on some exports from the United States. | | -| `MassUnit` | [WeightUnitEnum](../../Models/Components/WeightUnitEnum.md) | :heavy_check_mark: | The unit used for weight. | lb | -| `Metadata` | *string* | :heavy_minus_sign: | A string of up to 100 characters that can be filled with any additional information you
want to attach to the object. | Order ID "123454" | -| `NetWeight` | *string* | :heavy_check_mark: | Total weight of this item, i.e. quantity * weight per item. | 5 | -| `OriginCountry` | *string* | :heavy_check_mark: | Country of origin of the item. Example: `US` or `DE`.
All accepted values can be found on the Official ISO Website. | | -| `Quantity` | *long* | :heavy_check_mark: | Quantity of this item in the shipment you send. Must be greater than 0. | 20 | -| `SkuCode` | *string* | :heavy_minus_sign: | SKU code of the item, which is required by some carriers. | HM-123 | -| `HsCode` | *string* | :heavy_minus_sign: | HS code of the item, which is required by some carriers. | 0901.21 | -| `TariffNumber` | *string* | :heavy_minus_sign: | The tariff number of the item. | | -| `ValueAmount` | *string* | :heavy_check_mark: | Total value of this item, i.e. quantity * value per item. | 200 | -| `ValueCurrency` | *string* | :heavy_check_mark: | Currency used for value_amount. The official ISO 4217
currency codes are used, e.g. `USD` or `EUR`. | USD | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Description` | *string* | :heavy_check_mark: | Text description of your item. | T-Shirt | +| `EccnEar99` | *string* | :heavy_minus_sign: | Export Control Classification Number, required on some exports from the United States. | | +| `MassUnit` | [WeightUnitEnum](../../Models/Components/WeightUnitEnum.md) | :heavy_check_mark: | The unit used for weight. | lb | +| `Metadata` | *string* | :heavy_minus_sign: | A string of up to 100 characters that can be filled with any additional information you
want to attach to the object. | Order ID "123454" | +| `NetWeight` | *string* | :heavy_check_mark: | Total weight of this item, i.e. quantity * weight per item. | 5 | +| `OriginCountry` | *string* | :heavy_check_mark: | Country of origin of the item. Example: `US` or `DE`.
All accepted values can be found on the Official ISO Website. | | +| `Quantity` | *long* | :heavy_check_mark: | Quantity of this item in the shipment you send. Must be greater than 0. | 20 | +| `SkuCode` | *string* | :heavy_minus_sign: | SKU code of the item, which is required by some carriers. | HM-123 | +| `HsCode` | *string* | :heavy_minus_sign: | HS code of the item, which is required by some carriers. If `tariff_number` is not provided, `hs_code` will be used. If both `hs_code` and `tariff_number` are provided, `tariff_number` will be used. 50 character limit. | 0901.21 | +| `TariffNumber` | *string* | :heavy_minus_sign: | The tariff number of the item. If `tariff_number` is not provided, `hs_code` will be used. If both `hs_code` and `tariff_number` are provided, `tariff_number` will be used. 12 character limit. | | +| `ValueAmount` | *string* | :heavy_check_mark: | Total value of this item, i.e. quantity * value per item. | 200 | +| `ValueCurrency` | *string* | :heavy_check_mark: | Currency used for value_amount. The official ISO 4217
currency codes are used, e.g. `USD` or `EUR`. | USD | \ No newline at end of file diff --git a/docs/Models/Components/DutiesPayor.md b/docs/Models/Components/DutiesPayor.md new file mode 100644 index 0000000..c5f43ed --- /dev/null +++ b/docs/Models/Components/DutiesPayor.md @@ -0,0 +1,12 @@ +# DutiesPayor + +Specifies who will pay the duties for the shipment. Only accepted for FedEx shipments. + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `Account` | *string* | :heavy_minus_sign: | Account number to be billed for duties. | 2323434543 | +| `Type` | [CustomsDeclarationCreateRequestType](../../Models/Components/CustomsDeclarationCreateRequestType.md) | :heavy_minus_sign: | Party to be billed for duties. | THIRD_PARTY | +| `Address` | [CustomsDeclarationCreateRequestAddress](../../Models/Components/CustomsDeclarationCreateRequestAddress.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Components/Latitude.md b/docs/Models/Components/Latitude.md index 968babf..6e003fe 100644 --- a/docs/Models/Components/Latitude.md +++ b/docs/Models/Components/Latitude.md @@ -1,2 +1,16 @@ # Latitude + +## Supported Types + +### Number + +```csharp +Latitude.CreateNumber(/* values here */); +``` + +### Str + +```csharp +Latitude.CreateStr(/* values here */); +``` diff --git a/docs/Models/Components/LiveRateCreateRequestAddressFrom.md b/docs/Models/Components/LiveRateCreateRequestAddressFrom.md index 67e8b28..32328cb 100644 --- a/docs/Models/Components/LiveRateCreateRequestAddressFrom.md +++ b/docs/Models/Components/LiveRateCreateRequestAddressFrom.md @@ -4,3 +4,17 @@ The sender address, which includes your name, company name, street address, city country, phone number, and email address (strings). Special characters should not be included in any address element, especially name, company, and email. + +## Supported Types + +### Str + +```csharp +LiveRateCreateRequestAddressFrom.CreateStr(/* values here */); +``` + +### AddressCompleteCreateRequest + +```csharp +LiveRateCreateRequestAddressFrom.CreateAddressCompleteCreateRequest(/* values here */); +``` diff --git a/docs/Models/Components/LiveRateCreateRequestAddressTo.md b/docs/Models/Components/LiveRateCreateRequestAddressTo.md index fd484bf..fe5e178 100644 --- a/docs/Models/Components/LiveRateCreateRequestAddressTo.md +++ b/docs/Models/Components/LiveRateCreateRequestAddressTo.md @@ -4,3 +4,17 @@ The recipient address, which includes the recipient's name, company name, street country, phone number, and email address (strings). Special characters should not be included in any address element, especially name, company, and email. + +## Supported Types + +### Str + +```csharp +LiveRateCreateRequestAddressTo.CreateStr(/* values here */); +``` + +### AddressCompleteCreateRequest + +```csharp +LiveRateCreateRequestAddressTo.CreateAddressCompleteCreateRequest(/* values here */); +``` diff --git a/docs/Models/Components/LiveRateCreateRequestParcel.md b/docs/Models/Components/LiveRateCreateRequestParcel.md index 51164d2..4a2b013 100644 --- a/docs/Models/Components/LiveRateCreateRequestParcel.md +++ b/docs/Models/Components/LiveRateCreateRequestParcel.md @@ -2,3 +2,17 @@ Object ID for an existing User Parcel Template OR a fully formed Parcel object. + +## Supported Types + +### Str + +```csharp +LiveRateCreateRequestParcel.CreateStr(/* values here */); +``` + +### Parcel + +```csharp +LiveRateCreateRequestParcel.CreateParcel(/* values here */); +``` diff --git a/docs/Models/Components/Longitude.md b/docs/Models/Components/Longitude.md index 2f1b850..a2d45e6 100644 --- a/docs/Models/Components/Longitude.md +++ b/docs/Models/Components/Longitude.md @@ -1,2 +1,16 @@ # Longitude + +## Supported Types + +### Number + +```csharp +Longitude.CreateNumber(/* values here */); +``` + +### Str + +```csharp +Longitude.CreateStr(/* values here */); +``` diff --git a/docs/Models/Components/ManifestCreateRequestAddressFrom.md b/docs/Models/Components/ManifestCreateRequestAddressFrom.md index a03e3df..7ab08a9 100644 --- a/docs/Models/Components/ManifestCreateRequestAddressFrom.md +++ b/docs/Models/Components/ManifestCreateRequestAddressFrom.md @@ -1,2 +1,16 @@ # ManifestCreateRequestAddressFrom + +## Supported Types + +### AddressCreateRequest + +```csharp +ManifestCreateRequestAddressFrom.CreateAddressCreateRequest(/* values here */); +``` + +### Str + +```csharp +ManifestCreateRequestAddressFrom.CreateStr(/* values here */); +``` diff --git a/docs/Models/Components/Parameters.md b/docs/Models/Components/Parameters.md index d86a509..79c11de 100644 --- a/docs/Models/Components/Parameters.md +++ b/docs/Models/Components/Parameters.md @@ -1,2 +1,22 @@ # Parameters + +## Supported Types + +### MapOfAny + +```csharp +Parameters.CreateMapOfAny(/* values here */); +``` + +### FedExConnectExistingOwnAccountParameters + +```csharp +Parameters.CreateFedExConnectExistingOwnAccountParameters(/* values here */); +``` + +### UPSConnectExistingOwnAccountParameters + +```csharp +Parameters.CreateUPSConnectExistingOwnAccountParameters(/* values here */); +``` diff --git a/docs/Models/Components/AramexAustraliaParcelTemplate.md b/docs/Models/Components/ParcelTemplateAramexAustraliaEnum.md similarity index 95% rename from docs/Models/Components/AramexAustraliaParcelTemplate.md rename to docs/Models/Components/ParcelTemplateAramexAustraliaEnum.md index 193709c..5b69260 100644 --- a/docs/Models/Components/AramexAustraliaParcelTemplate.md +++ b/docs/Models/Components/ParcelTemplateAramexAustraliaEnum.md @@ -1,4 +1,4 @@ -# AramexAustraliaParcelTemplate +# ParcelTemplateAramexAustraliaEnum |Token | Name | Dimensions| |:---|:---|:---| diff --git a/docs/Models/Components/CouriersPleaseParcelTemplate.md b/docs/Models/Components/ParcelTemplateCouriersPleaseEnum.md similarity index 95% rename from docs/Models/Components/CouriersPleaseParcelTemplate.md rename to docs/Models/Components/ParcelTemplateCouriersPleaseEnum.md index 88a578d..0e860b5 100644 --- a/docs/Models/Components/CouriersPleaseParcelTemplate.md +++ b/docs/Models/Components/ParcelTemplateCouriersPleaseEnum.md @@ -1,4 +1,4 @@ -# CouriersPleaseParcelTemplate +# ParcelTemplateCouriersPleaseEnum |Token | Name | Dimensions| |:---|:---|:---| diff --git a/docs/Models/Components/DHLECommerceParcelTemplate.md b/docs/Models/Components/ParcelTemplateDHLeCommerceEnum.md similarity index 91% rename from docs/Models/Components/DHLECommerceParcelTemplate.md rename to docs/Models/Components/ParcelTemplateDHLeCommerceEnum.md index f9106a1..9dfb294 100644 --- a/docs/Models/Components/DHLECommerceParcelTemplate.md +++ b/docs/Models/Components/ParcelTemplateDHLeCommerceEnum.md @@ -1,4 +1,4 @@ -# DHLECommerceParcelTemplate +# ParcelTemplateDHLeCommerceEnum |Token | Name | Dimensions| |:---|:---|:---| diff --git a/docs/Models/Components/DPDUKParcelTemplate.md b/docs/Models/Components/ParcelTemplateDPDUKEnum.md similarity index 91% rename from docs/Models/Components/DPDUKParcelTemplate.md rename to docs/Models/Components/ParcelTemplateDPDUKEnum.md index e461b8d..a4d1054 100644 --- a/docs/Models/Components/DPDUKParcelTemplate.md +++ b/docs/Models/Components/ParcelTemplateDPDUKEnum.md @@ -1,4 +1,4 @@ -# DPDUKParcelTemplate +# ParcelTemplateDPDUKEnum |Token | Name | Dimensions| |:---|:---|:---| diff --git a/docs/Models/Components/ParcelTemplateEnumSet.md b/docs/Models/Components/ParcelTemplateEnumSet.md index 8931624..24375b6 100644 --- a/docs/Models/Components/ParcelTemplateEnumSet.md +++ b/docs/Models/Components/ParcelTemplateEnumSet.md @@ -2,3 +2,47 @@ If template is passed, `length`, `width`, `height`, and `distance_unit` are not required + +## Supported Types + +### ParcelTemplateFedExEnum + +```csharp +ParcelTemplateEnumSet.CreateParcelTemplateFedExEnum(/* values here */); +``` + +### ParcelTemplateUPSEnum + +```csharp +ParcelTemplateEnumSet.CreateParcelTemplateUPSEnum(/* values here */); +``` + +### ParcelTemplateUSPSEnum + +```csharp +ParcelTemplateEnumSet.CreateParcelTemplateUSPSEnum(/* values here */); +``` + +### ParcelTemplateDHLeCommerceEnum + +```csharp +ParcelTemplateEnumSet.CreateParcelTemplateDHLeCommerceEnum(/* values here */); +``` + +### ParcelTemplateDPDUKEnum + +```csharp +ParcelTemplateEnumSet.CreateParcelTemplateDPDUKEnum(/* values here */); +``` + +### ParcelTemplateCouriersPleaseEnum + +```csharp +ParcelTemplateEnumSet.CreateParcelTemplateCouriersPleaseEnum(/* values here */); +``` + +### ParcelTemplateAramexAustraliaEnum + +```csharp +ParcelTemplateEnumSet.CreateParcelTemplateAramexAustraliaEnum(/* values here */); +``` diff --git a/docs/Models/Components/FedExParcelTemplate.md b/docs/Models/Components/ParcelTemplateFedExEnum.md similarity index 98% rename from docs/Models/Components/FedExParcelTemplate.md rename to docs/Models/Components/ParcelTemplateFedExEnum.md index 37343c5..7fba55f 100644 --- a/docs/Models/Components/FedExParcelTemplate.md +++ b/docs/Models/Components/ParcelTemplateFedExEnum.md @@ -1,4 +1,4 @@ -# FedExParcelTemplate +# ParcelTemplateFedExEnum |Token | Name | Dimensions| |:---|:---|:---| diff --git a/docs/Models/Components/UPSParcelTemplate.md b/docs/Models/Components/ParcelTemplateUPSEnum.md similarity index 99% rename from docs/Models/Components/UPSParcelTemplate.md rename to docs/Models/Components/ParcelTemplateUPSEnum.md index 26b80e8..19263ce 100644 --- a/docs/Models/Components/UPSParcelTemplate.md +++ b/docs/Models/Components/ParcelTemplateUPSEnum.md @@ -1,4 +1,4 @@ -# UPSParcelTemplate +# ParcelTemplateUPSEnum |Token | Name | Dimensions| |:---|:---|:---| diff --git a/docs/Models/Components/USPSParcelTemplate.md b/docs/Models/Components/ParcelTemplateUSPSEnum.md similarity index 99% rename from docs/Models/Components/USPSParcelTemplate.md rename to docs/Models/Components/ParcelTemplateUSPSEnum.md index ef88d79..8cce38e 100644 --- a/docs/Models/Components/USPSParcelTemplate.md +++ b/docs/Models/Components/ParcelTemplateUSPSEnum.md @@ -1,4 +1,4 @@ -# USPSParcelTemplate +# ParcelTemplateUSPSEnum |Token | Name | Dimensions| |:---|:---|:---| diff --git a/docs/Models/Components/Parcels.md b/docs/Models/Components/Parcels.md index 868ad4b..5cdf983 100644 --- a/docs/Models/Components/Parcels.md +++ b/docs/Models/Components/Parcels.md @@ -1,2 +1,22 @@ # Parcels + +## Supported Types + +### ParcelCreateRequest + +```csharp +Parcels.CreateParcelCreateRequest(/* values here */); +``` + +### ParcelCreateFromTemplateRequest + +```csharp +Parcels.CreateParcelCreateFromTemplateRequest(/* values here */); +``` + +### Str + +```csharp +Parcels.CreateStr(/* values here */); +``` diff --git a/docs/Models/Components/ParentServicelevel.md b/docs/Models/Components/ParentServicelevel.md deleted file mode 100644 index b7014c0..0000000 --- a/docs/Models/Components/ParentServicelevel.md +++ /dev/null @@ -1,16 +0,0 @@ -# ParentServicelevel - -Used for some Service Levels to link to the more "generic" version of this Service Level - for example, -if this Service Level is a variation specific to shipments to Europe("ups_saver_eu"), the "parent" is -the fully generic version ("ups_saver"). Helpful when displaying Service Levels to users. Has the same -structure of the servicelevel - "name", "token", "terms", and "extended_token", or it is otherwise null. - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Name` | *string* | :heavy_minus_sign: | Name of the Rate's servicelevel, e.g. `International Priority` or `Standard Post`.
A servicelevel commonly defines the transit time of a Shipment (e.g., Express vs. Standard), along with other properties.
These names vary depending on the provider. | Priority Mail Express | -| `Terms` | *string* | :heavy_minus_sign: | Further clarification of the service. | | -| `Token` | *string* | :heavy_minus_sign: | Token of the Rate's servicelevel, e.g. `usps_priority` or `fedex_ground`.
See servicelevels. | usps_priority_express | -| `ExtendedToken` | *string* | :heavy_minus_sign: | Unique, extended version of the Service Level "token".
Guaranteed to be unique across all Service Levels, and may help offer insight into the specific Service Level it describes. | | \ No newline at end of file diff --git a/docs/Models/Components/ReturnServiceType.md b/docs/Models/Components/ReturnServiceType.md index 9ffb835..7bc2bf8 100644 --- a/docs/Models/Components/ReturnServiceType.md +++ b/docs/Models/Components/ReturnServiceType.md @@ -2,3 +2,17 @@ Request additional return option for return shipments (UPS and Lasership only). + +## Supported Types + +### ShipmentExtraReturnServiceTypeUPSEnum + +```csharp +ReturnServiceType.CreateShipmentExtraReturnServiceTypeUPSEnum(/* values here */); +``` + +### ShipmentExtraReturnServiceTypeLasershipEnum + +```csharp +ReturnServiceType.CreateShipmentExtraReturnServiceTypeLasershipEnum(/* values here */); +``` diff --git a/docs/Models/Components/ServiceLevel.md b/docs/Models/Components/ServiceLevel.md index c3edc48..40097ee 100644 --- a/docs/Models/Components/ServiceLevel.md +++ b/docs/Models/Components/ServiceLevel.md @@ -1,6 +1,9 @@ # ServiceLevel -Contains details regarding the service level for the given rate. +Used for some Service Levels to link to the more "generic" version of this Service Level - for example, +if this Service Level is a variation specific to shipments to Europe("ups_saver_eu"), the "parent" is +the fully generic version ("ups_saver"). Helpful when displaying Service Levels to users. Has the same +structure of the servicelevel - "name", "token", "terms", and "extended_token", or it is otherwise null. ## Fields diff --git a/docs/Models/Components/ServiceLevelEnumSet.md b/docs/Models/Components/ServiceLevelEnumSet.md index bf3915c..850e120 100644 --- a/docs/Models/Components/ServiceLevelEnumSet.md +++ b/docs/Models/Components/ServiceLevelEnumSet.md @@ -1,2 +1,238 @@ # ServiceLevelEnumSet + +## Supported Types + +### ServiceLevelUSPSEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelUSPSEnum(/* values here */); +``` + +### ServiceLevelFedExEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelFedExEnum(/* values here */); +``` + +### ServiceLevelUPSEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelUPSEnum(/* values here */); +``` + +### ServiceLevelAirterraEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelAirterraEnum(/* values here */); +``` + +### ServiceLevelAPCPostalEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelAPCPostalEnum(/* values here */); +``` + +### ServiceLevelAsendiaEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelAsendiaEnum(/* values here */); +``` + +### ServiceLevelAustraliaPostEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelAustraliaPostEnum(/* values here */); +``` + +### ServiceLevelAPGEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelAPGEnum(/* values here */); +``` + +### ServiceLevelBetterTrucksEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelBetterTrucksEnum(/* values here */); +``` + +### ServiceLevelCanadaPostEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelCanadaPostEnum(/* values here */); +``` + +### ServiceLevelCDLEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelCDLEnum(/* values here */); +``` + +### ServiceLevelChronopostEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelChronopostEnum(/* values here */); +``` + +### ServiceLevelCouriersPleaseEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelCouriersPleaseEnum(/* values here */); +``` + +### ServiceLevelCorreosEspanaEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelCorreosEspanaEnum(/* values here */); +``` + +### ServiceLevelColissimoEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelColissimoEnum(/* values here */); +``` + +### ServiceLevelPurolatorEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelPurolatorEnum(/* values here */); +``` + +### ServiceLevelDHLExpressEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelDHLExpressEnum(/* values here */); +``` + +### ServiceLevelDHLeCommerceEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelDHLeCommerceEnum(/* values here */); +``` + +### ServiceLevelDHLGermanyEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelDHLGermanyEnum(/* values here */); +``` + +### ServiceLevelDPDDEEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelDPDDEEnum(/* values here */); +``` + +### ServiceLevelDPDUKEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelDPDUKEnum(/* values here */); +``` + +### ServiceLevelDeutschePostEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelDeutschePostEnum(/* values here */); +``` + +### ServiceLevelAramexAustraliaEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelAramexAustraliaEnum(/* values here */); +``` + +### ServiceLevelGlobegisticsEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelGlobegisticsEnum(/* values here */); +``` + +### ServiceLevelGLSUSEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelGLSUSEnum(/* values here */); +``` + +### ServiceLevelLSOEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelLSOEnum(/* values here */); +``` + +### ServiceLevelMondialRelayEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelMondialRelayEnum(/* values here */); +``` + +### ServiceLevelParcelforceEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelParcelforceEnum(/* values here */); +``` + +### ServiceLevelPostItalianeEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelPostItalianeEnum(/* values here */); +``` + +### ServiceLevelePostGlobalEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelePostGlobalEnum(/* values here */); +``` + +### ServiceLevelRoyalMailEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelRoyalMailEnum(/* values here */); +``` + +### ServiceLevelSendleEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelSendleEnum(/* values here */); +``` + +### ServiceLevelOnTracEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelOnTracEnum(/* values here */); +``` + +### ServiceLevelJitsuEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelJitsuEnum(/* values here */); +``` + +### ServiceLevelLasershipEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelLasershipEnum(/* values here */); +``` + +### ServiceLevelEvriUKEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelEvriUKEnum(/* values here */); +``` + +### ServiceLevelUDSEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelUDSEnum(/* values here */); +``` + +### ServiceLevelVehoEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelVehoEnum(/* values here */); +``` + +### ServiceLevelSwyftEnum + +```csharp +ServiceLevelEnumSet.CreateServiceLevelSwyftEnum(/* values here */); +``` diff --git a/docs/Models/Components/ServiceLevelMaergoEnum.md b/docs/Models/Components/ServiceLevelMaergoEnum.md deleted file mode 100644 index 132fedb..0000000 --- a/docs/Models/Components/ServiceLevelMaergoEnum.md +++ /dev/null @@ -1,13 +0,0 @@ -# ServiceLevelMaergoEnum - -|Token | Service name| -|:---|:---| -| x_delivery_expedited | Expedited| - - - -## Values - -| Name | Value | -| -------------------- | -------------------- | -| `XDeliveryExpedited` | x_delivery_expedited | \ No newline at end of file diff --git a/docs/Models/Components/ServiceLevelWithParent.md b/docs/Models/Components/ServiceLevelWithParent.md index f0d5256..09a5f46 100644 --- a/docs/Models/Components/ServiceLevelWithParent.md +++ b/docs/Models/Components/ServiceLevelWithParent.md @@ -11,4 +11,4 @@ Contains details regarding the service level for the given rate. | `Terms` | *string* | :heavy_minus_sign: | Further clarification of the service. | | | `Token` | *string* | :heavy_minus_sign: | Token of the Rate's servicelevel, e.g. `usps_priority` or `fedex_ground`.
See servicelevels. | usps_priority_express | | `ExtendedToken` | *string* | :heavy_minus_sign: | Unique, extended version of the Service Level "token".
Guaranteed to be unique across all Service Levels, and may help offer insight into the specific Service Level it describes. | | -| `ParentServicelevel` | [ParentServicelevel](../../Models/Components/ParentServicelevel.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `ParentServicelevel` | [ServiceLevel](../../Models/Components/ServiceLevel.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Components/ShipmentCreateRequestCustomsDeclaration.md b/docs/Models/Components/ShipmentCreateRequestCustomsDeclaration.md index 224f2d8..2f71aab 100644 --- a/docs/Models/Components/ShipmentCreateRequestCustomsDeclaration.md +++ b/docs/Models/Components/ShipmentCreateRequestCustomsDeclaration.md @@ -1,2 +1,16 @@ # ShipmentCreateRequestCustomsDeclaration + +## Supported Types + +### CustomsDeclarationCreateRequest + +```csharp +ShipmentCreateRequestCustomsDeclaration.CreateCustomsDeclarationCreateRequest(/* values here */); +``` + +### Str + +```csharp +ShipmentCreateRequestCustomsDeclaration.CreateStr(/* values here */); +``` diff --git a/docs/Models/Components/TransactionRate.md b/docs/Models/Components/TransactionRate.md index 590af4a..e691ccc 100644 --- a/docs/Models/Components/TransactionRate.md +++ b/docs/Models/Components/TransactionRate.md @@ -5,3 +5,17 @@ If you purchase a label by calling the transaction endpoint without a rate (inst this field will be a simplified Rate object in the Transaction model returned from the POST request.
Note, only rates less than 7 days old can be purchased to ensure up-to-date pricing. + +## Supported Types + +### CoreRate + +```csharp +TransactionRate.CreateCoreRate(/* values here */); +``` + +### Str + +```csharp +TransactionRate.CreateStr(/* values here */); +``` diff --git a/docs/Models/Components/UserParcelTemplateCreateRequest.md b/docs/Models/Components/UserParcelTemplateCreateRequest.md index 1e127a1..444685a 100644 --- a/docs/Models/Components/UserParcelTemplateCreateRequest.md +++ b/docs/Models/Components/UserParcelTemplateCreateRequest.md @@ -1,2 +1,16 @@ # UserParcelTemplateCreateRequest + +## Supported Types + +### UserParcelTemplateWithCarrierTemplateCreateRequest + +```csharp +UserParcelTemplateCreateRequest.CreateUserParcelTemplateWithCarrierTemplateCreateRequest(/* values here */); +``` + +### UserParcelTemplateWithoutCarrierTemplateCreateRequest + +```csharp +UserParcelTemplateCreateRequest.CreateUserParcelTemplateWithoutCarrierTemplateCreateRequest(/* values here */); +``` diff --git a/docs/Models/Components/WebhookPayload.md b/docs/Models/Components/WebhookPayload.md index 11f3020..33b48a3 100644 --- a/docs/Models/Components/WebhookPayload.md +++ b/docs/Models/Components/WebhookPayload.md @@ -1,2 +1,34 @@ # WebhookPayload + +## Supported Types + +### TrackUpdated + +```csharp +WebhookPayload.CreateTrackUpdated(/* values here */); +``` + +### BatchCreated + +```csharp +WebhookPayload.CreateBatchCreated(/* values here */); +``` + +### BatchPurchased + +```csharp +WebhookPayload.CreateBatchPurchased(/* values here */); +``` + +### TransactionCreated + +```csharp +WebhookPayload.CreateTransactionCreated(/* values here */); +``` + +### TransactionUpdated + +```csharp +WebhookPayload.CreateTransactionUpdated(/* values here */); +``` diff --git a/docs/Models/Components/WebhookPayloadWebhookPayloadBatch.md b/docs/Models/Components/WebhookPayloadWebhookPayloadBatch.md deleted file mode 100644 index 288ec2a..0000000 --- a/docs/Models/Components/WebhookPayloadWebhookPayloadBatch.md +++ /dev/null @@ -1,12 +0,0 @@ -# WebhookPayloadWebhookPayloadBatch - -Content of the webhook posted to the external URL - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `Event` | [WebhookEventTypeEnum](../../Models/Components/WebhookEventTypeEnum.md) | :heavy_minus_sign: | Type of event that triggered the webhook. | -| `Test` | *bool* | :heavy_minus_sign: | Determines whether the webhook is a test webhook or not. | -| `Data` | *string* | :heavy_minus_sign: | A string containing the batch object ID, of the form 'batch {batchId} (created\|processing complete)'. | \ No newline at end of file diff --git a/docs/Models/Components/WebhookPayloadWebhookPayloadTrack.md b/docs/Models/Components/WebhookPayloadWebhookPayloadTrack.md deleted file mode 100644 index 16ca5a9..0000000 --- a/docs/Models/Components/WebhookPayloadWebhookPayloadTrack.md +++ /dev/null @@ -1,12 +0,0 @@ -# WebhookPayloadWebhookPayloadTrack - -Content of the webhook posted to the external URL - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `Event` | [WebhookEventTypeEnum](../../Models/Components/WebhookEventTypeEnum.md) | :heavy_minus_sign: | Type of event that triggered the webhook. | -| `Test` | *bool* | :heavy_minus_sign: | Determines whether the webhook is a test webhook or not. | -| `Data` | [Track](../../Models/Components/Track.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/WebhookPayloadWebhookPayloadTransaction.md b/docs/Models/Components/WebhookPayloadWebhookPayloadTransaction.md deleted file mode 100644 index 3f561fd..0000000 --- a/docs/Models/Components/WebhookPayloadWebhookPayloadTransaction.md +++ /dev/null @@ -1,12 +0,0 @@ -# WebhookPayloadWebhookPayloadTransaction - -Content of the webhook posted to the external URL - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `Event` | [WebhookEventTypeEnum](../../Models/Components/WebhookEventTypeEnum.md) | :heavy_minus_sign: | Type of event that triggered the webhook. | -| `Test` | *bool* | :heavy_minus_sign: | Determines whether the webhook is a test webhook or not. | -| `Data` | [Transaction](../../Models/Components/Transaction.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Requests/CreateParcelRequestBody.md b/docs/Models/Requests/CreateParcelRequestBody.md index 85b1f9d..96aba87 100644 --- a/docs/Models/Requests/CreateParcelRequestBody.md +++ b/docs/Models/Requests/CreateParcelRequestBody.md @@ -2,3 +2,17 @@ Parcel details. + +## Supported Types + +### ParcelCreateRequest + +```csharp +CreateParcelRequestBody.CreateParcelCreateRequest(/* values here */); +``` + +### ParcelCreateFromTemplateRequest + +```csharp +CreateParcelRequestBody.CreateParcelCreateFromTemplateRequest(/* values here */); +``` diff --git a/docs/Models/Requests/CreateTransactionRequestBody.md b/docs/Models/Requests/CreateTransactionRequestBody.md index 188d4bb..9d439d1 100644 --- a/docs/Models/Requests/CreateTransactionRequestBody.md +++ b/docs/Models/Requests/CreateTransactionRequestBody.md @@ -2,3 +2,17 @@ Examples. + +## Supported Types + +### TransactionCreateRequest + +```csharp +CreateTransactionRequestBody.CreateTransactionCreateRequest(/* values here */); +``` + +### InstantTransactionCreateRequest + +```csharp +CreateTransactionRequestBody.CreateInstantTransactionCreateRequest(/* values here */); +``` diff --git a/docs/Models/Requests/RegisterCarrierAccountRequestBody.md b/docs/Models/Requests/RegisterCarrierAccountRequestBody.md index 3e3a8a2..cf3c048 100644 --- a/docs/Models/Requests/RegisterCarrierAccountRequestBody.md +++ b/docs/Models/Requests/RegisterCarrierAccountRequestBody.md @@ -2,3 +2,95 @@ Examples. + +## Supported Types + +### CarrierAccountCanadaPostCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountCanadaPostCreateRequest(/* values here */); +``` + +### CarrierAccountChronopostCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountChronopostCreateRequest(/* values here */); +``` + +### CarrierAccountColissimoCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountColissimoCreateRequest(/* values here */); +``` + +### CarrierAccountCorreosCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountCorreosCreateRequest(/* values here */); +``` + +### CarrierAccountDeutschePostCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountDeutschePostCreateRequest(/* values here */); +``` + +### CarrierAccountDHLExpressCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountDHLExpressCreateRequest(/* values here */); +``` + +### CarrierAccountDpdDeCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountDpdDeCreateRequest(/* values here */); +``` + +### CarrierAccountDPDUKCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountDPDUKCreateRequest(/* values here */); +``` + +### CarrierAccountFedExCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountFedExCreateRequest(/* values here */); +``` + +### CarrierAccountHermesUKCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountHermesUKCreateRequest(/* values here */); +``` + +### CarrierAccountMondialRelayCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountMondialRelayCreateRequest(/* values here */); +``` + +### CarrierAccountPosteItalianeCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountPosteItalianeCreateRequest(/* values here */); +``` + +### CarrierAccountUPSCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountUPSCreateRequest(/* values here */); +``` + +### CarrierAccountUSPSCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountUSPSCreateRequest(/* values here */); +``` + +### CarrierAccountSendleCreateRequest + +```csharp +RegisterCarrierAccountRequestBody.CreateCarrierAccountSendleCreateRequest(/* values here */); +``` diff --git a/docs/sdks/addresses/README.md b/docs/sdks/addresses/README.md index 85f4a55..316a787 100644 --- a/docs/sdks/addresses/README.md +++ b/docs/sdks/addresses/README.md @@ -21,17 +21,19 @@ Returns a list of all address objects that have been created in this account. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Addresses.ListAsync( page: 1, results: 5, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -44,16 +46,17 @@ var res = await sdk.Addresses.ListAsync( | `Results` | *long* | :heavy_minus_sign: | The number of results to return per page (max 100, default 5) | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[AddressPaginatedList](../../Models/Components/AddressPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a new address object. You can use address objects to create new shipments, calculate rates, and to create orders. @@ -62,31 +65,33 @@ Creates a new address object. You can use address objects to create new shipment ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Addresses.CreateAsync( 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, -}, - shippoApiVersion: "2018-02-08"); + 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, + }, + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -98,16 +103,17 @@ var res = await sdk.Addresses.CreateAsync( | `AddressCreateRequest` | [AddressCreateRequest](../../Models/Components/AddressCreateRequest.md) | :heavy_check_mark: | Address details. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Address](../../Models/Components/Address.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns an existing address using an object ID. @@ -116,16 +122,18 @@ Returns an existing address using an object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Addresses.GetAsync( addressId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -137,16 +145,17 @@ var res = await sdk.Addresses.GetAsync( | `AddressId` | *string* | :heavy_check_mark: | Object ID of the address | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Address](../../Models/Components/Address.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Validate Validates an existing address using an object ID @@ -155,16 +164,18 @@ Validates an existing address using an object ID ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Addresses.ValidateAsync( addressId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -176,10 +187,10 @@ var res = await sdk.Addresses.ValidateAsync( | `AddressId` | *string* | :heavy_check_mark: | Object ID of the address | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Address](../../Models/Components/Address.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/batches/README.md b/docs/sdks/batches/README.md index c7f8208..2d27c81 100644 --- a/docs/sdks/batches/README.md +++ b/docs/sdks/batches/README.md @@ -30,130 +30,131 @@ Creates a new batch object for purchasing shipping labels for many shipments at ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Batches.CreateAsync( batchCreateRequest: new BatchCreateRequest() { - DefaultCarrierAccount = "078870331023437cb917f5187429b093", - DefaultServicelevelToken = "usps_priority", - LabelFiletype = LabelFileTypeEnum.Pdf4x6, - Metadata = "BATCH #1", - BatchShipments = new List() { - new BatchShipmentCreateRequest() { - CarrierAccount = "a4391cd4ab974f478f55dc08b5c8e3b3", - Metadata = "SHIPMENT #1", - ServicelevelToken = "fedex_ground", - Shipment = new ShipmentCreateRequest() { - Extra = new ShipmentExtra() { - AccountsReceivableCustomerAccount = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - AppropriationNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - BillOfLadingNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - Cod = new Cod() { - Amount = "5.5", - Currency = "USD", - PaymentMethod = PaymentMethod.Cash, - }, - CodNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - CustomerReference = new CustomerReference() { - RefSort = 1, - }, - DealerOrderNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - DeptNumber = new DepartmentNumber() { - RefSort = 3, - }, - FdaProductCode = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - Insurance = new Insurance() { - Amount = "5.5", - Currency = "USD", - }, - InvoiceNumber = new InvoiceNumber() { - RefSort = 2, - }, - ManifestNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - ModelNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - PartNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - PoNumber = new PoNumber() { - RefSort = 2, - }, - ProductionCode = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - PurchaseRequestNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - RmaNumber = new RmaNumber() { - RefSort = 1, - }, - SalespersonNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - SerialNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - StoreNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - TransactionReferenceNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, + DefaultCarrierAccount = "078870331023437cb917f5187429b093", + DefaultServicelevelToken = "usps_priority", + LabelFiletype = Shippo.Models.Components.LabelFileTypeEnum.Pdf4x6, + Metadata = "BATCH #1", + BatchShipments = new List() { + new BatchShipmentCreateRequest() { + CarrierAccount = "a4391cd4ab974f478f55dc08b5c8e3b3", + Metadata = "SHIPMENT #1", + ServicelevelToken = "fedex_ground", + Shipment = new ShipmentCreateRequest() { + Extra = new ShipmentExtra() { + AccountsReceivableCustomerAccount = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + AppropriationNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + BillOfLadingNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + Cod = new Cod() { + Amount = "5.5", + Currency = "USD", + PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + }, + CodNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + CustomerReference = new CustomerReference() { + RefSort = 1, + }, + DealerOrderNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + DeptNumber = new DepartmentNumber() { + RefSort = 3, + }, + FdaProductCode = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + Insurance = new Insurance() { + Amount = "5.5", + Currency = "USD", + }, + InvoiceNumber = new InvoiceNumber() { + RefSort = 2, + }, + ManifestNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + ModelNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + PartNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + PoNumber = new PoNumber() { + RefSort = 2, + }, + ProductionCode = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + PurchaseRequestNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + RmaNumber = new RmaNumber() { + RefSort = 1, + }, + SalespersonNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + SerialNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + StoreNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + TransactionReferenceNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, }, - }, - Metadata = "Customer ID 123456", - ShipmentDate = "2021-03-22T12:00:00Z", - AddressFrom = AddressFrom.CreateAddressFromAddressCreateRequest( + Metadata = "Customer ID 123456", + ShipmentDate = "2021-03-22T12:00:00Z", + AddressFrom = AddressFrom.CreateAddressCreateRequest( new AddressCreateRequest() { Name = "Shwan Ippotle", Company = "Shippo", @@ -169,9 +170,12 @@ var res = await sdk.Batches.CreateAsync( IsResidential = true, Metadata = "Customer ID 123456", Validate = true, - }, - ), - AddressReturn = AddressReturn.CreateAddressReturnAddressCreateRequest( + } + ), + AddressReturn = AddressReturn.CreateStr( + "d799c2679e644279b59fe661ac8fa488" + ), + AddressTo = AddressTo.CreateAddressCreateRequest( new AddressCreateRequest() { Name = "Shwan Ippotle", Company = "Shippo", @@ -187,48 +191,103 @@ var res = await sdk.Batches.CreateAsync( IsResidential = true, Metadata = "Customer ID 123456", Validate = true, - }, - ), - AddressTo = AddressTo.CreateAddressToStr( - "d799c2679e644279b59fe661ac8fa489", - ), - CustomsDeclaration = ShipmentCreateRequestCustomsDeclaration.CreateShipmentCreateRequestCustomsDeclarationStr( - "adcfdddf8ec64b84ad22772bce3ea37a", - ), - CarrierAccounts = new List() { - "065a4a8c10d24a34ab932163a1b87f52", - "73f706f4bdb94b54a337563840ce52b0", - }, - Parcels = new List() { - Parcels.CreateParcelsParcelCreateFromTemplateRequest( - new ParcelCreateFromTemplateRequest() { - Extra = new ParcelExtra() { - Cod = new Cod() { - Amount = "5.5", - Currency = "USD", - PaymentMethod = PaymentMethod.Cash, + } + ), + CustomsDeclaration = ShipmentCreateRequestCustomsDeclaration.CreateCustomsDeclarationCreateRequest( + new CustomsDeclarationCreateRequest() { + B13aFilingOption = Shippo.Models.Components.CustomsDeclarationB13AFilingOptionEnum.FiledElectronically, + Certify = true, + CertifySigner = "Shawn Ippotle", + ContentsExplanation = "T-Shirt purchase", + DutiesPayor = new DutiesPayor() { + Account = "2323434543", + Type = Shippo.Models.Components.CustomsDeclarationCreateRequestType.ThirdParty, + Address = new CustomsDeclarationCreateRequestAddress() { + Name = "Patrick Kavanagh", + Zip = "80331", + Country = "DE", }, - Insurance = new ParcelInsurance() { - Amount = "5.5", - Content = "Laptop", - Currency = "USD", - Provider = ParcelInsuranceProvider.Ups, + }, + ExporterIdentification = new CustomsExporterIdentification() { + EoriNumber = "PL123456790ABCDE", + TaxId = new CustomsTaxIdentification() { + Number = "123456789", + Type = Shippo.Models.Components.CustomsTaxIdentificationType.Ein, }, }, - Metadata = "Customer ID 123456", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, - Weight = "1", - Template = ParcelTemplateEnumSet.CreateParcelTemplateEnumSetUSPSParcelTemplate( - Shippo.Models.Components.USPSParcelTemplate.USPSFlatRateGiftCardEnvelope, - ), - }, + Invoice = "#123123", + Metadata = "Order ID #123123", + AddressImporter = new AddressImporter() { + Name = "Shwan Ippotle", + Company = "Shippo", + Street1 = "Blumenstraße", + Street3 = "", + StreetNo = "22", + City = "München", + State = "CA", + Zip = "80331", + Country = "DE", + Phone = "80331", + Email = "shippotle@shippo.com", + IsResidential = true, + }, + ContentsType = Shippo.Models.Components.CustomsDeclarationContentsTypeEnum.Merchandise, + EelPfc = Shippo.Models.Components.CustomsDeclarationEelPfcEnum.Noeei3037A, + Incoterm = Shippo.Models.Components.CustomsDeclarationIncotermEnum.Ddp, + Items = new List() { + new CustomsItemCreateRequest() { + Description = "T-Shirt", + MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + Metadata = "Order ID \"123454\"", + NetWeight = "5", + OriginCountry = "", + Quantity = 20, + SkuCode = "HM-123", + HsCode = "0901.21", + ValueAmount = "200", + ValueCurrency = "USD", + }, + }, + NonDeliveryOption = Shippo.Models.Components.CustomsDeclarationNonDeliveryOptionEnum.Return, + Test = true, + } ), + CarrierAccounts = new List() { + "065a4a8c10d24a34ab932163a1b87f52", + "73f706f4bdb94b54a337563840ce52b0", + }, + Parcels = new List() { + Parcels.CreateParcelCreateRequest( + new ParcelCreateRequest() { + Extra = new ParcelExtra() { + Cod = new Cod() { + Amount = "5.5", + Currency = "USD", + PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + }, + Insurance = new ParcelInsurance() { + Amount = "5.5", + Content = "Laptop", + Currency = "USD", + Provider = Shippo.Models.Components.ParcelInsuranceProvider.Ups, + }, + }, + Metadata = "Customer ID 123456", + MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + Weight = "1", + DistanceUnit = Shippo.Models.Components.DistanceUnitEnum.In, + Height = "1", + Length = "1", + Width = "1", + } + ), + }, }, }, }, }, -}, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -240,16 +299,17 @@ var res = await sdk.Batches.CreateAsync( | `BatchCreateRequest` | [BatchCreateRequest](../../Models/Components/BatchCreateRequest.md) | :heavy_check_mark: | Batch details. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Batch](../../Models/Components/Batch.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns a batch using an object ID.
Batch shipments are displayed 100 at a time. You can iterate @@ -261,16 +321,18 @@ For more details on filtering results, see our guide on ", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Batches.GetAsync( batchId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -282,16 +344,17 @@ var res = await sdk.Batches.GetAsync( | `BatchId` | *string* | :heavy_check_mark: | Object ID of the batch | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Batch](../../Models/Components/Batch.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## AddShipments Adds batch shipments to an existing batch. @@ -300,132 +363,130 @@ Adds batch shipments to an existing batch. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; using System.Collections.Generic; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Batches.AddShipmentsAsync( batchId: "", requestBody: new List() { - new BatchShipmentCreateRequest() { - CarrierAccount = "a4391cd4ab974f478f55dc08b5c8e3b3", - Metadata = "SHIPMENT #1", - ServicelevelToken = "fedex_ground", - Shipment = new ShipmentCreateRequest() { - Extra = new ShipmentExtra() { - AccountsReceivableCustomerAccount = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - AppropriationNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - BillOfLadingNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - Cod = new Cod() { - Amount = "5.5", - Currency = "USD", - PaymentMethod = PaymentMethod.Cash, - }, - CodNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - CustomerReference = new CustomerReference() { - RefSort = 1, - }, - DealerOrderNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - DeptNumber = new DepartmentNumber() { - RefSort = 3, - }, - FdaProductCode = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - Insurance = new Insurance() { - Amount = "5.5", - Currency = "USD", - }, - InvoiceNumber = new InvoiceNumber() { - RefSort = 2, - }, - ManifestNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - ModelNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - PartNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - PoNumber = new PoNumber() { - RefSort = 2, - }, - ProductionCode = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - PurchaseRequestNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - RmaNumber = new RmaNumber() { - RefSort = 1, - }, - SalespersonNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - SerialNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - StoreNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - TransactionReferenceNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, + new BatchShipmentCreateRequest() { + CarrierAccount = "a4391cd4ab974f478f55dc08b5c8e3b3", + Metadata = "SHIPMENT #1", + ServicelevelToken = "fedex_ground", + Shipment = new ShipmentCreateRequest() { + Extra = new ShipmentExtra() { + AccountsReceivableCustomerAccount = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + AppropriationNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + BillOfLadingNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + Cod = new Cod() { + Amount = "5.5", + Currency = "USD", + PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + }, + CodNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + CustomerReference = new CustomerReference() { + RefSort = 1, + }, + DealerOrderNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + DeptNumber = new DepartmentNumber() { + RefSort = 3, + }, + FdaProductCode = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + Insurance = new Insurance() { + Amount = "5.5", + Currency = "USD", + }, + InvoiceNumber = new InvoiceNumber() { + RefSort = 2, + }, + ManifestNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + ModelNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + PartNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + PoNumber = new PoNumber() { + RefSort = 2, + }, + ProductionCode = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + PurchaseRequestNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + RmaNumber = new RmaNumber() { + RefSort = 1, + }, + SalespersonNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + SerialNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + StoreNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + TransactionReferenceNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, }, - }, - Metadata = "Customer ID 123456", - ShipmentDate = "2021-03-22T12:00:00Z", - AddressFrom = AddressFrom.CreateAddressFromStr( - "d799c2679e644279b59fe661ac8fa488", - ), - AddressReturn = AddressReturn.CreateAddressReturnStr( - "d799c2679e644279b59fe661ac8fa488", - ), - AddressTo = AddressTo.CreateAddressToAddressCreateRequest( + Metadata = "Customer ID 123456", + ShipmentDate = "2021-03-22T12:00:00Z", + AddressFrom = AddressFrom.CreateStr( + "d799c2679e644279b59fe661ac8fa488" + ), + AddressReturn = AddressReturn.CreateAddressCreateRequest( new AddressCreateRequest() { Name = "Shwan Ippotle", Company = "Shippo", @@ -441,45 +502,43 @@ var res = await sdk.Batches.AddShipmentsAsync( IsResidential = true, Metadata = "Customer ID 123456", Validate = true, - }, - ), - CustomsDeclaration = ShipmentCreateRequestCustomsDeclaration.CreateShipmentCreateRequestCustomsDeclarationStr( - "adcfdddf8ec64b84ad22772bce3ea37a", - ), - CarrierAccounts = new List() { - "065a4a8c10d24a34ab932163a1b87f52", - "73f706f4bdb94b54a337563840ce52b0", - }, - Parcels = new List() { - Parcels.CreateParcelsParcelCreateRequest( - new ParcelCreateRequest() { - Extra = new ParcelExtra() { - Cod = new Cod() { - Amount = "5.5", - Currency = "USD", - PaymentMethod = PaymentMethod.Cash, - }, - Insurance = new ParcelInsurance() { - Amount = "5.5", - Content = "Laptop", - Currency = "USD", - Provider = ParcelInsuranceProvider.Ups, - }, - }, + } + ), + AddressTo = AddressTo.CreateAddressCreateRequest( + 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", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, - Weight = "1", - DistanceUnit = Shippo.Models.Components.DistanceUnitEnum.In, - Height = "1", - Length = "1", - Width = "1", - }, + Validate = true, + } + ), + CustomsDeclaration = ShipmentCreateRequestCustomsDeclaration.CreateStr( + "adcfdddf8ec64b84ad22772bce3ea37a" ), + CarrierAccounts = new List() { + "065a4a8c10d24a34ab932163a1b87f52", + "73f706f4bdb94b54a337563840ce52b0", + }, + Parcels = new List() { + Parcels.CreateStr( + "" + ), + }, }, }, }, -}, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -492,16 +551,17 @@ var res = await sdk.Batches.AddShipmentsAsync( | `RequestBody` | List<[BatchShipmentCreateRequest](../../Models/Components/BatchShipmentCreateRequest.md)> | :heavy_check_mark: | Array of shipments to add to the batch | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Batch](../../Models/Components/Batch.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Purchase Purchases an existing batch with a status of `VALID`. @@ -513,16 +573,18 @@ When all the shipments are purchased, the status will change to `PURCHASED` and ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Batches.PurchaseAsync( batchId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -534,16 +596,17 @@ var res = await sdk.Batches.PurchaseAsync( | `BatchId` | *string* | :heavy_check_mark: | Object ID of the batch | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Batch](../../Models/Components/Batch.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## RemoveShipments Removes shipments from an existing batch shipment. @@ -552,20 +615,22 @@ Removes shipments from an existing batch shipment. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; using System.Collections.Generic; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Batches.RemoveShipmentsAsync( batchId: "", requestBody: new List() { - "", -}, - shippoApiVersion: "2018-02-08"); + "", + }, + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -578,10 +643,10 @@ var res = await sdk.Batches.RemoveShipmentsAsync( | `RequestBody` | List<*string*> | :heavy_check_mark: | Array of shipments object ids to remove from the batch | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Batch](../../Models/Components/Batch.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/carrieraccounts/README.md b/docs/sdks/carrieraccounts/README.md index b080957..820939d 100644 --- a/docs/sdks/carrieraccounts/README.md +++ b/docs/sdks/carrieraccounts/README.md @@ -29,12 +29,13 @@ By default, if the query parameter is omitted, the `service_levels` property wil ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); ListCarrierAccountsRequest req = new ListCarrierAccountsRequest() {}; @@ -49,16 +50,17 @@ var res = await sdk.CarrierAccounts.ListAsync(req); | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [ListCarrierAccountsRequest](../../Models/Requests/ListCarrierAccountsRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[CarrierAccountPaginatedList](../../Models/Components/CarrierAccountPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a new carrier account or connects an existing carrier account to the Shippo account. @@ -67,33 +69,36 @@ Creates a new carrier account or connects an existing carrier account to the Shi ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; +using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CarrierAccounts.CreateAsync( connectExistingOwnAccountRequest: new ConnectExistingOwnAccountRequest() { - AccountId = "321123", - Carrier = "fedex", - Metadata = "FEDEX Account", - Parameters = ConnectExistingOwnAccountRequestParameters.CreateConnectExistingOwnAccountRequestParametersFedExConnectExistingOwnAccountParameters( + AccountId = "321123", + Carrier = "fedex", + Metadata = "FEDEX Account", + Parameters = ConnectExistingOwnAccountRequestParameters.CreateFedExConnectExistingOwnAccountParameters( new FedExConnectExistingOwnAccountParameters() { - FirstName = "Jena", - LastName = "Nienow", - PhoneNumber = "", + FirstName = "Loyal", + LastName = "Collier", + PhoneNumber = "(890) 307-8579", FromAddressSt = "", FromAddressCity = "", FromAddressState = "", FromAddressZip = "", FromAddressCountryIso2 = "", - }, - ), - Test = false, -}, - shippoApiVersion: "2018-02-08"); + } + ), + Test = false, + }, + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -105,16 +110,17 @@ var res = await sdk.CarrierAccounts.CreateAsync( | `ConnectExistingOwnAccountRequest` | [ConnectExistingOwnAccountRequest](../../Models/Components/ConnectExistingOwnAccountRequest.md) | :heavy_check_mark: | Examples. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CarrierAccount](../../Models/Components/CarrierAccount.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns an existing carrier account using an object ID. @@ -123,16 +129,18 @@ Returns an existing carrier account using an object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CarrierAccounts.GetAsync( carrierAccountId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -144,16 +152,17 @@ var res = await sdk.CarrierAccounts.GetAsync( | `CarrierAccountId` | *string* | :heavy_check_mark: | Object ID of the carrier account | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CarrierAccount](../../Models/Components/CarrierAccount.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Update Updates an existing carrier account object. The account_id and carrier can't be updated. This is because they form the unique identifier together. @@ -162,20 +171,22 @@ Updates an existing carrier account object. The account_id and carrier can't be ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; +using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CarrierAccounts.UpdateAsync( carrierAccountId: "", shippoApiVersion: "2018-02-08", carrierAccountBase: new CarrierAccountBase() { - AccountId = "****", - Carrier = "usps", - Parameters = CarrierAccountBaseParameters.CreateCarrierAccountBaseParametersUPSConnectExistingOwnAccountParameters( + AccountId = "****", + Carrier = "usps", + Parameters = CarrierAccountBaseParameters.CreateUPSConnectExistingOwnAccountParameters( new UPSConnectExistingOwnAccountParameters() { AccountNumber = "94567e", AiaCountryIso2 = "US", @@ -199,9 +210,10 @@ var res = await sdk.CarrierAccounts.UpdateAsync( Phone = "1112223333", Title = "Manager", UpsAgreements = false, - }, - ), -}); + } + ), + } +); // handle response ``` @@ -214,16 +226,17 @@ var res = await sdk.CarrierAccounts.UpdateAsync( | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | | `CarrierAccountBase` | [CarrierAccountBase](../../Models/Components/CarrierAccountBase.md) | :heavy_minus_sign: | Examples. | | - ### Response **[CarrierAccount](../../Models/Components/CarrierAccount.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## InitiateOauth2Signin Used by client applications to setup or reconnect an existing carrier account with carriers that support OAuth 2.0 @@ -232,16 +245,17 @@ Used by client applications to setup or reconnect an existing carrier account wi ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); InitiateOauth2SigninRequest req = new InitiateOauth2SigninRequest() { CarrierAccountObjectId = "", - RedirectUri = "http://fine-cummerbund.biz", + RedirectUri = "https://enlightened-mortise.com/", }; var res = await sdk.CarrierAccounts.InitiateOauth2SigninAsync(req); @@ -255,10 +269,10 @@ var res = await sdk.CarrierAccounts.InitiateOauth2SigninAsync(req); | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | `request` | [InitiateOauth2SigninRequest](../../Models/Requests/InitiateOauth2SigninRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[InitiateOauth2SigninResponse](../../Models/Requests/InitiateOauth2SigninResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -268,6 +282,7 @@ var res = await sdk.CarrierAccounts.InitiateOauth2SigninAsync(req); | Shippo.Models.Errors.InitiateOauth2SigninCarrierAccountsResponseResponseBody | 404 | application/json | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Register Adds a Shippo carrier account @@ -276,21 +291,23 @@ Adds a Shippo carrier account ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CarrierAccounts.RegisterAsync( - requestBody: RegisterCarrierAccountRequestBody.CreateRegisterCarrierAccountRequestBodyCarrierAccountColissimoCreateRequest( - new CarrierAccountColissimoCreateRequest() { - Carrier = "colissimo", - Parameters = new CarrierAccountColissimoCreateRequestParameters() {}, - }, -), - shippoApiVersion: "2018-02-08"); + requestBody: RegisterCarrierAccountRequestBody.CreateCarrierAccountCorreosCreateRequest( + new CarrierAccountCorreosCreateRequest() { + Carrier = "correos", + Parameters = new CarrierAccountCorreosCreateRequestParameters() {}, + } + ), + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -302,16 +319,17 @@ var res = await sdk.CarrierAccounts.RegisterAsync( | `RequestBody` | [RegisterCarrierAccountRequestBody](../../Models/Requests/RegisterCarrierAccountRequestBody.md) | :heavy_check_mark: | Examples. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CarrierAccount](../../Models/Components/CarrierAccount.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetRegistrationStatus Returns the registration status for the given account for the given carrier @@ -320,16 +338,18 @@ Returns the registration status for the given account for the given carrier ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CarrierAccounts.GetRegistrationStatusAsync( carrier: Shippo.Models.Requests.Carrier.Usps, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -341,10 +361,10 @@ var res = await sdk.CarrierAccounts.GetRegistrationStatusAsync( | `Carrier` | [Carrier](../../Models/Requests/Carrier.md) | :heavy_check_mark: | filter by specific carrier | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CarrierAccountRegistrationStatus](../../Models/Components/CarrierAccountRegistrationStatus.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/carrierparceltemplates/README.md b/docs/sdks/carrierparceltemplates/README.md index d22dfe8..c6fbaca 100644 --- a/docs/sdks/carrierparceltemplates/README.md +++ b/docs/sdks/carrierparceltemplates/README.md @@ -26,17 +26,19 @@ List all carrier parcel template objects.
Use the following query string pa ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CarrierParcelTemplates.ListAsync( - include: Include.Enabled, + include: Shippo.Models.Requests.Include.Enabled, carrier: "fedex", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -49,16 +51,17 @@ var res = await sdk.CarrierParcelTemplates.ListAsync( | `Carrier` | *string* | :heavy_minus_sign: | filter by specific carrier | fedex | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CarrierParcelTemplateList](../../Models/Components/CarrierParcelTemplateList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Fetches the parcel template information for a specific carrier parcel template, identified by the token. @@ -67,16 +70,18 @@ Fetches the parcel template information for a specific carrier parcel template, ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CarrierParcelTemplates.GetAsync( carrierParcelTemplateToken: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -88,10 +93,10 @@ var res = await sdk.CarrierParcelTemplates.GetAsync( | `CarrierParcelTemplateToken` | *string* | :heavy_check_mark: | The unique string representation of the carrier parcel template | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CarrierParcelTemplate](../../Models/Components/CarrierParcelTemplate.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/customsdeclarations/README.md b/docs/sdks/customsdeclarations/README.md index f792a31..035ed21 100644 --- a/docs/sdks/customsdeclarations/README.md +++ b/docs/sdks/customsdeclarations/README.md @@ -21,17 +21,19 @@ Returns a a list of all customs declaration objects ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CustomsDeclarations.ListAsync( page: 1, results: 5, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -44,16 +46,17 @@ var res = await sdk.CustomsDeclarations.ListAsync( | `Results` | *long* | :heavy_minus_sign: | The number of results to return per page (max 100, default 5) | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CustomsDeclarationPaginatedList](../../Models/Components/CustomsDeclarationPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a new customs declaration object @@ -62,64 +65,75 @@ Creates a new customs declaration object ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CustomsDeclarations.CreateAsync( customsDeclarationCreateRequest: new CustomsDeclarationCreateRequest() { - B13aFilingOption = CustomsDeclarationB13AFilingOptionEnum.FiledElectronically, - Certify = true, - CertifySigner = "Shawn Ippotle", - ContentsExplanation = "T-Shirt purchase", - ExporterIdentification = new CustomsExporterIdentification() { - EoriNumber = "PL123456790ABCDE", - TaxId = new CustomsTaxIdentification() { - Number = "123456789", - Type = CustomsTaxIdentificationType.Ein, + B13aFilingOption = Shippo.Models.Components.CustomsDeclarationB13AFilingOptionEnum.FiledElectronically, + Certify = true, + CertifySigner = "Shawn Ippotle", + ContentsExplanation = "T-Shirt purchase", + DutiesPayor = new DutiesPayor() { + Account = "2323434543", + Type = Shippo.Models.Components.CustomsDeclarationCreateRequestType.ThirdParty, + Address = new CustomsDeclarationCreateRequestAddress() { + Name = "Patrick Kavanagh", + Zip = "80331", + Country = "DE", + }, }, - }, - Invoice = "#123123", - Metadata = "Order ID #123123", - AddressImporter = new AddressImporter() { - Name = "Shwan Ippotle", - Company = "Shippo", - Street1 = "Blumenstraße", - Street3 = "", - StreetNo = "22", - City = "München", - State = "CA", - Zip = "80331", - Country = "DE", - Phone = "80331", - Email = "shippotle@shippo.com", - IsResidential = true, - }, - ContentsType = Shippo.Models.Components.CustomsDeclarationContentsTypeEnum.Merchandise, - EelPfc = CustomsDeclarationEelPfcEnum.Noeei3037A, - Incoterm = CustomsDeclarationIncotermEnum.Ddp, - Items = new List() { - new CustomsItemCreateRequest() { - Description = "T-Shirt", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, - Metadata = "Order ID \"123454\"", - NetWeight = "5", - OriginCountry = "", - Quantity = 20, - SkuCode = "HM-123", - HsCode = "0901.21", - ValueAmount = "200", - ValueCurrency = "USD", + ExporterIdentification = new CustomsExporterIdentification() { + EoriNumber = "PL123456790ABCDE", + TaxId = new CustomsTaxIdentification() { + Number = "123456789", + Type = Shippo.Models.Components.CustomsTaxIdentificationType.Ein, + }, }, + Invoice = "#123123", + Metadata = "Order ID #123123", + AddressImporter = new AddressImporter() { + Name = "Shwan Ippotle", + Company = "Shippo", + Street1 = "Blumenstraße", + Street3 = "", + StreetNo = "22", + City = "München", + State = "CA", + Zip = "80331", + Country = "DE", + Phone = "80331", + Email = "shippotle@shippo.com", + IsResidential = true, + }, + ContentsType = Shippo.Models.Components.CustomsDeclarationContentsTypeEnum.Merchandise, + EelPfc = Shippo.Models.Components.CustomsDeclarationEelPfcEnum.Noeei3037A, + Incoterm = Shippo.Models.Components.CustomsDeclarationIncotermEnum.Ddp, + Items = new List() { + new CustomsItemCreateRequest() { + Description = "T-Shirt", + MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + Metadata = "Order ID \"123454\"", + NetWeight = "5", + OriginCountry = "", + Quantity = 20, + SkuCode = "HM-123", + HsCode = "0901.21", + ValueAmount = "200", + ValueCurrency = "USD", + }, + }, + NonDeliveryOption = Shippo.Models.Components.CustomsDeclarationNonDeliveryOptionEnum.Return, + Test = true, }, - NonDeliveryOption = Shippo.Models.Components.CustomsDeclarationNonDeliveryOptionEnum.Return, - Test = true, -}, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -131,16 +145,17 @@ var res = await sdk.CustomsDeclarations.CreateAsync( | `CustomsDeclarationCreateRequest` | [CustomsDeclarationCreateRequest](../../Models/Components/CustomsDeclarationCreateRequest.md) | :heavy_check_mark: | CustomsDeclaration details. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CustomsDeclaration](../../Models/Components/CustomsDeclaration.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns an existing customs declaration using an object ID @@ -149,17 +164,19 @@ Returns an existing customs declaration using an object ID ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CustomsDeclarations.GetAsync( customsDeclarationId: "", page: 1, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -172,10 +189,10 @@ var res = await sdk.CustomsDeclarations.GetAsync( | `Page` | *long* | :heavy_minus_sign: | The page number you want to select | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CustomsDeclaration](../../Models/Components/CustomsDeclaration.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/customsitems/README.md b/docs/sdks/customsitems/README.md index ac4b6ae..2fa553a 100644 --- a/docs/sdks/customsitems/README.md +++ b/docs/sdks/customsitems/README.md @@ -20,17 +20,19 @@ Returns a list all customs items objects. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CustomsItems.ListAsync( page: 1, results: 25, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -43,16 +45,17 @@ var res = await sdk.CustomsItems.ListAsync( | `Results` | *long* | :heavy_minus_sign: | The number of results to return per page (max 100) | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CustomsItemPaginatedList](../../Models/Components/CustomsItemPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a new customs item object. @@ -61,27 +64,29 @@ Creates a new customs item object. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CustomsItems.CreateAsync( customsItemCreateRequest: new CustomsItemCreateRequest() { - Description = "T-Shirt", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, - Metadata = "Order ID \"123454\"", - NetWeight = "5", - OriginCountry = "", - Quantity = 20, - SkuCode = "HM-123", - HsCode = "0901.21", - ValueAmount = "200", - ValueCurrency = "USD", -}, - shippoApiVersion: "2018-02-08"); + Description = "T-Shirt", + MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + Metadata = "Order ID \"123454\"", + NetWeight = "5", + OriginCountry = "", + Quantity = 20, + SkuCode = "HM-123", + HsCode = "0901.21", + ValueAmount = "200", + ValueCurrency = "USD", + }, + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -93,16 +98,17 @@ var res = await sdk.CustomsItems.CreateAsync( | `CustomsItemCreateRequest` | [CustomsItemCreateRequest](../../Models/Components/CustomsItemCreateRequest.md) | :heavy_check_mark: | CustomsItem details. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CustomsItem](../../Models/Components/CustomsItem.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns an existing customs item using an object ID @@ -111,17 +117,19 @@ Returns an existing customs item using an object ID ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.CustomsItems.GetAsync( customsItemId: "", page: 1, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -134,10 +142,10 @@ var res = await sdk.CustomsItems.GetAsync( | `Page` | *long* | :heavy_minus_sign: | The page number you want to select | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[CustomsItem](../../Models/Components/CustomsItem.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/manifests/README.md b/docs/sdks/manifests/README.md index 5b09738..bde5d23 100644 --- a/docs/sdks/manifests/README.md +++ b/docs/sdks/manifests/README.md @@ -26,17 +26,19 @@ Returns a list of all manifest objects. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Manifests.ListAsync( page: 1, results: 5, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -49,16 +51,17 @@ var res = await sdk.Manifests.ListAsync( | `Results` | *long* | :heavy_minus_sign: | The number of results to return per page (max 100, default 5) | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[ManifestPaginatedList](../../Models/Components/ManifestPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a new manifest object. @@ -67,22 +70,23 @@ Creates a new manifest object. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Manifests.CreateAsync( manifestCreateRequest: new ManifestCreateRequest() { - CarrierAccount = "adcfdddf8ec64b84ad22772bce3ea37a", - ShipmentDate = "2014-05-16T23:59:59Z", - Transactions = new List() { - "adcfdddf8ec64b84ad22772bce3ea37a", - }, - AddressFrom = ManifestCreateRequestAddressFrom.CreateManifestCreateRequestAddressFromAddressCreateRequest( + CarrierAccount = "adcfdddf8ec64b84ad22772bce3ea37a", + ShipmentDate = "2014-05-16T23:59:59Z", + Transactions = new List() { + "adcfdddf8ec64b84ad22772bce3ea37a", + }, + AddressFrom = ManifestCreateRequestAddressFrom.CreateAddressCreateRequest( new AddressCreateRequest() { Name = "Shwan Ippotle", Company = "Shippo", @@ -98,10 +102,11 @@ var res = await sdk.Manifests.CreateAsync( IsResidential = true, Metadata = "Customer ID 123456", Validate = true, - }, - ), -}, - shippoApiVersion: "2018-02-08"); + } + ), + }, + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -113,16 +118,17 @@ var res = await sdk.Manifests.CreateAsync( | `ManifestCreateRequest` | [ManifestCreateRequest](../../Models/Components/ManifestCreateRequest.md) | :heavy_check_mark: | Manifest details and contact info. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Manifest](../../Models/Components/Manifest.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns an existing manifest using an object ID. @@ -131,16 +137,18 @@ Returns an existing manifest using an object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Manifests.GetAsync( manifestId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -152,10 +160,10 @@ var res = await sdk.Manifests.GetAsync( | `ManifestId` | *string* | :heavy_check_mark: | Object ID of the manifest to update | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Manifest](../../Models/Components/Manifest.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index a914389..f1dfd2b 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -31,19 +31,20 @@ Returns a list of all order objects. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; using System.Collections.Generic; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); ListOrdersRequest req = new ListOrdersRequest() { OrderStatus = new List() { Shippo.Models.Components.OrderStatusEnum.Paid, }, - ShopApp = OrderShopAppEnum.Shippo, + ShopApp = Shippo.Models.Components.OrderShopAppEnum.Shippo, }; var res = await sdk.Orders.ListAsync(req); @@ -57,16 +58,17 @@ var res = await sdk.Orders.ListAsync(req); | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [ListOrdersRequest](../../Models/Requests/ListOrdersRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[OrderPaginatedList](../../Models/Components/OrderPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a new order object. @@ -75,78 +77,80 @@ Creates a new order object. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Orders.CreateAsync( orderCreateRequest: new OrderCreateRequest() { - Currency = "USD", - Notes = "This customer is a VIP", - OrderNumber = "#1068", - OrderStatus = OrderStatusEnum.Paid, - PlacedAt = "2016-09-23T01:28:12Z", - ShippingCost = "12.83", - ShippingCostCurrency = "USD", - ShippingMethod = "USPS First Class Package", - SubtotalPrice = "12.1", - TotalPrice = "24.93", - TotalTax = "0.0", - Weight = "0.4", - WeightUnit = WeightUnitEnum.Lb, - FromAddress = 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, - }, - ToAddress = 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, - }, - LineItems = new List() { - new LineItemBase() { - Currency = "USD", - ManufactureCountry = "US", - MaxDeliveryTime = System.DateTime.Parse("2016-07-23T00:00:00Z"), - MaxShipTime = System.DateTime.Parse("2016-07-23T00:00:00Z"), - Quantity = 20, - Sku = "HM-123", - Title = "Hippo Magazines", - TotalPrice = "12.1", - VariantTitle = "June Edition", - Weight = "0.4", - WeightUnit = WeightUnitEnum.Lb, + Currency = "USD", + Notes = "This customer is a VIP", + OrderNumber = "#1068", + OrderStatus = Shippo.Models.Components.OrderStatusEnum.Paid, + PlacedAt = "2016-09-23T01:28:12Z", + ShippingCost = "12.83", + ShippingCostCurrency = "USD", + ShippingMethod = "USPS First Class Package", + SubtotalPrice = "12.1", + TotalPrice = "24.93", + TotalTax = "0.0", + Weight = "0.4", + WeightUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + FromAddress = 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, + }, + ToAddress = 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, + }, + LineItems = new List() { + new LineItemBase() { + Currency = "USD", + ManufactureCountry = "US", + MaxDeliveryTime = System.DateTime.Parse("2016-07-23T00:00:00Z"), + MaxShipTime = System.DateTime.Parse("2016-07-23T00:00:00Z"), + Quantity = 20, + Sku = "HM-123", + Title = "Hippo Magazines", + TotalPrice = "12.1", + VariantTitle = "June Edition", + Weight = "0.4", + WeightUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + }, }, }, -}, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -158,16 +162,17 @@ var res = await sdk.Orders.CreateAsync( | `OrderCreateRequest` | [OrderCreateRequest](../../Models/Components/OrderCreateRequest.md) | :heavy_check_mark: | Order details. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Order](../../Models/Components/Order.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Retrieves an existing order using an object ID. @@ -176,16 +181,18 @@ Retrieves an existing order using an object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Orders.GetAsync( orderId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -197,10 +204,10 @@ var res = await sdk.Orders.GetAsync( | `OrderId` | *string* | :heavy_check_mark: | Object ID of the order | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Order](../../Models/Components/Order.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/parcels/README.md b/docs/sdks/parcels/README.md index c8b525b..4e839c7 100644 --- a/docs/sdks/parcels/README.md +++ b/docs/sdks/parcels/README.md @@ -24,17 +24,19 @@ Returns a list of all parcel objects. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Parcels.ListAsync( page: 1, results: 25, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -47,16 +49,17 @@ var res = await sdk.Parcels.ListAsync( | `Results` | *long* | :heavy_minus_sign: | The number of results to return per page (max 100) | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[ParcelPaginatedList](../../Models/Components/ParcelPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a new parcel object. @@ -65,39 +68,41 @@ Creates a new parcel object. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Parcels.CreateAsync( - requestBody: CreateParcelRequestBody.CreateCreateParcelRequestBodyParcelCreateRequest( - new ParcelCreateRequest() { - Extra = new ParcelExtra() { - Cod = new Cod() { - Amount = "5.5", - Currency = "USD", - PaymentMethod = PaymentMethod.Cash, - }, - Insurance = new ParcelInsurance() { - Amount = "5.5", - Content = "Laptop", - Currency = "USD", - Provider = ParcelInsuranceProvider.Ups, + requestBody: CreateParcelRequestBody.CreateParcelCreateRequest( + new ParcelCreateRequest() { + Extra = new ParcelExtra() { + Cod = new Cod() { + Amount = "5.5", + Currency = "USD", + PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + }, + Insurance = new ParcelInsurance() { + Amount = "5.5", + Content = "Laptop", + Currency = "USD", + Provider = Shippo.Models.Components.ParcelInsuranceProvider.Ups, + }, }, - }, - Metadata = "Customer ID 123456", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, - Weight = "1", - DistanceUnit = Shippo.Models.Components.DistanceUnitEnum.In, - Height = "1", - Length = "1", - Width = "1", - }, -), - shippoApiVersion: "2018-02-08"); + Metadata = "Customer ID 123456", + MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + Weight = "1", + DistanceUnit = Shippo.Models.Components.DistanceUnitEnum.In, + Height = "1", + Length = "1", + Width = "1", + } + ), + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -109,16 +114,17 @@ var res = await sdk.Parcels.CreateAsync( | `RequestBody` | [CreateParcelRequestBody](../../Models/Requests/CreateParcelRequestBody.md) | :heavy_check_mark: | Parcel details. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Parcel](../../Models/Components/Parcel.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns parcel details using an existing parcel object ID (this will not return parcel details associated with un-purchased shipment/rate parcel object IDs). @@ -127,16 +133,18 @@ Returns parcel details using an existing parcel object ID (this will not return ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Parcels.GetAsync( parcelId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -148,10 +156,10 @@ var res = await sdk.Parcels.GetAsync( | `ParcelId` | *string* | :heavy_check_mark: | Object ID of the parcel | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Parcel](../../Models/Components/Parcel.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/pickups/README.md b/docs/sdks/pickups/README.md index 189a6c9..9e5a841 100644 --- a/docs/sdks/pickups/README.md +++ b/docs/sdks/pickups/README.md @@ -19,45 +19,47 @@ Creates a pickup object. This request is for a carrier to come to a specified lo ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Pickups.CreateAsync( pickupBase: new PickupBase() { - CarrierAccount = "adcfdddf8ec64b84ad22772bce3ea37a", - Location = new Location() { - Address = new AddressCompleteCreateRequest() { - 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, + CarrierAccount = "adcfdddf8ec64b84ad22772bce3ea37a", + Location = new Location() { + Address = new AddressCompleteCreateRequest() { + 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, + }, + BuildingLocationType = Shippo.Models.Components.BuildingLocationType.FrontDoor, + BuildingType = Shippo.Models.Components.BuildingType.Apartment, + Instructions = "Behind screen door", + }, + RequestedEndTime = System.DateTime.Parse("2023-06-18T07:14:55.338Z"), + RequestedStartTime = System.DateTime.Parse("2023-12-01T17:06:07.804Z"), + Transactions = new List() { + "adcfdddf8ec64b84ad22772bce3ea37a", }, - BuildingLocationType = Shippo.Models.Components.BuildingLocationType.FrontDoor, - BuildingType = BuildingType.Apartment, - Instructions = "Behind screen door", - }, - RequestedEndTime = System.DateTime.Parse("2023-06-18T07:14:55.676Z"), - RequestedStartTime = System.DateTime.Parse("2023-06-21T08:42:38.998Z"), - Transactions = new List() { - "adcfdddf8ec64b84ad22772bce3ea37a", }, -}, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -69,10 +71,10 @@ var res = await sdk.Pickups.CreateAsync( | `PickupBase` | [PickupBase](../../Models/Components/PickupBase.md) | :heavy_check_mark: | Shippo’s pickups endpoint allows you to schedule pickups with USPS and DHL Express for eligible shipments that you have already created. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Pickup](../../Models/Components/Pickup.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/rates/README.md b/docs/sdks/rates/README.md index 43af675..ce25270 100644 --- a/docs/sdks/rates/README.md +++ b/docs/sdks/rates/README.md @@ -20,16 +20,18 @@ Returns an existing rate using a rate object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Rates.GetAsync( rateId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -41,16 +43,17 @@ var res = await sdk.Rates.GetAsync( | `RateId` | *string* | :heavy_check_mark: | Object ID of the rate | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Rate](../../Models/Components/Rate.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## ListShipmentRates Returns a paginated list of rates associated with a shipment @@ -59,12 +62,13 @@ Returns a paginated list of rates associated with a shipment ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); ListShipmentRatesRequest req = new ListShipmentRatesRequest() { ShipmentId = "", @@ -81,16 +85,17 @@ var res = await sdk.Rates.ListShipmentRatesAsync(req); | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [ListShipmentRatesRequest](../../Models/Requests/ListShipmentRatesRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[RatePaginatedList](../../Models/Components/RatePaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## ListShipmentRatesByCurrencyCode Returns all available shipping rates for a shipment object. @@ -105,12 +110,13 @@ Note: re-requesting the rates with a different currency code will re-queue the s ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); ListShipmentRatesByCurrencyCodeRequest req = new ListShipmentRatesByCurrencyCodeRequest() { ShipmentId = "", @@ -128,10 +134,10 @@ var res = await sdk.Rates.ListShipmentRatesByCurrencyCodeAsync(req); | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | | `request` | [ListShipmentRatesByCurrencyCodeRequest](../../Models/Requests/ListShipmentRatesByCurrencyCodeRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[RatePaginatedList](../../Models/Components/RatePaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/ratesatcheckout/README.md b/docs/sdks/ratesatcheckout/README.md index e3ba845..d96d9b2 100644 --- a/docs/sdks/ratesatcheckout/README.md +++ b/docs/sdks/ratesatcheckout/README.md @@ -31,43 +31,60 @@ template or a fully formed user parcel template object as the parcel value. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.RatesAtCheckout.CreateAsync( liveRateCreateRequest: new LiveRateCreateRequest() { - AddressFrom = LiveRateCreateRequestAddressFrom.CreateLiveRateCreateRequestAddressFromStr( - "", - ), - AddressTo = LiveRateCreateRequestAddressTo.CreateLiveRateCreateRequestAddressToStr( - "", - ), - LineItems = new List() { - new LineItem() { - Currency = "USD", - ManufactureCountry = "US", - MaxDeliveryTime = System.DateTime.Parse("2016-07-23T00:00:00Z"), - MaxShipTime = System.DateTime.Parse("2016-07-23T00:00:00Z"), - Quantity = 20, - Sku = "HM-123", - Title = "Hippo Magazines", - TotalPrice = "12.1", - VariantTitle = "June Edition", - Weight = "0.4", - WeightUnit = WeightUnitEnum.Lb, - ObjectId = "abf7d5675d744b6ea9fdb6f796b28f28", + AddressFrom = LiveRateCreateRequestAddressFrom.CreateStr( + "" + ), + AddressTo = LiveRateCreateRequestAddressTo.CreateAddressCompleteCreateRequest( + new AddressCompleteCreateRequest() { + 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, + } + ), + LineItems = new List() { + new LineItem() { + Currency = "USD", + ManufactureCountry = "US", + MaxDeliveryTime = System.DateTime.Parse("2016-07-23T00:00:00Z"), + MaxShipTime = System.DateTime.Parse("2016-07-23T00:00:00Z"), + Quantity = 20, + Sku = "HM-123", + Title = "Hippo Magazines", + TotalPrice = "12.1", + VariantTitle = "June Edition", + Weight = "0.4", + WeightUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + ObjectId = "abf7d5675d744b6ea9fdb6f796b28f28", + }, }, + Parcel = LiveRateCreateRequestParcel.CreateStr( + "5df144dca289442cv7a06" + ), }, - Parcel = LiveRateCreateRequestParcel.CreateLiveRateCreateRequestParcelStr( - "5df144dca289442cv7a06", - ), -}, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -79,16 +96,17 @@ var res = await sdk.RatesAtCheckout.CreateAsync( | `LiveRateCreateRequest` | [LiveRateCreateRequest](../../Models/Components/LiveRateCreateRequest.md) | :heavy_check_mark: | Generate rates at checkout | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[LiveRatePaginatedList](../../Models/Components/LiveRatePaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetDefaultParcelTemplate Retrieve and display the currently configured default parcel template for live rates. @@ -97,12 +115,13 @@ Retrieve and display the currently configured default parcel template for live r ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.RatesAtCheckout.GetDefaultParcelTemplateAsync(shippoApiVersion: "2018-02-08"); @@ -115,16 +134,17 @@ var res = await sdk.RatesAtCheckout.GetDefaultParcelTemplateAsync(shippoApiVersi | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[DefaultParcelTemplate](../../Models/Components/DefaultParcelTemplate.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## UpdateDefaultParcelTemplate Update the currently configured default parcel template for live rates. The object_id in the request payload should identify the user parcel template to be the new default. @@ -133,18 +153,20 @@ Update the currently configured default parcel template for live rates. The obje ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.RatesAtCheckout.UpdateDefaultParcelTemplateAsync( shippoApiVersion: "2018-02-08", defaultParcelTemplateUpdateRequest: new DefaultParcelTemplateUpdateRequest() { - ObjectId = "b958d3690bb04bb8b2986724872750f5", -}); + ObjectId = "b958d3690bb04bb8b2986724872750f5", + } +); // handle response ``` @@ -156,16 +178,17 @@ var res = await sdk.RatesAtCheckout.UpdateDefaultParcelTemplateAsync( | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | | `DefaultParcelTemplateUpdateRequest` | [DefaultParcelTemplateUpdateRequest](../../Models/Components/DefaultParcelTemplateUpdateRequest.md) | :heavy_minus_sign: | N/A | | - ### Response **[DefaultParcelTemplate](../../Models/Components/DefaultParcelTemplate.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## DeleteDefaultParcelTemplate Clears the currently configured default parcel template for live rates. @@ -174,16 +197,17 @@ Clears the currently configured default parcel template for live rates. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); await sdk.RatesAtCheckout.DeleteDefaultParcelTemplateAsync(shippoApiVersion: "2018-02-08"); - +// handle response ``` ### Parameters diff --git a/docs/sdks/refunds/README.md b/docs/sdks/refunds/README.md index a67be2a..5bf1c5a 100644 --- a/docs/sdks/refunds/README.md +++ b/docs/sdks/refunds/README.md @@ -20,19 +20,21 @@ Creates a new refund object. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Refunds.CreateAsync( refundRequestBody: new RefundRequestBody() { - Async = false, - Transaction = "915d94940ea54c3a80cbfa328722f5a1", -}, - shippoApiVersion: "2018-02-08"); + Async = false, + Transaction = "915d94940ea54c3a80cbfa328722f5a1", + }, + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -44,16 +46,17 @@ var res = await sdk.Refunds.CreateAsync( | `RefundRequestBody` | [RefundRequestBody](../../Models/Components/RefundRequestBody.md) | :heavy_check_mark: | Refund details | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Refund](../../Models/Components/Refund.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## List Returns a list all refund objects. @@ -62,12 +65,13 @@ Returns a list all refund objects. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Refunds.ListAsync(shippoApiVersion: "2018-02-08"); @@ -80,16 +84,17 @@ var res = await sdk.Refunds.ListAsync(shippoApiVersion: "2018-02-08"); | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[RefundPaginatedList](../../Models/Components/RefundPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns an existing rate using a rate object ID. @@ -98,16 +103,18 @@ Returns an existing rate using a rate object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Refunds.GetAsync( refundId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -119,10 +126,10 @@ var res = await sdk.Refunds.GetAsync( | `RefundId` | *string* | :heavy_check_mark: | Object ID of the refund to update | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Refund](../../Models/Components/Refund.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/servicegroups/README.md b/docs/sdks/servicegroups/README.md index d4606b5..0a65841 100644 --- a/docs/sdks/servicegroups/README.md +++ b/docs/sdks/servicegroups/README.md @@ -22,12 +22,13 @@ Returns a list of service group objects. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.ServiceGroups.ListAsync(shippoApiVersion: "2018-02-08"); @@ -40,16 +41,17 @@ var res = await sdk.ServiceGroups.ListAsync(shippoApiVersion: "2018-02-08"); | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[List](../../Models/.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a new service group. @@ -58,32 +60,34 @@ Creates a new service group. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.ServiceGroups.CreateAsync( serviceGroupCreateRequest: new ServiceGroupCreateRequest() { - Description = "USPS shipping options", - FlatRate = "5", - FlatRateCurrency = "USD", - FreeShippingThresholdCurrency = "USD", - FreeShippingThresholdMin = "5", - Name = "USPS Shipping", - RateAdjustment = 15, - Type = Shippo.Models.Components.ServiceGroupTypeEnum.FlatRate, - ServiceLevels = new List() { - new ServiceGroupAccountAndServiceLevel() { - AccountObjectId = "80feb1633d4a43c898f0058506cfd82d", - ServiceLevelToken = "ups_next_day_air_saver", + Description = "USPS shipping options", + FlatRate = "5", + FlatRateCurrency = "USD", + FreeShippingThresholdCurrency = "USD", + FreeShippingThresholdMin = "5", + Name = "USPS Shipping", + RateAdjustment = 15, + Type = Shippo.Models.Components.ServiceGroupTypeEnum.FlatRate, + ServiceLevels = new List() { + new ServiceGroupAccountAndServiceLevel() { + AccountObjectId = "80feb1633d4a43c898f0058506cfd82d", + ServiceLevelToken = "ups_next_day_air_saver", + }, }, }, -}, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -95,16 +99,17 @@ var res = await sdk.ServiceGroups.CreateAsync( | `ServiceGroupCreateRequest` | [ServiceGroupCreateRequest](../../Models/Components/ServiceGroupCreateRequest.md) | :heavy_check_mark: | N/A | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[ServiceGroup](../../Models/Components/ServiceGroup.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Update Updates an existing service group object.
The object_id cannot be updated as it is the unique identifier for the object. @@ -113,34 +118,36 @@ Updates an existing service group object.
The object_id cannot be updated as ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.ServiceGroups.UpdateAsync( shippoApiVersion: "2018-02-08", serviceGroupUpdateRequest: new ServiceGroupUpdateRequest() { - Description = "USPS shipping options", - FlatRate = "5", - FlatRateCurrency = "USD", - FreeShippingThresholdCurrency = "USD", - FreeShippingThresholdMin = "5", - Name = "USPS Shipping", - RateAdjustment = 15, - Type = Shippo.Models.Components.ServiceGroupTypeEnum.FlatRate, - ObjectId = "80feb1633d4a43c898f005850", - IsActive = true, - ServiceLevels = new List() { - new ServiceGroupAccountAndServiceLevel() { - AccountObjectId = "80feb1633d4a43c898f0058506cfd82d", - ServiceLevelToken = "ups_next_day_air_saver", + Description = "USPS shipping options", + FlatRate = "5", + FlatRateCurrency = "USD", + FreeShippingThresholdCurrency = "USD", + FreeShippingThresholdMin = "5", + Name = "USPS Shipping", + RateAdjustment = 15, + Type = Shippo.Models.Components.ServiceGroupTypeEnum.FlatRate, + ObjectId = "80feb1633d4a43c898f005850", + IsActive = true, + ServiceLevels = new List() { + new ServiceGroupAccountAndServiceLevel() { + AccountObjectId = "80feb1633d4a43c898f0058506cfd82d", + ServiceLevelToken = "ups_next_day_air_saver", + }, }, - }, -}); + } +); // handle response ``` @@ -152,16 +159,17 @@ var res = await sdk.ServiceGroups.UpdateAsync( | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | | `ServiceGroupUpdateRequest` | [ServiceGroupUpdateRequest](../../Models/Components/ServiceGroupUpdateRequest.md) | :heavy_minus_sign: | N/A | | - ### Response **[ServiceGroup](../../Models/Components/ServiceGroup.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Delete Deletes an existing service group using an object ID. @@ -170,18 +178,20 @@ Deletes an existing service group using an object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); await sdk.ServiceGroups.DeleteAsync( serviceGroupId: "", - shippoApiVersion: "2018-02-08"); - + shippoApiVersion: "2018-02-08" +); +// handle response ``` ### Parameters diff --git a/docs/sdks/shipments/README.md b/docs/sdks/shipments/README.md index d07e88b..57be0b4 100644 --- a/docs/sdks/shipments/README.md +++ b/docs/sdks/shipments/README.md @@ -41,12 +41,13 @@ Optional path parameters:
```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); ListShipmentsRequest req = new ListShipmentsRequest() {}; @@ -61,16 +62,17 @@ var res = await sdk.Shipments.ListAsync(req); | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [ListShipmentsRequest](../../Models/Requests/ListShipmentsRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[ShipmentPaginatedList](../../Models/Components/ShipmentPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a new shipment object. @@ -79,120 +81,121 @@ Creates a new shipment object. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Shipments.CreateAsync( shipmentCreateRequest: new ShipmentCreateRequest() { - Extra = new ShipmentExtra() { - AccountsReceivableCustomerAccount = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - AppropriationNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - BillOfLadingNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - Cod = new Cod() { - Amount = "5.5", - Currency = "USD", - PaymentMethod = PaymentMethod.Cash, - }, - CodNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - CustomerReference = new CustomerReference() { - RefSort = 1, - }, - DealerOrderNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - DeptNumber = new DepartmentNumber() { - RefSort = 3, - }, - FdaProductCode = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - Insurance = new Insurance() { - Amount = "5.5", - Currency = "USD", - }, - InvoiceNumber = new InvoiceNumber() { - RefSort = 2, - }, - ManifestNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - ModelNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - PartNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - PoNumber = new PoNumber() { - RefSort = 2, - }, - ProductionCode = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - PurchaseRequestNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - RmaNumber = new RmaNumber() { - RefSort = 1, - }, - SalespersonNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - SerialNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - StoreNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, - }, - TransactionReferenceNumber = new UPSReferenceFields() { - Prefix = "ABC", - Value = "value", - RefSort = 1, + Extra = new ShipmentExtra() { + AccountsReceivableCustomerAccount = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + AppropriationNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + BillOfLadingNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + Cod = new Cod() { + Amount = "5.5", + Currency = "USD", + PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + }, + CodNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + CustomerReference = new CustomerReference() { + RefSort = 1, + }, + DealerOrderNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + DeptNumber = new DepartmentNumber() { + RefSort = 3, + }, + FdaProductCode = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + Insurance = new Insurance() { + Amount = "5.5", + Currency = "USD", + }, + InvoiceNumber = new InvoiceNumber() { + RefSort = 2, + }, + ManifestNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + ModelNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + PartNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + PoNumber = new PoNumber() { + RefSort = 2, + }, + ProductionCode = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + PurchaseRequestNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + RmaNumber = new RmaNumber() { + RefSort = 1, + }, + SalespersonNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + SerialNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + StoreNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, + TransactionReferenceNumber = new UPSReferenceFields() { + Prefix = "ABC", + Value = "value", + RefSort = 1, + }, }, - }, - Metadata = "Customer ID 123456", - ShipmentDate = "2021-03-22T12:00:00Z", - AddressFrom = AddressFrom.CreateAddressFromAddressCreateRequest( + Metadata = "Customer ID 123456", + ShipmentDate = "2021-03-22T12:00:00Z", + AddressFrom = AddressFrom.CreateAddressCreateRequest( new AddressCreateRequest() { Name = "Shwan Ippotle", Company = "Shippo", @@ -208,9 +211,12 @@ var res = await sdk.Shipments.CreateAsync( IsResidential = true, Metadata = "Customer ID 123456", Validate = true, - }, - ), - AddressReturn = AddressReturn.CreateAddressReturnAddressCreateRequest( + } + ), + AddressReturn = AddressReturn.CreateStr( + "d799c2679e644279b59fe661ac8fa488" + ), + AddressTo = AddressTo.CreateAddressCreateRequest( new AddressCreateRequest() { Name = "Shwan Ippotle", Company = "Shippo", @@ -226,45 +232,100 @@ var res = await sdk.Shipments.CreateAsync( IsResidential = true, Metadata = "Customer ID 123456", Validate = true, - }, - ), - AddressTo = AddressTo.CreateAddressToStr( - "d799c2679e644279b59fe661ac8fa489", - ), - CustomsDeclaration = ShipmentCreateRequestCustomsDeclaration.CreateShipmentCreateRequestCustomsDeclarationStr( - "adcfdddf8ec64b84ad22772bce3ea37a", - ), - CarrierAccounts = new List() { - "065a4a8c10d24a34ab932163a1b87f52", - "73f706f4bdb94b54a337563840ce52b0", - }, - Parcels = new List() { - Parcels.CreateParcelsParcelCreateFromTemplateRequest( - new ParcelCreateFromTemplateRequest() { - Extra = new ParcelExtra() { - Cod = new Cod() { - Amount = "5.5", - Currency = "USD", - PaymentMethod = PaymentMethod.Cash, + } + ), + CustomsDeclaration = ShipmentCreateRequestCustomsDeclaration.CreateCustomsDeclarationCreateRequest( + new CustomsDeclarationCreateRequest() { + B13aFilingOption = Shippo.Models.Components.CustomsDeclarationB13AFilingOptionEnum.FiledElectronically, + Certify = true, + CertifySigner = "Shawn Ippotle", + ContentsExplanation = "T-Shirt purchase", + DutiesPayor = new DutiesPayor() { + Account = "2323434543", + Type = Shippo.Models.Components.CustomsDeclarationCreateRequestType.ThirdParty, + Address = new CustomsDeclarationCreateRequestAddress() { + Name = "Patrick Kavanagh", + Zip = "80331", + Country = "DE", }, - Insurance = new ParcelInsurance() { - Amount = "5.5", - Content = "Laptop", - Currency = "USD", - Provider = ParcelInsuranceProvider.Ups, + }, + ExporterIdentification = new CustomsExporterIdentification() { + EoriNumber = "PL123456790ABCDE", + TaxId = new CustomsTaxIdentification() { + Number = "123456789", + Type = Shippo.Models.Components.CustomsTaxIdentificationType.Ein, }, }, - Metadata = "Customer ID 123456", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, - Weight = "1", - Template = ParcelTemplateEnumSet.CreateParcelTemplateEnumSetUSPSParcelTemplate( - Shippo.Models.Components.USPSParcelTemplate.USPSFlatRateGiftCardEnvelope, - ), - }, + Invoice = "#123123", + Metadata = "Order ID #123123", + AddressImporter = new AddressImporter() { + Name = "Shwan Ippotle", + Company = "Shippo", + Street1 = "Blumenstraße", + Street3 = "", + StreetNo = "22", + City = "München", + State = "CA", + Zip = "80331", + Country = "DE", + Phone = "80331", + Email = "shippotle@shippo.com", + IsResidential = true, + }, + ContentsType = Shippo.Models.Components.CustomsDeclarationContentsTypeEnum.Merchandise, + EelPfc = Shippo.Models.Components.CustomsDeclarationEelPfcEnum.Noeei3037A, + Incoterm = Shippo.Models.Components.CustomsDeclarationIncotermEnum.Ddp, + Items = new List() { + new CustomsItemCreateRequest() { + Description = "T-Shirt", + MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + Metadata = "Order ID \"123454\"", + NetWeight = "5", + OriginCountry = "", + Quantity = 20, + SkuCode = "HM-123", + HsCode = "0901.21", + ValueAmount = "200", + ValueCurrency = "USD", + }, + }, + NonDeliveryOption = Shippo.Models.Components.CustomsDeclarationNonDeliveryOptionEnum.Return, + Test = true, + } ), + CarrierAccounts = new List() { + "065a4a8c10d24a34ab932163a1b87f52", + "73f706f4bdb94b54a337563840ce52b0", + }, + Parcels = new List() { + Parcels.CreateParcelCreateRequest( + new ParcelCreateRequest() { + Extra = new ParcelExtra() { + Cod = new Cod() { + Amount = "5.5", + Currency = "USD", + PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + }, + Insurance = new ParcelInsurance() { + Amount = "5.5", + Content = "Laptop", + Currency = "USD", + Provider = Shippo.Models.Components.ParcelInsuranceProvider.Ups, + }, + }, + Metadata = "Customer ID 123456", + MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + Weight = "1", + DistanceUnit = Shippo.Models.Components.DistanceUnitEnum.In, + Height = "1", + Length = "1", + Width = "1", + } + ), + }, }, -}, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -276,16 +337,17 @@ var res = await sdk.Shipments.CreateAsync( | `ShipmentCreateRequest` | [ShipmentCreateRequest](../../Models/Components/ShipmentCreateRequest.md) | :heavy_check_mark: | Shipment details and contact info. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Shipment](../../Models/Components/Shipment.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns an existing shipment using an object ID @@ -294,16 +356,18 @@ Returns an existing shipment using an object ID ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Shipments.GetAsync( shipmentId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -315,10 +379,10 @@ var res = await sdk.Shipments.GetAsync( | `ShipmentId` | *string* | :heavy_check_mark: | Object ID of the shipment to update | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Shipment](../../Models/Components/Shipment.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/shippoaccounts/README.md b/docs/sdks/shippoaccounts/README.md index 5deb617..0ab02de 100644 --- a/docs/sdks/shippoaccounts/README.md +++ b/docs/sdks/shippoaccounts/README.md @@ -23,17 +23,19 @@ Returns a list of Shippo Accounts objects ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.ShippoAccounts.ListAsync( page: 1, results: 25, - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -46,16 +48,17 @@ var res = await sdk.ShippoAccounts.ListAsync( | `Results` | *long* | :heavy_minus_sign: | The number of results to return per page (max 100) | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[ShippoAccountPaginatedList](../../Models/Components/ShippoAccountPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a Shippo Account object @@ -64,21 +67,23 @@ Creates a Shippo Account object ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.ShippoAccounts.CreateAsync( shippoAccountUpdateRequest: new ShippoAccountUpdateRequest() { - Email = "hippo@shippo.com", - FirstName = "Shippo", - LastName = "Meister", - CompanyName = "Acme", -}, - shippoApiVersion: "2018-02-08"); + Email = "hippo@shippo.com", + FirstName = "Shippo", + LastName = "Meister", + CompanyName = "Acme", + }, + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -90,16 +95,17 @@ var res = await sdk.ShippoAccounts.CreateAsync( | `ShippoAccountUpdateRequest` | [ShippoAccountUpdateRequest](../../Models/Components/ShippoAccountUpdateRequest.md) | :heavy_check_mark: | N/A | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[ShippoAccount](../../Models/Components/ShippoAccount.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns a Shippo Account using an object ID @@ -108,16 +114,18 @@ Returns a Shippo Account using an object ID ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.ShippoAccounts.GetAsync( shippoAccountId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -129,16 +137,17 @@ var res = await sdk.ShippoAccounts.GetAsync( | `ShippoAccountId` | *string* | :heavy_check_mark: | Object ID of the ShippoAccount | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[ShippoAccount](../../Models/Components/ShippoAccount.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Update Updates a Shippo Account object @@ -147,22 +156,24 @@ Updates a Shippo Account object ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.ShippoAccounts.UpdateAsync( shippoAccountId: "", shippoApiVersion: "2018-02-08", shippoAccountUpdateRequest: new ShippoAccountUpdateRequest() { - Email = "hippo@shippo.com", - FirstName = "Shippo", - LastName = "Meister", - CompanyName = "Acme", -}); + Email = "hippo@shippo.com", + FirstName = "Shippo", + LastName = "Meister", + CompanyName = "Acme", + } +); // handle response ``` @@ -175,10 +186,10 @@ var res = await sdk.ShippoAccounts.UpdateAsync( | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | | `ShippoAccountUpdateRequest` | [ShippoAccountUpdateRequest](../../Models/Components/ShippoAccountUpdateRequest.md) | :heavy_minus_sign: | N/A | | - ### Response **[ShippoAccount](../../Models/Components/ShippoAccount.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/shipposdk/README.md b/docs/sdks/shipposdk/README.md index f00f187..1c91441 100644 --- a/docs/sdks/shipposdk/README.md +++ b/docs/sdks/shipposdk/README.md @@ -1,9 +1,5 @@ # ShippoSDK - ## Overview -Shippo external API.: Use this API to integrate with the Shippo service - -### Available Operations - +Shippo external API.: Use this API to integrate with the Shippo service \ No newline at end of file diff --git a/docs/sdks/trackingstatus/README.md b/docs/sdks/trackingstatus/README.md index 1b52b19..113b324 100644 --- a/docs/sdks/trackingstatus/README.md +++ b/docs/sdks/trackingstatus/README.md @@ -28,20 +28,22 @@ Registers a webhook that will send HTTP notifications to you when the status of ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.TrackingStatus.CreateAsync( tracksRequest: new TracksRequest() { - Carrier = "usps", - Metadata = "Order 000123", - TrackingNumber = "9205590164917312751089", -}, - shippoApiVersion: "2018-02-08"); + Carrier = "usps", + Metadata = "Order 000123", + TrackingNumber = "9205590164917312751089", + }, + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -53,16 +55,17 @@ var res = await sdk.TrackingStatus.CreateAsync( | `TracksRequest` | [TracksRequest](../../Models/Components/TracksRequest.md) | :heavy_check_mark: | N/A | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Track](../../Models/Components/Track.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns the tracking status of a shipment using a carrier name and a tracking number. @@ -71,17 +74,19 @@ Returns the tracking status of a shipment using a carrier name and a tracking nu ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.TrackingStatus.GetAsync( trackingNumber: "", carrier: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -94,10 +99,10 @@ var res = await sdk.TrackingStatus.GetAsync( | `Carrier` | *string* | :heavy_check_mark: | Name of the carrier | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Track](../../Models/Components/Track.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/transactions/README.md b/docs/sdks/transactions/README.md index aba1f23..08037a1 100644 --- a/docs/sdks/transactions/README.md +++ b/docs/sdks/transactions/README.md @@ -20,16 +20,17 @@ Returns a list of all transaction objects. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); ListTransactionsRequest req = new ListTransactionsRequest() { - ObjectStatus = TransactionStatusEnum.Success, - TrackingStatus = TrackingStatusEnum.Delivered, + ObjectStatus = Shippo.Models.Components.TransactionStatusEnum.Success, + TrackingStatus = Shippo.Models.Components.TrackingStatusEnum.Delivered, }; var res = await sdk.Transactions.ListAsync(req); @@ -43,16 +44,17 @@ var res = await sdk.Transactions.ListAsync(req); | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [ListTransactionsRequest](../../Models/Requests/ListTransactionsRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[TransactionPaginatedList](../../Models/Components/TransactionPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a new transaction object and purchases the shipping label using a rate object that has previously been created.
OR
Creates a new transaction object and purchases the shipping label instantly using shipment details, an existing carrier account, and an existing service level token. @@ -61,24 +63,26 @@ Creates a new transaction object and purchases the shipping label using a rate o ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Transactions.CreateAsync( - requestBody: CreateTransactionRequestBody.CreateCreateTransactionRequestBodyTransactionCreateRequest( - new TransactionCreateRequest() { - Async = false, - LabelFileType = LabelFileTypeEnum.Pdf4x6, - Metadata = "Order ID #12345", - Rate = "ec9f0d3adc9441449c85d315f0997fd5", - }, -), - shippoApiVersion: "2018-02-08"); + requestBody: CreateTransactionRequestBody.CreateTransactionCreateRequest( + new TransactionCreateRequest() { + Async = false, + LabelFileType = Shippo.Models.Components.LabelFileTypeEnum.Pdf4x6, + Metadata = "Order ID #12345", + Rate = "ec9f0d3adc9441449c85d315f0997fd5", + } + ), + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -90,16 +94,17 @@ var res = await sdk.Transactions.CreateAsync( | `RequestBody` | [CreateTransactionRequestBody](../../Models/Requests/CreateTransactionRequestBody.md) | :heavy_check_mark: | Examples. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Transaction](../../Models/Components/Transaction.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns an existing transaction using an object ID. @@ -108,16 +113,18 @@ Returns an existing transaction using an object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Transactions.GetAsync( transactionId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -129,10 +136,10 @@ var res = await sdk.Transactions.GetAsync( | `TransactionId` | *string* | :heavy_check_mark: | Object ID of the transaction to update | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[Transaction](../../Models/Components/Transaction.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/userparceltemplates/README.md b/docs/sdks/userparceltemplates/README.md index 8191bfb..d1b52b6 100644 --- a/docs/sdks/userparceltemplates/README.md +++ b/docs/sdks/userparceltemplates/README.md @@ -27,12 +27,13 @@ Returns a list all of all user parcel template objects. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.UserParcelTemplates.ListAsync(shippoApiVersion: "2018-02-08"); @@ -45,16 +46,17 @@ var res = await sdk.UserParcelTemplates.ListAsync(shippoApiVersion: "2018-02-08" | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[UserParcelTemplateList](../../Models/Components/UserParcelTemplateList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Create Creates a new user parcel template.
You can choose to create a @@ -69,21 +71,23 @@ and depth, as well as their units." ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.UserParcelTemplates.CreateAsync( - userParcelTemplateCreateRequest: UserParcelTemplateCreateRequest.CreateUserParcelTemplateCreateRequestUserParcelTemplateWithCarrierTemplateCreateRequest( - new UserParcelTemplateWithCarrierTemplateCreateRequest() { - Weight = "12", - WeightUnit = WeightUnitEnum.Lb, - }, -), - shippoApiVersion: "2018-02-08"); + userParcelTemplateCreateRequest: UserParcelTemplateCreateRequest.CreateUserParcelTemplateWithCarrierTemplateCreateRequest( + new UserParcelTemplateWithCarrierTemplateCreateRequest() { + Weight = "12", + WeightUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + } + ), + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -95,16 +99,17 @@ var res = await sdk.UserParcelTemplates.CreateAsync( | `UserParcelTemplateCreateRequest` | [UserParcelTemplateCreateRequest](../../Models/Components/UserParcelTemplateCreateRequest.md) | :heavy_check_mark: | N/A | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[UserParcelTemplate](../../Models/Components/UserParcelTemplate.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Delete Deletes a user parcel template using an object ID. @@ -113,18 +118,20 @@ Deletes a user parcel template using an object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); await sdk.UserParcelTemplates.DeleteAsync( userParcelTemplateObjectId: "", - shippoApiVersion: "2018-02-08"); - + shippoApiVersion: "2018-02-08" +); +// handle response ``` ### Parameters @@ -140,6 +147,7 @@ await sdk.UserParcelTemplates.DeleteAsync( | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Get Returns the parcel template information for a specific user parcel @@ -149,16 +157,18 @@ template, identified by the object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.UserParcelTemplates.GetAsync( userParcelTemplateObjectId: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); // handle response ``` @@ -170,16 +180,17 @@ var res = await sdk.UserParcelTemplates.GetAsync( | `UserParcelTemplateObjectId` | *string* | :heavy_check_mark: | Object ID of the user parcel template | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | - ### Response **[UserParcelTemplate](../../Models/Components/UserParcelTemplate.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## Update Updates an existing user parcel template. @@ -188,25 +199,27 @@ Updates an existing user parcel template. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.UserParcelTemplates.UpdateAsync( userParcelTemplateObjectId: "", shippoApiVersion: "2018-02-08", userParcelTemplateUpdateRequest: new UserParcelTemplateUpdateRequest() { - DistanceUnit = Shippo.Models.Components.DistanceUnitEnum.In, - Height = "6", - Length = "10", - Name = "My Custom Template", - Weight = "12", - WeightUnit = WeightUnitEnum.Lb, - Width = "8", -}); + DistanceUnit = Shippo.Models.Components.DistanceUnitEnum.In, + Height = "6", + Length = "10", + Name = "My Custom Template", + Weight = "12", + WeightUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + Width = "8", + } +); // handle response ``` @@ -219,10 +232,10 @@ var res = await sdk.UserParcelTemplates.UpdateAsync( | `ShippoApiVersion` | *string* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 | | `UserParcelTemplateUpdateRequest` | [UserParcelTemplateUpdateRequest](../../Models/Components/UserParcelTemplateUpdateRequest.md) | :heavy_minus_sign: | N/A | | - ### Response **[UserParcelTemplate](../../Models/Components/UserParcelTemplate.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index 55e3e92..0431978 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -30,7 +30,8 @@ using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); WebhookUpdateRequest req = new WebhookUpdateRequest() { Event = Shippo.Models.Components.WebhookEventTypeEnum.BatchCreated, @@ -50,16 +51,17 @@ var res = await sdk.Webhooks.CreateWebhookAsync(req); | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [WebhookUpdateRequest](../../Models/Components/WebhookUpdateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[Webhook](../../Models/Components/Webhook.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## ListWebhooks Returns a list of all webhooks you have created. @@ -72,23 +74,25 @@ using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Webhooks.ListWebhooksAsync(); // handle response ``` - ### Response **[WebhookPaginatedList](../../Models/Components/WebhookPaginatedList.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetWebhook Returns the details of a specific webhook using the webhook object ID. @@ -97,12 +101,13 @@ Returns the details of a specific webhook using the webhook object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Webhooks.GetWebhookAsync(webhookId: ""); @@ -115,16 +120,17 @@ var res = await sdk.Webhooks.GetWebhookAsync(webhookId: ""); | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | | `WebhookId` | *string* | :heavy_check_mark: | Object ID of the webhook to retrieve | - ### Response **[Webhook](../../Models/Components/Webhook.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## UpdateWebhook Updates an existing webhook using the webhook object ID. @@ -133,21 +139,23 @@ Updates an existing webhook using the webhook object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); var res = await sdk.Webhooks.UpdateWebhookAsync( webhookId: "", webhookUpdateRequest: new WebhookUpdateRequest() { - Event = Shippo.Models.Components.WebhookEventTypeEnum.BatchCreated, - Url = "https://example.com/shippo-webhook", - Active = true, - IsTest = false, -}); + Event = Shippo.Models.Components.WebhookEventTypeEnum.BatchCreated, + Url = "https://example.com/shippo-webhook", + Active = true, + IsTest = false, + } +); // handle response ``` @@ -159,16 +167,17 @@ var res = await sdk.Webhooks.UpdateWebhookAsync( | `WebhookId` | *string* | :heavy_check_mark: | Object ID of the webhook to retrieve | | `WebhookUpdateRequest` | [WebhookUpdateRequest](../../Models/Components/WebhookUpdateRequest.md) | :heavy_check_mark: | N/A | - ### Response **[Webhook](../../Models/Components/Webhook.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | | Shippo.Models.Errors.SDKException | 4xx-5xx | */* | + ## DeleteWebhook Deletes a specific webhook using the webhook object ID. @@ -177,16 +186,17 @@ Deletes a specific webhook using the webhook object ID. ```csharp using Shippo; -using Shippo.Models.Components; using Shippo.Models.Requests; +using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", - shippoApiVersion: "2018-02-08"); + shippoApiVersion: "2018-02-08" +); await sdk.Webhooks.DeleteWebhookAsync(webhookId: ""); - +// handle response ``` ### Parameters