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

Initting objects does not have nil defaults. #239

Open
Steven4294 opened this issue Oct 29, 2023 · 0 comments
Open

Initting objects does not have nil defaults. #239

Steven4294 opened this issue Oct 29, 2023 · 0 comments

Comments

@Steven4294
Copy link

See below:

     let response = try await stripe.invoices.
                        .update(invoice: invoice.id ?? "",
                                      autoAdvance:nil,
                                      collectionMethod:  nil,
                                      description:  nil,
                                      metadata: nil,
                                      accountTaxIds:  nil,
                                      applicationFeeAmount: nil,
                                      automaticTax: nil,
                                      customFields: nil,
                                      daysUntilDue: nil,
                                      defaultPaymentMethod: nil,
                                      defaultSource: nil,
                                      defaultTaxRates:nil,
                                      discounts:  nil,
                                      dueDate: nil,
                                      footer: nil,
                                      onBehalfOf:  nil,
                                      paymentSettings: nil,
                                      renderingOptions:nil,
                                      shippingCost:  nil,
                                      shippingDetails:  nil,
                                      statementDescriptor: nil,
                                      transferData: nil,
                                      expand:  nil)

Codebase gets bloated as a result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant