Re: [w3c/payment-request] Allow incremental request of billing and shipping address (#873)

As I was just reviewing this... I... um... had a thought...🤔 what if: 

```JS
typedef (sequence<AddressParts> or boolean) AddressRequirement;

dictionary PaymentOptions {
    AddressRequirement requestBillingAddress = false;
    AddressRequirement requestShippingAddress = false; 
};
```
That would:

 * retain backwards compatibility with 1.0 (sequence just gets coerced to `true` in 1.0 implementations).
 * it avoids the `{ requestShippingAddress: false, requestShippingAddressParts: ["country"] }` developer pitfall. 
 * avoid adding adding extra members

WDYT? 

(`AddressRequirement` is a terrible name... we can change that.)


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-request/pull/873#issuecomment-553240357

Received on Wednesday, 13 November 2019 05:02:30 UTC