Skip to content

Initting objects does not have nil defaults. #239

@Steven4294

Description

@Steven4294

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions