Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!feat: Improved type definitions #19

Merged
merged 14 commits into from
Jul 26, 2024
Merged

!feat: Improved type definitions #19

merged 14 commits into from
Jul 26, 2024

Conversation

mikeymike
Copy link
Contributor

This PR aims to improve on some type definitions where the originally generated types were too generic and don't work well in a single package scope.

This is broken out from a larger generation but should be isolated to just these changes.

BREAKING CHANGE: Type have been renamed or consolidated.

mikeymike added 14 commits July 26, 2024 07:29
NewCreateSubscriptionChargeItemsSubscriptionsSubscriptionsCatalogItem -> NewCreateSubscriptionChargeItemsSubscriptionsCatalogItem

NewPreviewSubscriptionChargeItemsSubscriptionsSubscriptionsCatalogItem -> NewPreviewSubscriptionChargeItemsSubscriptionsCatalogItem
PreviewTransaction -> PreviewTransactionCreate
PreviewTransactionRequest -> PreviewTransactionCreateRequest

CountryAndZipPostalCode -> TransactionPreviewByAddress
CountryAndZipPostalCodeItems -> TransactionPreviewByAddressItems
NewCountryAndZipPostalCodeItemsTransactionsCatalogItem -> NewTransactionPreviewByAddressItemsTransactionsCatalogItem
NewCountryAndZipPostalCodeItemsTransactionsNonCatalogPriceForAnExistingProduct -> NewTransactionPreviewByAddressItemsTransactionsNonCatalogPriceForAnExistingProduct
NewCountryAndZipPostalCodeItemsTransactionsNonCatalogPriceAndProduct -> NewTransactionPreviewByAddressItemsTransactionsNonCatalogPriceAndProduct

IPAddress -> TransactionPreviewByIP
IPAddressItems -> TransactionPreviewByIPItems
NewIPAddressItemsTransactionsCatalogItem -> NewTransactionPreviewByIPItemsTransactionsCatalogItem
NewIPAddressItemsTransactionsNonCatalogPriceForAnExistingProduct -> NewTransactionPreviewByIPItemsTransactionsNonCatalogPriceForAnExistingProduct
NewIPAddressItemsTransactionsNonCatalogPriceAndProduct -> NewTransactionPreviewByIPItemsTransactionsNonCatalogPriceAndProduct

ExistingCustomerPaddleIDs -> TransactionPreviewByCustomer
ExistingCustomerPaddleIDsItems -> TransactionPreviewByCustomerItems
NewExistingCustomerPaddleIDsItemsTransactionsCatalogItem -> NewTransactionPreviewByCustomerItemsTransactionsCatalogItem
NewExistingCustomerPaddleIDsItemsTransactionsNonCatalogPriceForAnExistingProduct -> NewTransactionPreviewByCustomerItemsTransactionsNonCatalogPriceForAnExistingProduct
NewExistingCustomerPaddleIDsItemsTransactionsNonCatalogPriceAndProduct -> NewTransactionPreviewByCustomerItemsTransactionsNonCatalogPriceAndProduct
Credit -> Money
Charge -> Money
PreviewSubscriptionRequest -> PreviewSubscriptionUpdateRequest
@mikeymike mikeymike requested a review from a team as a code owner July 26, 2024 08:31
@mikeymike mikeymike merged commit db9dfca into main Jul 26, 2024
5 of 6 checks passed
@mikeymike mikeymike deleted the feat/improved-type-names branch July 26, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants